Class mx.controls.MenuBar

MovieClip
   +--mx.core.UIObject
      +--mx.core.UIComponent
         +--mx.controls.MenuBar

Description

MenuBar class - extends UIComponent - gives the user the ability to select an option from a menu within a series of menus

Field Index

__backgroundWidth, __labels, __marginWidth, __menuBarItems, __menuDataProvider, __menuEventHandler, __menus, __selectFirstItem, _s_MenuIndex, background_mc, boundingBox_mc, className, clipParameters, dataProvider, enableByPass, invUpdateDisplay, invUpdateSize, isDown, labelField, labelFunction, labels, mask_mc, menuBarBackLeftName, menuBarBackMiddleName, menuBarBackRightName, openMenuIndex, rebroadcastEvents, supposedToLoseFocus, symbolName, symbolOwner, tabChildren, topItemDepth
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 MenuBar()

addMenu(), addMenuAt(), changeColorStyleInChildren(), createChildren(), draw(), getMenuAt(), getMenuEnabledAt(), handleEvent(), init(), insertMenuBarItem(), invalidateStyle(), keyDown(), notifyStyleChangeInChildren(), onItemDragOut(), onItemDragOver(), onItemPress(), onItemRelease(), onItemRollOut(), onItemRollOver(), onKillFocus(), onSetFocus(), removeAll(), removeMenuAt(), removeMenuBarItemAt(), setDataProvider(), setEnabled(), setMenuEnabledAt(), showMenu(), size(), updateBackgroundDisplay(), updateDisplay()
Inherited from UIComponent
dispatchValueChangedEvent(), enabledChanged(), findFocusFromObject(), findFocusInChildren(), getFocus(), getFocusManager(), isParent(), pressFocus(), releaseFocus(), 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(), 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

MenuBar

function MenuBar()

Field Detail

symbolName

static symbolName:String

symbolOwner

static symbolOwner:Object

className

className:String

_s_MenuIndex

static _s_MenuIndex

__labels

__labels:Array

__menuBarItems

__menuBarItems:Array

__menus

__menus:Object

__menuDataProvider

__menuDataProvider:Object

topItemDepth

topItemDepth:Number

openMenuIndex

openMenuIndex:Number

isDown

isDown

boundingBox_mc

boundingBox_mc:MovieClip

background_mc

background_mc:MovieClip

mask_mc

mask_mc:MovieClip

menuBarBackLeftName

menuBarBackLeftName:String

menuBarBackRightName

menuBarBackRightName:String

menuBarBackMiddleName

menuBarBackMiddleName:String

__selectFirstItem

__selectFirstItem

__backgroundWidth

__backgroundWidth

__marginWidth

__marginWidth

__menuEventHandler

__menuEventHandler:Object

invUpdateDisplay

invUpdateDisplay:Boolean

invUpdateSize

invUpdateSize:Boolean

tabChildren

tabChildren:Boolean

enableByPass

enableByPass:Boolean

supposedToLoseFocus

supposedToLoseFocus:Boolean

labelField

labelField:String

labelFunction

labelFunction:Function

clipParameters

clipParameters:Object

rebroadcastEvents

rebroadcastEvents:Object

dataProvider

dataProvider:Object

labels

labels:Array

Method Detail

init

function init(Void):Void
Generic initializer

draw

function draw(Void):Void

handleEvent

function handleEvent(event)

onSetFocus

function onSetFocus()

onKillFocus

function onKillFocus()

createChildren

function createChildren(Void):Void

size

function size(Void):Void

addMenu

function addMenu(arg1, arg2):
Menu
Append a menu and activator at the end of this menubar.
Parameters
arg1 may be either (1) a String (to be used as the item's label), (2) or an xmlNode
arg2 may be either (1) undefined, (2) a menu, (3) or an xml/xmlNode @returns Return the reference to the new Menu. @tiptext Append a new menu item into the menubar @helpid 3442

addMenuAt

function addMenuAt(index, arg1, arg2)
Insert a menu and activator into the menubar.
Parameters
index the index where the menu should be inserted
arg1 may be either (1) a String (to be used as the item's label), (2) or an xmlNode
arg2 may be either (1) undefined, (2) a menu, (3) or an xml/xmlNode @returns Return the reference to the new Menu. @tiptext Insert a new menu item into the menubar at the given index @helpid 3443

insertMenuBarItem

private function insertMenuBarItem(index, mdp)

getMenuAt

function getMenuAt(index):
Menu
Return the menu at the given index
Parameters
index the index of the menu instance to return @returns a reference to the menu at that specified index @tiptext Return the menu item at a specific index. @helpid 3444

removeMenuAt

function removeMenuAt(index)
Remove the menu at the given index
Parameters
index the index of the menu instance to remove @returns a reference to the menu that was removed @tiptext Remove the menu item at a specific index. @helpid 3445

setEnabled

function setEnabled(b:
Boolean):Void

setMenuEnabledAt

function setMenuEnabledAt(index, enable)
Enable/disable a menu
Parameters
index the index of the menu instance to enable

getMenuEnabledAt

function getMenuEnabledAt(index)
Return the enabled status of a menu
Parameters
index the index of the menu instance @returns a Boolean of the enabled state of the specified menu @tiptext Return the enabled state of the menu item at a specific index. @helpid 3447

setDataProvider

function setDataProvider(dp)
Load the state from the given XMLNode object

invalidateStyle

function invalidateStyle(propName:
String):Void

changeColorStyleInChildren

function changeColorStyleInChildren(sheet, styleProp:
String, newValue):Void

notifyStyleChangeInChildren

function notifyStyleChangeInChildren(sheet, styleProp:
String, newValue)

updateDisplay

function updateDisplay(resize:
Boolean):Void

updateBackgroundDisplay

function updateBackgroundDisplay()

showMenu

function showMenu(index:
Number):Void

removeMenuBarItemAt

function removeMenuBarItemAt(index)

removeAll

private function removeAll()

onItemRollOver

function onItemRollOver(index:
Number):Void

onItemPress

function onItemPress(index:
Number):Void

onItemRelease

function onItemRelease(index:
Number)

onItemRollOut

function onItemRollOut(index:
Number)

onItemDragOver

function onItemDragOver(index:
Number)

onItemDragOut

function onItemDragOut(index:
Number)

keyDown

function keyDown(e:
Object):Void