Zurück   Flashforum > Flash > ActionScript > ActionScript 3

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 05-01-2012, 08:22   #1 (permalink)
flashaholic
 
Benutzerbild von Crazy X
 
Registriert seit: Oct 2001
Ort: Hanau
Beiträge: 303
TLFTextField und TextLayoutFormat

Hi there,

ganz schön nerdig das TLFTextField
Bekomme es einfach nicht gebacken einen selektierten Text mit TextLayoutFormat zu formatieren.

Das TextLayoutFormat brauche ich um leading einzustellen, da das leading von einem normalen LayoutFormat meiner Meinung nach buggy ist (z.B. kein negatives leading).

Hat jemand darin Erfahrung? Hab schon gestern Stunden investiert ohne Ende... sehr frustrierend

Danke!

Gruß
Crazy X
__________________
weltchefflasher.de - flashaholicblog
Crazy X ist offline   Mit Zitat antworten
Alt 05-01-2012, 09:30   #2 (permalink)
flashaholic
 
Benutzerbild von Crazy X
 
Registriert seit: Oct 2001
Ort: Hanau
Beiträge: 303
Is ja fast immer so... wenn ich Hilfe erfrage schaffe ich es selber

Ausschnitt:
PHP-Code:
var leafFormat TextLayoutFormat = new TextLayoutFormat();
leafFormat.lineHeight textFrameVO.fontLeading;

var 
compositeFormatOperation CompositeOperation;
var 
textFlow TextFlow _inputField.textFlow;
var 
operationState SelectionState = new SelectionState(textFlow1050);
var 
formatOperation ApplyFormatOperation = new ApplyFormatOperation(operationStateleafFormat null);

compositeFormatOperation = new CompositeOperation();
compositeFormatOperation.addOperation(formatOperation);

var 
success Boolean compositeFormatOperation.doOperation();
if (
success) {
    
_inputField.textFlow.flowComposer.updateAllControllers();

schon ein wenig krank
__________________
weltchefflasher.de - flashaholicblog
Crazy X 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
TLFTextField multicolumn scrollen xerox_ ActionScript 3 1 10-11-2011 04:42
TextField vs. TLFTextField (Darstellungspropleme) art0815 ActionScript 3 6 14-05-2011 20:02
TLFTextField Eigenschaften: Stage vs. AC3 hine Flash CS5 Professional 4 27-01-2011 14:52
<img>-Tag zeigt kein Bild an bei TLFTextField.htmlText Ali ActionScript 3 8 19-08-2010 13:55
[Flash CS5] TLFTextField Handcursor nicht durchgängig Ali Flash Einsteiger 0 16-07-2010 12:12


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:35 Uhr.

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


Copyright ©1999 – 2012 Marc Thiele