# ME no understand loops, help

**URL:** <https://forum.kirupa.com/t/me-no-understand-loops-help/16074>\
**Category:** flash\
**Created:** [March 20, 2003, 6:49pm UTC](https://forum.kirupa.com/t/me-no-understand-loops-help/16074 "2003-03-20T18:49:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troll\_axethrowe](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@Troll\_axethrowe](https://forum.kirupa.com/u/Troll_axethrowe)\
**Post date:** [March 20, 2003, 6:49pm UTC](https://forum.kirupa.com/t/me-no-understand-loops-help/16074/1 "2003-03-20T18:49:49Z")

</div>

I cant figure out how to use actionscript loops to loop things, like sounds for example. Can someone show me how to create an infinit loop for a sound. If you can a step by step thing would be nice since i am a TOTAL newb at actionscript, i can do the other things in flash but the actionscript messes me up.

And for the loops, what frame do i put it in in the actionscript if i want to to go throught the entire scene?

---

<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 22, 2003, 3:24am UTC](https://forum.kirupa.com/t/me-no-understand-loops-help/16074/2 "2003-03-22T03:24:28Z")

</div>

come on someone take a stab at answering me

---

<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 22, 2003, 3:31am UTC](https://forum.kirupa.com/t/me-no-understand-loops-help/16074/3 "2003-03-22T03:31:16Z")

</div>

I’m sure there’s a ton of tutorials to do exactly this. Try and  
search the forums here as well. I know you’ll find what you need,  
because a tutorial is basically what you’re asking someone to type  
all out for you. 😉

---

<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 22, 2003, 3:37am UTC](https://forum.kirupa.com/t/me-no-understand-loops-help/16074/4 "2003-03-22T03:37:42Z")

</div>

when you say loop, do you mean “loop” or “enterframe”, if you have no idea what enterframe is, i suggest you look into ‘onClipEvent (enterFrame)’ this is probably the answer to your question, if you wish i can walk u through something

---

<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 22, 2003, 3:54am UTC](https://forum.kirupa.com/t/me-no-understand-loops-help/16074/5 "2003-03-22T03:54:33Z")

</div>

Yeah, by what you are saying, you want sound looping, not actionscript looping.

In that case… check this tutorial…

[http://www.kirupa.com/developer/actionscript/sound.htm](http://www.kirupa.com/developer/actionscript/sound.htm)

Where it says “kirupaSound.start(0, 99);” change that to “kirupaSound.start();” (removing the 0, 99 part) being these are optional parameters. Read the tutorial to find out what they do.

---

<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 22, 2003, 2:52pm UTC](https://forum.kirupa.com/t/me-no-understand-loops-help/16074/6 "2003-03-22T14:52:53Z")

</div>

Thanks for the info, but the tutorial showed me only how to make sound work on a button click, how do i make the sound work on the frame starting?

---

<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 22, 2003, 6:14pm UTC](https://forum.kirupa.com/t/me-no-understand-loops-help/16074/7 "2003-03-22T18:14:52Z")

</div>

Put the code on a frame. And remove the on handler code (on (release) or whatever it uses)
