A small fixed size picture, typically used to decorate components.
public function paintIcon(com:Component, g:Graphics, x:Number, y:Number):Void
Draw the icon at the specified component's specified location with the graphics. If this if the first time to paint on the specified component, there may need some install operation, for example create MC on the specified mc if needed.
com | component for which this border is being painted |
g | the paint graphics |
x | the x corrdinate of the icon(top left of bounds) |
y | the y corrdinate of the icon(top left of bounds) |
public function uninstallIcon(com:Component):Void
Remove 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.