 					addEventListenerToOtherSystemManagers(type, otherSystemManagerMouseListener, useCapture, priority, useWeakReference)
 				if (systemManager.getSandboxRoot() == systemManager)
                 {
+                    if (eventProxyRefCounts[actualType] == null)
+                        eventProxyRefCounts[actualType] = 1;                        
+                    else
+                        eventProxyRefCounts[actualType] ++;
                     Object(systemManager).$addEventListener(actualType, eventProxy.marshalListener,
                             useCapture, priority, useWeakReference);
                     if (actualType == MouseEvent.MOUSE_UP)

			{
                if (systemManager.getSandboxRoot() == systemManager && eventProxy)
                {
                    Object(systemManager).$removeEventListener(actualType, eventProxy.marshalListener,
                            useCapture);
                    if (actualType == MouseEvent.MOUSE_UP)
                    {
                        try
                        {
                            if (systemManager.stage)
                                systemManager.stage.removeEventListener(Event.MOUSE_LEAVE, eventProxy.marshalListener,
                                    useCapture);
                        }
                        catch (e:SecurityError)
                        {
                        }
			            // Remove both listeners in case the system manager was added
			            // or removed from the stage after the listener was added.
                        Object(systemManager).$removeEventListener(Event.MOUSE_LEAVE, eventProxy.marshalListener,
                            useCapture);
                    }
                }
				if (!SystemManagerGlobals.changingListenersInOtherSystemManagers)
					removeEventListenerFromOtherSystemManagers(type, otherSystemManagerMouseListener, useCapture);

	private var idToPlaceholder:Object;
	
	private var eventProxy:EventProxy;
    
    private var eventProxyRefCounts:Object = {};

	//--------------------------------------------------------------------------
	//
