■ 音量をコントロールするには
//メインタイムラインのフレームアクション
this._sound
= new Sound();
this._sound.attachSound("BGM01");
this._sound.start(0,
999);
this.up_btn.onRelease
= function(){
volume_num = _sound.getVolume();
if (volume_num <=
90){
volume_num += 10;
_sound.setVolume(volume_num);
_txt.text = volume_num;
}
};
this.down_btn.onRelease
= function(){
var volume_num = _sound.getVolume();
if (volume_num >=
10){
volume_num -= 10;
_sound.setVolume(volume_num);
_txt.text = volume_num;
}
};
this.left_btn.onRelease
= function(){
_sound.setPan(-100);
};
this.right_btn.onRelease
= function(){
_sound.setPan(100);
};

