Frame 1
stop();
Stage.scaleMode = "noScale";
Stage.align = "TL";
this._lockroot = true;
btn_sound.onRollOver = function () {
this.gotoAndStop("over");
};
btn_sound.onRollOut = function () {
this.gotoAndStop("up");
};
btn_sound.onRelease = function () {
if (this.selector._visible) {
this.selector._visible = false;
} else {
this.selector._visible = true;
}
if (this.selector._visible) {
musicBox.gotoAndStop("intro");
}
if (!this.selector._visible) {
musicBox.gotoAndStop("stop");
}
this.gotoAndStop("over");
};
btn_sound.onReleaseOutside = function () {
this.gotoAndStop("up");
};
btn_sound.onPress = function () {
this.gotoAndStop("down");
};
btn_start.onRelease = function () {
gotoAndStop ("game");
decor.removeMe();
};
btn_help.onRelease = function () {
decor.removeMe();
gotoAndStop ("help");
};
btn_score.onRelease = function () {
decor.removeMe();
gotoAndStop ("score");
};
btn_send.onRelease = function () {
decor.removeMe();
gotoAndStop ("send");
};
var levelHeight = Stage.height;
var levelWidth = Stage.width;
Instance of Symbol 448 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(900);
}
Frame 2
stop();
btn_terug.onRelease = function () {
gotoAndStop ("begin");
};
Frame 3
stop();
btn_terug.onRelease = function () {
gotoAndStop ("begin");
};
Frame 4
stop();
var txt1 = (((("Wow... dat scheelde niet veel! Je hebt " + _root.percSaved) + " Pieten gered, terwijl je er ") + activeLevel.savePerc) + " moest redden! <br> Hieronder vind je je score.");
var txt2 = (((("Wow... je hebt " + _root.percSaved) + " Pieten gered, terwijl je er maar ") + activeLevel.savePerc) + " hoefde te redden!<br>Geweldig!");
var txt3 = (("Dit is werkelijk ongelofelijk! Je hebt " + _root.percSaved) + " van de Pieten gered! Je bent een geweldige speler!!!");
_root.score = (_root.gameScore = (_root.percSaved * 100) + (thePlayer.playTime * 100));
var scoreText = ((((((((("Tijd over: " + thePlayer.playTime) + " seconden x 100 = ") + (thePlayer.playTime * 100)) + "<br>Pieten gered: ") + _root.percSaved) + " Pieten x 100 = ") + (_root.percSaved * 100)) + "<br>Totale score = ") + _root.score);
scoreCalc.htmlText = scoreText;
var margin = (_root.percSaved - activeLevel.savePerc);
if (margin < 2) {
_root.congratsText.htmlText = txt1;
}
if ((margin >= 2) && (margin < 6)) {
_root.congratsText.htmlText = txt2;
}
if (margin >= 6) {
_root.congratsText.htmlText = txt3;
}
btn_terug.onRelease = function () {
gotoAndStop ("begin");
};
btn_verder.onRelease = function () {
gotoAndStop ("registeren");
};
Frame 5
stop();
var txt1 = "Jeetje... Geen van de Pieten heeft de Sint bereikt! Misschien moet je nog iets meer oefenen...<br><br>Probeer het nog een keer!";
if (_root.percSaved == 1) {
var tmp = "Piet";
} else {
var tmp = "Pieten";
}
var txt2 = (((((("Jammer... Je hebt maar " + _root.percSaved) + " ") + tmp) + " gered, terwijl je er ") + activeLevel.savePerc) + " moest redden...<br><br>Probeer het nog een keer!");
if (_root.percSaved == 0) {
_root.congratsText.htmlText = txt1;
} else {
_root.congratsText.htmlText = txt2;
}
btn_verder.onRelease = function () {
gotoAndStop ("begin");
};
Frame 6
stop();
btn_terug.onRelease = function () {
gotoAndStop ("begin");
};
Frame 7
stop();
btn_terug.onRelease = function () {
gotoAndStop ("begin");
};
Frame 8
function levelUnit() {
this.ground = null;
this.levelHeight = null;
this.levelWidth = null;
this.funnyAm = 0;
this.funnyInt = 0;
this.gate_x = 0;
this.gate_y = 0;
this.entities = new Array();
}
function buildLevel(theLevel) {
var tmpMc = scope.attachMovie(theLevel.ground, "tmpMc", scope.getNextHighestDepth());
levelHeight = tmpMc._height;
levelWidth = tmpMc._width;
theLevel.levelHeight = levelHeight;
theLevel.levelWidth = levelWidth;
theGround = new flash.display.BitmapData(theLevel.levelWidth, theLevel.levelHeight, true, 0);
theGround.draw(tmpMc);
theScreen.attachBitmap(theGround, 250);
removeMovieClip(tmpMc);
var tmpHolder = scope.createEmptyMovieClip("tmpHolder", scope.getNextHighestDepth());
var tmp = tmpHolder.attachMovie(theLevel.bg, "tmp", tmpHolder.getNextHighestDepth());
var factor = thePlayer.bgParallax;
var ratio = (tmp._width / tmp._height);
if (tmp._width > 2880) {
tmp._width = 2800;
tmp._height = tmp._width / ratio;
}
if (tmp._height > 2880) {
tmp._height = 2800;
tmp._height = tmp._width * ratio;
}
var filter = (new flash.filters.BlurFilter(10, 10, 1));
var filterArray = new Array();
filterArray.push(filter);
tmp.filters = filterArray;
theBg = new flash.display.BitmapData(tmpHolder._width, tmpHolder._height, true, 0);
theBg.draw(tmpHolder);
theScreen.bgLayer.attachBitmap(theBg, 0);
removeMovieClip(tmpHolder);
theScreen.graphicLayer.attachMovie(theLevel.graphic, "graphic", 0);
theScreen.graphicLayer.cacheAsBitmap = true;
theGate = new funnyGate(theLevel.gate_x, theLevel.gate_y, theLevel.funnyAm, theLevel.funnyInt);
theFinish = new finish(theLevel.finish_x, theLevel.finish_y);
thePlayer.playTime = theLevel.playTime;
scope.buildCount = theLevel.buildCount;
scope.bashCount = theLevel.bashCount;
scope.digCount = theLevel.digCount;
scope.parachuteCount = theLevel.parachuteCount;
scope.blockCount = theLevel.blockCount;
scope.bombCount = theLevel.bombCount;
scope.savedFunnyCount = 0;
scope.totalFunnyCount = 0;
scope.funnyCnt = 0;
for (var each in theLevel.entities) {
var theEnt = theLevel.entities[each];
var tmp = theEnt[0];
var fnc = eval (theEnt[0]);
var args = theEnt[1];
var henk = new fnc(args);
}
letsgoSound.start();
letsgoSound.onSoundComplete = function () {
introMusic.start();
introMusic.onSoundComplete = function () {
mainMusic.start(0, 1000);
};
};
}
function refreshScreen() {
theScreen._x = offX;
theScreen._y = offY;
theScreen.bgLayer._x = (theScreen.bgLayer_2._x = (-offX) + (offX * thePlayer.bgParallax));
theScreen.bgLayer._y = (theScreen.bgLayer_2._y = (-offY) + (offY * thePlayer.bgParallax));
}
function vibrateScreen(ver) {
var _local3 = 60;
var heen = false;
var _local2 = scope.createEmptyMovieClip("vibrator", 2000);
stompSound.start();
_local2.onEnterFrame = function () {
if (Math.abs(ver) > 1.5) {
scope._y = scope._y + ver;
if (ver > 0) {
heen = true;
} else {
heen = false;
}
ver = ver * -1;
if (heen == false) {
ver = ver * 0.7;
}
} else {
scope._y = 0;
removeMovieClip(this);
}
};
}
function circleMask(x, y, r) {
var _local2 = theScreen.createEmptyMovieClip("myMask", theScreen.getNextHighestDepth());
_local2.lineStyle(0, 0, 100);
_local2.beginFill(65280, 100);
_local2.moveTo(x - r, y - r);
_local2.lineTo(x + r, y - r);
_local2.lineTo(x + r, y + r);
_local2.lineTo(x - r, y + r);
_local2.lineTo(x - r, y - r);
r--;
_local2.moveTo(x + r, y);
_local2.curveTo(r + x, (0.414213562373095 * r) + y, (0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
_local2.curveTo((0.414213562373095 * r) + x, r + y, x, r + y);
_local2.curveTo((-0.414213562373095 * r) + x, r + y, (-0.707106781186547 * r) + x, (0.707106781186547 * r) + y);
_local2.curveTo((-r) + x, (0.414213562373095 * r) + y, (-r) + x, y);
_local2.curveTo((-r) + x, (-0.414213562373095 * r) + y, (-0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
_local2.curveTo((-0.414213562373095 * r) + x, (-r) + y, x, (-r) + y);
_local2.curveTo((0.414213562373095 * r) + x, (-r) + y, (0.707106781186547 * r) + x, (-0.707106781186547 * r) + y);
_local2.curveTo(r + x, (-0.414213562373095 * r) + y, r + x, y);
var _local5 = new flash.display.BitmapData(_local2._width, _local2._height, true, 0);
_local5.draw(_local2);
removeMovieClip(_local2);
return(_local5);
}
function removeGround(x, y, radius) {
var _local6 = new flash.display.BitmapData(2 * radius, 2 * radius, true, 0);
var _local7 = new flash.geom.Rectangle(x - radius, y - radius, 2 * radius, 2 * radius);
var _local8 = new flash.geom.Point(0, 0);
_local6.copyPixels(theGround, _local7, _local8, circleMask(radius, radius, radius), new flash.geom.Point(0, 0), false);
var _local3 = -radius;
while (_local3 < radius) {
var _local1 = -radius;
while (_local1 < radius) {
theGround.setPixel32(x + _local3, y + _local1, 0);
_local1++;
}
_local3++;
}
_local7 = new flash.geom.Rectangle(0, 0, 2 * radius, 2 * radius);
_local8 = new flash.geom.Point(x - radius, y - radius);
theGround.copyPixels(_local6, _local7, _local8);
_local6.dispose();
}
function funnyGate(x, y, am, int) {
this.clip = theScreen.entLayer.attachMovie("funnyGate", "theGate", allEntities.length, allEntities.length);
allEntities.push(this);
this.active = true;
this.clip._x = x;
this.clip._y = y;
this.clip._visible = false;
this.cnt = -1;
this.maxCnt = int;
this.maxAm = am;
}
function funny(x, y) {
this.clip = theScreen.funnyLayer.attachMovie("zwartepiet" + (random(4) + 1), "clip_" + allEntities.length, allEntities.length);
this.myNum = funnyCnt;
funnyCnt++;
totalFunnyCount++;
var _local3 = random(3);
this.faceNum = _local3 + 1;
this.clip._height = 40;
this.clip.selector._visible = false;
this.clip.cacheAsBitmap = true;
allEntities.push(this);
allFunnies.push(this);
this.charx = x;
this.chary = y;
this.clip._x = this.charx;
this.clip._y = this.chary;
this.clip.parent = this;
this.maxHorSpeed = 1;
this.horSpeed = this.maxHorSpeed;
this.verSpeed = 0;
this.origGravity = 0.5;
this.gravity = this.origGravity;
this.maxVerSpeed = 13;
this.origMaxVerSpeed = this.maxVerSpeed;
this.maxFallSpeed = this.origMaxVerSpeed;
this.chuteOpenSpeed = 3;
this.chuteSpeed = 1.5;
this.chuteGravity = 0.2;
this.airFriction = 0.95;
this.countDown = 150;
this.maxCountDown = this.countDown;
this.blastRadius = 45;
this.horDir = 1;
this.alive = true;
this.active = true;
this.busy = false;
this.diging = false;
this.bashing = false;
this.building = false;
this.blocking = false;
this.parachuteing = false;
this.flying = false;
this.hanging = false;
this.paraCnt = 0;
this.dying = false;
this.exploding = false;
this.myPos = "walk";
this.buildSpeed = 0.5;
this.buildNum = 0;
this.structureBuilding = null;
this.clip.onRollOver = function () {
this.selector._visible = true;
};
this.clip.onRollOut = function () {
this.selector._visible = false;
};
this.clip.onPress = function () {
var _local2 = scope.funnyFunction;
if (_local2 == "bomb") {
if ((scope.bombCount > 0) && (this.parent.countDown == this.parent.maxCountDown)) {
cancelSound.start();
this.parent.bomb();
scope.bombCount--;
}
} else if (((!this.parent.busy) && ((!scope[_local2 + "Count"]) == 0)) && (!this.parent[_local2 + "ing"])) {
cancelSound.start();
this.parent[_local2]();
scope[_local2 + "Count"]--;
}
};
}
function checkForVictory() {
if (!theGate.active) {
if (savedFunnyCount >= activeLevel.savePerc) {
gameover("gewonnen");
} else {
gameover("helaas");
}
} else {
return(undefined);
}
}
function gotoNextLevel(theLevel) {
var _local2 = scope.createEmptyMovieClip("gameoverClip", scope.getNextHighestDepth());
_local2.beginFill(0, 100);
_local2.moveTo(0, 0);
_local2.lineTo(760, 0);
_local2.lineTo(760, 420);
_local2.lineTo(0, 420);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._alpha = -100;
_local2.theLevel = theLevel;
_local2.onEnterFrame = function () {
this._alpha = this._alpha + 2;
if (this._alpha >= 100) {
delete this.onEnterFrame;
stopAllSounds();
buildLevel(this.theLevel);
removeMovieClip(this);
}
};
}
function structure(x, y, speed, xscale, builder) {
this.clipHolder = entLayer.createEmptyMovieClip("holder", entLayer.getNextHighestDepth());
this.clip = this.clipHolder.attachMovie("ramp", "ramp", 10);
this.clipHolder._x = x;
this.clipHolder._y = (y - this.clip._height) + 4;
this.clip.mask._width = Math.round(builder.clip._width / 2);
this.clip._xscale = 100 * xscale;
if (this.clip._xscale == -100) {
this.clip._x = this.clip._x + this.clip._width;
}
this.speed = speed;
this.builder = builder;
this.builder.structureBuilding = this;
this.maxWidth = this.clip._width;
this.steps = 0;
this.clip.parent = this;
this.clipHolder._visible = false;
this.clip.onEnterFrame = function () {
if (this.parent.builder.building) {
if (this.mask._width < this.parent.maxWidth) {
this.mask._width = this.mask._width + this.parent.speed;
var _local2 = new flash.display.BitmapData(1000, 1000, true, 0);
_local2.draw(this._parent);
var _local3 = new flash.geom.Rectangle(0, 0, _local2.width, _local2.height);
var _local4 = new flash.geom.Point(this._parent._x - this._x, this._parent._y + this._y);
theGround.copyPixels(_local2, _local3, _local4, null, null, true);
_local2.dispose();
} else {
this.mask._width = this.parent.maxWidth;
this.parent.builder.building = false;
this.parent.builder.structureBuilding = null;
removeMovieClip(this);
removeMovieClip(this._parent);
delete this.onEnterFrame;
delete eval (this());
}
} else {
removeMovieClip(this);
removeMovieClip(this._parent);
delete this.onEnterFrame;
delete eval (this());
}
var _local5 = this.parent.maxWidth - this.mask._width;
if ((_local5 % 10) == 0) {
this.parent.steps++;
if ((this.parent.steps > 6) && (this.parent.steps != 10)) {
donkSound.start();
}
}
};
}
function player(x, y) {
this.speed = 8;
this.bgParallax = 0.14;
this.clockInt = setInterval(moveHand, 1000);
this.playTime = null;
this.moveRight = false;
this.moveLeft = false;
this.moveUp = false;
this.moveDown = false;
}
function moveHand() {
thePlayer.playTime--;
var _local2 = Math.floor(thePlayer.playTime / 60);
var _local1 = thePlayer.playTime - (_local2 * 60);
_local1 = _local1.toString();
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
scope.timeRemaining = (_local2 + ":") + _local1;
if (thePlayer.playTime == 5) {
thePlayer.suc = new suicide();
}
if (thePlayer.playTime == 0) {
clearInterval(thePlayer.clockInt);
}
}
function dash() {
this.clip = scope.attachMovie("dash", "dash", 100);
this.clip._x = 0;
this.clip._y = screenHeight - 30;
this.clip.cacheAsBitmap = true;
this.button_Right = this.clip.attachMovie("btn_links", "button_Right", this.clip.getNextHighestDepth());
this.button_Right._rotation = 90;
this.button_Right._x = screenWidth - (this.button_Right._width / 2);
this.button_Right._y = (-screenHeight) / 2;
this.button_Right.onPress = function () {
thePlayer.moveRight = true;
};
this.button_Right.onRelease = (this.button_Right.onReleaseOutside = function () {
thePlayer.moveRight = false;
});
this.button_Left = this.clip.attachMovie("btn_links", "button_Left", this.clip.getNextHighestDepth());
this.button_Left._rotation = -90;
this.button_Left._x = this.button_Right._width / 2;
this.button_Left._y = (-screenHeight) / 2;
this.button_Left.onPress = function () {
thePlayer.moveLeft = true;
};
this.button_Left.onRelease = (this.button_Left.onReleaseOutside = function () {
thePlayer.moveLeft = false;
});
this.button_Up = this.clip.attachMovie("btn_links", "button_Up", this.clip.getNextHighestDepth());
this.button_Up._x = screenWidth / 2;
this.button_Up._y = (-screenHeight) + 40;
this.button_Up.onPress = function () {
thePlayer.moveUp = true;
};
this.button_Up.onRelease = (this.button_Up.onReleaseOutside = function () {
thePlayer.moveUp = false;
});
this.button_Down = this.clip.attachMovie("btn_links", "button_Down", this.clip.getNextHighestDepth());
this.button_Down._rotation = 180;
this.button_Down._x = screenWidth / 2;
this.button_Down._y = -10;
this.button_Down.onPress = function () {
thePlayer.moveDown = true;
};
this.button_Down.onRelease = (this.button_Down.onReleaseOutside = function () {
thePlayer.moveDown = false;
});
this.myButtons = new Array(this.clip.block, this.clip.bomb, this.clip.bash, this.clip.dig, this.clip.build, this.clip.parachute);
for (var _local3 in this.myButtons) {
var _local2 = this.myButtons[_local3];
_local2.onRollOver = function () {
this._parent.functionText.text = selectFunctionText(this._name);
this._parent.functionText.textColor = 6329514 /* 0x6094AA */;
};
_local2.onRelease = function () {
scope.funnyFunction = this._name;
makeDashboardSelector(this);
this._parent.functionText.text = selectFunctionText(this._name);
this._parent.functionText.textColor = 11782610 /* 0xB3C9D2 */;
};
_local2.onRollOut = function () {
this._parent.functionText.text = selectFunctionText(funnyFunction);
this._parent.functionText.textColor = 11782610 /* 0xB3C9D2 */;
};
}
this.clip.functionText.text = "Kies een opdracht!";
this.clip.nuke.stop();
this.clip.nuke.maxCnt = 20;
this.clip.nuke.dcCounter = this.clip.nuke.maxCnt;
this.clip.nuke.armed = false;
this.clip.nuke.onRollOver = function () {
this.gotoAndStop("over");
this._parent.functionText.text = selectFunctionText(this._name);
this._parent.functionText.textColor = 6329514 /* 0x6094AA */;
};
this.clip.nuke.onRollOut = function () {
this.gotoAndStop("up");
this._parent.functionText.text = selectFunctionText(funnyFunction);
this._parent.functionText.textColor = 11782610 /* 0xB3C9D2 */;
};
this.clip.nuke.onPress = function () {
this.gotoAndStop("down");
};
this.clip.nuke.onRelease = function () {
if (this.armed == false) {
this.armed = true;
} else if (this.armed == true) {
var _local2 = new suicide();
delete this.onEnterFrame;
}
this.gotoAndStop("over");
};
this.clip.nuke.onEnterFrame = function () {
if (this.armed == true) {
this.dcCounter--;
if (this.dcCounter <= 0) {
this.armed = false;
this.dcCounter = this.maxCnt;
}
}
};
this.clip.btn_sound.gotoAndStop("up");
this.clip.btn_sound.onRollOver = function () {
this.gotoAndStop("over");
this._parent.functionText.text = selectFunctionText(this._name);
this._parent.functionText.textColor = 6329514 /* 0x6094AA */;
};
this.clip.btn_sound.onRollOut = function () {
this.gotoAndStop("up");
this._parent.functionText.text = selectFunctionText(funnyFunction);
this._parent.functionText.textColor = 11782610 /* 0xB3C9D2 */;
};
this.clip.btn_sound.onRelease = function () {
if (this.selector._visible) {
this.selector._visible = false;
} else {
this.selector._visible = true;
}
if (this.selector._visible) {
mainMusic.start(0, 1000);
}
if (!this.selector._visible) {
mainMusic.stop();
}
this.gotoAndStop("over");
};
this.clip.btn_sound.onReleaseOutside = function () {
this.gotoAndStop("up");
};
this.clip.btn_sound.onPress = function () {
this.gotoAndStop("down");
};
}
function selectFunctionText(name) {
var _local1 = name;
switch (_local1) {
case "block" :
return("Blokker");
case "parachute" :
return("Parachutist");
case "bash" :
return("Hakker");
case "dig" :
return("Graver");
case "build" :
return("Bouwer");
case "bomb" :
return("Knaller");
case "btn_sound" :
return("Muziek aan/uit");
case "nuke" :
return("Opgeven (dubbelklik)");
}
return("Kies een opdracht!");
}
function makeDashboardSelector(who) {
cancelSound.start();
removeMovieClip(theDash.selector);
var _local1 = theDash.clip.attachMovie("selector", "selector", -10);
_local1._x = who._x;
_local1._y = who._y;
}
function particleEmitter(ob) {
this.clip = entLayer.attachMovie("emitter", "clip_" + allEntities.length, entLayer.getNextHighestDepth());
this.clip.cacheAsBitmap = true;
this.clip._x = ob.x;
this.clip._y = ob.y;
this.emitting = false;
this.clip._rotation = ob.coneAngle;
this.clip.parent = this;
this.speed = ob.speed;
this.cnt = -1;
this.maxCnt = ob.interval;
this.timer = 0;
this.duration = ob.duration;
this.particle = ob.particle;
this.life = ob.life;
this.amount = ob.amount;
this.target = scope.theScreen.entLayer;
this.gravity = ob.gravity;
this.cone = ob.cone;
this.coneAngle = ob.coneAngle;
this.interval = ob.interval;
this.projNum = 0;
allEntities.push(this);
}
function chocoShit(ob) {
this.clip = entLayer.attachMovie("chocoShit", "clip_" + allEntities.length, allEntities.length);
this.clip._x = ob.x;
this.clip._y = ob.y;
this.clip.colBox._alpha = 0;
this.clip.cacheAsBitmap = true;
allEntities.push(this);
this.clip._width = ob.width;
this.clip._height = ob.height;
this.clip.onEnterFrame = function () {
for (var _local3 in allFunnies) {
var _local2 = allFunnies[_local3];
if (_local2.clip.hitTest(this.colBox)) {
makeDroplets("droplet", _local2.charx, _local2.chary + (_local2.clip._height / 2), true, 15);
gloopSound.start();
_local2.die("die");
}
}
};
}
function trampoline(ob) {
this.clip = entLayer.attachMovie("trampoline", "clip_" + allEntities.length, allEntities.length);
this.clip._x = ob.x;
this.clip._y = ob.y;
this.clip.coneAngle = ob.coneAngle;
this.clip.speed = ob.speed;
this.clip.colBox._alpha = 0;
this.clip.cacheAsBitmap = true;
allEntities.push(this);
this.clip.onEnterFrame = function () {
for (var _local3 in allFunnies) {
var _local2 = allFunnies[_local3];
if (_local2.clip.hitTest(this.colBox)) {
this.ani.gotoAndPlay(2);
_local2.launch(this.coneAngle, this.speed);
}
}
};
}
function addStars() {
this.clip = bgLayer.attachMovie("starholder", "clip_" + bgLayer.getNextHighestDepth(), bgLayer.getNextHighestDepth());
}
function birdShit(ob) {
this.clip = decoLayer.attachMovie("mc_kraai", "clip_" + allEntities.length, allEntities.length);
this.clip._x = ob.x;
this.clip._y = ob.y;
allEntities.push(this);
this.clip.timeoutInt = setInterval(function (scope) {
scope.gotoAndPlay("poe");
dropObject("mc_kraai_poe", scope, ob.maxy);
}, 10000, this.clip);
}
function snowManMelt(ob) {
this.clip = entLayer.attachMovie("mc_snowman", "clip_" + allEntities.length, allEntities.length);
this.clip._x = ob.x;
this.clip._y = ob.y;
allEntities.push(this);
this.clip.timeoutInt = setInterval(function (scope) {
dropObject("mc_snowman_water", scope, ob.maxy);
}, 9000, this.clip);
}
function dropObject(id, scope, maxy) {
this.clip = entLayer.attachMovie(id, "clip_" + entLayer.getNextHighestDepth(), entLayer.getNextHighestDepth());
this.clip._x = scope._x;
this.clip._y = scope._y;
this.clip.maxy = maxy;
this.clip.colBox._visible = false;
this.clip.onEnterFrame = function () {
this._y = this._y + 5;
if (this._y > this.maxy) {
this.gotoAndPlay("explode");
delete this.onEnterFrame;
}
for (var _local3 in allFunnies) {
var _local2 = allFunnies[_local3];
if (_local2.clip.hitTest(this.colBox)) {
makeDroplets("droplet", _local2.charx, _local2.chary + (_local2.clip._height / 2), true, 15);
gloopSound.start();
_local2.die("die");
}
}
};
}
function makeDroplets(particle, x, y, scaling, am) {
var _local3 = 0;
while (_local3 < am) {
var _local2 = entLayer.attachMovie(particle, "drop_" + partCnt, entLayer.getNextHighestDepth());
_local2._x = x;
_local2._y = y;
_local2.cacheAsBitmap = true;
_local2._rotation = random(360);
var _local4 = random(_local2._totalframes) + 1;
_local2.gotoAndStop(_local4);
partCnt++;
if (scaling == true) {
_local2._xscale = (_local2._yscale = 30 + random(60));
}
_local2.horDir = random(2);
if (_local2.horDir == 0) {
_local2.horDir = -1;
}
_local2.horSpeed = (_local2.horDir * Math.random()) * 3;
_local2.verSpeed = (-3 * (random(2) + Math.random())) - 1;
_local2.life = 60;
_local2.gravity = 0.3;
_local2.onEnterFrame = function () {
this.life--;
if (this.life > 0) {
this._x = this._x + this.horSpeed;
this._y = this._y + this.verSpeed;
this.verSpeed = this.verSpeed + this.gravity;
} else {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
_local3++;
}
}
function stamper(ob) {
this.clip = entLayer.attachMovie("stamper", "clip_" + allEntities.length, allEntities.length);
this.clip._x = ob.x;
this.clip._y = ob.y;
this.clip.cacheAsBitmap = true;
this.chary = this.clip.head._y + this.clip._y;
this.verSpeed = 0;
this.horSpeed = 1;
this.actionWidth = ob.actionWidth;
this.startPosX = this.clip._x;
this.endPosX = this.clip._x + this.actionWidth;
this.horDir = 1;
this.gravity = 0.8;
this.hoistSpeed = -2;
this.startPos = this.clip.head._y;
this.count = 0;
this.maxCount = 50;
this.busy = false;
this.release = false;
this.hoisting = false;
allEntities.push(this);
this.clip.parent = this;
}
function suicide() {
theGate.active = false;
this.clip = scope.createEmptyMovieClip("suicideClip", scope.getNextHighestDepth());
this.clip.cnt = 0;
this.clip.onEnterFrame = function () {
allFunnies[this.cnt].bomb();
if (this.cnt >= allFunnies.length) {
delete this.onEnterFrame;
removeMovieClip(this);
}
this.cnt = this.cnt + 0.5;
};
}
function gameover(label) {
var _local3 = scope.createEmptyMovieClip("gameoverClip", scope.getNextHighestDepth());
_local3._alpha = -100;
_local3.onEnterFrame = function () {
this._alpha = this._alpha + 2;
if (this._alpha >= 100) {
delete this.onEnterFrame;
removeMovieClip(this);
var _local2 = -1000;
while (_local2 < scope.getNextHighestDepth()) {
removeMovieClip(scope.getInstanceAtDepth(_local2));
_local2++;
}
clearInterval(thePlayer.clockInt);
mainMusic.stop();
scope.gotoAndStop(label);
}
};
}
function finish(x, y) {
this.clip = entLayer.attachMovie("mc_finish", "mc_finish", -100);
this.clip._x = x;
this.clip._y = y;
allEntities.push(this);
this.clip.onEnterFrame = function () {
for (var _local3 in allFunnies) {
var _local2 = allFunnies[_local3];
if (_local2.clip.hitTest(this.col)) {
_local2.finish();
}
}
};
}
function initialise() {
clearInterval(_global.thePlayer.clockInt);
_global.theDash = new dash();
_global.thePlayer = new player();
buildLevel(activeLevel);
}
stop();
stopAllSounds();
var level_1 = new levelUnit();
level_1.ground = "ground_1";
level_1.graphic = "graphic_1";
level_1.bg = "bg_1";
level_1.levelHeight = 600;
level_1.levelWidth = 2623;
level_1.funnyAm = 20;
level_1.funnyInt = 50;
level_1.gate_x = 170;
level_1.gate_y = 2;
level_1.finish_x = 2405;
level_1.finish_y = 390;
level_1.playTime = 300;
level_1.digCount = 8;
level_1.buildCount = 15;
level_1.bashCount = 8;
level_1.parachuteCount = 18;
level_1.bombCount = 10;
level_1.blockCount = 8;
level_1.savePerc = 10;
level_1.entities[0] = ["birdShit", {x:800, y:100, maxy:250}];
level_1.entities[1] = ["snowManMelt", {x:1640, y:85, maxy:210}];
level_1.entities[2] = ["addStars"];
level_1.entities[3] = ["trampoline", {x:1330, y:483, coneAngle:30, speed:10}];
level_1.entities[4] = ["particleEmitter", {particle:"confetti", x:2230, y:440, interval:50, duration:5, scaling:true, cone:45, coneAngle:30, amount:2, speed:10, gravity:0.4, life:100}];
scope = this;
activeLevel = level_1;
levelWidth = 0;
levelHeight = 0;
screenWidth = 760;
screenHeight = 350;
offX = 0;
offY = 0;
timeRemaining = "";
alphaTreshold = 1;
totalFunnyCount = 0;
savedFunnyCount = 0;
var allEntities = new Array();
var allFunnies = new Array();
var allBlockers = new Array();
var funnyFunction = null;
funnyCnt = 0;
digCount = 0;
buildCount = 0;
bashCount = 0;
parachuteCount = 0;
blockCount = 0;
bombCount = 0;
partCnt = 0;
percSaved = 0;
var theScreen = scope.createEmptyMovieClip("theScreen", 0);
var bgLayer = theScreen.createEmptyMovieClip("bgLayer", -10);
var theBg = (new flash.display.BitmapData(levelWidth, levelHeight, true, 0));
bgLayer.attachBitmap(theBg, 0);
var theGround = (new flash.display.BitmapData(levelWidth, levelHeight, true, 0));
theScreen.attachBitmap(theGround, 0);
var funnyLayer = theScreen.createEmptyMovieClip("funnyLayer", 50);
var entLayer = theScreen.createEmptyMovieClip("entLayer", 300);
var decoLayer = theScreen.createEmptyMovieClip("decoLayer", 40);
var graphicLayer = theScreen.createEmptyMovieClip("graphicLayer", 190);
scope.setMask(allMask);
var letsgoSound = new Sound(scope);
letsgoSound.attachSound("letsgo");
var boingSound = new Sound(scope);
boingSound.attachSound("boing");
var placeSound = new Sound(scope);
placeSound.attachSound("place");
var cancelSound = new Sound(scope);
cancelSound.attachSound("cancel");
var yippeeSound = new Sound(scope);
yippeeSound.attachSound("yippee");
var splatSound = new Sound(scope);
splatSound.attachSound("splat");
var gloopSound = new Sound(scope);
gloopSound.attachSound("glug");
var popSound = new Sound(scope);
popSound.attachSound("pop");
var introMusic = new Sound(scope);
introMusic.attachSound("mainMusic");
var mainMusic = new Sound(scope);
mainMusic.attachSound("mainMusic");
var stompSound = new Sound(scope);
stompSound.attachSound("stomp");
var donkSound = new Sound(scope);
donkSound.attachSound("donk");
var keyListener = new Object();
keyListener.onKeyDown = function () {
var _local1 = Key.getCode();
};
Key.addListener(keyListener);
funnyGate.prototype.enterFrame = function () {
if (this.active) {
this.cnt++;
this.cnt = this.cnt % this.maxCnt;
if ((this.cnt == 0) && (this.maxAm > 0)) {
this.maxAm--;
var _local2 = new funny(this.clip._x, this.clip._y);
} else if (this.maxAm == 0) {
this.active = false;
}
}
};
funny.prototype.enterFrame = function () {
if (this.clip.hitTest(scope.allMask)) {
this.clip._alpha = 100;
} else {
this.clip._alpha = 0;
}
if ((this.verSpeed > this.chuteSpeed) && (this.parachuteing)) {
this.maxVerSpeed = this.chuteSpeed;
if (this.verSpeed >= this.chuteSpeed) {
this.gravity = this.chuteGravity;
this.paraCnt++;
}
} else {
this.paraCnt = 0;
}
if (this.verSpeed < this.maxVerSpeed) {
this.verSpeed = this.verSpeed + this.gravity;
}
if (this.paraCnt > 10) {
this.hanging = true;
} else {
this.hanging = false;
}
if (this.horSpeed > 0) {
this.horDir = 1;
} else if (this.horSpeed < 0) {
this.horDir = -1;
}
this.chary = this.chary + this.verSpeed;
this.charx = this.charx + this.horSpeed;
if ((this.chary >= levelHeight) || (this.chary <= 0)) {
this.die("die");
}
if (this.active == true) {
if (this.diging) {
this.clip.gotoAndStop("dig");
this.myPos = "dig";
this.busy = true;
this.horSpeed = 0;
this.verSpeed = 0.4;
this.gravity = 0;
this.dig();
}
if (this.bashing) {
this.clip.gotoAndStop("bash");
this.myPos = "bash";
this.busy = true;
this.horSpeed = 0.4 * this.horDir;
this.bash();
}
if (this.building) {
this.clip.gotoAndStop("build");
this.myPos = "build";
this.busy = true;
this.horSpeed = this.buildSpeed * this.horDir;
this.build();
}
if (this.countDown < this.maxCountDown) {
this.busy = true;
this.bomb();
}
if (this.blocking) {
this.clip.gotoAndStop("block");
this.myPos = "block";
}
if (this.hanging) {
this.clip.gotoAndStop("parachute");
}
if (this.exploding) {
this.clip.gotoAndStop("explode");
}
if (this.dying) {
this.clip.gotoAndStop("die");
} else if (((((((((!this.bashing) && (!this.diging)) && (!this.building)) && (!this.flying)) && (!this.blocking)) && (!this.hanging)) && (!this.exploding)) && (!this.dying)) && (this.active == true)) {
this.busy = false;
this.clip.gotoAndStop("walk");
this.horSpeed = (this.maxHorSpeed * this.clip._xscale) / 100;
if (!this.parachuteing) {
this.gravity = this.origGravity;
}
}
var _local8 = new flash.geom.Point(theGround.rectangle.x, theGround.rectangle.y);
var _local13 = new flash.geom.Point();
_local13.x = this.charx;
_local13.y = this.chary + (this.clip._height / 2);
if (theGround.hitTest(_local8, alphaTreshold, _local13)) {
var _local6 = this.chary + (this.clip._height / 2);
var _local9 = new flash.geom.Point(this.charx, _local6);
while (theGround.hitTest(_local8, alphaTreshold, _local9)) {
_local6--;
_local9 = new flash.geom.Point(this.charx, _local6);
}
this.chary = _local6 - (this.clip._height / 2);
this.flying = false;
if (this.verSpeed >= this.maxFallSpeed) {
this.die("die");
}
this.verSpeed = 0;
this.gravity = this.origGravity;
this.maxVerSpeed = this.origMaxVerSpeed;
}
_local13.x = this.charx + ((this.horDir * this.clip._width) / 3);
_local13.y = this.chary;
var _local14 = this.charx + ((this.horDir * this.clip._width) / 2);
var _local15 = this.chary;
var _local3 = {x:_local14, y:_local15};
funnyLayer.localToGlobal(_local3);
for (var _local12 in allBlockers) {
var _local2 = allBlockers[_local12];
if ((_local2.clip.hitTest(_local3.x, _local3.y, true) && (this != _local2)) && (_local2.active)) {
var _local7 = _local3.x;
var _local4 = 0;
while (_local2.clip.hitTest(_local7, _local3.y - (this.clip._height / 2), true)) {
_local7 = _local7 - this.horDir;
_local4++;
}
var _local5 = {x:_local7, y:_local3.y};
funnyLayer.globalToLocal(_local5);
this.charx = _local5.x - ((this.clip._width / 3) * this.horDir);
this.horSpeed = this.horSpeed * -1;
this.clip._xscale = this.clip._xscale * -1;
this.diging = (this.building = (this.bashing = false));
}
}
_local13 = new flash.geom.Point();
_local13.x = this.charx + ((this.horDir * this.clip._width) / 3);
_local13.y = this.chary;
if (theGround.hitTest(_local8, alphaTreshold, _local13)) {
var _local7 = this.charx + ((this.horDir * this.clip._width) / 3);
var _local9 = new flash.geom.Point(_local7, this.chary);
while (theGround.hitTest(_local8, alphaTreshold, _local9)) {
_local7 = _local7 - this.horDir;
_local9 = new flash.geom.Point(_local7, this.chary);
}
this.charx = _local7 - ((this.horDir * this.clip._width) / 3);
this.horSpeed = this.horSpeed * -1;
this.clip._xscale = this.clip._xscale * -1;
this.building = false;
this.flying = false;
}
}
this.clip._x = this.charx;
this.clip._y = this.chary;
};
funny.prototype.dig = function () {
var _local4 = new flash.geom.Point(theGround.rectangle.x, theGround.rectangle.y);
var _local2 = new flash.geom.Point();
_local2.x = this.charx;
_local2.y = this.chary + (this.clip._height / 2);
var _local3 = 0;
while ((!theGround.hitTest(_local4, alphaTreshold, _local2)) && (_local3 < 15)) {
_local2.y++;
_local3++;
}
if (theGround.hitTest(_local4, alphaTreshold, _local2)) {
removeGround(this.charx, this.chary + 5, Math.round(this.clip._width / 2));
this.diging = true;
} else {
this.diging = false;
}
};
funny.prototype.bomb = function () {
if (this.countDown == this.maxCountDown) {
this.counterClip = funnyLayer.attachMovie("counterClip", "counterClip_" + this.myNum, 1000 + this.myNum);
this.counterClip._x = this.charx;
this.counterClip._y = this.chary - (this.clip._height / 2);
this.counterClip.parent = this;
this.counterClip.onEnterFrame = function () {
this._x = this.parent.charx;
this._y = this.parent.chary - (this.parent.clip._height / 2);
if (((this.parent.countDown % 30) == 0) && (this.parent.countDown != 0)) {
this.text.text = this.parent.countDown / 30;
}
if (this.parent.countDown < 20) {
delete this.onEnterFrame;
removeMovieClip(this);
}
};
}
this.busy = true;
this.countDown--;
if (((this.countDown % 30) == 0) && (this.countDown != 0)) {
this.clip.counterClip.counter.text = this.countDown / 30;
} else {
this.clip.counterClip.counter.text = "";
}
if (this.countDown == 0) {
this.clip.counter.text = "";
this.die("explode");
popSound.start();
makeDroplets("confetti", this.charx, this.chary + (this.clip._height / 2), false, 15);
removeGround(this.charx, this.chary, this.blastRadius);
}
};
funny.prototype.bash = function () {
var _local4 = new flash.geom.Point(theGround.rectangle.x, theGround.rectangle.y);
var _local2 = new flash.geom.Point();
_local2.x = this.charx + ((this.horDir * this.clip._width) / 2);
_local2.y = this.chary + (this.clip._height / 2);
var _local3 = 0;
while ((!theGround.hitTest(_local4, alphaTreshold, _local2)) && (_local3 < 10)) {
_local2.x = _local2.x + this.horDir;
_local3++;
}
if (theGround.hitTest(_local4, alphaTreshold, _local2)) {
removeGround(this.charx + (this.horDir * 7), this.chary + 1, Math.round(this.clip._height / 2));
this.verSpeed = 0;
this.bashing = true;
} else {
this.bashing = false;
}
};
funny.prototype.build = function () {
var _local4 = new flash.geom.Point(theGround.rectangle.x, theGround.rectangle.y);
var _local2 = new flash.geom.Point();
_local2.x = this.charx;
_local2.y = this.chary + (this.clip._height / 2);
var _local3 = 0;
while ((!theGround.hitTest(_local4, alphaTreshold, _local2)) && (_local3 < 5)) {
_local2.y++;
_local3++;
}
if (theGround.hitTest(_local4, alphaTreshold, _local2)) {
if (this.building == false) {
this.buildNum++;
var _local5 = new structure(this.charx + this.horDir, (this.chary + (this.clip._height / 2)) + 2, this.buildSpeed, this.horDir, this);
}
this.building = true;
} else {
this.building = false;
}
};
funny.prototype.parachute = function () {
this.parachuteing = true;
};
funny.prototype.block = function () {
var _local4 = new flash.geom.Point(theGround.rectangle.x, theGround.rectangle.y);
var _local2 = new flash.geom.Point();
_local2.x = this.charx;
_local2.y = this.chary + (this.clip._height / 2);
var _local3 = 0;
while ((!theGround.hitTest(_local4, alphaTreshold, _local2)) && (_local3 < 5)) {
_local2.y++;
_local3++;
}
if (theGround.hitTest(_local4, alphaTreshold, _local2)) {
this.horSpeed = 0;
this.busy = true;
this.blocking = true;
allBlockers.push(this);
}
};
funny.prototype.die = function (label) {
if (this.alive == true) {
this.alive = false;
this.busy = true;
this.active = false;
this.diging = (this.bashing = (this.building = (this.parachuteing = false)));
this.verSpeed = 0;
if (label == "explode") {
this.exploding = true;
}
if (label == "die") {
this.dying = true;
}
allEntities[this.clip.getDepth()] = null;
allFunnies[this.myNum] = null;
totalFunnyCount--;
if (totalFunnyCount == 0) {
checkForVictory();
}
delete this.counterClip.enterFrame;
this.counterClip._visible = false;
this.clip.gotoAndStop(label);
}
};
funny.prototype.launch = function (angle, speed) {
this.diging = (this.bashing = (this.building = false));
this.flying = true;
this.flyAngle = angle;
this.flySpeed = speed * 1.2;
this.nXMove = this.flySpeed * Math.sin(this.flyAngle / 57.2957795130823);
this.nYMove = this.flySpeed * Math.cos(this.flyAngle / 57.2957795130823);
this.horSpeed = this.nXMove;
this.verSpeed = this.nYMove * -1;
if (this.horSpeed > 0) {
this.clip._xscale = 100;
}
if (this.horSpeed < 0) {
this.clip._xscale = -100;
}
};
funny.prototype.finish = function () {
this.busy = true;
this.active = false;
this.diging = (this.bashing = (this.building = (this.parachuteing = false)));
this.verSpeed = 0;
yippeeSound.start();
allEntities[this.clip.getDepth()] = null;
allFunnies[this.myNum] = null;
delete this.counterClip.enterFrame;
this.counterClip._visible = false;
savedFunnyCount++;
totalFunnyCount--;
if (totalFunnyCount == 0) {
checkForVictory();
}
delete this.counterClip.enterFrame;
this.counterClip._visible = false;
removeMovieClip(this.clip);
delete this.enterFrame;
};
player.prototype.enterFrame = function () {
if (Key.isDown(39) || (this.moveRight)) {
offX = offX - this.speed;
} else if (Key.isDown(37) || (this.moveLeft)) {
offX = offX + this.speed;
}
if (Key.isDown(40) || (this.moveDown)) {
offY = offY - this.speed;
} else if (Key.isDown(38) || (this.moveUp)) {
offY = offY + this.speed;
}
if (offX <= (-(levelWidth - screenWidth))) {
offX = -(levelWidth - screenWidth);
theDash.button_Right._visible = false;
} else {
theDash.button_Right._visible = true;
}
if (offY <= (-((levelHeight - screenHeight) - 40))) {
offY = -((levelHeight - screenHeight) - 40);
theDash.button_Down._visible = false;
} else {
theDash.button_Down._visible = true;
}
if (offX >= 0) {
offX = 0;
theDash.button_Left._visible = false;
} else {
theDash.button_Left._visible = true;
}
if (offY >= 0) {
offY = 0;
theDash.button_Up._visible = false;
} else {
theDash.button_Up._visible = true;
}
refreshScreen();
};
particleEmitter.prototype.enterFrame = function () {
this.cnt++;
this.cnt = this.cnt % this.maxCnt;
if (this.cnt == 0) {
this.emitting = true;
this.clip.gotoAndPlay(2);
}
if (this.emitting == true) {
if (this.timer < this.duration) {
this.emit();
this.timer++;
} else {
this.timer = 0;
this.emitting = false;
this.cnt = 0;
this.maxCnt = random(100) + this.interval;
}
for (var _local3 in allFunnies) {
var _local2 = allFunnies[_local3];
if (_local2.clip.hitTest(this.clip) && (!_local2.flying)) {
_local2.launch(this.coneAngle, this.speed);
}
}
}
};
particleEmitter.prototype.emit = function () {
var _local3 = 0;
while (_local3 < this.amount) {
this.clip.part = this.target.attachMovie(this.particle, (this.clip._name + "proj_") + this.projNum, this.target.getNextHighestDepth());
var _local4 = random(5) + 1;
this.clip.part.gotoAndStop(_local4);
this.clip.part._x = this.clip._x + Math.random();
this.clip.part._y = this.clip._y + Math.random();
this.projNum++;
this.clip.part.parent = this;
this.clip.part.cacheAsBitmap = true;
this.clip.part._rotation = random(360) - 180;
this.clip.part.initSpeed = this.speed + (Math.random() * 5);
this.clip.part.speed = this.clip.part.initSpeed;
this.clip.part.gravity = this.gravity;
this.clip.part.ang = 180;
this.clip.part.angle = ((this.clip.part.ang + (random(this.cone) - (this.cone / 2))) + this.coneAngle) + Math.random();
this.clip.part.vSpeed = (random(5) + 1) + Math.random();
this.clip.part.life = this.life;
this.clip.part.friction = 0.99;
if (this.scaling) {
this.clip.part._xscale = (this.clip.part._yscale = 50 + random(50));
}
var _local7 = ((this.clip.part._x + target._x) + target._parent._x) + target._parent._parent._x;
var _local6 = ((this.clip.part._y + target._y) + target._parent._y) + target._parent._parent._y;
this.clip.part.onEnterFrame = function () {
this.life--;
if (this.life <= 0) {
delete this.onEnterFrame;
removeMovieClip(this);
}
this.speed = this.speed * this.friction;
this.nXMove = this.speed * Math.sin(this.angle / 57.2957795130823);
this.nYMove = this.speed * Math.cos(this.angle / 57.2957795130823);
this._x = this._x - this.nXMove;
this._y = this._y + this.nYMove;
this._y = this._y + this.vSpeed;
this.vSpeed = this.vSpeed + (this.gravity / 5);
this.speed = this.speed * 0.99;
var _local5 = this._x + this._parent._x;
var _local4 = this._y + this._parent._y;
if (this.parent.particle == "steam") {
for (var _local3 in allFunnies) {
var _local2 = allFunnies[_local3];
if (_local2.clip.hitTest(this)) {
_local2.die("melt");
}
}
}
};
_local3++;
}
};
stamper.prototype.enterFrame = function () {
for (var _local3 in allFunnies) {
var _local2 = allFunnies[_local3];
if ((Math.abs(_local2.charx - this.clip._x) < 30) && (this.busy == false)) {
this.release = true;
}
}
if (this.release == true) {
this.crush();
}
if (this.hoisting == true) {
this.hoist();
}
if (this.busy == false) {
if (this.clip._x > this.endPosX) {
this.clip._x = this.endPosX;
this.horSpeed = this.horSpeed * -1;
}
if (this.clip._x < this.startPosX) {
this.clip._x = this.startPosX;
this.horSpeed = this.horSpeed * -1;
}
this.clip._x = this.clip._x + this.horSpeed;
}
};
stamper.prototype.crush = function () {
this.busy = true;
this.verSpeed = this.verSpeed + this.gravity;
this.chary = this.chary + this.verSpeed;
var _local4 = new flash.geom.Point(theGround.rectangle.x, theGround.rectangle.y);
var _local7 = new flash.geom.Point();
_local7.x = this.clip._x - (this.clip.head._width / 2);
_local7.y = this.chary + this.clip.head.head._height;
var _local9 = new flash.geom.Point();
_local9.x = this.clip._x + (this.clip.head._width / 2);
_local9.y = _local7.y;
if (theGround.hitTest(_local4, alphaTreshold, _local7) || (theGround.hitTest(_local4, alphaTreshold, _local9))) {
var _local3 = _local7.y;
var _local6 = new flash.geom.Point(this.clip._x - (this.clip.head._width / 2), _local3);
var _local5 = new flash.geom.Point(this.clip._x + (this.clip.head._width / 2), _local3);
while (theGround.hitTest(_local4, alphaTreshold, _local6) || (theGround.hitTest(_local4, alphaTreshold, _local5))) {
_local3--;
_local6 = new flash.geom.Point(this.clip._x - (this.clip.head._width / 2), _local3);
_local5 = new flash.geom.Point(this.clip._x + (this.clip.head._width / 2), _local3);
}
this.verSpeed = 0;
this.chary = _local3 - this.clip.head.head._height;
this.hoisting = true;
this.release = false;
for (var _local8 in allFunnies) {
var _local2 = allFunnies[_local8];
if (this.clip.head.colBox.hitTest(_local2.clip)) {
_local2.die("die");
}
}
vibrateScreen(10);
}
this.clip.head._y = this.chary - this.clip._y;
};
stamper.prototype.hoist = function () {
this.count++;
if (this.count > this.maxCount) {
if ((this.chary - this.clip._y) > this.startPos) {
this.chary = this.chary + this.hoistSpeed;
} else {
this.chary = this.startPos + this.clip._y;
this.busy = false;
this.hoisting = false;
this.release = false;
this.count = 0;
}
this.clip.head._y = this.chary - this.clip._y;
}
};
initialise();
onEnterFrame = function () {
thePlayer.enterFrame();
scope.percSaved = savedFunnyCount;
if (scope.percSaved == Infinity) {
scope.percSaved = 0;
}
for (var _local2 in allEntities) {
var _local1 = allEntities[_local2];
_local1.enterFrame();
}
};
Symbol 431 MovieClip Frame 80
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 426 MovieClip [GB_init_mc] Frame 1
_visible = false;
_root.aspURL = "http://gamebase.mediarijk.nl/";
_root.gameSecretHash = secretHash.text;
_root.gameId = gameId.text;
_root.gameName = gameName.text;
_root.errorMsg1 = errorMsg1.text;
_root.errorMsg2 = errorMsg2.text;
_root.errorMsg3 = errorMsg3.text;
_root.errorMsg4 = errorMsg4.text;
_root.errorMsg5 = errorMsg5.text;
_root.errorMsg6 = errorMsg6.text;
_root.errorMsg7 = errorMsg7.text;
_root.errorMsg8 = errorMsg8.text;
_root.errorMsg9 = errorMsg9.text;
_root.errorMsg10 = errorMsg10.text;
_root.errorMsg11 = errorMsg11.text;
_root.gameScore = 0;
if (_root.userEmail == undefined) {
_root.userEmail = "";
}
if (_root.userName == undefined) {
_root.userName = "";
}
if (_root.verif == undefined) {
_root.verif = "";
}
if (_root.email != undefined) {
_root.userEmail = _root.email;
}
_global.MD5 = new Object();
MD5.hexcase = 0;
MD5.b64pad = "";
MD5.chrsz = 8;
MD5.hex_md5 = function (s) {
return(this.binl2hex(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.b64_md5 = function (s) {
return(this.binl2b64(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.str_md5 = function (s) {
return(this.binl2str(this.core_md5(this.str2binl(s), s.length * this.chrsz)));
};
MD5.hex_hmac_md5 = function (key, data) {
return(this.binl2hex(this.core_hmac_md5(key, data)));
};
MD5.b64_hmac_md5 = function (key, data) {
return(this.binl2b64(this.core_hmac_md5(key, data)));
};
MD5.str_hmac_md5 = function (key, data) {
return(this.binl2str(this.core_hmac_md5(key, data)));
};
MD5.md5_vm_test = function () {
return(this.hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
};
MD5.core_md5 = function (x, len) {
var _local11;
var _local10;
var _local9;
var _local8;
x[len >> 5] = x[len >> 5] | (128 << (len & 31));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local12 = x.length;
var _local6 = 0;
while (_local6 < _local12) {
_local11 = _local5;
_local10 = _local4;
_local9 = _local3;
_local8 = _local2;
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = this.md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = this.md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = this.md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = this.md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = this.md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = this.md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = this.md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = this.md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = this.md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = this.md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = this.md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = this.md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = this.md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = this.md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = this.md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = this.md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = this.safe_add(_local5, _local11);
_local4 = this.safe_add(_local4, _local10);
_local3 = this.safe_add(_local3, _local9);
_local2 = this.safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
var _local14 = Array(_local5, _local4, _local3, _local2);
return(_local14);
};
MD5.md5_cmn = function (q, a, b, x, s, t) {
var _local2 = this.safe_add(this.bit_rol(this.safe_add(this.safe_add(a, q), this.safe_add(x, t)), s), b);
return(_local2);
};
MD5.md5_ff = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
};
MD5.test = function () {
};
MD5.md5_gg = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
};
MD5.md5_hh = function (a, b, c, d, x, s, t) {
return(this.md5_cmn((b ^ c) ^ d, a, b, x, s, t));
};
MD5.md5_ii = function (a, b, c, d, x, s, t) {
return(this.md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
};
MD5.core_hmac_md5 = function (key, data) {
var _local3 = this.str2binl(key);
if (_local3.length > 16) {
_local3 = this.core_md5(_local3, key.length * this.chrsz);
}
var _local4 = Array(16);
var _local5 = Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = this.core_md5(_local4.concat(this.str2binl(data)), 512 + (data.length * this.chrsz));
return(this.core_md5(_local5.concat(_local6), 640));
};
MD5.safe_add = function (x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
};
MD5.bit_rol = function (num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
};
MD5.str2binl = function (str) {
var _local3 = Array();
var _local4 = (1 << this.chrsz) - 1;
var _local5 = str.length * this.chrsz;
var _local2 = 0;
while (_local2 < _local5) {
_local3[_local2 >> 5] = _local3[_local2 >> 5] | ((str.charCodeAt(_local2 / this.chrsz) & _local4) << (_local2 & 31));
_local2 = _local2 + this.chrsz;
}
return(_local3);
};
MD5.binl2str = function (bin) {
var _local3 = "";
var _local4 = (1 << this.chrsz) - 1;
var _local5 = bin.length * 32;
var _local2 = 0;
while (_local2 < _local5) {
_local3 = _local3 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 & 31)) & _local4);
_local2 = _local2 + this.chrsz;
}
return(_local3);
};
MD5.binl2hex = function (binarray) {
var _local3 = (this.hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var _local5 = "";
var _local6 = binarray.length * 4;
var _local2 = 0;
while (_local2 < _local6) {
_local5 = _local5 + (_local3.charAt((binarray[_local2 >> 2] >> (((_local2 & 3) * 8) + 4)) & 15) + _local3.charAt((binarray[_local2 >> 2] >> ((_local2 & 3) * 8)) & 15));
_local2++;
}
return(_local5);
};
MD5.binl2b64 = function (binarray) {
var _local9 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local6 = "";
var _local7 = binarray.length * 4;
var _local8 = 4 * _local7;
var _local2 = 0;
while (_local2 < _local7) {
var _local5 = ((((binarray[_local2 >> 2] >> (8 * (_local2 & 3))) & 255) << 16) | (((binarray[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) & 3))) & 255) << 8)) | ((binarray[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) & 3))) & 255);
_local2 = _local2 + 3;
}
var _local3 = 0;
while (_local3 < 4) {
if (((_local2 * 8) + (_local3 * 6)) > _local8) {
_local6 = _local6 + this.b64pad;
} else {
_local6 = _local6 + _local9.charAt((_local5 >> (6 * (3 - _local3))) & 63);
}
_local3++;
}
return(_local6);
};
_global.ranCode = function () {
var _local2 = new Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z");
var _local1 = "";
i = 0;
while (i < 4) {
if (random(2) == 1) {
_local1 = _local1 + _local2.splice(random(_local2.length), 1).toString();
} else {
_local1 = _local1 + random(10).toString();
}
i++;
}
return(_local1);
};
_global.genCode = function () {
var _local2 = ranCode();
trace(((((((_local2 + _root.userEmail) + "") + _root.gameSecretHash) + "") + _root.gameName) + "") + _root.gameScore);
md5Code = _local2 + MD5.hex_md5(((((((_local2 + _root.userEmail) + "") + _root.gameSecretHash) + "") + _root.gameName) + "") + _root.gameScore);
return(md5Code.slice(0, -4));
};
_global.showError = function (msg) {
_root.errorMsg = errorMsg;
errorMsg.errorTxt.text = msg;
errorMsg._visible = true;
clearInterval(errorInt);
errorInt = setInterval(function () {
clearInterval(errorInt);
errorMsg.errorTxt.text = "";
errorMsg._visible = false;
}, 4000);
};
_global.setErrorMark = function (holder, box) {
var _local4 = holder.getNextHighestDepth();
em = holder.attachMovie("errorMark", "em" + _local4, _local4);
var _local3 = new Object({x:box._x - _root._x, y:box._y - _root._y});
box._parent.localToGlobal(_local3);
em._x = (_local3.x + box._width) + 5;
em._y = _local3.y + (box._height / 2);
};
Symbol 387 MovieClip Frame 50
stop();
Symbol 395 MovieClip [zwartepiet1] Frame 1
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 395 MovieClip [zwartepiet1] Frame 2
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 395 MovieClip [zwartepiet1] Frame 3
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 395 MovieClip [zwartepiet1] Frame 4
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 395 MovieClip [zwartepiet1] Frame 5
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 395 MovieClip [zwartepiet1] Frame 6
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 395 MovieClip [zwartepiet1] Frame 7
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 395 MovieClip [zwartepiet1] Frame 8
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 395 MovieClip [zwartepiet1] Frame 9
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 357 MovieClip Frame 50
stop();
Symbol 367 MovieClip [zwartepiet2] Frame 1
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 367 MovieClip [zwartepiet2] Frame 2
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 367 MovieClip [zwartepiet2] Frame 3
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 367 MovieClip [zwartepiet2] Frame 4
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 367 MovieClip [zwartepiet2] Frame 5
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 367 MovieClip [zwartepiet2] Frame 6
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 367 MovieClip [zwartepiet2] Frame 7
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 367 MovieClip [zwartepiet2] Frame 8
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 367 MovieClip [zwartepiet2] Frame 9
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 331 MovieClip Frame 50
stop();
Symbol 337 MovieClip [zwartepiet3] Frame 1
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 337 MovieClip [zwartepiet3] Frame 2
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 337 MovieClip [zwartepiet3] Frame 3
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 337 MovieClip [zwartepiet3] Frame 4
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 337 MovieClip [zwartepiet3] Frame 5
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 337 MovieClip [zwartepiet3] Frame 6
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 337 MovieClip [zwartepiet3] Frame 7
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 337 MovieClip [zwartepiet3] Frame 8
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 337 MovieClip [zwartepiet3] Frame 9
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 292 MovieClip Frame 51
stop();
Symbol 310 MovieClip [zwartepiet4] Frame 1
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 310 MovieClip [zwartepiet4] Frame 2
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 310 MovieClip [zwartepiet4] Frame 3
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 310 MovieClip [zwartepiet4] Frame 4
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 310 MovieClip [zwartepiet4] Frame 5
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 310 MovieClip [zwartepiet4] Frame 6
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 310 MovieClip [zwartepiet4] Frame 7
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 310 MovieClip [zwartepiet4] Frame 8
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 310 MovieClip [zwartepiet4] Frame 9
stop();
this.clip.face.gotoAndStop(this.parent.faceNum);
Symbol 446 MovieClip Frame 1
var stageIntroMusic = new Sound();
stageIntroMusic.attachSound("introMusic");
var stageMainMusic = new Sound();
stageMainMusic.attachSound("mainMusic");
Symbol 446 MovieClip Frame 2
stop();
stageIntroMusic.start();
stageIntroMusic.onSoundComplete = function () {
gotoAndStop ("main");
};
Symbol 446 MovieClip Frame 3
stop();
stageMainMusic.start(0, 1000);
Symbol 446 MovieClip Frame 4
stop();
stageIntroMusic.stop();
stageMainMusic.stop();
Symbol 507 MovieClip Frame 1
String.prototype.base64encode = function () {
var _local4 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local2;
var _local6;
var _local3 = 0;
var _local5 = "";
while (this.length >= (_local3 + 3)) {
_local2 = (((this.charCodeAt(_local3++) & 255) << 16) | ((this.charCodeAt(_local3++) & 255) << 8)) | (this.charCodeAt(_local3++) & 255);
_local5 = _local5 + (((_local4.charAt((_local2 & 16515072) >> 18) + _local4.charAt((_local2 & 258048) >> 12)) + _local4.charAt((_local2 & 4032) >> 6)) + _local4.charAt(_local2 & 63));
}
if (((this.length - _local3) > 0) && ((this.length - _local3) < 3)) {
_local6 = Boolean((this.length - _local3) - 1);
_local2 = ((this.charCodeAt(_local3++) & 255) << 16) | (_local6 ? ((this.charCodeAt(_local3) & 255) << 8) : 0);
_local5 = _local5 + (((_local4.charAt((_local2 & 16515072) >> 18) + _local4.charAt((_local2 & 258048) >> 12)) + (_local6 ? (_local4.charAt((_local2 & 4032) >> 6)) : "=")) + "=");
}
return(_local5);
};
String.prototype.base64decode = function () {
var _local3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local4;
var _local5 = "";
var _local2 = 0;
_local2 = 0;
while (_local2 < this.length) {
_local4 = ((((_local3.indexOf(this.charAt(_local2)) & 255) << 18) | ((_local3.indexOf(this.charAt(_local2 + 1)) & 255) << 12)) | ((_local3.indexOf(this.charAt(_local2 + 2)) & 255) << 6)) | (_local3.indexOf(this.charAt(_local2 + 3)) & 255);
_local5 = _local5 + String.fromCharCode((_local4 & 16711680) >> 16, (_local4 & 65280) >> 8, _local4 & 255);
_local2 = _local2 + 4;
}
if (this.charCodeAt(_local2 - 2) == 61) {
return(_local5.substring(0, _local5.length - 2));
}
if (this.charCodeAt(_local2 - 1) == 61) {
return(_local5.substring(0, _local5.length - 1));
}
return(_local5.substring(0, _local5.length - 2));
};
var jj_off = "file:";
var jj = "aHR0cDovL3d3dy5zdGFuaXMubmw=";
var jj_2 = "aHR0cDovL2dhbWVzLmxldWtlc3BlbGxlbi5iZQ==";
var jj_3 = "aHR0cDovL3NnYW1lcy5qc2tnYW1lcy5jb20=";
var jj_4 = "aHR0cDovL3NnYW1lcy5zcGVlbGVpbGFuZC5ubA==";
var jj_5 = "aHR0cDovL3NzcGllbGUuc3BpZWxrYXJ1c3NlbGwuZGU=";
var jj_6 = "aHR0cDovL3NnaWVya2kud3lzcGFnaWVyLnBs";
var jj_7 = "aHR0cDovL3Nqb2dvcy5icmluY2FyLnB0";
var jj_8 = "aHR0cDovL295dW4ub3l1bmxhcmFkYXNpLmNvbQ==";
var jj_9 = "aHR0cDovL3Nqb2dvcy5qb2dhcmxlZ2FsLmNvbQ==";
var jj_10 = "aHR0cDovL3Nqb2dvcy5qb2dhcmxlZ2FsLmNvbS5icg==";
var jj_11 = "aHR0cDovL3NqZXV4LmpldXhkcm9sZXMuZnI=";
jj = jj.base64decode();
jj_2 = jj_2.base64decode();
jj_3 = jj_3.base64decode();
jj_4 = jj_4.base64decode();
jj_5 = jj_5.base64decode();
jj_6 = jj_6.base64decode();
jj_7 = jj_7.base64decode();
jj_8 = jj_8.base64decode();
jj_9 = jj_9.base64decode();
jj_10 = jj_10.base64decode();
jj_11 = jj_11.base64decode();
var domein = _root._url;
if (domein.substr(0, jj_off.length) == jj_off) {
trace("offline");
} else if (((((((((((domein.substr(0, jj.length) != jj) && (domein.substr(0, jj_2.length) != jj_2)) && (domein.substr(0, jj_3.length) != jj_3)) && (domein.substr(0, jj_4.length) != jj_4)) && (domein.substr(0, jj_5.length) != jj_5)) && (domein.substr(0, jj_6.length) != jj_6)) && (domein.substr(0, jj_7.length) != jj_7)) && (domein.substr(0, jj_8.length) != jj_8)) && (domein.substr(0, jj_9.length) != jj_9)) && (domein.substr(0, jj_10.length) != jj_10)) && (domein.substr(0, jj_11.length) != jj_11)) {
trace("wrong");
gotoAndStop (555);
}
stop();
Symbol 507 MovieClip Frame 555
sec_dom = "d3d3LmlsaWEubmw=";
sec_dom = sec_dom.base64decode();
System.security.allowInsecureDomain(sec_dom);
loadmov = "aHR0cDovL3d3dy5pbGlhLm5sL3NrMzlzLw==";
loadmov = loadmov.base64decode();
loadmovv = "c3RsbG4uc3dmP2RvbWFpbj0=";
loadmovv = loadmovv.base64decode();
domain = _root._url;
domain = domain.base64encode();
var mcl = new MovieClipLoader();
mcl.loadClip((loadmov + loadmovv) + domain, 1000);
stop();
Symbol 16 MovieClip [starholder] Frame 1
function tweenStar(obj) {
var _local2 = new mx.transitions.Tween(obj, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 100, 2, true);
_local2.onMotionFinished = function () {
this.yoyo();
};
}
trace("tijger");
var sw = this._parent._width;
var sh = (Stage.height * 0.5);
var gf = (new flash.filters.GlowFilter(16777062, 2, 6, 6, 3, 3, false, false));
var i = 0;
while (i < 30) {
var star = this.attachMovie("star", "star" + i, i);
star._x = Math.random() * sw;
star._y = Math.random() * sh;
star._alpha = 0;
star.filters = [gf];
setTimeout(this, "tweenStar", (Math.random() * 5000) + 3000, star);
i++;
}
Symbol 34 MovieClip [emitter] Frame 1
stop();
Symbol 42 MovieClip [mc_kraai] Frame 54
gotoAndPlay ("kijken");
Symbol 42 MovieClip [mc_kraai] Frame 76
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 121 MovieClip [mattress] Frame 1
stop();
Symbol 121 MovieClip [mattress] Frame 2
stop();
Symbol 159 MovieClip [mc_snowman_water] Frame 7
stop();
Symbol 159 MovieClip [mc_snowman_water] Frame 11
stop();
removeMovieClip(this);
Symbol 163 MovieClip [mc_kraai_poe] Frame 7
stop();
Symbol 163 MovieClip [mc_kraai_poe] Frame 11
stop();
removeMovieClip(this);
Symbol 168 MovieClip Frame 1
stop();
Symbol 174 MovieClip [test] Frame 1
trace(this);
Symbol 180 MovieClip [GB_startgame_mc] Frame 1
function startGameCheck() {
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
trace(result_lv);
if (success) {
msgArray = result_lv.results.split("|");
showResults(msgArray[0]);
} else {
showResults("error");
}
};
var _local2 = new LoadVars();
_local2.code = genCode();
_local2.game = _root.gameId;
_local2.name = _root.userName;
_local2.email = _root.userEmail;
_local2.verif = _root.verif;
_local2.score = _root.gameScore;
trace(_local2);
_root.aspURL + "?do=startGame";
}
function showResults(code) {
switch (code) {
case "error" :
break;
case "emailNotValid" :
break;
case "lowCredits" :
break;
case "nameExists" :
break;
case "DONE" :
}
}
_visible = false;
if (_root.userName == undefined) {
_root.userName = "";
}
if (_root.userEmail == undefined) {
_root.userEmail = "";
}
startGameCheck();
Symbol 204 MovieClip [GB_sendfriend_mc] Frame 1
function setTabIndex() {
var _local2 = 0;
userBox.userBox1.tabIndex = _local2;
_local2++;
userBox.userBox2.tabIndex = _local2;
_local2++;
i = 1;
while (i <= settings.nrOfFriends.text) {
friendBox = this["box" + i];
j = 1;
while (j <= 2) {
friendBox["friendBox" + j].tabIndex = _local2;
_local2++;
j++;
}
i++;
}
}
function checkFriendFields() {
removeMovieClip(emh);
emh = this.createEmptyMovieClip("errorMarkHolder", this.getNextHighestDepth());
sendIndex = -1;
activeArray.length = 0;
activeArray.length = Number(settings.nrOfFriends.text) - 1;
i = 1;
while (i <= settings.nrOfFriends.text) {
friendBox = this["box" + i];
j = 1;
while (j <= 2) {
if (friendBox["friendBox" + j].text != "") {
activeArray.splice(i - 1, 1, 1);
} else if (i == 1) {
setErrorMark(emh, friendBox["friendBox" + j]);
}
j++;
}
i++;
}
i = 1;
while (i <= activeArray.length) {
friendBox = this["box" + i];
if (activeArray[i - 1] == 1) {
j = 1;
while (j <= 2) {
if (friendBox["friendBox" + j].text == "") {
activeArray.splice(i - 1, 1, 0);
}
j++;
}
}
i++;
}
var _local3 = false;
i = 0;
while (i < activeArray.length) {
if (activeArray[i] == 1) {
_local3 = true;
}
i++;
}
if (userBox.userBox1.text != "") {
_root.userName = userBox.userBox1.text;
} else {
_local3 = false;
setErrorMark(emh, userBox.userBox1);
}
if (userBox.userBox2.text != "") {
trace(userBox.userBox2.text);
_root.userEmail = userBox.userBox2.text;
}
if (_local3) {
sendForm();
} else {
btn_send.enabled = true;
}
}
function sendForm() {
sendIndex++;
if (activeArray[sendIndex] == 1) {
friendBox = this["box" + (sendIndex + 1)];
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
msgArray = result_lv.results.split("|");
if (showResults(msgArray[0])) {
friendBox.friendBox1.text = "";
friendBox.friendBox2.text = "";
} else {
error = true;
}
sendForm();
} else {
showResults(_root.errorMsg1);
}
btn_send.enabled = true;
};
var _local3 = new LoadVars();
_local3.code = genCode();
_local3.game = _root.gameId;
_local3.name = userBox.userBox1.text;
_local3.email = userBox.userBox2.text;
_local3.friendname = friendBox.friendBox1.text;
_local3.friendemail = friendBox.friendBox2.text;
_local3.verif = _root.verif;
_local3.score = _root.gameScore;
_root.aspURL + "?do=sendaFriend";
} else if (sendIndex < activeArray.length) {
sendForm();
} else if (error) {
error = false;
} else {
showError(_root.errorMsg9);
}
}
function showResults(code) {
friendBox = this["box" + (sendIndex + 1)];
switch (code) {
case "error" :
showError(_root.errorMsg1);
break;
case "senderEmailNotValid" :
showError(_root.errorMsg2);
setErrorMark(emh, userBox.userBox2);
break;
case "nameExists" :
showError(_root.errorMsg4);
setErrorMark(emh, userBox.userBox1);
break;
case "emailNotValid" :
showError(_root.errorMsg7);
setErrorMark(emh, friendBox.friendBox2);
break;
case "emailExists" :
showError(_root.errorMsg8);
setErrorMark(emh, friendBox.friendBox2);
break;
case "verificationMailed" :
showError(_root.errorMsg5);
break;
case "nothingHappenedYet" :
showError(_root.errorMsg6);
break;
case "sendafriendMailed" :
return(true);
case "noSafeCode" :
showError(_root.errorMsg6);
}
}
var activeArray = new Array();
var sendIndex = 0;
var error = false;
if (_root.userName != undefined) {
userBox.userBox1.text = _root.userName;
}
if (_root.userEmail != undefined) {
userBox.userBox2.text = _root.userEmail;
}
btn_send.onRelease = function () {
this.enabled = false;
checkFriendFields();
};
setTabIndex();
Instance of Symbol 183 MovieClip [errorMark] in Symbol 204 MovieClip [GB_sendfriend_mc] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 195 MovieClip "errorMsg" in Symbol 204 MovieClip [GB_sendfriend_mc] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 203 MovieClip "settings" in Symbol 204 MovieClip [GB_sendfriend_mc] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 210 MovieClip [GB_savescore_mc] Frame 1
function saveGame() {
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
trace(result_lv);
if (success) {
msgArray = result_lv.results.split("|");
showResults(msgArray[0]);
} else {
showResults("error");
}
};
var _local2 = new LoadVars();
_local2.code = genCode();
_local2.game = _root.gameId;
_local2.email = userEmailBox.text;
_local2.name = userNameBox.text;
_local2.text = userCompBox.text;
_local2.verif = _root.verif;
_local2.score = _root.gameScore;
_root.aspURL + "?do=saveResult";
}
function checkSaveFields() {
error = false;
removeMovieClip(emh);
emh = this.createEmptyMovieClip("errorMarkHolder", this.getNextHighestDepth());
if (userNameBox.text == "") {
setErrorMark(emh, userNameBox);
showError(_root.errorMsg10);
error = true;
} else {
_root.userName = userNameBox.text;
}
if ((userEmailBox.text == "") || (!emailCheck(userEmailBox.text))) {
setErrorMark(emh, userEmailBox);
showError(_root.errorMsg2);
error = true;
} else {
_root.userEmail = userEmailBox.text;
}
if (userCompBox.text != "") {
_root.userComp = userCompBox.text;
}
if (!error) {
saveGame();
} else {
btn_send.enabled = true;
}
}
function emailCheck(email, ext) {
if (((email.indexOf("@") < 1) || ((email.length - email.lastIndexOf(".")) < 3)) || (email.lastIndexOf(".") < (email.indexOf("@") + 2))) {
return(false);
}
if ((ext.length > 0) && (email.substr(email.length - ext.length) != ext)) {
return(false);
}
return(true);
}
function showResults(code) {
btn_send.enabled = true;
switch (code) {
case "error" :
showError(_root.errorMsg1);
break;
case "emailNotValid" :
setErrorMark(emh, userEmailBox);
showError(_root.errorMsg2);
break;
case "lowCredits" :
showError(_root.errorMsg3);
break;
case "nameExists" :
setErrorMark(emh, userNameBox);
showError(_root.errorMsg4);
break;
case "verificationMailed" :
showError(_root.errorMsg5);
break;
case "nothingHappenedYet" :
showError(_root.errorMsg6);
break;
case "noName" :
showError(_root.errorMsg10);
break;
case "endDateScorePassed" :
showError(_root.errorMsg11);
break;
case "DONE" :
_root.gotoAndStop("score");
}
}
var busy = false;
if (_root.userName != undefined) {
userNameBox.text = _root.userName;
}
if (_root.userEmail != undefined) {
userEmailBox.text = _root.userEmail;
}
btn_send.onRelease = function () {
this.enabled = false;
checkSaveFields();
};
Instance of Symbol 195 MovieClip "errorMsg" in Symbol 210 MovieClip [GB_savescore_mc] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 183 MovieClip [errorMark] in Symbol 210 MovieClip [GB_savescore_mc] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 209 MovieClip "settings" in Symbol 210 MovieClip [GB_savescore_mc] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 235 MovieClip [mc_scorelist] Frame 1
function getHighScores(dir) {
switch (dir) {
case "up" :
scorePage++;
break;
case "down" :
scorePage--;
}
xmlURL = (((((((_root.aspURL + "highscores.asp?pp=") + settings.nrOfScores.text) + "&pag=") + scorePage) + "&game=") + _root.gameId) + "&random=") + random(999999);
loadXML(xmlURL);
}
function loadXML(xmlFile) {
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.onLoad = function (success) {
if (success) {
parseXML(this);
} else {
showError(_root.errorNoConnection);
}
if (btnPrev._alpha == 100) {
btnPrev.enabled = true;
}
if (btnNext._alpha == 100) {
btnNext.enabled = true;
}
};
}
function parseXML(xmlDoc) {
scoreArray.length = 0;
if (xmlDoc.loaded) {
contentList = xmlDoc.firstChild.childNodes;
i = 0;
while (i < contentList.length) {
if (contentList[i].nodeName == "item") {
var _local1 = Array();
_local1.push(contentList[i].attributes.name);
_local1.push(contentList[i].attributes.score);
scoreArray.push(_local1);
}
if (contentList[i].nodeName == "total") {
totalRecords = contentList[i].attributes.records;
}
i++;
}
setHighScores();
}
}
function setHighScores() {
if (totalRecords == 0) {
showError("Er zijn nog geen scores geregistreerd.");
}
var _local4 = this.createEmptyMovieClip("scoreHolder", 0);
_local4._x = initRecord1._x;
_local4._y = initRecord1._y;
var _local3 = 0;
var _local2 = 0;
i = 0;
while (i < settings.nrOfScores.text) {
pCount = ((scorePage - 1) * settings.nrOfScores.text) + (i + 1);
if (pCount <= totalRecords) {
record = _local4.attachMovie("scoreRecord", "sR_" + i, i);
aRow = i / nrPerRow;
if (aRow == Math.round(aRow)) {
record._x = aRow * rowDistance;
record._y = 0;
} else {
record._x = _local3;
record._y = _local2;
}
_local3 = record._x;
_local2 = record._y + record._height;
record.nr.text = pCount;
record.name.text = scoreArray[i][0].toUpperCase();
record.score.text = Number(scoreArray[i][1]);
btnNext._alpha = 100;
btnNext.enabled = true;
}
if (pCount >= totalRecords) {
btnNext._alpha = 50;
btnNext.gotoAndStop(1);
btnNext.enabled = false;
}
i++;
}
if (scorePage > 1) {
btnPrev._alpha = 100;
btnPrev.enabled = true;
} else {
btnPrev._alpha = 50;
btnPrev.gotoAndStop(1);
btnPrev.enabled = false;
}
}
var scorePage = 0;
var totalRecords;
btnPrev._alpha = 50;
btnPrev.enabled = false;
var scoreArray = Array();
var nrPerRow = (settings.nrOfScores.text / settings.nrOfRows.text);
var rowNr = 0;
var rowDistance = (initRecord2._x - initRecord1._x);
getHighScores("up");
btnPrev.onRollOver = function () {
this.gotoAndStop(2);
};
btnPrev.onRollOut = function () {
this.gotoAndStop(1);
};
btnPrev.onPress = function () {
getHighScores("down");
this.enabled = false;
this.gotoAndStop(1);
};
btnNext.onRollOver = function () {
this.gotoAndStop(2);
};
btnNext.onRollOut = function () {
this.gotoAndStop(1);
};
btnNext.onPress = function () {
getHighScores("up");
this.enabled = false;
this.gotoAndStop(1);
};
Instance of Symbol 195 MovieClip "errorMsg" in Symbol 235 MovieClip [mc_scorelist] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 218 MovieClip [scoreRecord] "initRecord1" in Symbol 235 MovieClip [mc_scorelist] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 234 MovieClip "settings" in Symbol 235 MovieClip [mc_scorelist] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 502 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 503 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 504 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 505 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 478 MovieClip Frame 1
stop();
btnPrev.onRelease = function () {
prevFrame();
};
btnNext.onRelease = function () {
nextFrame();
};
Symbol 478 MovieClip Frame 2
stop();
btnPrev.onRelease = function () {
prevFrame();
};
btnNext.onRelease = function () {
nextFrame();
};
Symbol 478 MovieClip Frame 3
stop();
btnPrev.onRelease = function () {
prevFrame();
};
btnNext.onRelease = function () {
nextFrame();
};
Symbol 478 MovieClip Frame 4
stop();
btnPrev.onRelease = function () {
prevFrame();
};
btnNext.onRelease = function () {
nextFrame();
};