天天看點

Flash 按鈕實作輕按兩下

on(release){

time=new Date();

se=time.getSeconds();

mi=time.getMilliseconds();

t=Math.round(se*1000+mi);

b=a;

a=t;

c=a-b;

if(c0){

trace("輕按兩下成功")

a=b=c=0;//清零,以便下一次計算

}

}

本文轉自:http://www.5uflash.com/flashjiaocheng/Flashaschengxu/347.html