Hi guys, I have been looking into the best way to pull in library symbols (at compile time) from flash for quite some time now... but one last hurdle is really frustrating me.
I found the best way is to load in your "asset" swf using a URLLoader, loadBytes and loaderContext to load the classes into the ApplicationDomain. The problem with this method is that you won't get code hinting when writing your code. The other option is to add your assets SWC to the library path... but this has one fatal flaw. Whilst you can access your classes with code hinting, you are unable to use getDefinition without first having a reference to your class in your application. This sucks when trying to create dynamic content using something like getDefinitionByName or ApplicationDomain.currentDomain. I found out the solution to this is to add a line to the compiler: -include-libraries <pathTo>Assets.swc, but this just seems a really fudged method. Is there no other way to pull out classes from my SWCs dynamically? -- View this message in context: http://www.nabble.com/Pulling-classes-from-a-SWC-tp20427607p20427607.html Sent from the FlexCoders mailing list archive at Nabble.com.

