Frame 1
stop();
var scoreSender = new shHighScores("9592300889", "0056524296 ", _root.host, _root.shss, _root.shsaurl, _root.shrn);
Frame 2
function onEnterFrame() {
bmd.draw(this);
bmd.applyFilter(bmd, bmd.rectangle, new flash.geom.Point(0, 0), bmd_bf);
bmd.applyFilter(bmd, bmd.rectangle, new flash.geom.Point(0, 0), bmd_cmf);
}
stop();
var bmd = (new flash.display.BitmapData(Stage.width, Stage.height, true, 0));
var holder = _root.createEmptyMovieClip("holder_mc", this.getNextHighestDepth());
var bmd_bf = (new flash.filters.BlurFilter(8, 8, 3));
var bmd_cmf = (new flash.filters.ColorMatrixFilter([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0.5, 0]));
holder_mc.attachBitmap(bmd, 1);
fhintro.onPress = function () {
getURL ("http://www.frozenhaddock.co.uk", "_blank");
};
Frame 3
stop();
soundon = 1;
bgon = 1;
Frame 4
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function solveBalls(ballA, ballB) {
var _local9 = ballA._x;
var _local8 = ballA._y;
var _local7 = ballB._x - _local9;
var _local6 = ballB._y - _local8;
var _local15 = Math.sqrt((_local7 * _local7) + (_local6 * _local6));
var _local5 = 10;
var _local4 = _local7 / _local15;
var _local3 = _local6 / _local15;
var _local10 = (_local9 + ballB._x) / 2;
var _local11 = (_local8 + ballB._y) / 2;
ballA._x = _local10 - (_local4 * _local5);
ballA._y = _local11 - (_local3 * _local5);
ballB._x = _local10 + (_local4 * _local5);
ballB._y = _local11 + (_local3 * _local5);
var _local12 = ((ballA.xspeed - ballB.xspeed) * _local4) + ((ballA.yspeed - ballB.yspeed) * _local3);
var _local14 = _local12 * _local4;
var _local13 = _local12 * _local3;
ballA.xspeed = ballA.xspeed - _local14;
ballA.yspeed = ballA.yspeed - _local13;
ballB.xspeed = ballB.xspeed + _local14;
ballB.yspeed = ballB.yspeed + _local13;
}
function onEnterFrame() {
bmd.draw(this);
bmd.applyFilter(bmd, bmd.rectangle, new Point(0, 0), bmd_bf);
bmd.applyFilter(bmd, bmd.rectangle, new Point(0, 0), bmd_cmf);
if (game == true) {
with (newmouse) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
if (_x >= 400) {
_x = 400;
} else if (_x <= 0) {
_x = 0;
}
if (_y >= 400) {
_y = 400;
} else if (_y <= 0) {
_y = 0;
}
}
}
with (blip) {
if (t < circles) {
container_movie.attachMovie("entercircle", "entercircle" + t, container_movie.getNextHighestDepth(), {_x:200, _y:200});
var circle = container_movie.attachMovie("circle", "circle" + t, container_movie.getNextHighestDepth(), {_width:a, _height:b, _x:200, _y:200, _rotation:Math.random() * 300});
t++;
circle.xspeed = (Math.random() * 9) + 5;
circle.yspeed = (Math.random() * 9) + 5;
circle.onEnterFrame = function () {
this._x = this._x - this.xspeed;
this._y = this._y - this.yspeed;
if (this._x < 10) {
this._x = 10;
this.xspeed = -this.xspeed;
}
if (this._x > 390) {
this._x = 390;
this.xspeed = -this.xspeed;
}
if (this._y < 10) {
this._y = 10;
this.yspeed = -this.yspeed;
}
if (this._y > 390) {
this._y = 390;
this.yspeed = -this.yspeed;
}
};
}
i = 0;
while (i < t) {
var a = _root.container_movie["circle" + i];
j = i + 1;
while (j < t) {
var b = _root.container_movie["circle" + j];
var dx = (b._x - a._x);
var dy = (b._y - a._y);
var dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 20) {
_root.solveBalls(a, b);
}
j++;
}
if (playerDead == false) {
b = _root.newmouse;
var dx = (b._x - a._x);
var dy = (b._y - a._y);
var dist = Math.sqrt((dx * dx) + (dy * dy));
if ((dist < 20) && (invinc == 0)) {
if (life <= 0) {
_root.asplode();
endmc.play();
} else {
_root.hit();
}
} else if (dist < 30) {
_root.score = _root.score + 10;
} else if (dist < 40) {
_root.score = _root.score + 5;
} else if (dist < 50) {
_root.score = _root.score + 2;
} else if (dist < 100) {
_root.score = _root.score + 1;
}
} else {
background._visible = false;
if (i <= 3) {
asplodeb(a);
} else {
a.removeMovieClip();
}
}
i++;
}
}
}
stop();
_global.gLEFT = 0;
_global.gTOP = 0;
_global.gRIGHT = Stage.width;
_global.gBOTTOM = Stage.height;
var maxSpeed = 25;
var minSize = 4;
var maxSize = 10;
var minFragments = 50;
var maxFragments = 150;
var circles = 0;
var t = 0;
var dx = 0;
var playerDead = false;
var score = 0;
var clock = 0;
var game = false;
var invinc = 0;
var life = 3;
_root.attachMovie("mousereplace", "newmouse", _root.getNextHighestDepth(), {_x:600, _y:600});
_root.attachMovie("blip", "blip", _root.getNextHighestDepth(), {_x:1500, _y:200});
_root.createEmptyMovieClip("container_movie", _root.getNextHighestDepth());
hit = function () {
newmouse.play();
screenflare.play();
life = life - 1;
bleep.play();
};
asplode = function () {
_root.bleep.gotoAndPlay(1);
_root.boom.gotoAndPlay(1);
_root.bleep2.gotoAndPlay(1);
newmouse.removeMovieClip();
clearInterval(timer);
clearInterval(circletimer);
Mouse.show();
var _local6 = randRange(minFragments, maxFragments);
var _local3;
var _local5 = this.getNextHighestDepth();
var _local4 = 0;
while (_local4 < _local6) {
_local3 = attachMovie("Fragment", "fragment" + _local5, _local5);
_local3._x = _xmouse;
_local3._y = _ymouse;
_local3._width = (_local3._height = randRange(minSize, maxSize));
while (!_local3.speedX) {
_local3.speedX = randRange(-maxSpeed, maxSpeed);
}
while (!_local3.speedY) {
_local3.speedY = randRange(-maxSpeed, maxSpeed);
}
_local3._alpha = randRange(10, 100);
_local3.cacheAsBitmap = true;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((((this._x < gLEFT) || (this._x > gRIGHT)) || (this._y < gTOP)) || (this._y > gBOTTOM)) {
this.removeMovieClip();
}
};
_local4++;
_local5++;
}
playerDead = true;
game = false;
};
asplodeb = function (ball) {
var _local5 = 5;
var _local2;
var _local4 = this.getNextHighestDepth();
var _local3 = 0;
while (_local3 < _local5) {
_local2 = attachMovie("Fragmentb", "fragmentb" + _local4, _local4);
_local2._x = _ball._x;
_local2._y = ball._y;
_local2._width = (_local2._height = randRange(minSize, maxSize));
while (!_local2.speedX) {
_local2.speedX = randRange(-maxSpeed, maxSpeed);
}
while (!_local2.speedY) {
_local2.speedY = randRange(-maxSpeed, maxSpeed);
}
_local2._alpha = randRange(10, 100);
_local2.cacheAsBitmap = true;
_local2.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((((this._x < gLEFT) || (this._x > gRIGHT)) || (this._y < gTOP)) || (this._y > gBOTTOM)) {
this.removeMovieClip();
}
};
_local3++;
_local4++;
}
ball.removeMovieClip();
};
timer = function () {
if (game == true) {
clock = clock + 1;
}
};
circletimer = function () {
if (game == true) {
circles = circles + 1;
}
};
timer = setInterval(timer, 1000);
circletimer = setInterval(circletimer, 5000);
sendscores = function () {
scoreSender.send(totalscore, scorecheck);
};
scorecheck = function () {
_root.gotoAndStop(5);
};
Instance of Symbol 107 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.life == 2) {
this.gotoAndStop(2);
}
if (_root.life == 1) {
this.gotoAndStop(3);
}
if (_root.life == 0) {
this.gotoAndStop(4);
}
}
Frame 5
stop();
Symbol 7 MovieClip [entercircle] Frame 15
this.removeMovieClip();
Symbol 12 MovieClip [mousereplace] Frame 1
stop();
Symbol 12 MovieClip [mousereplace] Frame 2
_root.invinc = 1;
Symbol 12 MovieClip [mousereplace] Frame 46
gotoAndStop (1);
_root.invinc = 0;
Symbol 14 Button
on (release) {
getURL ("http://www.fettspielen.de", "_blank");
}
Symbol 18 Button
on (release) {
_root.nextFrame();
}
Symbol 44 MovieClip Frame 255
_root.nextFrame();
Symbol 125 MovieClip [__Packages.shHighScores] Frame 0
class shHighScores
{
var shCode1, shCode2, shHost, shSs, shSaUrl, shRn, shOnSendComplete;
function shHighScores (_shCode1, _shCode2, _shHost, _shSs, _shSaUrl, _shRn) {
shCode1 = _shCode1;
shCode2 = _shCode2;
shHost = _shHost;
shSs = _shSs;
shSaUrl = _shSaUrl;
shRn = _shRn;
}
function shEncode(n, code) {
var _local3 = n;
var _local4 = code;
var _local8 = _local3.length - _local4.length;
var _local7 = "";
var _local6 = "";
var _local9 = "";
var _local10 = Number(97);
var _local2 = 0;
while (_local2 < Math.abs(_local8)) {
_local7 = _local7 + "0";
_local2++;
}
if (_local8 < 0) {
_local3 = _local7 + _local3;
} else {
_local4 = _local7 + _local4;
}
_local2 = 0;
while (_local2 < _local3.length) {
_local6 = _local6 + encHash[_local2 % encHash.length].charAt(Number(_local3.charAt(_local2)));
_local2++;
}
_local3 = _local6;
_local6 = "";
_local2 = 0;
while (_local2 < _local4.length) {
_local6 = _local6 + encHash[_local2 % encHash.length].charAt(Number(_local4.charAt(_local2)));
_local2++;
}
_local4 = _local6;
_local2 = 0;
while (_local2 < _local3.length) {
var _local5 = Number(_local3.charAt(_local2)) ^ Number(_local4.charAt(_local2));
_local9 = _local9 + chr(_local10 + _local5);
_local2++;
}
return(_local9);
}
function shDecode(s, code) {
var _local3 = "";
var _local6 = "";
var _local2 = code.toString();
var _local7 = Number(97);
var _local4 = 0;
while (_local4 < (s.length - _local2.length)) {
_local2 = "0" + _local2;
_local4++;
}
_local4 = 0;
while (_local4 < _local2.length) {
_local6 = _local6 + encHash[_local4 % encHash.length].charAt(Number(_local2.charAt(_local4)));
_local4++;
}
_local2 = _local6;
_local4 = 0;
while (_local4 < s.length) {
_local3 = _local3 + String((s.charCodeAt(_local4) - _local7) ^ Number(_local2.charAt(_local4)));
_local4++;
}
_local6 = "";
_local4 = 0;
while (_local4 < _local3.length) {
_local6 = _local6 + encHash[_local4 % encHash.length].indexOf(_local3.charAt(_local4));
_local4++;
}
_local3 = _local6;
_local4 = 0;
while ((_local4 < (_local3.length - 1)) && (_local3.charAt(_local4) == "0")) {
_local4++;
}
return(_local3.substring(_local4, _local3.length));
}
function shDataHandler(r) {
var _local4 = "";
var _local6 = r.split("&");
var _local3;
var _local7 = "";
if (_local6.length > 0) {
var _local2 = 0;
while (_local2 < _local6.length) {
_local3 = _local6[_local2].split("=");
if ((_local3.length == 2) && (_local3[0] == "result")) {
_local4 = _local3[1];
var _local5 = shDecode(_local4, shCode2, encHash);
if (_local5 != 0) {
shRn = _local4;
getURL ("javascript:reloadScoreContainer()");
}
}
_local2++;
}
}
shOnSendComplete(r);
}
function send(shScore, onSendComplete, shAdditionalParams) {
shOnSendComplete = onSendComplete;
var _local3 = shDecode(shRn, shCode2);
var _local7 = shEncode(shDecode(shSs, shCode1), shScore + _local3);
var _local6 = shEncode(shScore + _local3, shCode2);
var _local8 = (("?game=" + shDecode(shSs, shCode1)) + "&score=") + shScore;
var _local4 = (((((shHost + shSaUrl) + _local7) + "/") + _local6) + _local8) + ((shAdditionalParams != undefined) ? ("&" + shAdditionalParams) : "");
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.shCode2 = shCode2;
_local2.shDecode = shDecode;
_local2.encHash = encHash;
_local2.shRn = shRn;
_local2.shOnSendComplete = shOnSendComplete;
_local2.onData = mx.utils.Delegate.create(this, shDataHandler);
_local2.load(_local4);
}
var encHash = ["0587693124", "8204135769", "0831547926", "6350192847", "0682495317", "2409581367", "4327568109", "2561870349", "0684137529", "6904781325"];
}
Symbol 126 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 51 MovieClip Frame 71
_root.nextFrame();
Symbol 60 Button
on (rollOver) {
_root.bleep2.play();
}
on (release) {
_root.bleep.play();
gotoAndStop ("game");
}
Symbol 63 Button
on (rollOver) {
_root.bleep2.play();
}
on (release) {
_root.bleep.play();
getURL ("http://www.fettspielen.de", "_blank");
}
Symbol 66 Button
on (rollOver) {
_root.bleep2.play();
}
on (release) {
_root.bleep.play();
getURL ("http://www.frozenhaddock.co.uk", "_blank");
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 25
stop();
Symbol 71 MovieClip Frame 25
stop();
Symbol 72 MovieClip Frame 11
stop();
Symbol 87 Button
on (rollOver) {
_root.bleep2.play();
}
on (release) {
_root.bleep.play();
_root.sendscores();
}
Symbol 90 Button
on (rollOver) {
_root.bleep2.play();
}
on (release) {
_root.bleep.play();
_root.gotoAndStop("menu");
}
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 17
_root.totalscore = _root.clock * _root.score;
stopAllSounds();
_root.boom.gotoAndPlay(1);
Symbol 92 MovieClip Frame 27
stop();
Symbol 96 Button
on (press) {
play();
}
Symbol 98 MovieClip Frame 10
stop();
Symbol 98 MovieClip Frame 16
_root.game = true;
_root.menumusic.stop();
_root.gamemusic.play();
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 10
stop();
_root.stats.play();
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 3
stop();
Symbol 107 MovieClip Frame 4
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 114 Button
on (release) {
if (soundon == 1) {
stopAllSounds();
this.soundbuttmc.gotoAndStop(2);
soundon = 0;
} else if (soundon == 0) {
_root.gamemusic.play();
this.soundbuttmc.gotoAndStop(1);
soundon = 1;
}
}
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 120 Button
on (release) {
if (bgon == 1) {
_root.background._visible = false;
this.bgbuttmc.gotoAndStop(2);
bgon = 0;
} else if (bgon == 0) {
this.bgbuttmc.gotoAndStop(1);
_root.background._visible = true;
bgon = 1;
}
}
Symbol 124 MovieClip Frame 10
stop();