The error that "No class registered for interface ‘mx.styles::IStyleManager2′"


When I compiled “flex3_sdk ->samples ->explorer ->containers ->SimpleTitleWindowExample.mxml” with mxmlc and run it,i got the error below:


Error: No class registered for interface ‘mx.styles::IStyleManager2′.
at mx.core::Singleton$/getInstance()
at mx.styles::StyleManager$/get impl()
at mx.styles::StyleManager$/
at simpleTitleWindowExample/  at SimpleTitleWindowExample()

Maybe it’s too simple for you,but i spend too much time fixing this error. I found there was a comment like below:

<?xml version=”1.0″ encoding=”utf-8″?>

<!– Simple custom MXML TitleWindow component.

The TitleWindowApp application displays this component.

You cannot run it independently. –>

Yes,it denpends on another mxml and can not be directly run.:)