Frame 1
fscommand ("showmenu", false);
_root.best = 0;
_root.sunet = 1;
_root.paused = 0;
stop();
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();
son = new Sound();
son.attachSound("muzica");
son1 = new Sound();
son1.attachSound("shot");
son2 = new Sound();
son2.attachSound("shot2");
son3 = new Sound();
son3.attachSound("shot3");
son.setVolume(80);
if (_root.kx == null) {
son.start(0, 9999);
_root.kx = 1;
}
Frame 3
stop();
_root.score = 0;
bestScTXT.text = _root.best;
timpIni = getTimer();
this.onEnterFrame = function () {
if (_root.paused == 0) {
timpIni = timpIni + dev;
if (_root.score > _root.best) {
_root.best = _root.score;
}
scoreTXT.text = _root.score;
timpOld = getTimer();
timp = 90 - Math.round((timpOld - timpIni) / 1000);
timeTXT.text = timp;
dev = 0;
if (timp == 0) {
_root.gotoAndStop(4);
}
} else {
dev = getTimer() - timpOld;
}
};
Instance of Symbol 64 MovieClip "car" in Frame 3
onClipEvent (load) {
this.gotoAndStop(random(2) + 1);
}
Frame 4
stop();
scoreTXT.text = _root.score;
delete this.onEnterFrame;
Symbol 12 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 63
stop();
Symbol 16 MovieClip Frame 272
_root.gotoAndStop(2);
Symbol 19 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hittest(_root.car)) {
_root.car.vy = Math.abs(_root.car.vy);
}
};
Symbol 20 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hittest(_root.car)) {
_root.car.vx = Math.abs(_root.car.vx);
}
};
Symbol 21 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hittest(_root.car)) {
_root.car.vx = -Math.abs(_root.car.vx);
}
};
Symbol 22 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.hittest(_root.car)) {
_root.car.vy = -Math.abs(_root.car.vy);
}
};
Symbol 46 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.paused == 0) {
rand = random(4);
if (rand == 1) {
this.gotoAndPlay("prostu");
delete this.onEnterFrame;
}
if (rand == 2) {
this.gotoAndPlay("prostu2");
delete this.onEnterFrame;
}
if (rand == 3) {
this.gotoAndPlay("prostu3");
delete this.onEnterFrame;
}
}
};
Symbol 46 MovieClip Frame 2
this.onEnterFrame = function () {
if (_root.paused == 0) {
this.play();
this._x = this._x + vx;
this._y = this._y + vy;
distx = Math.abs(this._x - _root.car._x);
disty = Math.abs(this._y - _root.car._y);
dist = Math.sqrt((distx * distx) + (disty * disty));
if (kkx == null) {
if (dist < 50) {
ran3 = random(6);
if (ran3 == 1) {
if (_root.sunet == 1) {
_root.son1.start();
}
}
if (ran3 == 2) {
if (_root.sunet == 1) {
_root.son2.start();
}
}
vy = -2 * Math.abs(vy);
this._rotation = this._rotation + 180;
kkx = 1;
}
}
if (this.hittest(_root.car.targ)) {
_root.score++;
if (_root.sunet == 1) {
_root.son3.start();
}
this.gotoAndPlay("sange");
}
if (this._y >= 410) {
_parent.pedNo--;
removeMovieClip(this);
}
if (this._y <= -10) {
removeMovieClip(this);
_parent.pedNo--;
}
} else {
this.stop();
}
};
Symbol 46 MovieClip Frame 13
gotoAndPlay (2);
Symbol 46 MovieClip Frame 14
this.onEnterFrame = function () {
if (_root.paused == 0) {
this.play();
this._x = this._x + vx;
this._y = this._y + vy;
distx = Math.abs(this._x - _root.car._x);
disty = Math.abs(this._y - _root.car._y);
dist = Math.sqrt((distx * distx) + (disty * disty));
if (kkx == null) {
if (dist < 50) {
ran3 = random(6);
if (ran3 == 1) {
if (_root.sunet == 1) {
_root.son1.start();
}
}
if (ran3 == 2) {
if (_root.sunet == 1) {
_root.son2.start();
}
}
vy = -2 * Math.abs(vy);
this._rotation = this._rotation + 180;
kkx = 1;
}
}
if (this.hittest(_root.car.targ)) {
_root.score++;
if (_root.sunet == 1) {
_root.son3.start();
}
this.gotoAndPlay("sange");
}
if (this._y >= 410) {
_parent.pedNo--;
removeMovieClip(this);
}
if (this._y <= -10) {
removeMovieClip(this);
_parent.pedNo--;
}
} else {
this.stop();
}
};
Symbol 46 MovieClip Frame 31
gotoAndPlay (14);
Symbol 46 MovieClip Frame 32
this.onEnterFrame = function () {
if (_root.paused == 0) {
this.play();
this._x = this._x + vx;
this._y = this._y + vy;
distx = Math.abs(this._x - _root.car._x);
disty = Math.abs(this._y - _root.car._y);
dist = Math.sqrt((distx * distx) + (disty * disty));
if (kkx == null) {
if (dist < 50) {
vy = -Math.abs(vy);
this._rotation = this._rotation + 180;
kkx = 1;
}
}
if (this.hittest(_root.car.targ)) {
_root.score++;
this.gotoAndPlay("sange");
}
if (this._y >= 410) {
_parent.pedNo--;
removeMovieClip(this);
}
if (this._y <= -10) {
removeMovieClip(this);
_parent.pedNo--;
}
} else {
this.stop();
}
};
Symbol 46 MovieClip Frame 49
gotoAndPlay (32);
Symbol 46 MovieClip Frame 50
this.onEnterFrame = function () {
if (_root.paused == 0) {
this.play();
this._x = this._x + vx;
this._y = this._y + vy;
distx = Math.abs(this._x - _root.car._x);
disty = Math.abs(this._y - _root.car._y);
dist = Math.sqrt((distx * distx) + (disty * disty));
if (kkx == null) {
if (dist < 50) {
vy = -Math.abs(vy);
this._rotation = this._rotation + 180;
kkx = 1;
}
}
if (this.hittest(_root.car.targ)) {
_root.score++;
this.gotoAndPlay("sange");
}
if (this._y >= 410) {
_parent.pedNo--;
removeMovieClip(this);
}
if (this._y <= -10) {
removeMovieClip(this);
_parent.pedNo--;
}
} else {
this.stop();
}
};
Symbol 46 MovieClip Frame 67
gotoAndPlay (50);
Symbol 46 MovieClip Frame 69
Symbol 46 MovieClip Frame 70
_parent.pedNo--;
delete this.onEnterFrame;
Symbol 46 MovieClip Frame 106
stop();
removeMovieClip(this);
Symbol 47 MovieClip Frame 1
maxPedNo = 40;
pedNo = 0;
i = 0;
this.onEnterFrame = function () {
if (_root.paused == 0) {
ran = random(10);
if (ran == 1) {
ran2 = random(2);
if (pedNo < maxPedNo) {
i++;
duplicateMovieClip (ped1, "ped" + i, i);
this["ped" + i]._x = random(400) + 75;
this["ped" + i]._y = 0;
this["ped" + i].vy = random(4) + 2;
this["ped" + i].vx = random(7) - 3;
this["ped" + i]._rotation = ((-Math.atan(this["ped" + i].vx / this["ped" + i].vy)) * 58) + 90;
pedNo++;
}
}
}
};
Symbol 53 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 57 Button
on (release) {
if (_root.sunet == 0) {
_root.sunet = 1;
_root.son.start(0, 100);
} else {
_root.sunet = 0;
_root.son.stop();
}
}
Symbol 64 MovieClip Frame 1
stop();
coolVar = 1;
this.onEnterFrame = function () {
if (_root.paused == 0) {
_x = (_x + vx);
_y = (_y + vy);
if ((distx != 0) && (disty != 0)) {
rot = (-Math.atan(distx / disty)) * 58;
if (disty > 0) {
rot = rot + 180;
}
this._rotation = rot;
}
if (coolVar == 1) {
distx = _root._xmouse - _x;
disty = _root._ymouse - _y;
vx = distx / 10;
vy = disty / 10;
}
}
};
Symbol 64 MovieClip Frame 2
stop();
coolVar = 1;
this.onEnterFrame = function () {
if (_root.paused == 0) {
_x = (_x + vx);
_y = (_y + vy);
if ((distx != 0) && (disty != 0)) {
rot = (-Math.atan(distx / disty)) * 58;
if (disty > 0) {
rot = rot + 180;
}
this._rotation = rot;
}
if (coolVar == 1) {
distx = _root._xmouse - _x;
disty = _root._ymouse - _y;
vx = distx / 10;
vy = disty / 10;
}
}
};
Symbol 70 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 73 Button
on (release) {
if (_root.paused == 0) {
_root.paused = 1;
} else {
_root.paused = 0;
}
}
Symbol 80 Button
on (release) {
_root.gotoAndStop(2);
}