EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Ifframeloaded Function

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Global Functions 53
Example
In the following example, a document has two scenes:
sceneOne and sceneTwo. Scene one
contains a frame label on Frame 10 called
newFrame, and two buttons, myBtn_btn and
myOtherBtn_btn. This ActionScript is placed on Frame 1, Scene 1 of the main Timeline:
stop();
myBtn_btn.onRelease = function(){
gotoAndStop("newFrame");
};
myOtherBtn_btn.onRelease = function(){
gotoAndStop("sceneTwo", 1);
};
When the user clicks the buttons, the playhead moves to the specified location and stops.
See also
gotoAndStop (MovieClip.gotoAndStop method), stop function, play function,
gotoAndPlay function
ifFrameLoaded function
ifFrameLoaded( [scene,] frame) { statement(s); }
Deprecated since Flash Player 5. This function has been deprecated. Macromedia
recommends that you use the
MovieClip._framesloaded property.
Checks whether the contents of a specific frame are available locally. Use
ifFrameLoaded to
start playing a simple animation while the rest of the SWF file downloads to the local
computer. The difference between using
_framesloaded and ifFrameLoaded is that
_framesloaded lets you add custom if or else statements.
Availability: ActionScript 1.0; Flash Lite 1.0
Parameters
scene:String [optional] - A string that specifies the name of the scene that must be loaded.
frame:Object - The frame number or frame label that must be loaded before the next
statement is executed.
statement(s):Object - The instructions to execute if the specified scene, or scene and
frame, are loaded.

Table of Contents

Related product manuals