setTimeout()

Availability:

SmartFoxServer PRO 1.5.4

Usage:

setTimeout(scope, fn, delay, params)

Description:

Calls a function after a certain amount of time expressed in milliseconds.

Parameters:

scope     - the object on which the function should be called
fn   - The function to be invoked
delay   - The amount of time (in milliseconds) to wait
params   - A variable number of parameters to pass to the function

Returns:

nothing

Example:

function delayedFunction(s,n,b)
{
   trace("I was called with the following arguments:")
   
   trace("String : " + s)
   trace("Number : " + n)
   trace("Boolean: " + b)
   
}

setTimeout(this, delayedFunction, 1000, "Hello world!", 123456, true) 

See also:

setInterval()