viewH
 
Syntax SetIconProperty(@"IconTitle", #viewH, number)

SetIconProperty(@"IconTitle", #viewH, number)
 

Type Icon 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. The point values can be floating-point numbers.

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.

You can get and set the value of the viewH property. The default setting is 0.
 

Example  This routine moves the view of a Flash movie sprite from left to right within the sprite's bounding rectangle.

repeat with i := 120 down to -120
    SetSpriteProperty(@"Flash Icon", #viewH, i )
end repeat
Related Functions viewV property, viewPoint property, viewScale property

To Table of Contents Back to Previous document Forward to next document