ActionScript2转ActionScript3

非常值得一看的教程,由AsWing的作者iiley所写。点击下面的链接下载:

ActionScript2转ActionScript3

下面是目录:

AS2 转AS3.......................................................................................................................................1
第 语言相关的转换.........................................................................................................3
1. 类(Class)的转换...........................................................................................3
2. 方法(Method)的转换....................................................................................4
3. 变量(Variable)的转换................................................................................5
4. 语言上其他方面的转换注意事项.......................................................................6
第 可视元素(MovieClip, Button…)的转换......................................................7
1. 主要机制的变化...................................................................................................7
2. 主要的可视元素类介绍.......................................................................................7
3. 使用注意...............................................................................................................8
第 事件的转换...............................................................................................................10
1. 监听 Handling the events)...........................................10
2. 事件类(Event classes)..........................................................................11
3. 事件流(Event flow).................................................................................11
第 其他转换...................................................................................................................14
1. 数(Number)的转换......................................................................................14
2. 映射(Map)的更好实现方法..........................................................................14
3. Interval timer的实现有更多选择...........................................................15
4. 更多强大的新功能.............................................................................................15
第 总结与建议...............................................................................................................16