TextInput

Kind of class:class
Inherits from:UIComponent < UIObject < MovieClip
Classpath:mx.controls.TextInput
File last modified:Tuesday, 18 December 2007, 15:44:37
Component metadata:
    Event
    "change"

    Summary


    Constructor
    Class properties
    Instance properties
    Class methods
    Class methods inherited from UIObject
    Event handlers
    Event handlers inherited from UIComponent

    Constructor

    TextInput

    function TextInput (
    )

    Class properties

    mergedClipParameters

    static mergedClipParameters:Boolean = UIObject.mergeClipParameters(TextInput.prototype.clipParameters, UIComponent.prototype.clipParameters)
    (read)

    symbolName

    static symbolName:String = "TextInput"
    (read)

    symbolOwner

    static symbolOwner:Object = mx.controls.TextInput
    (read)

    version

    static version:String = "2.0.2.127"
    (read)

    Instance properties

    __editable

    __editable:Boolean = true
    (read)

    _accProps

    _accProps
    (read,write)

    accessibility data

    _maxWidth

    _maxWidth:Number = mx.core.UIComponent.kStretch
    (read)

    bind

    bind:Boolean
    (read)

    border_mc

    border_mc:RectBorder
    (read)

    borderStyle

    borderStyle:String
    (read)

    changeHandler

    changeHandler:Function
    (read)

    className

    className:String = "TextInput"
    (read)

    name of this class

    clipParameters

    clipParameters:Object = { text: 1, editable: 1, password: 1, maxChars: 1, restrict: 1}
    (read)

    editable

    editable:Boolean
    (read,write)

    true if the component is editable
    Component metadata:
      Inspectable
      defaultValue:
      true

      enterHandler

      enterHandler:Function
      (read)

      enterListener

      enterListener:Object
      (read)

      hPosition

      hPosition:Number
      (read,write)

      pixel offset when scrolled horizontally

      html

      html:Boolean
      (read,write)

      true if text is supplied as html

      *tiptext Whether the text field contains text or html.
      *helpid 3189

      initializing

      initializing:Boolean = true
      (read)

      initText

      initText:String = ""
      (read)

      label

      label:TextField
      (read)

      length

      length:Number
      (read)

      current length of text in component

      maxChars

      maxChars:Number
      (read,write)

      maximum number of characters that can be input into this component
      Component metadata:
        Inspectable
        category:
        "Limits"
        defaultValue:
        null,
        verbose:
        1,

        maxHPosition

        maxHPosition:Number
        (read)

        maximum allowed setting for hPosition

        owner

        owner:MovieClip
        (read)

        password

        password:Boolean
        (read,write)

        true to use '*' instead of the actual characters
        Component metadata:
          Inspectable
          defaultValue:
          false

          restrict

          restrict:String
          (read,write)

          list of characters to accept or deny
          Component metadata:
            Inspectable
            category:
            "Limits"
            defaultValue:
            "",
            verbose:
            1,

            tabIndex

            tabIndex:Number
            (read,write)

            tab order when using tab key to navigate

            text

            text:String
            (read,write)

            the text in the component
            Component metadata:
              Bindable
              ChangeEvent
              "focusOut","enter"
              Inspectable
              defaultValue:
              ""

              tfh

              tfh:Number
              (read)

              tfw

              tfw:Number
              (read)

              tfx

              tfx:Number
              (read)

              tfy

              tfy:Number
              (read)

              updateModel

              updateModel:Function
              (read)

              Instance methods

              addEnterEvents

              function addEnterEvents (
              ) : Void

              addEventListener

              function addEventListener (
              event:String, handler) : Void

              createChildren

              function createChildren (
              Void) : Void

              draw

              function draw (
              Void) : Void

              enterOnKeyDown

              function enterOnKeyDown (
              ) : Void

              getHtml

              function getHtml (
              ) : Boolean

              getText

              function getText (
              ) : String

              init

              function init (
              Void) : Void

              setColor

              function setColor (
              col:Number) : Void

              setEditable

              function setEditable (
              s:Boolean) : Void

              setEnabled

              function setEnabled (
              enable:Boolean) : Void

              setFocus

              function setFocus (
              ) : Void

              Sets the focus to this object.
              #

              setHtml

              function setHtml (
              value:Boolean) : Void

              setText

              function setText (
              t:String) : Void

              size

              function size (
              Void) : Void

              Event handlers

              onKillFocus

              function onKillFocus (
              newFocus:Object) : Void

              onLabelChanged

              function onLabelChanged (
              Void) : Void

              onSetFocus

              function onSetFocus (
              oldFocus:Object) : Void