Skip to main content
Inspiring
March 3, 2009
Question

How to know when loaded ??

  • March 3, 2009
  • 1 reply
  • 274 views
Hi all,
I'm using this to load pictures from an array called "photos" (images are held locally on the server) and it works fine:

var loadListener:Object = new Object();
loadListener.onLoadInit = function(mc:MovieClip) {
mc._x = (Stage.width/2)-(mc._width/2);
mc._y = (Stage.height/2)-(mc._height/2+50);
};
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
var nextPhoto:String = photos
;
var photoHolder:MovieClip = _root.createEmptyMovieClip("photoHolder", 1);
mcLoader.loadClip(nextPhoto, photoHolder);
This topic has been closed for replies.

1 reply

Inspiring
March 3, 2009
I'll try this again with "Attach code" : )