推 iceworld:修改後成功解決問題了! 感謝快速又詳細的說明呢!! :D 01/12 23:31
你也可以全部寫在第一格
這樣更新速率不會像你那樣是主場景frame rate的一半而已
onEnterFrame = function():Void {
progress = this.getBytesLoaded() / this.getBytesTotal();
bar._xscale = 100 * progress;
if (progress == 1) {
onEnterFrame = null;
gotoAndPlay("Main", 1);
}
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.228.81.130
※ 編輯: cjcat2266 來自: 61.228.81.130 (01/12 21:28)