在ActionScript 3.0中播放声音时出错

时间:2015-03-06 11:54:15

标签: actionscript

当我播放电影时,没有任何编译错误,但声音没有播放, 这是我在ActionScript 3.0中的代码,非常感谢任何帮助..

     if (Total==Number(Number1.text)) {
         Count=Count+10;
         count_txt.text=Count.toString();
         var Snd:Sound=new Sound();
         var req:URLRequest=(new URLRequest("right.wav"));
         Snd.load(req);
         }break;    

1 个答案:

答案 0 :(得分:0)

我认为这里的问题是Flash无法播放WAV文件 - 只有MP3。

请参阅this related post,其中介绍了如何解决此问题并播放WAV文件。

祝你好运!