Is it possible to treat Flex' events in a synchronous way?
I'm using flex4 and actionscript, and need to 开发者_StackOverflow中文版treat an event in a synchronous mode. Is it possible that? More exactly, i want to execute some queries in a database, and need to be synchronously. Any suggestions?
Nope. The FlashPlayer execution model doesn't allow that. If you really need to do that a lot, I suggest you create a domain specific markup/scripting language, or create a library to help arranging the code in a concise, clear and linear manner (eaze demonstrates, how you can do that with chaining).
greetz
back2dos
精彩评论