Packagesekati.ui
Classpublic class TextButton
InheritanceTextButton Inheritance InteractiveSprite Inheritance CoreSprite Inheritance flash.display.Sprite

TextButton provides a very simple UI button with a text label and roll over states implementing InteractiveSprite.



Public Properties
 PropertyDefined by
  bg : Rect
TextButton
 Inheritedenabled : Boolean
Enabled property defines whether interactive eventing is available or not.
InteractiveSprite
 InheritedinteractiveMode : Boolean
Specifies the mouse cursors modal state in the object as an interactive target via: buttonMode, mouseChildren & tabChildren.
CoreSprite
 Inheritedscale : Number
The scale value.
CoreSprite
  tf : TextField
TextButton
Protected Properties
 PropertyDefined by
  _caption : String
TextButton
  _font : String
TextButton
  _size : uint
TextButton
Public Methods
 MethodDefined by
  
TextButton(caption:String, bgRect:Rect, font:String = "Verdana", size:uint = 9)
TextButton Constructor
TextButton
 Inherited
addChildren(... args):void
Add multiple child DisplayObject's.
CoreSprite
 Inherited
destroy():void
Clean up after thy self.
InteractiveSprite
 Inherited
toString():String
Return reflective output.
CoreSprite
Protected Methods
 MethodDefined by
 Inherited
click(e:MouseEvent = null):void
Stub: click event handler.
InteractiveSprite
 Inherited
configListeners(isAdd:Boolean = false):void
Event listener management.
InteractiveSprite
  
configUI():void
Configure UI Elements.
TextButton
 Inherited
invalidate():void
Request a redraw, use for deferred rendering.
CoreSprite
 Inherited
offStage(e:Event = null):void
Remove the listeners when removed from the stage.
InteractiveSprite
 Inherited
onStage(e:Event = null):void
Add listeners when added to stage.
InteractiveSprite
  
out(e:MouseEvent = null):void
Stub: mouse out event handler.
TextButton
  
over(e:MouseEvent = null):void
Stub: mouse over event handler.
TextButton
 Inherited
press(e:MouseEvent = null):void
Stub: press event handler.
InteractiveSprite
 Inherited
release(e:MouseEvent = null):void
Stub: release event handler.
InteractiveSprite
 Inherited
releaseOutside(e:Event = null):void
Stub: release outside event handler.
InteractiveSprite
Property detail
bgproperty
public var bg:Rect
_captionproperty 
protected var _caption:String
_fontproperty 
protected var _font:String
_sizeproperty 
protected var _size:uint
tfproperty 
public var tf:TextField
Constructor detail
TextButton()constructor
public function TextButton(caption:String, bgRect:Rect, font:String = "Verdana", size:uint = 9)

TextButton Constructor

Parameters
caption:String — of the button text.
 
bgRect:Rect — shape to use as background.
 
font:String (default = "Verdana") — of the button text.
 
size:uint (default = 9) — pf the button text.
Method detail
configUI()method
protected function configUI():void

Configure UI Elements.

out()method 
protected override function out(e:MouseEvent = null):void

Stub: mouse out event handler.

Parameters
e:MouseEvent (default = null)
over()method 
protected override function over(e:MouseEvent = null):void

Stub: mouse over event handler.

Parameters
e:MouseEvent (default = null)