Actionscriptはムービークリップに書き込まれている
メインのタイムライン第1フレームに置くだけで動作します。とのこと
this.onEnterFrame = function() {
nParcent = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
//何%読み込んだか計算してnParcentに代入
_xscale = nParcent;
//それを_xscale(幅)に代入
if (_xscale == 100) {
//100%読み込んだ時点で再生
_root.play();
}
};
_root.stop();
this.onEnterFrame = function() {
nParcent = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
_xscale += (nParcent-_xscale)/5;
//読込済%−幅÷5を幅に加算していく
if (_xscale>=99) {
_root.play();
}
};_root.stop();
控えめで素敵です。
_xscale = 0;
_root.stop();
this.onEnterFrame = function() {
nParcent = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
if (_xscale<nParcent) {
_xscale += 2;
}
if (_xscale == 100) {
_root.play();
}
};this.onEnterFrame = function() {
nParcent = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
nParcent_txt.text = Math.round(nParcent)+"%";
};
_root.stop();if (nParcent == 100) {
_root.play();
}this.onEnterFrame = function() {
nParcent = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
nParcent_txt.text = Math.round(nParcent)+"%";
if (nParcent == 100) {
_root.play();
}
};
_root.stop();