1 Reply Latest reply on Aug 23, 2007 8:58 AM by clbeech

    movie clip over another movie clip

    georgi_aba
      Hello

      I have a problem. I have a movie clip with buttons, one of the buttons starts a second movie clip over the first, but the second movie clip is transparent (70%) so you can see the firs movie clip. Thats the effect I want to achieve, but the problem is that the buttons from the firs movie clip are still active. And so I have active button from the first and from the second movie clip. My question is how can I make the buttons from the firs movie clip to be inactive (without removing them) when the second movie clip is on top of the first.


      My code for loading the second movie clip is:

      on (press) {
      loadMovieNum("movies/creolex.swf",1);
      }


      And for closing the second is:

      on (press) {
      unloadMovie(this);
      }

      Thank You.
        • 1. Re: movie clip over another movie clip
          clbeech Level 3
          add this to the first clip button's 'on(press)' handlers:

          on(press) {
          loadMovieNum("movies/creolex.swf",1);
          for(var name in this) {
          this[name].enabled=false;
          }
          }

          And for the second clip button's 'on(press)' handlers:

          on(press) {
          for(var name in _level0.clip_mc) { //path to the first clip:change as needed
          _level0.clip_mc[name].enabled=true;
          }
          unloadMovie(this);
          }

          You will need to adjust the 'path' to the first clip( '_level0.clip_mc' ), to re-enable the buttons. target the holder clip, not the button instances.