View Full Version : Buttons
cyberb4be
01-06-2002, 11:20 AM
Is it possible to set buttons so that if one is pushed, a sound starts and if you push a new button the original sound stops and a new sound starts? Please help!
pixelwit
01-06-2002, 09:14 PM
This isn't the best way but it's the quickest and easiest. Using stopAllSounds() will (oddly enough) stop all sounds currently playing in your movie. Once you stop all sounds, then you can start your next sound.
Hope this helps,
-PiXELWiT
http://www.pixelwit.com
P.S. I'm not sure if you know this or not but, I think your boyfriend is wearing a dress.
iceman4
01-09-2002, 04:02 PM
use loadMovie
To make an on/off button make a sperate file for example you could name it soundload with just sound on the first frame and then save it and test the movie so you get the .swf file and then make your main movie and make sure that your main movie with the on/off button and the sound file are in the same folder or directory together. Then add something to this effect on your ON button.
on(release){
loadMovie(soundload.swf, 1)
}
and then on your off button you can have these actions
unloadMovie();
Hope this helps!
iceman4@sympatico.ca, if you need more help!
Kyle
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.