Adobe Extending Flash Professional CS5 Manuel d'utilisateur Page 483

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 565
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 482
461
Last updated 5/2/2011
Chapter 44: TextRun object
Availability
Flash MX 2004.
Description
The TextRun object represents a run of characters that have attributes that match all of the properties in the TextAttrs
object. This object is a property of the Text object (text.textRuns).
Property summary
In addition to the properties available for use with the Text object, the TextRun object provides the following
properties:
textRun.textAttrs
Availability
Flash MX 2004.
Usage
textRun.textAttrs
Description
Property; the TextAttrs object containing the attributes of the run of text.
Example
The following example displays the properties of the first run of characters in the selected text field in the Output panel.
var curTextAttrs = fl.getDocumentDOM().selection[0].textRuns[0].textAttrs;
for (var prop in curTextAttrs) {
fl.trace(prop + " = " + curTextAttrs[prop]);
}
textRun.characters
Availability
Flash MX 2004.
Usage
textRun.characters
Property Description
textRun.characters A string that represents the text contained in the TextRun object.
textRun.textAttrs The TextAttrs object containing the attributes of the run of text.
Vue de la page 482
1 2 ... 478 479 480 481 482 483 484 485 486 487 488 ... 564 565

Commentaires sur ces manuels

Pas de commentaire