453
Example
This sprite script uses the
originMode
property to set up a Flash movie sprite so it’s 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
originV
,
originMode
,
originPoint
,
scaleMode
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:
•
#center
(default)—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.
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
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...