Removelistener (Textfield.removelistener Method) - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Example
The following example sets the rendering quality to
my_txt._quality = "LOW";
See also
_quality property

removeListener (TextField.removeListener method)

public removeListener(listener:Object) : Boolean
Removes a listener object previously registered to a text field instance with
TextField.addListener()
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- The object that will no longer receive notifications from
listener:Object
TextField.onChanged
Returns
- If
Boolean
listener
was not successfully removed (for example, if
listener
object's listener list), the method returns a value of
Example
The following example creates an input text field called
field, information about the number of characters in the text field is displayed in the Output
panel. When the user types into the field, information about the number of characters in the
text field writes to the log file. If the user clicks the
listener is removed and information is no longer displayed. If the user clicks the
removeListener_btn
to the log file.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160,
20);
my_txt.border = true;
my_txt.type = "input";
var txtListener:Object = new Object();
txtListener.onChanged = function(textfield_txt:TextField) {
trace(textfield_txt+" changed. Current length is:
"+textfield_txt.length);
.
or
TextField.onScroller
was successfully removed, the method returns a
instance, then the listener is removed and information no longer writes
:
LOW
.
true
was not on the TextField
listener
.
false
. When the user types into the
my_txt
removeListener_btn
value. If
instance, then the
TextField
673

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?

Questions and answers

This manual is also suitable for:

Flash lite 2

Table of Contents