Skip to main content
Sparkerman1711
Inspiring
May 12, 2009
Answered

creating a mute button for video in as3

  • May 12, 2009
  • 2 replies
  • 13439 views

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

This topic has been closed for replies.
Correct answer kglad

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

2 replies

Known Participant
September 15, 2012

NetStream.recieveAudio(false) is another one method

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
May 12, 2009

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

Sparkerman1711
Inspiring
May 12, 2009

Volume property of the videoplayer class... I don't know how I missed that one. Thanks!

I've been using the O'Riley books for AS3 reference and I don't recall reading that. It is documented in the free Adobe Flash Help.

Thanks again for your help!

kglad
Community Expert
Community Expert
May 12, 2009

you're welcome.