1. 在主場景前留2 個空的frame
2. 製作出任一長方形的movie clip , 加入實體名稱ex"loader"
3. 放置百分比Text Field 在上述的長方形方塊下 , 將變數名稱設定為"percent"
4. 第一個frame上設action , 內容如下 :
If (_framesloaded >= _totalframes)
Go to and Play ("start" ) <=== 在主畫面第一格設label
Else 加上2格的action
, so is frames 3
Set property ("/loader", X Scale) =
(_framesloaded / _totalframes) *100
Set Variable : "percent"=
(Int ((_framesloaded / _totalframes)*100))&"%"
End if
* If (_framesloaded >= _totalframes)
表示已下載的影格數大於等於總畫格數 , 表示電影已下載
就會跳至start的主畫面
5. 第2個frame上設action , 內容如下 :
Go to and Play (1)