Y (Button._Y Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example scales a button called my_btn. When you click and release the button,
it grows 10% on the x and y axis. Enter the following ActionScript in Frame 1 of the
Timeline:
my_btn.onRelease = function(){
this._xscale ~= 1.1;
this._yscale ~= 1.1;
};
See also
_x (Button._x property)
property)

_y (Button._y property)

public _y :
Number
The y coordinate of the button relative to the local coordinates of the parent movie clip. If a
button is in the main Timeline, its coordinate system refers to the upper left corner of the
Stage as (0, 0). If the button is inside another movie clip that has transformations, the button
is in the local coordinate system of the enclosing movie clip. Thus, for a movie clip rotated 90
degrees counterclockwise, the enclosed button inherits a coordinate system that is rotated 90
degrees counterclockwise. The button's coordinates refer to the registration point position.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example sets the coordinates of
called
and enter the following ActionScript in Frame 1 of the Timeline:
my_btn
my_btn._x = 0;
my_btn._y = 0;
See also
_x (Button._x property)
(Button._yscale property)
296
ActionScript classes
,
_y (Button._y property)
my_btn
,
_xscale (Button._xscale property)
,
_yscale (Button._yscale
to 0 on the Stage. Create a button
,
_yscale

Advertisement

Table of Contents
loading

Table of Contents