Anybody? Having so much hard time trying to move flex3 to flex4.
Basically this is a styling issue which is far beyond my expertise. If you have a component created named myButton.as, and you created a CSS file with a style named myButton, that CSS declaration would span all instances where you used the myButton component. But since Flex4 does not like that naming convention of CSS, I have had to rename my CSS declaration to .myButton{}. Now, how do I declare the same in my AS component to utilize that style? Thanks a lot for any inputs on this. ________________________________ From: Angelo Anolin <angelo_ano...@yahoo.com> To: flexcoders@yahoogroups.com Sent: Fri, 27 August, 2010 10:51:02 Subject: [flexcoders] Where To Declare CSS Style Name in AS Component Dear FlexCoders, In Flex 3, you can simply name your CSS style to the name of the component you created. For example, you created an AS component named MyNewButton, hence, in your CSS file, you can declare a style with name MyNewButton and the component automatically picks up that style. But when you use Flex 4, you get an error saying: CSS type selectors are not supported in components: MyNewButton. Modifying the CSS file, let us say the style name MyNewButton has been now declare as .MyNewButton{}. How do I reference the new style name to be used by the component? How do I declare it in the AS file? Thanks for your inputs. Angelo