Setinterval Function - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

See also
duplicateMovieClip function
(MovieClip.duplicateMovieClip method)
,
method)
removeMovieClip (MovieClip.removeMovieClip method)
createEmptyMovieClip (MovieClip.createEmptyMovieClip method)

setInterval function

setInterval(functionName:Object, interval:Number [, param1:Object, param2,
..., paramN]) : Number setInterval(objectName:Object, methodName:String,
interval:Number [, param1:Object, param2, ..., paramN]) : Number
Calls a function or a method or an object at periodic intervals while a SWF file plays. You can
use an interval function to update variables from a database or to update a time display.
If
is greater than the SWF file's frame rate, the interval function is only called each
interval
time the playhead enters a frame; this minimizes the impact each time the screen is refreshed.
Note: In Flash Lite 2.0, the interval passed into this method is ignored if it is less than the
SWF file's frame rate and the interval function is called on the SWF file's frame rate interval
only. If the interval is greater than the SWF file's frame rate, the event is called on the next
frame after the interval has elapsed.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
functionName:Object
- The time in milliseconds between calls to the
interval:Number
parameter.
methodName
[optional] - Parameters passed to the
param:Object
parameter. Multiple parameters should be separated by commas:
...,paramN
objectName:Object
methodName:String
Returns
- An identifying integer that you can pass to
Number
78
ActionScript language elements
,
duplicateMovieClip
- A function name or a reference to an anonymous function.
- An object containing the method
- A method of
objectName
,
attachMovie (MovieClip.attachMovie
functionName
functionName
param1,param2,
methodName
.
clearInterval()
,
or
or
methodName
.
to cancel the interval.

Advertisement

Table of Contents
loading

Table of Contents