MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 421

Director scripting reference
Table of Contents

Advertisement

newLight
Usage
member(whichCastmember).newLight(newLightName, #typeIndicator)
Description
3D command; creates a new light with a specified type, and adds it to the light palette.
Parameters
Required. Specifies the name of the new light. The name of the new light must be
newLightName
unique within the light palette.
typeIndicator
the following:
is a generalized light in the 3D world.
#ambient
#directional
is a light source like a light bulb.
#point
is a spotlight effect.
#spot
Example
The following statement creates a new light in the cast member named 3D World. It is an
ambient light called "ambient room light".
member("3D World").newLight("ambient room light", #ambient)
newMember()
Usage
-- Lingo syntax
_movie.newMember(symbol)
_movie.newMember(stringMemberType)
// JavaScript syntax
_movie.newMember(stringMemberType);
Description
Movie method; creates a new cast member and allows you to assign individual property values to
child objects.
For new cast members, the
Possible predefined values correspond to the existing cast member types:
on. The
newMember()
any name that the author chooses.
It's also possible to create a new color cursor cast member using the Custom Cursor Xtra. Use
newMember(#cursor)
for use.
After
newMember()
Required. A symbol that specifies the type of the new light. Valid values include
is a light from a specific direction.
or
symbol
stringMemberType
method can also create Xtra cast member types, which can be identified by
and set the properties of the resulting cast member to make them available
is called, the new cast member is placed in the first empty cast library slot.
parameter sets the cast member's type.
,
#bitmap
newMember()
, and so
#field
421

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents