作者cjcat2266 (CJ Cat)
看板Flash
标题Re: [问题] 读取进度条有残像?!
时间Mon Jan 12 21:28:30 2009
你也可以全部写在第一格
这样更新速率不会像你那样是主场景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)
1F:推 iceworld:修改後成功解决问题了! 感谢快速又详细的说明呢!! :D 01/12 23:31