Frame 1
function tip() {
bmpd.scroll((-speed) * multbmp, 0);
bmpd.colorTransform(bmpd.rectangle, darkness);
bmpd.applyFilter(bmpd, bmpd.rectangle, point0, filt);
bmpd.draw(dvig, mat, coltrans, "normal", bmpd.rectangle, true);
}
function run() {
deltax = deltax + ((tx - dvig.rd._x) / 20);
deltay = deltay + ((ty - dvig.rd._y) / 20);
deltax = deltax * 0.9;
deltay = deltay * 0.9;
dvig.rd._x = dvig.rd._x + deltax;
dvig.rd._y = dvig.rd._y + deltay;
if (dvig.rd._x > (poleX - 50)) {
dvig.rd._x = poleX - 50;
}
var _local5 = (dvig.rd._x - rd._x) + speed;
var _local4 = dvig.rd._y - rd._y;
dvig.rd._xscale = Math.sqrt((_local5 * _local5) + (_local4 * _local4)) + 5;
dvig.rd._rotation = (Math.atan2(_local4, _local5) * 180) / Math.PI;
rd._x = dvig.rd._x;
rd._y = dvig.rd._y;
var _local3 = dvig.rd._rotation - rd._rotation;
if (_local3 > 180) {
_local3 = _local3 - 360;
}
if (_local3 < -180) {
_local3 = _local3 + 360;
}
deltar = deltar + (_local3 / 8);
deltar = deltar * 0.8;
rd._rotation = rd._rotation + deltar;
rd.rd.gotoAndStop(-Math.floor(deltar - 20));
out.text = speed;
dvig.blik._x = (dvig.rd._x + (Math.random() * 40)) - 20;
dvig.blik._y = (dvig.rd._y + (Math.random() * 40)) - 20;
dvig.bzz._y = (Math.random() * poleY) - 150;
dvig.bzz._x = poleX;
fon._y = ((-(rd._y - (poleY / 2))) / 4) + (poleY / 2);
water._y = (water2._y = ((-(rd._y - (poleY / 2))) / 3) + (poleY / 2));
if (speed < 240) {
water._x = water._x - speed;
}
if (water._x <= 240) {
water._x = water._x + (Math.round(240 / speed) * speed);
}
yey = deltay < -20;
if (spl_time > 0) {
spl_time--;
}
if ((((rd._y > 575) && (rd._y < 625)) || ((deltay > 50) && (rd._y > 575))) && (spl_time <= 0)) {
spl_time = 10;
var _local2 = water2.attachMovie("spl", "spl" + Math.floor(Math.random() * 10000), water2.getNextHighestDepth());
_local2._x = rd._x + 30;
_local2._y = 350;
_local2._yscale = (_local2._yscale = ((Math.random() * 40) + 40) + Math.abs(deltay));
_local2._yscale = _local2._yscale + (Math.abs(deltay) / 3);
}
klip = false;
if (rd._y > 600) {
if (speed > osnspeed) {
speed = Math.floor(speed - (speed / 10));
dash();
}
klip = true;
if (mok < 100) {
mok = mok + 5;
}
if (rd._y > 625) {
var _local2 = part.attachMovie("puz", "kap" + Math.floor(Math.random() * 10000), part.getNextHighestDepth());
_local2._x = (rd._x + (Math.random() * 100)) - 50;
_local2._y = (rd._y + (Math.random() * 40)) - 20;
}
} else if (mok > 0) {
mok--;
if ((Math.random() * 50) < mok) {
var _local2 = part.attachMovie("kap", "kap" + Math.floor(Math.random() * 10000), part.getNextHighestDepth());
_local2._x = rd._x;
_local2._y = rd._y;
}
}
zzz++;
if (((zzz > 200) && ((zzz % 3) == 0)) && ((zzz % 37) < 10)) {
var _local2 = part.attachMovie("zz", "kap" + Math.floor(Math.random() * 10000), part.getNextHighestDepth());
_local2._x = rd._x;
_local2._y = rd._y;
}
if (acceleration && (bubuh <= 0)) {
zzz = 0;
speed = speed + 4;
dash();
if (otbros > 0) {
otbros++;
}
} else if (speed > osnspeed) {
if (sonic > 0) {
speed = Math.floor(speed - (speed / 200));
} else {
speed = Math.floor(speed - (speed / 80));
}
if (otbros > 0) {
otbros = otbros - 4;
}
dash();
}
rd.konus._visible = ((speed > minkspeed) && (sonic <= 0)) && (bubuh <= 0);
if (speed > minkspeed) {
rd.konus._alpha = (speed - minkspeed) / 10;
rd.konus._yscale = 100 - ((speed - minkspeed) / 14);
rd.konus._xscale = 100 + ((speed - minkspeed) / 3);
}
if (((speed > turbospeed) && (sonic <= 0)) && (bubuh <= 0)) {
ddt = turbospeed - speed;
if ((otbros <= 0) && (Math.random() < ((-ddt) / 12000))) {
otbros = 1;
}
if (otbros > 0) {
ddt = ddt * (otbros / 10);
tx = (this._xmouse + (Math.random() * ddt)) - (ddt / 2);
ty = (this._ymouse + (Math.random() * ddt)) - (ddt / 2);
}
}
if ((otbros >= 30) && (speed > turbospeed)) {
bubuh = 30;
speed = speed - 100;
tx = this._xmouse - 500;
deltar = -120;
}
if (speed >= maxspeed) {
acceleration = false;
sonic = 500;
babah.play();
}
if (sonic > 0) {
sonic--;
}
if (bubuh > 0) {
bubuh--;
}
}
function sky(r) {
fon.den._visible = (r >= 90) && (r < 270);
fon.noch._visible = !fon.den._visible;
if ((r >= 60) && (r < 90)) {
fon.zakat._alpha = (r - 60) * 4;
}
if ((r >= 90) && (r < 120)) {
fon.zakat._alpha = (120 - r) * 4;
}
if ((r >= 240) && (r < 270)) {
fon.zakat._alpha = (r - 240) * 4;
}
if ((r >= 270) && (r < 300)) {
fon.zakat._alpha = (300 - r) * 4;
}
}
function dash() {
water.filters = [new flash.filters.BlurFilter(Math.min(speed / 2, 100), 2, 3)];
filt = new flash.filters.BlurFilter((speed / 2) * multbmp, 3 * multbmp, 1);
}
function playsound() {
b_play._visible = false;
snd = new Sound();
snd.attachSound("pd");
snd.start();
}
stop();
var speed = ((osnspeed = 30));
var minkspeed = 200;
var maxspeed = 1200;
var turbospeed = 400;
var sonic = 0;
var bubuh = 0;
var otbros = 0;
var vremya = 90;
poleX = 960;
poleY = 720;
var multbmp = 0.5;
bmpd = new flash.display.BitmapData((poleX + (speed * 2)) * multbmp, poleY * multbmp, false, 0);
mat = new flash.geom.Matrix();
mat.scale(multbmp, multbmp);
mat2 = new flash.geom.Matrix();
mat2.c = Math.PI;
coltrans = new flash.geom.ColorTransform();
var tod = 0.02;
darkness = new flash.geom.ColorTransform(1 - tod, 1 - tod, 1 - (tod / 2), 1, 0, 0, 0, 0);
var filt = (new flash.filters.BlurFilter(15 * multbmp, 3 * multbmp, 1));
point0 = new flash.geom.Point(0, 0);
rect = new flash.geom.Rectangle(0, 0, poleX, poleY);
var mc = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.attachBitmap(bmpd, this.getNextHighestDepth(), "auto", true);
mc._xscale = (mc._yscale = 100 / multbmp);
mc.blendMode = "screen";
mc.swapDepths(dvig);
dvig._visible = false;
var tx = rd._x;
var ty = rd._y;
var deltax = 0;
var deltay = 0;
var deltar = 0;
var odeltar;
var mok = 0;
var klip = false;
var yey = false;
var zzz = 0;
onEnterFrame = function () {
if (!sndLoaded) {
var _local2 = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_local2 >= 100) {
sndLoaded = true;
gotoAndStop (2);
b_play.onRelease = playsound;
}
perc.text = ("Loading " + _local2) + " %";
}
tip();
run();
};
onMouseMove = function () {
tx = this._xmouse;
ty = this._ymouse;
zzz = 0;
};
onMouseDown = function () {
if (sonic <= 0) {
acceleration = true;
}
};
onMouseUp = function () {
acceleration = false;
};
var sndLoaded = false;
var snd;
Symbol 8 MovieClip [zz] Frame 1
u = Math.random() * 360;
r = (Math.random() * 5) + 5;
this.dx = Math.sin((u * Math.PI) / 180) * r;
this.dy = Math.cos((u * Math.PI) / 180) * r;
this.liv = (Math.random() * 20) + 10;
this._xscale = (this._yscale = (Math.random() * 60) + 20);
_rotation = ((Math.random() * 20) - 10);
onEnterFrame = function () {
this._x = this._x + (this.dx - (_root.speed / 2));
this._y = this._y + this.dy;
this.dy--;
this.liv--;
if (this.liv < 10) {
this._alpha = this.liv * 10;
}
if (this.liv < 0) {
this.removeMovieClip();
}
};
Symbol 10 MovieClip [puz] Frame 1
u = Math.random() * 360;
r = Math.random() * 5;
this.dx = Math.sin((u * Math.PI) / 180) * r;
this.dy = Math.cos((u * Math.PI) / 180) * r;
this.liv = (Math.random() * 30) + 10;
this._xscale = (this._yscale = (Math.random() * 60) + 10);
_rotation = ((Math.random() * 20) - 10);
onEnterFrame = function () {
this._x = this._x + (this.dx - _root.speed);
this._y = this._y + this.dy;
this.dx = this.dx * 0.95;
this.dy = this.dy - 0.95;
this.liv--;
if ((this.liv < 0) || (this._y < 600)) {
this.removeMovieClip();
}
};
Symbol 12 MovieClip [kap] Frame 1
u = Math.random() * 360;
r = Math.random() * 5;
this.dx = Math.sin((u * Math.PI) / 180) * r;
this.dy = Math.cos((u * Math.PI) / 180) * r;
this.liv = (Math.random() * 30) + 10;
this._xscale = (this._yscale = (Math.random() * 80) + 20);
_rotation = ((Math.random() * 20) - 10);
onEnterFrame = function () {
this._x = this._x + (this.dx - _root.speed);
this._y = this._y + this.dy;
this.dx = this.dx * 0.95;
this.dy = this.dy + 0.95;
this.liv--;
if (this.liv < 0) {
this.removeMovieClip();
}
};
Symbol 33 MovieClip [spl] Frame 1
onEnterFrame = function () {
this._x = this._x - _root.speed;
};
Symbol 33 MovieClip [spl] Frame 21
this.removeMovieClip();
Symbol 52 MovieClip Frame 9
if (_root.acceleration) {
gotoAndPlay (12);
} else {
gotoAndPlay (1);
}
Symbol 52 MovieClip Frame 14
if (_root.acceleration) {
gotoAndPlay (12);
} else {
gotoAndPlay (1);
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 10
gotoAndStop (1);
Symbol 92 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 1
onEnterFrame = function () {
morda.gotoAndStop(1);
eye.gotoAndStop((_root.klip ? 3 : 1));
if (_root.yey && (morda._currentframe == 1)) {
morda.gotoAndPlay(2);
}
if (_root.zzz > 150) {
eye.gotoAndStop(4);
morda.gotoAndPlay(9);
}
if (_root.acceleration) {
eye.gotoAndStop(2);
if (_root.speed > _root.turbospeed) {
morda.gotoAndStop(11);
}
}
};
Symbol 104 MovieClip Frame 1
var i = 0;
while (i < 400) {
s = this.attachMovie("star", "s" + i, i);
s._x = (Math.random() * _root.poleX) - (_root.poleX / 2);
s._y = (((Math.random() * Math.random()) * _root.poleY) / 2) - (_root.poleY / 2);
s.gotoAndStop(Math.floor((Math.random() * s._totalframes) + 1));
var xs = Math.random();
s.blendMode = "screen";
s._xscale = (s._yscale = (s._alpha = (xs * xs) * 100));
i++;
}
Symbol 110 MovieClip Frame 1
dx = Math.random();
_x = (Math.random() * _root.poleX);
y = Math.random() * (_root.poleY - 200);
_yscale = ((Math.random() * 100) + 50);
_xscale = ((Math.random() * 100) + 50);
this.cacheAsBitmap = true;
obl.gotoAndStop(Math.floor((Math.random() * obl._totalframes) + 1));
_alpha = ((Math.random() * 50) + 50);
var color2 = new Color(this);
var val = 0.5;
onEnterFrame = function () {
_x = (_x - (dx + (_root.speed / 12)));
_y = (y - ((_root.rd._y - (_root.poleY / 2)) / 4));
if (_x < (-(_width / 2))) {
_x = (((_root.poleX + (Math.random() * 200)) + 200) + (_width / 2));
dx = Math.random();
y = Math.random() * (_root.poleY - 200);
_yscale = ((Math.random() * 100) + 50);
_xscale = ((Math.random() * 100) + 50);
obl.gotoAndStop(Math.floor((Math.random() * obl._totalframes) + 1));
_alpha = ((Math.random() * 50) + 50);
}
};
Symbol 115 MovieClip Frame 1
stop();