Re: [問題] 讀取進度條有殘像?!
你也可以全部寫在第一格
這樣更新速率不會像你那樣是主場景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)
推
01/12 23:31, , 1F
01/12 23:31, 1F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
問題
1
4