Adobe Extending Flash Professional CS4 Bedienungsanleitung Seite 463

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 560
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 462
441
EXTENDING FLASH CS4 PROFESSIONAL
Text object
The following example resets the property:
var doc = fl.getDocumentDOM();
doc.selection[0].embedRanges = "";
text.fontRenderingMode
Availability
Flash 8.
Usage
text.fontRenderingMode
Description
Property; a string that specifies the rendering mode for the text. This property affects how the text is displayed both on
the Stage and in Flash Player. Acceptable values are described in the following table:
Example
The following example shows how you can use the customThicknessSharpness value to specify the sharpness and
thickness of the text:
fl.getDocumentDOM().setElementProperty("fontRenderingMode", "customThicknessSharpness");
fl.getDocumentDOM().setElementProperty("antiAliasSharpness", 400);
fl.getDocumentDOM().setElementProperty("antiAliasThickness", -200);
See also
text.antiAliasSharpness, text.antiAliasThickness
text.getTextAttr()
Availability
Flash MX 2004.
Usage
text.getTextAttr(attrName [, startIndex [, endIndex]])
Property value How text is rendered
device Renders the text with device fonts.
bitmap Renders aliased text as a bitmap, or as a pixel font would.
standard Renders text using the standard anti-aliasing method used by Flash MX 2004. This is
the best setting to use for animated, very large, or skewed text.
advanced Renders text using the advanced anti-aliasing font rendering technology
implemented in Flash 8, which produces better anti-aliasing and improves readability,
especially for small text.
customThicknessSharpness Lets you specify custom settings for the sharpness and thickness of the text when
using the advanced anti-aliasing font rendering technology implemented in Flash 8.
Seitenansicht 462
1 2 ... 458 459 460 461 462 463 464 465 466 467 468 ... 559 560

Kommentare zu diesen Handbüchern

Keine Kommentare