MovieClip
943
mouse_txt.ht= "</textformat>";
};
The
MovieClip.getNextHighestDepth()
method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth()
method.
See also
Mouse
,
_xmouse (MovieClip._xmouse property)
_yscale (MovieClip._yscale property)
public _yscale : Number
Sets the vertical scale (
percentage
) of the movie clip as applied from the registration point of
the movie clip. The default registration point is (0,0).
Scaling the local coordinate system affects the
_x
and
_y
property settings, which are defined
in whole pixels. For example, if the parent movie clip is scaled to 50%, setting the
_x
property
moves an object in the movie clip by half the number of pixels as it would if the movie were at
100%.
Availability:
ActionScript 1.0; Flash Player 4
Example
The following example creates a movie clip called
box_mc
at runtime. The Drawing API is
used to draw a box in this instance, and when the mouse rolls over the box, horizontal and
vertical scaling is applied to the movie clip. When the mouse rolls off the instance, it returns
to the previous scaling.
this.createEmptyMovieClip("box_mc", 1);
box_mc._x = 100;
box_mc._y = 100;
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;
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...