MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual page 424

Table of Contents

Advertisement

The object's
on stepFrame
each time the playhead advances. The object will be passed as the first argument (that is, the
argument) to the
Director doesn't clear the contents of
cause unpredictable behavior in the new movie. If you don't want child objects in the current
movie to be carried over into the new movie, insert a statement that clears
handler of the new movie.
prepareMovie
To clear child objects from actorList:
Set
actorList
For more information, see
Creating timeout objects
You can create a timeout object—a script object that acts like a timer and sends a message when
the timer expires. This is useful for scenarios that require specific things to happen at regular time
intervals or after a particular amount of time has elapsed.
Timeout objects can send messages that call handlers inside child objects or in movie scripts. You
create a timeout object by using the
handler to be called, and the frequency with which you want the handler to be called. Once a
timeout object is created, Director keeps a list of currently active timeout objects, called
.
timeOutList
To create timeout objects:
Use the syntax
#handlerName
This statement uses the following elements:
variableName
indicates which type of Lingo object you are creating.
timeOut
is the name you give to the timeout object. This name will appear in the
theName
. It is the
timeOutList
is the Lingo function that creates a new object.
new
integerMilliseconds
handler you specify. This is the
specified handler every 2 seconds.
#handlerName
#timeOutHandler
with the # sign. For example, a handler called
.
#accelerate
targetObject
property of the object. It allows specificity when many child objects contain the same handlers.
If you omit this parameter, Director will look for the specified handler in the movie script.
424
Chapter 16
handler in its parent or ancestor script will then run automatically
handler.
on stepFrame
actorList
to
, which is an empty list.
[ ]
and
actorList
new()
variableName = timeOut("theName").new(integerMilliseconds
,
)
targetObject
is the variable you are placing the timeout object into.
property of the object.
#name
indicates the frequency with which the timeout object should call the
#period
is the name of the handler you want the object to call. This is the
property of the object. You represent it as a symbol by preceding the name
indicates which child object's handler should be called. This is the
when branching to another movie, which can
in the Lingo Dictionary.
on stepFrame
function. You must specify a name for the object, a
property of the object. A value of 2000 will call the
on accelerate
in the
actorList
would be specified as
#target
me
on
,

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Director mx

Table of Contents