FORUMS: list search recent posts

Stop an SWF file from looping

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
John FranksStop an SWF file from looping
by on Jun 24, 2009 at 8:47:47 pm

I am very new to Adobe Flash (just started using CS4) and know hardly any Actionscript.

I have made a simple flash movie, adding the stop(); command at the end of a seperate layer to stop the movie from looping, as explained in the flash tutorial I have used. This works when I Control > Test Movie.

But, when I Export Movie to SWF and upload it to my website the file just loops in my browser (which is IE8).

I have trawled to find answers. Can anyone please please please talk me through the precise steps to stop the movie looping once it gets exported to SWF. Remember the stop(); command is not working, unless I am using it wrong.

Thanks so much for your reply in advance.

John Franks

Return to posts index

Patrick HearnRe: Stop an SWF file from looping
by on Jul 3, 2009 at 4:14:11 pm

It sounds like you're using stop()l correctly, but I'll confirm it for you.

Create a new layer, call it actions.
at the very last frame, create a new keyframe on the 'actions' layer.
Click this keyframe, then in the Actions pane type stop();
Preview the movie (CTRL + Enter) - Your movie should play through and stop on the last frame.

Return to posts index

John FranksRe: Stop an SWF file from looping
by on Jul 3, 2009 at 4:37:06 pm

Thank you for your reply. Much appreciated.

I have found the problem. Believe it or not all I had to do was change the publish settings of the movie from flash player 10 to flash player 7 or 8 before I converted it to SWF, and it then played perfectly within the program I was using.

I guess the program I am using does not support flash player 10.

Don't you just love computers. It took me 10 hours to work that one out.


Return to posts index

Patrick HearnRe: Stop an SWF file from looping
by on Jul 3, 2009 at 6:42:25 pm

Ah right. You possibly don't have the latest flash player installed.

Return to posts index

Jonathan RomeroRe: Stop an SWF file from looping
by on Sep 8, 2010 at 2:05:16 am

Thanks I just had the same issue and this fixed my prob.

Return to posts index

Karl FranklinRe: Stop an SWF file from looping
by on Nov 18, 2010 at 1:30:14 pm

THANK YOU!!!!!! That was the most succinct instruction I have seen anywhere on the 'net. You saved my day, possibly my week!

Return to posts index

Warren FenemorRe: Stop an SWF file from looping
by on Mar 20, 2013 at 7:28:46 am

sorry to re start this thread but.... I did as you said and the file stopped when trying it in flash. I then tried it in preview both html and flash and get a blank screen. Remove the stop command and it works but loops. How do I get the file to auto play once then stop. Seems the stop command has altered something?!


Return to posts index

Jer JagerRe: Stop an SWF file from looping
by on Jun 3, 2015 at 6:34:34 pm

I'm having a problem in Flash CC. I have banners that need a button (Event Listener). I want them to loop 3 times and then stop. (I have just repeated the animation for all three rotations on linear timeline so no need to add coding for the loop)
My actions layer has the code for the button (see below) I've created a separate layer with the last frame with the stop() command.
However, when I test and export, the SWF does not recognize the stop command.
In CS6 I had no problem placing the button on one layer with the code on the actions panel and the stop() command on another layer (last frame).
However, if I remove the button my animation will stop after it plays 3 times but with the button layer and code, the animation continuously loops. I've tried different combos of both button and stop on same actions layer but it still doesn't work. Must be something obvious I'm not seeing.

code for button
// ......
function(event: MouseEvent) : void { URLRequest( root.loaderInfo.parameters.clickTAG), "_blank");


//tried adding the stop command on same layer and different layer. no luck.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved