Hi guys!
sorry for the strange title but I really don’t know how to call this thread.
Well, my problem is quite easy. I’ve always created animations by code but now for a work I’ve to create them without using code. The problem is that I don’t know how to create something like “onComplete”.
I have a movieclip and an animation for the Mouse_over and an animation for the Mouse_out but [FONT=“Arial”]how can I tell to my script to do the second animation only when the first one is completed[/FONT]?
This is the animation on my frames :
and the code that is very simple :
pulsante_mc.addEventListener(MouseEvent.MOUSE_OVER, pulsanteOver);
pulsante_mc.addEventListener(MouseEvent.MOUSE_OUT, pulsanteOut);
function pulsanteOver(evt:MouseEvent):void
{
linguetta_mc.gotoAndPlay(1);
}
function pulsanteOut(evt:MouseEvent):void
{
linguetta_mc.gotoAndPlay(18);
}
I thought to use a boolean variable, or something like “currentframe” but I really don’t know how. I’ve also searched in the forum but… nothing. So, I hope that someone will help me