Themes - Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual

Migrating applications to flex 2
Table of Contents

Advertisement

In Flex 1.5, you could use the following syntax to embed a bold italic font face:
@font-face {
src: url("GOTHICBI.TTF");
font-style: italic;
font-weight: bold;
font-family: myFont;
}
.myStyleBoldItalic {
font-family: myFont;
}
In Flex 2, you still use the
@font-face {
src:url("GOTHICBI.TTF");
font-style: italic;
font-weight: bold;
font-family: myFont;
}
But you then add descriptors to the class or type selector to use the embedded font face:
.myStyleBoldItalic {
font-family: myFont;
font-weight: bold;
font-style: italic;
}

Themes

You can no longer export SWC files from Flash IDE and use the symbols in that SWC as part
of a theme file in Flex. You must instead use the compc utility to compile a theme SWC file
from CSS files and graphics.
The original Halo skins are repackaged into a theme so that you can change the appearance of
your Flex applications back to the Flex 1.x look and feel.
For more information on creating and using themes, see the Flex 2 Developer's Guide.
rule to embed the font:
@font-face
Themes
127

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents