setTimeout problem

Hi all,

sometime ago, i’ve read here in the forums, a function called setTimeout, just like the same function as setInterval, the only diference, its called only once, not in an interval.

Trying to put into the timeline action script, there is no error, but, when applying to a class:

There is no method with the name ‘setTimeout’.

class aaa
{
	function aaa()
	{
		setTimeout(trace, 1000, "asdasdasdas");
	}
}

:hurt:

So, do i have to import any class to use the setTimeout, or, i shouldnt have eared about?

Thanks in advance.