Assume this scenario: SWF A loads SWF B. In SWF B is a library movieclip which has its linkage set for “export for actionscript”. After it’s loaded into SWF B, is there a way from SWF A to create a new class of this library movieclip (residing in SWF B’s library?)
Yes, if you know what you called your class, than just
var someClass:Class = [Loader instance].loaderContext.applicationDomain.getDefinition("fully.qualified.ClassName") as Class;
Excellent! Thanks bro!
Im also interested in where you got this information from. Is it somewhere in the flash documentation?
Huh… a difficult question… it could be someone else’s blog, or just another forum post like this, or reading some other stuff about ApplicationDomain class… really… I wish I could remember