Are threads possible in Flash, Actionscript and Flex just like in C# and Java?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Alas, there's no multithreading in Actionscript. However, you can fake it with pseudothreads (see link for more details), although this has its own problems.
回答2:
I'm working on a project that will use Pixel Bender to do computations on a separate thread. I will hopefully have something to blog soon. In the mean time please go vote for this feature request: https://bugs.adobe.com/jira/browse/ASC-3222
回答3:
I know this question is OLD, but incase youre still looking for a multithreaded solution in flash (hahaha). As of flex 3.4 there there are threads.
http://esdot.ca/site/2012/intro-to-as3-workers-hello-world
回答4:
Not at the present. You can use pseudo-threads if you want to. http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html