MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 970

Director scripting reference
Table of Contents

Advertisement

}
}
See also
scaleMode,
originMode
scale (transform)
Usage
member(whichCastmember).node(whichNode).transform.scale
member(whichCastmember).node(whichNode).getWorldTransform().scale
transform.scale
Description
3D property; allows you to get or set the scaling component of a transform. A transform defines a
scale, position and rotation within a given frame of reference. The
get and set the degree of scaling of the transform along each of the three axes. The default value of
this property is
vector(1.0,1.0,1.0)
A node can be a camera, group, light or model object. This command does not have any visual
effect on lights or cameras as they do not contain geometry. Setting the
transform defines that object's scaling along the X, Y and Z axes within the transform's frame of
reference. Getting the
getWorldTransform().scale
property of an object's parent relative transform using
scale
object's scaling relative to its parent node.
Example
This statement sets the
vector(2,5,3):
member("Scene").model("Moon").transform.scale = vector(2,5,3)
See also
transform
(property), getWorldTransform(),
(transform),
scaleMode
Usage
-- Lingo syntax
memberOrSpriteObjRef.scaleMode
// JavaScript syntax
memberOrSpriteObjRef.scaleMode;
Description
Cast member property and sprite property; controls the way a Flash movie or vector shape is
scaled within a sprite's bounding rectangle. When you scale a Flash movie sprite by setting its
and
scale
viewScale
the sprite is scaled. The
970
Chapter 14: Properties
property of an object's world relative transform using
scale
returns the object's scaling relative to the world origin. Setting the
property of the transform of the model named Moon to
scale
scale (command)
properties, the sprite itself is not scaled; only the view of the movie within
property can have these values:
scaleMode
.
transform.scale
position
property allows you to
scale
property of a node's
scale
defines the
(transform),
rotation

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Director mx 2004

Table of Contents