Style Flex


    creationComplete="init()">
    
        
        import mx.styles.StyleManager;
        import mx.events.StyleEvent;
        public function init():void {
            StyleManager.loadStyleDeclarations("a.swf", false);
            var myEvent:IEventDispatcher =StyleManager.loadStyleDeclarations("a.swf", false);
            myEvent.addEventListener(StyleEvent.COMPLETE, doUpdate);
        }
        public function doUpdate(event:StyleEvent):void {
            StyleManager.loadStyleDeclarations("a.swf", true);
        }