right (3D)
957
right
Usage
-- Lingo syntax
spriteObjRef
.right
// JavaScript syntax
spriteObjRef
.right;
Description
Sprite property; indicates the distance, in pixels, of a sprite’s right edge from the left edge of the
Stage. Read/write.
Sprite coordinates are expressed relative to the upper left corner of the Stage.
Example
This statement returns the distance of a sprite’s right edge:
-- Lingo syntax
put(sprite(6).right)
// JavaScript syntax
put(sprite(6).right);
See also
bottom
,
height
,
left
,
locH
,
locV
,
Sprite
,
top
,
width
right (3D)
Usage
member(
whichCastmember
).modelResource
(
whichModelResource
).right
modelResourceObjectReference
.right
Description
3D property; allows you to get or set the
right
property of a model resource whose type is
#box
.
The
right
property determines whether the right of the box is sealed (
TRUE
) or open (
FALSE
).
The default value is
TRUE
.
Example
This statement sets the right property of the model resource Crate to
TRUE
, meaning the right side
of this box will be closed:
member("3D World").modelResource("crate").right = TRUE
See also
bottom (3D)
,
left (3D)
,
top (3D)
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...