Re: [Flashcoders] questions about [embed] in AS3
[Embed] metadata tag is a Flex's functionality. To embed assets use [Library] in Flash. •Embedded asset classes Flex:http://livedocs.macromedia.com/flex/2/docs/1844.html Flash:http://livedocs.macromedia.com/labs/as3preview/docs/0054.html _ [EMAIL PROTECTED] wrote: i think [Embed] is a flex thing. i'm not sure on this. anyone else who can comment? the square brackets indicate compiler directive metadata. i think the flash compiler just ignores [Embed] Good luck, -- Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ 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
[Flashcoders] questions about [embed] in AS3
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
Re: [Flashcoders] questions about [embed] in AS3
august, this reply is not answering all your questions. could others please explain this further? i think [Embed] is a flex thing. i'm not sure on this. anyone else who can comment? the square brackets indicate compiler directive metadata. i think the flash compiler just ignores [Embed] since flex has no library, it uses the [Embed] convention instead. docs on it here: http://livedocs.macromedia.com/flex/201/html/embed_082_3.html August Gresens [EMAIL PROTECTED] wrote: 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 - Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. ___ 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