use code instead:
import mx.services.*;
import mx.util.Delegate;
myWS = new WebService("myWebservice.asmx?WSDL");
myWS.onLoad = Delegate.create(this, getResult);
function getResult()
{
wsResult = myWS.getMyObject()
wsResult.onResult = Delegate.create(this, showResult);
}
function showResult(result)
{
trace(result);
trace(result.myProperty);
//do stuff, show stuff etc.
}
what are you expecting to get - is it an object of some kind?
Jason Merrill
Bank of America
GT&O Learning & Leadership Development
eTools & Multimedia Team
>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of [p e r c e p t i c o n]
>>Sent: Friday, April 06, 2007 3:00 PM
>>To: flashcoders
>>Subject: [Flashcoders] webservices question
>>
>>Hi Experts,
>>I've connected to a web service and can see the result fields
>>in the component inspector, but can't seem to get any values
>>into the text area the results are bound to.
>>
>>all i get is undefined...
>>
>>the storage type is complex and the data type is array. is
>>this correct?
>>
>>can anyone tell me how to access the elements in the results array?
>>
>>thanks
>>_______________________________________________
>>[email protected]
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com http://training.figleaf.com
>>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com