先新建一个文件夹,将你要播放的那首歌放入文件夹中。打开flash.下面中的pp是记录声音当前位置。xx是随意命名的。
1。先选中第一帖,按动作输入命令。
xxsnd=new Sound();
xxsnd.loadSound("歌名.mp3",true);
xxsnd.start(0);
stop();
pp=0
isplay=1
2。在窗口——公用库中拖入快进、快退、暂停按扭,选中暂停按扭,输入:
on (release) {
if (isplay == 1) {
pp = xxsnd.position;
xxsnd.stop();
isplay = 0;
} else {
xxsnd.start((pp/1000+10));
isplay = 1;
}
}
选中快进按扭输入:
on (release) {
if (isplay == 1) {
pp = xxsnd.position;
xxsnd.start((pp/1000+10));
}
}
选中快退按扭输入:
on (release) {
if (isplay == 1) {
pp = xxsnd.position;
xxsnd.start((pp/1000-10));
}
}
3。按ctrl+Enter即可播放了。