[flexcoders] Command classes that use multiple delegates

2006-07-28 Thread jrjazzman23
Hi,

In the case of a Command that uses multiple business delegates, what's
best practice for an onResult() knowing which remote call it's handling?  

thanks






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 





Re: [flexcoders] Command classes that use multiple delegates

2006-07-28 Thread JesterXL
Pass in a RelayResponder / Responder instead of the Command.  Like, 
flash.net.Responder, or your own custom class that implements Cairngorm's 
Responder.  Then, have that responder call specified onResult / onFault 
functions you've defined in your Command.

- Original Message - 
From: jrjazzman23 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, July 28, 2006 12:49 PM
Subject: [flexcoders] Command classes that use multiple delegates


Hi,

In the case of a Command that uses multiple business delegates, what's
best practice for an onResult() knowing which remote call it's handling?

thanks






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/
 




RE: [flexcoders] Command classes that use multiple delegates

2006-07-28 Thread Benoit Hediard
If your commnad is calling two different delegates, you might refactor it
into two independant commands and call them in a sequence.
The result would be nearly the same and it might me cleaner.

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de jrjazzman23
Envoyé : vendredi 28 juillet 2006 18:49
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Command classes that use multiple delegates

Hi,

In the case of a Command that uses multiple business delegates, what's best
practice for an onResult() knowing which remote call it's handling?  

thanks






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
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/