frameScript

Usage

-- Lingo syntax
_movie.frameScript

// JavaScript syntax
_movie.frameScript;

Description

Movie property; contains the unique cast member number of the frame script assigned to the current frame. Read/write during a Score recording session only.

During a Score generation session, you can also assign a frame script to the current frame by setting the frameScript property.

If there is no frame script assigned to the current frame, this property returns 0.

Example

The following statement displays the number of the script assigned to the current frame. In this case, the script number is 25.

-- Lingo syntax
put(_movie.frameScript)

// JavaScript syntax
put(_movie.frameScript);

This statement makes the script cast member Button responses the frame script for the current frame:

-- Lingo syntax
_movie.frameScript = member("Button responses")

// JavaScript syntax
_movie.frameScript = member("Button responses");

See also

Movie