| Package | vegas.text |
| Class | public class CoreTextField |
| Inheritance | CoreTextField flash.text.TextField |
| Implements | IDisplayObject |
Example :
import vegas.text.CoreTextField ;
var field:CoreTextField = new CoreTextField( 150 , 22 ) ;
field.x = 25 ;
field.y = 25 ;
field.background = true ;
field.backgroundColor = 0x000000 ;
field.border = true ;
field.borderColor = 0xFFFFFF ;
field.defaultTextFormat = new TextFormat("arial", 11, 0xFFFFFF, true, null, null, null, null, "center") ;
field.text = "hello world" ;
addChild(field) ;
| Property | Defined By | ||
|---|---|---|---|
| logger : Logger
Determinates the internal ILogger reference of this Logable object. | CoreTextField | ||
| Method | Defined By | ||
|---|---|---|---|
CoreTextField(width:Number = 100, height:Number = 100)
Creates a new CoreTextField instance. | CoreTextField | ||
isLocked():Boolean
Returns true if the object is locked. | CoreTextField | ||
lock():void
Locks the object. | CoreTextField | ||
resetLock():void
Reset the lock security of the display. | CoreTextField | ||
unlock():void
Unlocks the display. | CoreTextField | ||
| Method | Defined By | ||
|---|---|---|---|
addedToStage(e:Event = null):void
Invoked when the display is added to the stage. | CoreTextField | ||
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage. | CoreTextField | ||
| 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| CoreTextField | () | Constructor |
public function CoreTextField(width:Number = 100, height:Number = 100)Creates a new CoreTextField instance.
Parameterswidth:Number (default = 100) — Indicates the id of the object.
| |
height:Number (default = 100) — Indicates the width of the display object, in pixels.
|
| addedToStage | () | method |
protected function addedToStage(e:Event = null):voidInvoked when the display is added to the stage.
Parameters
e:Event (default = null) |
| 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.
| removedFromStage | () | method |
protected function removedFromStage(e:Event = null):voidInvoked when the display is removed from the stage.
Parameters
e:Event (default = null) |
| resetLock | () | method |
public function resetLock():voidReset the lock security of the display.
| unlock | () | method |
public function unlock():voidUnlocks the display.