Hi, when your commands implemented the IResponder interface, you could
easily keep track of the data being sent and compare it within your
onResult method.

To do so, just hold a copy of your VO or whatever you want to track in
your command instance and thus, because it is the one responsible for
handling the result, you have instant access to the data.

Cheers, Thomas.


--- In [email protected], "Bjorn Schultheiss"
<[EMAIL PROTECTED]> wrote:
>
> Yeah use the async token.
> 
>  
> 
> Execute() {
> 
> Var call:AsyncToken = delegate.myMethod(myVO);
> 
> Call.token = myVO;
> 
>  
> 
>  
> 
> onResult(e) {
> 
> e.token as VO
> 
>  
> 
> J
> 
> Lifes easy with Flex 2
> 
>  
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of digitalbackcountry
> Sent: Wednesday, 18 October 2006 1:32 PM
> To: [email protected]
> Subject: [flexcoders] Access Cairngorm Value Objects in the onResult
Method
> 
>  
> 
> Hopefully a quick question. Is there a way for me to access the Value
> Object that is passed with the event in the onResult method for that
> event?
> 
> So in my Command class I have an execute method and an onResult
> method. The execute class calls the method on the specified delegate
> passing the Value Object:
> 
> delegate.MyMethod( myMethodEvent.MyVO );
> 
> In my on result method, is there any way for me to access MyVO?
> Something like event.MyVO?
> 
> Thanks,
> 
> =Ryan
>





--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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