MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 417

Director scripting reference
Table of Contents

Advertisement

For cast members, the
correspond to the existing cast member types:
also create Xtra cast member types, which can be identified by any name that the author chooses.
It's also possible to create a new color cursor cast member using the Custom Cursor Xtra. Use
and set the properties of the resulting cast member to make them available for use.
new(#cursor)
The optional
whichCastMember
Cast window where the new cast member is stored. When no cast member slot is specified, the
first empty slot is used. The
When the argument for the
child object. The parent script should include an
state or property values and returns the
The child object has all the handlers of the parent script. The child object also has the same
property variable names that are declared in the parent script, but each child object has its own
values for these properties.
Because a child object is a value, it can be assigned to variables, placed in lists, and passed
as a parameter.
As with other variables, you can use the
in the Message window.
When
is used to create a timeout object, the timeoutPeriod sets the number of milliseconds
new()
between timeout events sent by the timeout object. The
identifies the handler that will be called when each timeout event occurs. The
identifies the name of the child object that contains the
is given, the
#timeoutHandler
might vary depending on the
-- Lingo syntax when scriptExecutionStyle is set to 9
x = timeout(name).new(period,handler,targetData)
-- Lingo syntax when scriptExecutionStyle is set to 10
x = timeout().new(name, period, handler, targetData)
y = new timeout(name, period, handler, targetData)
// JavaScript syntax
x = new timeout(name, period, function, targetData)
When a timeout object is created, it enables its
,
prepareMovie
startMovie
this, the
targetObject
passed in order for the rest of the movie to have access to them.
Note: A Lingo-created timeout object can call a JavaScript syntax function, and vice versa.
To see an example of
Write Text movies in the Learning/Lingo folder inside the Director application folder.
Example
To create a new bitmap cast member in the first available slot, you use this syntax:
set newMember = new(#bitmap)
parameter sets the cast member's type. Possible predefined values
type
and
whichCast
function returns the cast member slot.
new
function is a parent script, the
new
reference to the child object.
me
put
is assumed to be in a movie script. The timeout creation syntax
scriptExecutionStyle
,
,
stopMovie
prepareFrame
must contain handlers for these events. The events do not need to be
used in a completed movie, see the Parent Scripts, and Read and
new()
,
, and so on. The
#bitmap
#field
parameters specify the cast member slot and
new
handler that sets the child object's initial
on new
command to display information about a child object
#timeoutHandler
#timeoutHandler
setting.
to receive the system events
targetObject
, and
exitFrame
function can
new
function creates a
is a symbol that
targetObject
. If no
targetObject
. To take advantage of
new()
417

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