Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


thelionx

Member Since 27 May 2012
Offline Last Active Jun 17 2012 08:01 PM

Topics I've Started

actionscript 3, action after multiple tweening done

16 June 2012 - 03:36 AM

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 TweenEvent.MOTION_FINISH 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

PARTNERS