var sd_song:Sound;
var sd_channel:SoundChannel;function xInitSound_song():void {
sd_song = new Sound();
var url:String = “mp3/” + “Pissism-Blade.mp3”;
var urlReq:URLRequest = new URLRequest(url);sd_song.addEventListener(Event.COMPLETE,onCompleteSound_load);
sd_song.load(urlReq);
}function onCompleteSound_load(evt:Event):void {
trace(“—ロード完了”,evt.target);
}function xStartSound_song(evt:MouseEvent):void {
sd_channel = sd_song.play();
}xInitSound_song();
btn_play.addEventListener(MouseEvent.CLICK,xStartSound_song);
function xVolume0_song(evt:MouseEvent):void {
var st:SoundTransform = sd_channel.soundTransform
st.volume = 0
sd_channel.soundTransform = st
}
function xVolume0_song(evt:MouseEvent):void {
var st:SoundTransform = SoundMixer.soundTransform;
st.volume = 0;
SoundMixer.soundTransform = st;
}