Flex可以通过StyleManager来设置、修改组件的样式,而且可以方便地动态切换样式,但很早以(2006年)就有人发现Flex卸载样式的BUG:
http://bugs.adobe.com/jira/browse/SDK-9174
unloadStyleDeclarations doesn't unload all of your styles when you call loadStyleDeclarations more than once w/o unloading the stylesheet
其实也不是无药可救,在Adobe还没有解决这个BUG之前,我们还有办法。。。明天再写。。。