--- In [email protected], "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 it still runs fine.
After I sent you the note about looping through the array, I discovered that
Flex is seeing an array only if there are multiple occurrances. If there is
just one role, it treats it as a regular node, so no looping is required. So
my loop became:
roleList = "";
if (item.Roles.length == undefined) {
roleList = item.Roles.RoleName;
}
else {
for (i = 0; i < item.Roles.length; i++) {
roleList = roleList + item.Roles[i].RoleName + "\n";
}
}
return roleList;
Oh, and the reason I started looping was to add the line break; when I first
got results back, the values were just strung together like role1 role2 role3.
Jim