字典翻译 问答 其它 英语翻译varcountertime:Number;vardisptext:String;varmycounter:Timer=newTimer(1000);mycounter.addEventListener(TimerEvent.TIMER,jishi);kaishi_btn.addEventListener(MouseEvent.CLICK,kaishi_fun);functionkaishi_fun(eve:MouseEvent):void{x05count
问题标题:
英语翻译varcountertime:Number;vardisptext:String;varmycounter:Timer=newTimer(1000);mycounter.addEventListener(TimerEvent.TIMER,jishi);kaishi_btn.addEventListener(MouseEvent.CLICK,kaishi_fun);functionkaishi_fun(eve:MouseEvent):void{x05count
问题描述:

英语翻译

varcountertime:Number;

vardisptext:String;

varmycounter:Timer=newTimer(1000);

mycounter.addEventListener(TimerEvent.TIMER,jishi);

kaishi_btn.addEventListener(MouseEvent.CLICK,kaishi_fun);

functionkaishi_fun(eve:MouseEvent):void{

x05countertime=Number(input_mc.text)+1;

x05mycounter.start();

}

functionjishi(event:TimerEvent):void{

x05countertime--;

x05disp_txt.text=String(countertime);

x05if(countertime==0){

x05x05mycounter.stop();

x05x05disp_txt.text="时间到!"

x05}

}

乔全喜回答:
  按下kaishi_btn按钮开始Number(input_mc.text)+1秒的倒计时,disp_txt.text显示时间,时间为0时disp_txt.text变成时间到!
点击显示
其它推荐
热门其它推荐
  • 其它