Page 1 of 1

Stop .SWF from looping with Flash MX Pro 08

Posted: Mon Feb 18, 2008 11:51 pm
by betaWolf
I have set the stop sync for last keyframes for each layer of an FLA file; de-selected the 'loop' button for movie export and; from Dreamweaver for the HTML page, de-selected the HTML loop option [now the <para> is 'Loop = "false"']. The source code for the page running the .swf shows the Loop switch is 'false'.

But it keeps looping. Im running a PC. I've read the other postings and I seem to have them covered.

Posted: Tue Feb 19, 2008 11:19 am
by slowtiger
If you put a script into the last frame of the main timeline of your .fla saying "stop()" it shouldn't loop at all.

Inserting stop() works.

Posted: Wed Feb 20, 2008 5:41 am
by betaWolf
Thank you for the solution. Works perfectly.

Isn't there another switch to do this task such as unchecking the 'loop' switch for the export preferences? Even the HTML page has a 'loop' option that can be unchecked in Flash's sister program, Dreamweaver.

Posted: Wed Feb 20, 2008 11:47 am
by slowtiger
The settings for the player plugin in HTML are only very general. The internal programming (in Actionscript) within the SWF, done in Flash, always overrides it.

Posted: Wed Feb 20, 2008 6:35 pm
by heyvern
Yes, Actionscript is the only way to stop looping really. A lot of Flash animation is done on one continuously looping frame using actionscript or "movie clips". SWF by default just loops forever. You drop in instances that are longer than one frame and loop the frame and they play.

p.s. I heard they eliminated "Movie Clips" in the new Flash. I am so behind. ;)

-vern

Posted: Wed Feb 20, 2008 6:36 pm
by slowtiger
Which new? Not in the recent version in CS3.

Posted: Wed Feb 20, 2008 6:45 pm
by heyvern
I thought I came across a discussion of the latest "versions" of Flash (which I don't have, still using MX 2004, v7) and it mentioned something about how they are trying to get away from the "MC" concept. I only remember it because it made me jump out of my chair a little...

... You know... it might have been a dream. I should study my chart some more:

Image

-vern