MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 313

Actionscript language reference
Table of Contents

Advertisement

case Key.LEFT :
car_mc._x -= DISTANCE;
break;
case Key.UP :
car_mc._y -= DISTANCE;
break;
case Key.RIGHT :
car_mc._x += DISTANCE;
break;
case Key.DOWN :
car_mc._y += DISTANCE;
break;
}
};
Key.addListener(keyListener_obj);
Key.TAB
Availability
Flash Player 5.
Usage
Key.TAB:Number
Description
Property; constant associated with the key code value for the Tab key (9).
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);
Key.UP
Availability
Flash Player 5.
Usage
Key.UP:Number
Key.UP
313

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