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

    Returning a value to caller

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

      For instance:

      private function getText_result(event:ResultEvent):void {
      this.****caller****.text = event.result as String;

      <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: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)"/>