We're trying to create an (associative) array of images in
actionscript. Is there a way to embed an image using an "inline
syntax"? The best I've been able to do is this which is a bit cumbersome.
[Embed(source="assets/blank.gif")]
static var blank:String;
...
images["blank"] = blank;
This would be easier if we could use the @embed syntax, but as far as
I understand it, this only works in mxml, and not in actionscript.
I'd love to do just this:
images["blank"] = @embed('assets/blank.gif');
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/