![MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference Download Page 1046](http://html1.mh-extra.com/html/macromedia/director-mx-2004-director-scripting/director-mx-2004-director-scripting_reference_33217201046.webp)
1046
Chapter 14: Properties
•
lineColor
allows you to get or set the color of lines drawn by the inker. Possible values are any
valid Lingo color object. The default value is
rgb (0, 0, 0)
, which is black.
•
creases
allows you to get or set whether lines are drawn in creases. This is a Boolean value; the
default value is
True
.
•
creaseAngle
, if
creases
is set to
TRUE
, allows you to get or set how sensitive the line drawing
function of the toon modifier is to the presence of creases.
•
boundary
allows you to get or set whether lines are drawn around the boundary of the surface.
This is a Boolean value; the default value is
True
.
•
lineOffset
allows you to get or set where lines are drawn relative to the shaded surface and
the camera. Negative lines move lines toward the camera. Positive values move lines away from
the camera. Possible values are floating-point numbers from -100.0 to 100.0. The default value
is -2.0.
•
useLineOffset
allows you to get or set whether
lineOffset
is on or off. This is a Boolean
value; the default value is
False
.
•
silhouettes
allows you to get or set whether lines are drawn to define the edges along the
border of a model, outlining its shape. This is a Boolean value; the default value is
True
.
See also
addModifier
,
modifiers
,
sds (modifier)
,
inker (modifier)
top
Usage
-- Lingo syntax
spriteObjRef
.top
// JavaScript syntax
spriteObjRef
.top;
Description
Sprite property; returns or sets the top vertical coordinate of the bounding rectangle of a sprite as
the number of pixels from the upper left corner of the Stage. Read/write.
Example
This statement checks whether the top of sprite 3 is above the top of the Stage and calls the
handler
offTopEdge
if it is:
-- Lingo syntax
if (sprite(3).top < 0) then
offTopEdge()
end if
// JavaScript syntax
if (sprite(3).top < 0) {
offTopEdge();
}
See also
bottom
,
height
,
left
,
locH
,
locV
,
right
,
Sprite
,
width
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...