1 Reply Latest reply on Jan 11, 2007 8:49 AM by derobinson

    MovieClipLoader into my_mc

    ropeGun Level 1
      Hello Gurus!

      I have a "MASTER" swf with a movieClip called "contentWindow" into which I use MovieClipLoader to read in a bunch of "SLAVE" swfs. The key AS2.0 line that I am using is as follows:

      myMCL.loadClip("./swf/content" + c + ".swf", this.contentWindow);

      Please note that I am not loading the SLAVES into a "_level", but instead into this "contentWindow" movieClip that sits on my stage. This means that I cannot access a button are in my loaded SLAVES, for instance, that is named "slave_but" with a line like this (from the MASTER file):

      _level100.slave_but.onRelease = function() {
      //DO SOMETHING HERE
      }

      Anyway, I would like to be able to access this "slave_but" from my MASTER as the SLAVE is loaded not into a _level, but instead into my "contentWindow" mc.
        • 1. Re: MovieClipLoader into my_mc
          derobinson Level 1
          Whether your specifying the SWF to be loaded into a level or not, it is in SOME level that you should be able to address. However, you should also be able to address the buttons using the MC path as well. Try

          contentWindow.slave_but.onRelease ....

          Good luck!