# Sound Problem Help

**URL:** <https://forum.kirupa.com/t/sound-problem-help/111496>\
**Category:** Uncategorized\
**Created:** [May 27, 2004, 3:26pm UTC](https://forum.kirupa.com/t/sound-problem-help/111496 "2004-05-27T15:26:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sinus\_](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sinus_/32/417_2.png) [@sinus\_](https://forum.kirupa.com/u/sinus_)\
**Post date:** [May 27, 2004, 3:26pm UTC](https://forum.kirupa.com/t/sound-problem-help/111496/1 "2004-05-27T15:26:58Z")

</div>

Hello,

When first loaded in Firefox, the movie is able to load and play the sound.  
BUT in Internet Explorer, when the movie if loaded for the first time, it does not play the music. But once i click on the PLAY BUTTON, the music is played…

What i want is to play the music once the movie is loaded for the first time.

Here is the code:

## ROOT (Frame action)

[AS]playbtn.\_visible = false;  
simplicity = new Sound();  
playing = true;  
simplicity.loadSound("-simplic-Icebergs-6673\_hifi.mp3");  
simplicity.onLoad = function()  
{  
simplicity.start(0, 9999);  
};[/AS]

## PLAY\_BUTTON

[AS]on (release) {  
if (!\_root.playing)  
{  
\_root.playbtn.\_visible = false;  
\_root.stopbtn.\_visible = true;  
\_root.playing = true;  
\_root.simplicity.start(0,9999);  
\_root.bars.gotoAndPlay(1);  
}  
}[/AS]

## STOP\_BUTTON

[AS]on (release) {  
if (\_root.playing)  
{  
\_root.stopbtn.\_visible = false;  
\_root.playbtn.\_visible = true;  
\_root.playing = false;  
\_root.simplicity.stop();  
\_root.bars.gotoAndPlay(15);  
}  
}[/AS]

Note: When the music is playing, the STOP BUTTON appears. And when the music is stopped, PLAY BUTTON appears. That explains the \_root.playing variable in the if-condition…

lastly, here is the URL: [http://www.ekini.com](http://www.ekini.com)

Thanks guys…  
Sinus\_

---

<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:** [May 27, 2004, 8:37pm UTC](https://forum.kirupa.com/t/sound-problem-help/111496/2 "2004-05-27T20:37:04Z")

</div>

I’m using IE, the music played the first time for me, i don’t see the problem.

---

<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:** [May 27, 2004, 8:40pm UTC](https://forum.kirupa.com/t/sound-problem-help/111496/3 "2004-05-27T20:40:18Z")

</div>

Here too, on Safari and IE:)

scotty(-:

---

<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:** [May 28, 2004, 5:59am UTC](https://forum.kirupa.com/t/sound-problem-help/111496/4 "2004-05-28T05:59:31Z")

</div>

hmm… thats weird… il clean up my cache or something… thanks guys…
