PDA

View Full Version : Removing Default Theme


hotfusion
12-06-2007, 01:32 AM
I have been trying to create a lighter Flex application by replacing the default theme with a bare-bone theme. I notice, however, that Flex Builder 2 still import the default theme to the SWF.

I've searched through the web and I found this from LiveDocs http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=styles_069_17.html


Flex implicitly loads the defaults.css file and applies it to the Flex application during compilation. You can explicitly point to another file for the default styles by using the defaults-css-url compiler option. You can also rename the defaults.css file or remove it from the framework.swc file to disable it.



I tried doing this (removing the defaults.css from framework.swc, and replacing it with institutional.css, after renaming it to defaults.css), but then I got runtime errors from the Flash Player.

Any thoughts? Thanks a lot!

springframework
12-06-2007, 09:00 AM
i dont think its the css file that increases the size, i think its the skins file.

i was looking at the default skin file today, its only 22kb

u can just delete all the things that are unneeded from it. then change the default.css file to point to the new skin.