Sign in to follow this  

actionscript 3, action after multiple tweening done

This topic is 2004 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

This topic is 2004 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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