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.