Extending Flash |
|
|
|
| Objects > Text object > text.embedRanges | |||
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 Options dialog box. This property works only with dynamic or input text; it is ignored if used with static text.
|
NOTE |
This property corresponds to the XML file in the Configuration/Font Embedding folder. |
The following example sets the embedRanges property to "1|3|7":
var doc = fl.getDocumentDOM(); doc.getTimeline().layers[0].frames[0].elements[0].embedRanges = "1|3|7";
The following example resets the property:
var doc = fl.getDocumentDOM(); doc.getTimeline().layers[0].frames[0].elements[0].embedRanges = "";
|
|
|
|