异步的动作脚本3.0 [英] Asynchronism in Action Script 3.0

查看:91
本文介绍了异步的动作脚本3.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道,在AS3中是如何实现异步?让我们在定时器类。定时器异步运行和调度的一些事件。好像是为自己创造一个新的线程。以及如何当计时器事件发生时,是线程安全的功能,叫什么?如何在AS3线程安全的实现?

I wonder, how is asynchronism implemented in AS3? Lets take the Timer class. A timer runs asynchronously and dispatches some events. Seems like it creates a new thread for himself. And how are the functions, called when timer event occurs, being thread safe? How is thread safety implemented in AS3?

推荐答案

AS3现在支持多线程的最新版本使用动作工人。你可以看看它是如何在这里使用这个preVIEW ...

AS3 now supports multi threading using "ActionScript Workers" in the latest build. You can see how it is used here in this preview...

http://www.bytearray.org/?p=4423

这篇关于异步的动作脚本3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆