How will Flash's garbage collection handle the following scenario?
function loadAsset(url:String) {
this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
this.onLoadInit = function(target_mc:MovieClip) {
trace(target_mc + "...loaded");
}
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(this);;
mcl.loadClip(url);
}
loadAsset("foo.jpg");
loadAsset("bar.swf");
...
What happens to all the instances MovieClipLoader?
-James
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com