
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.
Commentaires sur ces manuels