Frame 1
fscommand ("showmenu", false);
_root.inter1 = 300;
_root.app = 0;
_root.teff = 0;
_root.teffn = 0;
_root.tmsg = "";
stop();
_root.best = 0;
_root.sunet = 1;
logo.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
this.play();
} else {
tgFrame = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
this.progress.gotoAndStop(tgFrame);
}
};
Frame 2
stop();
Mouse.hide();
curs1._visible = 1;
tabla._visible = 1;
timp._visible = 1;
timpInter = getTimer();
if (_root.inter1 < 20) {
_root.inter1 = 20;
}
this.onEnterFrame = function () {
tabla.scorB.text = _root.best;
if (score != null) {
tabla.scor.text = score;
}
time = 35 - Math.round((getTimer() - timpInter) / 1000);
if (time < 10) {
timp.sec.text = "0" + time;
} else {
timp.sec.text = time;
}
if (timp.sec.text == "00") {
_root.teff = Math.round(((_root.score - _root.baza) / _root.app) * 100);
_root.teffn = 70;
if (_root.teff >= 70) {
_root.tmsg = "Congratulations!\nYou advanced to the next level.";
} else {
_root.tmsg = "Your efficiency is not high enough to advance to the next level.";
}
gotoAndStop (4);
}
};
Instance of Symbol 55 MovieClip "curs1" in Frame 2
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Instance of Symbol 70 MovieClip in Frame 2
onClipEvent (enterFrame) {
this._rotation = (-Math.atan((_root._xmouse - this._x) / (_root._ymouse - this._y))) * 58;
}
Frame 3
stop();
tabla._visible = 0;
timp._visible = 0;
Mouse.show();
curs1._visible = 0;
but.onPress = function () {
_root.gotoAndStop(2);
};
scorB1 = tabla.scor.text;
if (scorB1 > _root.best) {
_root.best = scorB1;
tabla.scorB.text = scorB1;
}
son = new Sound();
son.attachSound("muzica");
son.setVolume(40);
son1 = new Sound();
son1.attachSound("shot");
if (_root.kx == null) {
son.start(1, 9999);
_root.kx = 1;
}
Frame 4
stop();
Mouse.show();
eff.text = _root.teff;
effn.text = _root.teffn;
msg1.text = _root.tmsg;
buton.onRelease = function () {
if (tmsg == "Congratulations!\nYou advanced to the next level.") {
_root.inter1 = _root.inter1 - 60;
_root.app = 0;
_root.baza = _root.score;
_root.gotoAndStop(2);
}
if (tmsg == "Your efficiency is not high enough to advance to the next level.") {
_root.inter1 = 300;
if (_root.score > _root.best) {
_root.best = _root.score;
}
_root.score = 0;
_root.app = 0;
_root.baza = 0;
_root.gotoAndStop(3);
}
};
Symbol 10 MovieClip Frame 1
stop();
Symbol 14 MovieClip Frame 63
stop();
Symbol 14 MovieClip Frame 272
_root.gotoAndStop(3);
Symbol 29 MovieClip Frame 1
this.onPress = function () {
_root.score++;
targFrame = 31 + random(4);
this.gotoAndStop(targFrame);
};
Symbol 29 MovieClip Frame 30
stop();
Symbol 29 MovieClip Frame 31
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 29 MovieClip Frame 32
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 29 MovieClip Frame 33
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 29 MovieClip Frame 34
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 32 MovieClip Frame 1
this.onPress = function () {
_root.score++;
targFrame = 31 + random(4);
this.gotoAndStop(targFrame);
};
Symbol 32 MovieClip Frame 30
stop();
Symbol 32 MovieClip Frame 31
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 32 MovieClip Frame 32
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 32 MovieClip Frame 33
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 32 MovieClip Frame 34
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 34 MovieClip Frame 1
this.onPress = function () {
_root.score++;
targFrame = 31 + random(4);
this.gotoAndStop(targFrame);
};
Symbol 34 MovieClip Frame 30
stop();
Symbol 34 MovieClip Frame 31
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 34 MovieClip Frame 32
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 34 MovieClip Frame 33
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 34 MovieClip Frame 34
delete this.onPress;
if (_root.sunet == 1) {
_root.son1.start(0.4, 1);
}
Symbol 36 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 36 MovieClip Frame 2
_root.app++;
Symbol 37 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 37 MovieClip Frame 2
_root.app++;
Symbol 39 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 39 MovieClip Frame 2
_root.app++;
Symbol 40 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 40 MovieClip Frame 2
_root.app++;
Symbol 42 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 42 MovieClip Frame 2
_root.app++;
Symbol 44 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 44 MovieClip Frame 2
_root.app++;
Symbol 46 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 46 MovieClip Frame 2
_root.app++;
Symbol 48 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 48 MovieClip Frame 2
_root.app++;
Symbol 50 MovieClip Frame 1
stop();
stop();
this.onEnterFrame = function () {
r = random(_root.inter1);
if (r == 10) {
play();
c1.gotoAndPlay(2);
}
};
Symbol 50 MovieClip Frame 2
_root.app++;
Symbol 53 Button
on (release) {
_root.inter1 = 300;
_root.score = 0;
_root.app = 0;
_root.baza = 0;
_root.gotoAndStop(3);
}
Symbol 73 Button
on (release) {
if (_root.sunet == 0) {
_root.sunet = 1;
_root.son.start(0, 100);
} else {
_root.sunet = 0;
_root.son.stop();
}
}