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
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()
and then filled. This is similar to what happens when
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
- A hexadecimal color value; for example, red is 0xFF0000, blue is 0x0000FF. If
rgb:Number
this value is not provided or is undefined, a fill is not created.
[optional] - An integer from 0 to 100 that specifies the alpha value of the fill.
alpha:Number
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.
832
ActionScript classes
MovieClip.getNextHighestDepth()
method) and a fill is associated with it, that path is closed with a line
method, which is
MovieClip.endFill()
method is
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?