最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
flash as 程序延迟运行方法
时间:2022-06-28 22:17:41 编辑:袖梨 来源:一聚教程网
flash as 程序延迟运行方法
private function delay(func:function, params:array, delay:int = 350, repeat:int = 1):void
{
var f:function;
var timer:timer = new timer(delay, repeat);
timer.addeventlistener(timerevent.timer, f = function():void
{
func.apply(null, params);
if (timer.currentcount == repeat)
{
timer.removeeventlistener(timerevent.timer, f);
timer = null;
}
});
timer.start();
}
相关文章
- SQL Server 2008还原数据库的做法实用指南 08-31
- 电影感印度女性肖像提示词怎么写-画面元素和风格参数 08-31
- AI自我总结与职业发展提升的必要性探讨(3篇) 08-31
- MariaDB的安装与配置教程实用指南 08-31
- 如何快速实现文章降重并提升原创性? 08-31
- 铁道记忆双联画提示词怎么写-画面元素和风格参数 08-31