Title: Mercury Email Signature

Can’t you just dispatch an event when the cache has the data available?  So in the first access case you dispatch the event when the service call returns.  In the second access case you just dispatch the event immediately.  Then you actually do the work in the event handler for the “dataReady” event.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Shlomi Cohen
Sent: Thursday, December 22, 2005 6:44 AM
To: '[email protected]'
Subject: [flexcoders] cairngorm - is it possible to have two Result Handlers for one call.

 

Hi

 

i'm trying to build a simple cache mechanism at the client side. now since services are async in Flex i need to notify the client who ask for data that the data is available

at first time this will take time for service to return but the second will be immediately

 

The problem i face is that :

I managed to delegate the service result to local method which delegates to the calling client method.

but when the data is already in the cache (no service call is made) the client method works but not able to send any event to its UI (the client is a view helper).

 

so according to trace everything is working but the dispatchEvent method does not take effect in this second attempt to get the data.

 

can someone help ?

 

Shlomi


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to