PDA

View Full Version : Sound working on IDE but not on server


tarun
04-13-2005, 08:49 AM
Guys can any one pls help and tell me the reason for following...

I am attachin a sound file in my code... just 3 lines

var snd:Sound = new Sound();
snd.attachSound("catsnd");
snd.start();

this thing is working perfectly when I test the movie in the IDE... but when the code gets on the server I hear no sounds.....

any Idea guys y this is happening...

tarun

badlorry
04-13-2005, 09:03 AM
could be for several reasons

-the sound might not be loaded properly (try preloading it)
-there might be unexpected issues with the browser that you are using

dipkya
04-14-2005, 06:43 AM
I think you need to stream the sound. Use
my_sound.loadSound( "http://serverpath:port/mp3filename", false);

The following example loads a streaming sound:

my_sound.loadSound( "http://serverpath:port/mp3filename", true);