Why is my sound not working in Flash?
Posted
by animuson
on Stack Overflow
See other posts from Stack Overflow
or by animuson
Published on 2010-03-18T00:53:57Z
Indexed on
2010/03/18
1:01 UTC
Read the original article
Hit count: 455
This is what I have as far as code, it is in the first frame of the movie.
nature = new Sound(this);
nature.attachSound("sound_naturally");
nature.setVolume(50);
nature.start(0,0);
nature.onSoundComplete = function(){
nature.start(0,0);
}
trace(nature);
The trace outputs '[object Object]' at runtime.
I have the sound exporting to ActionScript with the link identifier 'sound_naturally', not exported to the first frame. I don't understand why it's not working. I did like the exact same thing like 3 hours ago and it worked fine, but I lost the file so I had to redo it and now it won't work at all.
Using Flash 10 with ActionScript 2.0
© Stack Overflow or respective owner