Container Flex



    
        
            import mx.managers.SystemManager;
            import mx.events.FlexEvent;
            private function initHandler(event:Event):void {
                event.target.content.addEventListener(FlexEvent.APPLICATION_COMPLETE,applicationCompleteHandler);
            }
            private function applicationCompleteHandler(event:Event):void {
                event.target.application.setBackground(0xFFFF00);
            }