# Need help with sound

**URL:** <https://forum.kirupa.com/t/need-help-with-sound/17291>\
**Category:** Uncategorized\
**Created:** [April 3, 2003, 1:05pm UTC](https://forum.kirupa.com/t/need-help-with-sound/17291 "2003-04-03T13:05:19Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruen](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@ruen](https://forum.kirupa.com/u/ruen)\
**Post date:** [April 3, 2003, 1:05pm UTC](https://forum.kirupa.com/t/need-help-with-sound/17291/1 "2003-04-03T13:05:19Z")

</div>

How do you make music play continuously through various scenes?

I’ll try and explain it better.

Example. I have scene 1, 2, and 3. On scene 1, there is a button that links to scene 2 and 3. I want to put in some music for these particular scenes. But if I drop the looped mp3 into scene 1, it will play in scene 1, but the minute you click on the button that takes you to scene 2 or 3, the music stops/and or halts. I don’t want the music to stop and just keep going for the 3 scenes. Does this make sense. If you anyone doesn’t understand, let me know and i’ll try to explain again. Thanks.

Any suggestions, ideas, tips?

---

<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:** [April 3, 2003, 7:19pm UTC](https://forum.kirupa.com/t/need-help-with-sound/17291/2 "2003-04-03T19:19:09Z")

</div>

You take and import the sound and put it at the starting frame and the just put it on loop x amount of times:rd:

---

<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:** [April 3, 2003, 11:44pm UTC](https://forum.kirupa.com/t/need-help-with-sound/17291/3 "2003-04-03T23:44:29Z")

</div>

Pv\_37, thanks for the info. But I know that already. And if i did do that the user would hear the song for x amount of times. I forgot to mention that, I want the song to only play in scene 1, 2, and 3. That I also have a scene 4 which the user can get by way of scene 1. I need the music to stop as soon as the user gets to scene 4.

---

<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:** [April 4, 2003, 6:17am UTC](https://forum.kirupa.com/t/need-help-with-sound/17291/4 "2003-04-04T06:17:56Z")

</div>

lah blah blah

---

<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:** [April 4, 2003, 6:27am UTC](https://forum.kirupa.com/t/need-help-with-sound/17291/5 "2003-04-04T06:27:58Z")

</div>

kkkkk, I’m warning you now, stop posting nonsense or else you’ll get banned! 😠

---

<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:** [April 4, 2003, 10:18am UTC](https://forum.kirupa.com/t/need-help-with-sound/17291/6 "2003-04-04T10:18:04Z")

</div>

kkkkk, i don’t appreciate the jibberish. Hasn’t your mother ever told you, if you dont’ have anything nice to say, don’t say anything at all.

Electrongeek, thanks for telling kkkkk what will happen to him if he continues his jibberish.

---

<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:** [April 4, 2003, 11:29am UTC](https://forum.kirupa.com/t/need-help-with-sound/17291/7 "2003-04-04T11:29:50Z")

</div>

Place this snippet at the start of the scenes where you want sound i.e. 1, 2 and 3 in your case. [If you can hop from scene 4 to scene 3 or scene 2 then you’ll need to place it in scene 2 and scene 3, otherwise you can just place it in scene 1]

if (!looped\_sound) {  
looped\_sound=new Sound()  
looped\_sound.attachSound(“loop”)  
looped\_sound.start(0,100)  
}

and this snippet at the start of the scenes where you don’t want sound

if (looped\_sound) {  
looped\_sound.stop();  
looped\_sound = null;  
}

You’ll need to create a linkage for your soundfile with the identifier “loop” (right click in the library and choose linkage) or edit the AS to suit your purpose.

---

<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:** [April 7, 2003, 12:36pm UTC](https://forum.kirupa.com/t/need-help-with-sound/17291/8 "2003-04-07T12:36:22Z")

</div>

Thanks alot jsk!
