 import mx.controls.menuClasses.MenuItemRenderer;
 import mx.controls.menuClasses.MenuListData;
 import mx.controls.treeClasses.DefaultDataDescriptor;
-import mx.core.Application;
+import mx.core.ApplicationGlobals;
 import mx.core.ClassFactory;
 import mx.core.EdgeMetrics;
 import mx.core.EventPriority;

    {
        menu.parentDisplayObject = parent ?
                                   parent :
                                   DisplayObject(Application.application);

        if (!mdp)
            mdp = new XML();

    {
        var menu:Menu = new Menu();
        menu.tabEnabled = false;
        menu.owner = DisplayObjectContainer(ApplicationGlobals.application);
        menu.showRoot = showRoot;
        popUpMenu(menu, parent, mdp);
        return menu;
