Stop .SWF from looping with Flash MX Pro 08

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
betaWolf
Posts: 2
Joined: Mon Feb 18, 2008 11:37 pm
Location: Pasadena, California

Stop .SWF from looping with Flash MX Pro 08

Post 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.
BetaWolf
User avatar
slowtiger
Posts: 6246
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post 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.
betaWolf
Posts: 2
Joined: Mon Feb 18, 2008 11:37 pm
Location: Pasadena, California

Inserting stop() works.

Post 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.
BetaWolf
User avatar
slowtiger
Posts: 6246
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post 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.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post 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
User avatar
slowtiger
Posts: 6246
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post by slowtiger »

Which new? Not in the recent version in CS3.
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post 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
Post Reply