5D艺术网首页
商城
|
资讯
|
作品
|
博客
|
教程
|
论坛
登录
注册
加为好友
发短消息
来自:
性别:秘密
最后登录:2010-03-02
http://wyongedu.5d.cn/
Love is like a butterfly. It goes where it pleases and it pleases where it goes
首页
|
新闻
|
话题
|
博客
|
相册
|
艺术作品
|
社交关系
|
留言板
|
社交圈
2005/10/24 | ActionScript 3 - First steps VI
类别(失落的学习)
|
评论
(0)
|
阅读(34)
|
发表于 13:26
As Aggelos mentioned in the comments to First steps IV we don't need a MovieClip object for our examples. In ActionScript 2 all we had to create visuals were MovieClips (we forget about TextFields and Buttons for the moment) . In ActionScript 3 the functionality of MovieClips is spread under different classes along a very deep inheritance tree. The docs state, that MovieClip is a sprite with a timeline.
So, since we don't have a timeline, a Sprite instead of a MovieClip would be sufficient for our examples.
If you like to go one step further, you need take a look at the inheritance chain of the Shape class. Here you can see, that Shape would be an option too, at least if we don't need interaction with mouse or keyboard.
The new object model gives us a lot of possibilities to optimize our movies, which is great.
Also please notice, how fast the new livedocs are. Loading time is reduced from a minute to seconds for me. Great job.
0
评论
Comments
日志分类
首页
[192]
失落的感情
[27]
失落的学习
[30]
失落的时间
[5]
失落的网络
[85]
失落的自己
[42]
失落的朋友
[3]