2. 在把這段代碼加到相應的按鈕上:
on(release){
snd = new Sound();
snd.stop(); //停止所有聲音,這一點很重要,否則多點幾次,聲音會重疊起來
snd.attachSound("設爲聲音的鏈接名");
snd.start(0);
}
這樣就爲按鈕加上的聲音
Sound.stop([“聲音鏈接名“]) 如果不加參數,就會停止所有的聲音
還有flash的on{}裏的變量也是全局的
id="I7" marginwidth="0" marginheight="0" src="http://www.bookeba.cn/securi
chungfangzi.blog.163.com/blog/static/132803239201082643632561/
作者:斷水刀轉載自:todaygood.cublog.cn 其實不能稱爲移植,只是將一般的Jflash代碼修改一下,以適合自己的板子。參考文檔:常見的