[flexcoders] Re: Need help processing XML into Flex app

2009-04-13 Thread Jim
--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Have you solved the namespace issue? Do you understand what I am asking? I guess I don't. I did add this to my mx:application tag: xmlns:ws=com.draper.* and had import com.draper.*; in my script section, but without those

RE: [flexcoders] Re: Need help processing XML into Flex app

2009-04-13 Thread Tracy Spratt
available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jim Sent: Monday, April 13, 2009 7:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Need help processing XML into Flex app --- In flexcod...@yahoogro mailto:flexcoders

[flexcoders] Re: Need help processing XML into Flex app

2009-04-10 Thread Jim
Tracy, With the children approach, I get: Error #1009: Cannot access a property or method of a null object reference. Could this be due to the fact that there are multiple Roles nodes and not just one, so that Roles isn't really a parent node except to one specific child? That is:

[flexcoders] Re: Need help processing XML into Flex app

2009-04-10 Thread Jim
Tracy, I got it! It turns out that Roles are returned as an array, since the Roles node repeats. So this did it: protected function displayRoles (item:Object, column:DataGridColumn):String { roleList = ; for (i = 0; i item.Roles.length; i++) { roleList = roleList +

RE: [flexcoders] Re: Need help processing XML into Flex app

2009-04-10 Thread Tracy Spratt
@yahoogroups.com Subject: [flexcoders] Re: Need help processing XML into Flex app Tracy, With the children approach, I get: Error #1009: Cannot access a property or method of a null object reference. Could this be due to the fact that there are multiple Roles nodes and not just one, so that Roles

RE: [flexcoders] Re: Need help processing XML into Flex app

2009-04-10 Thread Tracy Spratt
...@yahoogroups.com] On Behalf Of Jim Sent: Friday, April 10, 2009 11:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Need help processing XML into Flex app Tracy, I got it! It turns out that Roles are returned as an array, since the Roles node repeats. So this did it: protected function

[flexcoders] Re: Need help processing XML into Flex app

2009-04-09 Thread Jim
Tracy, Thanks for the lead. I'm having trouble getting it to recognize RoleName, though (there is only one role name per role, by the way). I did this for UserDescription just to prove the method: protected function displayName (item:Object, column:DataGridColumn):String { return

RE: [flexcoders] Re: Need help processing XML into Flex app

2009-04-09 Thread Tracy Spratt
, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jim Sent: Thursday, April 09, 2009 9:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Need help processing XML into Flex app Tracy, Thanks