Skip navigation
Currently Being Moderated

creating a mute button for video in as3

May 11, 2009 9:42 PM

I would like to create my own mute button in as3. I have created a video object which plays my video fine. I'm having trouble finding information on how to create a mute button that mutes the audio but the video continues to play. All documentation that I've read relates to controlling sound from an loaded .mp3 file. Does anyone know how I can do this? The gotoandlearn.com site explains it using as2 only.

Thanks

 
Replies
  • kglad
    62,161 posts
    Jul 21, 2002
    Currently Being Moderated
    May 11, 2009 10:06 PM   in reply to Ya_Scot

    the videoplayer class has a volume property that you can assign to 0 when you want to mute sound.

     
    |
    Mark as:
  • kglad
    62,161 posts
    Jul 21, 2002
    Currently Being Moderated
    May 12, 2009 8:27 AM   in reply to Ya_Scot

    you're welcome.

     
    |
    Mark as:
  • kglad
    62,161 posts
    Jul 21, 2002
    Currently Being Moderated
    May 12, 2009 7:10 PM   in reply to Ya_Scot

    you're not using the videoplayer class.

     

    you're using the video class so you must be attaching a netstream instance.

     

    your netstream instance has a soundTransform property that can be used to control volume.

     
    |
    Mark as:
  • kglad
    62,161 posts
    Jul 21, 2002
    Currently Being Moderated
    May 12, 2009 10:18 PM   in reply to Ya_Scot

    you're welcome.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 14, 2012 11:50 PM   in reply to Ya_Scot

    NetStream.recieveAudio(false) is another one method

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points