scriptText

Usage

-- Lingo syntax
memberObjRef.scriptText

// JavaScript syntax
memberObjRef.scriptText;

Description

Member property; indicates the content of the script, if any, assigned to a cast member.
Read/write.

The text of a script is removed when a movie is converted to a projector, protected, or compressed for Shockwave Player. Such movies then lose their values for the scriptText property. Therefore, the movie's scriptText property values cannot be retrieved when the movie is played back by a projector. However, Director can set new values for the scriptTex property inside the projector. These newly assigned scripts are automatically compiled so that they execute quickly.

Example

This statement makes the contents of field cast member 20 the script of cast member 30:

-- Lingo syntax
member(20).text = member(30).scriptText

// JavaScript syntax
member(20).text = member(30).scriptText;

See also

Member