Here is a simple one that works for me.  GetUserObject is the name of
the method I'm calling on the ASP.NET Webservice on the server.  It
takes a number as a parameter.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute">
        <mx:WebService id="remoteWS"
wsdl="http://www.mysite.com/WebService/myWebService.asmx?WSDL";
showBusyCursor="true" />        
        <mx:Button id="myButton2"
click="remoteWS.GetUserObject(3345096832)"  x="266" y="29" label="call
remote WS"/>
        <mx:Label x="22" y="65" text="Result:"/>
        <mx:TextArea id="ta0" x="266" y="91" width="199" height="288"
text="{remoteWS.GetUserObject.lastResult}"/>
        <mx:Label x="266" y="65" text="Result:"/>
</mx:Application>


Jason Merrill
Bank of America  
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community




Reply via email to