674
top
Syntax
sprite(
whichSprite
).top
the top of sprite
whichSprite
Description
Sprite property; returns the top vertical coordinate of the bounding rectangle of the sprite
specified by
whichSprite
as the number of pixels from the upper left corner of the Stage.
When the movie plays back as an applet, this property’s value is relative to the upper left corner of
the applet.
This property can be tested and set.
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:
if sprite(3).top < 0 then offTopEdge
See also
bottom
,
height
,
locH
,
left
,
locV
,
right
,
width
top (3D)
Syntax
modelResourceObjectReference
.top
Description
3D command; when used with a model resource whose type is
#box
, allows you to both get and
set the
top
property of the model resource.
The
top
property determines whether the top of the box is sealed (
TRUE
) or open (
FALSE
). The
default value is
TRUE.
Example
This statement sets the
top
property of the model resource Gift box to
FALSE
, meaning the top of
this box will be open:
member("3D World").modelResource("Gift box").top = FALSE
See also
back
,
bottom (3D)
,
front
topCap
Syntax
modelResourceObjectReference
.topCap
Description
3D command; when used with a model resource whose type is
#cylinder
, allows you to both get
and set the
topCap
property of the model resource.
The
topCap
property determines whether the top cap of the cylinder is sealed (
TRUE
)
or open
(
FALSE
). The default value for this property is
FALSE
.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...