turn sound volume on and off with one button
Posted on 2009-04-16
i would like to create one button that users can click to TURN VOLUME to ZERO and then click again to TURN VOLUME BACK UP to Full.
currently all sounds have been embedded in the library and played as seperate events on 2 layers of the timeline. They are started and stopped according to whats happening on the timeline.
also if possible I want the button to change according to whether or not the volume is up or down.
So say the music is playing and i click the 'volume on/off' button, the volume turns down, i would like the button to do a little shake animation, up and down and then change so that it enlarges in size.
Then i click it again and the volume turns back up, and the button does a little shake animation and decreases to its original size.
thanks for your help..