Flash MX 2004.
text.embedRanges
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" property instead of the text.embedRanges property.
The following example assumes that the first or only item in the current selection is a classic text object and sets the embedRanges property to "1|3|7":
var doc = fl.getDocumentDOM();
doc.selection[0].embedRanges = "1|3|7";The following example resets the property:
var doc = fl.getDocumentDOM();
doc.selection[0].embedRanges = "";