Textinput.hposition - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

TextInput.hPosition

Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
textInputInstance.hPosition
Description
Property; specifies how many pixels have been scrolled to accommodate the user's entry in the
TextInput box. The default value is 0.
The value changes for the same text on different computers because of monitor, screen
size, and font characteristics.
Example
The following example creates a listener for a
. The listener accesses the
my_ti
character the user enters.
You must first drag a TextInput component to the Stage and give it an instance name of
; then add the following code to Frame 1.
my_ti
/**
Requires:
- TextInput instance on Stage (instance name: my_ti)
*/
var my_ti:mx.controls.TextInput;
// Create listener object.
var tiListener:Object = new Object();
tiListener.change = function(evt_obj:Object) {
trace("hPosition = " + my_ti.hPosition);
};
// Add listener.
my_ti.addEventListener("change", tiListener);
1224
TextInput component
change
property to display the current position for each
hPosition
event on the TextInput instance called

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents