832
ActionScript classes
this.createEmptyMovieClip("bmp_fill_mc", this.getNextHighestDepth());
with (bmp_fill_mc) {
matrix = new Matrix();
matrix.rotate(Math.PI/8);
repeat = true;
smoothing = true;
beginBitmapFill(bmpd, matrix, repeat, smoothing);
moveTo(0, 0);
lineTo(0, 60);
lineTo(60, 60);
lineTo(60, 0);
lineTo(0, 0);
endFill();
}
bmp_fill_mc._xscale = 200;
bmp_fill_mc._yscale = 200;
If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth()
method, which is
used in this example.
beginFill (MovieClip.beginFill method)
public beginFill(rgb:Number, [alpha:Number]) : Void
Indicates the beginning of a new drawing path. If an open path exists (that is, if the current
drawing position does not equal the previous position that is specified in a
MovieClip.moveTo()
method) and a fill is associated with it, that path is closed with a line
and then filled. This is similar to what happens when
MovieClip.endFill()
method is
called.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability:
ActionScript 1.0; Flash Player 6
Parameters
rgb
:Number
- A hexadecimal color value; for example, red is 0xFF0000, blue is 0x0000FF. If
this value is not provided or is undefined, a fill is not created.
alpha
:Number
[optional] - An integer from 0 to 100 that specifies the alpha value of the fill.
If this value is not provided, 100 (solid) is used. If the value is less than 0, Flash uses 0. If the
value is greater than 100, Flash uses 100.
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...