this works evt.result.dvd.*
----- Original Message ---- From: CK <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, January 19, 2008 3:21:25 PM Subject: Re: [flexcoders] Populating DataGrid Hi, Yes using e4x, however evt.result.dvd, did not populate the grid. Chris On Jan 19, 2008, at 1:08 PM, Sherif Abdou wrote: > > evt.result.dvd instead, ur using e4x correct? > > ----- Original Message ---- > From: CK <[EMAIL PROTECTED] com> > To: [EMAIL PROTECTED] ups.com > Sent: Saturday, January 19, 2008 2:20:36 PM > Subject: [flexcoders] Populating DataGrid > > Hi all, > The following shorter code renders the dataGrid, but without data. > > <?xml version="1.0" encoding="utf- 8"?> > <mx:Application xmlns:mx="http://www.adobe. com/2006/ mxml" > layout="absolute" creationComplete= "dvdData. send()"> > <mx:Script> > <![CDATA[ > import mx.rpc.events. *; > import mx.collections. *; > import mx.controls. *; > [Bindable]private var dvdCollection: ArrayCollection; > > private function dvdCollectionHandle r(evt:ResultEven t):void > { > dvdCollection = evt.result.dvdColle ction.dvd; > } > ]]> > </mx:Script> > <mx:HTTPService id="dvdData" url="assets/ dvdCollection. xml" > result="dvdCollecti onHandler( event)" /> > > <mx:DataGrid x="56" y="250" width="950" > dataProvider= "{dvdCollection} " /> > </mx:Application> > > ------------ --DVD Collection-- --------- ------- > dvdCollection. xml > > <?xml version="1.0" encoding="iso- 8859-1"?> > <dvdCollection> > <dvd> > <title>Pulp Fiction</title> > <genre>Crime/ Drama<genre> > <rating>R</rating> > <actors>John Travolta,Sam Jackson</actors> > <directors>Lawrence Bender</directors> > <plot>Gangsters, Boxers and Dancing</plot> > </dvd> > <dvd> > <title>The Professional< /title> > <genre>Crime/ Drama<genre> > <rating>R</rating> > <actors>Jean Reno, Natalie Portman</actors> > <directors>Luc Besson</directors> > <plot>Assassin Becomes a Nanny</plot> > </dvd> > > </dvdCollection> > > On Jan 18, 2008, at 12:34 PM, Merrill, Jason wrote: > > > > > I wasn't really about "posting ettiquite", :) I just thinking how > > you can get others to better repond to get the answers you need. > > > > Also, where do you declare new XML() in your code, I didn't see it. > > > > Jason Merrill > > Bank of America > > GT&O L&LD Solutions Design & Development > > eTools & Multimedia > > > > Bank of America Flash Platform Developer Community > > > > > > > > > > > > > Looking for last minute shopping deals? Find them fast with Yahoo! > Search. > > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ