hello all,
loading an xml file and looping through to attach movies and set vars. i have 2 vars that are images so i’m trying to use MovieClipLoader() but it only seems to affect the last image in the loop.
basically each movieclip has it’s own animation that needs to be visible until the image is loaded…but all animations are remaining visible after their respective images have loaded except the last one…
for(var i=0; i<numOfItems; i++){
var t = home.attachMovie("item","item"+i,i+1);
t.c_title = nodes*.childNodes[1].firstChild.nodeValue;
more vars ...etc, etc...
var myLoader = new MovieClipLoader();
var myListener = new Object();
var lod = myLoader.getBytesLoaded();
var tot = myLoader.getBytesTotal();
myListener.onLoadComplete = function(targetMC)
{
t.clock._visible = 0; // anim that runs until photo is loaded
}
myLoader.addListener(myListener);
myLoader.loadClip(nodes*.childNodes[10].firstChild.nodeValue,t.icon.inner); //loads photo
...more vars...etc, etc...
} //end for loop
never used moviecliploader before so am i just going about wrong or should not be using this method?
thanks