Ifframeloaded 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

Example
In the following example, a document has two scenes:
contains a frame label on Frame 10 called
. This ActionScript is placed on Frame 1, Scene 1 of the main Timeline:
myOtherBtn_btn
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)
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
Checks whether the contents of a specific frame are available locally. Use
start playing a simple animation while the rest of the SWF file downloads to the local
computer. The difference between using
lets you add custom
_framesloaded
Availability: ActionScript 1.0; Flash Lite 1.0
Parameters
[optional] - A string that specifies the name of the scene that must be loaded.
scene:String
- The frame number or frame label that must be loaded before the next
frame:Object
statement is executed.
statement(s):Object
frame, are loaded.
newFrame
MovieClip._framesloaded
_framesloaded
or
if
else
- The instructions to execute if the specified scene, or scene and
and
sceneOne
sceneTwo
, and two buttons,
,
stop function
property.
and
ifFrameLoaded
statements.
. Scene one
and
myBtn_btn
,
,
play function
to
ifFrameLoaded
is that
Global Functions
53

Advertisement

Table of Contents
loading

Table of Contents