Threads in Flash and Flex

2019-03-27 16:39发布

问题:

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