             }
 
             // Next are the class selectors
-            n = globalClassSelectors.length;
+            n = universalSelectors.length;
             for (i = 0; i < n; i++)
             {
-                styleDeclaration = globalClassSelectors[i];
+                styleDeclaration = universalSelectors[i];
                 if (styleDeclaration)
                 {
                     inheritChain =

            }
            else if (styleName is String)
            {
                // Get the styles referenced by the styleName property             
                var styleNames:Array = styleName.split(/\s+/);
                n = styleNames.length;
                for (i = 0; i < n; i++)
                {
                    if (styleNames[i].length)
                    {
                        styleDeclaration = StyleManager.getStyleDeclaration("." + styleNames[i]);
                        if (styleDeclaration)
                            globalClassSelectors.push(styleDeclaration);
                    }
                }
            }
        }


        // Otherwise we use the legacy Flex 3 logic for simple selectors.
        else
        {
            // Get the styles referenced by the styleName property
            if (hasStyleName)
            {             
                var styleNames:Array = styleName.split(/\s+/);
                n = styleNames.length;
                for (i = 0; i < n; i++)
                {
                    if (styleNames[i].length)
                    {
                        styleDeclaration = StyleManager.getStyleDeclaration("." + styleNames[i]);
                        if (styleDeclaration)
                            universalSelectors.push(styleDeclaration);
                    }
                }
            }

            // Working backwards up the list, the next element in the
            // search path is the type selector
            styleDeclarations = object.getClassStyleDeclarations();
            n = styleDeclarations != null ? styleDeclarations.length : 0;
            for (i = 0; i < n; i++)
            {
                styleDeclaration = styleDeclarations[i];
