MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 1094

Director scripting reference
Table of Contents

Advertisement

// 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 (
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
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(),
1094
Chapter 14: Properties
command. The position of a node is represented by a
position (transform)
) or not (
).
TRUE
FALSE

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