actorList
625
}
}
See also
Player
actorList
Usage
-- Lingo syntax
_movie.actorList
// JavaScript syntax
_movie.actorList;
Description
Movie property; a list of child objects that have been explicitly added to this list. Read/write.
Objects in
actorList
receive a
stepFrame
message each time the playhead enters a frame.
To add an object to
the actorList
, use
_movie.actorList.append(
newScriptObjRef
)
. The
object’s
stepFrame
handler in its parent or ancestor script will then be called automatically at
each frame advance.
To clear objects from
the actorList
, set
actorList
to
[ ]
, which is an empty list.
Director doesn’t clear the contents of
actorList
when branching to another movie, which can
cause unpredictable behavior in the new movie. To prevent child objects in the current movie
from being carried over to the new movie, insert the statement
actorList = [ ]
in the
prepareMovie
handler of the new movie.
Example
This statement adds a child object created from the parent script Moving Ball. All three values are
parameters that the script requires.
This statement displays the contents of
actorList
in the Message window:
-- Lingo syntax
put(_movie.actorList)
// JavaScript syntax
put(_movie.actorList);
This statement clears objects from
actorList
.
-- Lingo syntax
_movie.actorList = [] -- using brackets
_movie.actorList = list() -- using list()
// JavaScript syntax
_movie.actorList = list();
See also
Movie
,
on prepareMovie
,
on stepFrame
Summary of Contents for DIRECTOR MX 2004
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...