Packagevegas.text
Classpublic class CoreTextField
InheritanceCoreTextField Inheritance flash.text.TextField
Implements IDisplayObject

The CoreTextField class extends the flash.text.TextField class and implements the IDisplayObject interface.

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) ;
     



Public Properties
 PropertyDefined By
  logger : Logger
Determinates the internal ILogger reference of this Logable object.
CoreTextField
Public Methods
 MethodDefined 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
Protected Methods
 MethodDefined 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
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
CoreTextField()Constructor
public function CoreTextField(width:Number = 100, height:Number = 100)

Creates a new CoreTextField instance.

Parameters
width:Number (default = 100) — Indicates the id of the object.
 
height:Number (default = 100) — Indicates the width of the display object, in pixels.
Method Detail
addedToStage()method
protected function addedToStage(e:Event = null):void

Invoked 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.

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

Locks the object.

removedFromStage()method 
protected function removedFromStage(e:Event = null):void

Invoked when the display is removed from the stage.

Parameters

e:Event (default = null)

resetLock()method 
public function resetLock():void

Reset the lock security of the display.

unlock()method 
public function unlock():void

Unlocks the display.