//加载声音 var sound:Sound=new Sound(); sound.load(new URLRequest("1.mp3")): //声明声道 var soundChanne:SoundChannel=sound.play(); //修改音量为一半 var soundTF:SoundTransform=new SoundTransform(); soundTF.volume=0.5; soundChanne.SoundTransform=soundTF;
原文:https://www.cnblogs.com/zqiang0803/p/9466793.html