Hi Jeremy,
I did the same whit a tree, 
then i did have to parse the xml and putt on the img,
here is a short code snipp,

/////////////////////////////////////////////////

[Embed(source="images/folder.gif")]
[Bindable]
public var imgFolder:Class;

var newItem : XMLList = new XMLList(<element label={fileList
[f].fileName} path={fileList[f].path} isBranch={fileList[f].children} 
icon="imgFolder"/>);

/////////////////////////////////////////////////

this wath i have done to get the embeded img into my xml.

hope this helps.

Cato Paus


--- In [email protected], Jeremy Tooley <[EMAIL PROTECTED]> wrote:
>
> I have an application I am working on where the datagrid gets 
populated 
> from an xml file and the images are loaded in from there as well. 
There 
> are only 2 images and I was wondering if it would be better to 
embed the 
> image and base it on a predetermined value.
> 
> Here is my app so far.
> 
> http://www.wemadethat.com/gov/UVSBack3.html
> 
> If you click on the capability matrix you can see the green x's get 
> loaded over and over. I am just wondering if there is a better way.
> 
> Thanks
> Jeremy
>


Reply via email to