Theme Swapper

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.

3 Responses to “Theme Swapper”

  1. Rich Tretola Says:

    Very nice.

    Rich
    EverythingFlex.com

  2. juan Says:

    Thanks Rich. I’ve been following your site for a while. It’s been very helpful.

  3. Matt Says:

    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.

Leave a Reply