If Frame Loaded
Previous  Top  Next

Use this Action to perform Actions only if a given Frame has been loaded. This can be useful when creating a preloader.

panels-action-ifframeloaded  

You can specify the Frame you want to test for in one of two ways: by Frame number within a Scene, or by Frame label.

Target
The target Movie, Sprite or Object that the Action applies to. Note that the target name must use slash notation or the _target property.

Frame


panels-action-ifframeloaded-number  
 
Select the Scene containing the Frame you want to go to. Enter the Frame number (starting from zero) in the 'Action' Panel. You can select the Scene directly by name, or use one of the five special Scene names:
·_THIS_SCENE_  
·_FIRST_SCENE_  
·_LAST_SCENE_  
·_PREV_SCENE_  
·_NEXT_SCENE_.  

Scene
The Scene selection only appears when you select the Frame option (see above).

Label

panels-action-ifframeloaded-label  
 
Select the label of the Frame you want to go to. The Frame can be anywhere in the current Movie or Sprite. You do not need to select the Scene containing the labeled Frame. See the Set Label Action.

Skip

panels-action-ifframeloaded-skip  

Specifies a positive or negative number of frames to skip and test if loaded. For example if set to -1 the Action will test whether the previous Frame was loaded.

This Action can contain the other Conditional Actions including If, While and Else.

In the example below, the Movie is instructed to jump to Frame 0 of Scene 2, only when Frame 0 of Scene 2 has been downloaded.

Note: In this case, an If Frame Loaded Action is not strictly necessary, as the Goto And Play Action will not do anything if the Frame it is to go to is not yet loaded

panels-action-ifframeloaded-example