function doclick(){
soundManager.createSound({
id: 'mySound',
url: 'http://localhost/htmlshooter/wav/gun.wav',
autoLoad: true,
autoPlay: true,
volume: 100
});
mySound.play();
}
首先它说:
SMSound._onload():“mySound”加载失败?- http://localhost/htmlshooter/wav/gun.wav SMSound.play(): "mySound" 开始播放 SMSound.play(): "mySound" 正在加载 - 正在尝试播放..
进而:
soundManager.createSound(): mySound 存在 soundManager.createSound(): mySound (http://localhost/htmlshooter/wav/gun.wav)
但实际上,它根本没有播放任何声音。