Flex/Spark Theme Optimizations
Hey there,
I am getting ready to deploy an app using Spark. I'm trying to learn as much as I can about RSLs, themes, modules, the compiler etc. to make the general flex user experience much smoother.
I have a few pressing questions:
1) How are you guys compiling the themes, and what size are they 'slash' how do you get them to be so small? I've read lots on how to make them small and I've studied the source for months, so maybe you could shed some like on your exact method.
2) Looking into SparkClasses.as, it looks as though you are compiling a default theme INTO the spark framework??? That doesn't seem quite right. That means if I want to use an RSL, I have to create my own build of the framework, which isn't a problem but that dramatically decreases its usability: now it's highly unlikely someone else will have the same rsl, so no sharing. It seems like the SparkClasses.as Skins should be in the sparkSkins.swc, or at least separate from the core framework with my own theme without the overhead of this built in one.
3) When compiling a theme, is it best-practice to include skins in the library, or are they automatically linked in based on the ClassReference in css (doesn't look like they are, but just checking)? And since the skins use part of the flex/spark framework, if I specify to use the framework rsls, will they use it?
Thanks for your help, it's been a journey trying to understand exactly how to optimize this stuff ![]()
Lance
