      */
     public function set moduleFactory(factory:IFlexModuleFactory):void
     {
+        _styleManager = null;
+        
         var n:int = numChildren;
         for (var i:int = 0; i < n; i++)
         {

    //----------------------------------
    
    /**
     *  Returns the StyleManager instance used by this component.
     *  
     *  @langversion 3.0

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

        return _styleManager;
    }
    
    //----------------------------------
