Adobe Extending Flash Professional CS5 Manuale Utente Pagina 461

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 460
439
EXTENDING FLASH PROFESSIONAL
Text object
Last updated 5/2/2011
Example
The following example retrieves the description of the object:
var doc = fl.getDocumentDOM();
var desc = doc.selection[0].description;
The following example sets the description of the object:
var doc = fl.getDocumentDOM();
doc.selection[0].description= "Enter your name here";
text.embeddedCharacters
Availability
Flash MX 2004.
Usage
text.embeddedCharacters
Description
Property; a string that specifies characters to embed. This is equivalent to entering text in the Character Embedding
dialog box.
This property works only with dynamic or input text; it generates a warning if used with other text types.
Note: Beginning in Flash Professional CS5, font embedding is controlled at the document level instead of the text object
level. Use the
fontItem.embeddedCharacters” on page 280 property instead of the text.embeddedCharacters property.
Example
The following example assumes that the first or only item in the current selection is a classic text object and sets the
embeddedCharacters property to abc:
fl.getDocumentDOM().selection[0].embeddedCharacters = "abc";
text.embedRanges
Availability
Flash MX 2004.
Usage
text.embedRanges
Description
Property; a string that consists of delimited integers that correspond to the items that can be selected in the Character
Embedding dialog box. This property works only with dynamic or input text; it is ignored if used with static text.
This property corresponds to the XML file in the Configuration/Font Embedding folder.
Note: Beginning in Flash Professional CS5, font embedding is controlled at the document level instead of the text object
level. Use the
fontItem.embedRanges” on page 280 property instead of the text.embedRanges property.
Vedere la pagina 460
1 2 ... 456 457 458 459 460 461 462 463 464 465 466 ... 564 565

Commenti su questo manuale

Nessun commento