             for (i = 0; i < n; i++)
             {
                 sm = sms[i];
-                sm.regenerateStyleCache(true);
+			    cm = sm.getImplementation("mx.managers.ISystemManagerChildManager");
+                cm.regenerateStyleCache(true);
             }
         }
 
         for (i = 0; i < n; i++)
         {
             sm = sms[i];
-            sm.notifyStyleChangeInChildren(styleProp, true);
+		    cm = sm.getImplementation("mx.managers.ISystemManagerChildManager");
+            cm.notifyStyleChangeInChildren(styleProp, true);
         }
     }
     

        var i:int;

        // Type as Object to avoid dependency on SystemManager.
        var sm:Object;

        if (regenerate)
        {


import mx.core.Singleton;
import mx.core.mx_internal;
import mx.managers.ISystemManager;
import mx.managers.SystemManagerGlobals;

use namespace mx_internal;
