# Issues with stage instances in loaded external SWF

**URL:** <https://forum.kirupa.com/t/issues-with-stage-instances-in-loaded-external-swf/286313>\
**Category:** flash\
**Created:** [April 13, 2009, 5:45pm UTC](https://forum.kirupa.com/t/issues-with-stage-instances-in-loaded-external-swf/286313 "2009-04-13T17:45:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryjohnso](https://avatars.discourse-cdn.com/v4/letter/r/0ea827/32.png) [@ryjohnso](https://forum.kirupa.com/u/ryjohnso)\
**Post date:** [April 13, 2009, 5:45pm UTC](https://forum.kirupa.com/t/issues-with-stage-instances-in-loaded-external-swf/286313/1 "2009-04-13T17:45:12Z")

</div>

If I have two swf files and for simplicity sake I will call them A.swf and B.swf.

A.swf has a document class Main.as and loads in B.swf with a document class Content.as.

Now in B.swf I have a MovieClip on the stage with the instance name “box”. When I try to load B.swf into A.swf I get the following error.

ReferenceError: Error #1056: Cannot create property box on com.Content.

I know the issue stems from Flash’s default behaviour that automatically decalres stage instances because if I uncheck this option in the publish settings and explicitly declare the box property in my Content.as then I no longer have the Error.

What I want to know is there anyway to do this without turning off the automatic stage declaration ??

Thanks in advance.
