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.

with (box_mc) {<br />

lineStyle(1, 0xCCCCCC);<br />

beginFill(0xEEEEEE);<br />

moveTo(0, 0);<br />

lineTo(80, 0);<br />

lineTo(80, 60);<br />

lineTo(0, 60);<br />

lineTo(0, 0);<br />

endFill();<br />

};<br />

box_mc.onRollOver = function() {<br />

this._x -= this._width/2;<br />

this._y -= this._height/2;<br />

this._xscale = 200;<br />

this._yscale = 200;<br />

};<br />

box_mc.onRollOut = function() {<br />

this._xscale = 100;<br />

this._yscale = 100;<br />

this._x += this._width/2;<br />

this._y += this._height/2;<br />

};<br />

See also<br />

_x (MovieClip._x property), _y (MovieClip._y property), _yscale<br />

(MovieClip._yscale property), _width (MovieClip._width property)<br />

_y (MovieClip._y property)<br />

public _y : Number<br />

Sets the y coordinate of a movie clip relative to the local coordinates of the parent movie clip.<br />

If a movie clip is in the main Timeline, its coordinate system refers to the upper-left corner of<br />

the Stage.as (0,0). If the movie clip is inside another movie clip that has transformations, the<br />

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

rotated 90° counterclockwise, the movie clip's children inherit a coordinate system that is<br />

rotated 90° counterclockwise. The movie clip's coordinates refer to the registration point<br />

position.<br />

See also<br />

_x (MovieClip._x property), _xscale (MovieClip._xscale property), _yscale<br />

(MovieClip._yscale property)<br />

478 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!