originMode
 
Syntax SetIconProperty(@"IconTitle", #originMode, value)

SetSpriteProperty(@"IconTitle", #originMode, value)
 

Type Icon property, sprite property
 
Description  This property controls how the origin point of a Flash movie is set. The origin point is the point around which scaling and rotation occurs. The originMode property can have these values:

#center The origin point is at the center of the Flash movie.
#topleft The origin point is at the top left of the Flash movie.
#point The origin point is at a point specified by the originPoint, originH, and originV properties.

You can get and set the originMode property. The default setting is #center.
 

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 originH property, originV property, originPoint property

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