Packagevegas.display
Classpublic class CoreSimpleButton
InheritanceCoreSimpleButton Inheritance flash.display.SimpleButton
Implements IDisplayObject

The CoreSimpleButton class extends the flash.display.SimpleButton class and implements the IDisplayObject interface.

Example :

     import vegas.display.CoreSimpleButton ;
     
     import flash.events.MouseEvent ;
     
     var click:Function = function( e:MouseEvent ):void
     {
         trace(e) ;
     }
     
     var button:CoreSimpleButton = new CoreSimpleButton( new UpState() , new OverState(), new DownState(), new HitTestState() ) ;
     button.addEventListener( MouseEvent.CLICK , click ) ;
     
     addChild( button ) ;
     



Public Properties
 PropertyDefined By
  logger : Logger
Determinates the internal ILogger reference of this Logable object.
CoreSimpleButton
Public Methods
 MethodDefined By
  
CoreSimpleButton(upState:DisplayObject = null, overState:DisplayObject = null, downState:DisplayObject = null, hitTestState:DisplayObject = null)
Creates a new CoreSimpleButton instance.
CoreSimpleButton
  
isLocked():Boolean
Returns true if the object is locked.
CoreSimpleButton
  
lock():void
Locks the object.
CoreSimpleButton
  
resetLock():void
Reset the lock security of the display.
CoreSimpleButton
  
unlock():void
Unlocks the display.
CoreSimpleButton
Property Detail
loggerproperty
logger:Logger

Determinates the internal ILogger reference of this Logable object.


Implementation
    public function get logger():Logger
    public function set logger(value:Logger):void
Constructor Detail
CoreSimpleButton()Constructor
public function CoreSimpleButton(upState:DisplayObject = null, overState:DisplayObject = null, downState:DisplayObject = null, hitTestState:DisplayObject = null)

Creates a new CoreSimpleButton instance.

Parameters
upState:DisplayObject (default = null) — The initial value for the SimpleButton up state.
 
overState:DisplayObject (default = null) — The initial value for the SimpleButton over state.
 
downState:DisplayObject (default = null) — The initial value for the SimpleButton down state.
 
hitTestState:DisplayObject (default = null) — The initial value for the SimpleButton hitTest state.
Method Detail
isLocked()method
public function isLocked():Boolean

Returns true if the object is locked.

Returns
Booleantrue if the object is locked.
lock()method 
public function lock():void

Locks the object.

resetLock()method 
public function resetLock():void

Reset the lock security of the display.

unlock()method 
public function unlock():void

Unlocks the display.