Theme Swapper
Based on Rich Tretola’s example mentioned in my last post, I created a Theme Swapper app using the Flex 2.0.1 runtime CSS feature. It swaps between three of the graphical themes I created (Obsidian, iTunes 7, and WMP 11 themes).
See it here: http://scalenine.com/samples/themeSwapper/themeSwap.html or view the source.

January 21st, 2007 at 3:35 pm
Very nice.
Rich
EverythingFlex.com
January 21st, 2007 at 3:58 pm
Thanks Rich. I’ve been following your site for a while. It’s been very helpful.
June 5th, 2007 at 2:05 pm
I like the theme swapper and the themes but I was trying to implement it in a project of mine and came across a problem. If a theme doesn’t use images and you try to swap to it from a theme that does have images then the images from the previous theme still show up, messing up the current theme. I believe the solution would be to unload the previous css but I am not quite sure how to do it. I believe it has something to do with the function StyleManager.unloadStyleDeclarations() though.