PDA

View Full Version : move a movie clip


Navarone
10-15-2003, 04:04 PM
I am trying to get my movie clip to go from point "a" to point "b", but I am not having any luck.


cd.onEnterFrame = function (){
this._rotation -=30; //sets the rotation of the movie clip
if (this._x<100) {
this._x -=20;
}

}

farafiro
10-16-2003, 01:16 PM
var startX = 100
var endX = 400
var speed = 10
theClip_mc._x = startX
function moveMe(targ){
targ._x+=(_root.endX-targ._x)/_root.speed
}
any_btn.onRelease = function(){
setInterval(moveMe,30,_root.theClip_mc)
}