Chinaunix首页 | 论坛 | 博客
  • 博客访问: 608745
  • 博文数量: 72
  • 博客积分: 1177
  • 博客等级: 少尉
  • 技术积分: 856
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-23 23:03
文章分类

全部博文(72)

文章存档

2015年(13)

2014年(5)

2013年(7)

2012年(39)

2011年(8)

分类: 系统运维

2012-05-16 20:30:14


点击(此处)折叠或打开

  1. xmlns:s="library://ns.adobe.com/flex/spark"
  2. xmlns:mx="library://ns.adobe.com/flex/mx"
  3. creationComplete="init()"
  4. minWidth="955" minHeight="600">
  5. import com.common.util.AlertUtil;
  6. import mx.controls.Alert;
  7. private var time:Timer;
  8. private var count:int=0;
  9. protected function init():void
  10. {
  11. time = new Timer(1000);
  12. time.addEventListener(TimerEvent.TIMER,timeHandler);
  13. time.start();
  14. }
  15. public function timeHandler(evt:TimerEvent):void
  16. {
  17. count++;
  18. this.timer.text="第"+count+"次响应";
  19. }
  20. ]]>

阅读(5663) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~