Lingo Dictionary > A-C > center |  |

center

Syntax

    member(whichCastMember).center
    the center of member whichCastMember

Description

Cast member property; interacts with the `crop` cast member property.

| When `the crop` property is `FALSE`, `the center` property has no effect.
| When `crop` is `TRUE` and `center` is`TRUE`, cropping occurs around the center of the digital video cast member.
| When `crop` is `TRUE` and `center` is `FALSE`, the digital video's right and bottom sides are cropped.

This property can be tested and set.

Example

This statement causes the digital video cast member Interview to be displayed in the top left corner of the sprite.

Dot syntax:

    member("Interview").center = FALSE

Verbose syntax:

    set the center of member "Interview" to FALSE

See also

`crop (cast member property)`, `centerRegPoint`, `regPoint`, `scale`