| Package | net.duncanhall.components |
| Class | public class TextButton |
| Inheritance | TextButton flash.display.SimpleButton |
| Property | Defined By | ||
|---|---|---|---|
| downTxtFmt : TextFormat
The TextFormat used to style the button when a
MouseEvent.MOUSE_DOWN event is dispatched. | TextButton | ||
| height : Number [override] [read-only]
The height of the text in the current state. | TextButton | ||
| overTxtFmt : TextFormat
The TextFormat used to style the button when a
MouseEvent.MOUSE_OVER event is dispatched. | TextButton | ||
| text : String
The text value that the button displays. | TextButton | ||
| upTxtFmt : TextFormat
The TextFormat used to style the button when a
MouseEvent.MOUSE_UP event is dispatched. | TextButton | ||
| width : Number [override] [read-only]
The width of the text in the current state. | TextButton | ||
| Method | Defined By | ||
|---|---|---|---|
TextButton(text:String, upTxtFmt:TextFormat = null, overTxtFmt:TextFormat = null, downTxtFmt:TextFormat = null, embedFonts:Boolean = false)
Creates a new TextButton instance. | TextButton | ||
| downTxtFmt | property |
downTxtFmt:TextFormat
The TextFormat used to style the button when a
MouseEvent.MOUSE_DOWN event is dispatched.
public function get downTxtFmt():TextFormat public function set downTxtFmt(value:TextFormat):void| height | property |
height:Number [read-only] [override] The height of the text in the current state.
public function get height():Number| overTxtFmt | property |
overTxtFmt:TextFormat
The TextFormat used to style the button when a
MouseEvent.MOUSE_OVER event is dispatched.
public function get overTxtFmt():TextFormat public function set overTxtFmt(value:TextFormat):void| text | property |
text:StringThe text value that the button displays.
public function get text():String public function set text(value:String):void| upTxtFmt | property |
upTxtFmt:TextFormat
The TextFormat used to style the button when a
MouseEvent.MOUSE_UP event is dispatched. This is
the default state for the button.
public function get upTxtFmt():TextFormat public function set upTxtFmt(value:TextFormat):void| width | property |
width:Number [read-only] [override] The width of the text in the current state.
public function get width():Number| TextButton | () | Constructor |
public function TextButton(text:String, upTxtFmt:TextFormat = null, overTxtFmt:TextFormat = null, downTxtFmt:TextFormat = null, embedFonts:Boolean = false)Creates a new TextButton instance.
Parameterstext:String — The text to display on the button.
| |
upTxtFmt:TextFormat (default = null) — The TextFormat to use for the up state.
| |
overTxtFmt:TextFormat (default = null) — The TextFormat to use for the over state.
| |
downTxtFmt:TextFormat (default = null) — The TextFormat to use for the down state.
| |
embedFonts:Boolean (default = false) — Whether the text should use an embedded font.
|