Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 477

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 476
455
EXTENDING FLASH PROFESSIONAL
TextAttrs object
Last updated 5/2/2011
textAttrs.characterSpacing
Availability
Flash MX 2004. Deprecated in Flash 8 in favor of textAttrs.letterSpacing.
Usage
textAttrs.characterSpacing
Description
Property; an integer that represents the space between characters. Acceptable values are -60 through 60.
This property applies only to static text; it generates a warning if used with other text types.
Example
The following example sets the character spacing of the selected text field to 10:
fl.getDocumentDOM().setElementTextAttr("characterSpacing", 10);
textAttrs.face
Availability
Flash MX 2004.
Usage
textAttrs.face
Description
Property; a string that represents the name of the font, such as "Arial".
Example
The following example sets the font of the selected text field from the character at index 2 up to, but not including, the
character at index 8 to
Arial:
fl.getDocumentDOM().selection[0].setTextAttr("face", "Arial", 2, 8);
textAttrs.fillColor
Availability
Flash MX 2004.
Usage
textAttrs.fillColor
Zobrazit stránku 476
1 2 ... 472 473 474 475 476 477 478 479 480 481 482 ... 564 565

Komentáře k této Příručce

Žádné komentáře