# \[AS2\] easy one for you guys :)

**URL:** <https://forum.kirupa.com/t/as2-easy-one-for-you-guys/249540>\
**Category:** flash\
**Created:** [January 19, 2008, 10:06pm UTC](https://forum.kirupa.com/t/as2-easy-one-for-you-guys/249540 "2008-01-19T22:06:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmo](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@bmo](https://forum.kirupa.com/u/bmo)\
**Post date:** [January 19, 2008, 10:06pm UTC](https://forum.kirupa.com/t/as2-easy-one-for-you-guys/249540/1 "2008-01-19T22:06:20Z")

</div>

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.

```auto
 
var mcl:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
mcl.addListener(listener);
 
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.
