# Loaded swf issue

**URL:** https://forum.kirupa.com/t/loaded-swf-issue/290604
**Category:** Uncategorized
**Created:** [June 17, 2009, 2:06am UTC](https://forum.kirupa.com/t/loaded-swf-issue/290604 "2009-06-17T02:06:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tcabaco](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@tcabaco](https://forum.kirupa.com/u/tcabaco)
#### Post date: [June 17, 2009, 2:06am UTC](https://forum.kirupa.com/t/loaded-swf-issue/290604/1 "2009-06-17T02:06:34Z")

</div>

Hi  
I have a loaded SWF into a simple “holder” empty movieclip I have on the root stage. Inside that SWF I have two variables that have “stage.stageHeight” and “stage.stageWidth” in them. If I leave them on the code and test the root movie I get this error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.

So basically I can’t seem to get the variables to get the parent stage. Anyway to get around that?  
Thanks in advance,  
T
