PDA

View Full Version : sound not loading



grooove
August 19th, 2003, 09:35 PM
hi

i have a movie wich is loaded into level 26 and it has this code:

mySound = new Sound();
mySound.setVolume(70);
mySound.attachSound ("soundID");
mySound.start (0, 9999);

this movie is loaded into level26 but the sound doesn´t play, if i play the movie standalone the sound plays

any help would be appreciated ;)

gr000ve

kode
August 19th, 2003, 10:54 PM
mySound = new Sound(this);
Try that...

grooove
August 19th, 2003, 11:17 PM
thnxxxxx :beam:

sorry .. can you explain why does it need the "this" ? :sure:

kode
August 20th, 2003, 12:42 AM
You're welcome. ;)

Since you didn't specify a target MovieClip, when the attachSound method was being called, it was trying to find the sound in the library of the movie in _level0. Does that make any sense? :P

grooove
August 20th, 2003, 01:49 AM
nop.. it doesn´t make any sense at all

thanx a lot for the explanation ;)

kode
August 20th, 2003, 02:28 AM
...I thought so.

Sorry, I'm not good at explaining things. :P

grooove
August 20th, 2003, 10:48 PM
but i understood the explanation bro ;)