MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 748

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 = true;
var date_interval:Number = setInterval(updateTime, 500, date_txt);
function updateTime(my_txt:TextField) {
my_txt.text = new Date().toString();
}
TextField.setNewTextFormat()
Availability
Flash Player 6.
Usage
my_txt.setNewTextFormat(textFormat:TextFormat) : Void
Parameters
A TextFormat object.
textFormat
Returns
Nothing.
748
Chapter 7: ActionScript for Flash
, 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 FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents