Hello I just starting to learn AS3, making my way through the Mook "rough cuts". I just read the chapter on external assets, and I've some questions about this curious [embed] feature.
* I'm trying think of a precedent for this in another language, but can think of anything. The closest thing I could think of is the Java Class.getResource() method. Is this the intention? * I take it that this facility essentially gives you the ability to create your own symbol library. Is this right? * If so, I assume that one would create asset classes with static methods to return references to these symbols. These classes could be arranged in a "library" package of the developer's design. This would allow one to publish a SWF or SWC, and these classes would provide an interface to retrieving the symbols? Is this how this is typically used? * Initially declaring each asset with [embed] as a Class seemed strange. But since each one is really a symbol, which can be instanced, I guess it makes sense. Is this right? * I understand that the tight coupling between a class and it's assets are intentional with [embed]. It makes me wonder, however if there a way with Flex to manufacture SWF instances using a common class template? In other words, using mxml is there a way to manufacture a SWF of a certain type with compile time assets loaded into it's properties? (If so, could you point me to some documentation that would show me how to do this?) In general, I'd be interested in how people are using this feature in the field, especially for large projects. Thanks, August -- --------------------------------------------------------- -------------------------------------------------------- August Gresens Technical Director Black Hammer Productions, NYC [EMAIL PROTECTED] --------------------------------------------------------- -------------------------------------------------------- _______________________________________________ Flashcoders@chattyfig.figleaf.com 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