A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: sync mute button and volume bar

  1. #1
    Junior Member
    Join Date
    Oct 2010

    sync mute button and volume bar

    I'm creating a movie with an FLVPlayback component. I used the standard Play/Pause, Mute and Volume Bar components supplied with CS5.

    I have had no problem getting the individual components to work by themselves... the play/pause button plays or pauses, the mute button mutes, and the volume slider controls the volume. But how do I set the volume bar to 0 when the mute button is on, restore the original volume when the mute button is turned off, and turn on/off the mute button if the volume bar is dragged?

    I'm completely new to AS3. Thanks for any help.

  2. #2
    Senior Member Computer Dork's Avatar
    Join Date
    Mar 2001
    St. Louis
    You'll need to put a listener on the FLVPlayback to hear if it's muted or not, and then manually set the volume to 0.

  3. #3
    Flash/Flex Developer samac1068's Avatar
    Join Date
    Apr 2007
    Here, no there
    Track the volume via variable and as mentioned previous test if mute or not. If not, then reset the volume to the stored value.
    Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center