var imageXML:XML = new XML('<imageList><image location="path/to/image1.jpg"/>'+

'<image location="path/to/image2.jpg"/></imageList>');
var s:List = new List();
s.dataProvider = imageXML.image; // this give a XMLList (e4x expression)
s.labelfield = "@location"; // to display location in the list. to
access attribute prefix "@" symbol

Regards,
Gautam.

On Wed, Aug 12, 2009 at 5:09 PM, mattcalthrop<[email protected]> wrote:
> Hi all.
>
> I am using FB4, and want to specify an XML file to be used as the 
> dataProvider for an <s:List> object.
>
> However, I just can't seem to work out how to do it.
>
> Have read manuals, done google searches, checked forums - all to no avail.
>
> Can anyone help me please?
>
> Format of XML file is thus:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <imageList>
>  <image location="path/to/image1.jpg" />
>  <image location="path/to/image2.jpg" />
>  <!-- ... -->
> </imageList>
>
> many thanks in advance!
>
> Matt
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>

Reply via email to