The stage object may never be accessible to the loaded content if it's 
never added to a display object.

The only way to access the stage property (directly) is to listen for the 
Event.ADDED_TO_STAGE event. Indirectly, you could have the base SWF call a 
method in the loaded SWF and pass a reference to the stage.


----- Original Message ----- 
From: Max Kaufmann
To: [email protected]
Sent: Friday, June 15, 2007 12:12 PM
Subject: SPAM-LOW: [Flashcoders] RE: loading CS3 swf into flex swf 
container


Oop, turns out it had nothing to do with flex.  It was crashing because I
used the "stage" handle in the constructor of my Document class, which
apparently isn't available to externally downloaded content, and I got a
null reference exception.

So what are the rules for when the stage is available to externally loaded
content?

Max Kaufmann l Technical Artist


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to