User Guide

1206 ActionScript classes
my_txt.wordWrap = true;
for (var i = 0; i<10; i++) {
my_txt.text += "Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
sed diam nonummy "
+ "nibh euismod tincidunt ut laoreet dolore magna aliquam erat
volutpat.";
}
scrollUp_btn.onRelease = function() {
my_txt.scroll--;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};
scrollDown_btn.onRelease = function() {
my_txt.scroll++;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};
The MovieClip.getNextHighestDepth() method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth() method.
See also
hscroll (TextField.hscroll property), maxscroll (TextField.maxscroll
property)
selectable (TextField.selectable property)
public selectable : Boolean
A Boolean value that indicates whether the text field is selectable. The value true indicates
that the text is selectable. The
selectable property controls whether a text field is selectable,
and not whether a text field is editable. A dynamic text field can be selectable even if it is not
editable. If a dynamic text field is not selectable, that means you cannot select its text.
If selectable is set to
false, the text in the text field does not respond to selection commands
from the mouse or keyboard, and the text cannot be copied using the Copy command. If
selectable is set to
true, the text in the text field can be selected using the mouse or keyboard.
You can select text this way even if the text field is a dynamic text field instead of an input text
field. The text can be copied using the Copy command.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example creates a selectable text field that constantly updates with the current
date and time.