But first, do not use mx:Model, it will not work with e4x expressions. Instead, use mx:XML.
Tracy Spratt Lariat Services Flex development bandwidth available ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Paul Andrews Sent: Friday, February 20, 2009 6:34 AM To: [email protected] Subject: Re: [flexcoders] Problem accessing data of an XML file ----- Original Message ----- From: "christophe_jacquelin" <[email protected] <mailto:christophe_jacquelin%40yahoo.fr> > To: <[email protected] <mailto:flexcoders%40yahoogroups.com> > 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# <http://www.trilemetry.com/clients/f3gse/partIII/partIIIa/workingWithDat a_e4x.cfm> Truly speaking your XML doesn't describe points, it describes point pairs, possibly line segments.. Paul > > Thank you, > Christophe,

