[Flash 8/AS 2.0] Web Service Connector Results Issues

Hello, I am currently trying to develop an application in Flash.

Currently I am working on trying to contact a webservice to get a list of course
names. I am getting the results but I cannot even parse them.

In the schema for my Web Services Connector, it prepopulates to say that it expects the results to be ArrayOfAnyType.

So I have this code in my on( result) call:


var x:Array = this.results; 
var y:XML = x[0];
trace(y);

The trace ouputs (whitespace added for readability):


<anyType xsi:type="ArrayOfAnyType">
     <anyType xsi:type="xsd:string">DOS</anyType>
     <anyType xsi:type="xsd:string">Danger Of Socks</anyType>
     <anyType xsi:type="xsd:string">socks, and why they are dangerous</anyType>
</anyType>

Now, when I try to go through that XML object and print values using this script:


var children:Array = y.childNodes;
    for(i = 0; i < children.length; ++i)
    {
        
        trace(" Value= " + children*.nodeValue);
    }

The trace responds:


Value= null
Value= null
Value= null

From what I have gathered in the help menu, Flash has two types of XML nodes, a node, and a textNode. nodeValue will always be nukll for a node but on a text node it will return what you would expect and I don’t know that I can convert between the two or force it one way or another. I don’t have a clue why it is like that but apparently that is how it works.

What can i do to get this data in?

Is there some way to get it to parse as an array? As far as we can tell, it should be going from the webservice as an Array, SOAP should convert to XML and then Flash should decode back to an array… it doesn’t seem to be working that way though.

If anyone can help, I would appreciate it and you can contact me at JasonWilsonTEM(AIM), jwils403@student.maconstate.edu(MSN) or blackknightnrm(Yahoo).

Also for more information, I am using Flash 8 Professional with AS 2.0. Using speciffically the web services component.

Thank you.