Combined Code
frame 1 {
APPLES = 0;
a1.onRelease = function () {
APPLES = Number(APPLES) + 1;
a1._visible = false;
a3._visible = true;
a2._visible = true;
};
a2.onRelease = function () {
APPLES = Number(APPLES) + 2;
a2._visible = false;
a1._visible = true;
};
a3.onRelease = function () {
APPLES = Number(APPLES) + 3;
a3._visible = false;
a2._visible = true;
};
}
// unknown tag 88 length 67
frame 3 {
txt_dyn.text = APPLES;
if (Number(APPLES) >= 20) {
gotoAndStop(5);
} else {
gotoAndPlay(2);
}
}
frame 5 {
reset.onRelease = function () {
gotoAndPlay(1);
};
exit.onRelease = function () {
fscommand('quit');
};
}