|
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: 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
|
Title: Mercury Email Signature

