User Guide

Table Of Contents
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.