Syntax | SetIconProperty(@" IconTitle", #centerRegPoint, boolean) |
||||
Type | Icon property |
||||
Description | This property controls how the registration point of a Flash sprite icon is set. The centerRegPoint property can have these values:
When a Flash sprite icon is first inserted, its registration point is set at its center and its
You can get and set the value of the |
||||
Example | The following ifthen statement checks to see if a Flash movie's centerRegPoint property is set to TRUE . If it is, the second line sets the regPoint property to reposition the sprite's registration point to its upper-left corner. By checking the centerRegPoint property, this routine ensures that it doesn't reposition a registration point that had been previously explicitly set using the regPoint property.
If GetIconProperty(@"Flash Icon", #centerRegPoint) then SetIconProperty(@"Flash Icon", #regPoint, Point(0,0)) end if |
||||
Related Functions | regPoint property
|