Syntax: |
the originMode of sprite whichFlashSprite |
|
the originMode of member whichFlashMember
|
Type: |
Cast member property; sprite property |
Description: |
This property controls how the origin point of a Flash movie is set. The origin point is the point around which scaling and rotation occurs. The originMode property can have these values: |
|
 |
#center The origin point is at the center of the Flash movie.
|
 |
#topleft The origin point is at the top left of the Flash movie.
|
 |
#point The origin point is at a point specified by the originPoint , originH , and
originV properties.
|
|
|
The originMode property can be tested and set. The default setting is #center .
|
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
set the originMode of sprite the spriteNum of me = #point
set the originH of sprite the spriteNum of me = 100
set the originV of sprite the spriteNum of me = 80
end
|
Related Lingo: |
originH property, originV property, originPoint property |
 |
|