Class mx.controls.TextArea

MovieClip
   +--mx.core.UIObject
      +--mx.core.UIComponent
         +--mx.core.View
            +--mx.core.ScrollView
               +--mx.controls.TextArea

Description

a multi-line text area, complete with optional scrollbars

Field Index

__editable, __hScrollPolicy, __vScrollPolicy, _accProps, _hpos, _vpos, className, clipParameters, editable, hookedH, hookedV, hPosition, hScrollPolicy, html, initializing, initText, label, length, maxChars, maxHPosition, maxVPosition, mergedClipParameters, password, restrict, styleSheet, symbolName, symbolOwner, tabIndex, text, tfh, tfw, tfx, tfy, vPosition, vScrollPolicy, wordWrap
Inherited from ScrollView
__hPosition, __hScrollPolicy, __maxHPosition, __viewMetrics, __vPosition, __vScrollPolicy, className, columnWidth, heightPadding, hPosition, hScroller, hScrollPolicy, invLayout, MASK_DEPTH, mask_mc, maxHPosition, maxVPosition, numberOfCols, oldRndUp, owner, propsInited, rowC, rowH, scrollAreaChanged, specialHScrollCase, symbolName, symbolOwner, viewableColumns, viewableRows, vPosition, vScroller, vScrollPolicy, widthPadding
Inherited from View
__tabIndex, _loadExternalClass, border_mc, boundingBox_mc, childNameBase, className, createClassChildAtDepth, depth, hasBeenLayedOut, loadExternal, numChildren, symbolName, symbolOwner, tabIndex
Inherited from UIComponent
clipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, height, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, width
Inherited from UIObject
__height, __onUnload, __width, _color, _endInit, _id, _maxHeight, _maxWidth, _minHeight, _minWidth, _preferredHeight, _preferredWidth, _tf, _topmost, addEventListener, bottom, buildDepthTable, changeColorStyleInChildren, changeTextStyleInChildren, childrenCreated, className, clipParameters, color, createAccessibilityImplementation, createChildAtDepth, createClassChildAtDepth, createEvent, dispatchEvent, embedFonts, findNextAvailableDepth, fontFamily, fontSize, fontStyle, fontWeight, handleEvent, height, idNames, ignoreClassStyleDeclaration, initProperties, invalidateFlag, left, lineColor, lineWidth, marginLeft, marginRight, methodTable, minHeight, minWidth, notifyStyleChangeInChildren, removeEventListener, right, scaleX, scaleY, setStyle, stylecache, styleName, symbolName, symbolOwner, tabEnabled, textAlign, textColorList, textDecoration, textIndent, tfList, top, validateNow, visible, width, x, y
Inherited from MovieClip
_alpha, _currentframe, _droptarget, _focusrect, _framesloaded, _height, _lockroot, _name, _parent, _quality, _rotation, _soundbuftime, _target, _totalframes, _url, _visible, _width, _x, _xmouse, _xscale, _y, _ymouse, _yscale, enabled, focusEnabled, hitArea, tabChildren, tabEnabled, tabIndex, tooltipText, trackAsMenu, useHandCursor

Method Index

new TextArea()

adjustScrollBars(), createChildren(), draw(), getHtml(), getLineOffsets(), getText(), init(), keyDown(), layoutContent(), onKillFocus(), onScroll(), onSetFocus(), restoreSelection(), scrollChanged(), setColor(), setEnabled(), setFocus(), setHtml(), setScrollProperties(), setText(), size()
Inherited from ScrollView
__onMouseWheel(), childLoaded(), createChild(), doLayout(), getHPosition(), getHScrollPolicy(), getMaxHPosition(), getViewMetrics(), getVPosition(), getVScrollPolicy(), invalidate(), scrollProxy(), setHPosition(), setHScrollPolicy(), setMaxHPosition(), setVPosition(), setVScrollPolicy()
Inherited from View
addLayoutObject(), convertToUIObject(), destroyChildAt(), extension(), getChildAt(), initLayout()
Inherited from UIComponent
dispatchValueChangedEvent(), enabledChanged(), findFocusFromObject(), findFocusInChildren(), getFocus(), getFocusManager(), isParent(), pressFocus(), releaseFocus(), setVisible()
Inherited from UIObject
__getTextFormat(), _createChildren(), _getTextFormat(), cancelAllDoLaters(), constructObject(), createClassObject(), createEmptyObject(), createLabel(), createObject(), createSkin(), destroyObject(), doLater(), doLaterDispatcher(), drawRect(), getClassStyleDeclaration(), getMinHeight(), getMinWidth(), getSkinIDName(), getStyle(), getStyleName(), initFromClipParameters(), invalidateStyle(), mergeClipParameters(), move(), redraw(), setMinHeight(), setMinWidth(), setSize(), setSkin()
Inherited from MovieClip
attachAudio(), attachMovie(), beginFill(), beginGradientFill(), clear(), createEmptyMovieClip(), createTextField(), curveTo(), duplicateMovieClip(), endFill(), getBounds(), getBytesLoaded(), getBytesTotal(), getDepth(), getInstanceAtDepth(), getNextHighestDepth(), getSWFVersion(), getTextSnapshot(), getURL(), globalToLocal(), gotoAndPlay(), gotoAndStop(), hitTest(), lineStyle(), lineTo(), loadMovie(), loadVariables(), localToGlobal(), moveTo(), nextFrame(), onData(), onDragOut(), onDragOver(), onEnterFrame(), onKeyDown(), onKeyUp(), onLoad(), onMouseDown(), onMouseMove(), onMouseUp(), onPress(), onRelease(), onReleaseOutside(), onRollOut(), onRollOver(), onUnload(), play(), prevFrame(), removeMovieClip(), setMask(), startDrag(), stop(), stopDrag(), swapDepths(), unloadMovie(), valueOf()

Constructor Detail

TextArea

function TextArea()

Field Detail

symbolName

static symbolName:String

symbolOwner

static symbolOwner:Object

className

className:String

initializing

initializing:Boolean

clipParameters

clipParameters:Object

mergedClipParameters

static mergedClipParameters:Boolean

__vScrollPolicy

__vScrollPolicy:String

__hScrollPolicy

__hScrollPolicy:String

label

label:TextField

__editable

__editable:Boolean

initText

initText:String

tfx

tfx:Number

tfw

tfw:Number

tfy

tfy:Number

tfh

tfh:Number

hookedV

hookedV:Boolean

hookedH

hookedH:Boolean

_vpos

_vpos:Number

_hpos

_hpos:Number

maxChars

maxChars:Number
maximum number of characters that can be input into this component

length

length:Number [Read Only]
current length of text in component

restrict

restrict:String
list of characters to accept or deny

wordWrap

wordWrap:Boolean
true if should wordwrap. If false, long lines get clipped

editable

editable:Boolean
true if the component is editable

password

password:Boolean
true to use '*' instead of the actual characters

html

html:Boolean
true if text is supplied as html

text

text:String
the text in the component

hPosition

hPosition:Number
pixel offset when scrolled horizontally

vPosition

vPosition:Number
line number of the topmost line of characters displayed

maxVPosition

maxVPosition:Number [Read Only]
maximum allowed setting for vPosition

maxHPosition

maxHPosition:Number [Read Only]
maximum allowed setting for hPosition

tabIndex

tabIndex:Number
tab order when using tab key to navigate

_accProps

_accProps:Object

styleSheet

styleSheet:StyleSheet

hScrollPolicy

hScrollPolicy:String

vScrollPolicy

vScrollPolicy:String

Method Detail

getHtml

function getHtml():
Boolean

setHtml

function setHtml(value:
Boolean):Void

getText

function getText():
String

setText

function setText(t:
String):Void

init

function init(Void):Void

createChildren

function createChildren(Void):Void

layoutContent

function layoutContent(x:
Number, y:Number, totalW:Number, totalH:Number, displayW:Number, displayH:Number):Void

scrollChanged

function scrollChanged(Void):Void

onScroll

function onScroll(docObj:
Object):Void

size

function size(Void):Void

setEnabled

function setEnabled(enable:
Boolean):Void

setColor

function setColor(col:
Number):Void

setFocus

function setFocus(Void):Void

onSetFocus

function onSetFocus(x:
Object):Void

onKillFocus

function onKillFocus(x:
Object):Void

restoreSelection

function restoreSelection(x:
Object):Void

getLineOffsets

function getLineOffsets(Void):
Array

keyDown

function keyDown(e:
Object):Void

draw

function draw(Void):Void

adjustScrollBars

function adjustScrollBars()

setScrollProperties

function setScrollProperties(colCount:
Number, colWidth:Number, rwCount:Number, rwHeight:Number, hPadding:Number, wPadding:Number):Void