Another possibility would be to assign a different result handler for each 
operation. you can do this declaratively via MXML or by using ActionScript.


<!-- via MXML -->
<mx:operation name="function1" result="function1Result(event)">
  <mx:request>
    <input>my input</input>
  </mx:request>
</mx:operation>

<mx:operation name="function1" result="function2Result(event)">
  <mx:request>
    <input>my input</input>
  </mx:request>
</mx:operation>


// via ActionScript
import mx.services.PendingCall

var pc:PendingCall = myService.function1.send();
pc.onResult = mx.utils.Delegate.create(this, function1Result)

Dirk.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to