Selectable (Textfield.selectable Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
hscroll (TextField.hscroll property)
property)

selectable (TextField.selectable property)

public selectable : Boolean
A Boolean value that indicates whether the text field is selectable. The value
that the text is selectable. The
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
from the mouse or keyboard, and the text cannot be copied using the Copy command. If
selectable is set to
true
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.
1206
ActionScript classes
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
property controls whether a text field is selectable,
selectable
, the text in the text field does not respond to selection commands
, the text in the text field can be selected using the mouse or keyboard.
,
maxscroll (TextField.maxscroll
method.
indicates
true

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents