Try this: Import mx.utils.ObjectUtil
And then trace out the result to make sure you are getting something back by doing this trace(ObjectUtil.toString(evt.result)) Clint Tredway Cynergy Systems | Consultant 706 7th St SE, Washington DC, 20003 W. http://www.cynergysystems.com E. [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of CK Sent: Saturday, January 19, 2008 3:21 PM To: flexcoders@yahoogroups.com 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] <mailto:ck%40bushidodeep.com> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.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. > >