ActionScript 3 - First steps VI

      失落的学习 2005-10-24 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.
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}