flex - How do I asynchronously poll a file using a flash timer without blocking the UI? -


I have a Flex application that chooses a remote XML file to detect frequent changes, but I've found that once the file hits a certain size, the election blocks the UI and the page makes it unresponsive for a short time

Is there any way to make sure that the call made from the server Or flash. Tiles. Timer class ran from asynchronous to main UI thread?

Brandon's Rights - The code that we write is always on the main thread; While the network call is only on a background thread, the call is operated on the main one.

One thing to keep in mind is that the WebServices and HTTPS service classes will try to sort your responses automatically, which means that the processing hit unexpectedly. Using the URL loader, on the other hand, you can provide more direct access to the feedback data, so that you can work more directly with it without the unnecessary overhead of that built-in processing.

In that light, if you think that you have to process the entire XML file, you may consider breaking it in any way, and processing those parts will have different functions To distribute in, just by doing this, the scope of a function can be allowed to continue updating the UI to the player, when you are processing that large bunch of text (one bit processing, getting out of the function, Rendering the UI, entering the next function, rendering etc.);

Hope it helps!


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -