Click to See Complete Forum and Search --> : Music On/Off

04-05-2000, 03:50 PM
My fla contains soundeffects (eventsounds playing once, attached to buttons), and backgroundmusic (eventsound looping 999 times).
I want the user to have a music on/off -button that does NOT affect the soundeffects.
Problem is, my bkgmusic starts and stops (by keyframeactions) many times at different places in different scenes throughout the movie.
When the user has turned off the music I want it to stay off and not start again. How can this be done?

04-05-2000, 06:49 PM
I'd do it like this:

Make a movie clip called "Loop" or whatever. Put your audio in there. Then place that on its own layer in the main timeline. Then, instead of using a Stop all sounds action in your stop music button, do a tell target that says (roughly): Tell Target "Loop" Stop.

Should work...


04-05-2000, 07:01 PM
Wait, I read your question again, and I don't think my answer (above) will help you. You'll have to do some kind of If Else statment, which is not my area of expertise.. Maybe somebody else can be a better help...


Or, wait, you could use a more realistic loop like 10 times with a go to 1 action at the end of those ten loops.

Then your sound off button could tell that Loop movie and any audio movies you have made to go to a frame after your loop, say frame 2000 and Stop and in frame 2001-5 (or whatever) put stop actions. Then when you do a tell target to start your audio in a given audio movie it should say tell target "Loop" (for example) Play. That way it will just be stuck at the end. If people want to play audio a play button could tell all your audio movies to go to frame 1.

Eeeee, I have never tried anything like this. If it works, I'd love to know...

Good luck

04-06-2000, 09:34 AM
I'll give it a try and will let you know if it works.