Hi, That was the problem. Many thanks!
CK On Jan 19, 2008, at 1:45 PM, Sherif Abdou wrote: > > and i Noticed that ur xml is not formed well, have no idea if that > is just formatting error from the email or what > here is one of them > <genre>Crime/ Drama<genre> > it should be > <genre>Crime Drama</genre> > > ----- Original Message ---- > From: CK <[EMAIL PROTECTED]> > To: flexcoders@yahoogroups.com > Sent: Saturday, January 19, 2008 3:36:45 PM > Subject: Re: [flexcoders] Populating DataGrid > > Hi, > > An unterminated element in the XML. Thanks. > > Chris > On Jan 19, 2008, at 1:19 PM, Clint Tredway wrote: > > > > > 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.cynergys ystems.com > > E. clint.tredway@ cynergysystems. com > > > > > > > > From: [EMAIL PROTECTED] ups.com > > [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of CK > > Sent: Saturday, January 19, 2008 3:21 PM > > To: [EMAIL PROTECTED] ups.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] 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. > >