+ Start a Discussion

Flex Toolkit and Synchronous Calls


I was wondering if it were possible to make synchronous calls using the flex toolkit (Adobe flex toolkit for Apex). If not, does anyone have ideas of what method I should use to wait for a series of asynchronous calls to finish before executing a function?


Message Edited by Jashugan on 06-20-2007 05:28 PM

Ron HessRon Hess
no, synchronous calls are not the way of Flex.

you can set an event to notify you when the series is complete.

take a look at how QueryIterator.as does this to support query/queryMore

this src is inside the src/com/salesforce directory if i recall.
OK, I will look at the source, and see if I can't figure it out.

Message Edited by Jashugan on 06-21-2007 04:16 PM