Lingo Dictionary > O-R > originMode |
![]() ![]() ![]() |
originMode
Syntax
sprite(
whichFlashOrVectorShapeSprite
).originMode
the originMode of sprite
whichFlashOrVectorShapeSprite
member(
whichFlashOrVectorShapeMember
)
.
originMode
the originMode of member
whichFlashOrVectorShapeMember
Description
Cast member property and sprite property; sets the origin point around which scaling and rotation occurs, as follows:
![]() |
|
![]() |
|
![]() |
|
This property can be tested and set.
Note: This property must be set to the default value if the scaleMode property is set to #autoSize, or the sprite will not display correctly.
Example
This sprite script uses the originMode
property to set up a Flash movie sprite so its origin point can be set to a specific point. It then sets the horizontal and vertical origin points.
on beginSprite me sprite(spriteNum of me).originMode = #point sprite(spriteNum of me).originH = 100 sprite(spriteNum of me).originV = 80 end
See also
originH
, originV
, originPoint
, scaleMode
![]() ![]() ![]() |