0 Replies Latest reply on Feb 14, 2008 12:47 PM by HooMaster

    Returning a value to caller

    HooMaster
      Does anyone know how to dynamically return a value to the caller of a function?

      For instance:

      <mx:Script><![DATA[
      private function getText_result(event:ResultEvent):void {
      this.****caller****.text = event.result as String;
      }
      ]]></mx:Script>

      <mx:RemoteObject id="userManager" showBusyCursor="true" destination="ColdFusion" source="project.components.textGrabber">
      <mx:method name="getText" result="Text_result(event)" fault="server_fault(event)" />
      </mx:RemoteObject>

      <mx:text id="text1" click="getText(paragraph3,blue)"/>
      <mx:text id="text2" click="getText(paragraph1,red)"/>
      <mx:text id="text3" click="getText(paragraph2,blue)"/>
      <mx:text id="text4" click="getText(paragraph3,red)"/>