Development Flex




    
        import mx.managers.SystemManager;
        import mx.events.FlexEvent;
        private function initHandlerFunction(event:Event):void {
            event.target.content.addEventListener(FlexEvent.APPLICATION_COMPLETE,applicationCompleteHandler);
        }
        private function applicationCompleteHandler(event:Event):void {
            event.target.application.flexApp2Function("test");
        }