      * Factory method to create a command menu.
      *
      * @param parent The parent of this menu.
-     * @param items an array of menu items, where each item is another array
-     *  with the following format: [ text, iconClass, command, arg ]. Arg is
-     *  optional.
+     * @param items an array of menu items.
      */
     public static function createMenu (
-            parent :DisplayObjectContainer, items :Array) :CommandMenu
+        parent :DisplayObjectContainer, items :Array) :CommandMenu
     {
         var menu :CommandMenu = new CommandMenu();
         menu.tabEnabled = false;


import com.threerings.mx.events.CommandEvent;

public class CommandMenu extends Menu
{
    public function CommandMenu ()
    {
        super();

        iconFunction = getIconFor;
        labelFunction = getLabelFor;

        addEventListener(MenuEvent.ITEM_CLICK, itemClicked);
    }

package com.threerings.mx.controls {

import flash.display.DisplayObject;
import flash.display.DisplayObjectContainer;

import flash.geom.Rectangle;

import mx.controls.Menu;
import mx.core.mx_internal;
