Lingo Dictionary > S > scriptText |  |

scriptText

Syntax

    member(whichCastMember).scriptText
    the scriptText of member whichCastMember

Description

Cast member property; indicates the content of the script, if any, assigned to the cast member specified by `whichCastMember`.

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

This property can be tested and set.

Example

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

    member(30).scriptText = member(20).text