Main Page | Packages | Class Tree | Index | Help

mx.containers

class Accordion

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


class Accordion
extends View

Accordion class - extends View - Displays one child view at a time - Displays a header for each child view



Field Summary


childIcons: Array



childLabels: Array



childNames: Array



childSymbols: Array
Flash clip parameters:


className: String



falseDisabledSkin: String



falseDownSkin: String



falseOverSkin: String



falseUpSkin: String
Skins to be used by AccordionHeader

static
symbolName: String


static
symbolOwner: Object



trueDisabledSkin: String



trueDownSkin: String



trueOverSkin: String



trueUpSkin: String


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

Fields inherited from class mx.core.View

__tabIndex, border_mc, boundingBox_mc, childNameBase, className, createClassChildAtDepth, depth, loadExternal, symbolName, symbolOwner, version

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


selectedChild: MovieClip (read, write)



selectedIndex: Number (read, write)


Properties inherited from class mx.core.View

numChildren, tabIndex

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


Accordion ( )
dynamic properties: _headerN _maskN Constructor

Method Summary


calcContentHeight ( ): Number



calcContentWidth ( ): Number



createChild ( symbolName: String, instanceName: String, props: Object ): MovieClip
Create a new child segment in the accordion.


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


createHeaderAndMask ( content_mc: Object, i: Number ): Void



createSegment ( symbolName: String, instanceName: String, labelStr: String, iconStr: String ): MovieClip
Create a new segment in the accordion.


destroyChildAt ( index: Number ): Void
Remove a segment from the accordion.


dispatchChangeEvent ( prevValue: Number, newValue: Number ): Void



doLayout ( ): Void
Layout the accordion contents


drawFocus ( isFocused: Boolean ): Void
draw focus on the object.


drawHeaderFocus ( headerIndex: Number, isFocused: Boolean ): Void



getHeaderAt ( idx: Number ): UIComponent



getSelectedChild ( ): MovieClip
Getter/Setter properties selectedChild


getSelectedIndex ( ): Number
selectedIndex


headerPress ( header: SimpleButton ): Void



init ( )
initialize variables


initLayout ( ): Void
layout the first time


keyDownHandler ( evt: Object ): Void



onKillFocus ( ): Void



onSetFocus ( ): Void



onTweenEnd ( value: Number ): Void



onTweenUpdate ( value: Number ): Void



setSelectedChild ( v: MovieClip ): Void



setSelectedIndex ( v: Number ): Void



startTween ( oldSelectedIndex: Number, newSelectedIndex: Number ): Void


Methods inherited from class mx.core.View

addLayoutObject, childLoaded, convertToUIObject, createChild, createChildren, destroyChildAt, doLayout, draw, extension, getChildAt, init, initLayout, size

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

childIcons

var childIcons: Array

childLabels

var childLabels: Array

childNames

var childNames: Array

childSymbols

var childSymbols: Array
Flash clip parameters:

className

var className: String

falseDisabledSkin

var falseDisabledSkin: String

falseDownSkin

var falseDownSkin: String

falseOverSkin

var falseOverSkin: String

falseUpSkin

var falseUpSkin: String
Skins to be used by AccordionHeader

symbolName

static var symbolName: String

symbolOwner

static var symbolOwner: Object

trueDisabledSkin

var trueDisabledSkin: String

trueDownSkin

var trueDownSkin: String

trueOverSkin

var trueOverSkin: String

trueUpSkin

var trueUpSkin: String

version

static var 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

selectedChild

selectedChild: MovieClip (read, write)

selectedIndex

selectedIndex: Number (read, write)

Constructor Documentation

Accordion

function Accordion()
dynamic properties: _headerN _maskN Constructor


Method Documentation

calcContentHeight

function calcContentHeight(): Number

calcContentWidth

function calcContentWidth(): Number

createChild

function createChild(symbolName: String,
 instanceName: String,
 props: Object): MovieClip
Create a new child segment in the accordion.

Override View to create header

Overrides:

Parameters:
symbolName
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
props
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:

createHeaderAndMask

function createHeaderAndMask(content_mc: Object,
 i: Number): Void

createSegment

function createSegment(symbolName: String,
 instanceName: String,
 labelStr: String,
 iconStr: String): MovieClip
Create a new segment in the accordion.

Wrapper for createChild.

destroyChildAt

function destroyChildAt(index: Number): Void
Remove a segment from the accordion.

Override View to destroy the header and mask and to call invalidate

Overrides:

Parameters:
index
childIndex a number from 0 to N-1

dispatchChangeEvent

function dispatchChangeEvent(prevValue: Number,
 newValue: Number): Void

doLayout

function doLayout(): Void
Layout the accordion contents

Overrides:

drawFocus

function drawFocus(isFocused: Boolean): Void
draw focus on the object.

Actually implemented in the theme.

Overrides:

drawHeaderFocus

function drawHeaderFocus(headerIndex: Number,
 isFocused: Boolean): Void

getHeaderAt

function getHeaderAt(idx: Number): UIComponent

getSelectedChild

function getSelectedChild(): MovieClip
Getter/Setter properties selectedChild

getSelectedIndex

function getSelectedIndex(): Number
selectedIndex

headerPress

function headerPress(header: SimpleButton): Void

init

function init()
initialize variables

Overrides:

initLayout

function initLayout(): Void
layout the first time

Overrides:

keyDownHandler

function keyDownHandler(evt: Object): Void

onKillFocus

function onKillFocus(): Void
Overrides:

onSetFocus

function onSetFocus(): Void
Overrides:

onTweenEnd

function onTweenEnd(value: Number): Void

onTweenUpdate

function onTweenUpdate(value: Number): Void

setSelectedChild

function setSelectedChild(v: MovieClip): Void

setSelectedIndex

function setSelectedIndex(v: Number): Void

startTween

function startTween(oldSelectedIndex: Number,
 newSelectedIndex: Number): Void

The documentation was generated from the following file:


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