# How do I stop looping

**URL:** <https://forum.kirupa.com/t/how-do-i-stop-looping/16437>\
**Category:** flash\
**Created:** [March 25, 2003, 2:40am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437 "2003-03-25T02:40:42Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flexus](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@Flexus](https://forum.kirupa.com/u/Flexus)\
**Post date:** [March 25, 2003, 2:40am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/1 "2003-03-25T02:40:42Z")

</div>

I put my flash movie on my web site, but how do I stop it from looping?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 2:42am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/2 "2003-03-25T02:42:36Z")

</div>

do you have a stop() action on it? on the last frame?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 2:45am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/3 "2003-03-25T02:45:35Z")

</div>

this is the correct code to use.

stop();

=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 2:49am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/4 "2003-03-25T02:49:03Z")

</div>

File \> Publish Settings… \> HTML (tab) -\> uncheck “Loop” in Playback options

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 2:59am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/5 "2003-03-25T02:59:04Z")

</div>

OK it will work with the publish method. But what is this code method? I just click on the last frame of a layer and type stop() in the actions dialog box to stop individual layers?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 3:01am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/6 "2003-03-25T03:01:29Z")

</div>

stop();

and with this stop feature, it should stop the movie from looping.

Ahmed had the wrong code.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 3:03am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/7 "2003-03-25T03:03:46Z")

</div>

I will definetly try it. Hopefully it works for individual layers.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 3:05am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/8 "2003-03-25T03:05:14Z")

</div>

is tehre any way when the sound is on “event” to make it stop at a certain point other than stopAllSounds becuaes i want to have another sound fade in then the music stop

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 3:17am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/9 "2003-03-25T03:17:42Z")

</div>

Good question. By the way Alex and Ahmed where did you get your avatars?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 4:03am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/10 "2003-03-25T04:03:08Z")

</div>

we made them =)  
see the thread ‘Pixel People’

and alex-  
what’s wrong with my ‘code’? its just a stop action =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 4:45am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/11 "2003-03-25T04:45:11Z")

</div>

You left out the “;” at the end of “stop()”…ergo…“stop();” …😉

Alex is a stickler ferDetail :!:…😉

All your Layers should end at the same frame and the action applied _to_ a frame will effect all frames because it stops the movie timeline (allLayers) at _that_ frame - capishee (?);

If you want to start and stop different things at different times they each need to be sepparate movieClips with their own timelines and actions (movies within movies within movies , etc.)  
…the main timeline should be treated as _theStagingArea_ for all your _little movies_ and your background stuff…

MainMovie==Minimalisim==betterControl

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 5:02am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/12 "2003-03-25T05:02:32Z")

</div>

lol oh okay… but… in AS the “;” isn’t always neccesary… is it? cause it worked fine with me… :sure:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 5:31am UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/13 "2003-03-25T05:31:37Z")

</div>

never tried it without the “;” … allways use the AS library and insert from there in expert mode and it allways has the “;” …  
…I suppose the “;” could be left out and still be recognized by the movie, but I allways felt that the exclusion of said “;” would nullify the action (???)… any expert opinions on this…hmmmm?

…anyWho… proper syntax is allways a good practice even if one could get away with doing otherwise - else(chaos.we.WouldHave)

[emoticon of excrutiation that does not exist]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 2:47pm UTC](https://forum.kirupa.com/t/how-do-i-stop-looping/16437/14 "2003-03-25T14:47:41Z")

</div>

; is not necessary. You can write all the code you want and not need to use the semi-colon at all. The only time you would need it is in putting two lines of code on one, ie.

\_x = 10; \_y = 20

^ there you have 2 different statements which can exist on the same line because there is seperation defined with the semi-colon. Otherwise, seperation is defined with a newline and the ; isnt necessary

Something you have to be careful of is #include \<- that does NOT use a semi-colon and wont work if you do.
