optionDown
901
The smoothness of the cylinder’s surface depends upon the value specified for this property. The
greater the property value the smoother the cylinder’s surface will appear.
Example
This statement sets the
numSegments
property of the model resource named Cylinder03 to 10:
member("3D World").modelResource("Cylinder03").numSegments = 10
obeyScoreRotation
Usage
member(
flashMember
).obeyScoreRotation
Description
Flash cast member property; set to
TRUE
or
FALSE
to determine if a Flash movie sprite uses the
rotation information from the Score, or the older rotation property of Flash assets.
This property is automatically set to
FALSE
for all movies created in Director prior to version 7 in
order to preserve old functionality of using the member rotation property for all sprites
containing that Flash member.
New assets created in version 7 or later will have this property automatically set to
TRUE
.
If set to
TRUE
, the rotation property of the member is ignored and the Score rotation settings are
obeyed instead.
Example
The following sprite script sets the obeyScoreRotation property of cast member "dalmation" to 1
(
TRUE
), then rotates the sprite which contains the cast member 180°.
on mouseUp me
member("dalmation").obeyScoreRotation = 1
sprite(1).rotation = sprite(1).ro 180
end
This property can be tested and set.
See also
rotation
optionDown
Usage
-- Lingo syntax
_key.optionDown
// JavaScript syntax
_key.optionDown;
Description
Key property; determines whether the user is pressing the Alt key (Windows) or the Option key
(Macintosh). Read-only.
This property returns
TRUE
if the user is pressing the Alt or Option key; otherwise, it
returns
FALSE
.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
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...