i'm building a flash site and have an interesting problem to try to solve:
throughout the site there is an "ambient" sound file that is linked to an on/off button, which works well.
however, on one of my pages, i'm needing to add buttons for sampled music works and which allows the viewer to preview the music on the "MUSIC" page. now, i've got an on/off button that works with the following script: (the music piece is called OESTE and is a MC which has 2 buttons (on/off)). The first frame's action script just says stop(); and the "on" button's script says
My problem is, I can click my "on" button and the music starts to play, and the button changes to say "off", but when I click the "off" button, it returns to my first "on" frame but the music doesn't stop - it continues to play.
I don't want to "stopAllSounds" necessarily, because that seems to turn off my site's "ambient" sound on all the pages.
Okay, I might have really made a mess of this and gotten really confused....but I hope that it's just something little that I'm overlooking....so if anyone can help, I'd appreciate it!
thanks! but, unfortunately, it didn't work. i labeled the frames like you suggested (which i have found works easier, too), but i click my "on" and the music plays, but when i click my "off", nothing happens. hmmm...any other advice would be greatly appreciated! :)