Flash CS3 文件 |
|||
| ActionScript 3.0 程式設計 > ActionScript 3.0 簡介 > 舊版相容性 | |||
如同以往,Flash Player 也對先前發佈的內容提供完整的舊版相容性。能在舊版 Flash Player 中執行的任何內容都可以在 Flash Player 9 中執行。不過,由於 Flash Player 9 採用 ActionScript 3.0,在 Flash Player 9 中執行的新舊內容可能會有互通性的問題。這些相容性問題包括:
唯一的例外是,只要 ActionScript 2.0 SWF 檔先前未將任何內容載入其任何階層,就可以用 ActionScript 3.0 SWF 檔取代本身。ActionScript 2.0 SWF 檔可以呼叫 loadMovieNum(),然後將值 0 傳遞至 level 參數,藉以達到此目的。
但是,如果您使用 ActionScript 3.0 建立媒體播放程式,這個媒體播放程式就可以直接載入 ActionScript 2.0 內容。
下表摘要說明舊版 Flash Player 載入新內容和執行 Script 編寫的限制,以及不同 ActionScript 版本所撰寫的 SWF 檔在交互 Script 編寫方面有哪些限制。
|
支援的功能 |
執行階段環境 |
||
|---|---|---|---|
|
|
Flash Player 7 |
Flash Player 8 |
Flash Player 9 |
|
可以載入的 SWF 版本 |
7 和更早版本 |
8 和更早版本 |
9 和更早版本 |
|
包含的 AVM |
AVM1 |
AVM1 |
AVM1 和 AVM2。 |
|
可執行哪些 ActionScript 版本撰寫的 SWF |
1.0 和 2.0 |
1.0 和 2.0 |
1.0、2.0 和 3.0 |
|
支援的功能* |
建立內容的版本 |
||
|---|---|---|---|
|
|
ActionScript 1.0 和 2.0 |
ActionScript 3.0 |
|
|
可以載入的內容和執行程式碼的內容版本 |
僅 ActionScript 1.0 和 2.0 |
ActionScript 1.0 和 2.0,以及 ActionScript 3.0 |
|
|
可以交互 Script 編寫的內容版本 |
僅 ActionScript 1.0 和 2.0** |
ActionScript 3.0*** |
|
*在 Flash Player 9 或更新版本中執行的內容。在 Flash Player 8 或更早版本中執行的內容只能載入、顯示、執行和交互 Script 編寫 ActionScript 1.0 和 2.0。
**透過本機連線的 ActionScript 3.0。
***透過本機連線的 ActionScript 1.0 和 2.0。
Flash CS3
目前頁面: http://livedocs.adobe.com/flash/9.0_tw/main/00000011.html