3 Replies Latest reply on Nov 15, 2006 6:21 AM by Newsgroup_User

    root problem...  maybe

    koomisan Level 1
      hello, i have a problem with my nested movie clips, i'll try to be clear.
      so there's a movie clip that opens once it is pressed.
      when its open there are a few movie clips inside it which i need to use but cant reach because if i press them, its still like i am pressing the movie clip at the top. how do i cancell the top movie clip and only look at whats inside it.
      i tried to use onEnterFrame that checks when its open, but that didnt work.
      hope someone has ideas how to solve this
      cheers
        • 1. Re: root problem...  maybe
          exPluda?
          Hello,

          Try something like this:

          main_movieclip.onPress = function() {
          open();
          }
          main_movieclip.onRelease = function() {
          this.enabeld = "false";
          }
          main_movieclip.children.onRelease = function() {
          trace this;
          }
          • 2. Re: root problem...  maybe
            koomisan Level 1
            thanks for the suggestion, i have tried that, but it didnt work.
            when i have disabled the main movieClip, i cant reach any of the clips inside. (the mouse cursor is on arrow...)
            • 3. Re: root problem...  maybe
              Level 7
              koomisan,

              >> Try something like this: ...
              >> main_movieclip.onRelease = function() {
              >> this.enabeld = "false";
              >> }

              > thanks for the suggestion, i have tried that, but it didnt work.
              > when i have disabled the main movieClip, i cant reach any
              > of the clips inside. (the mouse cursor is on arrow...)

              Pluda's suggestion was my first thought, too, but I tried it here, and
              can see that you're right. This works for me:

              outer.onRelease = function() {
              trace(this);
              delete this.onRelease;
              };
              outer.inner.onRelease = function() {
              trace(this);
              };

              Of course, if you want to re-activate the outer clip's event handler,
              you'll have to re-assign the function (a bit more complicated than setting
              its enabled property back to true).


              David Stiller
              Adobe Community Expert
              Dev blog, http://www.quip.net/blog/
              "Luck is the residue of good design."