Tab (Key.tab Property); Up (Key.up Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

break;
case Key.RIGHT :
car_mc._x += DISTANCE;
break;
case Key.DOWN :
car_mc._y += DISTANCE;
break;
}
};
Key.addListener(keyListener_obj);

TAB (Key.TAB property)

public static TAB : Number
The key code value for the Tab key (9).
Availability: ActionScript 1.0; Flash Player 5
Example
The following example creates a text field, and displays the date in the text field when you
press Tab.
this.createTextField("date_txt", this.getNextHighestDepth(), 0, 0, 100,
22);
date_txt.autoSize = true;
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(Key.TAB)) {
var today_date:Date = new Date();
date_txt.text = today_date.toString();
}
};
Key.addListener(keyListener);
When you use this example, be sure to select Control > Disable Keyboard Shortcuts in the test
environment.
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the

UP (Key.UP property)

public static UP : Number
The key code value for the Up Arrow key (38).
Availability: ActionScript 1.0; Flash Player 5
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
method.
Key
691

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF