I’m trying to compile existing Flex 4 project but having an error:
Call to underfined method getStyleManager of StyleManager class.
The code is:
var styleManager:IStyleManager2 = StyleManager.getStyleManager(null);
I found the method in Flex documentation but when I open StyleManager.as I can’t find the method declaration.
Used Flex SDK 4.0.0.10485 from here.
Try upgrading your version of Flex, is that possible? It’s working for me, I do this:
I’m using Flex 13645.
It also depends on when you’re calling StyleManager possibly: if you’re calling that method in a Preloader, that could be a problem.