regPoint
Usage
-- Lingo syntax
memberObjRef.regPoint
// JavaScript syntax
memberObjRef.regPoint;
Description
Member property; specifies the registration point of a cast member. Read/write.
The registration point is listed as the horizontal and vertical coordinates of a point in the form
point(horizontal, vertical)
property.
regPoint
You can use the
film loop's position in relation to other objects on the Stage.
You can also use
When a Flash movie cast member is first inserted into the cast library, its registration point is its
center and its
centerRegPoint
property to reposition the registration point, the
to
.
FALSE
Example
This statement displays the registration point of the bitmap cast member Desk in the
Message window:
-- Lingo syntax
put(member("Desk").regPoint)
// JavaScript syntax
put(member("Desk").regPoint);
This statement changes the registration point of the bitmap cast member Desk to the values in
the list:
-- Lingo syntax
member("Desk").regPoint = point(300, 400)
// JavaScript syntax
member("Desk").regPoint = point(300, 400);
See also
Member,
Sprite
950
Chapter 14: Properties
. Nonvisual members such as sounds do not have a useful
property to animate individual graphics in a film loop, changing the
regPoint
to adjust the position of a mask being used on a sprite.
regPoint
property is set to
. If you subsequently use the
TRUE
property is automatically set
centerRegPoint
regPoint
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers