| Package | vegas.display |
| Class | public class CoreSimpleButton |
| Inheritance | CoreSimpleButton flash.display.SimpleButton |
| Implements | IDisplayObject |
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 ) ;
| Property | Defined By | ||
|---|---|---|---|
| logger : Logger
Determinates the internal ILogger reference of this Logable object. | CoreSimpleButton | ||
| Method | Defined 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 | ||
| logger | property |
logger:Logger
Determinates the internal ILogger reference of this Logable object.
public function get logger():Logger public function set logger(value:Logger):void| CoreSimpleButton | () | Constructor |
public function CoreSimpleButton(upState:DisplayObject = null, overState:DisplayObject = null, downState:DisplayObject = null, hitTestState:DisplayObject = null)Creates a new CoreSimpleButton instance.
ParametersupState: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.
|
| isLocked | () | method |
public function isLocked():Boolean
Returns true if the object is locked.
Boolean — true if the object is locked.
|
| lock | () | method |
public function lock():voidLocks the object.
| resetLock | () | method |
public function resetLock():voidReset the lock security of the display.
| unlock | () | method |
public function unlock():voidUnlocks the display.