Textfeld mit automatischen Zeilenumbruch [Flash MX]
| 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:19 | Re1 | 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 | 02.09.2009 - emotion 15.06.2010 - Purgar 26.03.2009 - DietmarThaler 27.10.2010 - liladiva |
|
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News 
31.01.12, 12:30#Jobs Wir suchen (freiberufliche) Flash Developer (m/w) in Köln/Aachen http://t.co/4WPsXPOA 20.01.12, 21:02#Jobs Flash-Projekt Produktkonfigurator http://t.co/qPlGSiPd 12.01.12, 18:50#Jobs Flash Freelancer für ca. 2 Wochen in München gesucht http://t.co/XpMJr5dv 10.01.12, 10:45#PureMVC vs #RobotLegs Performance Battle. PureMVC is significantly faster than RobotLegs in nearly every respect. http://t.co/324gWRAr 06.01.12, 21:37#Jobs Flash Developer in Hamburg gesucht http://t.co/hZgTZvHJ
Regeln & Bedingungen
|