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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 184
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 124
Using skinning 125
Skinning assets
The assets that Flex includes for you to use as a basis for reskinning components are changed.
Drawing programmatic skins
The drawing methods are moved to the Graphics class, which is accessible through the
graphics property.
For example, in Flex 1.x:
function draw() {
clear();
moveTo(0,0);
lineTo(10,10);
}
In Flex 2:
import flash.display.Graphics;
function updateDisplayList(...) {
var g:Graphics = graphics;
g.clear();
g.moveTo(0,0);
g.lineTo(10,10);
}
Flex 1.x included: Flex 2 includes:
Sample programmatic skins in the
flex_install_dir/resources/themes/
programmatic directory.
HaloClassic skins for users who want the
original look and feel of Flex applications.
Graphical skins in the pulseBlue.fla and
pulseOrange.fla theme files in the
flex_install_dir/resources/themes/graphic
directory.
Halo programmatic skins, which are in the
mx.skins.halo package.
Graphical Aeon theme files, which are located
in the framework/themes directory.
Vista de página 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 183 184

Comentários a estes Manuais

Sem comentários