blog.Ring.idv.tw

「Scene」骨子裡就是個「Frame」

「Scene」骨子裡就是個「Frame」

「Scene」骨子裡就是個「Frame」

我們做個實驗來驗證「Scene」這個特殊的「Frame」~

這裡我們製作了兩個Flash~它們分別為「Scene」和「Frame」~如下述:

Scene

Scene 1

trace("Scene 1:"+this);

Scene 2

trace("Scene 2:"+this);

Frame

Frame 1

trace("Frame 1:"+this);

Frame 2

trace("Frame 2:"+this);

從dump出來的結果中~我們可以發現上述兩個swf檔,最大的差異僅在於「trace()」function中的「Scene」、「Frame」兩個字串不一樣而已,由此即可證明Flash在發佈之前所對於「Scene」做的特殊處理,便是將它轉化成「Frame」的方式。

範例下載

2007-06-12 17:31:13

Leave a Comment

Copyright (C) Ching-Shen Chen. All rights reserved.

::: 搜尋 :::

::: 分類 :::

::: 最新文章 :::

::: 最新回應 :::

::: 訂閱 :::

Atom feed
Atom Comment