Sleep

Description:

baSleep pauses the calling Director/Authorware program.

Platforms:

Windows

Usage:

baSleep( milliSecs )

Arguments:

Integer.
milliSecs is the time to sleep for, in thousandths of a second.

Returns:

Void.

Examples:

Director:
baSleep( 200 )

Authorware:
baSleep( 200 )
 

Notes:

This function is most useful for 'lowering' the priority of Director to allow other programs a larger slice of available processing time - for example when playing a mpeg movie. Calling this function in a loop such as in a on exitFrame handler, will give other processes a chance to run while still allowing Director to process events such as mouse clicks. Larger numbers will give other programs more time, but slow down Director responses. Values between 50 and 200 would be a good starting point for experimentation.