Your problem is one of scope - within onMotionFinished 'this'
refers to the
tween class. Use instance names. If that code is on the main
timeline, and
you want to tween a clip with an instance name of 'fire', you
could use:
import mx.transitions.Tween;
import mx.transitions.easing.*;
var iconPulse:Tween = new Tween(fire, "_yscale",
Regular.easeOut, 80, 100,
5,
true);
var iconPulse:Tween = new Tween(fire, "_xscale",
Regular.easeOut, 80, 100,
5,
true);
iconPulse.onMotionFinished = function(){
var iconPulse = new Tween(fire, "_yscale", Regular.easeOut,
100, 80, 5,
true);
var iconPulse = new Tween(fire, "_xscale", Regular.easeOut,
100, 80, 5,
true);
}
--
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/