I need to define my HTTPService in MXML so that the invoker of the 
service.send() call gets notified once the query result is ready 
(i.e. the service may be invoked from within class C1 or C2, so 
either C1 or C2 would get nofied depending on where the call was 
made from).

The following code is from the Cairngorm demo application, and shows 
how this can be done for a mx:RemoteObject. Is there way to do the 
same thing for a HTTPService?

Thanks, John

<mx:RemoteObject id="customerDelegate"
  source="com.iterationtwo.demo.business.CustomerDelegate"
  protocol="http"
  showBusyCursor="true"
  result="event.call.resultHandler( event )"
  fault="event.call.faultHandler( event )">
</mx:RemoteObject>

service = ServiceLocator.getInstance().getService
("customerDelegate");
var call = service.login( loginVO );
call.resultHandler = Delegate.create(Object(this), this.onResult);





 
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