2014-11-13 5 views

답변

0
onClipEvent (load) { 
    speed = 1; 
    boundary = 100; 
} 

onClipEvent (enterFrame) { 
    if (this._x > boundary) { 
     this._x -= speed; 
    } else { 
     this._x = boundary; 
     delete this.onEnterFrame; 
    } 
} 

비고 :

여기 내 코드의

var speed:Number = 1; 
var boundary:Number = 100; 

this.onEnterFrame = function():Void { 
    if (clip._x > boundary) { 
     clip._x -= speed; 
    } else { 
     clip._x = boundary; 
     delete this.onEnterFrame; 
    } 
} 
+0

이 코드에 감사드립니다과 성공 : 당신은 타임 라인에서 직접 코드를 작성해야한다. –