View comments | RSS feed

ifFrameLoaded function

ifFrameLoaded([scene:String], 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 Player 4

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.

See also

, addListener (MovieClipLoader.addListener method)


Version 8

Comments


HarrisonWatts said on Mar 18, 2006 at 11:38 PM :
With ifFramesLoad() deprecated and _currentFrame returning a number only, how in Actionscript 2.0 to check for the playhead reaching a labelled frame in a movieclip timeline?

Checking for a frame number counters the long-advocated portability concept behind frame labelling. This ability to check for the frame label name in a non-deprecated way would be really helpful given that scenes are also deprecated.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00001734.html