Packagecom.nocircleno.graffiti.tools
Classpublic final class FillBucketTool
InheritanceFillBucketTool Inheritance Object
Implements ITool

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0, Flash Player 10 - AIR 1.5

Fill Bucket Tool Class allows the user to flood fill a part of the canvas.



Public Properties
 PropertyDefined By
  fillColor : uint
FillBucketTool
  layerType : String
[read-only] Layer to create on.
FillBucketTool
  renderType : String
[read-only] Fill Bucket Render Mode
FillBucketTool
  smoothStrength : int
FillBucketTool
  useAdvancedFill : Boolean
FillBucketTool
  useEntireCanvas : Boolean
FillBucketTool
Public Methods
 MethodDefined By
  
FillBucketTool(fillColor:uint, useEntireCanvas:Boolean = false, useAdvancedFill:Boolean = true, smoothStrength:int = 8)
The FillBucketTool constructor.
FillBucketTool
Property Detail
fillColorproperty
fillColor:uint  [read-write]


Implementation
    public function get fillColor():uint
    public function set fillColor(value:uint):void
layerTypeproperty 
layerType:String  [read-only]

Layer to create on.


Implementation
    public function get layerType():String
renderTypeproperty 
renderType:String  [read-only]

Fill Bucket Render Mode


Implementation
    public function get renderType():String
smoothStrengthproperty 
smoothStrength:int  [read-write]


Implementation
    public function get smoothStrength():int
    public function set smoothStrength(value:int):void
useAdvancedFillproperty 
useAdvancedFill:Boolean  [read-write]


Implementation
    public function get useAdvancedFill():Boolean
    public function set useAdvancedFill(value:Boolean):void
useEntireCanvasproperty 
useEntireCanvas:Boolean  [read-write]


Implementation
    public function get useEntireCanvas():Boolean
    public function set useEntireCanvas(value:Boolean):void
Constructor Detail
FillBucketTool()Constructor
public function FillBucketTool(fillColor:uint, useEntireCanvas:Boolean = false, useAdvancedFill:Boolean = true, smoothStrength:int = 8)

The FillBucketTool constructor.

Parameters
fillColor:uint — Color to fill with. This color should have an alpha value.
 
useEntireCanvas:Boolean (default = false) — Use underlaid and overlaid display object when filling.
 
useAdvancedFill:Boolean (default = true) — Apply a smoothing to the fill before applying it to the canvas.
 
smoothStrength:int (default = 8) — Smoothing setting for advanced fill.

Example
The following code creates a Fill Bucket Tool instance.
        // create a fill bucket tool
        var fillTool:FillBucketTool = new FillBucketTool(0xFFFF0000, false);