[AS2] easy one for you guys :)

I hate using _root in my code.

I have no clue what to do when I’m referencing from inside listeners though. For example, a MovieClipLoader listener.

var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
mcl.loadClip("somefile.jpg", some_mc);
listener.onLoadInit = function(loadedMC){
  trace(this); // will output "[object Object]"
  trace(this._parent) //will output undefined

Should not the this._parent trace leave you at the root? _level0? The only way I’ve been able to get out of it is using _root and I HATE using _root.

Please somebody, show me the error of my ways.