Importing styles from an external CSS file
You can import styles defined in an external CSS file by using the
tag.
<mx:Style>
To import styles from an external CSS file:
Make sure the CSS file is located in your site root folder or in any of its subfolders.
1.
Open the CSS Styles panel (Window > CSS Styles) and click the Attach Style Sheet button at
2.
the bottom of the panel.
The Attach External Style Sheet dialog box appears.
Click Browse and browse to the external CSS style sheet.
3.
Click OK.
4.
The name of the external CSS style sheet appears in the CSS Styles panel.
Tip: If you hand-code a reference to an external style sheet in an MXML component file, you must
specify the path relative to the application in the source property of the <mx:Style> tag.
Related topics
•
"About CSS styles in Flex" on page 103
104
Chapter 4: Building a Flex User Interface Visually
property of the
source
Need help?
Do you have a question about the FLEX BUILDER-USING FLEX BUILDER and is the answer not in the manual?