0

プリローダーを逆方向にアニメーション化する方法に関する簡単な質問です。そのため、負荷数が大きくなるにつれてバーの幅が狭くなります。

これが私のコードです

    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);
    }
}

どうもありがとう、

マット

4

2 に答える 2

1

行を変更する

loadBar._width = per*9.70;

の中へ

loadBar._width = (100 -per)*9.70;

それを行うための迅速で汚い方法です

于 2009-10-07T11:44:35.847 に答える