Selectable (Textfield.selectable Property) - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Example
The following example sets the maximum value for the scrolling text field
buttons,
scrollUp_btn
ActionScript to your FLA or ActionScript file.
this.createTextField("scroll_txt", this.getNextHighestDepth(), 10, 10, 160,
20);
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 30, 320,
240);
my_txt.multiline = true;
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;
};
See also
hscroll (TextField.hscroll property)
property)

selectable (TextField.selectable property)

public selectable :
A Boolean value that indicates whether the text field is selectable. If the value is
is selectable. The
selectable
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, you cannot select its text.
If
is set to
selectable
commands from the mouse or keyboard, and the text cannot be copied using the Copy
command. If selectable is set to
or keyboard. You can select text this way even if the text field is a dynamic text field instead of
an input text field. You can also copy the text using the Copy command.
and
scrollDown_btn
Boolean
property controls whether a text field is selectable, not whether
, the text in the text field does not respond to selection
false
, the text in the text field can be selected using the mouse
true
, to scroll the text field. Add the following
,
maxscroll (TextField.maxscroll
. Create two
my_txt
, the text
true
TextField
677

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents