0 Replies Latest reply on Oct 1, 2009 12:06 AM by rajdeeprath

    Loading CSS dynamicaly in AIR Application

    rajdeeprath Level 1

      Hi

       

      this is my first visit to adobe forums. Recently i am building a  application with AIR , and it has a feature where user can change application theme by selecting a theme in combo-box.

       

      I have seen many URLs on the internet like:

       

      http://blog.flexexamples.com/2007/12/12/loading-cascading-style-sheets-on-the-fly-using-th e-flex-stylemanager-class/

       

      http://aralbalkan.com/1887

       

      http://www.intriguemedia.net/2008/02/22/loading-modulesruntime-css-into-an-air-app/

       

       

      But they dont seem to be useful to me. I keep Getting Error:

       

      Error: Unable to load style(SWF is not a loadable module): C:\Documents and Settings\Rajdeep\My Documents\Flex Builder 3\CD Label Designer\bin-debug\templates\soft.swf.
           at <anonymous>()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\styles\StyleManagerImpl.as:858]
           at flash.events::EventDispatcher/dispatchEventFunction()
           at flash.events::EventDispatcher/dispatchEvent()
           at ModuleInfoProxy/moduleEventHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1027]
           at flash.events::EventDispatcher/dispatchEventFunction()
           at flash.events::EventDispatcher/dispatchEvent()
           at ModuleInfo/initHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\modules\ModuleManager.as:631]
      

       

      So basically i am not understanding it. Can someone please help me. It will really be helpful.