1&1 Webhosting
Flashhilfe.de - Flash Community

Prototype: TextFormat.setFont [Flash 8]

Forum > Tipps & Tricks zu Flash, Flex und Adobe AIR > Prototype: TextFormat.setFont

 


AntwortenRegistrieren Seite1  

 06.07.2003, 21:50 
Benutzerbild von SebastianFlashhilfe.de Moderator
Beiträge: 6940
Wohnort: München
Registriert: Jan 2002

Prototype: TextFormat.setFont
Alternative Schriftauswahl

Prototype:
ActionScript:
1
2
3
4
5
6
7
8
9
10
TextFormat.prototype.setFont = function() {
   var suche = arguments[0].split(","), font_liste = (TextField.getFontList().toString()+",").toLowerCase();
    for(var i=0;suche.length;i++) {
        if(font_liste.indexOf((suche[i]+",").toLowerCase()) != -1) {
         this.font = suche[i];
         return suche[i];
      }
    }
}
ASSetPropFlags(TextFormat.prototype,"setFont",1,1);


Beispiel Aufruf:
ActionScript:
1
2
3
meinTextformat = new TextFormat();
meinTextformat.setFont("zurich,verdana,arial");
meinTextfeld.setTextFormat(meinTextformat);

Flex Freelancer || Flashhilfe @ Twitter || XING Profil
Schlagwörter: prototype, textformat
 
Themen
Ähnliche Beiträge zum Thema
CSS wirkt kaum... [Flash 9] 24.05.2010 - Rotblitz
 

AntwortenRegistrieren Seite1  

Schnellantwort

Du musst registriert sein, um diese Funktion nutzen zu können.
Partner Webseiten: DesignerInAction.de   Designnation.de   Mediengestalter.info   php-resource.de   phpforum.de   phpwelt.de   Pixelio.de   PSD-Tutorials.de   Tutorials.de

Haftungsausschluss   Datenschutzerklärung   Hier Werben   Impressum
© 1999-2012 Sebastian Wichmann - Flashhilfe.de