jump to navigation

This is NOT the official website of AvantBiz Consulting Limitd but just some casual discussions about various topics. Please visit www.avantbiz.com if you need our professional services.

Understanding the changes in the display API in ActionScript 3.0 April 4, 2007

Posted by eddie in : Computer 電腦,Flash , trackback

官網的一篇基礎教學:

http://www.adobe.com/devnet/actionscript/articles/display_api.html

針對 display 在 AS2 與 AS3 之間的改變。

要注意的重點在於:

1. 以前我們觀念中都是對 MovieClip 在作事情,現在要想像 所做的事情 都是發生在 記憶體 中,然後 必須 將做出來的東西 加到 某個 Container 中,才會顯示在 Stage 上。

2. 以前的 MovieClip,現在已經被重構其繼承架構,所以若是你要做的事情不是太複雜,不需要真的產生一個完整的 MC 的話,其實可以考慮建立其父類別的物件,譬如 Sprite。

3. 繪圖 API,也不再是直接透過 MovieClip 進行,而要透過 graphics 達到,這點,知道一下即可。

4. 事件處理程序,你必須越來越習慣 addEventListener,知道一下即可。

Comments»

no comments yet - be the first?