Listen before you send. [Bindable].

--- In [email protected], "vestcomprogrammer"
<[EMAIL PROTECTED]> wrote:
>
> I have the follwing code and I have to click on the button twice
to
> get the value that the web services send back.  Is there a way to
> fix this problem?
>
>
>
> <mx:Script>
> <![CDATA[
>   public function GetHelloWorld():void     
>   {
>    CustomerServices.HelloWorld.send();           
>    temp =  CustomerServices.HelloWorld.result;
>    mx.controls.Alert.show(temp);
>   }
> ]]>
> </mx:Script>
>
> <mx:WebService
> wsdl="http://localhost/Flex2T_WebServiceTest/Service1.asmx?wsdl
> id="CustomerServices"
> fault="mx.controls.Alert.show(event.fault.faultstring)"
> >
> </mx:WebService>
>      
> <mx:Button click="this.GetHelloWorld();" label="Push Me"/ >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to