![MACROMEDIA FLASH 8-FLASH Скачать руководство пользователя страница 20](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_reference_3347197020.webp)
20
Flash Lite Global Functions
Description
Function; sends the playhead to the specified frame in a scene and stops it. If no scene is
specified, the playhead is sent to the frame in the current scene.
You can use the
scene
parameter only on the root timeline, not within timelines for movie
clips or other objects in the document.
Example
In the following example, when the user clicks a button to which
gotoAndStop()
is assigned,
the playhead is sent to Frame 5 in the current scene, and the SWF file stops playing:
on(keyPress "8") {
gotoAndStop(5);
}
ifFrameLoaded()
Availability
Flash Lite 1.0.
Usage
ifFrameLoaded([
scene
,]
frame
) {
statement(s)
;
}
Operands
scene
An optional string specifying the name of the scene to be loaded.
frame
The frame number or frame label to be loaded before the next statement can execute.
statement(s)
The instructions to execute if the specified frame, or scene and frame,
are loaded.
Description
Function; checks whether the contents of a specific frame are available locally. Use the
ifFrameLoaded
function to start playing a simple animation while the rest of the SWF file
downloads to the local computer. You can also use the
_framesloaded
property to check the
download progress of an external SWF file. The difference between using
_framesloaded
and
ifFrameLoaded
is that
_framesloaded
lets you add custom
if
or
else
statements.
Содержание FLASH 8-FLASH
Страница 1: ...Flash Lite 1 x ActionScript Language Reference...
Страница 6: ...6 Contents...
Страница 46: ...46 Flash Lite Global Functions...
Страница 62: ...62 Flash Lite Properties...
Страница 76: ...76 Flash Lite Statements...
Страница 110: ...110 Flash Lite Operators...
Страница 162: ...162 Index...