PDA

View Full Version : Play only part of flash movie


jnarowski
08-14-2005, 04:00 PM
I have an animation that I want to play the entire way through, once it plays the entire way through I want it to loop only frames 20 - 40. What do I need to do to accomplish this?

Scottae
08-14-2005, 05:15 PM
1st frame:

var played:Boolean = false;


40th frame:

if (played)
{
gotoAndPlay (20);
}

Last frame:

gotoAndPlay (20);
played = true;