_Y
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
spritename._Y
spritename._Y = value;

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

Returns
Y coordinate in pixels.

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

Sample
_root.rect._Y += 10
;   // moves the Object rect 10 pixels down.

Physics Properties are also supported for this property.