"Як дізнатись, яка клавіша миші натиснута?"_root.createTextField("tf_txt", 1, 10, 10, 200, 20);
tf_txt.border = true;
onEnterFrame = function () {
if (Key.isDown(1)) {
tf_txt.text = "Left mouse button clicked";
}
if (Key.isDown(2)) {
tf_txt.text = "Right mouse button clicked";
}
if (Key.isDown(4)) {
tf_txt.text = "Center mouse button clicked";
}
}; |