--- 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
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
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:
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 +
@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
...@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
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
,
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
8 matches
Mail list logo