![MACROMEDIA Flash Lite 2 Скачать руководство пользователя страница 78](http://html1.mh-extra.com/html/macromedia/flash-lite-2/flash-lite-2_reference_687553078.webp)
78
ActionScript language elements
See also
duplicateMovieClip function
,
duplicateMovieClip
(MovieClip.duplicateMovieClip method)
,
attachMovie (MovieClip.attachMovie
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
interval
is greater than the SWF file's frame rate, the interval function is only called each
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
- A function name or a reference to an anonymous function.
interval
:
Number
- The time in milliseconds between calls to the
functionName
or
methodName
parameter.
param
:
Object
[optional] - Parameters passed to the
functionName
or
methodName
parameter. Multiple parameters should be separated by commas:
param1
,
param2
,
...,
paramN
objectName
:
Object
- An object containing the method
methodName
.
methodName
:
String
- A method of
objectName
.
Returns
Number
- An identifying integer that you can pass to
clearInterval()
to cancel the interval.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...