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
Thanks guys…
Sinus_