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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

this._width ~= 1.1;<br />

};<br />

See also<br />

_width (MovieClip._width property)<br />

_x (Button._x property)<br />

public _x : Number<br />

An integer that sets the x coordinate of a button relative to the local coordinates of the parent<br />

movie clip. If a button is on the main Timeline, then its coordinate system refers to the upper<br />

left corner of the Stage as (0, 0). If the button is inside a movie clip that has transformations,<br />

the button is in the local coordinate system of the enclosing movie clip. Thus, for a movie clip<br />

rotated 90 degrees counterclockwise, the enclosed button inherits a coordinate system that is<br />

rotated 90 degrees counterclockwise. The button's coordinates refer to the registration point<br />

position.<br />

Example<br />

The following example sets the coordinates of my_btn to 0 on the Stage. Create a button<br />

called my_btn <strong>and</strong> enter the following ActionScript in Frame 1 of the Timeline:<br />

my_btn._x = 0;<br />

my_btn._y = 0;<br />

See also<br />

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

(Button._yscale property)<br />

_xmouse (Button._xmouse property)<br />

public _xmouse : Number [read-only]<br />

Returns the x hasMouse is true relative to the button.<br />

Note: The _xmouse property is supported for Flash Lite 2.0 only if<br />

System.capabilities.hasMouse is true or System.capabilities.hasStylus is<br />

true.<br />

Example<br />

The following example displays the x coordinate of the mouse position for the Stage <strong>and</strong> a<br />

button called my_btn that is placed on the Stage. Enter the following ActionScript in Frame 1<br />

of the Timeline:<br />

274 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!