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

                embedFonts = getStyle("embedFonts");
            }

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

     */
    public function get styleManager():IStyleManager2
    {
        if (!_styleManager)
        {
            _styleManager = StyleManager.getStyleManager(moduleFactory);
        }
        return _styleManager;
    }
    
    //----------------------------------
