MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual do Utilizador Página 127

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 184
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 126
Themes 127
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 rule to embed the font:
@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.
Vista de página 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 183 184

Comentários a estes Manuais

Sem comentários