378
ActionScript classes
tab= "<b>Stage</b>\t"+"x:"+"\t"+"y:"+newline;
tab= "<b>Button</
b>\t"+"x:"+my_btn."\t"+"y:"+my_btn.newline;
tab= "</textformat>";
mouse_txt.htmlText = table_str;
};
Mouse.addListener(mouseListener);
See also
_ymouse (Button._ymouse property)
_xscale (Button._xscale property)
public _xscale : Number
The horizontal scale of the button as applied from the registration point of the button,
expressed as a percentage. The default registration point is (0,0).
Scaling the local coordinate system affects the
_x
and
_y
property settings, which are defined
in pixels. For example, if the parent movie clip is scaled to 50%, setting the
_x
property moves
an object in the button by half the number of pixels that it would if the SWF file were at
100%.
Availability:
ActionScript 1.0; Flash Player 6
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)
,
_y (Button._y property)
,
_yscale (Button._yscale
property)
_y (Button._y property)
public _y : Number
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...