3 Replies Latest reply on Apr 21, 2006 12:24 AM by codescodescodes

    MovieClipLoader

    codescodescodes Level 1
      Hi everyone. I'm having trouble finding the size of an image after I load it. Here's my code:

      _root.createEmptyMovieClip("movieHolder_mc", _root.getNextHighestDepth());
      var mcLoader:MovieClipLoader = new MovieClipLoader();
      var mcLoaderListener bject = new Object();
      mcLoaderListener.onLoadComplete = function():Void {
      trace(movieHolder_mc._height);
      trace(movieHolder_mc._width);
      };
      mcLoader.addListener(mcLoaderListener);
      mcLoader.loadClip("pictures/image1.jpg", "movieHolder_mc");

      the result that I get is:

      0
      0

      why is that when my image is 100x100?
      how can I make Flash recognize the right size of my image?