12 Replies Latest reply on Sep 9, 2010 3:44 PM by kglad

    need help loading and positioning a swf into a swf

    AttaBoy2 Level 3

      This is the swf  I'm trying to load.

      These actions load and position a small simple swf just fine and the trace in the onLoadProgress function indicates that it loads completely

      but I can't see it.  What am I doing wrong?

       

      this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
      var my_listener:Object = new Object();
      my_listener.onLoadComplete = function(target_mc:MovieClip) {
      target_mc._x = 150;
      target_mc._y = 100;
      }

       

      my_listener.onLoadProgress = function(target_mc:MovieClip) {
      trace(target_mc.getBytesLoaded() + " out of " + target_mc.getBytesTotal());
      }

       

      var my_loader:MovieClipLoader = new MovieClipLoader();
      my_loader.addListener(my_listener);

       

      //my_loader.loadClip("little.swf", container_mc);
      my_loader.loadClip("cam01.swf", container_mc);