Frame 1
var MochiAd = {getVersion:function () {
return("2.3");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, _:null};
MochiAd.showPreGameAd({id:"63f899a5b99c6960", res:"580x350"});
stop();
Frame 2
stop();
Instance of Symbol 32 MovieClip "preloader" in Frame 2
onClipEvent (load) {
_root.counter = 0;
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
text = percent + "%";
if (loaded == total) {
_root.preloader.pre_txt._visible = false;
_root.preloader.text = "";
_root.preloader.cirkel._visible = false;
_root.counter++;
if (_root.counter == 30) {
_root.preloader.play();
}
}
}
Frame 30
_root.unlocker = "0";
_root.powercode = "";
Frame 49
tel = 0;
Frame 50
tel = tel + 1;
Frame 51
if (tel == 50) {
play();
} else {
gotoAndPlay (50);
}
Frame 101
stop();
Frame 163
powerup = 1000;
n = Number(n) + 1;
shotnum = "shot" add n;
duplicateMovieClip ("/shot", shotnum, n);
setProperty("shotnum", _x , getProperty("/schiff", _x));
setProperty("shotnum", _y , getProperty("/schiff", _y));
x = 50;
tellTarget ("/drop") {
stop();
};
stopAllSounds();
n = 100;
wave = 1;
subwave = 1;
bombstart = 200;
x_level_set = 4;
x_level = 12;
y_level_set = 1;
y_level = 2;
fire_set = 400;
fire_level = 900;
score = 0;
treffer = 0;
level = 1;
bonus = 0;
how_many = Number(_root.level) + 3;
destroyed = 0;
if (_root.unlocker == "1") {
_root.lives = _root.lives + 7;
}
Instance of Symbol 127 MovieClip "levelbonus" in Frame 163
onClipEvent (enterFrame) {
}
Frame 168
stop();
Frame 174
play();
Frame 178
y = Number(y) + 1;
zahler = n;
aliennum = "alien" add y;
duplicateMovieClip ("/alien", aliennum, y);
if (_root.level == 1) {
tellTarget ("/alien") {
gotoAndStop (5);
};
}
finished = Number(finished) + 1;
Set("schiff:destroyed", destroyed);
Frame 180
Frame 183
if (Number(finished) < Number(how_many)) {
gotoAndPlay ("startover");
}
Frame 184
if (Number(Number(temptreffer) + Number(weg)) == Number(/amount:amount - 1)) {
gotoAndPlay ("reset");
}
test = Number(temptreffer) + Number(weg / 2);
amount = /amount:amount - 1;
play();
Frame 197
gotoAndPlay ("wait loop");
Frame 198
if (Number(subwave) == 3) {
wave = Number(wave) + 1;
how_many = Number(how_many) + 1;
subwave = 1;
}
subwave = Number(subwave) + 1;
Frame 204
if (Number(wave) == 4) {
level = Number(level) + 1;
wave = 1;
bombstart = Number(bombstart) + 50;
x_level_set = Number(x_level_set) + 1;
x_level = Number(x_level) + 2.5;
y_level_set = Number(y_level_set) + 0.5;
y_level = Number(y_level) + 1;
if (Number(fire_set) > 75) {
fire_set = fire_set - 75;
}
if (Number(fire_level) > 50) {
fire_level = fire_level - 50;
}
how_many = 4;
Set(/levelani:level, level);
tellTarget ("_root.powerup") {
gotoAndStop (1);
};
tellTarget ("/levelani") {
play();
};
stop();
}
Frame 217
tellTarget ("/amount") {
amount = 1;
n = 0;
};
n = 100;
y = 0;
finished = 0;
weg = 0;
temptreffer = 0;
gotoAndPlay ("startover");
Frame 287
v = 0;
while (Number(v) < 50) {
removeMovieClip("alien" add v);
removeMovieClip("drop" add v);
v = Number(v) + 1;
}
stopAllSounds();
Frame 314
stop();
Symbol 15 MovieClip Frame 1
var i = 1;
while (i < 80) {
duplicateMovieClip ("circle", "circle" + i, i);
setProperty("circle" + i, _rotation , i * 4.5);
setProperty("circle" + i, _alpha , 80 - i);
i++;
}
this.onEnterFrame = function () {
this._rotation = this._rotation - 17;
};
Symbol 25 Button
on (press) {
getURL ("http://www.ashagames.nl", "_blank");
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 72
_root.play();
Symbol 62 Button
on (release) {
if (powercode == "8833") {
_root.unlocker = "1";
tellTarget ("_root") {
play();
};
} else {
tellTarget ("_root.powerrater.invalidpowercode") {
play();
};
tellTarget ("_root") {
play();
};
}
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 26
gotoAndStop (1);
Symbol 70 MovieClip Frame 1
supergamerster = "yo";
Symbol 70 MovieClip Frame 49
stop();
Symbol 97 MovieClip Frame 50
stop();
Symbol 98 MovieClip Frame 1
_root.powerup._y = -50;
_root.powerup._x = Number(random(525) + 20);
go = 5000 + Number(random(3000));
eraf = random(25);
Symbol 98 MovieClip Frame 2
if (go <= 0) {
gotoAndPlay (4);
} else {
play();
}
Symbol 98 MovieClip Frame 3
go = Number(go) - Number(eraf);
gotoAndPlay (2);
Instance of Symbol 85 MovieClip in Symbol 98 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.schiff)) {
tellTarget ("_root") {
score = Number(score) + 35;
};
powerup = new Sound();
powerup.attachSound("powerup");
powerup.start(0, 1);
tellTarget ("_root.shield") {
gotoAndPlay (1);
};
tellTarget ("_root.shield.balkje") {
gotoAndStop (1);
};
tellTarget ("_root.powerup") {
_y = -50;
_x = Number(random(525) + 20);
gotoAndPlay (1);
};
}
}
Symbol 98 MovieClip Frame 5
this._y = this._y + 4;
Symbol 98 MovieClip Frame 8
if (this._y >= 380) {
this._y = -50;
gotoAndPlay (9);
}
gotoAndPlay (4);
Symbol 98 MovieClip Frame 9
go = 800 + Number(random(400));
eraf = Number(go) - random(5);
Symbol 127 MovieClip Frame 2
stop();
Symbol 127 MovieClip Frame 3
stop();
Symbol 127 MovieClip Frame 4
stop();
Symbol 127 MovieClip Frame 5
stop();
Symbol 127 MovieClip Frame 6
stop();
Symbol 127 MovieClip Frame 7
stop();
Symbol 127 MovieClip Frame 8
stop();
Symbol 127 MovieClip Frame 9
stop();
Symbol 127 MovieClip Frame 10
stop();
Symbol 127 MovieClip Frame 11
stop();
Symbol 127 MovieClip Frame 12
stop();
Symbol 140 Button
on (press) {
startDrag ("/schiff", true, 25, 90, 550, 280);
tellTarget ("..") {
play();
};
gotoAndStop (2);
}
Symbol 141 Button
on (press) {
tellTarget ("..") {
n = Number(n) + 1;
shotnum = "shot" add n;
duplicateMovieClip ("/shot", shotnum, Number(n) + 100);
setProperty(shotnum, _x , getProperty("/schiff", _x));
setProperty(shotnum, _y , getProperty("/schiff", _y) - 20);
};
tellTarget ("../amount") {
n = Number(n) + 1;
};
play();
}
Symbol 142 MovieClip Frame 18
stop();
Symbol 144 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 2
stop();
if (Number(destroyed) != 0) {
gotoAndStop ("destruction");
}
Symbol 144 MovieClip Frame 6
gotoAndStop (2);
Symbol 144 MovieClip Frame 7
stopDrag();
play();
Symbol 144 MovieClip Frame 77
tellTarget ("_root.lives") {
nextFrame();
};
tellTarget ("_root.schiff") {
gotoAndPlay (1);
};
tellTarget ("_root.shield") {
gotoAndPlay (1);
};
tellTarget ("_root.shield.balkje") {
gotoAndStop (1);
};
Symbol 149 MovieClip Frame 1
stop();
level = Number(_root.level);
Symbol 149 MovieClip Frame 97
tellTarget ("..") {
play();
};
tellTarget ("_root.powerup") {
gotoAndPlay (1);
};
level = Number(level) + 1;
if (_root.level == 1) {
tellTarget ("_root.levelbonus") {
gotoAndStop (2);
};
}
if (_root.level == 2) {
tellTarget ("_root.levelbonus") {
gotoAndStop (3);
};
_root.score = _root.score + 40;
}
if (_root.level == 3) {
tellTarget ("_root.levelbonus") {
gotoAndStop (4);
};
_root.score = _root.score + 150;
}
if (_root.level == 4) {
tellTarget ("_root.levelbonus") {
gotoAndStop (5);
};
_root.score = _root.score + 270;
}
if (_root.level == 5) {
tellTarget ("_root.levelbonus") {
gotoAndStop (6);
};
_root.score = _root.score + 460;
}
if (_root.level == 6) {
tellTarget ("_root.levelbonus") {
gotoAndStop (7);
};
_root.score = _root.score + 700;
}
if (_root.level == 7) {
tellTarget ("_root.levelbonus") {
gotoAndStop (8);
};
_root.score = _root.score + 990;
}
if (_root.level == 8) {
tellTarget ("_root.levelbonus") {
gotoAndStop (9);
};
_root.score = _root.score + 1330;
}
if (_root.level == 9) {
tellTarget ("_root.levelbonus") {
gotoAndStop (10);
};
_root.score = _root.score + 1720;
}
if (_root.level == 10) {
tellTarget ("_root.levelbonus") {
gotoAndStop (11);
};
_root.score = _root.score + 2070;
}
if (_root.level == 11) {
tellTarget ("_root.levelbonus") {
gotoAndStop (12);
};
_root.score = _root.score + 2500;
}
if (_root.level > 11) {
_root.score = _root.score + 5500;
}
gotoAndStop (1);
Symbol 153 MovieClip Frame 1
yStep = -30;
Symbol 153 MovieClip Frame 2
_y = (Number(_y) + Number(yStep));
zahler = 1;
missileX = _x;
missileY = _y;
while (Number(zahler) < Number(Number(amount) + 1)) {
hittest = "/alien" add zahler;
alienY = getProperty(hittest, _y);
alienX = getProperty(hittest, _x);
if ((((Number(missileX) > Number(alienX - 40)) and (Number(missileX) < Number(Number(alienX) + 40))) and (Number(missileY) > Number(alienY - 30))) and (Number(missileY) < Number(Number(alienY) + 5))) {
tellTarget (".." add hittest) {
gotoAndStop (10);
};
removeMovieClip("");
}
zahler = Number(zahler) + 1;
}
Symbol 153 MovieClip Frame 3
gotoAndPlay (2);
if (Number(_y) <= 0) {
removeMovieClip("");
}
Symbol 160 MovieClip Frame 1
if (_root.level == 1) {
this.gotoAndStop(1);
}
if (_root.level == 2) {
this.gotoAndStop(1);
}
if (_root.level == 3) {
this.gotoAndStop(2);
}
if (_root.level == 4) {
this.gotoAndStop(2);
}
if (_root.level == 5) {
this.gotoAndStop(3);
}
if (_root.level == 6) {
this.gotoAndStop(3);
}
if (_root.level == 7) {
this.gotoAndStop(4);
}
if (_root.level == 8) {
this.gotoAndStop(4);
}
if (_root.level == 9) {
this.gotoAndStop(5);
}
if (_root.level == 10) {
this.gotoAndStop(5);
}
if (_root.level >= 11) {
this.gotoAndStop(6);
}
stop();
Symbol 160 MovieClip Frame 2
stop();
Symbol 160 MovieClip Frame 3
stop();
Symbol 160 MovieClip Frame 4
stop();
Symbol 160 MovieClip Frame 5
stop();
Symbol 160 MovieClip Frame 6
stop();
Symbol 162 MovieClip Frame 1
tellTarget ("../../") {
score = Number(score) + 1;
temptreffer = Number(temptreffer) + 1;
};
Symbol 162 MovieClip Frame 24
tellTarget ("..") {
removeMovieClip("");
};
Symbol 163 MovieClip Frame 1
x_level_set = _level0:x_level_set;
x_level = _level0:x_level;
y_level_set = _level0:y_level_set;
y_level = _level0:y_level;
fire_set = _level0:fire_set;
fire_level = _level0:fire_level;
bombstart = _level0:bombstart;
while (Number(xStep) < Number(x_level_set)) {
xStep = random(x_level);
}
while (Number(yStep) < Number(y_level_set)) {
yStep = random(y_level);
}
bombdrop = bombstart;
while (Number(firenow) < Number(fire_set)) {
firenow = random(fire_level);
}
tellTarget ("../amount") {
amount = Number(amount) + 1;
};
direction = random(25);
if (Number(direction) < 10) {
_x = -50;
_y = random(100);
if (Number(random(100)) < 30) {
_x = random(600);
_y = -30;
yStep = Number(yStep) + 5;
}
gotoAndPlay (6);
} else {
_x = -50;
_y = random(100);
if (Number(random(100)) < 30) {
_x = random(600);
_y = -30;
yStep = Number(yStep) + 5;
}
}
Symbol 163 MovieClip Frame 3
_x = (Number(_x) + Number(xStep));
_y = (Number(_y) + Number(yStep));
name = _name;
bombdrop = Number(bombdrop) + Number(random(50));
Set("/id:name", name);
if (name eq "alien") {
stop();
}
if (Number(bombdrop) >= Number(firenow)) {
tellTarget ("..") {
x = Number(x) + 1;
name = /id:name;
dropnum = "drop" add x;
duplicateMovieClip ("/drop", dropnum, x);
setProperty(dropnum, _x , getProperty(name, _x));
setProperty(dropnum, _y , getProperty(name, _y));
};
bombdrop = 0;
}
shipX = getProperty("/schiff", _x);
shipY = getProperty("/schiff", _y);
selfX = _x;
selfY = _y;
if ((((Number(shipX) > Number(selfX - 40)) and (Number(shipX) < Number(Number(selfX) + 40))) and (Number(shipY) > Number(selfY - 40))) and (Number(shipY) < Number(Number(selfY) + 40))) {
tellTarget ("../shield") {
nextFrame();
};
gotoAndStop (10);
}
Symbol 163 MovieClip Frame 4
gotoAndPlay (3);
if (Number(direction) < 5) {
if (Number(_x) >= 600) {
Set("_level0:weg", Number(_level0:weg) + 1);
removeMovieClip("");
}
} else if (Number(_x) >= 700) {
gotoAndPlay (6);
}
if (Number(_y) >= 292) {
Set("_level0:weg", Number(_level0:weg) + 1);
removeMovieClip("");
}
Symbol 163 MovieClip Frame 6
_x = (_x - xStep);
_y = (Number(_y) + Number(yStep));
name = _name;
bombdrop = Number(bombdrop) + Number(random(50));
Set("/id:name", name);
if (name eq "alien") {
stop();
}
if (Number(bombdrop) >= Number(firenow)) {
tellTarget ("..") {
x = Number(x) + 1;
name = /id:name;
dropnum = "drop" add x;
duplicateMovieClip ("/drop", dropnum, x);
setProperty(dropnum, _x , getProperty(name, _x));
setProperty(dropnum, _y , getProperty(name, _y));
};
bombdrop = 0;
}
shipX = getProperty("/schiff", _x);
shipY = getProperty("/schiff", _y);
selfX = _x;
selfY = _y;
if ((((Number(shipX) > Number(selfX - 40)) and (Number(shipX) < Number(Number(selfX) + 40))) and (Number(shipY) > Number(selfY - 40))) and (Number(shipY) < Number(Number(selfY) + 40))) {
tellTarget ("../shield") {
nextFrame();
};
gotoAndStop (10);
}
Symbol 163 MovieClip Frame 7
gotoAndPlay (6);
if (Number(direction) < 5) {
if (Number(_x) <= 0) {
gotoAndPlay (3);
}
} else if (Number(_x) <= Number(-50)) {
removeMovieClip("");
Set("_level0:weg", Number(_level0:weg) + 1);
}
if (Number(_y) > 292) {
Set("_level0:weg", Number(_level0:weg) + 1);
removeMovieClip("");
}
Symbol 163 MovieClip Frame 10
play();
Symbol 163 MovieClip Frame 15
newname = "debris";
_name = newname;
stop();
Symbol 168 MovieClip Frame 2
stop();
Symbol 169 MovieClip Frame 1
while (Number(yStep2) < 5) {
yStep2 = random(20);
}
Symbol 169 MovieClip Frame 2
_y = (Number(_y) + Number(yStep2));
shipX = getProperty("/schiff", _x);
shipY = getProperty("/schiff", _y);
dropX = _x;
dropY = _y;
if ((((Number(dropX) > Number(shipX - 30)) and (Number(dropX) < Number(Number(shipX) + 30))) and (Number(dropY) > Number(shipY - 30))) and (Number(dropY) < Number(Number(shipY) + 30))) {
tellTarget ("../shield") {
nextFrame();
};
removeMovieClip("");
}
Symbol 169 MovieClip Frame 3
gotoAndPlay (2);
if (Number(_y) > 285) {
removeMovieClip("");
}
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 2
gotoAndStop (1);
Symbol 173 MovieClip Frame 1
zahler = Number(n) + 100;
while (Number(zahler) >= 0) {
temp = "../shot" add zahler;
Set(temp add ":amount", amount);
zahler = zahler - 1;
}
Symbol 173 MovieClip Frame 2
zahler = n;
while (Number(zahler) >= 0) {
temp = "../shot" add zahler;
Set(temp add ":amount", amount);
zahler = zahler - 1;
}
gotoAndPlay (1);
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 10
stop();
Symbol 179 MovieClip Frame 20
stop();
Symbol 179 MovieClip Frame 30
mayday = new Sound();
mayday.attachSound("mayday");
mayday.start(0, 1);
stop();
Symbol 179 MovieClip Frame 40
stop();
Symbol 180 MovieClip Frame 115
stop();
Symbol 181 MovieClip Frame 120
stop();
Symbol 182 MovieClip Frame 2
play();
Symbol 182 MovieClip Frame 3
play();
Symbol 182 MovieClip Frame 4
stop();
Symbol 182 MovieClip Frame 5
tellTarget ("balkje") {
play();
};
stop();
Symbol 182 MovieClip Frame 6
tellTarget ("balkje") {
play();
};
stop();
Symbol 182 MovieClip Frame 7
tellTarget ("balkje") {
play();
};
stop();
Symbol 182 MovieClip Frame 8
tellTarget ("balkje") {
play();
};
stop();
tellTarget ("../schiff") {
gotoAndPlay ("destruction");
};
Symbol 182 MovieClip Frame 81
stop();
tellTarget ("../schiff") {
gotoAndPlay ("destruction");
};
Symbol 182 MovieClip Frame 82
stop();
Symbol 182 MovieClip Frame 83
stop();
Symbol 182 MovieClip Frame 84
stop();
Symbol 182 MovieClip Frame 85
stop();
Symbol 182 MovieClip Frame 86
stop();
Symbol 182 MovieClip Frame 87
stop();
Symbol 182 MovieClip Frame 88
stop();
Symbol 182 MovieClip Frame 89
stop();
Symbol 182 MovieClip Frame 90
stop();
Symbol 182 MovieClip Frame 91
stop();
Symbol 182 MovieClip Frame 92
stop();
Symbol 182 MovieClip Frame 93
stop();
Symbol 182 MovieClip Frame 94
stop();
Symbol 182 MovieClip Frame 95
stop();
Symbol 182 MovieClip Frame 96
stop();
Symbol 182 MovieClip Frame 97
stop();
Symbol 193 MovieClip Frame 1
if (_root.unlocker == "1") {
gotoAndStop (2);
} else {
gotoAndStop (9);
}
Symbol 193 MovieClip Frame 2
stop();
Symbol 193 MovieClip Frame 3
stop();
Symbol 193 MovieClip Frame 4
stop();
Symbol 193 MovieClip Frame 5
stop();
Symbol 193 MovieClip Frame 6
stop();
Symbol 193 MovieClip Frame 7
stop();
Symbol 193 MovieClip Frame 8
stop();
Symbol 193 MovieClip Frame 9
stop();
Symbol 193 MovieClip Frame 10
stop();
Symbol 193 MovieClip Frame 11
stop();
Symbol 193 MovieClip Frame 12
tellTarget ("..") {
gotoAndPlay ("gameover");
};
stop();
Symbol 195 MovieClip Frame 20
stop();
Symbol 203 Button
on (press) {
getURL ("http://www.ashagames.nl", "_blank");
}
Symbol 207 Button
on (press) {
gotoAndPlay (30);
}