1/02/2011

Time delay in AS 3

 original source

http://www.ilike2flash.com/2009/07/time-delay-in-actionscript-3.html

//__________________________________
import flash.utils.*;

var test = setInterval(showMessage,3000);//參數這邊
function showMessage(){
trace("hello");//as here
clearInterval(test);//清除Interval
}
//__________________________________

No comments:

Post a Comment