Sound file not loading?

i’m using the sound object to load a sound into flash.
this is the code.

s = new Sound();
s.loadSound(“likeleopard.mp3”);
s.start(0,1);

the sound file is sitting in the same folder as swf file.it is not in the library.
This works ok when i test it in Flash. but when i test it in Dreamweaver the sound file doesn’t load. Can anyone tell me what i’m doing wrong?
cheers
maria

check your directories, you syntax is correct

This is a complete stab in the dark, seeing as I don’t know Dreamweaver at all, but Dreamweaver may create a local version of the flash file, but not the mp3. Does it work if you put the full path in?

My only other wild guess would be that there’s some obscure setting you need to alter.

…Yeah mama, called life (sugar)…

no setting

http://www.delusionalfx.com/tutorials/xternalsound.htm

there’s a working fla there

thanks everyone, the problem is solved. fyi
the problem was that i left out “true” parameter. it should have been like this.
s = new Sound();
s.loadSound(“likeleopard.mp3”, true);
s.start(0,1);

so many thanks. especially the deluionalfx tutorial
maria

glad u liked it :slight_smile: