Embedding the image in your application would increase the application
filesize. I would rather suggest you to think of loading these images on
runtime.

You can load images on runtime using mx;Image or any other class (Loader
etc)...

-abdul

On 4/28/07, dougco2000 <[EMAIL PROTECTED]> wrote:

  Hi all,

I have an array of image names (of PNGs on my server), and I want to
load these all up in an object list of images so I can show them when
needed in my application.

I've found an oddity where some of these, sometimes, don't load
properly for whatever reason and are blank when I need to show them.
So I am thinking I should just embed them. But since I have 50+
images, I'd like to run a loop to embed each one, and all the examples
of embedding show doing something like:

[Embed(source="logo.gif")]
[Bindable]
public var imgCls:Class;

and then mapping to an image. I'd rather not fill up my code with 50
separate variable defines, any easy way to iterate through this?

thanks!

Reply via email to