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

SetSpriteProperty(@"IconTitle", #originH, number)
 

Type Icon property, sprite property
 
Description  This property controls the horizontal coordinate of a Flash movie's origin point. You set the originH property in Flash movie pixel units; it can have a floating-point value.

The origin point is the coordinate in a Flash movie around which scaling and rotation occurs. The origin point can be set with floating-point precision using the separate originH and originV properties, or it can be set with integer precision using the single originPoint property.

You can set the originH property only if the originMode property is set to #point.

You can get and set the originH property. The default setting is 0.
 

Example  This example 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 to the last point where the user clicked.

SetSpriteProperty(@"Flash Icon", #originMode, #point)
SetSpriteProperty(@"Flash Icon", #originH, ClickX)
SetSpriteProperty(@"Flash Icon", #originV, ClickY)
Related Functions originV property, originMode property, originPoint property.

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