3 Replies Latest reply on Jun 11, 2007 8:53 PM by kglad

    need help targetting dynamic movie clip loaded to _root

    caitblahblah
      On the main timeline I use the 'attachMovie' code to load an MC labeled "LINKS-main". Then, inside of "LINKS-main" I have two other MCs, one of which, when clicked, uses the 'attachMovie' code to load yet another MC labeled "INFORMATION", as you can see here:

      onClipEvent (enterFrame) {
      this.onRelease = function() {
      _root.attachMovie("INFORMATION", "INFORMATION", 1);
      }
      }

      However, I'm trying to make the second MC within "LINKS-main" (labeled "link1") remove "INFORMATION" through the "removeMovieClip" code when clicked, but it's not working. This is the code placed on "link1":

      onClipEvent (enterFrame) {
      this.onRelease = function() {
      _root.removeMovieClip ("INFORMATION");
      }
      }

      I've even tried just using 'gotoAndPlay' to test if it's even targetting the "INFORMATION" MC, but it just wont listen. Can anybody help me? I have a feeling this all has to do with the "INFORMATION" MC being loaded to the root.