     public function set moduleFactory(factory:IFlexModuleFactory):void
     {
         _moduleFactory = factory;
+        _styleManager = null;
     }
 
     //----------------------------------

                embedFonts = getStyle("embedFonts");
            }

            if (getStyle("fontAntiAliasType") != undefined)
            {
                antiAliasType = getStyle("fontAntiAliasType");
                gridFitType = getStyle("fontGridFitType");

    
    /**
     *  @private
     */
    private var _styleManager:IStyleManager2;

    /**
     *  @private
     * 
     *  Returns the style manager used by this component.
     *  
