title: Flex 4: StyleManager.getStyleManager()
body: <p>I'm trying to compile existing Flex 4 project but having an error:</p>
  
  <p><em>Call to underfined method getStyleManager of StyleManager class.</em></p>
  
  <p>The code is:</p>
  
  <pre><code>var styleManager:IStyleManager2 = StyleManager.getStyleManager(null);
  </code></pre>
  
  <p>I found the method in <a href="http://help.adobe.com/en_US/Flex/4.0/langref/mx/styles/StyleManager.html#getStyleManager%28%29" rel="nofollow noreferrer">Flex documentation</a> but when I open StyleManager.as I can't find the method declaration.</p>
  
  <p>Used Flex SDK 4.0.0.10485 from <a href="http://opensource.adobe.com/wiki/display/flexsdk/download?build=4.0.0.10485&amp;pkgtype=1" rel="nofollow noreferrer">here</a>.</p>