Здравствуйте! Изучаю работу вебкам-клиента через showmycode, и кажется напоролся на кусок кода, который ждет секретной комбинации кнопок, чтоб включить режим Debug. Какое нажатие ожидается? По таблице 100 это "d", 120 - "x". Спасибо большое!
Код:
private function keyHandler(_arg1:KeyboardEvent):void{
if (3 == 4){
return;
};
if (_arg1.charCode != 0){
switch (_arg1.charCode){
case 100:
if (previousKey == String(_arg1.charCode)){
var _local3 = (incrementKey + 1);
if (false){
5;
_local3;
_local2;
} else {
incrementKey = _local3;
};
if (incrementKey > 120){
if (false){
5;
0;
;
} else {
incrementKey = 0;
};
if (!debugVisible){
if (false){
5;
4;
"DEBUG: Debug Activated by Key";
this;
} else {
this.print("DEBUG: Debug Activated by Key", 4);
};
if (false){
5;
true;
;
} else {
debugVisible = true;
};
if (false){
5;
"visible";
this;
} else {
this.hideDebug("visible");
};
} else {
if (false){
5;
4;
"DEBUG: Debug Deactivated by Key";
this;
} else {
this.print("DEBUG: Debug Deactivated by Key", 4);
};
if (false){
5;
false;
;
} else {
debugVisible = false;
};
if (false){
5;
"invisible";
this;
} else {
this.hideDebug("invisible");
};
};
};
} else {
if (false){
5;
0;
;
} else {
incrementKey = 0;
};
};
break;
};
if (false){
5;
String(_arg1.charCode);
;
} else {
previousKey = String(_arg1.charCode);
};
};
}