[問題] SoundChannel與SoundTransform
請問各位大大:
SoundChannel.soundTransform 與 SoundTransform的差異性在哪呢?
我簡單測試了一下:
var sound:Sound = new Sound();
sound.load(new URLRequest("music.mp3"));
var myChannel:SoundChannel = new SoundChannel();
var mytransform:SoundTransform = new SoundTransform();
stage.addEventListener(MouseEvent.CLICK,go)
myChannel = sound.play();
function go(event:MouseEvent){
var aa = myChannel.soundTransform;
aa.volume -=0.1;
myChannel.soundTransform = aa;
}
與
var sound:Sound = new Sound();
sound.load(new URLRequest("music.mp3"));
var myChannel:SoundChannel = new SoundChannel();
var mytransform:SoundTransform = new SoundTransform();
stage.addEventListener(MouseEvent.CLICK,go)
myChannel = sound.play();
function go(event:MouseEvent){
mytransform.volume-=0.1;
myChannel.soundTransform = mytransform ;
}
看起來 SoundChannel 裡的 soundTransform,與 SoundTransform 沒什麼差異...
但是實際上這兩個的關係真的沒差嗎...?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.230.29.6
→
03/11 13:08, , 1F
03/11 13:08, 1F
→
03/11 13:09, , 2F
03/11 13:09, 2F
→
03/11 13:09, , 3F
03/11 13:09, 3F
→
03/11 13:09, , 4F
03/11 13:09, 4F
→
03/11 13:10, , 5F
03/11 13:10, 5F
→
03/11 13:10, , 6F
03/11 13:10, 6F
→
03/11 13:11, , 7F
03/11 13:11, 7F
→
03/11 19:18, , 8F
03/11 19:18, 8F
Flash 近期熱門文章
PTT數位生活區 即時熱門文章