1094
Chapter 14: Properties
// JavaScript syntax
trace(_player.windowList);
See also
Player
wordWrap
Usage
-- Lingo syntax
memberObjRef
.wordWrap
// JavaScript syntax
memberObjRef
.wordWrap;
Description
Cast member property; determines whether line wrapping is allowed (
TRUE
) or not (
FALSE
).
Example
This statement turns line wrapping off for the field cast member Rokujo:
--Lingo syntax
member("Rokujo").wordWrap = FALSE
// JavaScript syntax
member("Rokujo").wordWrap = false;
worldPosition
Usage
member(
whichCastmember
).model(
whichModel
).worldPosition
member(
whichCastmember
).light(
whichLight
).worldPosition
member(
whichCastmember
).camera(
whichCamera
).worldPosition
member(
whichCastmember
).group(
whichGroup
).worldPosition
Description
3D property; allows you to get and not set the position of the specified node in world coordinates.
A node can be a model, group, camera, or light. This property is equivalent in result to using
getWorldTransform().position
command. The position of a node is represented by a
vector object.
Example
This statement shows that the position of the model named Mars, in world coordinates, is the
vector (-1333.2097, 0.0000, -211.0973):
put member("scene").model("Mars").worldPosition
-- vector(-1333.2097, 0.0000, -211.0973)
See also
getWorldTransform()
,
position (transform)
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...