Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do You Set a Flash Movie to Loop a Certain # of Times? 1

Status
Not open for further replies.

daphneTMA

Programmer
Dec 18, 2003
1
US
This is probably simple question for most of you but can someone tell me how to set a Flash movie to loop a certain # of times? I've got the stop action at the end, I just need the movie to play 3 times then stop.

Thanks!
 
On the last frame of your movie...
Code:
_root.count++;
if (_root.count<3){
	_root.gotoAndPlay(1);
} else {
	_root.stop();
}

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top