The simplest way is to put the actionscript 'stop()' command on the last frame of your movieclip.
Add a layer in your movieclip and call it Actions.
Open the actions panel under the 'windows' menu and in the last frame of your movieclip insert a keyframe on the Actions layer then type 'stop()' for this frame in the actions panel.
You could put 'stop()' in the actions panel on any layer, but good practice is to create a separate layer for programming, which is the 'Actions' layer. Use it only for Actionscript. Don't put any graphics on this layer. In fact, good practice is to lock this layer as soon as you create it, so you can't accidently put any graphics on it. Even though it is locked you can still insert Actionscript for this layer using the Actions panel.
Using Stop() doesn't prevent the movie looping over and over again when you publish it and use it in a web page. Is there not a flag that you can set in the code when publishing the movie which is something like LoopOnce=true or Loop=1 or something?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.