Beta: Neues Text Layout Framework für Flash Player 10

Und wieder eine neue Betaversion in Adobe Labs: das Text Layout Framework (TLF). Basierend auf der neuen Text-Engine des Flash Players, gibt es nun eine fertige Text-Layout-Komponente.

Somit kann man die Features der neuen Text-Engine des Flash Player 10 auf einfache Weise nutzen. Dazu gehören:

  • Bidirectional text, vertical text and over 30 writing systems including Arabic, Hebrew, Chinese, Japanese, Korean, etc.
  • Selection, editing and flowing text across multiple columns and linked containers, and around inline images
  • Vertical text, Tate-Chu-Yoko (horizontal within vertical text) and justifier for East Asian typography
  • Rich typographical controls, including kerning, ligatures, typographic case, digit case, digit width and discretionary hyphens
  • Cut, copy, paste, undo and standard keyboard and mouse gestures for editing
  • Rich developer APIs to manipulate text content, layout, markup and create custom text components.

Online-Textverarbeitung mit Flash

Eine Demoanwendung mit dem Namen Text Layout Editor zeigt, welche Typografie- und Layoutmöglichkeiten im Flash Player 10 stecken (Link siehe unten).

Außerdem sollte man sich auf jeden Fall die Demonstration auf der Startseite zum Text Layout Framework anschauen.

Beispiel

Das folgende Beispiel zeigt, wie man das neue Framework in Flash CS4 verwendet. Nach der Installation öffnet man die Komponenten-Palette und zieht die Textlayout-Komponente („Standardkomponente > Textlayout“) auf die Bühne. Man gibt ihr einen Instanznamen (z.B. myTextLayout).

Um Textinhalte zu gliedern und zu formatieren, kommt das XML-Format zum Einsatz.

[as]
var txt:String = „„+
„+
„+
Dies ist ein „+
Test„+
der neue Layout-Komponente.„+
„+
„+
Dies ist der zweite Absatz. Dies ist der zweite Absatz. Dies ist der zweite Absatz.„+
„+
„;

myTextLayout.xmlText = txt;
[/as]

Das Beispiel erzeugt zwei Abschnitte, wobei im ersten Abschnitt ein Wort kursiv hervorgehoben wird.

Vorraussetzungen

Das Framework ist für Flash CS4 und Flex gedacht. Es sei auch bereits in Flex 4 (Codename Gumbo) enthalten.

Auf Nutzerseite wird der Flash Player 10 oder Adobe AIR 1.5 vorausgesetzt.

Link: Text Layout Framework
Link: Text Layout Editor

[ad]

3 Gedanken zu „Beta: Neues Text Layout Framework für Flash Player 10“

  1. Im Adobe Developer Center gibt es ein Tutorial zum Text Layout Framework für Flash Player 10.

    „The goal of this article is to introduce you to the Text Layout Framework library for Adobe Flash Player 10 and Adobe AIR 1.5 and to demonstrate how you can use it to display rich text inside of the Flash Player 10 and Adobe AIR 1.5 runtimes. I will not cover all the possibilities of this framework, but I will give you enough of a push to help“

    http://www.adobe.com/devnet/flex/articles/text_layout_framework.html

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert