Sign in to follow this  
thelionx

actionscript 3, action after multiple tweening done

Recommended Posts

thelionx    107
Hello,

I am a newbie in game developing, now i am working with a shooter game for learning purpose.
I have a question,

in my game I created three tween animation :

var myTween:Tween = new Tween(this, "scaleX", Back.easeIn, 1.2, 0, 10);
var myTween2:Tween = new Tween(this, "scaleY", Back.easeIn, 1.2, 0, 10);
var myTween3:Tween = new Tween(this, "alpha", None.easeIn, 1, 0, 10);



This tweens will occur after enemy's health become zero,
What I intended is after the animation, the clip will be removed from stage.

my question is, is there a way to know that all these tweens has finished? I tried to apply [b]TweenEvent.MOTION_FINISH [/b]event for each tween , but If i do that i have to create three listenesr ( which will be problematic if I want to create ten tweens).

Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this