03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - 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 mouseListener:Object = new Object();<br />

mouseListener.onMouseMove = function() {<br />

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 />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 6<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 <strong>ActionScript</strong> 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 />

Camera<br />

Object<br />

|<br />

+-Camera<br />

public class Camera<br />

extends Object<br />

Camera 387

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

Saved successfully!

Ooh no, something went wrong!