HOME (Key.HOME property)
public static HOME :
The key code value for the Home key (36).
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example attaches a draggable movie clip called
coordinates of 0,0. When you press the Home key, car_mc returns to 0,0. Create a movie clip
that has a linkage ID
this.attachMovie("car_id", "car_mc", this.getNextHighestDepth(), {_x:0,
_y:0});
car_mc.onPress = function() {
this.startDrag();
};
car_mc.onRelease = function() {
this.stopDrag();
};
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(Key.HOME)) {
car_mc._x = 0;
car_mc._y = 0;
}
};
Key.addListener(keyListener);
INSERT (Key.INSERT property)
public static INSERT :
The key code value for the Insert key (45).
Availability: ActionScript 1.0; Flash Lite 2.0
380
ActionScript classes
Number
, and add the following ActionScript to Frame 1 of the Timeline:
car_id
Number
at the x and y
car_mc
Need help?
Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?