Main Page | Packages | Class Tree | Index | Help

mx.core

class View

Object
  |
  +--MovieClip
        |
        +--mx.core.UIObject
              |
              +--mx.core.UIComponent
                    |
                    +--mx.core.View

All Known Subclasses: Accordion, Loader, ScrollView

class View
extends UIComponent

base class for views/containers



Field Summary


__tabIndex: Number
value of tabIndex


border_mc: RectBorder



boundingBox_mc: MovieClip
internal object that gives initial size

static
childNameBase: String
Base for all children names (_child0 - _childN)


className: String
name of this class


createClassChildAtDepth: Function
from DepthManager;


depth: Number
loading external content takes place in two stages: emptying the existing content, and loading the new content.


loadExternal: Function
from ExternalContent

static
symbolName: String


static
symbolOwner: Object


static
version: String
Version string Copyright (C) 2003 Macromedia, Inc.

Fields inherited from class mx.core.UIComponent

clipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, version

Fields inherited from class mx.core.UIObject

__height, __width, _color, _topmost, addEventListener, buildDepthTable, changeColorStyleInChildren, changeTextStyleInChildren, childrenCreated, className, clipParameters, color, createAccessibilityImplementation, createChildAtDepth, createEvent, ction, dispatchEvent, embedFonts, findNextAvailableDepth, fontFamily, fontSize, fontStyle, fontWeight, handleEvent, idNames, ignoreClassStyleDeclaration, initProperties, marginLeft, marginRight, methodTable, notifyStyleChangeInChildren, removeEventListener, setStyle, stylecache, styleName, symbolName, symbolOwner, textAlign, textColorList, textDecoration, textIndent, validateNow, version

Fields inherited from class 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

Fields inherited from class Object

__proto__, constructor, prototype

Property Summary


numChildren: Number (read-only)
get the number of children in this view


tabIndex: Number (read, write)
By default, views are not tabstops so tabIndex will be undefined.

Properties inherited from class mx.core.UIComponent

height, width

Properties inherited from class mx.core.UIObject

bottom, height, left, minHeight, minWidth, right, scaleX, scaleY, top, visible, width, x, y

Constructor


View ( )


Method Summary


addLayoutObject ( object: Object ): Void



childLoaded ( obj: MovieClip ): Void



convertToUIObject ( obj: MovieClip ): Void
anything that gets loadmovie'd is just a movieclip.


createChild ( className, instanceName: String, initProps: Object ): MovieClip
add a new child object


createChildren ( ): Void
create the border behind everything and schedule first layout


destroyChildAt ( childIndex: Number ): Void
destroy the Nth child object.


doLayout ( ): Void



draw ( ): Void
redraw by re-laying out

static
extension ( )
this never gets called, it just makes sure the external content module gets loaded


getChildAt ( childIndex: Number ): UIObject
get the Nth child object


init ( ): Void
initialize variables


initLayout ( ): Void
layout the first time


size ( ): Void
respond to size changes

Methods inherited from class mx.core.UIComponent

dispatchValueChangedEvent, enabledChanged, findFocusFromObject, findFocusInChildren, getFocus, getFocusManager, init, isParent, onKillFocus, onSetFocus, pressFocus, releaseFocus, setEnabled, setFocus, setVisible, size

Methods inherited from class mx.core.UIObject

__getTextFormat, _createChildren, _getTextFormat, cancelAllDoLaters, constructObject, createChildren, createClassObject, createEmptyObject, createLabel, createObject, createSkin, destroyObject, doLater, doLaterDispatcher, draw, drawRect, getClassStyleDeclaration, getMinHeight, getMinWidth, getSkinIDName, getStyle, getStyleName, init, initFromClipParameters, invalidate, invalidateStyle, mergeClipParameters, move, redraw, setColor, setMinHeight, setMinWidth, setSize, setSkin, setVisible, size

Methods inherited from class 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, onKillFocus, onLoad, onMouseDown, onMouseMove, onMouseUp, onPress, onRelease, onReleaseOutside, onRollOut, onRollOver, onSetFocus, onUnload, play, prevFrame, removeMovieClip, setMask, startDrag, stop, stopDrag, swapDepths, unloadMovie, valueOf

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

__tabIndex

var __tabIndex: Number
value of tabIndex

border_mc

var border_mc: RectBorder

boundingBox_mc

var boundingBox_mc: MovieClip
internal object that gives initial size

childNameBase

static var childNameBase: String
Base for all children names (_child0 - _childN)

className

var className: String
name of this class

createClassChildAtDepth

var createClassChildAtDepth: Function
from DepthManager;

depth

var depth: Number
loading external content takes place in two stages: emptying the existing content, and loading the new content.

We track all loading using an object that moves from one stage to the other. the last used depth for the children

loadExternal

var loadExternal: Function
from ExternalContent

symbolName

static var symbolName: String

symbolOwner

static var symbolOwner: Object

version

static var version: String
Version string Copyright (C) 2003 Macromedia, Inc.

All Rights Reserved. The following is Sample Code and is subject to all restrictions on such code as contained in the End User License Agreement accompanying this product.


Property Documentation

numChildren

numChildren: Number (read-only)
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


Constructor Documentation

View

function View()

Method Documentation

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
anything that gets loadmovie'd is just a movieclip.

There's no way to make it a component except by doing this

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
create the border behind everything and schedule first layout

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

doLayout

function doLayout(): Void

draw

function draw(): Void
redraw by re-laying out

Overrides:

extension

static function extension()
this never gets called, it just makes sure the external content module gets loaded

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
initialize variables

Overrides:

initLayout

function initLayout(): Void
layout the first time

size

function size(): Void
respond to size changes

Overrides:


The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc