6 Replies Latest reply on Oct 9, 2007 7:45 AM by 3-Putt

    disable a movie

    3-Putt
      When I load a movie on top of another movie, I'm still hearing the sounds of the movie below. The below movie (instance name "register") has a button "regisBtn" that triggers a sound when rolled over. All I want to do is disable the movie when I have a movie loaded on top of it and I have this code in the last frame of the loaded movie...and it's not working. The code disables the movie if im on the same level.

      register.onRelease = function() {
      trace(this._name+"._visible = false");
      this._visible = false;
      };

      stop();

      I tried:

      _parent.register.onRelease = function() {
      trace(this._name+"._visible = false");
      this._visible = false;
      };

      stop();

      and it still doesn't work.
      Anybody?
        • 1. Re: disable a movie
          kglad Adobe Community Professional & MVP
          why are you using an onRelease handler when you want to make to assign a movieclip's _visible property to false when another movieclip is "...loaded on top and it..."?
          • 2. Re: disable a movie
            3-Putt Level 1
            I started with the flash help section. I have the main movie in scene one with multiple movie clips that I want to disable when a movie is launch over the main movie so I'm not interacting with both movies at the same time. I have tried placing mcname.enable = false script on the first frame of the opened movie, but that doesn't work unless im placingh it in the wrong place.

            Any help?
            Brian
            • 3. Re: disable a movie
              kglad Adobe Community Professional & MVP
              and the movie that's "launched" is launched when register is released?
              • 4. Re: disable a movie
                3-Putt Level 1
                Register one of the many movies that plays a sound when rolled over. When another movie is released over it, I would like to disable the movies below.
                thx
                • 5. Re: disable a movie
                  kglad Adobe Community Professional & MVP
                  how is "...another movie released over it.."?
                  • 6. Re: disable a movie
                    3-Putt Level 1
                    This actionscript on the last frame

                    attachMovie_btn.onRelease = function(){
                    this._root.attachMovie("pop up", "popup", 1);
                    };

                    attachMovie_btn2.onRelease = function(){
                    this._root.attachMovie("check", "check", 2);
                    _parent.check._x = 340;
                    _parent.check._y = 165;

                    };

                    attachMovie_btn3.onRelease = function(){
                    this._root.attachMovie("ColorChipPopUp", "chip", 3);
                    _parent.chip._x = 340;
                    _parent.chip._y = 200;

                    };

                    attachMovie_btn4.onRelease = function(){
                    this._root.attachMovie("bears", "bearswin", 4);
                    _parent.bearswin._x = 340;
                    _parent.bearswin._y = 200;

                    };

                    attachMovie_btn5.onRelease = function(){
                    this._root.attachMovie("flower", "flowerwork", 5);
                    _parent.flowerwork._x = 340;
                    _parent.flowerwork._y = 200;

                    };



                    stop();