Frame 1
MochiAd.showPreGameAd({id:"882831d3fc5d5ea9", res:"700x460", background:16777215, color:12829635, outline:0, no_bg:true});
mochi.MochiServices.connect("882831d3fc5d5ea9");
Frame 5
var sound_brick = new Sound(this);
sound_brick.attachSound("brick");
var sound_brickturn = new Sound(this);
sound_brickturn.attachSound("brickturn");
var sound_flip = new Sound(this);
sound_flip.attachSound("flip");
var sound_slurp = new Sound(this);
sound_slurp.attachSound("slurp");
var sound_komop = new Sound(this);
sound_komop.attachSound("komop");
var sound_levelup = new Sound(this);
sound_levelup.attachSound("levelup");
var sound_pong = new Sound(this);
sound_pong.attachSound("zippit");
var sound_but = new Sound(this);
sound_but.attachSound("pong");
var sound_fw1 = new Sound(this);
sound_fw1.attachSound("fw1");
var sound_fw2 = new Sound(this);
sound_fw2.attachSound("fw2");
var sound_introstil3 = new Sound(this);
sound_introstil3.attachSound("introstil3");
sound_introstil3.start(0, 9999);
kadermask = attachMovie("kadermask", "kadermask", 5000, {_x:330.5, _y:243.5});
_focusrect = false;
initlevel = 0;
initscore = 0;
doggshared = SharedObject.getLocal("doggsharedn");
if (doggshared.data.lvl > 1) {
initlevel = doggshared.data.lvl;
initscore = doggshared.data.score;
inittries = doggshared.data.tries;
}
stop();
Frame 10
sound_introstil3.stop();
stop();
Symbol 15 MovieClip [button1_mc] Frame 1
function answer() {
answered = true;
}
function noResponse() {
if (!answered) {
getURL ("http://jayisgames.com/cgdc5/?ref=a32ec863");
}
}
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("answer", this, answer);
}
var answered = false;
button_mc.onRelease = function () {
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call("cgdc5close");
}
setTimeout(noResponse, 500);
};
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("a32ec863", this, 10301, true);
Symbol 32 MovieClip [stapel3] Frame 1
maxhoogte = attachMovie("maxhoogte", "maxhoogte", 1000, {_x:0, _y:this._y - 16});
maxhoogte.cijfer.gotoAndPlay("cijfer" + maxblocks);
Symbol 32 MovieClip [stapel3] Frame 2
stop();
Symbol 34 Button
on (release) {
if (_parent.loopit) {
if (flipped) {
flipped = false;
} else {
flipped = true;
}
_parent._parent.sound_flip.start();
gotoAndPlay ("update");
}
}
Symbol 35 MovieClip [stapel7] Frame 1
doggstaat = attachMovie("doggstaat", "doggstaat", 1000, {_x:0, _y:this._y - 16});
coke = attachMovie("coke", "coke", 1250, {_x:0, _y:this._y - 16});
cokeachter = attachMovie("cokeachter", "cokeachter", 990, {_x:2, _y:this._y - 16});
doggstaat._xscale = doggstaat._xscale * -1;
coke._xscale = coke._xscale * -1;
cokeachter._xscale = cokeachter._xscale * -1;
Symbol 35 MovieClip [stapel7] Frame 2
stop();
Symbol 35 MovieClip [stapel7] Frame 4
if (flipped) {
coke._visible = false;
if (blik) {
cokeachter._visible = true;
} else {
cokeachter._visible = false;
}
doggstaat.gotoAndPlay("achter");
} else {
cokeachter._visible = false;
if (blik) {
coke._visible = true;
} else {
coke._visible = false;
}
doggstaat.gotoAndPlay("voor");
}
Symbol 35 MovieClip [stapel7] Frame 6
stop();
Symbol 36 Button
on (release) {
if (_parent.loopit) {
if (flipped) {
flipped = false;
} else {
flipped = true;
}
_parent._parent.sound_flip.start();
gotoAndPlay ("update");
}
}
Symbol 37 MovieClip [stapel8] Frame 1
doggstaat = attachMovie("doggstaat", "doggstaat", 1000, {_x:0, _y:this._y - 16});
superbone = attachMovie("superbone", "superbone", 1250, {_x:0, _y:this._y - 16});
superboneachter = attachMovie("superboneachter", "superboneachter", 990, {_x:2, _y:this._y - 16});
doggstaat._xscale = doggstaat._xscale * -1;
superbone._xscale = superbone._xscale * -1;
superboneachter._xscale = superboneachter._xscale * -1;
Symbol 37 MovieClip [stapel8] Frame 2
stop();
Symbol 37 MovieClip [stapel8] Frame 4
if (flipped) {
superbone._visible = false;
if (superbeen) {
superboneachter._visible = true;
} else {
superboneachter._visible = false;
}
doggstaat.gotoAndPlay("achter");
} else {
superboneachter._visible = false;
if (superbeen) {
superbone._visible = true;
} else {
superbone._visible = false;
}
doggstaat.gotoAndPlay("voor");
}
Symbol 37 MovieClip [stapel8] Frame 6
stop();
Symbol 38 Button
on (release) {
if (_parent.loopit) {
if (flipped) {
flipped = false;
} else {
flipped = true;
}
_parent._parent.sound_flip.start();
gotoAndPlay ("update");
}
}
Symbol 39 MovieClip [stapel4] Frame 1
doggstaat = attachMovie("doggstaat", "doggstaat", 1000, {_x:0, _y:this._y - 16});
bone = attachMovie("bone", "bone", 1250, {_x:0, _y:this._y - 16});
boneachter = attachMovie("boneachter", "boneachter", 990, {_x:2, _y:this._y - 16});
doggstaat._xscale = doggstaat._xscale * -1;
bone._xscale = bone._xscale * -1;
boneachter._xscale = boneachter._xscale * -1;
Symbol 39 MovieClip [stapel4] Frame 2
stop();
Symbol 39 MovieClip [stapel4] Frame 4
if (flipped) {
bone._visible = false;
if (been) {
boneachter._visible = true;
} else {
boneachter._visible = false;
}
doggstaat.gotoAndPlay("achter");
} else {
boneachter._visible = false;
if (been) {
bone._visible = true;
} else {
bone._visible = false;
}
doggstaat.gotoAndPlay("voor");
}
Symbol 39 MovieClip [stapel4] Frame 6
stop();
Symbol 40 Button
on (release) {
if (_parent.loopit) {
if (flipped) {
flipped = false;
} else {
flipped = true;
}
_parent._parent.sound_flip.start();
gotoAndPlay ("update");
}
}
Symbol 41 MovieClip [stapel5] Frame 1
doggstaat = attachMovie("doggstaat", "doggstaat", 1000, {_x:0, _y:this._y - 16});
maaltwee = attachMovie("maaltwee", "maaltwee", 1250, {_x:0, _y:this._y - 16});
rondpuntachter = attachMovie("rondpuntachter", "rondpuntachter", 990, {_x:2, _y:this._y - 16});
Symbol 41 MovieClip [stapel5] Frame 2
stop();
Symbol 41 MovieClip [stapel5] Frame 4
if (flipped) {
maaltwee._visible = false;
rondpuntachter._visible = true;
doggstaat.gotoAndPlay("achter");
} else {
maaltwee._visible = true;
rondpuntachter._visible = false;
doggstaat.gotoAndPlay("voor");
}
Symbol 41 MovieClip [stapel5] Frame 6
stop();
Symbol 42 Button
on (release) {
if (_parent.loopit) {
if (flipped) {
flipped = false;
} else {
flipped = true;
}
_parent._parent.sound_flip.start();
gotoAndPlay ("update");
}
}
Symbol 43 MovieClip [stapel6] Frame 1
doggstaat = attachMovie("doggstaat", "doggstaat", 1000, {_x:0, _y:this._y - 16});
verboden = attachMovie("verboden", "verboden", 1250, {_x:0, _y:this._y - 16});
rondpuntachter = attachMovie("rondpuntachter", "rondpuntachter", 990, {_x:2, _y:this._y - 16});
Symbol 43 MovieClip [stapel6] Frame 2
stop();
Symbol 43 MovieClip [stapel6] Frame 4
if (flipped) {
verboden._visible = false;
rondpuntachter._visible = true;
doggstaat.gotoAndPlay("achter");
} else {
verboden._visible = true;
rondpuntachter._visible = false;
doggstaat.gotoAndPlay("voor");
}
Symbol 43 MovieClip [stapel6] Frame 6
stop();
Symbol 44 Button
on (release) {
if (_parent.loopit) {
if (flipped) {
flipped = false;
} else {
flipped = true;
}
_parent._parent.sound_flip.start();
gotoAndPlay ("update");
}
}
Symbol 45 MovieClip [stapel2] Frame 1
doggstaat = attachMovie("doggstaat", "doggstaat", 1000, {_x:0, _y:this._y - 16});
rondpunt = attachMovie("rondpunt", "rondpunt", 1250, {_x:0, _y:this._y - 16});
rondpuntachter = attachMovie("rondpuntachter", "rondpuntachter", 990, {_x:2, _y:this._y - 16});
Symbol 45 MovieClip [stapel2] Frame 2
stop();
Symbol 45 MovieClip [stapel2] Frame 4
if (flipped) {
rondpunt._visible = false;
rondpuntachter._visible = true;
doggstaat.gotoAndPlay("achter");
} else {
rondpunt._visible = true;
rondpuntachter._visible = false;
doggstaat.gotoAndPlay("voor");
}
Symbol 45 MovieClip [stapel2] Frame 6
stop();
Symbol 46 Button
on (release) {
if (_parent.loopit) {
if (flipped) {
flipped = false;
} else {
flipped = true;
}
_parent._parent.sound_flip.start();
gotoAndPlay ("update");
}
}
Symbol 47 MovieClip [stapel1] Frame 1
doggblocks = attachMovie("doggblocks", "doggblocks", 1000, {_x:0, _y:this._y - 16});
Symbol 47 MovieClip [stapel1] Frame 2
stop();
Symbol 47 MovieClip [stapel1] Frame 4
var i = 0;
while (i < blocksarray.length) {
blocksarray[i].removeMovieClip();
i++;
}
blocksarray = new Array();
if (flipped) {
blokdiepte = 500;
doggblocks.gotoAndPlay("achter");
xoffs = 3;
} else {
blokdiepte = 2000;
doggblocks.gotoAndPlay("voor");
xoffs = 0;
}
var i = 0;
while (i < nbrblocks) {
blok = attachMovie("blok" + blockskleurarray[i], "blok" + blokdiepte, blokdiepte, {_x:-xoffs, _y:(this._y - 18) - (i * 12)});
if (flipped) {
blok._xscale = blok._xscale * -1;
}
blokdiepte++;
blocksarray[i] = blok;
i++;
}
Symbol 47 MovieClip [stapel1] Frame 6
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 55 MovieClip Frame 4
var i = 0;
while (i < blocksarray.length) {
blocksarray[i].removeMovieClip();
i++;
}
blocksarray = new Array();
blokdiepte = 4000;
var i = 0;
while (i < nbrblocks) {
blok = attachMovie("blok" + blockskleurarray[i], "blok" + blokdiepte, blokdiepte, {_x:0, _y:this._y - (i * 12)});
blokdiepte++;
blocksarray[i] = blok;
i++;
}
Symbol 55 MovieClip Frame 6
stop();
Symbol 69 MovieClip Frame 1
if (_parent._parent.turbospeed) {
gotoAndPlay (5);
}
Symbol 69 MovieClip Frame 6
if (_parent._parent.turbospeed) {
gotoAndPlay (10);
}
Symbol 69 MovieClip Frame 11
if (_parent._parent.turbospeed) {
gotoAndPlay (15);
}
Symbol 69 MovieClip Frame 16
if (_parent._parent.turbospeed) {
gotoAndPlay (20);
}
Symbol 69 MovieClip Frame 21
if (_parent._parent.turbospeed) {
gotoAndPlay (24);
}
Symbol 75 MovieClip [doggstaat] Frame 2
stop();
Symbol 75 MovieClip [doggstaat] Frame 4
stop();
Symbol 80 MovieClip [doggblocks] Frame 2
stop();
Symbol 80 MovieClip [doggblocks] Frame 4
stop();
Symbol 95 MovieClip [ffader] Frame 15
stop();
Symbol 104 MovieClip Frame 14
stop();
Symbol 105 MovieClip [bluebit] Frame 40
stop();
Symbol 112 Button
on (release) {
_parent._parent.lvltry = 0;
_parent._parent._parent.sound_but.start();
_parent._parent.gotoAndPlay("levelsetup");
}
Symbol 119 MovieClip [levelendokmovie] Frame 30
Symbol 119 MovieClip [levelendokmovie] Frame 60
_parent._parent.sound_pong.start();
Symbol 119 MovieClip [levelendokmovie] Frame 62
stop();
Symbol 120 Button
on (release) {
_parent._parent._parent.sound_but.start();
_parent._parent.gotoAndPlay("levelsetup");
}
Symbol 124 MovieClip [levelendmovie] Frame 1
_parent._parent.sound_pong.start();
Symbol 124 MovieClip [levelendmovie] Frame 3
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 136 MovieClip Frame 4
stop();
Symbol 136 MovieClip Frame 6
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 4
var i = 0;
while (i < solblocksarray.length) {
solblocksarray[i].removeMovieClip();
i++;
}
solblocksarray = new Array();
solblokdiepte = 5500;
var i = 0;
while (i < nbrblocks) {
solblok = attachMovie("blok" + blockskleurarray[i], "solblok" + solblokdiepte, solblokdiepte, {_x:0, _y:i * 12});
solblokdiepte++;
solblocksarray[i] = solblok;
i++;
}
Symbol 142 MovieClip Frame 6
stop();
Symbol 144 MovieClip Frame 2
stop();
Symbol 144 MovieClip Frame 4
stop();
Symbol 144 MovieClip Frame 6
stop();
Symbol 144 MovieClip Frame 8
stop();
Symbol 144 MovieClip Frame 10
stop();
Symbol 144 MovieClip Frame 12
stop();
Symbol 144 MovieClip Frame 14
stop();
Symbol 144 MovieClip Frame 16
stop();
Symbol 144 MovieClip Frame 18
stop();
Symbol 145 Button
on (release) {
_parent._parent._parent.sound_but.start();
_parent._parent.gotoAndPlay("level");
}
Symbol 154 MovieClip [leveltekstmovie] Frame 1
_parent._parent.sound_pong.start();
Symbol 154 MovieClip [leveltekstmovie] Frame 4
stop();
Symbol 155 Button
on (release) {
_parent._parent._parent.sound_but.start();
_parent._parent.gotoAndPlay("levelsetup");
}
Symbol 175 MovieClip Frame 2
stop();
Symbol 175 MovieClip Frame 4
stop();
Symbol 175 MovieClip Frame 6
stop();
Symbol 175 MovieClip Frame 8
stop();
Symbol 175 MovieClip Frame 10
stop();
Symbol 175 MovieClip Frame 12
stop();
Symbol 175 MovieClip Frame 14
stop();
Symbol 175 MovieClip Frame 16
stop();
Symbol 175 MovieClip Frame 18
stop();
Symbol 175 MovieClip Frame 20
stop();
Symbol 175 MovieClip Frame 22
stop();
Symbol 175 MovieClip Frame 24
stop();
Symbol 175 MovieClip Frame 26
stop();
Symbol 175 MovieClip Frame 28
stop();
Symbol 175 MovieClip Frame 30
stop();
Symbol 175 MovieClip Frame 32
stop();
Symbol 175 MovieClip Frame 34
stop();
Symbol 175 MovieClip Frame 36
stop();
Symbol 175 MovieClip Frame 38
stop();
Symbol 175 MovieClip Frame 40
stop();
Symbol 175 MovieClip Frame 42
stop();
Symbol 175 MovieClip Frame 44
stop();
Symbol 175 MovieClip Frame 46
stop();
Symbol 175 MovieClip Frame 48
stop();
Symbol 175 MovieClip Frame 50
stop();
Symbol 175 MovieClip Frame 52
stop();
Symbol 175 MovieClip Frame 54
stop();
Symbol 175 MovieClip Frame 56
stop();
Symbol 175 MovieClip Frame 58
stop();
Symbol 175 MovieClip Frame 60
stop();
Symbol 175 MovieClip Frame 62
stop();
Symbol 175 MovieClip Frame 64
stop();
Symbol 175 MovieClip Frame 66
stop();
Symbol 175 MovieClip Frame 68
stop();
Symbol 175 MovieClip Frame 70
stop();
Symbol 175 MovieClip Frame 72
stop();
Symbol 175 MovieClip Frame 74
stop();
Symbol 175 MovieClip Frame 76
stop();
Symbol 175 MovieClip Frame 78
stop();
Symbol 175 MovieClip Frame 80
stop();
Symbol 175 MovieClip Frame 82
stop();
Symbol 175 MovieClip Frame 84
stop();
Symbol 175 MovieClip Frame 86
stop();
Symbol 175 MovieClip Frame 88
stop();
Symbol 175 MovieClip Frame 90
stop();
Symbol 175 MovieClip Frame 92
stop();
Symbol 175 MovieClip Frame 94
stop();
Symbol 175 MovieClip Frame 96
stop();
Symbol 175 MovieClip Frame 98
stop();
Symbol 175 MovieClip Frame 100
stop();
Symbol 175 MovieClip Frame 102
stop();
Symbol 176 MovieClip [castle] Frame 1
stop();
Symbol 176 MovieClip [castle] Frame 2
upgr.gotoAndPlay("upgrade");
Symbol 247 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.2");
}
static function allowDomains(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);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 248 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {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();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(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);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[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]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 249 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if (options.clip != mochi.MochiServices.__get__clip()) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 183 MovieClip Frame 1
function answer() {
answered = true;
}
function noResponse() {
if (!answered) {
getURL ("http://jayisgames.com/cgdc5/?ref=a32ec863");
}
}
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.addCallback("answer", this, answer);
}
var answered = false;
button_mc.onRelease = function () {
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call("cgdc5close");
}
setTimeout(noResponse, 500);
};
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("a32ec863", this, 10301, true);
Symbol 186 Button
on (release) {
_parent._parent.initlevel = 0;
_parent._parent.initscore = 0;
_parent._parent.sound_but.start();
_parent._parent.gotoAndPlay("spel");
}
Symbol 187 Button
on (release) {
_parent._parent.sound_but.start();
_parent._parent.gotoAndPlay("spel");
}
Symbol 188 Button
on (release) {
_parent._parent.sound_but.start();
mochi.MochiScores.showLeaderboard({boardID:"442c0b0d081e3f9c", onClose:function () {
_parent.gotoAndPlay("intro");
}});
}
Symbol 189 Button
on (release) {
_parent._parent.sound_but.start();
getURL ("http://www.bontegames.com", "_blank");
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 30
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
_parent._parent.sound_brickturn.start();
Symbol 201 MovieClip Frame 8
_parent._parent.sound_brickturn.start();
Symbol 201 MovieClip Frame 14
_parent._parent.sound_brickturn.start();
Symbol 201 MovieClip Frame 30
_parent._parent.sound_levelup.start();
_parent.castle.cast.gotoAndPlay("l" + _parent.lvl);
_parent.castle.gotoAndPlay("shake");
Symbol 206 MovieClip Frame 30
_parent._parent.sound_pong.start();
Symbol 206 MovieClip Frame 33
stop();
Symbol 212 Button
on (release) {
loopit = false;
var i = 0;
while (i < doggsarray.length) {
doggsarray[i].removeMovieClip();
i++;
}
doggsarray = new Array();
_parent.sound_but.start();
gotoAndPlay ("quitpart");
}
Symbol 214 Button
on (release) {
loopit = false;
var i = 0;
while (i < doggsarray.length) {
doggsarray[i].removeMovieClip();
i++;
}
doggsarray = new Array();
_parent.sound_but.start();
gotoAndPlay ("levelsetup");
}
Symbol 215 Button
on (release) {
if (!turbospeed) {
turbospeed = true;
witnormal._visible = false;
witturbo._visible = true;
} else {
turbospeed = false;
witnormal._visible = true;
witturbo._visible = false;
}
}
Symbol 216 Button
on (release) {
if (!turbospeed) {
turbospeed = true;
witnormal._visible = false;
witturbo._visible = true;
} else {
turbospeed = false;
witnormal._visible = true;
witturbo._visible = false;
}
}
Symbol 221 MovieClip Frame 1
n = 8;
while (n < 50) {
fw1 = attachMovie("bluebit", "bluebit" + n, n);
fw1._rotation = random(360);
fw1._alpha = random(30) + 80;
fw1._xscale = 50 + Number(random(60));
fw1._yscale = 50 + Number(random(60));
fw1.gotoAndPlay(random(5));
n++;
}
Symbol 222 MovieClip Frame 31
snbr = random(2);
if (snbr == 0) {
_parent._parent._parent.sound_fw1.start();
} else {
_parent._parent._parent.sound_fw2.start();
}
Symbol 223 MovieClip Frame 45
snbr = random(2);
if (snbr == 0) {
_parent._parent._parent.sound_fw1.start();
} else {
_parent._parent._parent.sound_fw2.start();
}
Symbol 223 MovieClip Frame 130
snbr = random(2);
if (snbr == 0) {
_parent._parent._parent.sound_fw1.start();
} else {
_parent._parent._parent.sound_fw2.start();
}
Symbol 224 MovieClip Frame 42
snbr = random(2);
if (snbr == 0) {
_parent._parent._parent.sound_fw1.start();
} else {
_parent._parent._parent.sound_fw2.start();
}
Symbol 224 MovieClip Frame 56
snbr = random(2);
if (snbr == 0) {
_parent._parent._parent.sound_fw1.start();
} else {
_parent._parent._parent.sound_fw2.start();
}
Symbol 225 MovieClip Frame 72
snbr = random(2);
if (snbr == 0) {
_parent._parent._parent.sound_fw1.start();
} else {
_parent._parent._parent.sound_fw2.start();
}
Symbol 225 MovieClip Frame 122
snbr = random(2);
if (snbr == 0) {
_parent._parent._parent.sound_fw1.start();
} else {
_parent._parent._parent.sound_fw2.start();
}
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
stop();
Symbol 229 MovieClip Frame 1
teller = 3;
effewachte = 0;
var l = new Array(" ", " ", " ", " ", "Nice one! You did it!", "You have completed all 50 doggnation levels!", "This game was created for the fifth jayisgames competition.", "The goal was to design an 'upgrade'-themed game.", "I hope you enjoyed it.", "At first I was going to do a tower defence clone,", "where the 'doggs' were going to attack the castle,", "but how could one hurt those poor little dogs :)", "So I thought some longer to come up with a more original game concept.", "So thanks to Jay and the jayisgames.com people", "for making me do games I wouldn't normally think of", "and for ruining lots of my spare time :)", " ", "See you all later for more BONTE games!", "Please visit www.bontegames.com for future bonte games ...", "You can contact me at bontegames@gmail.com", " ", "Are you still reading this?", "Ok, let's make this the longest bonte endscroll ever :)", "Did you already submit your final score?", "I'm using the excellent new mochiads leaderboard service for the highscores.", "Which gave me also the opporunity to enter the mochiads", "become a rock star flash games contest.", "The highest possible score you can reach", "is by completing all levels in one go which should give", "calculate calculate calculate ...", "... hold on ...", "51000 points", "if I calculated this correctly of course.", "Now let's see who's the first one to reach this score!", " ", "Well did you dig the name of the game?", "A big hello to Kevin and Alex from diggnation.", "Your podcast rules guys!", "Check them out at www.diggnation.com", "They of course inspired me to name the game doggnation", "with tha double gee ...", " ", "Still reading are you?", "Well as Klaxons would sing:", "It's not over, not over, not over", "yet", "...", " ", "So let's talk about future bontegames.", "I believe in the Factory Balls endscroll I said I would", "do a proper point and click game next, but then this", "competion came along, so one never knows.", "So, with reservations, some future bonte projects are:", "- an escape game but not set in a room", "- a logic game along the lines of SeenOnScreen", "- Factory Balls 2", " ", "Well I guess it's really time to end this scroll now", "What do you think?", "See you all soon", "at www.bontegames.com", "Cheers!", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "Welcome to the hidden part of the endscroll :)", "Of course we're not yet at the end :)", "Time for some muscical influences!", "During the making of this game I have been listening", "a lot to the Tim Vanhamel record, Tim's the lead", "singer of the Belgian group Millionaire.", "I've been listening to the new Nine Inch Nails Ghosts project as well,", "and some 'oldies' like the fantastic Jesus And Mary Chain", "and Echo And The Bunnymen.", "Ok, I know all this info is totaly irrelevant :)", "Well then, that's it for the hidden scrollpart.", ".....", "....", "...", "..", ".", "o", "oo", "ooo", "oooooooooooooo", "bye!", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", "o", "oo", "ooo", "sorry :) well if you're still reading", "you must be really really bored right :)", "why don't you visit my site instead :)", "www.bontegames.com", "www.bontegames.com", "www.bontegames.com", "www.bontegames.com", "www.bontegames.com", "Cheers :)", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ");
Symbol 229 MovieClip Frame 2
scrolbar.tekst = l[teller];
if (teller < 150) {
teller++;
} else {
teller = 0;
}
Symbol 229 MovieClip Frame 140
gotoAndPlay ("loop");
Symbol 230 Button
on (release) {
_parent._parent._parent.sound_but.start();
mochi.MochiScores.showLeaderboard({boardID:"442c0b0d081e3f9c", score:_parent._parent.finalscor, onClose:function () {
}});
}
Symbol 234 Button
on (release) {
_parent._parent._parent.sound_but.start();
_parent._parent._parent.gotoAndPlay("intro");
}
Symbol 237 MovieClip Frame 60
_parent.lucht.gotoAndPlay("donker");
Symbol 237 MovieClip Frame 70
_parent.vuurwerk.gotoAndPlay("vuur");
Symbol 237 MovieClip Frame 450
_parent._parent.sound_pong.start();
Symbol 237 MovieClip Frame 453
stop();
Symbol 238 Button
on (release) {
_parent._parent._parent.sound_but.start();
mochi.MochiScores.showLeaderboard({boardID:"442c0b0d081e3f9c", score:_parent._parent.scor, onClose:function () {
_parent._parent._parent.gotoAndPlay("intro");
}});
}
Symbol 245 MovieClip Frame 1
_parent._parent.sound_pong.start();
Symbol 245 MovieClip Frame 3
stop();
Symbol 246 MovieClip Frame 1
loopit = false;
testcast = 1;
lvltry = 0;
struikvoor = attachMovie("struikvoor", "struikvoor", 3500, {_x:335, _y:-10});
zwartvoor = attachMovie("zwartvoor", "zwartvoor", 3501, {_x:325, _y:37.75});
ffader = attachMovie("ffader", "ffader", 4000, {_x:50, _y:-75});
lvl_setup = new Array([2, 200, 2, "32", 3, 1, 150, 3, 3, 3, 3, 1, 300, 3, 2, 2, 2, 1, 450, 3, 1, 1, 1], [2, 200, 2, "21", 3, 1, 150, 3, 1, 3, 2, 1, 300, 3, 3, 2, 1, 1, 450, 3, 3, 2, 1], [2, 200, 2, "123", 4, 1, 150, 3, 3, 1, 3, 1, 250, 3, 2, 2, 2, 1, 350, 3, 1, 3, 1, 2, 450], [2, 200, 2, "2121", 5, 1, 150, 1, 2, 1, 225, 2, 1, 2, 1, 300, 3, 1, 2, 1, 1, 375, 2, 1, 2, 1, 450, 1, 1], [2, 200, 2, "1221", 6, 1, 75, 2, 2, 1, 1, 150, 2, 1, 2, 2, 225, 1, 300, 2, 2, 2, 1, 375, 2, 1, 1, 2, 450], [1, 200, 1, "123", 6, 1, 75, 1, 1, 1, 150, 1, 2, 3, 225, 1, 1, 300, 1, 3, 1, 375, 1, 2, 1, 450, 1, 3], [3, 200, 1, "22222", 5, 1, 150, 3, 1, 1, 2, 1, 225, 3, 1, 2, 1, 1, 300, 3, 2, 1, 1, 1, 375, 3, 1, 2, 1, 1, 450, 3, 1, 1, 2], [2, 200, 2, "123", 6, 1, 75, 2, 3, 3, 1, 150, 2, 3, 2, 1, 225, 2, 2, 3, 3, 300, 2, 1, 375, 2, 1, 1, 2, 450], [2, 200, 2, "1221", 6, 1, 75, 1, 2, 1, 150, 2, 2, 2, 1, 225, 3, 2, 1, 1, 2, 300, 1, 375, 2, 1, 2, 1, 450, 1, 1], [4, 200, 1, "1234", 4, 1, 150, 4, 4, 3, 2, 1, 1, 250, 4, 4, 3, 2, 1, 1, 350, 4, 4, 3, 2, 1, 1, 450, 4, 4, 3, 2, 1], [2, 200, 2, "1221", 7, 1, 150, 2, 2, 1, 1, 200, 2, 1, 2, 2, 250, 1, 300, 2, 1, 2, 2, 350, 1, 400, 2, 1, 2, 1, 450, 2, 2, 1], [2, 200, 2, "321", 4, 4, 150, 1, 250, 3, 3, 2, 1, 4, 350, 1, 450, 3, 3, 2, 1], [2, 200, 2, "111", 5, 1, 150, 2, 2, 1, 1, 225, 2, 1, 1, 1, 300, 2, 2, 1, 4, 375, 1, 450, 2, 1, 1], [2, 200, 2, "321", 7, 1, 150, 2, 1, 3, 1, 200, 2, 1, 3, 4, 250, 4, 300, 1, 350, 2, 3, 3, 1, 400, 2, 2, 1, 1, 450, 2, 2, 1], [5, 200, 5, "123", 5, 1, 150, 3, 1, 1, 1, 1, 225, 3, 2, 1, 1, 1, 300, 3, 2, 3, 2, 1, 375, 3, 2, 3, 2, 1, 450, 3, 3, 3, 3], [3, 200, 3, "111", 4, 4, 150, 1, 250, 4, 1, 1, 1, 1, 1, 350, 3, 1, 1, 1, 1, 450, 2, 1, 1], [2, 200, 2, "1212", 7, 1, 150, 2, 1, 1, 1, 200, 2, 2, 1, 1, 250, 2, 1, 1, 5, 300, 1, 350, 1, 2, 1, 400, 1, 1, 1, 450, 1, 2], [3, 200, 1, "23232", 5, 1, 150, 3, 2, 3, 3, 1, 225, 3, 2, 3, 2, 1, 300, 3, 3, 3, 2, 1, 375, 3, 3, 2, 2, 1, 450, 3, 3, 2, 3], [3, 200, 3, "11111", 7, 1, 150, 3, 1, 2, 1, 1, 200, 3, 1, 2, 1, 1, 250, 3, 2, 1, 1, 1, 300, 3, 1, 2, 1, 1, 350, 3, 1, 2, 1, 5, 400, 1, 450, 3, 1, 1, 1], [3, 200, 3, "123", 5, 4, 150, 1, 225, 5, 2, 1, 3, 3, 1, 1, 300, 5, 3, 2, 1, 2, 2, 1, 375, 5, 3, 1, 2, 1, 3, 2, 450], [3, 200, 1, "3313", 5, 1, 150, 3, 3, 2, 1, 1, 225, 3, 3, 1, 2, 1, 300, 3, 2, 3, 2, 1, 375, 3, 3, 2, 1, 2, 450], [4, 200, 3, "321", 4, 1, 150, 3, 2, 3, 2, 1, 250, 3, 3, 2, 3, 1, 350, 3, 2, 1, 2, 1, 450, 3, 1, 2, 1], [2, 200, 1, "231", 4, 1, 150, 1, 1, 1, 250, 1, 2, 1, 350, 1, 3, 6, 450], [2, 200, 2, "121", 5, 4, 150, 1, 225, 3, 2, 2, 1, 1, 300, 3, 2, 2, 2, 1, 375, 3, 1, 2, 2, 1, 450, 3, 1, 1, 1], [3, 200, 1, "2211", 5, 1, 150, 3, 1, 1, 1, 1, 225, 3, 2, 1, 2, 1, 300, 3, 1, 2, 1, 6, 375, 6, 450], [3, 200, 3, "21212", 6, 1, 75, 1, 1, 1, 150, 3, 1, 2, 2, 1, 225, 2, 2, 1, 5, 300, 2, 375, 1, 450, 3, 2, 2, 2], [3, 200, 3, "12", 5, 1, 150, 3, 4, 1, 1, 1, 225, 3, 3, 1, 2, 1, 300, 3, 3, 2, 3, 1, 375, 3, 2, 3, 4, 3, 450, 2], [4, 200, 1, "2431", 5, 1, 150, 4, 1, 2, 3, 4, 6, 225, 6, 300, 6, 375, 2, 450], [4, 200, 4, "1122", 8, 7, 100, 7, 150, 7, 200, 7, 250, 1, 300, 4, 1, 1, 1, 1, 1, 350, 4, 2, 2, 2, 2, 1, 400, 4, 1, 1, 1, 1, 1, 450, 4, 2, 2, 2, 2], [3, 200, 2, "12", 5, 1, 150, 3, 2, 1, 2, 1, 225, 3, 2, 4, 3, 1, 300, 3, 1, 2, 2, 1, 375, 3, 2, 4, 1, 3, 450, 2], [3, 200, 3, "122", 7, 1, 150, 2, 1, 1, 1, 200, 3, 1, 2, 1, 1, 250, 4, 1, 1, 2, 2, 1, 300, 5, 1, 1, 2, 2, 2, 1, 350, 4, 1, 2, 2, 1, 1, 400, 3, 2, 2, 1, 1, 450, 2, 1, 1], [3, 200, 3, "1212", 6, 7, 75, 7, 150, 1, 225, 3, 1, 1, 2, 1, 300, 3, 1, 2, 2, 1, 375, 3, 1, 1, 2, 1, 450, 3, 1, 2, 2], [2, 200, 1, "1234", 7, 1, 150, 4, 4, 1, 4, 3, 1, 200, 4, 3, 2, 3, 2, 1, 250, 4, 2, 3, 1, 4, 1, 300, 4, 1, 4, 2, 1, 4, 350, 3, 400, 2, 6, 450], [3, 200, 3, "1234", 6, 7, 75, 7, 150, 1, 225, 3, 1, 2, 1, 1, 300, 3, 2, 1, 2, 1, 375, 3, 3, 3, 4, 1, 450, 3, 3, 4, 4], [1, 200, 1, "2112121", 8, 8, 100, 1, 150, 1, 2, 1, 200, 3, 2, 1, 2, 1, 250, 2, 2, 1, 1, 300, 2, 1, 2, 1, 350, 3, 2, 1, 2, 1, 400, 3, 1, 2, 1, 1, 450, 1, 1], [3, 200, 3, "123", 9, 1, 50, 1, 1, 1, 100, 1, 1, 1, 150, 1, 2, 1, 200, 1, 1, 1, 250, 1, 3, 1, 300, 1, 2, 1, 350, 1, 3, 1, 400, 1, 2, 1, 450, 1, 3], [3, 200, 3, "1234", 7, 8, 150, 8, 200, 1, 250, 3, 1, 2, 1, 1, 300, 3, 4, 3, 2, 1, 350, 2, 1, 2, 1, 400, 4, 2, 3, 4, 3, 1, 450, 3, 3, 4, 4], [8, 200, 7, "2", 7, 1, 150, 3, 1, 2, 3, 1, 200, 3, 1, 2, 3, 1, 250, 3, 1, 2, 3, 1, 300, 3, 1, 2, 3, 1, 350, 3, 1, 2, 3, 1, 400, 3, 1, 2, 3, 1, 450, 3, 1, 2, 3], [6, 200, 3, "312", 6, 1, 75, 3, 1, 2, 3, 1, 150, 3, 1, 2, 3, 1, 225, 3, 1, 2, 3, 6, 300, 6, 375, 6, 450], [6, 200, 6, "123", 9, 4, 50, 4, 100, 4, 150, 1, 200, 3, 1, 1, 1, 1, 250, 3, 1, 2, 3, 1, 300, 3, 2, 2, 2, 1, 350, 3, 1, 2, 3, 1, 400, 3, 3, 3, 3, 1, 450, 3, 1, 2, 3], [6, 200, 6, "123", 6, 1, 75, 3, 1, 1, 1, 1, 150, 3, 2, 1, 2, 1, 225, 3, 1, 2, 3, 1, 300, 3, 2, 2, 1, 1, 375, 3, 3, 3, 2, 1, 450, 3, 3, 3, 3], [4, 200, 4, "1234", 8, 8, 100, 8, 150, 8, 200, 1, 250, 3, 1, 2, 1, 1, 300, 5, 1, 2, 3, 4, 2, 1, 350, 3, 1, 2, 3, 1, 400, 2, 4, 3, 1, 450, 3, 3, 4, 4], [4, 200, 2, "1234", 8, 7, 100, 7, 150, 1, 200, 2, 3, 1, 1, 250, 2, 4, 2, 1, 300, 2, 3, 1, 1, 350, 2, 4, 2, 6, 400, 6, 450], [3, 200, 1, "1432", 7, 1, 150, 1, 3, 1, 200, 2, 4, 1, 1, 250, 1, 2, 2, 300, 6, 350, 4, 400, 6, 450], [3, 200, 3, "123", 8, 1, 100, 2, 3, 1, 1, 150, 2, 1, 3, 1, 200, 2, 3, 1, 3, 250, 1, 1, 300, 3, 1, 2, 2, 1, 350, 3, 3, 2, 3, 1, 400, 3, 1, 3, 1, 3, 450, 3], [1, 200, 1, "33214", 9, 1, 50, 1, 1, 1, 100, 1, 2, 2, 150, 1, 200, 1, 3, 2, 250, 1, 300, 1, 4, 2, 350, 1, 400, 1, 3, 2, 450], [3, 200, 3, "11", 9, 7, 50, 1, 100, 2, 1, 2, 1, 150, 2, 2, 1, 1, 200, 2, 1, 2, 3, 250, 1, 1, 300, 3, 1, 2, 1, 1, 350, 2, 1, 2, 1, 400, 3, 2, 1, 2, 3, 450, 2], [3, 200, 1, "3223", 8, 7, 100, 8, 150, 8, 200, 1, 250, 4, 1, 2, 3, 4, 1, 300, 4, 3, 3, 2, 2, 3, 350, 3, 6, 400, 6, 450], [2, 200, 1, "412334", 8, 1, 100, 2, 2, 1, 1, 150, 2, 4, 2, 4, 200, 6, 250, 1, 300, 2, 3, 3, 1, 350, 2, 1, 4, 4, 400, 6, 450], [2, 200, 1, "32123", 9, 1, 50, 1, 3, 4, 100, 1, 150, 1, 1, 1, 200, 1, 2, 5, 250, 2, 300, 3, 350, 3, 6, 400, 1, 450, 1, 3]);
lvl = 1;
scor = 0;
if (_parent.initlevel > 0) {
lvl = _parent.initlevel;
scor = _parent.initscore;
lvltry = _parent.inittries;
}
castle.cast.gotoAndPlay("l" + lvl);
stapelnuloffset = -250;
stapely = 0;
stapelarray = new Array();
stop();
Symbol 246 MovieClip Frame 2
loopit = false;
var i = 0;
while (i < stapelarray.length) {
stapelarray[i].removeMovieClip();
i++;
}
stapelarray = new Array();
lvlcorrect = false;
lvlcorrectdoggs = 0;
turbospeed = false;
lvlnbrdoggs = lvl_setup[lvl - 1][0];
lvldoggsdelay = lvl_setup[lvl - 1][1];
lvlnbrsolutions = lvl_setup[lvl - 1][2];
lvlsolution = lvl_setup[lvl - 1][3];
lvlnbrstapels = lvl_setup[lvl - 1][4];
stapeldiepte = 1000;
pos = 5;
var i = 0;
while (i < lvlnbrstapels) {
stapeltype = lvl_setup[lvl - 1][pos++];
stapelx = lvl_setup[lvl - 1][pos++];
stapel = attachMovie("stapel" + stapeltype, "stapel" + stapeldiepte, stapeldiepte, {_x:stapelnuloffset + stapelx, _y:stapely});
stapel.stapeltype = stapeltype;
stapel.flipped = false;
stapelarray.push(stapel);
stapeldiepte++;
if (stapeltype == 1) {
stapel.nbrblocks = lvl_setup[lvl - 1][pos++];
blockskleurarray = new Array();
var j = 0;
while (j < stapel.nbrblocks) {
blockskleurarray[j] = lvl_setup[lvl - 1][pos++];
j++;
}
stapel.blockskleurarray = blockskleurarray;
} else if (stapeltype == 3) {
stapel.maxblocks = lvl_setup[lvl - 1][pos++];
} else if (stapeltype == 4) {
stapel.been = true;
} else if (stapeltype == 7) {
stapel.blik = true;
} else if (stapeltype == 8) {
stapel.superbeen = true;
}
stapel.gotoAndPlay("update");
i++;
}
solarray = new Array();
var i = (lvlsolution.length - 1);
while (i >= 0) {
solarray.push(lvlsolution.substring(i, i + 1));
i--;
}
solutionblocks.nbrblocks = lvlsolution.length;
solutionblocks.blockskleurarray = solarray;
solutionblocks.gotoAndPlay("update");
Symbol 246 MovieClip Frame 3
loopit = false;
leveltekst = "level: " + lvl;
scoretekst = "score: " + scor;
passingtekst = "walking doggs: " + lvlnbrdoggs;
solutiontekst = ("needed combos: " + lvlnbrsolutions) + " x";
if (lvl == 1) {
leveltekstmovie.leveltekstpanel.solutionblocks._x = 0;
leveltekstmovie.leveltekstpanel.lijn2 = lvlnbrdoggs + " doggs will walk to the castle, make them bring the following block combos:";
leveltekstmovie.leveltekstpanel.lijn3 = "";
leveltekstmovie.leveltekstpanel.lijn4 = (" " + lvlnbrsolutions) + " x";
} else {
leveltekstmovie.leveltekstpanel.solutionblocks._x = 53;
leveltekstmovie.leveltekstpanel.lijn2 = "";
leveltekstmovie.leveltekstpanel.lijn3 = " walking doggs: " + lvlnbrdoggs;
leveltekstmovie.leveltekstpanel.lijn4 = (" needed combos: " + lvlnbrsolutions) + " x";
}
leveltekstmovie.leveltekstpanel.solutionblocks.nbrblocks = solutionblocks.nbrblocks;
leveltekstmovie.leveltekstpanel.solutionblocks.blockskleurarray = solutionblocks.blockskleurarray;
leveltekstmovie.leveltekstpanel.solutionblocks.gotoAndPlay("update");
leveltekstmovie.leveltekstpanel.lijn6 = "";
leveltekstmovie.leveltekstpanel.lijn7 = "";
leveltekstmovie.leveltekstpanel.lijn8 = "";
if (lvl == 1) {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel1");
leveltekstmovie.leveltekstpanel.lijn6 = "new in this level:";
leveltekstmovie.leveltekstpanel.lijn7 = "when passing this dogg, the walking dogg will take the top block,";
leveltekstmovie.leveltekstpanel.lijn8 = "flip this dogg if no block should be taken";
} else if (lvl == 3) {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel2");
leveltekstmovie.leveltekstpanel.lijn6 = "new in this level:";
leveltekstmovie.leveltekstpanel.lijn7 = "when passing this dogg, the order of the blocks will be inversed,";
leveltekstmovie.leveltekstpanel.lijn8 = "flip this dogg to prevent the inversion";
} else if (lvl == 6) {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel3");
leveltekstmovie.leveltekstpanel.lijn6 = "new in this level:";
leveltekstmovie.leveltekstpanel.lijn7 = "when passing this sign, the blocks will be reduced to the";
leveltekstmovie.leveltekstpanel.lijn8 = "indicated height, the sign can't be flipped";
} else if (lvl == 12) {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel4");
leveltekstmovie.leveltekstpanel.lijn6 = "new in this level:";
leveltekstmovie.leveltekstpanel.lijn7 = "when eating this bone, the dogg will gain the power to pick all";
leveltekstmovie.leveltekstpanel.lijn8 = "blocks of the next pile, flip it to prevent this";
} else if (lvl == 17) {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel5");
leveltekstmovie.leveltekstpanel.lijn6 = "new in this level:";
leveltekstmovie.leveltekstpanel.lijn7 = "when passing this dogg, the blocks will be doubled,";
leveltekstmovie.leveltekstpanel.lijn8 = "flip this dogg to prevent the doubling";
} else if (lvl == 23) {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel6");
leveltekstmovie.leveltekstpanel.lijn6 = "new in this level:";
leveltekstmovie.leveltekstpanel.lijn7 = "when passing this dogg, all blocks will be handed over to this dogg,";
leveltekstmovie.leveltekstpanel.lijn8 = "flip this dogg to prevent this";
} else if (lvl == 29) {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel7");
leveltekstmovie.leveltekstpanel.lijn6 = "new in this level:";
leveltekstmovie.leveltekstpanel.lijn7 = "when drinking this can, the dogg will gain the power to always take";
leveltekstmovie.leveltekstpanel.lijn8 = "two blocks instead of one, flip it to prevent this";
} else if (lvl == 35) {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel8");
leveltekstmovie.leveltekstpanel.lijn6 = "new in this level:";
leveltekstmovie.leveltekstpanel.lijn7 = "when eating this superbone, the dogg will gain the power to pick";
leveltekstmovie.leveltekstpanel.lijn8 = "all blocks of all piles, flip it to prevent this";
} else {
leveltekstmovie.leveltekstpanel.stapeldemo.gotoAndPlay("stapel0");
}
stop();
Symbol 246 MovieClip Frame 4
loopit = false;
witnormal._visible = true;
witturbo._visible = false;
lvltry++;
_parent.doggshared.data.lvl = lvl;
_parent.doggshared.data.score = scor;
_parent.doggshared.data.tries = lvltry;
_parent.doggshared.flush();
loopdoggsstarted = 0;
loopdoggsarrived = 0;
loopdelay = lvldoggsdelay;
doggdiepte = 3000;
doggsxstartpos = -350;
doggsystartpos = 1;
doggendx = 330;
doggsarray = new Array();
loopit = true;
onEnterFrame = function () {
if (loopit) {
if (loopdoggsarrived < lvlnbrdoggs) {
if (loopdoggsstarted < lvlnbrdoggs) {
if (loopdelay < lvldoggsdelay) {
if (turbospeed) {
loopdelay = loopdelay + 5;
} else {
loopdelay++;
}
} else {
loopdelay = 0;
loopdoggsstarted++;
dogg = attachMovie("dogg", "dogg" + doggdiepte, doggdiepte, {_x:doggsxstartpos, _y:doggsystartpos});
dogg.blocks.nbrblocks = 0;
dogg.blocks.blockskleurarray = new Array();
dogg.solution = "";
dogg.been = false;
dogg.blik = false;
dogg.superbeen = false;
doggdiepte++;
doggsarray.push(dogg);
dogg.onEnterFrame = function () {
if (turbospeed) {
testsp = this._x % 5;
if (testsp == 0) {
this._x = this._x + 5;
} else if (testsp == 1) {
this._x = this._x + 4;
} else if (testsp == 2) {
this._x = this._x + 3;
} else if (testsp == 3) {
this._x = this._x + 2;
} else if (testsp == 4) {
this._x = this._x + 1;
} else if (testsp == -1) {
this._x = this._x + 1;
} else if (testsp == -2) {
this._x = this._x + 2;
} else if (testsp == -3) {
this._x = this._x + 3;
} else if (testsp == -4) {
this._x = this._x + 4;
}
} else {
this._x = this._x + 1;
}
var _local4 = 0;
while (_local4 < stapelarray.length) {
if ((!stapelarray[_local4].flipped) && (this._x == stapelarray[_local4]._x)) {
if (stapelarray[_local4].stapeltype == 1) {
if (stapelarray[_local4].nbrblocks > 0) {
if (this.been || this.superbeen) {
if (this.been) {
this.been = false;
}
bltel = 0;
var _local3 = 0;
while (_local3 < stapelarray[_local4].nbrblocks) {
bltel++;
this.blocks.nbrblocks++;
this.blocks.blockskleurarray.push(stapelarray[_local4].blockskleurarray[_local3]);
this.solution = this.solution + stapelarray[_local4].blockskleurarray[_local3];
_local3++;
}
stapelarray[_local4].nbrblocks = 0;
stapelarray[_local4].gotoAndPlay("update");
this.blocks.gotoAndPlay("update");
if (bltel > 1) {
_parent.sound_brickturn.start();
} else {
_parent.sound_brick.start();
}
} else if (((!this.been) && (!this.blik)) || (this.blik && (stapelarray[_local4].nbrblocks == 1))) {
kleur = stapelarray[_local4].blockskleurarray[stapelarray[_local4].nbrblocks - 1];
stapelarray[_local4].nbrblocks--;
stapelarray[_local4].gotoAndPlay("update");
this.blocks.nbrblocks++;
this.blocks.blockskleurarray.push(kleur);
this.solution = this.solution + kleur;
this.blocks.gotoAndPlay("update");
_parent.sound_brick.start();
} else if (this.blik) {
this.blocks.nbrblocks = this.blocks.nbrblocks + 2;
this.blocks.blockskleurarray.push(stapelarray[_local4].blockskleurarray[stapelarray[_local4].nbrblocks - 2]);
this.solution = this.solution + stapelarray[_local4].blockskleurarray[stapelarray[_local4].nbrblocks - 2];
this.blocks.blockskleurarray.push(stapelarray[_local4].blockskleurarray[stapelarray[_local4].nbrblocks - 1]);
this.solution = this.solution + stapelarray[_local4].blockskleurarray[stapelarray[_local4].nbrblocks - 1];
stapelarray[_local4].nbrblocks = stapelarray[_local4].nbrblocks - 2;
newnbrblok = stapelarray[_local4].nbrblocks;
oldarray = new Array();
var _local3 = 0;
while (_local3 < newnbrblok) {
oldarray.push(stapelarray[_local4].blockskleurarray[_local3]);
_local3++;
}
stapelarray[_local4].blockskleurarray = oldarray;
stapelarray[_local4].gotoAndPlay("update");
this.blocks.gotoAndPlay("update");
_parent.sound_brickturn.start();
}
}
} else if (stapelarray[_local4].stapeltype == 2) {
if (this.blocks.nbrblocks > 1) {
oldarray = this.blocks.blockskleurarray;
newarray = new Array();
this.solution = "";
var _local3 = oldarray.length - 1;
while (_local3 >= 0) {
newarray.push(oldarray[_local3]);
this.solution = this.solution + oldarray[_local3];
_local3--;
}
this.blocks.blockskleurarray = newarray;
this.blocks.gotoAndPlay("update");
_parent.sound_brickturn.start();
}
} else if (stapelarray[_local4].stapeltype == 3) {
if (this.blocks.nbrblocks > stapelarray[_local4].maxblocks) {
this.blocks.nbrblocks = stapelarray[_local4].maxblocks;
oldarray = new Array();
var _local3 = 0;
while (_local3 < this.blocks.nbrblocks) {
oldarray.push(this.blocks.blockskleurarray[_local3]);
_local3++;
}
this.blocks.blockskleurarray = oldarray;
this.solution = this.solution.substring(0, stapelarray[_local4].maxblocks);
this.blocks.gotoAndPlay("update");
_parent.sound_brickturn.start();
}
} else if (stapelarray[_local4].stapeltype == 4) {
if (stapelarray[_local4].been) {
stapelarray[_local4].been = false;
this.been = true;
stapelarray[_local4].gotoAndPlay("update");
_parent.sound_slurp.start();
}
} else if (stapelarray[_local4].stapeltype == 5) {
if (this.blocks.nbrblocks > 0) {
oldarray = new Array();
var _local3 = 0;
while (_local3 < this.blocks.blockskleurarray.length) {
oldarray.push(this.blocks.blockskleurarray[_local3]);
_local3++;
}
bltel = 0;
_local3 = 0;
while (_local3 < oldarray.length) {
bltel++;
this.blocks.blockskleurarray.push(oldarray[_local3]);
this.blocks.nbrblocks++;
this.solution = this.solution + oldarray[_local3];
_local3++;
}
this.blocks.gotoAndPlay("update");
if (bltel > 1) {
_parent.sound_brickturn.start();
} else {
_parent.sound_brick.start();
}
}
} else if (stapelarray[_local4].stapeltype == 6) {
if (this.blocks.nbrblocks > 0) {
oldx = stapelarray[_local4]._x;
oldy = stapelarray[_local4]._y;
stapelarray[_local4].removeMovieClip();
stapelarray[_local4] = attachMovie("stapel1", "stapel" + stapeldiepte, stapeldiepte, {_x:oldx, _y:oldy});
stapeldiepte++;
stapelarray[_local4].stapeltype = 1;
stapelarray[_local4].flipped = false;
stapelarray[_local4].nbrblocks = this.blocks.nbrblocks;
blockskleurarray = new Array();
var _local3 = 0;
while (_local3 < this.blocks.nbrblocks) {
blockskleurarray[_local3] = this.blocks.blockskleurarray[_local3];
_local3++;
}
stapelarray[_local4].blockskleurarray = blockskleurarray;
stapelarray[_local4].gotoAndPlay("update");
this.blocks.nbrblocks = 0;
this.blocks.blockskleurarray = new Array();
this.solution = "";
this.blocks.gotoAndPlay("update");
_parent.sound_brick.start();
}
} else if (stapelarray[_local4].stapeltype == 7) {
if (stapelarray[_local4].blik) {
stapelarray[_local4].blik = false;
this.blik = true;
stapelarray[_local4].gotoAndPlay("update");
_parent.sound_slurp.start();
}
} else if (stapelarray[_local4].stapeltype == 8) {
if (stapelarray[_local4].superbeen) {
stapelarray[_local4].superbeen = false;
this.superbeen = true;
stapelarray[_local4].gotoAndPlay("update");
_parent.sound_slurp.start();
}
}
}
_local4++;
}
if (this._x == -330) {
_parent.sound_komop.start();
}
if (this._x > doggendx) {
loopdoggsarrived++;
if (this.solution == lvlsolution) {
lvlcorrectdoggs++;
}
_local4 = doggsarray.length - 1;
while (_local4 >= 0) {
if (doggsarray[_local4] == this) {
teller = _local4;
}
_local4--;
}
doggsarray.splice(teller, 1);
this.removeMovieClip();
if (loopdoggsarrived == lvlnbrdoggs) {
if (lvlcorrectdoggs >= lvlnbrsolutions) {
lvlcorrect = true;
gotoAndPlay ("levelendoktekst");
} else {
gotoAndPlay ("levelendtekst");
}
}
}
};
}
}
}
}
};
stop();
Symbol 246 MovieClip Frame 5
loopit = false;
stop();
Symbol 246 MovieClip Frame 6
loopit = false;
levelscore = lvl * 20;
extrascore = 0;
levelendokmovie.levelendoktekstpanel.lijn1 = ("level " + lvl) + " completed! castle upgraded!";
levelendokmovie.levelendoktekstpanel.lijn2 = ("+ " + levelscore) + " points !";
levelendokmovie.levelendoktekstpanel.lijn3 = "";
if (lvltry == 1) {
extrascore = lvl * 20;
levelendokmovie.levelendoktekstpanel.lijn3 = ("extra for completion in one go: + " + extrascore) + " points !";
}
if (lvlcorrect) {
lvl++;
scor = scor + levelscore;
scor = scor + extrascore;
flitsmovie.gotoAndPlay("flits");
}
scoretekst = "score: " + scor;
if (lvl < 51) {
_parent.doggshared.data.lvl = lvl;
_parent.doggshared.data.score = scor;
_parent.doggshared.data.tries = 0;
_parent.doggshared.flush();
}
if (lvl == 51) {
finalscor = scor;
gotoAndPlay ("endpart");
}
stop();
Symbol 246 MovieClip Frame 7
loopit = false;
var i = 0;
while (i < stapelarray.length) {
stapelarray[i].removeMovieClip();
i++;
}
stapelarray = new Array();
passingtekst = "";
solutiontekst = "";
stop();
Symbol 246 MovieClip Frame 8
loopit = false;
stop();