EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 977

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.