----- Original Message -----
From: "christophe_jacquelin" <[email protected]>
To: <[email protected]>
Sent: Friday, February 20, 2009 11:01 AM
Subject: [flexcoders] Problem accessing data of an XML file
> Hello,
>
> I have an XML file with points inside :
>
> <root>
> <Point>
> <x0>343</x0>
> <y0>350</y0>
> <x1>343</x1>
> <y1>359</y1>
> </Point>
> <Point>
> <x0>344</x0>
> <y0>349</y0>
> <x1>344</x1>
> <y1>359</y1>
> </Point>
> </root>
>
> I use these instructions :
>
> <mx:Model id="pointModel" source="Data/Pts.xml"/>
> <mx:ArrayCollection id="EIMPoints" source="{pointModel.Point}"/>
>
> How to access to the point values in an actionscript function to draw
> the points ?
This should help:
http://www.trilemetry.com/clients/f3gse/partIII/partIIIa/workingWithData_e4x.cfm#
Truly speaking your XML doesn't describe points, it describes point pairs,
possibly line segments..
Paul
>
> Thank you,
> Christophe,