Frame 1
fscommand ("allowscale", "false");
stop();
Instance of Symbol 96 MovieClip in Frame 1
onClipEvent (enterFrame) {
text = ((int(_parent.getBytesLoaded() / 1000) add " KBYTES OF ") add int(_parent.getBytesTotal() / 1000)) add " LOADED ...";
if (_parent.getBytesTotal() == _parent.getBytesLoaded()) {
_parent.gotoAndStop(2);
}
}
Frame 2
function Ad(url, link) {
this.url = url;
this.link = link;
}
function makeArray(success) {
var url;
if (success) {
i = 0;
while (i <= moXML.childNodes.length) {
if ((this.childNodes[i].nodeValue == null) && (this.childNodes[i].nodeName == "adverts")) {
var mainTag = this.childNodes[i];
}
i++;
}
i = 0;
while (i <= (mainTag.childNodes.length - 1)) {
var articleTag = mainTag.childNodes[i];
url = articleTag.childNodes.toString();
var articleTag = mainTag.childNodes[i + 1];
link = articleTag.childNodes.toString();
thisArticle = new Ad(url, link);
ads.push(thisArticle);
delete thisArticle;
i = i + 2;
}
adstoshow = [];
i = 0;
while (i < ads.length) {
adstoshow[i] = ads[i];
i++;
}
}
}
mapbonus = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 20, 20, 20, 3, 20, 20, 20, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 21, 0, 2, 0, 21, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 20, 20, 20, 20, 3, 20, 20, 20, 20, 0, 0, 0, 0], [0, 0, 0, 0, 0, 21, 0, 0, 2, 0, 0, 21, 0, 0, 0, 0, 0], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]];
map1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 10, 20, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 20, 20, 20, 20, 20, 3, 20, 20, 20, 0, 0, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 3, 20, 20], [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0], [10, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 10], [20, 20, 20, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 3, 20, 20], [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 20, 10, 10, 10, 10, 10, 10, 10, 0, 0, 0, 2, 0, 10], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]];
map5 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 10, 0, 0, 10, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0], [0, 0, 0, 20, 20, 20, 3, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]];
map6 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 23], [0, 0, 0, 10, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 20, 3, 20, 20, 0, 0, 0, 0, 22], [0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 22],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, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 22], [20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]];
enemy1 = [[8, 9], [13, 19]];
smartenemy1 = [[18, 28], [18, 2]];
enemy2 = [[10, 14], [15, 21]];
smartenemy2 = [[18, 28], [18, 2]];
enemy3 = [[18, 6], [18, 26], [5, 13]];
smartenemy3 = [[11, 18], [11, 11]];
enemy4 = [[12, 11], [12, 26], [7, 11]];
smartenemy4 = [[18, 3], [18, 26]];
enemy5 = [[11, 9], [8, 15], [14, 15], [18, 7]];
smartenemy5 = [[8, 24]];
enemy6 = [[18, 5], [18, 18]];
smartenemy6 = [[6, 14]];
cannon6 = [[18, 29]];
enemy7 = [[18, 5], [18, 25]];
smartenemy7 = [[2, 15]];
cannon7 = [[10, 0], [18, 29], [5, 29]];
tilewidth = 20;
tileheight = tilewidth;
_root.punkt = 0;
_root.level = 1;
_root.totallevels = 7;
lives = 3;
Object.version = getVersion().split(",");
Object.majorVersion = int(substring(Object.version[0], Object.version[0].length, 1));
Object.minorVersion = int(Object.version[2]);
if (Object.majorVersion == 5) {
XML.prototype.checkEmpty = function (text) {
var max = text.length;
var empty = true;
var i = 0;
while (i < max) {
if (ord(substring(text, i + i, 1)) > 32) {
empty = false;
break;
}
i++;
}
return(empty);
};
XML.prototype.parseXML = function (str) {
this.firstChild.removeNode();
var treePtr = this;
var tags = new Array();
var textNode = null;
if (Object.minorVersion == 30) {
this.status = ASnative(300, 0) /* [XML.prototype.parseXML] - inner function */(str, tags);
} else {
this.status = ASnative(300, 0) /* [XML.prototype.parseXML] - inner function */(str, tags, false);
}
if (this.status == 0) {
var curr;
var i = 0;
var max = tags.length;
if (this.ignoreWhite) {
while (i < max) {
curr = tags[i];
if (curr.type == 1) {
if (curr.value == ("/" + treePtr.nodeName)) {
treePtr = treePtr.parentNode;
} else {
treePtr.appendChild(this.createElement(curr.value));
treePtr = treePtr.lastChild;
treePtr.attributes = curr.attrs;
if (curr.empty) {
treePtr = treePtr.parentNode;
}
}
} else if (curr.type == 3) {
if (!this.checkEmpty(curr.value)) {
treePtr.appendChild(this.createTextNode(curr.value));
}
} else if (curr.type == 6) {
treePtr.appendChild(this.createTextNode(curr.value));
} else if (curr.type == 4) {
this.xmlDecl = curr.value;
} else {
this.docTypeDecl = curr.value;
}
i++;
}
} else {
while (i < max) {
curr = tags[i];
if (curr.type == 1) {
if (curr.value == ("/" + treePtr.nodeName)) {
treePtr = treePtr.parentNode;
} else {
treePtr.appendChild(this.createElement(curr.value));
treePtr = treePtr.lastChild;
treePtr.attributes = curr.attrs;
if (curr.empty) {
treePtr = treePtr.parentNode;
}
}
} else if ((curr.type == 3) || (curr.type == 6)) {
treePtr.appendChild(this.createTextNode(curr.value));
} else if (curr.type == 4) {
this.xmlDecl = curr.value;
} else {
this.docTypeDecl = curr.value;
}
i++;
}
}
}
};
}
var ads = [];
moXML = new XML();
moXML.ignoreWhite = true;
moXML.onLoad = makeArray;
moXML.load("ads.txt");
delete moXML;
stop();
Instance of Symbol 105 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root._currentframe != 10) {
this.showing = 0;
if (_root.ads.length > 0) {
if (_root.adstoshow.length == 0) {
i = 0;
while (i < _root.ads.length) {
_root.adstoshow[i] = _root.ads[i];
i++;
}
}
ran = random(_root.adstoshow.length);
link = _root.adstoshow[ran].link;
url = _root.adstoshow[ran].url;
ad.loadMovie(url);
_root.adstoshow.splice(ran, 1);
}
this._visible = false;
} else if (this.showing == 0) {
_parent.but._visible = false;
timestart = int(getTimer() / 1000);
this.showing = 1;
this._visible = true;
} else {
_root.timeleft = 10 - (int(getTimer() / 1000) - timestart);
if (_root.timeleft <= 0) {
_root.timeleft = 0;
_parent.but._visible = true;
}
}
}
Instance of Symbol 132 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) and (_currentframe == 1)) {
gotoAndPlay (1);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true) and (_currentframe == 30)) {
gotoAndPlay (30);
}
}
Frame 3
function do_map() {
if ((_root.level % 2) == 0) {
back.gotoAndStop(2);
}
_root.totalfound = 0;
_root.map = new Array();
y = 0;
while (y < eval ("_root.map" + _root.level).length) {
_root.map[y] = new Array();
x = 0;
while (x < eval ("_root.map" + _root.level)[0].length) {
_root.map[y][x] = eval ("_root.map" + _root.level)[y][x];
x++;
}
y++;
}
y = 0;
while (y < map.length) {
x = 0;
while (x < map[0].length) {
name = (("t" + x) + "_") + y;
_root.cont.attachMovie("tile", name, (y * 100) + x);
_root.cont[name]._x = tilewidth * x;
_root.cont[name]._y = tileheight * y;
_root.cont[name].gotoAndStop(map[y][x]);
if ((_root.level % 2) == 0) {
_root.cont[name].t.gotoAndStop(2);
}
if (map[y][x] == 21) {
_root.cont[name].t.wall.y = y;
_root.cont[name].t.wall.x = x;
}
x++;
}
y++;
}
}
function createbonus(x, y) {
name = (("t" + x) + "_") + y;
_root.cont.attachMovie("tile", name, (y * 100) + x);
_root.cont[name]._x = tilewidth * x;
_root.cont[name]._y = tileheight * y;
_root.cont[name].gotoAndStop(11);
}
_root.attachMovie("empty", "cont", 1);
_root.cont._y = tileheight;
_root.attachMovie("frame", "frame", 999999);
do_map();
totals = 16;
char = [1, 1];
_root.cont.attachMovie("player", "player", tilewidth + (tileheight * 100));
_root.cont.player._x = char[1] * tilewidth;
_root.cont.player._y = char[0] * tileheight;
smartenemy = eval ("_root.smartenemy" + _root.level);
z = 0;
while (z < smartenemy.length) {
name = "smartenemy" + z;
_root.cont.attachMovie("smartenemy", name, ((tilewidth + (tileheight * 100)) + z) + 10);
_root.cont[name]._x = smartenemy[z][1] * tilewidth;
_root.cont[name]._y = smartenemy[z][0] * tilewidth;
z++;
}
enemy = eval ("_root.enemy" + _root.level);
z = 0;
while (z < enemy.length) {
name = "enemy" + z;
_root.cont.attachMovie("enemy", name, ((tilewidth + (tileheight * 100)) + z) + 1);
_root.cont[name]._x = enemy[z][1] * tilewidth;
_root.cont[name]._y = enemy[z][0] * tilewidth;
z++;
}
cannon = eval ("_root.cannon" + _root.level);
z = 0;
while (z < cannon.length) {
name = "cannon" + z;
_root.cont.attachMovie("cannon", name, ((tilewidth + (tileheight * 100)) + z) + 20);
_root.cont[name]._x = cannon[z][1] * tilewidth;
_root.cont[name]._y = cannon[z][0] * tilewidth;
z++;
}
stop();
Frame 4
removeMovieClip("cont");
removeMovieClip("frame");
_root.level = _root.level + 1;
totalfound = 0;
if (_root.level > _root.totallevels) {
gotoAndStop (6);
}
if (((_root.level % 3) == 0) and (_root.ads.length > 0)) {
gotoAndStop (10);
} else if ((_root.level % 3) == 1) {
gotoAndStop (11);
}
stop();
Frame 5
removeMovieClip("cont");
removeMovieClip("frame");
_root.lives = _root.lives - 1;
if (_root.lives == 0) {
nextFrame();
}
stop();
Frame 6
stop();
Frame 7
scoretable.filename = "scores/starrunner.sco";
scoretable.scoresize = 10;
scoretable.action = "INSERT";
scoretable.viewtype = "FLASH";
scoretable.winname = _root.my_name;
scoretable.winscore = _root.punkt;
scoretable.loadVariables("scores.php", "POST");
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Instance of Symbol 204 MovieClip in Frame 11
onClipEvent (load) {
timestart = int(getTimer() / 1000);
_parent.but._visible = false;
_root.timeleft = 25 - (int(getTimer() / 1000) - timestart);
}
onClipEvent (enterFrame) {
if (_root.timeleft > 0) {
_root.timeleft = 25 - (int(getTimer() / 1000) - timestart);
if (_root.timeleft <= 0) {
_parent.but._visible = true;
}
}
}
Symbol 8 MovieClip Frame 1
stop();
Symbol 16 MovieClip Frame 1
stop();
Instance of Symbol 13 MovieClip "punkt" in Symbol 16 MovieClip Frame 2
onClipEvent (load) {
punkt = 10;
}
Symbol 16 MovieClip Frame 20
removeMovieClip(_parent);
removeMovieClip(this);
Symbol 20 MovieClip [bonus] Frame 1
stop();
Instance of Symbol 13 MovieClip "punkt" in Symbol 20 MovieClip [bonus] Frame 2
onClipEvent (load) {
punkt = 50;
}
Symbol 20 MovieClip [bonus] Frame 20
removeMovieClip(_parent);
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 10
_root.map[y][x] = 0;
removeMovieClip(_parent._parent);
Symbol 26 MovieClip Frame 1
stop();
Symbol 26 MovieClip Frame 11
_root.map[y][x] = 0;
removeMovieClip(_parent._parent);
Symbol 27 MovieClip Frame 1
stop();
Symbol 29 MovieClip [tile] Frame 1
stop();
Symbol 48 MovieClip [player_intro] Frame 1
stop();
Instance of Symbol 32 MovieClip [empty] "brain" in Symbol 48 MovieClip [player_intro] Frame 1
onClipEvent (load) {
status = "standing";
count = 0;
s = 5;
}
onClipEvent (enterFrame) {
if (status eq "standing") {
if (_parent._parent._parent.map[_parent._parent._parent.char[0] + 1][_parent._parent._parent.char[1]] == 0) {
speedy = s * 2;
speedx = 0;
status = "moving";
} else if (Key.isDown(38) and (_parent._parent._parent.map[_parent._parent._parent.char[0]][_parent._parent._parent.char[1]] > 0)) {
if (Key.isDown(38) and (_parent._parent._parent.map[_parent._parent._parent.char[0]][_parent._parent._parent.char[1]] != 21)) {
_parent.gotoAndPlay("up");
status = "moving";
speedy = -s;
speedx = 0;
}
} else if (Key.isDown(40) and (_parent._parent._parent.map[_parent._parent._parent.char[0] + 1][_parent._parent._parent.char[1]] > 0)) {
if (Key.isDown(40) and (_parent._parent._parent.map[_parent._parent._parent.char[0] + 1][_parent._parent._parent.char[1]] != 20)) {
_parent.gotoAndPlay("up");
speedy = s;
speedx = 0;
status = "moving";
}
} else if (Key.isDown(37) and (_parent._parent._parent.map[_parent._parent._parent.char[0]][_parent._parent._parent.char[1] - 1] != 20)) {
if (_parent._parent._parent.char[1] > 0) {
_parent.gotoAndPlay("left");
status = "moving";
speedy = 0;
speedx = -s;
}
} else if (Key.isDown(39) and (_parent._parent._parent.map[_parent._parent._parent.char[0]][_parent._parent._parent.char[1] + 1] != 20)) {
if (_parent._parent._parent.char[1] < 16) {
_parent.gotoAndPlay("right");
status = "moving";
speedy = 0;
speedx = s;
}
}
}
if (status eq "moving") {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
count = count + Math.abs(speedy + speedx);
if (count >= 20) {
status = "standing";
count = 0;
if (speedx != 0) {
_parent._parent._parent.char[1] = _parent._parent._parent.char[1] + (speedx / Math.abs(speedx));
}
if (speedy != 0) {
_parent._parent._parent.char[0] = _parent._parent._parent.char[0] + (speedy / Math.abs(speedy));
}
}
}
}
Symbol 48 MovieClip [player_intro] Frame 4
gotoAndStop (1);
Symbol 48 MovieClip [player_intro] Frame 9
gotoAndStop (6);
Symbol 48 MovieClip [player_intro] Frame 13
gotoAndStop (10);
Instance of Symbol 32 MovieClip [empty] "brain" in Symbol 49 MovieClip [player] Frame 1
onClipEvent (load) {
status = "standing";
count = 0;
s = 5;
}
onClipEvent (enterFrame) {
if (status eq "standing") {
if (((_root.map[_root.char[0] + 1][_root.char[1]] == 0) or (_root.map[_root.char[0] + 1][_root.char[1]] == 10)) or (_root.map[_root.char[0] + 1][_root.char[1]] == 11)) {
speedy = s * 2;
speedx = 0;
status = "moving";
} else if ((Key.isDown(38) and (_root.map[_root.char[0]][_root.char[1]] > 0)) and (_root.map[_root.char[0]][_root.char[1]] < 10)) {
_parent.gotoAndPlay("up");
status = "moving";
speedy = -s;
speedx = 0;
} else if ((Key.isDown(40) and (_root.map[_root.char[0] + 1][_root.char[1]] > 0)) and (_root.map[_root.char[0] + 1][_root.char[1]] < 20)) {
_parent.gotoAndPlay("up");
speedy = s;
speedx = 0;
status = "moving";
} else if ((Key.isDown(37) and (_root.map[_root.char[0]][_root.char[1] - 1] < 20)) and ((_root.char[1] - 1) > -1)) {
_parent.gotoAndPlay("left");
status = "moving";
speedy = 0;
speedx = -s;
} else if ((Key.isDown(39) and (_root.map[_root.char[0]][_root.char[1] + 1] < 20)) and ((_root.char[1] + 1) < 30)) {
_parent.gotoAndPlay("right");
status = "moving";
speedy = 0;
speedx = s;
}
}
if (status eq "moving") {
_root.cont.player._x = _root.cont.player._x + speedx;
_root.cont.player._y = _root.cont.player._y + speedy;
count = count + Math.abs(speedy + speedx);
if (count >= 20) {
status = "standing";
count = 0;
if (speedx != 0) {
_root.char[1] = _root.char[1] + (speedx / Math.abs(speedx));
}
if (speedy != 0) {
_root.char[0] = _root.char[0] + (speedy / Math.abs(speedy));
}
if (_root.map[_root.char[0]][_root.char[1]] == 10) {
_root.map[_root.char[0]][_root.char[1]] = 0;
name = (("t" + _root.char[1]) + "_") + _root.char[0];
_root.cont[name].swapDepths((10000 + (_root.char[0] * 100)) + _root.char[1]);
_root.punkt = _root.punkt + 10;
_root.cont[name].raha.play();
_root.totalfound = _root.totalfound + 1;
if (_root.totalfound == _root.totals) {
_root.gotoandStop(4);
}
}
if (_root.map[_root.char[0]][_root.char[1]] == 11) {
_root.map[_root.char[0]][_root.char[1]] = 0;
name = (("t" + _root.char[1]) + "_") + _root.char[0];
_root.cont[name].swapDepths((10000 + (_root.char[0] * 100)) + _root.char[1]);
_root.punkt = _root.punkt + 50;
_root.cont[name].raha.play();
}
if (_root.map[_root.char[0] + 1][_root.char[1]] == 21) {
name = (("t" + _root.char[1]) + "_") + (_root.char[0] + 1);
_root.cont[name].t.wall.play();
}
}
}
if (random(100) > 98) {
bonusx = random(_root.map[0].length);
bonusy = random(_root.map.length);
if ((((_root.map[bonusy][bonusx] == 0) and (_root.map[bonusy + 1][bonusx] == 20)) and (bonusy != _root.char[1])) and (bonusx != _root.char[0])) {
_root.map[bonusy][bonusx] = 11;
_root.createbonus(bonusx, bonusy);
}
}
if (status eq "dead") {
if (_parent._currentframe != 15) {
_parent.gotoAndStop(15);
}
_parent._y = _parent._y + (s * 2);
if (_parent._y > 400) {
_root.gotoAndStop(5);
}
}
}
Symbol 49 MovieClip [player] Frame 4
gotoAndStop (1);
Symbol 49 MovieClip [player] Frame 9
gotoAndStop (6);
Symbol 49 MovieClip [player] Frame 13
gotoAndStop (10);
Symbol 61 MovieClip [frame] Frame 1
stop();
Instance of Symbol 56 MovieClip in Symbol 61 MovieClip [frame] Frame 1
on (release) {
getURL ("http://www.endbossgames.com", "_blank");
}
Instance of Symbol 32 MovieClip [empty] in Symbol 61 MovieClip [frame] Frame 1
onClipEvent (load) {
_parent.punkt = _root.punkt;
time = getTimer() / 100;
}
onClipEvent (enterFrame) {
if (((getTimer() / 100) - time) > 1) {
time = getTimer() / 100;
if (_parent.punkt < _root.punkt) {
_parent.punkt = _parent.punkt + 1;
}
}
}
Instance of Symbol 32 MovieClip [empty] "brain" in Symbol 77 MovieClip [smartenemy] Frame 1
onClipEvent (load) {
status = "standing";
count = 0;
s = 2;
speedx = -s;
speedy = 0;
myx = _parent._x / _root.tilewidth;
myy = _parent._y / _root.tilewidth;
}
onClipEvent (enterFrame) {
if (_root.cont.player.hitTest(_parent)) {
_root.cont.player.brain.status = "dead";
}
if (status eq "standing") {
if (speedx == (-s)) {
if (((random(10) > 7) and (_root.map[myy - 1][myx] < 10)) and (_root.map[myy - 1][myx] > 0)) {
status = "up";
} else if (((random(10) > 7) and (_root.map[myy + 1][myx] < 10)) and (_root.map[myy + 1][myx] > 0)) {
status = "down";
} else if ((_root.map[myy][myx - 1] < 20) and (_root.map[myy + 1][myx - 1] > 0)) {
status = "left";
} else {
status = "right";
}
} else if (speedx == s) {
if (((random(10) > 7) and (_root.map[myy - 1][myx] < 10)) and (_root.map[myy - 1][myx] > 0)) {
status = "up";
} else if (((random(10) > 7) and (_root.map[myy + 1][myx] < 10)) and (_root.map[myy + 1][myx] > 0)) {
status = "down";
} else if ((_root.map[myy][myx + 1] < 20) and (_root.map[myy + 1][myx + 1] > 0)) {
status = "right";
} else {
status = "left";
}
} else if (speedy == (-s)) {
if ((_root.map[myy][myx] < 10) and (_root.map[myy][myx] > 0)) {
status = "up";
} else if (myx < _root.char[1]) {
status = "right";
} else {
status = "left";
}
} else if (speedy == s) {
if ((_root.map[myy + 1][myx] < 10) and (_root.map[myy + 1][myx] > 0)) {
status = "down";
} else if (myx < _root.char[1]) {
status = "right";
} else {
status = "left";
}
}
if (status == "left") {
_parent.gotoAndPlay("left");
status = "moving";
speedx = -s;
speedy = 0;
} else if (status == "right") {
_parent.gotoAndPlay("right");
status = "moving";
speedx = s;
speedy = 0;
} else if (status == "up") {
_parent.gotoAndPlay("up");
status = "moving";
speedx = 0;
speedy = -s;
} else if (status == "down") {
_parent.gotoAndPlay("up");
status = "moving";
speedx = 0;
speedy = s;
}
}
if (status eq "moving") {
_parent._x = _parent._x + speedx;
_parent._y = _parent._y + speedy;
count = count + Math.abs(speedy + speedx);
if (count >= 20) {
status = "standing";
count = 0;
if (speedx != 0) {
myx = myx + (speedx / Math.abs(speedx));
}
if (speedy != 0) {
myy = myy + (speedy / Math.abs(speedy));
}
}
}
}
Symbol 77 MovieClip [smartenemy] Frame 7
gotoAndPlay (1);
Symbol 77 MovieClip [smartenemy] Frame 14
gotoAndPlay (8);
Symbol 77 MovieClip [smartenemy] Frame 21
gotoAndPlay (15);
Instance of Symbol 32 MovieClip [empty] "brain" in Symbol 85 MovieClip [cannon] Frame 1
onClipEvent (load) {
status = "standing";
count = 0;
s = 5;
myx = _parent._x / _root.tilewidth;
myy = _parent._y / _root.tilewidth;
if (myx > 15) {
speedx = -s;
gotoAndPlay (10);
} else {
speedx = s;
}
speedy = -s;
shoot = 0;
}
onClipEvent (enterFrame) {
if (_root.cont.player.hitTest(_parent)) {
_root.cont.player.brain.status = "dead";
}
if ((status eq "standing") and (shoot != 1)) {
if (speedy == (-s)) {
if (_root.map[myy - 1][myx] == 22) {
status = "moving";
speedy = -s;
} else {
status = "moving";
speedy = s;
}
} else if (speedy == s) {
if (_root.map[myy + 1][myx] == 22) {
status = "moving";
speedy = s;
} else {
status = "moving";
speedy = -s;
}
}
}
if ((status eq "moving") and (shoot != 1)) {
_parent._y = _parent._y + speedy;
count = count + Math.abs(speedy);
if (count >= 20) {
status = "standing";
count = 0;
myy = myy + (speedy / Math.abs(speedy));
if (myy == _root.char[0]) {
shoot = 1;
}
}
}
if (shoot == 1) {
_parent._x = _parent._x + speedx;
if ((_parent._x < 0) or (_parent._x > 600)) {
_parent._x = myx * _root.tilewidth;
shoot = 0;
}
}
}
Symbol 85 MovieClip [cannon] Frame 20
gotoAndPlay (11);
Instance of Symbol 32 MovieClip [empty] "brain" in Symbol 92 MovieClip [enemy] Frame 1
onClipEvent (load) {
status = "standing";
count = 0;
s = 2;
speedx = -s;
myx = _parent._x / _root.tilewidth;
myy = _parent._y / _root.tilewidth;
}
onClipEvent (enterFrame) {
if (_root.cont.player.hitTest(_parent)) {
_root.cont.player.brain.status = "dead";
}
if (status eq "standing") {
if (speedx == (-s)) {
status = "moving";
if (((_root.map[myy][myx - 1] >= 20) or (_root.map[myy + 1][myx - 1] == 0)) or (myx == 0)) {
speedx = s;
}
} else {
status = "moving";
if (((_root.map[myy][myx + 1] >= 20) or (_root.map[myy + 1][myx + 1] == 0)) or (myx == 29)) {
speedx = -s;
}
}
}
if (status eq "moving") {
_parent._x = _parent._x + speedx;
count = count + Math.abs(speedx);
if (count >= 20) {
status = "standing";
count = 0;
myx = myx + (speedx / Math.abs(speedx));
}
}
}
Symbol 102 Button
on (release) {
getURL (link, "_blank");
}
Symbol 105 MovieClip Frame 1
adurl = "http://www.something.com";
Symbol 107 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 108 MovieClip Frame 1
stop();
Symbol 112 Button
on (release) {
if (_currentframe == 6) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
frames = (_currentframe + "/") + _totalframes;
}
Symbol 123 MovieClip Frame 1
frames = (_currentframe + "/") + _totalframes;
stop();
Instance of Symbol 16 MovieClip "star" in Symbol 139 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((this._y > 450) or (this._x < -200)) or (this._x > 200)) {
removeMovieClip(this);
}
if (random(100) > 98) {
xspeed = (random(21) - 10) / 10;
yspeed = (random(21) / 10) + 1;
}
if (this.hitTest(_parent._parent.cont.hero)) {
gotoAndPlay (2);
punkt._visible = false;
}
this._rotation = this._rotation + (xspeed * 5);
}
}
Symbol 140 MovieClip Frame 1
function do_map() {
map = new Array();
y = 0;
while (y < _root.mapbonus.length) {
map[y] = new Array();
x = 0;
while (x < _root.mapbonus[0].length) {
map[y][x] = _root.mapbonus[y][x];
x++;
}
y++;
}
y = 0;
while (y < map.length) {
x = 0;
while (x < map[0].length) {
name = (("t" + x) + "_") + y;
cont.attachMovie("tile", name, (y * 100) + x);
cont[name]._x = tilewidth * x;
cont[name]._y = tileheight * y;
cont[name].gotoAndStop(map[y][x]);
x++;
}
y++;
}
}
tilewidth = 20;
tileheight = tilewidth;
do_map();
char = [0, 8];
cont.attachMovie("player_intro", "hero", tilewidth + (tileheight * 100));
cont.hero._x = char[1] * tilewidth;
cont.hero._y = char[0] * tileheight;
Instance of Symbol 139 MovieClip in Symbol 140 MovieClip Frame 1
onClipEvent (load) {
speed = 1;
d = 1;
star._visible = false;
i = 0;
while (i < 5) {
duplicateMovieClip ("star", "star" + d, d);
setProperty(this["star" + d], _x , random(280) - 140);
setProperty(this["star" + d], _y , 20);
this["star" + d].xspeed = (random(21) - 10) / 10;
this["star" + d].yspeed = (random(21) / 10) + 1;
d = d + 1;
i++;
}
}
onClipEvent (enterFrame) {
this._y = this._y + speed;
if ((this._y < -10) or (this._y > 100)) {
speed = -1 * speed;
}
if (random(100) > 98) {
i = 0;
while (i < 5) {
duplicateMovieClip ("star", "star" + d, d);
setProperty(this["star" + d], _x , random(280) - 140);
setProperty(this["star" + d], _y , 20);
this["star" + d].xspeed = (random(21) - 10) / 10;
this["star" + d].yspeed = (random(21) / 10) + 1;
d = d + 1;
i++;
}
}
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 157 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 164 Button
on (release) {
nextFrame();
}
Instance of Symbol 16 MovieClip "star" in Symbol 202 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._y = this._y + yspeed;
this._x = this._x + xspeed;
if (((this._y > 450) or (this._x < -200)) or (this._x > 200)) {
removeMovieClip(this);
}
if (random(100) > 98) {
xspeed = (random(21) - 10) / 10;
yspeed = (random(21) / 10) + 1;
}
if (this.hitTest(_parent._parent.cont.hero)) {
_root.punkt = _root.punkt + 10;
this.gotoAndPlay(2);
punkt._visible = false;
}
if (_root.timeleft <= 0) {
removeMovieClip(this);
}
this._rotation = this._rotation + (xspeed * 5);
}
}
Symbol 204 MovieClip Frame 1
function do_map() {
map = new Array();
y = 0;
while (y < _root.mapbonus.length) {
map[y] = new Array();
x = 0;
while (x < _root.mapbonus[0].length) {
map[y][x] = _root.mapbonus[y][x];
x++;
}
y++;
}
y = 0;
while (y < map.length) {
x = 0;
while (x < map[0].length) {
name = (("t" + x) + "_") + y;
cont.attachMovie("tile", name, (y * 100) + x);
cont[name]._x = tilewidth * x;
cont[name]._y = tileheight * y;
cont[name].gotoAndStop(map[y][x]);
x++;
}
y++;
}
}
tilewidth = 20;
tileheight = tilewidth;
do_map();
char = [0, 8];
cont.attachMovie("player_intro", "hero", tilewidth + (tileheight * 100));
cont.hero._x = char[1] * tilewidth;
cont.hero._y = char[0] * tileheight;
Instance of Symbol 202 MovieClip "b" in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
speed = 1;
d = 1;
star._visible = false;
i = 0;
while (i < 5) {
duplicateMovieClip ("star", "star" + d, d);
setProperty(this["star" + d], _x , random(280) - 140);
setProperty(this["star" + d], _y , 20);
this["star" + d].xspeed = (random(21) - 10) / 10;
this["star" + d].yspeed = (random(21) / 10) + 1;
d = d + 1;
i++;
}
}
onClipEvent (enterFrame) {
this._y = this._y + speed;
if ((this._y < -10) or (this._y > 100)) {
speed = -1 * speed;
}
if (((random(100) > 98) and (_root.timeleft > 0)) and (_root.timeleft < 20)) {
i = 0;
while (i < 5) {
duplicateMovieClip ("star", "star" + d, d);
setProperty(this["star" + d], _x , random(280) - 140);
setProperty(this["star" + d], _y , 20);
this["star" + d].xspeed = (random(21) - 10) / 10;
this["star" + d].yspeed = (random(21) / 10) + 1;
d = d + 1;
i++;
}
}
}