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

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

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

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