# Stage is null within my Document Class

**URL:** https://forum.kirupa.com/t/stage-is-null-within-my-document-class/320839
**Category:** flash
**Created:** [April 3, 2011, 1:37am UTC](https://forum.kirupa.com/t/stage-is-null-within-my-document-class/320839 "2011-04-03T01:37:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sebby64](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@sebby64](https://forum.kirupa.com/u/sebby64)
#### Post date: [April 3, 2011, 1:37am UTC](https://forum.kirupa.com/t/stage-is-null-within-my-document-class/320839/1 "2011-04-03T01:37:19Z")

</div>

Hey guys, I’m extremely confused at what is happening…

I keep on getting “cannot access property of a null object” errors. With the debugger I pinpointed my issue at the line where I write stage.stageWidth.

So somehow the stage is null. This is within my Document class which is linked with the .fla. The strange part is that I haven’t had this problem until just recently.
