• beyond tellerrand – play. Register Now!
Zurück   Flashforum > Flash > ActionScript > ActionScript 3

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 22-07-2010, 15:54   #1 (permalink)
Neuer User
 
Registriert seit: Jan 2009
Beiträge: 4
TLF TextField und setTestFormat

Moin Leute,

ich versuche gerade die Textgröße eines TLFTextField zu ändern. In meiner Fla sind unterschiedliche Textfelder (tf.text und flash.text). Bei flash.text funktionert es einwandfrei. Bei tf.text bekomme ich bei

Code:
parent["text" + (i+1)].tf.setTextFormat(format);
folgende Fehlermeldung:
Code:
RangeError: Property lineHeight value -2147483648 is out of range
Der Text innerhalb des Textfeldes kommt aus FlashVars. Der gesamte Block sieht so aus:

Code:
var format:TextFormat = parent["text" + (i+1)].tf.getTextFormat();

while(parent["text" + (i+1)].tf.textHeight > (parent["text" + (i+1)].tf.height - 15))
{
  formatSize = format.size;
  formatSize = 10;
  format.size = formatSize;
  parent["text" + (i+1)].tf.setTextFormat(format);					
}
Hat jemand einen Tip für mich?
jev01 ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
swf mit AS im textfield Rudi Ratlos ActionScript 3 2 24-09-2007 15:17
Textfield pero ActionScript 1 2 29-06-2005 09:58
TextField osoful ActionScript 1 1 27-02-2004 03:48
CSS in TextField Tiburon Flash MX 2004 3 21-02-2004 13:43
Textfield MTealc ActionScript 1 2 16-01-2003 21:47


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:27 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele