Adobe Extending Flash Professional CS5 Manuale Utente Pagina 476

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 475
454
EXTENDING FLASH PROFESSIONAL
TextAttrs object
Last updated 5/2/2011
Description
Property; a Boolean value that determines whether Flash uses (true) or ignores (false) pair kerning information in
the font(s) when it kerns the text.
Example
The following example selects the characters from index 2 up to, but not including, index 6 and sets the autoKern
property to
true:
fl.getDocumentDOM().setTextSelection(3, 6);
fl.getDocumentDOM().setElementTextAttr('autoKern', true);
textAttrs.bold
Availability
Flash MX 2004.
Usage
textAttrs.bold
Description
Property; a Boolean value. A value of true causes text to appear with the bold version of the font.
Example
The following example selects the first character of the selected Text object and sets the bold property to true:
fl.getDocumentDOM().setTextSelection(0, 1);
fl.getDocumentDOM().setElementTextAttr('bold', true);
textAttrs.characterPosition
Availability
Flash MX 2004.
Usage
textAttrs.characterPosition
Description
Property; a string that determines the baseline for the text. Acceptable values are "normal", "subscript", and
"superscript". This property applies only to static text.
Example
The following example selects the characters from index 2 up to, but not including, index 6 of the selected text field
and sets the
characterPosition property to subscript:
fl.getDocumentDOM().setTextSelection(2, 6);
fl.getDocumentDOM().setElementTextAttr("characterPosition", "subscript");
Vedere la pagina 475
1 2 ... 471 472 473 474 475 476 477 478 479 480 481 ... 564 565

Commenti su questo manuale

Nessun commento