摘要
在编写Actionnscrip3.0脚本中,经常涉及到间隔循环执行某些任务的情况,通常可以使用Timer对象、eventFrame事件、setInterval()函数以及setTimeout()函数4种形式实现循环执行任务的功能。文章通过分析四种形式的运行机制及异同点,实例解析其功能为使用和选择各种方法来为编程实践提供参考。
When the Actionnscrip3.0 script is programmed, we often face conditions of interval loop to perform certain tasks,you can often use 4 kinds form of the Timer object, eventFrame events, setInterval() function and setTimeout() function to achieve function of circular task execution. Through four forms of the analysis of the operation mechanism and the differences and similarities, example analysis for its function provide reference for programming practice as the selection and use of various methods.
出处
《电脑知识与技术》
2014年第6X期4305-4306,4314,共3页
Computer Knowledge and Technology
基金
铜仁学院院级教改项目(JG201156)
铜仁学院院级自然科学类课题(TS1113)