Ryan:
I'm not sure if this is what the previous poster was saying....but my suggestion would be to make a private class variable in your command.
private originalVO:MyVO;
execute()
{
originalVO = myMethodEvent.MyVO;
delegate.MyMethod( originalVO );
}
onResult(result:Object)
{
//use originalVO here to and can also use whatever is sent back in the result event
}
Are you seeing a down-side to this?
Are you seeing a down-side to this?
Sam
On 10/18/06, Thomas <[EMAIL PROTECTED]> wrote:
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
![]()
SPONSORED LINKS
Software development tool Software development Software development services Home design software Software development company
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
- [flexcoders] Access Cairngorm Value Objects in the onRes... Bjorn Schultheiss
- [flexcoders] Re: Access Cairngorm Value Objects in ... Thomas
- Re: [flexcoders] Re: Access Cairngorm Value Obj... Sam Shrefler
Reply via email to

