I would like to go to a certain frame in my timeline after the last tween has finished!
what would the code look like
i kno it most likely will have a “onComplete”
somewhere in it most likely
import gs.TweenMax;
//what elsee?? =[
I would like to go to a certain frame in my timeline after the last tween has finished!
what would the code look like
i kno it most likely will have a “onComplete”
somewhere in it most likely
import gs.TweenMax;
//what elsee?? =[
[QUOTE=thebboydisorder;2339624]I would like to go to a certain frame in my timeline after the last tween has finished! what would the code look like i kno it most likely will have a “onComplete” somewhere in it most likely[/QUOTE]
Welcome to Kirupa.
There is an example on the TweenMax page under Examples. Read the usage of TweenMax and you will be all set. http://blog.greensock.com/tweenmaxas2/
import gs.TweenMax;
import mx.transitions.easing.Back;
TweenMax.to(clip_mc, 5, {_alpha:50, _x:120, ease:Back.easeOut, delay:2, onComplete:onFinishTween, onCompleteParams:[5, clip_mc]});
function onFinishTween(argument1:Number, argument2:MovieClip):Void {
trace("The tween has finished! argument1 = " + argument1 + ", and argument2 = " + argument2);
}
:: Copyright KIRUPA 2024 //--