Is there any way to set a button's onClick sound to mute or off programatically?
kmartin7
Professional Software Development Tools
Is there any way to set a button's onClick sound to mute or off programatically?
kmartin7
As far as I know, not directly.
But you can have a button trigger an external sound (not the build-in sound function). This way, you can have complete control when and if to play that sound (you could also play different sounds from the same button, based on previous fulfilled condition).
Good luck.
Yossi
Thanks Yosik. I was hoping that I wouldn't have to manually play a sound as there are several buttons and conditions. I guess I can cut-and-paste.
=)
Don't forget that you can use variables (and even better, a table) for your buttons<->sound pairs. Then you can condition control your sound triggering.
Yossi
Also FUNCTIONS. It'll make life a lot easier if you roll it into a function. That way you'll only have one place to edit/change code.
Originally Posted by kmartin7
OK. Thanks.