Instance of Symbol 43 MovieClip "main" in Frame 1
onClipEvent (load) {
this.hideButton = false;
if (this.hideButton) {
btnOK._visible = false;
} else {
inText1.border = true;
inText2.border = true;
}
inText1.background = false;
inText2.background = false;
inText1.borderColor = 15726075 /* 0xEFF5FB */;
inText2.borderColor = inText1.borderColor;
_global.goodAnswer = false;
_global.wrongAnswer = false;
inText1.onSetFocus = function (oldFocus) {
if (inText1.text == " ?") {
inText1.text = "";
}
};
inText2.onSetFocus = function (oldFocus) {
if (inText2.text == " ?") {
inText2.text = "";
}
};
inText1.onKillFocus = function (newFocus) {
if (inText1.text == "") {
inText1.text = " ?";
}
};
inText2.onKillFocus = function (newFocus) {
if (inText2.text == "") {
inText2.text = " ?";
}
};
_global.onBtnOKClick = function () {
if (_currentframe == 1) {
if ((inText1.text == "99") && (inText2.text == "195")) {
_global.goodAnswer = true;
} else {
_global.wrongAnswer = true;
}
}
if (_currentframe == 2) {
if ((inText1.text == "60") && (inText2.text == "54")) {
_global.goodAnswer = true;
} else {
_global.wrongAnswer = true;
}
}
if (_currentframe == 3) {
if ((inText1.text == "97") && (inText2.text == "101")) {
_global.goodAnswer = true;
} else {
_global.wrongAnswer = true;
}
}
};
}
onClipEvent (enterFrame) {
if (_global.goodAnswer) {
if (inText1.borderColor != 60928) {
this.startTime = getTimer();
inText1.borderColor = 60928;
inText2.borderColor = inText1.borderColor;
}
if ((getTimer() - this.startTime) > 1000) {
_global.goodAnswer = false;
if (_currentframe == 1) {
inText1.borderColor = 16447213 /* 0xFAF6ED */;
szamText1.text = " 61";
szamText2.text = " 56";
szamText3.text = " 57";
szamText4.text = " 59";
szamText5.text = " 63";
} else if (_currentframe == 2) {
inText1.borderColor = 15464418 /* 0xEBF7E2 */;
szamText1.text = " 71";
szamText2.text = " 73";
szamText3.text = " 79";
szamText4.text = " 83";
szamText5.text = " 89";
}
inText2.borderColor = inText1.borderColor;
inText1.text = " ?";
inText2.text = " ?";
gotoAndStop(_currentframe + 1);
}
}
if (_global.wrongAnswer) {
if (inText1.borderColor != 16711680) {
this.startTime = getTimer();
inText1.borderColor = 16711680 /* 0xFF0000 */;
inText2.borderColor = inText1.borderColor;
}
if ((getTimer() - this.startTime) > 500) {
_global.wrongAnswer = false;
if (_currentframe == 1) {
inText1.borderColor = 15726075 /* 0xEFF5FB */;
} else if (_currentframe == 2) {
inText1.borderColor = 16447213 /* 0xFAF6ED */;
} else if (_currentframe == 3) {
inText1.borderColor = 15464418 /* 0xEBF7E2 */;
}
inText2.borderColor = inText1.borderColor;
}
}
}
Symbol 28 Button
on (release) {
_global.onBtnOKClick();
}
Symbol 42 MovieClip Frame 697
stop();
Symbol 43 MovieClip Frame 1
stop();