Ok,I see I did exactly like that :)
--- In flexcoders@yahoogroups.com, "Troy Gilbert" <[EMAIL PROTECTED]>
wrote:
>
> Yeah, you could do arrays, something like this:
>
> [Embed('myimage1.png')]
> private var myimage1:Class;
>
> [Embed('myimage2.png')]
> private var myimage2:Class;
>
> public var myimages:Array = [myimage1, myimage2];
>
> In fact, I wrote a PHP script to generate just this kind of stuff once.
> You'd point the PHP script at a folder and it would create an SWF that
> contained all of the assets in that folder embedded and retrievable by
> filename. The PHP script just automated the process above, with the
addition
> of some API that used a dictionary to associate filenames with the asset
> classes.
>
> I discuss it in more detail on my blog, http://troygilbert.com/.
>
> Troy.