Adobe Extending Flash Professional CS4 Manuel d'utilisateur Page 478

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 560
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 477
456
EXTENDING FLASH CS4 PROFESSIONAL
TextAttrs object
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);
Vue de la page 477
1 2 ... 473 474 475 476 477 478 479 480 481 482 483 ... 559 560

Commentaires sur ces manuels

Pas de commentaire