■ SWFファイルのダウンロード状況を調べるには
サンプル1
//メインタイムラインのフレームアクション
this.stop();
this.onEnterFrame
= function(){
var loadedper_num = Math.floor(this.getBytesLoaded()
/ this.getBytesTotal()
* 100);
this.loading_txt.text
= loadedper_num + "%";
if (loadedper_num >=
100){
delete this.onEnterFrame;
this.nextFrame();
}
};
--------
サンプル2
//ボタンアクション
on (release) {
if (this._framesloaded >=
this._totalframes) {
this.play();
}
}

