mx.graphics

# IFill - AS3 Flex

Package | mx.graphics
Interface | public interface IFill
Implementors | BitmapFill, LinearGradient, RadialGradient, SolidColor

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Defines the interface that classes that perform a fill must implement.

Related API Elements

mx.graphics.LinearGradient
mx.graphics.RadialGradient

Public Methods

| Method | Defined By
--- | --- | ---
|  | begin(target:Graphics, targetBounds:Rectangle, targetOrigin:Point):void Starts the fill. | IFill
|  | end(target:Graphics):void Ends the fill. | IFill

Method Detail

### begin

()
method

`public function begin(target:Graphics, targetBounds:Rectangle, targetOrigin:Point):void`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Starts the fill.

Parameters

| `target:Graphics` — The target Graphics object that is being filled.
| `targetBounds:Rectangle` — The Rectangle object that defines the size of the fill inside the `target`. If the dimensions of the Rectangle are larger than the dimensions of the `target`, the fill is clipped. If the dimensions of the Rectangle are smaller than the dimensions of the `target`, the fill expands to fill the entire `target`.
| `targetOrigin:Point` — The Point that defines the origin (0,0) of the shape in the coordinate system of target.

### end

()
method

`public function end(target:Graphics):void`

Language Version: | ActionScript 3.0

Product Version: | Flex 3

Runtime Versions: | Flash Player 9, AIR 1.1

Ends the fill.

Parameters

| `target:Graphics` — The Graphics object that is being filled.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00