                 close(event);
             }
         }
-        else if (event is SandboxRootMouseEvent) 
+        else if (event is SandboxMouseEvent) 
         {
             close(event);
         }

        {
            _dropdown.removeEventListener(FlexMouseEvent.MOUSE_DOWN_OUTSIDE, dropdown_mouseOutsideHandler);
            _dropdown.removeEventListener(FlexMouseEvent.MOUSE_WHEEL_OUTSIDE, dropdown_mouseOutsideHandler);
            _dropdown.removeEventListener(SandboxRootMouseEvent.MOUSE_DOWN_SOMEWHERE, dropdown_mouseOutsideHandler);
            _dropdown.removeEventListener(SandboxRootMouseEvent.MOUSE_WHEEL_SOMEWHERE, dropdown_mouseOutsideHandler);

            PopUpManager.removePopUp(_dropdown);
            _dropdown = null;

import mx.events.FlexEvent;
import mx.events.FlexMouseEvent;
import mx.events.ListEvent;
import mx.events.SandboxMouseEvent;
import mx.events.ScrollEvent;
import mx.events.ScrollEventDetail;
import mx.managers.PopUpManager;
