| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Defines a set of values used to fill an area on screen
with a bitmap or other DisplayObject.
alpha:Number Implementation public function get alpha():Number public function set alpha(value:Number):voidprotected var compoundTransform:mx.geom:CompoundTransformfillMode:String| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 10, AIR 1.5 |
The fillMode determines how the bitmap fills in the dimensions. If you set the value
of this property in a tag, use the string (such as "repeat"). If you set the value of
this property in ActionScript, use the constant (such as BitmapFillMode.CLIP).
When set to BitmapFillMode.CLIP ("clip"), the bitmap
ends at the edge of the region.
When set to BitmapFillMode.REPEAT ("repeat"), the bitmap
repeats to fill the region.
When set to BitmapFillMode.SCALE ("scale"), the bitmap
stretches to fill the region.
The default value is BitmapFillMode.SCALE.
Implementation public function get fillMode():String public function set fillMode(value:String):voidmatrix:Matrix| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
By default, the LinearGradientStroke defines a transition
from left to right across the control.
Use the rotation property to control the transition direction.
For example, a value of 180.0 causes the transition
to occur from right to left, rather than from left to right.
The default value is 0.0.
Implementation public function get matrix():Matrix public function set matrix(value:Matrix):voidoffsetX:NumberDeprecated Since 4.0: Please Use
x | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
How far the bitmap is horizontally offset from the origin.
This adjustment is performed after rotation and scaling.
The default value is 0.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get offsetX():Number public function set offsetX(value:Number):voidoffsetY:NumberDeprecated Since 4.0: Please Use
y | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
How far the bitmap is vertically offset from the origin.
This adjustment is performed after rotation and scaling.
The default value is 0.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get offsetY():Number public function set offsetY(value:Number):voidoriginX:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The horizontal origin for the bitmap fill.
The bitmap fill is offset so that this point appears at the origin.
Scaling and rotation of the bitmap are performed around this point.
The default value is 0.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get originX():Number public function set originX(value:Number):voidoriginY:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The vertical origin for the bitmap fill.
The bitmap fill is offset so that this point appears at the origin.
Scaling and rotation of the bitmap are performed around this point.
The default value is 0.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get originY():Number public function set originY(value:Number):voidrepeat:BooleanDeprecated Since 4.0: Please Use
fillMode | Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Whether the bitmap is repeated to fill the area.
Set to true to cause the fill to tile outward
to the edges of the filled region.
Set to false to end the fill at the edge of the region.
The default value is true.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get repeat():Boolean public function set repeat(value:Boolean):voidrotation:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The number of degrees to rotate the bitmap.
Valid values range from 0.0 to 360.0.
The default value is 0.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get rotation():Number public function set rotation(value:Number):voidscaleX:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The percent to horizontally scale the bitmap when filling,
from 0.0 to 1.0.
If 1.0, the bitmap is filled at its natural size.
The default value is 1.0.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get scaleX():Number public function set scaleX(value:Number):voidscaleY:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The percent to vertically scale the bitmap when filling,
from 0.0 to 1.0.
If 1.0, the bitmap is filled at its natural size.
The default value is 1.0.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get scaleY():Number public function set scaleY(value:Number):voidsmooth:Boolean| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
A flag indicating whether to smooth the bitmap data
when filling with it.
The default value is false.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get smooth():Boolean public function set smooth(value:Boolean):voidsource:Object| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The source used for the bitmap fill.
The fill can render from various graphical sources,
including the following:
- A Bitmap or BitmapData instance.
- A class representing a subclass of DisplayObject.
The BitmapFill instantiates the class
and creates a bitmap rendering of it.
- An instance of a DisplayObject.
The BitmapFill copies it into a Bitmap for filling.
- The name of a subclass of DisplayObject.
The BitmapFill loads the class, instantiates it,
and creates a bitmap rendering of it.
The default value is null.
Implementation public function get source():Object public function set source(value:Object):voidtransformX:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The x position transform point of the fill.
Implementation public function get transformX():Number public function set transformX(value:Number):voidtransformY:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The y position transform point of the fill.
Implementation public function get transformY():Number public function set transformY(value:Number):voidx:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the x axis.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get x():Number public function set x(value:Number):voidy:Number| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
The distance by which to translate each point along the y axis.
This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.
Implementation public function get y():Number public function set y(value:Number):voidpublic function BitmapFill()| Language Version: | ActionScript 3.0 |
| Runtime Versions: | Flash Player 9, AIR 1.1 |
Constructor.
© 2009 Adobe Systems Incorporated. All rights reserved.
Sat Oct 3 2009, 04:15 AM -07:00