User Guide

711
viewH
Syntax
sprite(whichVectorOrFlashSprite).viewH
the viewH of sprite whichVectorOrFlashSprite
member(whichVectorOrFlashMember).viewH
the viewH of member whichVectorOrFlashMember
Description
Cast member and sprite property; controls the horizontal coordinate of a Flash movie and vector
shapes view point, specified in pixel units. The values can be floating-point numbers. The default
value is 0.
A Flash movies view point is set relative to its origin point.
Setting a positive value for
viewH shifts the movie to the left inside the sprite; setting a negative
value shifts the movie to the right. Therefore, changing the viewH property can have the effect of
cropping the movie or even of removing the movie from view entirely.
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 handler accepts a sprite reference as a parameter and moves the view of a Flash movie sprite
from left to right within the sprites bounding rectangle:
on panRight whichSprite
repeat with i = 120 down to -120
sprite(whichSprite).viewH = i
updateStage
end repeat
end
See also
scaleMode, viewV, viewPoint, viewScale
viewPoint
Syntax
sprite(whichVectorOrFlashSprite).viewPoint
the viewPoint of sprite whichVectorOrFlashSprite
member(whichVectorOrFlashMember).viewPoint
the viewPoint of member whichVectorOrFlashMember
Description
Cast member property and sprite property; controls the point within a Flash movie or vector
shape that is displayed at the center of the sprites bounding rectangle in pixel units. The values
are integers.