爱问知识人 爱问教育 医院库

flash倒计时

首页

flash倒计时

做一个50秒的倒计时,按钮控制开始、停止、暂停.
谢谢各位高手。

提交回答
好评回答
  • 2007-04-13 22:19:57
      本不想回答了
    但还是觉得应该帮你一下的
    var   = 50;
    rbListener = new Object();
    rbListener。click = function(evt) {
    rbNum = evt。target。selection。
      data; trace(rbNum); }; radioGroup。addEventListener("click", rbListener); var = true; this。stop_btn。enabled = false; this。
      pause_btn。enabled = false; this。start_btn。onRelease = function() { this。_parent。pause_btn。enabled = true; this。_parent。
      stop_btn。enabled = true; this。enabled = false; this。_parent。a_rb。enabled = false; this。_parent。b_rb。enabled = false; var = rbNum; function time_func() { if (timeB == true) { var = "0"+int(Num/60)+":"; if (Num%60<10) { var = "0"+Num%60; } else { var = Num%60+""; } time_txt。
      text = "剩余时间:"+fen+miao; Num--; } if (Num<0) { start_btn。enabled = true; time_txt。text = "时间到!"; clearInterval(ID); Num = rbNum; timeB = true; a_rb。
      enabled = true; b_rb。enabled = true; } } time_func(); ID = setInterval(time_func, 1000); }; this。pause_btn。onRelease = function() { if (timeB == true) { timeB = false; } else { timeB = true; } }; this。
      stop_btn。onRelease = function() { this。enabled = false; this。_parent。pause_btn。enabled = false; clearInterval(ID); start_btn。
      enabled = true; Num = rbNum; timeB = true; a_rb。enabled = true; b_rb。enabled = true; time_txt。text = "计时停止!"; }; 。
      

    D***

    2007-04-13 22:19:57

其他答案

类似问题

换一换

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):