
338
left
Syntax
sprite(
whichSprite
).left
the left of sprite
whichSprite
Description
Sprite property; identifies the left horizontal coordinate of the bounding rectangle of the sprite
specified by
whichSprite
.
Sprite coordinates are measured in pixels, starting with (0,0) at the upper left corner of the Stage.
When a movie plays back as an applet, this property’s value is relative to the left edge of the applet.
This property can be tested and set.
Examples
The following statement determines whether the sprite’s left edge is to the left of the Stage’s left
edge. If the sprite’s left edge is to the Stage’s left edge, the script runs the handler
offLeftEdge
:
if sprite(3).left < 0 then offLeftEdge
This statement measures the left horizontal coordinate of the sprite numbered (i + 1) and assigns
the value to the variable named
vLowest
:
set vLowest = sprite (i + 1).left
See also
bottom
,
height
,
locH
,
locV
,
right
,
top
,
width
left (3D)
Syntax
member(
whichCastmember
).modelResource(
whichModelResource
).left
Description
3D
#box
model resource property; indicates whether the side of the box intersected by its -X axis
is sealed (
TRUE
) or open (
FALSE
).
The default value for this property is
TRUE
.
Example
This statement sets the
left
property of the model resource named Crate to
FALSE
, meaning the
left side of this box will be open:
member("3D World").modelResource("crate").left = FALSE
See also
back
,
front
,
bottom (3D)
,
top (3D)
,
right (3D)
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...