how is it that the parameters being passed in the loaderListener.onLoadProgress function a reference of the mc doing the events? i’m having a hard time understanding this. :-/
var mcl:MovieClipLoader = new MovieClipLoader();
somBtn.onRelease = function() {
mcl.loadClip("some.swf",someMc);
};
var loaderListener:Object = new Object();
loaderListener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
txtLoaded.text = String(Math.floor(bytesLoaded/bytesTotal*100))+"% loaded";
mcProgress._xscale = bytesLoaded/bytesTotal*100;
mcl.addListener(loaderListener);
};
please can someone explain this to me in layman terms would very much be appreciated.
thank you