Packagecom.threerings.ui
Classpublic class SimpleSkinButton
InheritanceSimpleSkinButton Inheritance flash.display.SimpleButton

A simple skin that shifts the text in the down state.



Public Methods
 MethodDefined by
  
SimpleSkinButton(skin:*, text:String, textFieldProps:Object = null, textFormatProps:Object = null, padding:int = 10, height:Number, xshift:int = 0, yshift:int = 1, outline:Object = null)
Create a SimpleSkinButton.
SimpleSkinButton
Protected Methods
 MethodDefined by
  
createState(bmp:BitmapData, text:String, textFieldProps:Object, textFormatProps:Object, padding:int, height:Number, xshift:int, yshift:int, outline:Object):Sprite
SimpleSkinButton
Constructor detail
SimpleSkinButton()constructor
public function SimpleSkinButton(skin:*, text:String, textFieldProps:Object = null, textFormatProps:Object = null, padding:int = 10, height:Number, xshift:int = 0, yshift:int = 1, outline:Object = null)

Create a SimpleSkinButton.

Parameters
skin:* — a BitmapData, Bitmap, or class that will turn into either.
 
text:String — the text to place on the button
 
textFieldProps:Object (default = null) — initProps for the TextField
 
textFormatProps:Object (default = null) — initProps for the TextFormat
 
padding:int (default = 10) — if a uint, the color of the outline to put over the skin.
 
height:Number
 
xshift:int (default = 0)
 
yshift:int (default = 1)
 
outline:Object (default = null)
Method detail
createState()method
protected function createState(bmp:BitmapData, text:String, textFieldProps:Object, textFormatProps:Object, padding:int, height:Number, xshift:int, yshift:int, outline:Object):SpriteParameters
bmp:BitmapData
 
text:String
 
textFieldProps:Object
 
textFormatProps:Object
 
padding:int
 
height:Number
 
xshift:int
 
yshift:int
 
outline:Object

Returns
Sprite