• 【设为首页】
  • 【收藏闪客居】
当前位置:主页>FLASH AS 编程>AS基础篇>AS 3.0>文章内容
  • ActionScript 3.0 VS 2.0 官方详细差别

  • 来源:Awblog 作者:AW 2006-06-30 【
有一些方法被彻底废除,包括一些8刚加入的函数,如 “loadBitmap”
call() chr() #endinitclip #include #initclip eval() set/getProperty() removeMovieClip() ....

官方地址 | HTML本地下载

看了一下MC的新定义,挺庄重的,有点MSDN的味道,我顺便翻译了一下
The MovieClip class inherits from the following classes: Sprite, DisplayObjectContainer, InteractiveObject, DisplayObject, and EventDispatcher. Unlike the Sprite object, a MovieClip object has a Timeline.

The MovieClip class is the base class for Flex components. However, while Macromedia supports some of the MovieClip interface for use in Flex applications, much of the interface has been overridden by Flex. For more information on using the MovieClip class with Flex, see Developing Flex Applications. The methods for the MovieClip class provide the same functionality as actions that target movie clips. There are also additional methods that do not have equivalent actions in the Actions toolbox in the Actions panel.

You can extend the methods of the MovieClip class by creating a subclass.

MC类由以下类继承而得:Sprite, DisplayObjectContainer, InteractiveObject, DisplayObject, EventDispatcher。和Sprite不同,一个MC对象拥有一个时间轴。

MC类是Flex组件的基础,关于Flex中使用MC的问题,可以参见“开发Flex应用程序”

你可以通过建立子类扩展MC类的方法,不必再劳驾ProtoType了(虽然我还是喜欢用ProtoType偷懒)

那么什么是Sprite呢:
The Sprite class is a basic display list building block: a display list node that can display graphics and can also contain children.
A Sprite object is similar to a movie clip, but does not have a Timeline. Sprite is an appropriate base class for objects that do not require Timelines. For example, Sprite would be a logical base class for user interface (UI) components that typically do not use the Timeline.

The Sprite class is new in ActionScript 3.0. It provides an alternative to the functionality of the MovieClip class, which has retained all the functionality of previous ActionScript releases in order to provide backward compatibility.

Sprite类是用于显示内容的基础,它是AS3.0新带来的(可免时间轴)。它为MC的功能提供一个折衷的选择,为适应向下兼容性保留了之前产品的一些功能。



上一篇:使用Flash9预览版编译As3.0   下一篇:ActionScript 3.0系列教程(1):与Flash9先来一次亲密接触
  • 用户名:新注册) 密码: 匿名评论
  • 评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)

Copyright © 2006-2008 flashas.net All Rights Reserved.
网站内容咨询: admin#flashas.net (#为@) 联系QQ:40777822 浙ICP备06033001号
(本网站最佳浏览解析度为1024*768, 建议使用IE 6.0或以上版本浏览器。)