7/21/2010 12:08:53 AM
Title:
Theme
i have 2 css file for my application how can i change the css file while clicking the theme name.
7/21/2010 2:07:29 AM
Hi,
Create two or more individual css, compile it, load at runtime.
StyleManager.loadStyleDeclarations("style1.swf");
StyleManager.loadStyleDeclarations("style2.swf");
Check adobe livedocs
http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html
Regards,
Virat Patel
7/21/2010 3:01:34 AM
i want to load my file style.css and style1.css file format not a swf how can i do it? can anyone please help me
7/21/2010 3:47:32 AM
Use it like this
StyleManager.loadStyleDeclarations("style1.css");
why don't you compile your css to swf , In flex right click on your css file in file explorer and select "Compile as swf" option. It compresses the file for faster loading of dynamic stylesheet. You have to select this option once only after that flex will automatically compile it for you on saving css file.
7/21/2010 4:31:55 AM
Hi Justin,
Yes, exactly that what i mention in my answer, create two different SWF from CSS
and load as per requirement.
Regards,
Virat Patel
7/22/2010 12:20:57 AM
Thanks for all. i created 2 swf from my css.its working well but
StyleManager.loadStyleDeclarations("style1.css"); this is not work justin
StyleManager.loadStyleDeclarations("style2.swf"); this is only working.
Thanks.
7/22/2010 1:14:56 AM
hey...
use style1.swf instead of style1.css ....
Regards,
Virat Patel