# Loaded SWF Problem

**URL:** https://forum.kirupa.com/t/loaded-swf-problem/276006
**Category:** flash
**Created:** [November 21, 2008, 6:29am UTC](https://forum.kirupa.com/t/loaded-swf-problem/276006 "2008-11-21T06:29:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![riveroaks](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@riveroaks](https://forum.kirupa.com/u/riveroaks)
#### Post date: [November 21, 2008, 6:29am UTC](https://forum.kirupa.com/t/loaded-swf-problem/276006/1 "2008-11-21T06:29:37Z")

</div>

I’ve got two flash files, main.FLA and page.FLA

my main.FLA loads page.SWF at runtime. I have code in page.FLA that accesses the stage property of a MovieClip called content that I have sitting in page.FLA. When I run page.SWF by itself I do not get any errors, but when I load that SWF into main.FLA at runtime, I get an error saying that I’m trying to access a null object reference.

Through testing I have concluded that this error is telling me that content.stage is null. Can anyone tell me why I can’t access the stage property of a MovieClip when I have loaded that SWF into another Flash file at runtime? It sure seems to me that if the code runs correctly in page.SWF, that I should be able to load page.SWF into my main flash file and still run the code with no problem.

Thanks.
