# Is there a way to refer to the main instance of the document class?

**URL:** https://forum.kirupa.com/t/is-there-a-way-to-refer-to-the-main-instance-of-the-document-class/267268
**Category:** flash
**Created:** [July 30, 2008, 7:57am UTC](https://forum.kirupa.com/t/is-there-a-way-to-refer-to-the-main-instance-of-the-document-class/267268 "2008-07-30T07:57:07Z")
**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: [July 30, 2008, 7:57am UTC](https://forum.kirupa.com/t/is-there-a-way-to-refer-to-the-main-instance-of-the-document-class/267268/1 "2008-07-30T07:57:07Z")

</div>

Okay - the main document class can be referred to as ‘this’ in the first frame. Is there another way to refer to it though?

I took and made a static variable of the same type and stored the instance… that has to be the wrong way to do it 🙂
