# setTimeout problem

**URL:** <https://forum.kirupa.com/t/settimeout-problem/207769>\
**Category:** flash\
**Created:** [November 21, 2006, 11:14am UTC](https://forum.kirupa.com/t/settimeout-problem/207769 "2006-11-21T11:14:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Balala](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@Balala](https://forum.kirupa.com/u/Balala)\
**Post date:** [November 21, 2006, 11:14am UTC](https://forum.kirupa.com/t/settimeout-problem/207769/1 "2006-11-21T11:14:41Z")

</div>

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’.

```auto
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.
