as 3 中的一些变化

      :: Flash :: 2006-2-28 15:23
今天用as 3 中的socket重写 irc,需要一个交互层级的动作,结果弄了很久。
depth的管理现在由 DisplayObjectContainer 控制,一时很不习惯

试了下,总算解决了

以下是一些as2常用的函数,已经被del掉了
__proto__ Property Removed.
In AS3, direct manipulation of the prototype chain is not allowed. To create a subclass, use the extends statement in your subclass declaration. For information about an object's inheritance tree and data type, use the new reflection API flash.util.describeType().

getURL() Method Removed.
_url removed
See URLLoader class.

swapDepths() Method Removed.
In AS3, you can use the methods of the DisplayObjectContainer class, such as addChildAt to achieve similar functionality

toString() Method Removed.


startDrag()
stopDrag()
flash.display.Sprite This function is no longer global, but is still available as a method of the Sprite class.


#endinitclip Removed.
#include Removed
#initclip Removed.
See the include statement for similar functionality.
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}