Flex Builder CSS annoyance
August 31, 2008
Maybe I’m missing something here, but why does FlexBuilder generate css styles as “styleName” but suggests auto completions as “style-name” ?
Generated Style

Auto-Complete

Maybe I’m missing something here, but why does FlexBuilder generate css styles as “styleName” but suggests auto completions as “style-name” ?


September 1st, 2008
No idea why…
I noticed it also, weird.
September 1st, 2008
If I remember correctly, it used to generate ’style-name’ in the first version. The framework supports only ’styleName’; it is the compiler that translates ’style-name’ to ’styleName’. Somebody must have decided that it was better to be consistent with the framework and generate ’styleName’ instead.
That still doesn’t answer the question: Why ’style-name’ at all? I guess readability. ’style-name’ is arguably more readable. Camel case sucks, in my not-so-humble opinion.
September 1st, 2008
More importantly, why does flex builder feel the need to hang for 15 seconds when i try to type more than 3 words??
September 1st, 2008
@Manish, if it does either one style, readability will be ok I think .. but generating ’styleName’ and suggesting auto completes as ’style-name’ is very annoying because I would like my css to look consistent and follow one style .. but if I generate some styles and type in others .. I have to manually change all auto completed styles from styleName to style-name. Yuk !
September 1st, 2008
@K, Flex Builder can be cranky sometimes, but its not that bad try this