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

Reply via email to