I'm using a CSS开发者_高级运维 file to style my flex application. can I use components IDs to change their style from the CSS file ?
Or I should add the styleName attribute for each element ?
thanks
In Flex 3 you can't use the ID (#) selector. This is supposedly added in Flex 4, but I haven't had the opportunity to try it out yet to see how well it works.
Flex also doesn't support combinator selectors.
There's also F*CSS which supposedly adds pretty much functionality regarding CSS to Flash (and I guess Flex as well). Haven't actually worked with it yet, but the demonstration seems easy and solid enough. If you're willing to experiment you could give it a try.
精彩评论