Textattrs.size, Textattrs.target, Textattrs.url – Adobe Extending Flash Professional CS5 User Manual
Page 481

459
EXTENDING FLASH PROFESSIONAL
TextAttrs object
Last updated 5/2/2011
textAttrs.size
Availability
Flash MX 2004.
Usage
textAttrs.size
Description
Property; an integer that specifies the size of the font.
Example
The following example retrieves the size of the character at index 2 and shows the result in the Output panel:
fl.outputPanel.trace(fl.getDocumentDOM().selection[0].getTextAttr("size", 2));
textAttrs.target
Availability
Flash MX 2004.
Usage
textAttrs.target
Description
Property; a string that represents the
target
property of the text field. This property works only with static text.
Example
The following example gets the
target
property of the text field in the first frame of the top layer of the current scene
and shows it in the Output panel:
fl.outputPanel.trace(fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].getTe
xtAttr("target"));
textAttrs.url
Availability
Flash MX 2004.
Usage
textAttrs.url