Actionscript movement

i use this script for an easing slide movement:

onClipEvent (enterFrame) {
Xsquare = this._x;
Xdiff = Xpos-Xsquare;
Xmove = Xdiff/5;
this._x = Xsquare+Xmove;
updateAfterEvent(enterFrame);
}

is there a quick way to make this slide linear, and not easing?

thanks!

yes. use flash motion tween

okay…

but without using motion tween…
?

yes.
the default is set to 0. if later on u wanna set easing the you can do it in the property panel.
so just do the motion tween and it will be without easing

i totally understand what you mean.

but i NEED to fix this in actionscript now…

Just look for tutorials about it. There are SO many and it’s really not that difficult to understand

true,
but the whole site is built, and i only need to change this movement from easing to linear.
so…

i think the question isn’t that clear or something.

this script is:
onClipEvent (enterFrame) {
Xsquare = this._x;
Xdiff = Xpos-Xsquare;
Xmove = Xdiff/5;
this._x = Xsquare+Xmove;
updateAfterEvent(enterFrame);
}

and on button clicks the Xpos value is added…

onClipEvent (enterFrame) {
this._x += {arbitrary number};
updateAfterEvent(enterFrame);
}

I don’t know if this is what you want.

that’s not what he is looking for.
Since you divide the Xdiff by 5 you actually add a decrement by 5 every frame. get rid of the “/5” and you will not have any easing.
But this doesn’t solve your problem. Go read if you want to learn. otherwise you will always need to ask the simplest things.
Hope it helps u