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
system
August 20, 2003, 2:54am
2
[AS]mySound = new Sound(this );[/AS]
Try that…
system
August 20, 2003, 3:17am
3
thnxxxxx :beam:
sorry … can you explain why does it need the “this” ? :sure:
system
August 20, 2003, 4:42am
4
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?
system
August 20, 2003, 5:49am
5
nop… it doesn´t make any sense at all
thanx a lot for the explanation
system
August 20, 2003, 6:28am
6
…I thought so.
Sorry, I’m not good at explaining things.
system
August 21, 2003, 2:48am
7
but i understood the explanation bro