_X
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
spritename._X
spritename._X = value;

Arguments
spritename is the name of the Sprite / Movie Clip or Object.
value is the new value of the distance from the left edge of the stage in pixels.

Returns
X coordinate in pixels.

Description
Sets / Returns the current X coordinate of the Sprite or Object. This is the distance from the left edge of the stage in pixels to the specified anchor point of the Object / Sprite.

Sample
_root.rect._X += 10
;   // moves the Object rect 10 pixels to the right.

Physics Properties are also supported for this property.