Moving a movieclip using actionscript

Ok, I’m moving a movie clip using actionscript (as2) instead of a motion tween (because I want to save file size) and I’m wondering if someone can help me with the code.

I have this code on the first frame of the main timeline (“stone” is the movieclip instance name) and it tells the movie clip how many pixels to move in the x direction:


xTargetstone = 600;

I have this code on the movie clip itself (“stone” is the mc instance name) to handle the actual moving of the movie clip:


onClipEvent (enterFrame) {
       xstone = getProperty(_root.stone, _x);
       movestone = _root.xTargetstone - xstone;
       setProperty(_root.stone, _x, xstone + (movestone/5));
    }

The movement works fine, but the issue is that it starts out fast and then slows down over time (even though that amount of time is small). The result is that the movie clip seems to wiggle and vibrate before it stops.

Is there a way for me to change the code so that it doesn’t wiggle and vibrate? perhaps someting with the math I’m just not totally understanding? I would like a nice consistent motion from start to finish, while being able to set the time it takes to move etc.

Thanks, I appreciate all the help you can give me!

Peace,

Hondo311