Skip to main content
Participant
January 28, 2010
Question

Default video sound is mute. But when i also can turn on from the volume bar.

  • January 28, 2010
  • 1 reply
  • 819 views

I use FLVPlayback from CS 4 to input videos.

I need default sound is mute, but I can turn it on  when I need it from volume bar.

Please see my attachement:

Here is the AS:

stop();


button1.addEventListener(MouseEvent.CLICK,clickListener1);
function clickListener1(event:MouseEvent):void {
    gotoAndStop("30sec");
}


button2.addEventListener(MouseEvent.CLICK,clickListener2);
function clickListener2(event:MouseEvent):void {
    gotoAndStop("30sec2");
}

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 28, 2010

flvplayback component's have a volume property you can assign to zero to mute the flv being played.

January 29, 2010

Yes,  I can change the volume from 100 to 0 at flvplayback component. If I do this, I can not turn on the sound anymore. The swf file will stay mute all the time.

I need an answer using AS3 to control player. It is more flexible.

video player default is mute. I can turn on the sound later from volume bar.

thanks

silky

kglad
Community Expert
Community Expert
January 29, 2010

you can control the sound at any time using the volume property.