[flexcoders] Creating an array of images (Using @embed in acrionscript?)

2005-10-20 Thread Eric Raymond
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

RE: [flexcoders] Creating an array of images (Using @embed in acrionscript?)

2005-10-20 Thread Matt Chotin
Couldnt you just do this in an Assets object? class Assets { [Embed()] public var blank:String; } var images:Assets = new Assets(); Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Raymond Sent: Thursday, October 20, 2005