Select alignment buttons to modify the selected objects:
3
For Align, select Align Left Edge, Align Horizontal Center, Align Right Edge, Align
Horizontal Registration Point, Align Top Edge, Align Vertical Center, Align Bottom Edge,
or Align Vertical Registration Point.
For Distribute, select Distribute Left Edge, Distribute Horizontal Center, Distribute Right
Edge, Distribute Horizontal Registration Point, Distribute Width, Distribute Horizontally
Across Stage, Distribute Top Edge, Distribute Vertical Center, Distribute Bottom Edge,
Distribute Vertical Registration Point, Distribute Height, or Distribute Vertically
Across Stage.
Positioning sprites with Lingo or JavaScript syntax
Script lets you control a sprite's position by setting the sprite's coordinates on the Stage. You
can also test a sprite's coordinates to determine a sprite's current position and whether two
sprites overlap.
To check the location of a sprite's registration point or bounding rectangle on the Stage:
•
Test the
bottom
The
,
bottom
individual edges. For more information about these properties, see the Scripting Reference
topics in the Director Help Panel.
To place a sprite at a specific location:
•
Set one of the following properties (for more information about these properties, see the
Scripting Reference topics in the Director Help Panel):
The loc sprite property
the Stage to the sprite's registration point. The value is given as a point.
The locV sprite property
registration point.
The locH sprite property
registration point.
The rect sprite property
The quad sprite property
can specify any four points; the points don't have to form a rectangle. The
can set the sprite's coordinates as precise floating-point numbers.
68
Chapter 3: Sprites
,
,
,
,
left
loc
locH
locV
,
, and
left
right
top
sets the horizontal and vertical distance from the upper left corner of
sets the number of pixels from the top of the Stage to a sprite's
sets the number of pixels from the left of the Stage to a sprite's
sets the location of the sprite's bounding rectangle on the Stage.
sets the location of the sprite's bounding rectangle on the Stage. You
,
, or
sprite property.
right
top
sprite properties determine the location of the sprite's
sprite property
quad
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers