Hi,
I'm trying to embed a bunch of images into an array instead of a string.
I think my failure to do that comes from the fact that I don't know
what this syntax actually does:

[Embed(source="/assets/lock.png")]
var lockImage:String;

I understand that this causes lockImage to somehow get a string that
represents the embedded image but I'm not sure how this happens - does
the compiler just "knows" to pick the string var that is defined right
after it?

in that in mind I tried the following:

var viewImages:Array = new Array();
[Embed(source="/assets/lock.png")]
viewImages["lockImage"];

in the hope that this string will get into the array under "lockImage"
but as expected it didn't work.

Any ideas?





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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/
 



Reply via email to