FLASH AS2中 想让这段代码延时2秒再执行 btn._visible=true; 求大神。
if(_root.pointer._rotation==360/totleNum*(stopNum-1)||_root.pointer._rotation==360/to...
if(_root.pointer._rotation == 360 / totleNum * (stopNum - 1) || _root.pointer._rotation == 360 / totleNum * (stopNum - 1) - 360)
{
_root.pointer._rotation = 360 / totleNum * (stopNum -1);
clearInterval(t);
btnStart._alpha=100;
btnEnd._alpha=0;
btn._visible=true; //让这代码延时2秒执行
count=0;
count2=turns;
getURL("javascript:flashOver(" + stopNum + ")", "");
}
if(_root.pointer._rotation == 360 / totleNum * (stopNum - 1) || _root.pointer._rotation == 360 / totleNum * (stopNum - 1) - 360)
{
_root.pointer._rotation = 360 / totleNum * (stopNum -1);
clearInterval(t);
btnStart._alpha=100;
btnEnd._alpha=0;
setTimeout(btn_visible, 2000);
function btn_visible(){
btn._visible=true;
}
count=0;
count2=turns;
getURL("javascript:flashOver(" + stopNum + ")", "");
} 展开
{
_root.pointer._rotation = 360 / totleNum * (stopNum -1);
clearInterval(t);
btnStart._alpha=100;
btnEnd._alpha=0;
btn._visible=true; //让这代码延时2秒执行
count=0;
count2=turns;
getURL("javascript:flashOver(" + stopNum + ")", "");
}
if(_root.pointer._rotation == 360 / totleNum * (stopNum - 1) || _root.pointer._rotation == 360 / totleNum * (stopNum - 1) - 360)
{
_root.pointer._rotation = 360 / totleNum * (stopNum -1);
clearInterval(t);
btnStart._alpha=100;
btnEnd._alpha=0;
setTimeout(btn_visible, 2000);
function btn_visible(){
btn._visible=true;
}
count=0;
count2=turns;
getURL("javascript:flashOver(" + stopNum + ")", "");
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询