MACROMEDIA FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manuel d'utilisateur Page 125

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 184
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 183 184

Commentaires sur ces manuels

Pas de commentaire