 
 import flash.events.Event;
 import flash.events.EventDispatcher;
+import flash.events.FocusEvent;
 import flash.events.IEventDispatcher;
 import flash.events.TimerEvent;
 import flash.system.ApplicationDomain;

        addResourceBundle(resourceBundle);
    }
    
    // parameter is Event because we can get FlexEvents from other applicationDomains
	private function newChildApplicationHandler(event:Event):void
	{
        // ignore if from some other ApplicationDomain
        if (event is FlexEvent)
        {
		    var info:Object = event.target.info();
            processInfo(info);
        }
    }
		
    private function processInfo(info:Object):void


        if (SystemManagerGlobals.topLevelSystemManagers.length)
		    SystemManagerGlobals.topLevelSystemManagers[0].
			    addEventListener(FlexEvent.NEW_CHILD_APPLICATION, newChildApplicationHandler);
    }
    
    //--------------------------------------------------------------------------
