Frame 1
var soundList = new Array("amb1", "portalSnd", "pressBtnSound", "coinSound", "newLevelSound", "resetSound", "switchSound1", "switchSound2", "pushMeSound", "enemySound", "bombSound", "springSound");
gameName = "Calligraphic";
authorInfo = "\u00A9 Mateusz Skutnik";
miesiac = "September";
rok = "2009";
gameWidth = 500;
gameHeight = 500;
goLive = true;
authorLink = "http://www.mateuszskutnik.com";
commentLink = "http://www.mateuszskutnik.com/archive/calligraphic/";
moreGamesLink = "http://www.mateuszskutnik.com/more.php/";
footer = ((((((((("<p align='center'>" + gameName) + " | <u><a href='") + authorLink) + "' target='_blank'>") + authorInfo) + "</a></u> | ") + miesiac) + " ") + rok) + "</p>";
footerRGB = 0;
stop();
_global.root = this;
Stage.showMenu = false;
Stage.scaleMode = "noScale";
fscommand ("showmenu", "false");
fscommand ("trapallkeys", true);
Button.prototype.tabEnabled = false;
MovieClip.prototype.tabEnabled = false;
load_to = "menu";
_quality = "BEST";
przechodzimy = false;
pauseActive = false;
musicOn = true;
sfxOn = true;
var shadowJasny = (new flash.filters.DropShadowFilter(5, 45, 0, 0.8, 5, 10, 1, 1, false, false, false));
var shadowCiemny = (new flash.filters.DropShadowFilter(5, 45, 0, 5, 5, 10, 5, 5, false, false, false));
var glow = (new flash.filters.GlowFilter(16777215, 100, 3, 3, 2, 100, false, false));
deadClick = function () {
createCustomMenu();
};
quitCM = function () {
przejscie("loose");
};
toggleMusic = function () {
if (musicOn) {
stopAllSounds();
musicOn = false;
} else {
musicOn = true;
}
createCustomMenu();
};
toggleSfx = function () {
if (sfxOn) {
sfxOn = false;
} else {
sfxOn = true;
}
createCustomMenu();
};
toggleQuality = function () {
if (_quality == "BEST") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "HIGH";
} else if (_quality == "HIGH") {
_quality = "BEST";
}
createCustomMenu();
};
pastel = function () {
getURL ("http://www.pastelstories.com", "_blank");
};
koment = function () {
getURL (commentLink, "_blank");
};
createFooter = function () {
this.createTextField("footerTXT", 1, 0, gameHeight - 20, gameWidth, 20);
footerTXT.selectable = false;
footerTXT.html = true;
footerTXT.htmlText = footer;
var _local2 = new TextFormat();
_local2.color = footerRGB;
_local2.align = "center";
_local2.font = "Arial";
_local2.size = 10;
footerTXT.setTextFormat(_local2);
};
MovieClip.prototype.drawRectangle = function (w, h, alfa) {
var _local2 = this.createEmptyMovieClip("s1", 1);
_local2.beginFill(0, alfa);
_local2.moveTo(0, 0);
_local2.lineTo(w, 0);
_local2.lineTo(w, h);
_local2.lineTo(0, h);
_local2.endFill();
};
link = function (jakiLink) {
if (goLive) {
getURL (jakiLink, "_blank");
}
};
przejscie = function (gdzie) {
przejscieDest = gdzie;
if (!przechodzimy) {
przechodzimy = true;
this.createEmptyMovieClip("przejscieMC", 1000002);
przejscieMC.drawRectangle(gameWidth, gameHeight, 100);
przejscieMC._alpha = 1;
przejscieMC.dissolve = false;
przejscieMC.onEnterFrame = przejscieEF;
}
};
przejscieEF = function () {
if (!this.dissolve) {
this._alpha = this._alpha + 15;
} else {
this._alpha = this._alpha - 15;
}
if (this._alpha >= 140) {
if (pauseMC._visible) {
removeMovieClip(pauseMC);
pauseActive = false;
}
root.gotoAndStop(root.przejscieDest);
this.dissolve = true;
}
if (this._alpha <= 0) {
root.przechodzimy = false;
delete this.onEnterFrame;
removeMovieClip(this);
}
};
moveOn = function () {
clearInterval(moveOnInt);
przejscie(moveOnDest);
};
_global.sfx = function (co) {
if (sfxOn) {
root[co].start();
}
};
_global.amb = function (ktory) {
eval (ktory).start();
ktoryAmbient = eval (ktory);
ktoryAmbient.onSoundComplete = function () {
this.start();
};
};
ataczSounds = function () {
i = 0;
while (i < soundList.length) {
this[soundList[i]] = new Sound(this);
this[soundList[i]].attachSound(soundList[i]);
i++;
}
};
Frame 15
gramy = false;
createCustomMenu();
createFooter();
ataczSounds();
sfxOn = true;
b1.napis = "play";
b1.onPress = function () {
sfx("pressBtnSound");
przejscie("levelPick");
};
b2.napis = "comment";
b2.onRelease = function () {
sfx("pressBtnSound");
link(commentLink);
};
b3.napis = "highscores";
b3.onPress = function () {
var _local2 = {n:[9, 3, 14, 2, 9, 14, 8, 13, 0, 14, 1, 3, 14, 7, 10, 9], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var _local3 = _local2.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:_local3});
sfx("pressBtnSound");
przejscie("hs");
};
b4.napis = "about the game";
b4.onPress = function () {
sfx("pressBtnSound");
przejscie("instr");
};
b5.napis = "my other games";
b5.onPress = function () {
sfx("pressBtnSound");
link(moreGamesLink);
};
b6.napis = "add to your website";
b6.onPress = function () {
sfx("pressBtnSound");
link(addToSiteLink);
};
rollOverBtn = function () {
sfx("coinSound");
this.skala = 135;
};
rollOutBtn = function () {
this.skala = 100;
};
scaleMe = function () {
if (this.skala != null) {
this._xscale = this._xscale + ((this.skala - this._xscale) * 0.2);
this._yscale = this._yscale + ((this.skala - this._yscale) * 0.2);
}
};
i = 1;
while (i < 10) {
eval ("b" + i).onRollOver = rollOverBtn;
eval ("b" + i).onRollOut = rollOutBtn;
eval ("b" + i).onEnterFrame = scaleMe;
i++;
}
enemySound.onSoundComplete = function () {
enemySoundPlaying = false;
};
pushMeSound.onSoundComplete = function () {
pushMeSoundPlaying = false;
};
Frame 21
gramy = false;
createCustomMenu();
createFooter();
b1.napis = "back to menu";
b1.onPress = function () {
sfx("pressBtnSound");
przejscie("menu");
};
i = 1;
while (i < 10) {
eval ("b" + i).onRollOver = rollOverBtn;
eval ("b" + i).onRollOut = rollOutBtn;
eval ("b" + i).onEnterFrame = scaleMe;
i++;
}
Frame 26
gramy = false;
createFooter();
b1.napis = "save score";
if (score > 0) {
b1.onPress = function () {
sfx("pressBtnSound");
przejscie("yn");
};
} else {
b1.enabled = false;
b1._alpha = 60;
}
b2.napis = "try again";
b2.onPress = function () {
sfx("pressBtnSound");
przejscie("levelPick");
};
b3.napis = "back to menu";
b3.onPress = function () {
sfx("pressBtnSound");
przejscie("menu");
};
i = 1;
while (i < 10) {
eval ("b" + i).onRollOver = rollOverBtn;
eval ("b" + i).onRollOut = rollOutBtn;
eval ("b" + i).onEnterFrame = scaleMe;
i++;
}
if (levelEnabled == 30) {
levelsTXT = "level reached: all of them. Congratulations!";
} else {
levelsTXT = ("level reached: " + levelEnabled) + "/30";
}
scoreTXT = "score: " + score;
Frame 35
saveLevel = SharedObject.getLocal("saveData");
if (saveLevel.data.nr == undefined) {
levelEnabled = 1;
} else {
levelEnabled = saveLevel.data.nr;
}
normalizeMe = function (co) {
sfx("pressBtnSound");
eval (co).skala = 100;
};
pickLevelPress = function () {
sfx("pressBtnSound");
levelJumpNr = this.napis;
amb("amb1");
przejscie("gra");
};
i = 1;
while (i < 40) {
if (i <= levelEnabled) {
eval ("b" + i).onRollOver = rollOverBtn;
eval ("b" + i).onRollOut = rollOutBtn;
eval ("b" + i).onPress = pickLevelPress;
eval ("b" + i).onEnterFrame = scaleMe;
} else {
eval ("b" + i)._alpha = 40;
}
i++;
}
Frame 43
gramy = true;
createCustomMenu();
stop();
minutes = 0;
seconds = 0;
miliseconds = 0;
reset = function () {
pushOffset = 20;
score = 0;
gramy = true;
granicaPrawa = 485;
granicaLewa = 18;
grawitacja = 0;
pozioma = 0;
hamulec = 0.5;
krok = 4;
lvl = 1;
silaSkoku = 12;
n = 1;
A = 1;
horizontalForce = 0;
enemySoundPlaying = false;
pushMeSoundPlaying = false;
};
reset();
newLevel = function () {
oldX = hero._x;
oldY = hero._y;
pushMeX = pushMe._x;
pushMeY = pushMe._y;
bad1X = bad1._x;
bad2X = bad2._x;
bad3X = bad3._x;
bad4X = bad4._x;
bad5X = bad5._x;
gra_tlo._rotation = gra_tlo._rotation + 90;
oldScore = score;
czekLevelAdvance();
};
newLevel();
this.onEnterFrame = function () {
levelNapis = ("level: " + lvl) + "/30";
napis = "score: " + score;
if (gramy == true) {
hero._x = hero._x + pozioma;
pozioma = pozioma * hamulec;
if (Key.isDown(39) && (horizontalForce < 6)) {
pozioma = pozioma + krok;
if (hero.tester.hitTest(pushMe.tester) && (hero._x <= pushMe._x)) {
pushMe._x = pushMe._x + pozioma;
stoneSound.play();
}
}
if (Key.isDown(37) && (horizontalForce > -6)) {
pozioma = pozioma - krok;
if (hero.tester.hitTest(pushMe.tester) && (hero._x >= pushMe._x)) {
pushMe._x = pushMe._x + pozioma;
stoneSound.play();
}
}
if (hero._x >= granicaPrawa) {
hero._x = granicaPrawa;
}
if (hero._x <= granicaLewa) {
hero._x = granicaLewa;
}
if (grawitacja == 1) {
hero.gotoAndStop(1);
}
if (grawitacja >= 1) {
hero.gotoAndStop(3);
}
grawitacja++;
if (grawitacja >= 30) {
grawitacja = 30;
}
hero._y = hero._y + grawitacja;
i = 0;
while (i < 30) {
if (hero.tester.hitTest(eval ("bad" + i))) {
if ((enemySoundPlaying == false) && (eval ("bad" + i)._visible == true)) {
sfx("enemySound");
enemySoundPlaying = true;
}
}
czek = eval ("platform" + i);
czek.onEnterFrame = function () {
if ((this.tester.hitTest(hero.tester) && (grawitacja >= 0)) && (hero._y <= this._y)) {
grawitacja = -1;
hero._y = this._y - 20;
hero.gotoAndStop(1);
if (this._height >= 35) {
if (this.hitTest(hero) && (this.jedziemy)) {
hero._x = hero._x + this.velocity;
hero._y = hero._y + this.velocity2;
hero.gotoAndStop(1);
}
}
}
if (this.hitTest(pushMe.tester)) {
pushMe.fall = false;
pushMe._y = this._y;
} else {
pushMe.fall = true;
}
if ((this.tester.hitTest(hero.tester) && (grawitacja < 0)) && (hero._y >= this._y)) {
grawitacja = 0;
}
};
i++;
}
if (Key.isDown(38) && (hero._currentframe == 1)) {
hero._y = hero._y - 15;
grawitacja = -silaSkoku;
hero.gotoAndStop(2);
}
i = 0;
while (i < 20) {
var gem = eval ("coin" + i);
gem.onEnterFrame = function () {
if (this.hitTest(hero.tester) && (this._visible == true)) {
score = score + 125;
sfx("coinSound");
this._visible = false;
}
};
i++;
}
i = 0;
while (i < 11) {
eval ("bomb" + i).onEnterFrame = function () {
if ((this.hitTest(hero.tester) && (this._visible == true)) && (this._currentframe == 1)) {
gramy = false;
hero.gotoAndStop("bomb");
this.play();
}
if (this.hitTest(pushMe)) {
this.play();
}
};
i++;
}
i = 0;
while (i < 3) {
var przel = eval ("przelacznik" + i);
przel.onEnterFrame = function () {
if (this.hitTest(hero.tester) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
};
i++;
}
if (hero._y >= 550) {
biel._visible = true;
biel.play();
hero._x = oldX;
hero._y = oldY;
score = oldScore;
bad1._x = bad1X;
bad2._x = bad2X;
bad3._x = bad3X;
bad4._x = bad4X;
bad5._x = bad5X;
pushMe._x = pushMeX;
pushMe._y = pushMeY;
platform8.jedziemy = false;
platform8._y = platform8.miejsceY;
platform8._x = platform8.miejsceX;
bomb1.gotoAndStop(1);
bomb2.gotoAndStop(1);
bomb3.gotoAndStop(1);
bomb4.gotoAndStop(1);
bomb5.gotoAndStop(1);
bomb6.gotoAndStop(1);
bomb7.gotoAndStop(1);
bomb8.gotoAndStop(1);
bomb9.gotoAndStop(1);
bomb10.gotoAndStop(1);
if (lvl == 28) {
portal1.jedziemy = false;
portal1._x = portal1.miejsceX;
portal1._y = portal1.miejsceY;
portal2.jedziemy = true;
portal2._x = portal2.miejsceX;
portal2._y = portal2.miejsceY;
}
i = 0;
while (i < 11) {
eval ("coin" + i)._visible = true;
i++;
}
sfx("resetSound");
grawitacja = 0;
pozioma = 0;
wall.gotoAndStop(1);
przelacznik1.gotoAndStop(1);
przelacznik2.gotoAndStop(1);
gramy = false;
}
if (hero.tester.hitTest(wyjscieMC)) {
biel._visible = true;
lvl++;
biel.play();
grawitacja = 0;
pozioma = 0;
sfx("newLevelSound");
gramy = false;
gotoAndStop(_currentframe + 2);
}
if (hero.tester.hitTest(portal1.tester)) {
gramy = false;
hero._x = portal1._x;
hero._y = portal1._y;
portal1.play();
portal2.play();
outPlace = "portal2";
}
if (hero.tester.hitTest(portal2.tester)) {
gramy = false;
hero._x = portal2._x;
hero._y = portal2._y;
portal1.play();
portal2.play();
outPlace = "portal1";
}
if (pushMe.tester.hitTest(portal1.tester)) {
gramy = false;
pushMe._x = portal1._x;
pushMe._y = portal1._y + pushOffset;
portal1.play();
portal2.play();
pushPortal = true;
outPlace = "portal2";
}
if (pushMe.tester.hitTest(portal2.tester)) {
gramy = false;
pushMe._x = portal2._x;
pushMe._y = portal2._y + pushOffset;
portal1.play();
portal2.play();
pushPortal = true;
outPlace = "portal1";
}
if ((hero.tester.hitTest(wall.tester) && (hero._x >= wall._x)) && (pozioma < 0)) {
hero._x = hero._x - pozioma;
}
if ((hero.tester.hitTest(wall.tester) && (hero._x < wall._x)) && (pozioma > 0)) {
hero._x = hero._x - pozioma;
}
if ((hero.tester.hitTest(wall2.tester) && (hero._x >= wall2._x)) && (pozioma < 0)) {
hero._x = hero._x - pozioma;
}
if ((hero.tester.hitTest(wall2.tester) && (hero._x < wall2._x)) && (pozioma > 0)) {
hero._x = hero._x - pozioma;
}
if (hero.tester.hitTest(spring)) {
grawitacja = (-silaSkoku) * 2;
spring.play();
}
if (hero.tester.hitTest(spring2)) {
grawitacja = (-silaSkoku) * 2;
spring2.play();
}
if ((hero.hitTest(pushMe.tester) && (pozioma <= 2)) && (hero._x <= pushMe._x)) {
pushMe._x = pushMe._x + 3;
if (pushMeSoundPlaying == false) {
sfx("pushMeSound");
pushMeSoundPlaying = true;
}
}
if ((hero.hitTest(pushMe.tester) && (pozioma <= 2)) && (hero._x >= pushMe._x)) {
pushMe._x = pushMe._x - 3;
if (pushMeSoundPlaying == false) {
sfx("pushMeSound");
pushMeSoundPlaying = true;
}
}
}
};
czekLevelAdvance = function () {
if (lvl <= 30) {
if (levelEnabled < lvl) {
trace(lvl);
levelEnabled = lvl;
saveLevel.data.nr = levelEnabled;
}
}
};
lvl = levelJumpNr;
gotoAndStop(_currentframe + ((levelJumpNr - 1) * 2));
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 43
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 45
onClipEvent (load) {
velocity2 = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 350) || (y < 150)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 94 MovieClip "platform7" in Frame 45
onClipEvent (load) {
velocity = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 300) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 100 MovieClip "bad1" in Frame 45
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 280) || (x < 180)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
}
}
Instance of Symbol 102 MovieClip "bad3" in Frame 45
onClipEvent (enterFrame) {
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 45
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 47
onClipEvent (load) {
velocity2 = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 350) || (y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 94 MovieClip "platform7" in Frame 47
onClipEvent (load) {
velocity = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 200)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 100 MovieClip "bad1" in Frame 47
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 130) || (x < 10)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 47
/* no clip actions */
Instance of Symbol 94 MovieClip "platform7" in Frame 49
onClipEvent (load) {
velocity = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 100 MovieClip "bad1" in Frame 49
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 370) || (x < 100)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 49
/* no clip actions */
Instance of Symbol 100 MovieClip "bad2" in Frame 49
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 370) || (x < 100)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
}
}
Instance of Symbol 100 MovieClip "bad3" in Frame 49
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 370) || (x < 100)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
}
}
Instance of Symbol 94 MovieClip "platform7" in Frame 51
onClipEvent (load) {
velocity = 5;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 100)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 51
/* no clip actions */
Instance of Symbol 94 MovieClip "platform1" in Frame 51
onClipEvent (load) {
velocity = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 100)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 94 MovieClip "platform2" in Frame 51
onClipEvent (load) {
velocity = 4;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 100)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 94 MovieClip "platform4" in Frame 51
onClipEvent (load) {
velocity = 2;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 400) || (x < 100)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 53
/* no clip actions */
Instance of Symbol 94 MovieClip "platform1" in Frame 53
onClipEvent (load) {
velocity = 3;
velocity2 = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
var y;
y = _y + velocity2;
if ((y > 350) || (y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 55
/* no clip actions */
Instance of Symbol 94 MovieClip "platform1" in Frame 55
onClipEvent (load) {
velocity2 = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 350) || (y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 94 MovieClip "platform7" in Frame 57
onClipEvent (load) {
velocity = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 350) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 100 MovieClip "bad1" in Frame 57
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 380) || (x < 80)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 100 MovieClip "bad2" in Frame 57
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 380) || (x < 80)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 100 MovieClip "bad3" in Frame 57
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 380) || (x < 80)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 57
/* no clip actions */
Instance of Symbol 102 MovieClip "bad4" in Frame 57
onClipEvent (enterFrame) {
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 102 MovieClip "bad5" in Frame 57
onClipEvent (load) {
gotoAndPlay (18);
}
onClipEvent (enterFrame) {
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 59
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 59
onClipEvent (load) {
velocity2 = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 400) || (y < 200)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 94 MovieClip "platform7" in Frame 61
onClipEvent (load) {
velocity = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
}
Instance of Symbol 100 MovieClip "bad1" in Frame 61
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 480) || (x < 200)) || (this.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 61
/* no clip actions */
Instance of Symbol 100 MovieClip "bad2" in Frame 61
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 480) || (x < 200)) || (this.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 100 MovieClip "bad3" in Frame 61
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 480) || (x < 200)) || (this.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 63
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 63
onClipEvent (load) {
velocity2 = 3;
miejsce = _y;
jedziemy = false;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 350) || (y < 150)) {
velocity2 = velocity2 * -1;
}
if (jedziemy == true) {
_y = (_y + velocity2);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 65
/* no clip actions */
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 67
/* no clip actions */
Instance of Symbol 125 MovieClip "spring" in Frame 67
onClipEvent (enterFrame) {
_x = _parent.platform8._x;
_y = _parent.platform8._y;
}
Instance of Symbol 94 MovieClip "platform8" in Frame 67
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = false;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 69
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 71
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = false;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 500) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 71
/* no clip actions */
Instance of Symbol 100 MovieClip "bad1" in Frame 71
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 400) || (x < 280)) || (this.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 73
/* no clip actions */
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 75
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 75
onClipEvent (load) {
velocity2 = 3;
miejsceX = _x;
miejsceY = _y;
jedziemy = false;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 400) || (y < 50)) {
velocity2 = velocity2 * -1;
}
if (jedziemy == true) {
_y = (_y + velocity2);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 77
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 77
onClipEvent (load) {
velocity2 = 3;
miejsceX = _x;
miejsceY = _y;
jedziemy = false;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 400) || (y < 100)) {
velocity2 = velocity2 * -1;
}
if (jedziemy == true) {
_y = (_y + velocity2);
}
}
Instance of Symbol 100 MovieClip "bad1" in Frame 77
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if (((x > 480) || (x < 280)) || (this.hitTest(_parent.wall.tester))) {
velocity = velocity * -1;
}
_x = (_x + velocity);
if (this.hitTest(_parent.hero.tester) && (_parent.score > 0)) {
_parent.score--;
_parent.enemySound.play();
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 79
/* no clip actions */
Instance of Symbol 134 MovieClip "bomb1" in Frame 79
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
if ((_x > 250) || (_x < 70)) {
velocity = velocity * -1;
}
if (jedziemy) {
_x = (_x + velocity);
}
}
Instance of Symbol 134 MovieClip "bomb2" in Frame 79
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
if ((_x > 430) || (_x < 250)) {
velocity = velocity * -1;
}
if (jedziemy) {
_x = (_x + velocity);
}
}
Instance of Symbol 134 MovieClip "bomb3" in Frame 79
onClipEvent (load) {
velocity = -4;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
if ((_x > 430) || (_x < 70)) {
velocity = velocity * -1;
}
if (jedziemy) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 81
/* no clip actions */
Instance of Symbol 134 MovieClip "bomb2" in Frame 81
/* no clip actions */
Instance of Symbol 134 MovieClip "bomb2" in Frame 83
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
if ((_x > 230) || (_x < 90)) {
velocity = velocity * -1;
}
if (jedziemy) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 83
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 83
onClipEvent (load) {
velocity2 = 3;
miejsceX = _x;
miejsceY = _y;
jedziemy = false;
}
onClipEvent (enterFrame) {
var y;
y = _y + velocity2;
if ((y > 450) || (y < 200)) {
velocity2 = velocity2 * -1;
}
if (jedziemy == true) {
_y = (_y + velocity2);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 85
/* no clip actions */
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 87
/* no clip actions */
Instance of Symbol 125 MovieClip "spring" in Frame 87
onClipEvent (enterFrame) {
_x = _parent.platform8._x;
_y = _parent.platform8._y;
}
Instance of Symbol 94 MovieClip "platform8" in Frame 87
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = false;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 200)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 89
/* no clip actions */
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 91
/* no clip actions */
Instance of Symbol 125 MovieClip "spring" in Frame 91
onClipEvent (enterFrame) {
_x = _parent.platform8._x;
_y = _parent.platform8._y;
}
Instance of Symbol 134 MovieClip "bomb9" in Frame 91
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 310) || (x < 190)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 93
/* no clip actions */
Instance of Symbol 158 MovieClip "portal2" in Frame 93
onClipEvent (load) {
velocity = 4;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 134 MovieClip "bomb1" in Frame 93
onClipEvent (load) {
velocity = -2;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 134 MovieClip "bomb2" in Frame 93
onClipEvent (load) {
velocity = -2;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 134 MovieClip "bomb3" in Frame 93
onClipEvent (load) {
velocity = -2;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 95
/* no clip actions */
Instance of Symbol 94 MovieClip "platform8" in Frame 95
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = false;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 97
/* no clip actions */
Instance of Symbol 151 MovieClip "portal1" in Frame 97
onClipEvent (load) {
velocity = 4;
miejsceY = _y;
miejsceX = _x;
jedziemy = false;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy) {
_x = (_x + velocity);
}
}
Instance of Symbol 158 MovieClip "portal2" in Frame 97
onClipEvent (load) {
velocity = 4;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy) {
_x = (_x + velocity);
}
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 99
/* no clip actions */
Instance of Symbol 134 MovieClip "bomb1" in Frame 99
onClipEvent (load) {
velocity = -2;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 134 MovieClip "bomb2" in Frame 99
onClipEvent (load) {
velocity = -2;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 134 MovieClip "bomb3" in Frame 99
onClipEvent (load) {
velocity = -2;
miejsceY = _y;
miejsceX = _x;
jedziemy = true;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 94 MovieClip "platform8" in Frame 99
onClipEvent (load) {
velocity = 3;
miejsceY = _y;
miejsceX = _x;
jedziemy = false;
}
onClipEvent (enterFrame) {
var x;
x = _x + velocity;
if ((x > 450) || (x < 50)) {
velocity = velocity * -1;
}
if (jedziemy == true) {
_x = (_x + velocity);
}
}
Instance of Symbol 94 MovieClip "platform1" in Frame 101
onClipEvent (load) {
velocity = 3;
velocity2 = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
if ((_x > 450) || (_x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
var y;
y = _y + velocity2;
if ((_y > 450) || (_y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 81 MovieClip "wyjscieMC" in Frame 101
/* no clip actions */
Instance of Symbol 94 MovieClip "platform3" in Frame 101
onClipEvent (load) {
velocity = 3;
velocity2 = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
if ((_x > 450) || (_x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
var y;
if ((_y > 450) || (_y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Instance of Symbol 94 MovieClip "platform2" in Frame 101
onClipEvent (load) {
velocity = 3;
velocity2 = 3;
jedziemy = true;
}
onClipEvent (enterFrame) {
if ((_x > 450) || (_x < 50)) {
velocity = velocity * -1;
}
_x = (_x + velocity);
var y;
y = _y + velocity2;
if ((_y > 450) || (_y < 50)) {
velocity2 = velocity2 * -1;
}
_y = (_y + velocity2);
}
Frame 103
delete onEnterFrame;
b1.napis = "continue >>";
b1.onPress = function () {
sfx("pressBtnSound");
przejscie("endGame");
};
i = 1;
while (i < 10) {
eval ("b" + i).onRollOver = rollOverBtn;
eval ("b" + i).onRollOut = rollOutBtn;
eval ("b" + i).onEnterFrame = scaleMe;
i++;
}
Symbol 7 MovieClip Frame 1
biel._xscale = 0;
up_scale = 105;
onEnterFrame = function () {
total_bytes = root.getBytesTotal();
loaded_bytes = root.getBytesLoaded();
procent_done = Math.round((loaded_bytes / total_bytes) * 100);
biel._xscale = biel._xscale + ((procent_done - biel._xscale) * 0.2);
if (procent_done >= 100) {
delete onEnterFrame;
root.gotoAndStop(root.load_to);
}
};
onRelease = function () {
getURL ("http://www.mateuszskutnik.com", "_blank");
};
onRollOver = function () {
_xscale = up_scale;
_yscale = up_scale;
};
onRollOut = (onPress = function () {
_xscale = 100;
_yscale = 100;
});
Symbol 19 MovieClip Frame 1
stop();
Symbol 27 Button
on (release) {
getURL ("http://www.facebook.com/mateuszskutnik", "_blank");
}
Symbol 31 Button
on (release) {
getURL ("http://www.twitter.com/mateuszskutnik", "_blank");
}
Symbol 55 MovieClip Frame 1
onRelease = function () {
sfx("pressBtnSound");
getURL (root.commentLink, "_blank");
};
Symbol 69 MovieClip Frame 25
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
napis = String(_name).substr(1, 3);
Symbol 81 MovieClip Frame 1
_parent.newLevel();
Symbol 90 MovieClip Frame 1
stop();
if (!root.sfxOn) {
gotoAndStop (2);
}
onRollOver = function () {
sfx("coinSound");
this.skala = 135;
};
onRollOut = function () {
this.skala = 100;
};
onEnterFrame = function () {
if (this.skala != null) {
this._xscale = this._xscale + ((this.skala - this._xscale) * 0.2);
this._yscale = this._yscale + ((this.skala - this._yscale) * 0.2);
}
};
onPress = function () {
if (_currentframe == 1) {
stopAllSounds();
root.sfxOn = false;
gotoAndStop (2);
} else if (_currentframe == 2) {
amb("amb1");
root.sfxOn = true;
gotoAndStop (1);
}
sfx("pressBtnSound");
};
Symbol 92 MovieClip Frame 12
_parent.gramy = true;
_visible = false;
gotoAndStop (1);
Symbol 100 MovieClip Frame 1
if (root.speedRun == true) {
_visible = false;
}
Symbol 102 MovieClip Frame 1
if (root.speedRun == true) {
_visible = false;
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
_parent.wall.play();
sfx("switchSound1");
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 9
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
_parent.platform8.jedziemy = true;
sfx("switchSound2");
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
sfx("springSound");
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
sfx("bombSound");
jedziemy = false;
Symbol 134 MovieClip Frame 31
stop();
jedziemy = true;
if (_parent.hero._currentframe == 4) {
_parent.hero._y = 600;
_parent.hero.gotoAndStop(1);
_parent.gramy = true;
}
Symbol 136 MovieClip Frame 1
fall = true;
onEnterFrame = function () {
if (((this._y <= 600) && (fall == true)) && (_parent.gramy == true)) {
_y = (_y + 7);
}
};
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
onEnterFrame = function () {
if (root.pushPortal) {
root.pushMe._xscale = root.pushMe._xscale - 5;
root.pushMe._yscale = root.pushMe._yscale - 5;
} else {
root.hero._rotation = root.hero._rotation + 30;
root.hero._xscale = root.hero._xscale - 5;
root.hero._yscale = root.hero._yscale - 5;
}
};
sfx("portalSnd");
Symbol 151 MovieClip Frame 15
delete onEnterFrame;
if (root.pushPortal) {
root.pushMe._xscale = 100;
root.pushMe._yscale = 100;
root.pushMe._rotation = 0;
root.pushMe._x = eval ("root." + root.outPlace)._x;
root.pushMe._y = eval ("root." + root.outPlace)._y;
root.pushPortal = false;
} else {
root.hero._xscale = 100;
root.hero._yscale = 100;
root.hero._rotation = 0;
root.grawitacja = 0;
root.pozioma = 0;
root.hero._x = eval ("root." + root.outPlace)._x;
root.hero._y = eval ("root." + root.outPlace)._y;
}
root.gramy = true;
Symbol 158 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
_parent.portal1.jedziemy = true;
_parent.portal2.jedziemy = false;
sfx("switchSound2");