_xscale
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
spritename._xscale
spritename._xscale = percentage;

Arguments
spritename is the name of the Sprite / Movie Clip or Object.
percentage is the new width of the Sprite / Object with respect to the original size as a percentage.
Negative percentage values can be used to horizontally flip the Sprite / Object.

Returns
Current scale. 100 represents the original size.

Description
This property returns or sets the horizontal scale of the indicated Sprite / Object.

Sample
_root.rect._xscale = 200
;   // double the width of the Sprite / Object.

Physics Properties are also supported for this property.