MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manuale Utente Pagina 125

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 184
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 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.
Vedere la pagina 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 183 184

Commenti su questo manuale

Nessun commento