這是我至今的代碼,它是在電影的第一幀。爲什麼我的聲音在Flash中不起作用?
nature = new Sound(this);
nature.attachSound("sound_naturally");
nature.setVolume(50);
nature.start(0,0);
nature.onSoundComplete = function(){
nature.start(0,0);
}
trace(nature);
運行時跟蹤輸出'[object Object]'。
我將聲音導出到帶有鏈接標識符'sound_naturally'的ActionScript,未導出到第一幀。我不明白爲什麼它不起作用。我確實喜歡3小時前的完全相同的事情,它運行良好,但我失去了文件,所以我不得不重做它,現在它根本不起作用。
使用Flash 10使用ActionScript 2.0
我不確定這個 - 但是嘗試刪除''sound_naturally'周圍的引號'' – Amarghosh 2010-03-18 02:50:00