# Scope Problem? - I can't refer to the main document

**URL:** https://forum.kirupa.com/t/scope-problem-i-cant-refer-to-the-main-document/258691
**Category:** flash
**Created:** [April 26, 2008, 9:28pm UTC](https://forum.kirupa.com/t/scope-problem-i-cant-refer-to-the-main-document/258691 "2008-04-26T21:28:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)
#### Post date: [April 26, 2008, 9:28pm UTC](https://forum.kirupa.com/t/scope-problem-i-cant-refer-to-the-main-document/258691/1 "2008-04-26T21:28:43Z")

</div>

I have an external class definition for my project. It has a class inside it. That class has an event listener. I have another class, at the same level as my other class, that I need to be able to access from inside the event listener. Here is a diagram:

Documentment.as

–\> Different Class

–\> Class  
------\> EventListener

Now, is there a way I can just refer to the whole document? I tried root, but it gives me an object, that I can’t seem to cast into anything. Any ideas?
