Class mx.containers.Accordion

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

Description

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

Field Index

__bDrawFocus, __focusedIndex, __selectedIndex, childIcons, childLabels, childNames, childSymbols, className, falseDisabledSkin, falseDownSkin, falseOverSkin, falseUpSkin, headerClass, kBaseHeaderDepth, kBaseMaskDepth, kHeaderNameBase, kMaskNameBase, selectedChild, selectedIndex, symbolName, symbolOwner, trueDisabledSkin, trueDownSkin, trueOverSkin, trueUpSkin, tween, tweenBorderMetrics, tweenContentHeight, tweenContentWidth, tweenMargins, tweenNewSelectedIndex, tweenOldSelectedIndex
Inherited from View
__tabIndex, _loadExternalClass, border_mc, boundingBox_mc, childNameBase, className, createClassChildAtDepth, depth, hasBeenLayedOut, loadExternal, numChildren, symbolName, symbolOwner, tabIndex
Inherited from UIComponent
clipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, height, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, width
Inherited from UIObject
__height, __onUnload, __width, _color, _endInit, _id, _maxHeight, _maxWidth, _minHeight, _minWidth, _preferredHeight, _preferredWidth, _tf, _topmost, addEventListener, bottom, buildDepthTable, changeColorStyleInChildren, changeTextStyleInChildren, childrenCreated, className, clipParameters, color, createAccessibilityImplementation, createChildAtDepth, createClassChildAtDepth, createEvent, dispatchEvent, embedFonts, findNextAvailableDepth, fontFamily, fontSize, fontStyle, fontWeight, handleEvent, height, idNames, ignoreClassStyleDeclaration, initProperties, invalidateFlag, left, lineColor, lineWidth, marginLeft, marginRight, methodTable, minHeight, minWidth, notifyStyleChangeInChildren, removeEventListener, right, scaleX, scaleY, setStyle, stylecache, styleName, symbolName, symbolOwner, tabEnabled, textAlign, textColorList, textDecoration, textIndent, tfList, top, validateNow, visible, width, x, y
Inherited from 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

Method Index

new Accordion()

calcContentHeight(), calcContentWidth(), createChild(), createChildren(), createHeaderAndMask(), createSegment(), destroyChildAt(), dispatchChangeEvent(), doLayout(), drawFocus(), drawHeaderFocus(), getHeaderAt(), getSelectedChild(), getSelectedIndex(), headerPress(), init(), initLayout(), keyDownHandler(), onKillFocus(), onSetFocus(), onTweenEnd(), onTweenUpdate(), setSelectedChild(), setSelectedIndex(), startTween()
Inherited from View
addLayoutObject(), childLoaded(), convertToUIObject(), draw(), extension(), getChildAt(), size()
Inherited from UIComponent
dispatchValueChangedEvent(), enabledChanged(), findFocusFromObject(), findFocusInChildren(), getFocus(), getFocusManager(), isParent(), pressFocus(), releaseFocus(), setEnabled(), setFocus(), setVisible()
Inherited from UIObject
__getTextFormat(), _createChildren(), _getTextFormat(), cancelAllDoLaters(), constructObject(), createClassObject(), createEmptyObject(), createLabel(), createObject(), createSkin(), destroyObject(), doLater(), doLaterDispatcher(), drawRect(), getClassStyleDeclaration(), getMinHeight(), getMinWidth(), getSkinIDName(), getStyle(), getStyleName(), initFromClipParameters(), invalidate(), invalidateStyle(), mergeClipParameters(), move(), redraw(), setColor(), setMinHeight(), setMinWidth(), setSize(), setSkin()
Inherited from 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(), onLoad(), onMouseDown(), onMouseMove(), onMouseUp(), onPress(), onRelease(), onReleaseOutside(), onRollOut(), onRollOver(), onUnload(), play(), prevFrame(), removeMovieClip(), setMask(), startDrag(), stop(), stopDrag(), swapDepths(), unloadMovie(), valueOf()

Constructor Detail

Accordion

function Accordion()

Field Detail

symbolName

static symbolName:String

symbolOwner

static symbolOwner:Object

className

className:String

kBaseHeaderDepth

private kBaseHeaderDepth:Number

kBaseMaskDepth

private kBaseMaskDepth:Number

kHeaderNameBase

private kHeaderNameBase:String

kMaskNameBase

private kMaskNameBase:String

headerClass

private headerClass:Function

__selectedIndex

private __selectedIndex:Number

__focusedIndex

private __focusedIndex:Number

__bDrawFocus

private __bDrawFocus:Boolean

tweenBorderMetrics

private tweenBorderMetrics:Object

tweenMargins

private tweenMargins:Object

tweenContentWidth

private tweenContentWidth:Number

tweenContentHeight

private tweenContentHeight:Number

tweenOldSelectedIndex

private tweenOldSelectedIndex:Number

tweenNewSelectedIndex

private tweenNewSelectedIndex:Number

tween

private tween:Tween

childSymbols

childSymbols:Array

childNames

childNames:Array

childLabels

childLabels:Array

childIcons

childIcons:Array

falseUpSkin

falseUpSkin:String

falseDownSkin

falseDownSkin:String

falseOverSkin

falseOverSkin:String

falseDisabledSkin

falseDisabledSkin:String

trueUpSkin

trueUpSkin:String

trueDownSkin

trueDownSkin:String

trueOverSkin

trueOverSkin:String

trueDisabledSkin

trueDisabledSkin:String

selectedChild

selectedChild:MovieClip

selectedIndex

selectedIndex:Number

Method Detail

init

function init()

createChild

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

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

createChildren

function createChildren():Void

initLayout

function initLayout():Void

doLayout

function doLayout():Void
Layout the accordion contents

onSetFocus

function onSetFocus():Void

onKillFocus

function onKillFocus():Void

keyDownHandler

function keyDownHandler(evt:
Object):Void

drawFocus

function drawFocus(isFocused:
Boolean):Void

getSelectedChild

function getSelectedChild():
MovieClip

setSelectedChild

function setSelectedChild(v:
MovieClip):Void

getSelectedIndex

function getSelectedIndex():
Number

setSelectedIndex

function setSelectedIndex(v:
Number):Void

createHeaderAndMask

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

getHeaderAt

function getHeaderAt(idx:
Number):UIComponent

calcContentWidth

function calcContentWidth():
Number

calcContentHeight

function calcContentHeight():
Number

drawHeaderFocus

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

headerPress

function headerPress(header:
SimpleButton):Void

startTween

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

onTweenUpdate

function onTweenUpdate(value:
Number):Void

onTweenEnd

function onTweenEnd(value:
Number):Void

dispatchChangeEvent

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