Lingo Dictionary > O-R > regPoint |  |

regPoint

Syntax

    member(whichCastMember).regPoint
    the regPoint of member whichCastMember

Description

Cast member property; specifies the registration point of a cast member. The registration point is listed as the horizontal and vertical coordinates of a point in the form `point` `(``horizontal, vertical``)`. Nonvisual members such as sounds do not have a useful `regPoint` property.

You can use the `regPoint` property to animate individual graphics in a film loop, changing the film loop's position in relation to other objects on the Stage.

You can also use `regPoint` to adjust the position of a mask being used on a sprite.

When a Flash movie cast member is first inserted into the cast, its registration point is its center and its `centerRegPoint` property is set to `TRUE`. If you subsequently use the `regPoint` property to reposition the registration point, the `centerRegPoint` property is automatically set to `FALSE`.

This property can be tested and set.

Example

This statement displays the registration point of the bitmap cast member Desk in the Message window:

    put member("Desk").regPoint

Example

This statement changes the registration point of the bitmap cast member Desk to the values in the list:

    member("Desk").regPoint = point(300, 400)

See also

`centerRegPoint`, `mask`