Lingo Dictionary > T-Z > viewV |
![]() ![]() ![]() |
viewV
Syntax
sprite(
whichVectorOrFlashSprite
)
.
viewV
the viewV of sprite
whichVectorOrFlashSprite
member(
whichVectorOrFlashMember
).viewV
the viewV of member
whichVectorOrFlashMember
Description
Cast member and sprite property; controls the vertical coordinate of a Flash movie and vector shape's view point, specified in pixel units. The values can be floating-point numbers. The default value is 0.
A Flash movie's view point is set relative to its origin point.
Setting a positive value for viewV
shifts the movie up inside the sprite; setting a negative value shifts the movie down. Therefore, changing the viewV
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 the top to the bottom within the sprite's bounding: rectangle.
on panDown whichSprite repeat with i = 120 down to -120 sprite(whichSprite).viewV = i updateStage end repeat end
See also
![]() ![]() ![]() |