7 Replies Latest reply on May 6, 2009 6:47 AM by kglad

    check if image is loaded before going to next loop


      is this a "valid" method to check if the current image is loaded before going to the next loop/image?


      var mcPics = _root.createEmptyMovieClip('mcPics', _root.getNextHighestDepth());
      mcPics._x = Stage.width + 1;
      for(var i=0; i<pic_arr.length; i++)
          mcPics['mc'+i] = mcPics.createEmptyMovieClip('mc'+i, mcPics.getNextHighestDepth());
          loadMovie(dir+pic_arr[i], mcPics['mc'+i]);
          while(mcPics['mc'+i]._width) continue;