with (box_mc) {
lineStyle(1, 0xCCCCCC);
beginFill(0xEEEEEE);
moveTo(0, 0);
lineTo(80, 0);
lineTo(80, 60);
lineTo(0, 60);
lineTo(0, 0);
endFill();
};
box_mc.onRollOver = function() {
this._x -= this._width/2;
this._y -= this._height/2;
this._xscale = 200;
this._yscale = 200;
};
box_mc.onRollOut = function() {
this._xscale = 100;
this._yscale = 100;
this._x += this._width/2;
this._y += this._height/2;
};
See also
_width (MovieClip._width property)
(MovieClip._y property)
_y (MovieClip._y property)
public _y : Number
Sets the y coordinate of a movie clip relative to the local coordinates of the parent movie clip.
If a movie clip is in the main Timeline, then its coordinate system refers to the upper-left
corner of the Stage as (0,0). If the movie clip is inside another movie clip that has
transformations, the movie clip is in the local coordinate system of the enclosing movie clip.
Thus, for a movie clip that is rotated 90° counterclockwise, the movie clip's children inherit a
coordinate system that is rotated 90° counterclockwise. The movie clip's coordinates refer to
the registration point position.
Availability: ActionScript 1.0; Flash Player 3
,
_x (MovieClip._x property)
,
_yscale (MovieClip._yscale property)
,
_y
MovieClip
941
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?