User Guide

576
Example
This statement displays the number of the script attached to sprite 4:
put sprite(4).scriptNum
See also
scriptInstanceList
scriptsEnabled
Syntax
member(whichCastMember).scriptsEnabled
the scriptsEnabled of member whichCastMember
Description
Director movie cast member property; determines whether scripts in a linked movie are enabled
(
TRUE or 1) or disabled (FALSE or 0).
This property is available for linked Director movie cast members only.
This property can be tested and set.
Example
This statement turns off scripts in the linked movie Jazz Chronicle:
member("Jazz Chronicle").scriptsEnabled = FALSE
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 movies
scriptText cast member property values cant 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