[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1089
  • Last Modified:

turn sound volume on and off with one button

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..

  • 2
1 Solution
Jason ThompsonSenior UX DesignerCommented:
Here's a free one you can download, dissect and customize:

simophatAuthor Commented:
That script was action script 1. My flash application is actionscript 2 . is it possible to use action script 1 with actionscript 2 flash fileS?

Jason ThompsonSenior UX DesignerCommented:
I'm sorry Simon, your reply got lost in the shuffle of my EE folder.  Were you able to get this working?

Though the download page for this sample button says AS1, the file actually appears to be in AS2.  I was able to publish in AS2 with no error alerts.

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now