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.

Was it helpful?

Solution

see this post for a similar sort of thing

Load xml file in flex before application start/intialises

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