912
Chapter 14: Properties
See also
line...of
parent
Usage
member(
whichCastmember
).model(
whichModel
).parent
member(
whichCastmember
).camera(
whichCamera
).parent
member(
whichCastmember
).light(
whichLight
).parent
member(
whichCastmember
).group(
whichGroup
).parent
Description
3D property; when used with a model, camera, light or group reference, this property allows you
to get or set the parent node of the referenced object. The parent node can be any other model,
camera, light or group object.
An object’s
transform
property defines its scale, position and orientation relative to its
parent object.
Setting an object’s parent property to
VOID
is the same as removing the object from the world
using the
removeFromWorld()
command.
Setting an object’s parent property to the World group object (
group("World")
) is the same as
adding an object to the world using the
addToWorld()
command.
You can also alter the value of this property by using the
addChild
command.
Example
The following statement sets the parent property of the model named Tire. Its parent is set to the
model named Car.
member("Scene").model("Tire").parent = \
member("Scene").model("Car")
See also
child (3D)
,
addChild
password
Usage
-- Lingo syntax
memberOrSpriteObjRef
.password
// JavaScript syntax
memberOrSpriteObjRef
.password;
Description
RealMedia sprite and cast member property; allows you to set the password required to access a
protected RealMedia stream. For security reasons, you cannot use this property to retrieve a
password previously specified for this property. If a password has been set previously, the value of
this property is the string
"********"
. If no password has been set, the value of this property is
an empty string.
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...