6 Replies Latest reply on Oct 5, 2007 8:50 AM by kglad

    dynamic image loading

    miquael Level 1
      I'm trying to load external images (.jpg) into EmptyMovieClips in a special situation. This is something that is generally easy to do with such:

      var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());
      var mcLoader:MovieClipLoader = new MovieClipLoader();
      mcLoader.loadClip("images/01-The-Beatles-Sgt.-Peppers-.jpg", container);

      function onLoadInit(mc:MovieClip) {
      trace("onLoadInit: " + mc);

      This works perfectly when inserted into the main timeline of a blank FLA.

      Yet, in my situation the actually images are not loading into the emptyMovieClips as done above. The problem probably has something to do with the above code being adapted into a function which sits on the timeline of a Linked MC ("node"). Here is the code (with some extra stuff that may or may not be relevant to the essential process that is shown above):