Adobe Extending Flash Professional CS5 Manuale Utente Pagina 478

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 477
456
EXTENDING FLASH PROFESSIONAL
TextAttrs object
Last updated 5/2/2011
Description
Property; the color of the fill, in one of the following formats:
A string in the format "#RRGGBB" or "#RRGGBBAA"
A hexadecimal number in the format 0xRRGGBB
An integer that represents the decimal equivalent of a hexadecimal number
Example
The following example sets the color to red for the selected text field from the character at index 2 up to, but not
including, the character at index 8:
fl.getDocumentDOM().selection[0].setTextAttr("fillColor", 0xff0000, 2, 8);
textAttrs.indent
Availability
Flash MX 2004.
Usage
textAttrs.indent
Description
Property; an integer that specifies paragraph indentation. Acceptable values are -720 through 720.
Example
The following example sets the indentation 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("indent", 100, 2, 8);
textAttrs.italic
Availability
Flash MX 2004.
Usage
textAttrs.italic
Description
Property; a Boolean value. A value of true causes text to appear with the italic version of the font.
Example
The following example sets the selected text field to italic:
fl.getDocumentDOM().selection[0].setTextAttr("italic", true);
Vedere la pagina 477
1 2 ... 473 474 475 476 477 478 479 480 481 482 483 ... 564 565

Commenti su questo manuale

Nessun commento