Flashhilfe.de - Flash Community

Textfeld mit automatischen Zeilenumbruch [Flash MX]

Forum > Flash Entwicklung > Textfeld mit automatischen Zeilenumbruch

 


AntwortenRegistrieren Seite1

 24.03.2008, 20:05 
Beiträge: 69
Registriert: Feb 2002

Textfeld mit automatischen Zeilenumbruch
Hallo,

Die richtige Höhe eines Textfeldes ermitteln:
ActionScript:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
_root.format = new TextFormat();
_root.format.font = "Arial";
_root.format.bold = false;
_root.format.size = 14;
_root.format.align = "left";
_root.format.color = "0x000000";                  
_root.createTextField("textfeld",1, 0, 0, 80,0);
_root.textfeld.text = "hallo iodshfo isdfoids fiohdsiof oidshf ids fiohdsfo dhsfo idsfhofi dsf uhu iuh iuhi hiu hiuh iuh iu iuh iu";
_root.textfeld.selectable = false;
_root.textfeld.multiline = true;
_root.textfeld.wordWrap = true;
_root.textfeld.html = true;
_root.textfeld.autoSize = true;
_root.textfeld.border = false;
_root.textfeld.setTextFormat(_root.format);
trace(_root.textfeld._height);



Ausgabe:20 egal wieviele Zeilenumbrüche. Werden die automatischen Zeilenumbrüche nicht beachtet?

Gruß

 24.03.2008, 20:19Re1
Beiträge: 69
Registriert: Feb 2002

Themenautor/in

wie kann ich den Beitrag wieder löschen?
Hätte ich mal in Forum genauer geschaut, sry
Geändert von realheat am 24.03.08 um 20:19 Uhr

 
Themen
Ähnliche Beiträge zum Thema
 
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