     /**
      * Factory method to create a command menu.
      *
-     * @param parent The parent of this menu.
      * @param items an array of menu items.
      */
-    public static function createMenu (
-        parent :DisplayObjectContainer, items :Array) :CommandMenu
+    public static function createMenu (items :Array) :CommandMenu
     {
         var menu :CommandMenu = new CommandMenu();
+        menu.owner = DisplayObjectContainer(Application.application);
         menu.tabEnabled = false;
         menu.showRoot = true;
-        Menu.popUpMenu(menu, parent, items);
+        Menu.popUpMenu(menu, null, items);
         return menu;
     }
 

            y = r.y - getExplicitOrMeasuredHeight();

        } else {
            // simply position it below the trigger
            show(r.x, r.y + r.height);
        }
    }

    /**


import mx.controls.Menu;
import mx.core.mx_internal;
import mx.core.Application;
import mx.core.ScrollPolicy;
import mx.events.MenuEvent;

import com.dougmccune.controls.ScrollableArrowMenu;

import com.threerings.util.CommandEvent;

use namespace mx_internal;

/**
 * A pretty standard menu that can submit CommandEvents if menu items
