Stop an SWF file from looping
by John Franks 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.
Re: Stop an SWF file from looping by Patrick Hearn 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.
Re: Stop an SWF file from looping by John Franks 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.
Re: Stop an SWF file from looping by Warren Fenemor 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?!