Frame 1
OnePercent = this.getBytesTotal() / 100;
begTime = getTimer() / 1000;
asize = getBytesTotal();
Frame 2
tellTarget ("Progress Bar") {
with ("Progress Bar") {
n = (getTimer() / 1000) - this.begTime;
bps = Math.round(this.getBytesLoaded() / n);
tr = (this.asize - this.getBytesLoaded()) / bps;
trround = Math.floor(tr);
trf = Math.round((tr - trround) * 100);
trem = Math.floor(tr) + (trf / 100);
}
gotoAndStop(Math.round(this.getBytesLoaded() / _parent.OnePercent));
};
if (this.getBytesLoaded() >= this.getBytesTotal()) {
gotoAndStop (5);
}
Frame 3
gotoAndPlay ("CheckLoaded");
Frame 6
benzin = 500;
crashcount = 0;
_root.nextlevel._visible = 0;
_root.marker_posadki._x = getProperty(_root.place1, _x);
_root.marker_posadki._y = getProperty(_root.place1, _y) - 50;
stop();
Instance of Symbol 90 MovieClip "ship" in Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
if (0 < _root.benzin) {
dx = dx - 0.1;
rot = rot - 3;
_root.ship.FireRight.gotoAndPlay("FireOn");
_root.benzin = _root.benzin - 1;
dim = _root.benzin / 500;
_root.fuel._width = 100 * dim;
}
}
if (Key.isDown(39)) {
if (0 < _root.benzin) {
dx = dx + 0.1;
rot = rot + 3;
_root.ship.FireLeft.gotoAndPlay("FireOn");
_root.benzin = _root.benzin - 1;
dim = _root.benzin / 500;
_root.fuel._width = 100 * dim;
}
}
if (Key.isDown(38)) {
if (0 < _root.benzin) {
dy = dy - 0.3;
_root.ship.FireBottom.gotoAndPlay("FireOn");
_root.benzin = _root.benzin - 2;
dim = _root.benzin / 500;
_root.fuel._width = 100 * dim;
}
}
if (_root.place1.hitTest(_x, _y + 22, 1)) {
if (1.8 < dy) {
play();
} else if (0.9 < Math.abs(dx)) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = 0;
dx = 0;
if (posadka != "2tochka") {
placeColor = new Color(_root.place1);
placeColor.setRGB(16711680);
placeColor = new Color(_root.place2);
placeColor.setRGB(65280);
posadka = "1tochka";
_root.marker_posadki._x = getProperty(_root.place2, _x);
_root.marker_posadki._y = getProperty(_root.place2, _y) - 50;
}
if (0 >= _root.benzin) {
_root.blank.play();
}
}
} else if (_root.place2.hitTest(_x, _y + 22, 1)) {
if (1.8 < dy) {
play();
} else if (0.9 < Math.abs(dx)) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = 0;
dx = 0;
if (posadka == "1tochka") {
placeColor = new Color(_root.place2);
placeColor.setRGB(16711680);
posadka = "2tochka";
_root.nextlevel._visible = 100;
_root.marker_posadki._visible = 0;
}
if (0 >= _root.benzin) {
_root.blank.play();
}
}
} else if (_root.place3.hitTest(_x, _y + 22, 1)) {
if (1.8 < dy) {
play();
} else if (0.9 < Math.abs(dx)) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = 0;
dx = 0;
if (posadka != "2tochka") {
placeColor = new Color(_root.place3);
placeColor.setRGB(16711680);
placeColor = new Color(_root.place4);
placeColor.setRGB(65280);
posadka = "1tochka";
_root.marker_posadki._x = getProperty(_root.place4, _x);
_root.marker_posadki._y = getProperty(_root.place4, _y) - 50;
}
if (0 >= _root.benzin) {
_root.blank.play();
}
}
} else if (_root.place4.hitTest(_x, _y + 22, 1)) {
if (1.8 < dy) {
play();
} else if (0.9 < Math.abs(dx)) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = 0;
dx = 0;
if (posadka == "1tochka") {
placeColor = new Color(_root.place4);
placeColor.setRGB(16711680);
posadka = "2tochka";
_root.nextlevel._visible = 100;
_root.marker_posadki._visible = 0;
}
if (0 >= _root.benzin) {
_root.blank.play();
}
}
} else if (_root.place5.hitTest(_x, _y + 22, 1)) {
if (1.8 < dy) {
play();
} else if (0.9 < Math.abs(dx)) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = 0;
dx = 0;
if (posadka != "2tochka") {
placeColor = new Color(_root.place5);
placeColor.setRGB(16711680);
placeColor = new Color(_root.place6);
placeColor.setRGB(65280);
posadka = "1tochka";
_root.marker_posadki._x = getProperty(_root.place6, _x);
_root.marker_posadki._y = getProperty(_root.place6, _y) - 50;
}
if (0 >= _root.benzin) {
_root.blank.play();
}
}
} else if (_root.place6.hitTest(_x, _y + 22, 1)) {
if (1.8 < dy) {
play();
} else if (0.9 < Math.abs(dx)) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = 0;
dx = 0;
if (posadka == "1tochka") {
placeColor = new Color(_root.place6);
placeColor.setRGB(16711680);
posadka = "2tochka";
_root.marker_posadki._visible = 0;
_root.utime = _root.Time;
_root.gotoAndStop(10);
}
if (0 >= _root.benzin) {
_root.blank.play();
}
}
} else if (_root.fuelstation.hitTest(_x, _y + 22, 1)) {
if (1.8 < dy) {
play();
} else if (0.9 < Math.abs(dx)) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = 0;
dx = 0;
if (_root.benzin < 500) {
_root.benzin = _root.benzin + 4;
dim = _root.benzin / 500;
_root.fuel._width = 100 * dim;
_root.fuelstation.play();
_root.alarm.play();
}
}
} else if (_root.ground.hitTest(_x, _y + 22, 1)) {
if (1.8 < dy) {
play();
} else if (0.9 < Math.abs(dx)) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = 0;
dx = 0;
if (0 >= _root.benzin) {
_root.blank.play();
}
}
} else if ((_root.ground.hitTest(_x, _y - 18, 1) || (_root.ground.hitTest(_x + 24, _y, 1))) || (_root.ground.hitTest(_x - 24, _y, 1))) {
play();
} else {
_x = (_x + (dx * 1.5));
_y = (_y + (dy * 1.3));
dy = dy + 0.07;
if (350 < _root.ship._y) {
play();
}
_rotation = (10 * dx);
if (500 < _root.ship._x) {
if (posadka == "2tochka") {
posadka = "none";
placeColor = new Color(_root.place1);
placeColor.setRGB(65280);
_root.marker_posadki._visible = 100;
_root.gotoAndPlay(_root._currentframe + 1);
_x = (_x - 500);
}
}
if (getProperty(_root.ship, _y) < 0) {
setProperty(_root.gorizont, _visible , 100);
} else {
setProperty(_root.gorizont, _visible , 0);
}
_root.gorizont._x = getProperty(_root.ship, _x);
vmarker = int(getProperty(_root.ship, _y) * -0.1);
if (500 < getProperty(_root.ship, _x)) {
setProperty(_root.gorizont_r, _visible , 100);
} else {
setProperty(_root.gorizont_r, _visible , 0);
}
_root.gorizont_r._y = getProperty(_root.ship, _y);
r_marker = int((getProperty(_root.ship, _x) - 500) * 0.1);
if (getProperty(_root.ship, _x) < 0) {
setProperty(_root.gorizont_l, _visible , 100);
} else {
setProperty(_root.gorizont_l, _visible , 0);
}
_root.gorizont_l._y = getProperty(_root.ship, _y);
l_marker = int(getProperty(_root.ship, _x) * -0.1);
}
}
Instance of Symbol 107 MovieClip "fuel" in Frame 6
/* no clip actions */
Instance of Symbol 110 MovieClip "gorizont" in Frame 6
/* no clip actions */
Instance of Symbol 122 MovieClip in Frame 6
onClipEvent (enterFrame) {
_root.count = getTimer();
t = _root.count - _root.tlavel;
s = int(t / 1000);
m = int(t / 60000);
h = int(t / 3600000);
if (59 < s) {
s = s - (m * 60);
}
if (s < 10) {
s = "0" + s;
}
if (59 < m) {
m = m - (h * 60);
}
if (m < 10) {
m = "0" + m;
}
if (h < 10) {
h = "0" + h;
}
g = String(t);
milstring = g.length;
mil = g.substring(milstring - 2, milstring);
_root.Time = (((m + ":") + s) + ":") + mil;
}
Frame 7
_root.nextlevel._visible = 0;
_root.marker_posadki._x = getProperty(_root.place3, _x);
_root.marker_posadki._y = getProperty(_root.place3, _y) - 50;
stop();
Frame 8
_root.nextlevel._visible = 0;
_root.marker_posadki._x = getProperty(_root.place3, _x);
_root.marker_posadki._y = getProperty(_root.place3, _y) - 50;
stop();
Frame 9
_root.nextlevel._visible = 0;
_root.marker_posadki._x = getProperty(_root.place3, _x);
_root.marker_posadki._y = getProperty(_root.place3, _y) - 50;
stop();
Frame 10
_root.nextlevel._visible = 0;
_root.marker_posadki._x = getProperty(_root.place3, _x);
_root.marker_posadki._y = getProperty(_root.place3, _y) - 50;
stop();
Frame 11
_root.nextlevel._visible = 0;
_root.marker_posadki._x = getProperty(_root.place3, _x);
_root.marker_posadki._y = getProperty(_root.place3, _y) - 50;
stop();
Frame 12
_root.nextlevel._visible = 0;
_root.marker_posadki._x = getProperty(_root.place3, _x);
_root.marker_posadki._y = getProperty(_root.place3, _y) - 50;
stop();
Frame 13
_root.nextlevel._visible = 0;
_root.marker_posadki._x = getProperty(_root.place5, _x);
_root.marker_posadki._y = getProperty(_root.place5, _y) - 50;
stop();
Instance of Symbol 140 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (hitTest(_root.ship)) {
_root.gotoAndStop("end");
}
}
Frame 14
stop();
Frame 15
stop();
Symbol 19 Button
on (release, keyPress "<Enter>") {
_root.tlavel = getTimer();
gotoAndStop (6);
}
Symbol 59 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
_x = 50;
_y = 50;
dy = 1;
dx = 0;
rot = 0;
stop();
Symbol 90 MovieClip Frame 51
_root.crashcount = _root.crashcount + 1;
if (_root.crashcount == 1) {
_root.crashone._visible = 0;
}
if (_root.crashcount == 2) {
_root.crashtwo._visible = 0;
}
if (_root.crashcount == 3) {
_root.crashthre._visible = 0;
_root.gotoAndStop("die");
}
_root.benzin = 300;
dim = _root.benzin / 500;
_root.fuel._width = 100 * dim;
gotoAndPlay (1);
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 40
_root.crashcount = _root.crashcount + 1;
if (_root.crashcount == 1) {
_root.crashone._visible = 0;
}
if (_root.crashcount == 2) {
_root.crashtwo._visible = 0;
}
if (_root.crashcount == 3) {
_root.crashthre._visible = 0;
_root.gotoAndPlay(4);
}
_root.benzin = 100;
dim = _root.benzin / 200;
_root.fuel._width = 100 * dim;
_root.ship._x = 50;
_root.ship._y = 50;
_root.ship.dy = 1;
_root.ship.dx = 0;
_root.ship.rot = 0;
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 146 Button
on (release, keyPress "<Enter>") {
_root.tlavel = _root.count;
gotoAndPlay (6);
}