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

  • 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 478
457
EXTENDING FLASH PROFESSIONAL
TextAttrs object
Last updated 5/2/2011
textAttrs.leftMargin
Availability
Flash MX 2004.
Usage
textAttrs.leftMargin
Description
Property; an integer that specifies the paragraph’s left margin. Acceptable values are 0 through 720.
Example
The following example sets the leftMargin property of the selected text field from the character at index 2 up to, but
not including, the character at index 8 to 100. This can affect characters outside the specified range if they are in the
same paragraph.
fl.getDocumentDOM().selection[0].setTextAttr("leftMargin", 100, 2, 8);
textAttrs.letterSpacing
Availability
Flash 8.
Usage
textAttrs.letterSpacing
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 code selects the characters from index 0 up to but not including index 10 and sets the character spacing
to 60:
fl.getDocumentDOM().setTextSelection(0, 10);
fl.getDocumentDOM().setElementTextAttr("letterSpacing", 60);
textAttrs.lineSpacing
Availability
Flash MX 2004.
Usage
textAttrs.lineSpacing
Zobrazit stránku 478
1 2 ... 474 475 476 477 478 479 480 481 482 483 484 ... 564 565

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

Žádné komentáře