How can I load a local resource synchronously in Flex 3?
-
16-09-2019 - |
Question
I want to store some test data for a FlexUnit test in small XML files in my Flex project, and access them trivially for the flex test. How can I load these bits of data synchronously? HTTPService
is the way I'd be loading them _a_synchronously, but adding event handlers to my test cases seems like a bit of overkill.
Solution
see this post for a similar sort of thing
OTHER TIPS
To the best of my knowledge, there is no support for synchronous network & file I/O -- all such activity happens on the background thread, and is exposed to the main thread with event handlers.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow