6 Replies Latest reply on Jun 22, 2006 7:55 PM by kglad

    how to reference clips inside a loaded movie

    SPGAnne Level 1
      I am using MovieClipLoader to load a .swf that has movie clips inside it. How do I enumerate/access those clips. I have tried the following, but nothing happens.

      var mcHolder:MovieClip = this.createEmptyMovieClip("mcHolder", this.getNextHighestDepth());
      var my_mcl:MovieClipLoader = new MovieClipLoader();

      mclListener.onLoadComplete = function(target_mc:MovieClip, status:Number):Void {
      trace("onLoadComplete: " + target_mc);
      enumerateClip = function(clip:MovieClip):Void{
      var myClip:MovieClip = clip;
      trace ("enumerate clip function called");
      for (var name in myClip) {
      if (typeof (myClip[name]) == "movieclip") {
      trace("I have a movie clip child named " + name);

      my_mcl.loadClip("myTest.swf", mcHolder); // note: myTest.swf had a movie clip on frame 1 of the main timeline