View

Kind of class:class
Inherits from:UIComponent < UIObject < MovieClip
Known subclasses:
Classpath:mx.core.View
File last modified:Tuesday, 18 December 2007, 15:44:38
base class for views/containers

Summary


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

Constructor

View

function View (
)

Class properties

childNameBase

static childNameBase:String = "_child"
(read)

symbolName

static symbolName:String = "View"
(read)

symbolOwner

static symbolOwner:Object = mx.core.View
(read)

version

static version:String = "2.0.2.127"
(read)

Instance properties

__tabIndex

__tabIndex:Number
(read)

_loadExternalClass

private _loadExternalClass:String = "UIComponent"
(read)

border_mc

border_mc:RectBorder
(read)

boundingBox_mc

boundingBox_mc:MovieClip
(read)

className

className:String = "View"
(read)

name of this class

createClassChildAtDepth

createClassChildAtDepth:Function
(read)

depth

depth:Number
(read)

hasBeenLayedOut

private hasBeenLayedOut:Boolean = false
(read)

loadExternal

loadExternal:Function
(read)

numChildren

numChildren:Number
(read)

get the number of children in this view

tabIndex

tabIndex:Number
(read,write)

By default, views are not tabstops so tabIndex will
be undefined. However, some views can be tabstops and will therefore
return a tabIndex

Class methods

extension

static function extension (
)

Instance methods

addLayoutObject

function addLayoutObject (
object:Object) : Void

Parameters:
object:
the layout object

childLoaded

function childLoaded (
obj:MovieClip) : Void

Parameters:
obj:
the loaded child

convertToUIObject

function convertToUIObject (
obj:MovieClip) : Void

createChild

function createChild (
className, instanceName:String, initProps:Object) : MovieClip

add a new child object
Parameters:
className :
the name of the symbol, a reference to a class, or file path or URL to the external content
instanceName:
the instance name of the child
initProps :
object containing initialization properties
Returns:
  • reference to the child object

createChildren

function createChildren (
) : Void

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

doLayout

function doLayout (
) : Void

draw

function draw (
) : Void

getChildAt

function getChildAt (
childIndex:Number) : UIObject

get the Nth child object
Parameters:
childIndex:
a number from 0 to N-1
Returns:
  • a reference to the child

init

function init (
) : Void

Overrides:

initLayout

function initLayout (
) : Void

size

function size (
) : Void

Overrides: