A simple animation with action script

Good day F-MX 2004 peoples i have one simple question to do with FLASH MX 2004 ACTION SCRIPT

Yes i just want to know what kind of code would i use if i was trying to move an object 4 example i want to animate a triangle without using the the traditional tween

that is i want this triangle to move from the left side of the stage to the right side and also to know how i can stop this triangle just were i want it to stop or for the animation to loop when it reaches it target point without using tween i trust …A-S… can control images just any how one may want so please peoples help help help anyone out there

thanks
kg

onClipEvent (load) {
moveright = true;
}
onClipEvent (enterFrame) {
if (moveleft) {
_x -="speed you want
_xscale = 100;
}
if (_x<0) {
moveleft = false;
moveright = true;
}
if (_x>"right boundary _x") {
moveright = false;
moveleft = true;
}
if (moveright) {
_x += "speed you want "
_xscale = -100;
moveleft = false;
}
}