call()

Availability

Flash Lite 1.0.

Usage

call(frame)

call(movieClipInstance:frame)

Operands

frame The label or number of a frame in the timeline.

movieClipInstance The instance name of a movie clip.

Description

Function; executes the script in the called frame without moving the playhead to that frame. Local variables do not exist after the script executes. The call() function can take two possible forms:

Example

The following examples execute the script in the myScript frame:

// to execute functions in frame with label "myScript"
thisFrame = "myScript";
trace ("Calling the script in frame: " add thisFrame);

// to execute functions in any other frame on the same timeline
call("myScript");