         supposedToLoseFocus = true;
         
         // If the user clicks outside the menu, then hide the menu
-        var sbRoot:DisplayObject = systemManager.getSandboxRoot();
         sbRoot.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownOutsideHandler, false, 0, true);
         addEventListener(SandboxMouseEvent.MOUSE_DOWN_SOMEWHERE, mouseDownOutsideHandler, false, 0, true);
     }

            y = Number(yShow);

        // Adjust for menus that extend out of bounds
        if (this != getRootMenu())
        {
            // do x
            var shift:Number = x + width - screen.width;
            if (shift > 0)
                x = Math.max(x - shift, 0);
                
            // now do y
            shift = y + height - screen.height;
            if (shift > 0)
                y = Math.max(y - shift, 0);
        }

import mx.events.CollectionEventKind;
import mx.events.FlexEvent;
import mx.events.FlexMouseEvent;
import mx.events.InterManagerRequest;
import mx.events.ListEvent;
import mx.events.SandboxMouseEvent;
import mx.events.MenuEvent;
