I am creating a new Flex component (Flex3). Is it a default style I like to have it naming convention or for some .cs file to make it the default style? Am I missing something?
Two modes, usually for example, if you have a new component class in the action script In MyComponent
, in both cases, the components will raise the declaration styles in your external stylesheet, if MyComponent has been created, or indirectly expanding an MXML component to another UICmonant, provided that the stylesheet will The application has been imported (e.g., via Style source
):
MyComponent {backgroundColor: #FFFFFF; }
Another way is by setting the UIComponent style name
property (as a string):
public class MyComponent { // ... this.styleName = "myStyle"; // ...}
... and thus define the style in the CSS file (note the dot notation):
.mystyle {Background color: #FFFFFF; }
understand?
Comments
Post a Comment