Sound object & loadSound();

Ok, so I have this problem: I have a music wav file on the net, lets say, myMusicURL. I have a one framed movie website and the code on its frame is this: [AS]music1 = new Sound();
music1.loadSound(“myMusicURL”, false);
optionstxt = “Downloading Music…”
[/AS]

optionstxt is a variable that a dynamic textbox on the scene uses. Then I have a mc w/ two keyframes and on its first frame I have: [AS]music2 = _root.music1;
if(music2.getBytesLoaded() == music2.getBytesTotal()){
_root.optionstxt = “Playing…”
music2.start();
music2.setVolume(100);
}
[/AS]

but, when test the movie, the textbox shows playing, because it thinks that the music object has loaded. well, it ain’t :slight_smile:

Help, anyone?

…I believe you can only load MP3s dynamically. :-/

Also, you could simply use the [font=courier new]Sound.onLoad[/font] event handler.

var music1 = new Sound();
music1.onLoad = function() {
	this.start();
	optionstxt = "Playing...";
};
optionstxt = "Loading...";
music1.loadSound("myMusicURL", false);