0 Replies Latest reply on Jan 5, 2007 8:47 AM by Mahesh Rao K

    Problem with WebService

    Mahesh Rao K
      I'm using webservice and when and I update the textarea with lastresult for first time successfully. When I try to call the webservice the second time to update thetextarea I get error:
      ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.

      Following is simple code:
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      import flash.events.*;
      import mx.events.*;
      import mx.controls.*;
      import flash.text.TextField;
      import flash.events.TextEvent;
      import mx.events.MenuEvent;
      import mx.collections.*;
      import mx.states.*;
      import mx.rpc.events.ResultEvent
      import mx.rpc.events.FaultEvent

      public function change(str:String):void{
      <mx:WebService id="Read" wsdl="" showBusyCursor="true"
      <mx:operation name="ReadFile">

      <mx:HBox width="100%" height="100%">
      <mx:Button label="one" id="one" click="change('one')"/>
      <mx:Button label="two" id="two" click="change('two')"/>
      <mx:Button label="three" id="three" click="change('three')"/>
      <mx:TextArea id="txt" width="100%" height="100%" htmlText="{Read.ReadFile.lastResult}"/>

      Kindly help me out, how to update textfield using lastResult, everytime I call webservice. This I need to fix within Fri evening. Please someone help me out with this !

      Warm regards,