# onMotionChanged

**URL:** <https://forum.kirupa.com/t/onmotionchanged/197421>\
**Category:** flash\
**Created:** [August 16, 2006, 6:47am UTC](https://forum.kirupa.com/t/onmotionchanged/197421 "2006-08-16T06:47:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![temp\_username](https://avatars.discourse-cdn.com/v4/letter/t/d2c977/32.png) [@temp\_username](https://forum.kirupa.com/u/temp_username)\
**Post date:** [August 16, 2006, 6:47am UTC](https://forum.kirupa.com/t/onmotionchanged/197421/1 "2006-08-16T06:47:08Z")

</div>

This is straight out of the help files on Tweening in flash 8 it works alright but why won’t it call a second on change when I put another tween call in the function.

What I’m looking to do is when one tween has finished call the next.

import mx.transitions.Tween;  
var myTween:Tween = new Tween(img1\_mc, “\_x”, mx.transitions.easing.Elastic.easeOut,0, Stage.width-img1\_mc.\_width, 3, true);

myTween.onMotionChanged = function() { var myTween2:Tween = new Tween(img1\_mc2, “\_x”, mx.transitions.easing.Elastic.easeOut,0, Stage.width-img1\_mc.\_width, 3, true);};

//this don’t call below  
myTween2.onMotionChanged = function() { var myTween3:Tween = new Tween(img1\_mc3, “\_x”, mx.transitions.easing.Elastic.easeOut,0, Stage.width-img1\_mc.\_width, 3, true);};

* * *

Jaffasoft
