PDA

View Full Version : stops not working, when gotoAndPlay calls an instance


kikita
08-12-2008, 01:16 PM
Flash problem

I'm attempting to make a "before and after" animation that flips when clicked. (Eventually I hope to make something somewhat resembling the Mutabor (http://www.mutabor.de/) site's wave-across animation.)

The problem is that the "stop();"s don't seem to be working. The top and bottom animations are examples of the "flipfirst" and "flipsecond" movie clips -- both of which have a "stop();" on the final (60th) frame of their clips. Both of these are nested within a "faceflip" animation -- which has a "stop();" on the 60th and 120th frame of the clip.

However, whenever an instance of the "faceflip" animation is called, the entire animation plays -- completely disregarding the stops!!! (except the last one) What am I doing wrong?

Thanks for your help!
designwiz@hellokiki.com

Here's the code (on the first/only frame of the Timeline):

stop();

function flip(Event:MouseEvent):void
{
faceflip1_mc.gotoAndPlay(2);
}


faceflip1_mc.addEventListener(MouseEvent.CLICK,fli p);


You can see my SWF and download my native Flash file here:
http://www.hellokiki.com/test/