Packageverlocity.display.gui
Classpublic class PauseButton
InheritancePauseButton Inheritance Button Inheritance Text Inheritance UIElement Inheritance flash.display.Sprite



Public Properties
 PropertyDefined By
 InheritedoriginX : Number
UIElement
 InheritedoriginY : Number
UIElement
Protected Properties
 PropertyDefined By
 InheritedbIsDisabled : Boolean
Button
 InheritedbIsHighlighted : Boolean
Button
 InheritedbIsSelected : Boolean
Button
 InheritedbMouseOver : Boolean
Button
 InheritedfCondition : Function
Button
 InheritedfFunction : Function
Button
 InheritediState : int
Button
 InheritednScale : Number
UIElement
 InheritedtfTextField : TextField
Text
 InheritedtfTextFormat : TextFormat
Text
Public Methods
 MethodDefined By
  
PauseButton(sText:String, tfFormat:TextFormat, iPosX:int, iPosY:int, fButton:Function, fCondition:Function = null, iSetWidth:int = 20)
PauseButton
 Inherited
Clear():void
Clears all graphics drawn on the UI element.
UIElement
 Inherited
Dispose():void
[override] Destroys the entire button
Button
 Inherited
DoButton():void
Preforms the button's function
Button
 Inherited
DrawRect(uiColor:uint = 0xFFFFFF, nAlpha:Number = 1, iWidth:int = 0, iHeight:int = 0, bLine:Boolean = false, iLineThickness:int = 1, uiLineColor:uint = 0xFFFFFF, nLineAlpha:Number = 1, bRounded:Boolean = false, iRoundness:int = 10, iOffsetX:int = 0, iOffsetY:int = 1):void
[override]
Text
 Inherited
GetHeight():int
Text
 Inherited
GetScale():Number
Returns the scale of the UI element.
UIElement
 Inherited
GetState():int
Returns the current state of the button.
Button
 Inherited
GetWidth():int
Text
 Inherited
IsDisabled():Boolean
Returns if the button is disabled
Button
 Inherited
IsHighlighted():Boolean
Returns if the button is highlighted
Button
 Inherited
IsSelected():Boolean
Returns if the button is selected
Button
 Inherited
Removes the condition of the button.
Button
 Inherited
ResetPos():void
Resets the X and Y position of the UI element to its original spawn position.
UIElement
 Inherited
ResetState():void
Resets the state of the button to its default.
Button
 Inherited
SetButton(fSetFunction:Function, fSetCondition:Function = null):void
Sets the functions of the button
Button
 Inherited
SetEnabled(bEnable:Boolean):void
Enables/disables the button for use
Button
 Inherited
SetHeight(iHeight:int):void
Text
 Inherited
SetHighlighted(bHighlight:Boolean):void
Enables/disables highlighting the button, as if the mouse was over it.
Button
 Inherited
SetOriginPos(nPosX:Number, nPosY:Number):void
Overrides origin position
UIElement
 Inherited
SetPos(nPosX:Number, nPosY:Number):void
Sets the X and Y position of the UI element.
UIElement
 Inherited
SetScale(nSetScale:Number):void
Sets the scale of the UI element.
UIElement
 Inherited
SetSelected(bSelect:Boolean):void
Enables/disables selection of the button.
Button
 Inherited
SetText(sText:String, tfTextFormat:TextFormat = null):void
[override] Sets the text to display on the button
Button
 Inherited
SetTextColor(uiColor:uint):void
Text
 Inherited
SetWidth(iWidth:int):void
[override] Sets the width of the button
Button
Protected Methods
 MethodDefined By
  
Disabled():void
[override]
PauseButton
  
Down():void
[override]
PauseButton
  
DrawBG():void
[override]
PauseButton
  
Out():void
[override]
PauseButton
  
Over():void
[override]
PauseButton
 Inherited
Press():void
Button
  
Selected():void
[override]
PauseButton
  
Up():void
[override]
PauseButton
Public Constants
 ConstantDefined By
 InheritedSTATE_DISABLED : int = 4
Button
 InheritedSTATE_DOWN : int = 3
Button
 InheritedSTATE_OUT : int = 1
Button
 InheritedSTATE_OVER : int = 2
Button
 InheritedSTATE_SELECTED : int = 5
Button
 InheritedSTATE_UP : int = 0
Button
Constructor Detail
PauseButton()Constructor
public function PauseButton(sText:String, tfFormat:TextFormat, iPosX:int, iPosY:int, fButton:Function, fCondition:Function = null, iSetWidth:int = 20)



Parameters
sText:String
 
tfFormat:TextFormat
 
iPosX:int
 
iPosY:int
 
fButton:Function
 
fCondition:Function (default = null)
 
iSetWidth:int (default = 20)
Method Detail
Disabled()method
override protected function Disabled():void

Down()method 
override protected function Down():void

DrawBG()method 
override protected function DrawBG():void

Out()method 
override protected function Out():void

Over()method 
override protected function Over():void

Selected()method 
override protected function Selected():void

Up()method 
override protected function Up():void