User Guide

306 Chapter 3: Objects
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].ele
ments[0].getTextAttr("target"));
textAttrs.url
Availability
Flash MX 2004.
Usage
textAttrs.url
Description
Property; a string that represents the URL property of the text field. This property works only with
static text.
Example
The following example sets the URL of the selected text field to http://www.macromedia.com:
fl.getDocumentDOM().setElementTextAttr("url", "http://www.macromedia.com");