Page 1 of 1

Script for turning audio on/off

Posted: Sat Jan 05, 2013 3:16 am
by abanowBUSTfGf
I have audio on and audio off graphics. I'd like to be able to click on the audio-off
button to a) turn off audio and b) display the audio-on button and the reverse for
the audio-on button.
Tx

Re: Script for turning audio on/off

Posted: Sat Jan 05, 2013 3:53 am
by Simon
HI,
Look up playLoudness in the dictionary. That will do the muting for you.
Use the button icon property to set your images. and check this out:

Code: Select all

on mouseUp
   if the highlite of me then
      set the playLoudness to 0
      set the hilight of me to false
   else
      set the playLoudness to 100
      set the highlite of me to true
   end if
end mouseUp
The true false may be backward.

Simon