PDA

View Full Version : checkbox to turn on/off sound effects



lunatic
November 30th, 2003, 03:55 PM
Hi all,

I have an animation that plays a couple of different sound effects (depending on what button is pushed). I have a checkbox that I would like to use to turn on/off the sound effects. I have read somewhere that it is possible to set up sort of a global sound that if stopped, stops all sound effects. I have tried to set this sort of thing up but no success :( . When I test getValue() of my checkbox it seems to work (defaulted to true) but nothing happens when I uncheck the box. What am I doing wrong? :puzzle:

p.s. In what forum would I make the suggestion to have a new category for just sound problems? Does anyone else think it would be a good thing to sequester sound issues in their own category? :D

Voetsjoeba
November 30th, 2003, 03:59 PM
Can you post your fla ?

lunatic
November 30th, 2003, 04:23 PM
Sure! But don't laugh - you've seen it before (the fla - has more stuff now). This is the first web site I've ever built for anyone and, uh, it's a little rough. :blush:

:beam:

home.comcast.net/~mkatzmoye/fla.zip

p.s. super cool xml mp3 player! gonna tell us how you did it?

Voetsjoeba
December 1st, 2003, 02:05 PM
I already did ;) Listen, my parents are shutting down the internet so I can't post your fixed file for now, it'll be for tomorrow.

lunatic
December 1st, 2003, 03:31 PM
Sweet! Thanks so much for helping me with the checkbox problem.

Yeah, i've already bookmarked your mp3 player code! ;)

Sorry your parents cut you off! Where'd you learn to write such good code anyway?

:D

lunatic
December 2nd, 2003, 11:49 AM
*nudge*








(not a bump)




:D

Voetsjoeba
December 2nd, 2003, 01:21 PM
Here you go : http://www.voetsjoeba.com/stash/trainnav.zip ;)

lunatic
December 2nd, 2003, 01:25 PM
AAAARRRGGGHHH!! Why is there no flash at work?! WHY must I wait until I get home?! :hair:

Thanks Voetsjoeba! ;) I'm psyched to check it out!

Before the curiosity kills me - was it a path problem? Or deeper than that?

Voetsjoeba
December 2nd, 2003, 02:06 PM
No, it was something called a "change handler", plus the knowledge that setting the volume of a sound that has no target equals setting the volume of all sounds with no target ;)