Try e.target.gotoAndPlay(2);

------Original Message------
From: Gustavo Duenas
Sender: [email protected]
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] event that is not working
Sent: Jan 27, 2010 1:39 PM

Hi Coders I have this  code, apparently it  triggers the trace but it  
doesn't move with the next frame in the time line, any ideas, I will  
appreciate your input

here is my code


var ballXTween:Tween = new Tween(logoMafle, "y",Bounce.easeInOut,  
logoMafle.y,
216, 1.5, true);

ballXTween.addEventListener(TweenEvent.MOTION_STOP, completo);
function completo(e:TweenEvent){
if(logoMafle.y>=216){
        gotoAndPlay(2);
        trace("arranca");
}
}

probably is a dumb question, but it is strange you know?


I'm doing everything I did before, but this is strange, weird, I hope  
I'm doing something wrong

Gustavo

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
[email protected]
254.749.2525
www.mynarcik.com

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to