Friday, March 27, 2009

How do you use css styles in flex

Question :How do you use css styles in flex?
Answer :External styles are defined in a separate file and can be used in any MXML file that references the
CSS file. You reference a CSS file into an MXML file with the source property of the
tag, as follows:

Embedded styles are defined in an MXML file and can only be used in that file. Embedded styles
are defined with the tag, as follows:

.myclass { background-color: xFF0000 }
TextInput { font-family: Helvetica; font-size: 12pt }




Inline styles are defined in an MXML tag and can only be used in that tag. Inline styles are defined
as follows:

No comments: