Hello -
I am trying to play a sound file from the library - this works fine when I have all code in root timeline, however when I put the code inside a movieclip it no longer works.
Here is the code I have in frame one of the root timeline:
var snd = new Sound( );
snd.attachSound("sound_01");
_root.snd.start(0, 1);
stop();
I have a wav file named sound_01 in the library.
Does anyone know how to play the sound from inside a movieclip using this code?
thanks!
I am trying to play a sound file from the library - this works fine when I have all code in root timeline, however when I put the code inside a movieclip it no longer works.
Here is the code I have in frame one of the root timeline:
var snd = new Sound( );
snd.attachSound("sound_01");
_root.snd.start(0, 1);
stop();
I have a wav file named sound_01 in the library.
Does anyone know how to play the sound from inside a movieclip using this code?
thanks!