Packagecom.threerings.ui
Classpublic class SimpleTextButton
InheritanceSimpleTextButton Inheritance flash.display.SimpleButton

Displays a simple button with a rounded rectangle or rectangle for a face.



Public Methods
 MethodDefined by
  
SimpleTextButton(text:String, rounded:Boolean = true, foreground:uint = 0x003366, background:uint = 0x6699CC, highlight:uint = 0x0066FF, padding:int = 5, textFormat:TextFormat = null)
SimpleTextButton
Protected Methods
 MethodDefined by
  
makeFace(text:String, rounded:Boolean, foreground:uint, background:uint, padding:int, textFormat:TextFormat):Sprite
SimpleTextButton
Constructor detail
SimpleTextButton()constructor
public function SimpleTextButton(text:String, rounded:Boolean = true, foreground:uint = 0x003366, background:uint = 0x6699CC, highlight:uint = 0x0066FF, padding:int = 5, textFormat:TextFormat = null)Parameters
text:String
 
rounded:Boolean (default = true)
 
foreground:uint (default = 0x003366)
 
background:uint (default = 0x6699CC)
 
highlight:uint (default = 0x0066FF)
 
padding:int (default = 5)
 
textFormat:TextFormat (default = null)
Method detail
makeFace()method
protected function makeFace(text:String, rounded:Boolean, foreground:uint, background:uint, padding:int, textFormat:TextFormat):SpriteParameters
text:String
 
rounded:Boolean
 
foreground:uint
 
background:uint
 
padding:int
 
textFormat:TextFormat

Returns
Sprite