dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Mute Button Not Working in Embedded SWF

  1. #1

    Mute Button Not Working in Embedded SWF

    The mute button code I have works perfect when the SWF is played itself, but when it is embedded in a wrapper SWF it no longer works. I know that it is the code that references _loc1. I have the root locked in the first frame of the embedded swf with this:

    Code:
    this._lockroot = true;
    Here is the code in question. I just need to know how to change this code to make it work when this SWF is embedded in another SWF:

    Code:
    btn.onPress = function () {
        var _loc1 = _root.snd.getVolume();
        _root.snd.setVolume(Math.abs(_loc1 - 100));
        btn.play();
    }; // Mute button actions
    
    my_ns.onStatus = function (objStatus) {
        var _loc1 = handleFLVevents(objStatus);
    };
    Thanks,

    SD909

  2. #2
    I know this thread is really old, but I never got this working...
    Been Flashing since v3.

    Check out my: Words With Friends Cheat and Hanging With Friends Cheat sites.

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