 		if (!topLevel && topLevelSystemManager)
 			return topLevelSystemManager.useSWFBridge();
 			
-		// if we're toplevel and we aren't the sandbox root, we need a bridge
-		if (topLevel && getSandboxRoot() != this)
-			return true;
-		
-		// we also need a bridge even if we're the sandbox root
-		// but not a stage root, but our parent loader is a bootstrap
-		// that is not the stage root
-		if (getSandboxRoot() == this)
+        var sbRoot:DisplayObject = getSandboxRoot();
+        
+        // if we're toplevel and we aren't the sandbox root, we need a bridge
+        if (topLevel && sbRoot != this)
+            return true;
+        
+        // we also need a bridge even if we're the sandbox root
+        // but not a stage root, but our parent loader is a bootstrap
+        // that is not the stage root
+        if (sbRoot == this)
 		{
 			try
 			{

		_applicationIndex = value;
	}
	
	//-----------------------------------
	//  ISystemManager implementations
	//-----------------------------------

	 */
	public function removeChildBridge(bridge:IEventDispatcher):void
	{
        // dispatch message that we are removing a bridge.
        dispatchEvent(new FlexChangeEvent(FlexChangeEvent.REMOVE_CHILD_BRIDGE, false, false, bridge));
	    
        var fm:IFocusManager = IFocusManager(bridgeToFocusManager[bridge]);
        fm.removeSWFBridge(bridge);
        swfBridgeGroup.removeChildBridge(bridge);
