Unfortunately this doesn’t work.
I want to load a picture into a mc: list_0.listA.container.
When this is done, the mc list_0 must play.
When the first picture is loaded into list_0.listA.container, the second picture must be loaded into list_01.listA.container, when done: play.
The problem is in the loadListener.onLoadCompete function, because I can’t target the loaded movieclip as target_mc. So I tried this, but that doesn’t work. I don’t see the resolution:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var loadListener:Object = new Object();
loadListener.onLoadComplete = function(target_mc:MovieClip){
for (var i:Number = 0;i<4;i++){
if(target_mc == ["_level0.list_"]+i.listA.container){
_root["list_" +i].play();
}
}
//list_0.play();
//list_1.play();
//list_2.play();
//list_3.play();
}
mcLoader.addListener(loadListener);
for (var i:Number = 0;i<4;i++){
mcLoader.loadClip("movies/pic_" + lSort* + ".jpg", _root["list_" + i].listA.container);
}