User Guide
Lingo Dictionary 123
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
centerRegPoint
Syntax
member(whichCastMember).centerRegPoint
the centerRegPoint of member whichCastMember
Description
Flash, vector shape, and bitmap cast member property; automatically centers the registration
point of the cast member when you resize the sprite (
TRUE, default); or repositions the
registration point at its current point value when you resize the sprite, set the
defaultRect
property, or set the
regPoint property (FALSE).
This property can be tested and set.
Example
This script checks to see if a Flash movie’s centerRegPoint property is set to TRUE. If it is, the
script uses the
regPoint property to reposition the sprite’s registration point to its upper left
corner. By checking the
centerRegPoint property, the script ensures that it does not reposition a
registration point that had been previously set using the
regPoint property.