只是一个关于如何使预加载器向后动画的快速问题。因此,随着负载数量的增加,条形的宽度会减小。
这是我的代码
onClipEvent (enterFrame) {
loading = _root.getBytesLoaded();
total = _root.getBytesTotal();
if (percent == undefined) percent = 0;
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per*9.70;
if (percent>99) {
_root.gotoAndStop(2);
}
}
非常感谢,
马特