Packagecom.degrafa
Classpublic class GraphicText
InheritanceGraphicText Inheritance flash.text.TextField
ImplementsIGeometry, IGraphic, mx.core.IMXMLObject

GraphicText extends TextField and enables support for text fields to be added to compositions.

See also

flash.text.TextField


Public Properties
 PropertyDefined by
  autoSize : String
GraphicText
  autoSizeField : Boolean
GraphicText
  color : uint
GraphicText
  data : String
GraphicText
  document : Object
[read-only] The MXML document that created this object.
GraphicText
  enableEvents : Boolean
Enable events for this object.
GraphicText
  fill : IGraphicsFill
GraphicText
  fillCollection : FillCollection
[read-only] Access to the Degrafa fill collection object for this graphic object.
GraphicText
  fontFamily : String
GraphicText
  fontSize : Number
GraphicText
  fontWeight : String
GraphicText
  hasEventManager : Boolean
[read-only] Tests to see if a EventDispatcher instance has been created for this object.
GraphicText
  id : String
The identifier used by document to refer to this object.
GraphicText
  letterSpacing : int
GraphicText
  strokeCollection : StrokeCollection
[read-only] Access to the Degrafa stroke collection object for this graphic object.
GraphicText
  suppressEventProcessing : Boolean
Temporarily suppress event processing for this object.
GraphicText
  text : String
[write-only] A string that is the current text in the text field.
GraphicText
  textFormat : TextFormat
GraphicText
Public Methods
 MethodDefined by
  
GraphicText
  
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
GraphicText
  
dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean
Dispatches an property change event into the event flow.
GraphicText
  
initChange(property:String, oldValue:Object, newValue:Object, source:Object):void
Helper function for dispatching property changes
GraphicText
  
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
GraphicText
Property detail
autoSizeproperty
autoSize:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get autoSize():String
    public function set autoSize(value:String):void
autoSizeFieldproperty 
autoSizeField:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get autoSizeField():Boolean
    public function set autoSizeField(value:Boolean):void
colorproperty 
color:uint  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get color():uint
    public function set color(value:uint):void
dataproperty 
data:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get data():String
    public function set data(value:String):void
documentproperty 
document:Object  [read-only]

The MXML document that created this object.

This property can be used as the source for data binding.

Implementation
    public function get document():Object
enableEventsproperty 
enableEvents:Boolean  [read-write]

Enable events for this object.

This property can be used as the source for data binding.

Implementation
    public function get enableEvents():Boolean
    public function set enableEvents(value:Boolean):void
fillproperty 
fill:IGraphicsFill  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get fill():IGraphicsFill
    public function set fill(value:IGraphicsFill):void
fillCollectionproperty 
fillCollection:FillCollection  [read-only]

Access to the Degrafa fill collection object for this graphic object.

This property can be used as the source for data binding.

Implementation
    public function get fillCollection():FillCollection
fontFamilyproperty 
fontFamily:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get fontFamily():String
    public function set fontFamily(value:String):void
fontSizeproperty 
fontSize:Number  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get fontSize():Number
    public function set fontSize(value:Number):void
fontWeightproperty 
fontWeight:String  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get fontWeight():String
    public function set fontWeight(value:String):void
hasEventManagerproperty 
hasEventManager:Boolean  [read-only]

Tests to see if a EventDispatcher instance has been created for this object.

This property can be used as the source for data binding.

Implementation
    public function get hasEventManager():Boolean
idproperty 
id:String  [read-write]

The identifier used by document to refer to this object.

This property can be used as the source for data binding.

Implementation
    public function get id():String
    public function set id(value:String):void
letterSpacingproperty 
letterSpacing:int  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get letterSpacing():int
    public function set letterSpacing(value:int):void
strokeCollectionproperty 
strokeCollection:StrokeCollection  [read-only]

Access to the Degrafa stroke collection object for this graphic object.

This property can be used as the source for data binding.

Implementation
    public function get strokeCollection():StrokeCollection
suppressEventProcessingproperty 
suppressEventProcessing:Boolean  [read-write]

Temporarily suppress event processing for this object.

This property can be used as the source for data binding.

Implementation
    public function get suppressEventProcessing():Boolean
    public function set suppressEventProcessing(value:Boolean):void
textproperty 
text:String  [write-only]

A string that is the current text in the text field.

This property can be used as the source for data binding.

Implementation
    public function set text(value:String):void
textFormatproperty 
textFormat:TextFormat  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get textFormat():TextFormat
    public function set textFormat(value:TextFormat):void
Constructor detail
GraphicText()constructor
public function GraphicText()
Method detail
dispatchEvent()method
public override function dispatchEvent(event:Event):Boolean

Dispatches an event into the event flow.

Parameters
event:Event

Returns
Boolean

See also

EventDispatcher
dispatchPropertyChange()method 
public function dispatchPropertyChange(bubbles:Boolean = false, property:Object = null, oldValue:Object = null, newValue:Object = null, source:Object = null):Boolean

Dispatches an property change event into the event flow.

Parameters
bubbles:Boolean (default = false)
 
property:Object (default = null)
 
oldValue:Object (default = null)
 
newValue:Object (default = null)
 
source:Object (default = null)

Returns
Boolean
initChange()method 
public function initChange(property:String, oldValue:Object, newValue:Object, source:Object):void

Helper function for dispatching property changes

Parameters
property:String
 
oldValue:Object
 
newValue:Object
 
source:Object
initialized()method 
public function initialized(document:Object, id:String):void

Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.

Parameters
document:Object — The MXML document that created this object.
 
id:String — The identifier used by document to refer to this object.