AaronAcerboni / setTimeout-as3

ActionScript 3 implementation of the JavaScript setTimeout method

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usage

setTimeout(function(){
	trace('Hello world');
}, 2000);

or just ...

setTimeout(function(){
    trace('Without second parameter.')
})

About

I wanted a function similar to setTimeout for my ActionScript 3 environment. I made this wrapper over the AS3 Timer and TimerEvent objects. You will need to import them if you wish to use this function.

import flash.utils.Timer;
import flash.events.TimerEvent;

About

ActionScript 3 implementation of the JavaScript setTimeout method


Languages

Language:ActionScript 100.0%