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");
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...