A simple skin that shifts the text in the down state.
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 )
|
protected function createState(bmp:BitmapData, text:String, textFieldProps:Object, textFormatProps:Object, padding:int, height:Number, xshift:int, yshift:int, outline:Object):Sprite
Parameters
| bmp:BitmapData |
|
| text:String |
|
| textFieldProps:Object |
|
| textFormatProps:Object |
|
| padding:int |
|
| height:Number |
|
| xshift:int |
|
| yshift:int |
|
| outline:Object |
Returns
Copyright © 2007-2009 Three Rings Design, Inc.