2010-10-17 84 views
0

我的.fla文件旁边有1.mp3,当我试图运行电影测试时,它不会播放任何声音。只有舞台有一个小故障是它保持循环帧1和2.发生什么?Flash CS5没有声音?

var mySoundReq:URLRequest = new URLRequest("1.mp3"); 
var mySound:Sound = new Sound(); 
mySound.load(mySoundReq); 
mySound.addEventListener(Event.COMPLETE, playSong); 

function playSong(event:Event):void { 
mySound.play(); 
} 

我与按钮测试影片在舞台上: http://img156.imageshack.us/img156/9950/cs5c.jpg

回答

0

我的希望是,这个问题是与你所添加的玩儿法的事件。

不是在COMPLETE事件中添加它,而是在第一帧没有任何事件的情况下尝试它,它会在输入帧时运行一次。

else add a button and test the play method in the mouse_up or click event。