Textfield.selectable - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

TextField.selectable

Availability
Flash Player 6.
Usage
my_txt.selectable:Boolean
Description
Property; a Boolean value that indicates whether the text field is selectable. The value
indicates that the text is selectable. The
selectable, and not whether a text field is editable. A dynamic text field can be selectable even if
it's not editable. If a dynamic text field is not selectable, that means you cannot select its text.
If selectable is set to
from the mouse or keyboard, and the text cannot be copied using the Copy command. If
selectable is set to
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.
Example
The following example creates a selectable text field that constantly updates with the current date
and time.
this.createTextField("date_txt", this.getNextHighestDepth(), 10, 10, 100, 22);
date_txt.autoSize = true;
date_txt.selectable = false;
var date_interval:Number = setInterval(updateTime, 500, date_txt);
function updateTime(my_txt:TextField) {
my_txt.text = new Date().toString();
}
916
Chapter 2: ActionScript Language Reference
, the text in the text field does not respond to selection commands
false
, the text in the text field can be selected using the mouse or keyboard. You
true
property controls whether a text field is
selectable
true

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents