A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: flv mute/unmute playback

  1. #1
    Member
    Join Date
    Apr 2002
    Posts
    52

    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

  2. #2
    Member
    Join Date
    Apr 2002
    Posts
    52
    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?

  3. #3
    Member
    Join Date
    Apr 2002
    Posts
    52
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center