Icon Use BitmapData feature to paint AsWing Icons.
new FvBitmapIcon()public function FvBitmapIcon(bmp:BitmapData, width:Number, height:Number, scale:Boolean)Constructor.
bmp | BitmapData to use |
width | ( optional ) Prefered icon's width |
height | ( optional ) Prefered icon's height |
scale | ( optional ) Indicates if BitmapData is
scaled to icon's size. ( default true ).
|
static public function create(id:String, repository:String, scale:Boolean):FvBitmapIcon
Creates and returns FvBitmapIcon using passed-in bitmap id and
repository arguments.
id | Registration bitmap id. |
repository | Locator name |
public function applyFilter(f:BitmapFilter):VoidApply the new passed-in filter to BitmapData instance.
Filter is applied to enabled and disabled bitmap.
public function paintIcon(com:Component, g:Graphics, x:Number, y:Number):VoidDraw the icon at the specified location.
public function uninstallIcon(com:Component):VoidRemove things in the icon object related to the component. For example remove the MCs created at the first paint time.
There is not installIcon method, so you must install icon related things
at the first time of paintIcon, for example attach a MC if needed.