Frame 3
fscommand ("trapallkeys", "true");
fscommand ("showmenu", "false");
Stage.showMenu = false;
Frame 4
whereTo = "gra";
Frame 10
stop();
lives = 25;
score = 0;
render = true;
koniec = false;
miasto.gotoAndStop("test");
this.onEnterFrame = function () {
napis = ((((("Level: " + (_currentframe - 9)) + " / 25") + " Score: ") + score) + " Lives: ") + lives;
if ((lives == 0) && (render == true)) {
koniec = true;
render = false;
gotoAndStop (4);
}
if (render == true) {
score = ((_currentframe - 9) * 100) + lives;
jumper._x = jumper._x + 3;
}
if (jumper._x >= 600) {
nextFrame();
jumper._x = 0;
background._x = random(1800) - 600;
}
i = 0;
while (i < 20) {
var reff = eval ("obstacle" + i);
reff.onEnterFrame = function () {
if (this.hitTest(jumper)) {
jumper._alpha = 50;
jumper.stop();
jumper.jumperbody.play();
render = false;
}
};
i++;
}
};
Frame 35
render = false;
Symbol 7 MovieClip Frame 1
setProperty(this, _xscale , (_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
Symbol 9 MovieClip Frame 1
loadin = _parent.getBytesLoaded();
percent = ("loading " + math.round((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100)) + "%";
bajty = ((math.round(_parent.getBytesLoaded() / 1024) + "Kb/") + math.round(_parent.getBytesTotal() / 1024)) + "Kb";
Symbol 9 MovieClip Frame 2
if (_parent.getBytesLoaded() != _parent.getBytesTotal()) {
gotoAndPlay (1);
_parent.gotoAndPlay(1);
}
Symbol 17 MovieClip Frame 1
stop();
Symbol 21 Button
on (rollOver) {
_parent._parent.opis.gotoAndStop(2);
}
on (rollOut) {
_parent._parent.opis.gotoAndStop(1);
}
on (press, keyPress "<Space>") {
_parent._parent._parent._parent.gotoAndStop("gra");
}
Symbol 24 Button
on (rollOver) {
_parent._parent.opis.gotoAndStop(5);
}
on (rollOut) {
_parent._parent.opis.gotoAndStop(1);
}
on (press) {
_parent._parent._parent.gotoAndPlay("credits");
}
Symbol 27 Button
on (rollOver) {
_parent._parent.opis.gotoAndStop(3);
}
on (rollOut) {
_parent._parent.opis.gotoAndStop(1);
}
on (press) {
_parent._parent._parent.gotoAndPlay("scores");
}
Symbol 30 Button
on (rollOver) {
_parent._parent.opis.gotoAndStop(4);
}
on (rollOut) {
_parent._parent.opis.gotoAndStop(1);
}
on (press) {
_parent._parent._parent.gotoAndPlay("instr");
}
Instance of Symbol 23 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 4;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Instance of Symbol 26 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 4;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Instance of Symbol 29 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 4;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Instance of Symbol 32 MovieClip in Symbol 33 MovieClip Frame 1
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 4;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Instance of Symbol 33 MovieClip "menu" in Symbol 34 MovieClip Frame 1
onClipEvent (load) {
X = this._x;
Y = this._y;
}
onClipEvent (mouseMove) {
Xm = _parent._xmouse;
Ym = _parent._ymouse;
Xdiff = Xm - X;
Ydiff = Ym - Y;
radAngle = Math.atan2(Ydiff, Xdiff);
this._rotation = ((-radAngle) * 360) / (Math.PI*2);
updateAfterEvent();
}
Symbol 78 Button
on (release) {
play();
}
Symbol 81 MovieClip Frame 1
name1 = _parent.name;
Symbol 82 MovieClip Frame 1
stop();
scoretable.filename = "scores/runrun.sco";
scoretable.scoresize = 10;
scoretable.action = "VIEW";
scoretable.viewtype = "FLASH";
scoretable.winname = name;
scoretable.winscore = score;
scoretable.loadVariables("http://www.rewolucje.com/games/rezultaty/scores.php", "POST");
if (_parent.zapis == true) {
gotoAndStop (5);
}
Symbol 82 MovieClip Frame 5
stop();
score = _root.score;
_parent.zapis = false;
Symbol 82 MovieClip Frame 11
scoretable.filename = "scores/runrun.sco";
scoretable.scoresize = 10;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = name;
scoretable.winscore = score;
scoretable.loadVariables("http://www.rewolucje.com/games/rezultaty/scores.php", "POST");
Symbol 84 Button
on (press) {
_parent.a = 1;
_parent.zapis = false;
_parent._parent.koniec = false;
}
Symbol 91 Button
on (release) {
getURL ("mailto:skutnik@o2.pl");
}
Symbol 95 Button
on (release) {
getURL ("http://www.skutnik.flashmilk.pl", "_blank");
}
Symbol 104 Button
on (release) {
zapis = true;
_parent.whereTo = "menu";
_parent.warp.play();
play();
}
Symbol 110 Button
on (release) {
_parent.gotoAndStop("gra");
}
Symbol 112 MovieClip Frame 1
stop();
_parent.stop();
a = 0;
this.onEnterFrame = function () {
if (a == 1) {
prevFrame();
}
};
if (_parent.koniec == true) {
gotoAndStop (51);
}
if (_parent.restart == true) {
_parent.gotoAndStop("gra");
}
Symbol 112 MovieClip Frame 9
menu._visible = true;
Symbol 112 MovieClip Frame 12
stop();
menu._visible = false;
Instance of Symbol 86 MovieClip in Symbol 112 MovieClip Frame 12
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 2;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Symbol 112 MovieClip Frame 18
gotoAndStop (1);
Symbol 112 MovieClip Frame 25
menu._visible = true;
Symbol 112 MovieClip Frame 26
menu._visible = false;
Symbol 112 MovieClip Frame 29
stop();
Instance of Symbol 86 MovieClip in Symbol 112 MovieClip Frame 29
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 2;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Instance of Symbol 92 MovieClip in Symbol 112 MovieClip Frame 29
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 2;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Instance of Symbol 96 MovieClip in Symbol 112 MovieClip Frame 29
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 2;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Symbol 112 MovieClip Frame 36
gotoAndStop (1);
Symbol 112 MovieClip Frame 43
menu._visible = true;
Symbol 112 MovieClip Frame 44
menu._visible = false;
Symbol 112 MovieClip Frame 47
stop();
Instance of Symbol 86 MovieClip in Symbol 112 MovieClip Frame 47
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 2;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Symbol 112 MovieClip Frame 50
gotoAndStop (1);
Symbol 112 MovieClip Frame 51
_parent.koniec = false;
napiScore2 = ("You scored " + _parent.score) + " points.";
Instance of Symbol 86 MovieClip in Symbol 112 MovieClip Frame 51
onClipEvent (load) {
k = 0.1;
damp = 0.8;
orgzx = _width;
orgzy = _height;
zx = _width;
zy = _height;
lower = _x - (_width * 0.5);
higher = _x + (_width * 0.5);
bottom = _y + (_height * 0.5);
top = _y - (_height * 0.5);
scale = 2;
}
onClipEvent (enterFrame) {
inside = (_parent._xmouse >= lower) && (_parent._xmouse <= higher);
outside = (_parent._xmouse < lower) || (_parent._xmouse > higher);
func = (_parent._ymouse < top) || (_parent._ymouse > bottom);
if (inside) {
zx = orgzx * scale;
zy = orgzy * scale;
}
if (outside) {
zx = orgzx;
zy = orgzy;
}
if (func) {
zx = orgzx;
zy = orgzy;
}
ax = (zx - _width) * k;
vx = vx + ax;
vx = vx * damp;
_width = (_width + vx);
ay = (zy - _height) * k;
vy = vy + ay;
vy = vy * damp;
_height = (_height + vy);
}
Symbol 112 MovieClip Frame 60
gotoAndStop (12);
Symbol 122 Button
on (keyPress "<Space>") {
gotoAndPlay (2);
}
on (keyPress "<Up>") {
gotoAndPlay (52);
}
Symbol 128 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_parent._parent._currentframe == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 30
_root.render = true;
_root.lives--;
_root.jumper._x = 0;
_root.jumper._alpha = 100;
_parent.gotoAndStop(1);
Symbol 134 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (_parent.render == false) {
stop();
}
};
Symbol 134 MovieClip Frame 51
gotoAndStop (1);
Symbol 141 Button
on (keyPress "p") {
a = true;
}
Symbol 142 Button
on (keyPress "p") {
a = false;
}
Symbol 143 MovieClip Frame 1
stop();
_parent.render = true;
if (_parent.jumper._currentframe != 1) {
_parent.jumper.play();
}
a = false;
this.onEnterFrame = function () {
if (a == true) {
nextFrame();
_parent.render = false;
} else {
prevFrame();
}
};
Symbol 147 Button
on (release) {
gotoAndStop (4);
}
Symbol 171 MovieClip Frame 1
napis2 = ("Your score: " + _parent.score) + " points.";
Symbol 171 MovieClip Frame 175
_parent.koniec = true;
_parent.gotoAndStop("menu");