You need to make sure that a frame passes between the two calls.  If you call one right after another in your AS code they will be sent in the same network request and therefore will be combined in their responses.  So what you can do is call the first method, then do a callLater to call the second method.  That should break it up I think.

 

Matt

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of vuleman
Sent: Tuesday, September 19, 2006 5:10 PM
To: [email protected]
Subject: [flexcoders] Remote Object caching the results?

 

Hi everyone,
I have a page that makes a Remote Object call to the server. Since
it's taking too long, i split it up with 2 separate remote object
calls. One call will return the summary (which is really fast),
while the other RO call will retrieve the detail status (longer). If
i look at the call ouput, it looks as if Flex cache the faster, wait
for the slower one, and return both at the same time.

Output is as follow:

[Flex] Serializing AMF/HTTP response
Version: 3
(Message #0 targetURI=/151/onResult, .....)
(Message #1 targetURI=/159/onResult, .....)

Message #0 is the summary, and message #1 is the detail call. This
happen most of the time, but sometimes they do return separately,
which resulted in the behavior that I want (faster one return first,
slower later)

Does anyone know if this is the default Remote Object behavior? For
performance purposes? If so, how do I disable this feature and have
Remote Object call return as soon as they are completed?

Many thanks
Vu

__._,_.___

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

__,_._,___

Reply via email to