MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 974

Director scripting reference
Table of Contents

Advertisement

script
Usage
-- Lingo syntax
_movie.script[scriptNameOrNum]
// JavaScript syntax
_movie.script[scriptNameOrNum];
Description
Movie property; provides indexed or named access to the script cast members of a movie.
Read-only.
The
scriptNameOrNum
member or an integer that specifies the number of the script cast member.
If
scriptNameOrNum
regardless of which cast library contains that member.
If
scriptNameOrNum
member found within the first cast library of the referenced movie; you cannot use indexed
access to specify a cast library other than the first one.
Example
The following statement accesses a named script.
-- Lingo syntax
bugScript = _movie.script["Warrior Ant"]
// JavaScript syntax
var bugScript = _movie.script["Warrior Ant"];
See also
Movie
scripted
Usage
-- Lingo syntax
spriteChannelObjRef.scripted
// JavaScript syntax
spriteChannelObjRef.scripted;
Description
Sprite Channel property; specifies whether a sprite channel is under script control (
under Score control (
Example
These statements create a scripted sprite from cast member kite in sprite channel 5 if that channel
is not already under script control.
-- Lingo syntax
if (channel(5).scripted = FALSE) then
channel(5).makeScriptedSprite(member("kite"))
end if
974
Chapter 14: Properties
argument can be either a string that specifies the name of the script cast
is a string, the
script
is an integer, the
script
). Read-only.
FALSE
property provides access to the script cast member,
property provides access only to the script cast
) or
TRUE

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents