Form

Kind of class:class
Inherits from:Screen < Loader < View < UIComponent < UIObject < MovieClip
Classpath:mx.screens.Form
File last modified:Tuesday, 18 December 2007, 15:44:38
Form class
- extends Screen
- enables author-defined handling of Form visibility and containment
Component metadata:
    InspectableList
    "autoLoad","contentPath"

    Summary


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

    Constructor

    Form

    function Form (
    )

    Class properties

    currentFocusedForm

    static currentFocusedForm:Form
    (read)

    Leaf-node form that contains the current focused field or component
    Read-Only: use setFocus() to set the focus

    symbolName

    static symbolName:String = "Form"
    (read)

    symbolOwner

    static symbolOwner:Object = mx.screens.Form
    (read)

    Instance properties

    _childForms

    private _childForms:Array
    (read)

    _indexInParentForm

    private _indexInParentForm:Number = 0
    (read)

    _isForm

    private _isForm = true
    (read)

    _sendRevealDuringRedraw

    private _sendRevealDuringRedraw:Boolean = true
    (read)

    className

    className:String = "Form"
    (read)

    indexInParentForm

    indexInParentForm:Number
    (read)

    zero-based index of this form in its parent (getChildForm)
    Read-Only: use createChild() to add new child form

    numChildForms

    numChildForms:Number
    (read)

    number of children of this form that are forms, not including slides
    Read-Only: use createChild() to add new child forms

    parentForm

    parentForm:Form
    (read)

    Form containing this form. May be null for the root form.
    Read-Only: use createChild() to add new child forms

    parentIsForm

    parentIsForm:Boolean
    (read)

    True if this form's _parent is a form
    Read-Only: use createChild() to add new child forms

    rootForm

    rootForm:Form
    (read)

    Root form of the form subtree that contains this form
    Read-Only: use createChild() to add new child forms

    visible

    visible:Boolean
    (read,write)

    True if object is visible -- override to get different verbose setting

    Instance methods

    childLoaded

    function childLoaded (
    obj:MovieClip) : Void

    Parameters:
    obj:
    the loaded child
    #
    Overrides:

    destroyChildAt

    function destroyChildAt (
    childIndex:Number) : Void

    destroy the Nth child object. Remaining child objects get renumbered
    #
    Parameters:
    childIndex:
    a number from 0 to N-1
    #
    Returns:
    • a reference to the child
      #

    drawFocus

    function drawFocus (
    )

    Overrides:

    getChildForm

    function getChildForm (
    childIndex:Number) : Form

    Get the nth child of this form (zero-based)
    Parameters:
    childIndex:
    which form to get

    init

    private function init (
    )

    Overrides:

    redraw

    private function redraw (
    bAlways:Boolean) : Void

    registerChildForm

    private function registerChildForm (
    form:Form)