Syntax: | the viewH of sprite whichFlashSprite |
the viewH of member whichFlashMember
|
|
Type: | Cast member property; sprite property |
Description: | This property controls the horizontal coordinate of a Flash movie's view point. This point is specified in Flash movie pixel units. |
A Flash movie's view point is set relative to its origin point. For more information,
see the viewPoint property.
|
|
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.
|
|
The viewH property can be tested and set. The default setting is 0.
|
|
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 sprite's bounding rectangle. |
on panRight whichSprite repeat with i = 120 down to -120 set the viewH of sprite whichSprite = i end repeat end |
|
Related Lingo: | viewV property, viewPoint property, viewScale property |
![]() |