     /**
      *  Constructor.
      *
-     *  @param selector If not null, this CSSStyleDeclaration will be
-     *  registered with the StyleManager using the selector value.
-     */
-    public function CSSStyleDeclaration(selector:String = null)
+     *  @param subject If not null, this CSSStyleDeclaration will be registered
+     *  with StyleManager. If the selector argument is not also specified,
+     *  this String is interpreted to be the legacy syntax of a String based
+     *  selector; if the value starts with a dot it is interpreted as a global
+     *  class selector, otherwise it represents a simple type selector.
+     *  @param selector The selector chain used to match IStyleClient2
+     *  components to this style declaration.
+     */
+    public function CSSStyleDeclaration(subject:String=null, selector:CSSSelector=null)
     {
         super();
 
-        if (selector)
-        {
+        if (subject)
+        {
+            if (selector)
+            {
+                _subject = subject;
+                _selector = selector;
+                _specificity = _selector.specificity;
+            }
+            else
+            {
+                // A legacy Flex 3 styled constructor was used...
+                selectorString = subject;
+            }
+
             // do not reference StyleManager directly because this is a bootstrap class
-            styleManager = Singleton.getInstance("mx.styles::IStyleManager2") as IStyleManager2;
-            styleManager.setStyleDeclaration(selector, this, false);
+            styleManager = Singleton.getInstance("mx.styles::IStyleManager3") as IStyleManager3;
+            styleManager.addStyleDeclaration(this, false);
         }
     }
 

import flash.display.DisplayObject;
import flash.events.EventDispatcher;
import flash.utils.Dictionary;
import mx.core.Singleton;
import mx.core.mx_internal;
import mx.managers.SystemManagerGlobals;

     *  @private
     *  reference to StyleManager
     */
    private var styleManager:IStyleManager3;

    //--------------------------------------------------------------------------
    //
