# Music in the Background Flash MX

**URL:** <https://forum.kirupa.com/t/music-in-the-background-flash-mx/30056>\
**Category:** flash\
**Created:** [September 3, 2003, 2:22pm UTC](https://forum.kirupa.com/t/music-in-the-background-flash-mx/30056 "2003-09-03T14:22:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagit](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@sagit](https://forum.kirupa.com/u/sagit)\
**Post date:** [September 3, 2003, 2:22pm UTC](https://forum.kirupa.com/t/music-in-the-background-flash-mx/30056/1 "2003-09-03T14:22:13Z")

</div>

Hi guys/girls:

I am making a projector and I have a loop to run in the background to play INDEPEDENT from the timeline of my main movie. How does this work? I will be putting some voices (external .sfw’s) that goes in sync with text that will be loaded but I want the background to stay playing.

Thanks a lot.  
I hope the answer will help others.

Sagit.

---

<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:** [September 3, 2003, 4:31pm UTC](https://forum.kirupa.com/t/music-in-the-background-flash-mx/30056/2 "2003-09-03T16:31:46Z")

</div>

take your sound, stick it in the library, assign it the linkage name “sound” and stick the following in the first frame  
[AS]  
mySound = new Sound (this);  
mySound.attachSound(“sound”);  
mySound.start(0, 99);  
[/AS]

---

<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:** [September 3, 2003, 8:37pm UTC](https://forum.kirupa.com/t/music-in-the-background-flash-mx/30056/3 "2003-09-03T20:37:51Z")

</div>

Thanks a lot, it does work when I put it in my main movie (content) that holds the rest of the swf’s. But when I do a “replay” it doesn’t really start from the beginning of the loop music but continues on like nothing happen. But it works just fine.

Thanks a lot guy.  
Sagit

---

<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:** [September 3, 2003, 8:49pm UTC](https://forum.kirupa.com/t/music-in-the-background-flash-mx/30056/4 "2003-09-03T20:49:12Z")

</div>

yeah. if you want it to start over, change the code to this  
[AS]  
mySound = new Sound (this);  
mySound.attachSound(“sound”);  
mySound.stop();  
mySound.start(0, 99);  
}[/AS]

glad to help
