         // initialized and we haven't yet generated the proto chain.
         // To avoid redundant work, don't bother to create
         // the proto chain here.
-        if (inheritingStyles == UIComponent.STYLE_UNINITIALIZED)
+        if (inheritingStyles == StyleManager.STYLE_UNINITIALIZED)
             return;
 
         regenerateStyleCache(true);

                // Does this object already have a proto chain? 
                // If not, there's no need to regenerate a new one.
                if (IStyleClient(child).inheritingStyles !=
                    UIComponent.STYLE_UNINITIALIZED)
                {
                    IStyleClient(child).regenerateStyleCache(recursive);
                }

        if (p)
        {
            var inheritChain:Object = p.inheritingStyles;
            if (inheritChain == StyleManager.STYLE_UNINITIALIZED)
                inheritChain = nonInheritChain;
        }
        else
