             // but don't skip the next one.
             request.data.skip = false;
            
-            if (sm.useSWFBridge())
+            if (useSWFBridge())
             {
-                var bridge:IEventDispatcher = sm.swfBridgeGroup.parentBridge;
+                var bridge:IEventDispatcher = swfBridgeGroup.parentBridge;
                 request.requestor = bridge;
                 bridge.dispatchEvent(request);
             }

				return forms[i];
		}
		
		throw new Error();  // shouldn't get here		
	}
	
	

        var rect:Rectangle = Rectangle(request.data);
        var owner:DisplayObject = DisplayObject(swfBridgeGroup.getChildBridgeProvider(request.requestor));
        var localRect:Rectangle;
        var forwardRequest:Boolean = true;
        
        // Check if the request in a pop up. If it is then don't 
        // forward the request to our parent because we don't want
        // to reduce the visible rect of the dialog base on the
        // visible rect of applications in the main app. 
        if (!DisplayObjectContainer(document).contains(owner))
            forwardRequest = false;    
        
        if (owner is ISWFLoader)
            localRect = ISWFLoader(owner).getVisibleApplicationRect();
