第1个回答 2013-07-18
我找了个资源简单改动一下:16秒(15--0)倒计时,最后10(9--0)秒带声音(你需要在flash同文件夹下放一个1.mp3声音文件);该flash1桢2个图层图层1放脚本如下:txt = 15;var song0 = new Sound();datas = new Date();time = int(datas.getSeconds());function djs() { _root.onEnterFrame = function() { datas = new Date(); newtime = int(datas.getSeconds()); if (newtime != time) { txt--; if (txt<10&&txt>=0) { song0.loadSound("1.mp3", true); txt2 = Math.floor(song0.duration/1000)+"sec"; } if (txt<0) { txt = 15; } time = newtime; } };}图层2放一个动态文本973文本框50X50大小即可fjnr变量名txt;再放一个开始按钮9517按钮下放脚本如下:on(press){ djs()}就这些你试试吧!