Try this out in your sub-loaded swf
var tClass:Class = getDefinitionByName("Box") as Class;
addChild(new tClass());
hth,
Rob
On Fri, 01 Jun 2007 12:15:09 -0400, Smith, Philip <[EMAIL PROTECTED]> wrote:
If a graphical library linkage element you want to
add/attach is in the host .swf library (ie 'Box' class), how you would
access it from a sub-loaded .swf without throwing an error?
subSWF->addChild(new Box()) --undefined.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Friday, June 01, 2007 12:01 AM
To: [email protected]
Subject: Re: [Flashcoders] Flash C3 and Embedding resources
[Embed] is Flex only, because FlexBuilder doesn't have a library, like
the Flash IDE has.
_______________________________________________
[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