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

  • 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 479
458
EXTENDING FLASH PROFESSIONAL
TextAttrs object
Last updated 5/2/2011
Description
Property; an integer that specifies the line spacing (leading) of the paragraph. Acceptable values are -360 through 720.
Example
The following example sets the selected text field’s lineSpacing property to 100:
fl.getDocumentDOM().selection[0].setTextAttr("lineSpacing", 100);
textAttrs.rightMargin
Availability
Flash MX 2004.
Usage
textAttrs.rightMargin
Description
Property; an integer that specifies the paragraph’s right margin. Acceptable values are 0 through 720.
Example
The following example sets the rightMargin 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("rightMargin", 100, 2, 8);
textAttrs.rotation
Availability
Flash MX 2004.
Usage
textAttrs.rotation
Description
Property; a Boolean value. A value of true causes Flash to rotate the characters of the text 90º. The default value is
false. This property applies only to static text with a vertical orientation; it generates a warning if used with other text
types.
Example
The following example sets the rotation of the selected text field to true:
fl.getDocumentDOM().setElementTextAttr("rotation", true);
Zobrazit stránku 479
1 2 ... 475 476 477 478 479 480 481 482 483 484 485 ... 564 565

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

Žádné komentáře