Check the cumulative status of onLoadInit in a for statement
Posted
by jonobr1
on Stack Overflow
See other posts from Stack Overflow
or by jonobr1
Published on 2010-06-11T18:49:18Z
Indexed on
2010/06/11
18:52 UTC
Read the original article
Hit count: 199
In a setup like this is it possible to check the cumulative status of all onLoadInit
?
for(var i:Number = 0; i < limit; i++) {
var mcLoader:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(mc:MovieClip) {
trace(i + " is finished loading!");
}
mcLoader.addListener(mclListener);
mcLoader.loadClip(some_image_path, someMovieClip);
}
Initially I was thinking that I could pass an array of Boolean
's, but I'm not really sure where to add that checkpoint, because a flash frame doesn't keep looping. Would I have to add it to an onEnterFrame()
?
© Stack Overflow or respective owner