# Sequential tweens using tween class

**URL:** <https://forum.kirupa.com/t/sequential-tweens-using-tween-class/205109>\
**Category:** Uncategorized\
**Created:** [October 26, 2006, 9:17am UTC](https://forum.kirupa.com/t/sequential-tweens-using-tween-class/205109 "2006-10-26T09:17:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjtik](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mjtik](https://forum.kirupa.com/u/mjtik)\
**Post date:** [October 26, 2006, 9:17am UTC](https://forum.kirupa.com/t/sequential-tweens-using-tween-class/205109/1 "2006-10-26T09:17:54Z")

</div>

I am trying to animate both the X and the Y axis using the tween class in Flash 8. I want both axis to move independently, not both at the same time (moving in a diagonal).

I have the script in a button embedded in a movie clip on my main timeline.

on (release){

new mx.transitions.Tween  
(\_root.menu1, “\_y”, mx.transitions.easing.Elastic.easeOut, \_root.menu1.\_y, 10, 30, false);

new mx.transitions.Tween  
(\_root.menu1, “\_x”, mx.transitions.easing.Elastic.easeOut, \_root.menu1.\_x, 210, 30, false);

I tried onMotionFinish, but didn’t get the result I was looking for. From scanning the web it doesn’t seem possible. Any suggestions would be greatly appreciated.

EDIT (clarification):

I want the menu1 MC to tween on the x axis in a straight line, while the tween on the y axis is being executed. menu1 MC needs to travel smoothly along the x axis.
