beautypg.com

Text.embeddedcharacters, Text.embedranges – Adobe Extending Flash Professional CS5 User Manual

Page 461

background image

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.

This manual is related to the following products: