03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

var table_str:String = "";<br />

table_str += "Stage\t"+"x:"+_xmouse+"\t"+"y:"+_ymouse+newline;<br />

table_str += "Button\t"+"x:"+my_btn._xmouse+"\t"+"y:"+my_btn._ymouse+newline;<br />

table_str += "";<br />

mouse_txt.htmlText = table_str;<br />

};<br />

Mouse.addListener(mouseListener);<br />

See also<br />

_xmouse (Button._xmouse property)<br />

_yscale (Button._yscale property)<br />

public _yscale : Number<br />

The vertical scale of the button as applied from the registration point of the button, expressed<br />

as a percentage. The default registration point is (0,0).<br />

Example<br />

The following example scales a button called my_btn. When you click <strong>and</strong> release the button,<br />

it grows 10% on the x <strong>and</strong> y axis. Enter the following ActionScript in Frame 1 of the<br />

Timeline:<br />

my_btn.onRelease = function(){<br />

this._xscale ~= 1.1;<br />

this._yscale ~ 1.1;<br />

};<br />

See also<br />

_y (Button._y property), _x (Button._x property), _xscale (Button._xscale<br />

property)<br />

capabilities (System.capabilities)<br />

Object<br />

|<br />

+-System.capabilities<br />

public class capabilities<br />

extends Object<br />

capabilities (System.capabilities) 277

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!