I don’t know of any way to block for async network calls.

On 6/2/10 6:59 PM, "Richard Rodseth" <[email protected]> wrote:






I know this sounds terrible, but is there a way to wrap an asynchronous call in 
one which blocks while waiting for it to complete?

I'm loading XML via URLLoader to configure a mock API implementation and am 
limited in what I can change in the main application architecture. So I need a 
way to block while loading the configuration file. I've tried setting a 
_loadState variable and looping while it's set to loading, but that didn't seem 
to do the trick.





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to