      * 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;

package com.threerings.mx.controls {

import flash.display.DisplayObjectContainer;

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


import com.threerings.mx.events.CommandEvent;

/**
 * A pretty standard menu that can submit CommandEvents if menu items
 * have "command" and possibly "arg" properties.
 *
 * Example dataProvider array:
 * [ { label: "Go home", icon: homeIconClass,
 *     command: Controller.GO_HOME, arg: homeId },
 *   { type: "separator"},
 *   { label: "Other places", children: subMenuArray }
 * ];
 *
 * See "Defining menu structure and data" in the Flex manual for the
 * full list.
 */ 
public class CommandMenu extends Menu
{
    public function CommandMenu ()
    {
        super();

        addEventListener(MenuEvent.ITEM_CLICK, itemClicked);
    }
