scriptText
977
Example
This statement displays the number of the script attached to sprite 4:
put sprite(4).scriptNum
See also
scriptInstanceList
scriptsEnabled
Usage
-- Lingo syntax
memberObjRef
.scriptsEnabled
// JavaScript syntax
memberObjRef
.scriptsEnabled;
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:
-- Lingo syntax
member("Jazz Chronicle").scriptsEnabled = FALSE
// JavaScript syntax
member("Jazz Chronicle").scriptsEnabled = 0;
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.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...