-
flv mute/unmute playback
Hi,
I have a flv that should play muted on start, with a button indicating the muted position. When un-muted it should play the volume at 70%.
I made a simple button that does this.The problem is when the flv plays again. It starts on volume 0 again.
How can i have it playback at the last toggle, whether it was last muted or unmuted?
I can't seem to override the component paramaters of the flv which is set at volume 0?
i'm using actionscript 2
cheers,
xav
-
So what i need is help on how to script:
if my mute button is true, than the volume is 70.
else than the volume is 0
do i then just assign that its true on release of the button?
-
My attempt?:
var myBoolean:Boolean = new Boolean;
if(myBoolean == true) {
myVideo.volume = 70;
} else {
myVideo.volume = 0;
}
and on the button
on(release){
gotoAndStop("OFF");
_root.myBoolean = true;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|