搜档网

搜档网

当前位置:搜档网 > 关于flash里面歌词同步的代码

关于flash里面歌词同步的代码

stop();

this.onEnterFrame = function() {

if (inc>10) {

gotoAndStop(1);

}

var lrc:Array=getlrclist();

labelTimeList=lrc[0];//[0,5,6,9,13,14,15];

musictext=lrc[1];//[lrc,"我在这儿等着你回来"," 等着你回来", "看那桃花开", "我在这儿等着你回来", "等着你回来", "把那花儿采"];

if (getTimer()>labelTimeList[inc]*1000) {

x=musictext[inc];

inc == inc++;

}

};

getlrclist=function(){

var lrcstr:String=getlrcstr();

var lrcar:Array=lrcstr.split("|");

var timelist:Array=new Array();

var lrclist:Array=new Array();

var ttlistar:Array=new Array(new Array(),new Array());

for (i=0;i

{

var ttlist:String=Taginner(lrcar[i],"[]");

ttlist=replace(ttlist,"[","");

ttlist=replace(ttlist,"]","");

var ttlistarr:Array= ttlist.split(",");

var tllistarr:Array=new Array();

var tlistarr:Array=new Array();

var tlliststr:String=Taginner(lrcar[i],"{}");

tlliststr=replace(tlliststr,"{","");

tlliststr=replace(tlliststr,"}","");

for (j=0;j

{

tlistarr[j]=Number(tonum(ttlistarr[j]));

tllistarr[j]=tlliststr;

}

TOP相关主题