Constructor Detail

IconButton()

Method Detail

setIcon()

public function setIcon(image:Object, state:String):void

Sets the icon for the button. The icon is positioned in the center of the button.

The setIcon takes a path to an image (relative to your application file), a Bitmap instance,
or a BitmapData instance. In the following example, a path to an image in the source project is passed into the
setIcon method.