MovieClip
+--mx.core.UIObject
+--mx.core.UIComponent
+--mx.core.View
+--mx.core.ScrollView
+--mx.controls.listclasses.ScrollSelectList
+--mx.controls.MenuMenu class - extends ScrollSelectList - gives the user the ability to select an option from a scrolling list
__activator, __activeChildren, __anchor, __anchorIndex, __closeDelay, __delayQueue, __enabled, __hScrollPolicy, __iconField, __lastRowRolledOver, __menuBar, __menuCache, __menuDataProvider, __namedItems, __openDelay, __parentMenu, __radioGroups, __rowHeight, __rowRenderer, __timeOut, __timer, __vScrollPolicy, __wasVisible, _inherited_dataProvider, _members, _selection, anchorRow, className, invUpdateSize, menuBarIndex, mixit, mixit2, popupMask, popupTween, supposedToLoseFocus, symbolName, symbolOwner, wasJustCreated__cellRenderer, __dataProvider, __hPosition, __iconField, __iconFunction, __labelField, __labelFunction, __rowCount, __rowHeight, __rowRenderer, __width, addItem, addItemAt, baseRowZ, calcPreferredWidth, cellRenderer, changeFlag, className, clearSelected, CONTENTDEPTH, createLabel, dataProvider, dragEnabled, dragScrolling, dropEnabled, enabled, getDataProvider, getItemAt, getLength, getSelectedIndex, getSelectedIndices, getSelectedItem, getSelectedItems, getValue, iconField, iconFunction, invLayoutContent, invRowHeight, invUpdateControl, isPressed, isRowStyle, isSelected, labelField, labelFunction, lastPosition, lastSelected, lastSelID, layoutX, layoutY, length, listContent, minScrollInterval, mixIt1, mixIt2, modelChanged, multipleSelection, onMouseUp, propertyTable, removeAll, removeItemAt, replaceItemAt, roundUp, rowCount, rowHeight, rows, scrollInterval, selectable, selected, selectedIndex, selectedIndices, selectedItem, selectedItems, selectHolder, selectionDeleted, selectItem, setDataProvider, setSelectedIndex, setSelectedIndices, sortItems, sortItemsBy, tempLabel, tH, topRowZ, tW, value, wasKeySelected__hPosition, __hScrollPolicy, __maxHPosition, __viewMetrics, __vPosition, __vScrollPolicy, className, columnWidth, heightPadding, hPosition, hScroller, hScrollPolicy, invLayout, MASK_DEPTH, mask_mc, maxHPosition, maxVPosition, numberOfCols, oldRndUp, owner, propsInited, rowC, rowH, scrollAreaChanged, specialHScrollCase, symbolName, symbolOwner, viewableColumns, viewableRows, vPosition, vScroller, vScrollPolicy, widthPadding__tabIndex, _loadExternalClass, border_mc, boundingBox_mc, childNameBase, className, createClassChildAtDepth, depth, hasBeenLayedOut, loadExternal, numChildren, symbolName, symbolOwner, tabIndexclipParameters, drawFocus, enabled, focusEnabled, focusManager, focusTextField, groupName, height, kStretch, mergedClipParameters, origBorderStyles, origBorderValues, popUp, symbolName, symbolOwner, tabEnabled, tabIndex, width__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_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, useHandCursornew Menu()
static symbolName:Stringstatic symbolOwner:ObjectclassName:Stringstatic mixit:Booleanstatic mixit2:Boolean__hScrollPolicy:String__vScrollPolicy:String__rowRenderer:String__rowHeight:Number__menuDataProvider:Object__wasVisible__menuBar__activator__parentMenu:Menu__menuCache:Object__namedItems:Object__radioGroups:Object__enabled:Boolean__openDelay:Number__closeDelay:Number__delayQueue:Array__timer__timeOut__anchor:Number__anchorIndex:Number__activeChildren:ObjectanchorRow:Object__lastRowRolledOver:NumbermenuBarIndex:NumberpopupTween:TweenpopupMask:MovieClip__iconFieldinvUpdateSize:BooleansupposedToLoseFocus:BooleanwasJustCreated:Boolean_selection:Object_members:Object_inherited_dataProvider:Arraystatic public function createMenu(parent, mdp, initObj)Return the Menu instance described by the given MenuDataProvider, and place the instance in the given parent container.
- Parameters
parentthe container mdpa MenuDataProvider to base the menu on @returns a Menu instance, already placed inside the parent, but invisible @tiptext Static function to create a menu instance @helpid 3139
static public function isItemEnabled(itm:Object):Booleanutilities for querying an item's state
public function addMenuItem(arg:Object):ObjectAppend a menu item at the end of this menu.
- Parameters
argmay be either (1) a String (to be used as the item's label), (2) an Object (whose properties will be copied into the resulting XMLNode's attributes), (3) an XMLNode (used directly), or (4) an XML instance whose firstChild will be cloned and used. @returns an XMLNode carrying a representation of the menu item's state @tiptext Append a new menu item to the menu @helpid 3141
public function addMenuItemAt(index:Number, arg:Object):ObjectInsert a menu item into this menu.
- Parameters
indexthe index where the item should be inserted argmay be either (1) a String (to be used as the item's label), (2) an Object (whose properties will be copied into the resulting XMLNode's attributes), (3) an XMLNode (used directly), or (4) an XML instance whose firstChild will be cloned and used. @returns an XMLNode carrying a representation of the menu item's state @tiptext Insert a new menu item into the menu at the given index @helpid 3142
public function removeMenuItemAt(index:Number):ObjectRemove the item at a given index from the menu. If there's no item at the given index, then do nothing and return undefined.
- Parameters
indexthe index of the item to be removed @returns a reference to the XMLNode that was removed (if any) @tiptext Remove the indicated menu item from the menu @helpid 3143
public function removeMenuItem(item:Object):ObjectRemove an item from the menu. If it doesn't belong to this Menu, then do nothing and return undefined.
- Parameters
itemthe item to be removed @returns a reference to the XMLNode that was removed, or undefined if the given item does not belong to this Menu instance. @tiptext Remove the given menu item from the menu @helpid 3144
public function getMenuItemAt(index:Number):ObjectRetrieve a menu item from this menu
- Parameters
indexthe index of the item to be retrieved @returns a reference to the XMLNode that was removed @tiptext Return the menu item at a specific index @helpid 3146
public function setMenuItemSelected(item:Object, select:Boolean):VoidMark a menu item as 'selected' (or not), and notify listeners.
- Parameters
itemthe target item selecta boolean indicating whether the item is selected or not @tiptext Select or deselect a menu item @helpid 3147
public function setMenuItemEnabled(item:Object, enable:Boolean):VoidMark a menu item as 'enabled' (or not), and notify listeners.
- Parameters
itemthe target item enablea boolean indicating whether the item is enabled or not @tiptext Enable/disable a menu item @helpid 3148
public function indexOf(item:Object):NumberReturn the index of the given item within this menu. If the target item does not belong to this menu, then return undefined.
- Parameters
itemthe target item @returns the index of the given item, or undefined @tiptext Return the index of the given menu item within the menu @helpid 3149
public function show(x:Number, y:Number):VoidIf the Menu isn't presently visible, place the top-left corner at the given coordinates within the parent, resize the menu as needed, and make it visible. This method also fires a "show" event to all listeners.
- Parameters
x(optional) the horizontal location of the top-left corner y(optional) the vertical location of the top-left corner @tiptext Make the menu visible @helpid 3150
function notifyStyleChangeInChildren(sheetName, styleProp, newValue):Voidprivate function installItem(item:Object):VoidInstall support structures for named items and radio-groups. For named items, add properties to the root Menu object that refer to them. For radio items, add them to the implied radio-group. Do the same for sub-items.
private function deinstallItem(item:Object):VoidScan the given Object (an XMLNode) for sub-elements containing named items and radio items. For named items, remove the previously-added properties from the root Menu object that refer to them. For radio items, remove them from the implied radio-group.
private function deinstallAllItems(Void):VoidClear out the named and radio-group items from this context
function setMenuDelay(delay:Number, request:String, args:Object):VoidInterval functions used to delay submenu tasks setMenuDelay - sets the interval timer or defers to queue callMenuDelay - calls the delayed function and signals to clear the interval clearMenuDelay - clears the interval and checks the queue for more tasks cancelMenuRequest - cancels last request and removes it from the queue runDelayQueue - cycles through delayed tasks setTimeOut - sets a timer to test for out of bounds cursor movement clearTimeOut - clears timeout interval callTimeOut - checks if cursor is out of bounds from branch item openSubMenu - opens a submenu after the specified delay time closeSubMenu - closes a submenu(s) after the specified delay time