MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 831

Actionscript 2.0 language reference
Table of Contents

Advertisement

matrix:flash.geom.Matrix
which you can use to define transformations on the bitmap. For instance, you can use the
following matrix to rotate a bitmap by 45 degrees (pi/4 radians):
var matrix = new flash.geom.Matrix();
matrix.rotate(Math.PI/4);
[optional] - If
repeat:Boolean
the bitmap image does not repeat, and the edges of the bitmap are used for any fill area that
extends beyond the bitmap.
For example, consider the following bitmap (a 20 x 20-pixel checkerboard pattern):
When
is set to
repeat
When
is set to
repeat
bitmap:
smoothing:Boolean
nearest-neighbor algorithm and look pixelated. If
using a bilinear algorithm. Rendering using the nearest neighbor-algorithm is usually much
faster. The default value for this parameter is
Example
The following code defines a simple bitmap, and then uses
movie clip with that bitmap tiled:
import flash.display.*;
import flash.geom.*;
var bmpd:BitmapData = new BitmapData(20,20);
var rect1:Rectangle = new Rectangle(0,0,10,10);
var rect2:Rectangle = new Rectangle(0, 10, 10, 20);
var rect3:Rectangle = new Rectangle(10, 0, 20, 10);
var rect4:Rectangle = new Rectangle(10, 10, 20, 20);
bmpd.fillRect(rect1, 0xAA0000FF);
bmpd.fillRect(rect2, 0xAA00FF00);
bmpd.fillRect(rect3, 0xAAFF0000);
bmpd.fillRect(rect4, 0xAA999999);
[optional] - A matrix object (of the flash.geom.Matrix class),
, the bitmap image repeats in a tiled pattern. If
true
(as in the following example), the bitmap fill repeats the bitmap:
true
, the bitmap fill uses the edge pixels for the fill area outside of the
false
[optional] - If
, upscaled bitmap images are rendered using a
false
, upscaled bitmap images are rendered
true
.
false
beginBitmapFill()
,
false
to fill a
MovieClip
831

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF