Frozen2k
Messages postés3Date d'inscriptionvendredi 28 janvier 2005StatutMembreDernière intervention20 septembre 2005 19 sept. 2005 à 16:20
C'est bon j'ai trouvé, en fait j'ai utilisé ca :
//Format de texte qui servira de memoire
memFormat = new TextFormat();
//Qui remplira ma combobox de polices
policePresente = ["Arial", "Arial Narrow", "Arial Black", "Courrier New", "Garamond", "Impact", "Times New Roman", "Verdana"];
choixPolice.setDataProvider(policePresente);
choixPolice.sortItemsBy("label", "ASC");
function appliquePolice() { // changer la police de la sélection
_root.k = new TextFormat();
_root.k.font = choixPolice.getSelectedItem().label;
_root.g.setTextFormat(_root.k);
}