■ サウンドの読み込み/再生の完了を待って処理を実行するには
//メインタイムラインのフレームアクション
this._sound
= new Sound();
this._sound.onLoad
= function(theResult)
{
if (theResult){
_txt.text = "読み込み完了";
this.start(0, 999);
}
};
this._sound.loadSound("bgm01.mp3",false);
--------
サンプル2
//メインタイムラインのフレームアクション
this.loopCount_num =
0;
this._sound = new Sound();
this._sound.onSoundComplete
= function() {
loopCount_num++;
_txt.text = "繰り返し:" +
loopCount_num + "回目";
this.start();
};
_sound.loadSound("bgm01.mp3",
true);

