Try Themes with Ease

I set up a quick system to allow ScaleNine themes to be used in Flex without having to download the source files from the homepage. Simply copy one of the following urls and paste it into the source attribute of a mx:Style tag in your working MXML under the Application tag. However, If you decide on using one of the themes I would suggest downloading the source for the theme you settled on and load it into your Flex project. A couple of weird things happen if you don’t do that, like disappearing images.

Obsidian Theme: http://try.scalenine.com/obsidian/obsidian.css

iTunes 7 Theme: http://try.scalenine.com/itunes7/jukebox.css

WMP 11 Theme: http://try.scalenine.com/wmp11/wmp11.css

Moxy CSS Theme: http://try.scalenine.com/moxy/moxy.css

Minty CSS Theme: http://try.scalenine.com/minty/minty.css

Shadow CSS Theme: http://try.scalenine.com/shadow/shadow.css

Darkroom Theme: http://try.scalenine.com/darkroom/darkroom.css

Vista Blue Theme: http://try.scalenine.com/vistaBlue/vistaBlue.css

Note: You must run/compile your project to see the theme get applied. It would be nice to see the theme change a project right inside Flex Builder rather than having to compile/run it. Maybe in a future release.

13 Responses to “Try Themes with Ease”

  1. Murugan Says:

    Hi,
    I Getting the Following errors when tried to change theme dynamically . Please help me out of this problem.

    Error: Unable to load style(SWF is not a loadable module): style/obsidianGFx.swf.
    at MethodInfo-636()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at ::ModuleInfoProxy/::moduleEventHandler()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at ::ModuleInfo/initHandler()

  2. juan Says:

    Are you trying to add runtime css style switching using the ThemeSwapper source files?

    First off in this line I noticed a uppercase character that shouldn’t be like that:

    Error: Unable to load style(SWF is not a loadable module): style/obsidianGFx.swf.

    style/obsidianGFx.swf should be style/obsidianGfx.swf with a lowercase f in Gfx.

    Maybe check to make sure that swf is getting called out correctly.

  3. Murugan Says:

    Yes juan ,
    I am using themeswaper source files.

    I have also tried with MXML file provided in view source Page
    ——————————————–
    Tags taken from Themeswapper Source file
    private function changeCSS( panelTitle:String, name:String ):void {
    var styleEvent:IEventDispatcher = StyleManager.loadStyleDeclarations( name, true );
    }

    ———————————————–

    I am getting the Same Error:

    Error: Unable to load style(SWF is not a loadable module): style/jukeboxGfx.swf.
    at MethodInfo-636()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at ::ModuleInfoProxy/::moduleEventHandler()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at ::ModuleInfo/initHandler()

    Can you help me

    Thanks
    Murugan

  4. Khalil M. Shams Says:

    Is there any possibility of using these themes in flash8 applications? If yes then how? thanks, youve really done a great job keep it up !!!

  5. juan Says:

    Khalil -

    You know, I haven’t tried implementing these themes in Flash 8, but a couple people have mentioned it would be possible. Maybe using the FLA files? I’m not sure. Maybe someone will speak up here about whether or not this is possible, and if so, how to do it. In the mean time, I’ll try and do a little research myself.

    If you find anything out, please let me know.

  6. juan Says:

    Murugan-

    This error was brought up by another person. What you have to do is in Flex 2.0.1 make sure that you right-click on the CSS files in the “style” folder of the source and select “Compile CSS to SWF”. This is what enabled the runtime CSS swapage.

    Hope that solves it. I’ll add notes to the source to prevent this in the future.

    Juan

  7. Murugan Says:

    Jaun-

    Thanks,
    Now its working fine

    Thanks a lot

    Murugan

  8. sxm Says:

    I get this error only for jukebox theme. Vista and Obsidian work fine.

    -Sxm

  9. juan Says:

    Sxm,

    Are you referring to the error in the ThemeSwapper example? If so, in Flex 2.0.1 make sure that you right-click on the CSS files in the “style” folder of the source and select “Compile CSS to SWF”.

    What is the error exactly and when does it occur?

  10. sxm Says:

    I get this error
    Unable to load style(SWF is not a loadable module):

    I did compile all three skins. All three used to work (before I installed Apollo plugin for eclipse) but now Itunes one doesn’t

  11. samsundar Says:

    hi i need one help

  12. bruibouff Says:

    Beautiful teen girls
    http://www.porntubebestmovies3.tk

  13. Mike Says:

    Very good site!

Leave a Reply