are you assigning a linkage id to your sounds? you need to use those linkage ids in the attachSound argument.
that is, in your library one of your sounds sound have linkage id = "sound1". then use:
Thought that when a thread is marked Answered, I had to start a new one. Know better now.
What I did was imported a .wav file into the library, right clicked on it and selected Linkage. In the linkage box I gave it a name "music1" and checked the Export For Actionscript and Export in First Frame options.
Then I attached this code to frame 1: var s:Sound=new Sound();
Then I attached this code to a keyframe on the page where the new music is to play:
When I test the movie, the background music stops when I get to the page but the new music doesn't start.
Thanks again for any help.
click your library sound. at the top of the library panel will be a graphic representation of your sound with a play button. click the play button. if you hear your sound:
right click that library sound, click properties and take a screen shot of that panel showing you have "music1" assigned as the linkage id.
1 person found this helpful
your linkage id is incorrect. it should be "music1", not "music1.wav".