Frame 1
ka = "G0ril";
starttime = new Date();
_root.createEmptyMovieClip("fpsWatcher", _root.getNextHighestDepth());
fpsWatcher.onEnterFrame = function () {
var _local1 = new Date();
var _local2 = _local1 - starttime;
while (_local2 < 25) {
_local1 = new Date();
_local2 = _local1 - starttime;
}
starttime = new Date();
};
switch (domain) {
case "peta2" :
urlPrefix = "http://www.peta2.com/fur_fighters/";
break;
case "petauk" :
urlPrefix = "http://www.peta.org.uk/feat/fur_fighters/";
break;
default :
urlPrefix = "http://www.bloodyburberry.com/features/fur_fighters/";
}
function playSound(soundId, repeat, uniqueId) {
if (!uniqueId) {
uniqueId = "";
}
if (repeat == 0) {
} else if (!repeat) {
repeat = 1;
}
sndEffectCnt++;
soundEffectId = "soundEffect_" + sndEffectCnt;
if (_root[("soundMC_" + soundId) + uniqueId]) {
if (_root[("soundMC_" + soundId) + uniqueId].repeat) {
_root[_root[("soundMC_" + soundId) + uniqueId].soundEffectId].stop();
}
delete _root[_root[("soundMC_" + soundId) + uniqueId].soundEffectId];
_root[("soundMC_" + soundId) + uniqueId].removeMovieClip();
}
_root.createEmptyMovieClip(("soundMC_" + soundId) + uniqueId, _root.getNextHighestDepth());
_root[soundEffectId] = new Sound(_root[("soundMC_" + soundId) + uniqueId]);
_root[("soundMC_" + soundId) + uniqueId].soundEffectId = soundEffectId;
_root[("soundMC_" + soundId) + uniqueId].repeat = repeat - 1;
my_sound = _root[soundEffectId];
if (repeat) {
my_sound.attachSound(soundId);
my_sound.setVolume(100);
switch (soundId) {
case "TICKER" :
my_sound.setVolume(80);
break;
case "DING" :
my_sound.setVolume(300);
break;
case "LEVELINTRO" :
my_sound.setVolume(60);
break;
case "GAMEOVER" :
my_sound.setVolume(40);
break;
case "SPOOKYINTRO" :
my_sound.setVolume(60);
break;
case "BULB" :
my_sound.setVolume(40);
break;
case "drip" :
my_sound.setVolume(20);
break;
case "impact" :
my_sound.setVolume(200);
break;
case "reaction" :
my_sound.setVolume(200);
break;
case "screech" :
my_sound.setVolume(120);
}
if (soundOn) {
my_sound.start(0, repeat);
}
} else {
my_sound.stop();
}
return(my_sound);
}
function playSoundtrack(soundtrackId, newVolume) {
if (soundtrackId == "JingleBells") {
soundtrackVolume = 60;
} else if (soundtrackId == "music_vick") {
soundtrackVolume = 160;
} else if (soundtrackId == "void") {
soundtrackVolume = 0;
} else {
soundtrackVolume = 120;
}
if (newVolume) {
soundtrackVolume = newVolume;
}
if (soundtrackId == "soundtrack6") {
musicFadeFrequ = 25;
musicFadeStep = 1;
} else {
musicFadeFrequ = 20;
musicFadeStep = 3;
}
stopSoundtrack(1);
if (_root.musicFaderIn) {
clearInterval(_root.musicFaderIn);
_root.musicFaderIn = null;
}
my_soundtrack = _root.soundtrack_snd;
my_soundtrack.setVolume(0);
my_soundtrack.stop();
if (soundtrackId) {
my_soundtrack.attachSound(soundtrackId);
}
if (my_soundtrack.getBytesLoaded() == my_soundtrack.getBytesTotal()) {
if (!soundtrackPlaying) {
_root.fadeInMusic();
if (_root.soundOn) {
my_soundtrack.start(0, 9999);
}
}
soundtrackPlaying = true;
}
my_soundtrack.onLoad = function () {
if (!soundtrackPlaying) {
_root.fadeInMusic();
if (_root.soundOn) {
my_soundtrack.start(0, 9999);
}
}
soundtrackPlaying = true;
};
}
function stopSoundtrack(flag) {
if (musicFaderIn) {
clearInterval(musicFaderIn);
musicFaderIn = null;
}
if (flag) {
soundtrackPlaying = false;
_root.soundtrack_snd.stop();
} else {
fadeOutMusic();
}
}
function fadeInMusic() {
fadeMusic = my_soundtrack;
clearInterval(musicFaderIn);
musicFaderIn = null;
fadeMusic.setVolume(1);
musicFaderIn = setInterval(fadeInMusicStep, musicFadeFrequ);
}
function fadeInMusicStep() {
if (musicFaderIn) {
clearInterval(musicFaderIn);
musicFaderIn = null;
if (fadeMusic.getVolume()) {
if (fadeMusic.getVolume() < _root.soundtrackVolume) {
fadeMusic.setVolume(fadeMusic.getVolume() + musicFadeStep);
musicFaderIn = setInterval(fadeInMusicStep, musicFadeFrequ);
} else {
fadeMusic.setVolume(_root.soundtrackVolume);
}
}
}
}
function fadeOutMusic() {
fadeMusic = my_soundtrack;
clearInterval(musicFaderIn);
musicFaderIn = null;
musicFaderIn = setInterval(fadeOutMusicStep, musicFadeFrequ);
}
function fadeOutMusicStep() {
if (musicFaderIn) {
clearInterval(musicFaderIn);
musicFaderIn = null;
if (fadeMusic.getVolume()) {
if (fadeMusic.getVolume() > 0) {
fadeMusic.setVolume(fadeMusic.getVolume() - musicFadeStep);
musicFaderIn = setInterval(fadeOutMusicStep, musicFadeFrequ);
} else {
stopSoundtrack(1);
}
} else {
stopSoundtrack(1);
}
}
}
var soundOn = true;
var sndEffectCnt = 0;
var soundtrackVolume = 100;
var soundtrackPlaying = false;
_root.createEmptyMovieClip("soundtrackHolderMC", _root.getNextHighestDepth());
_root.soundtrack_snd = new Sound(_root.soundtrackHolderMC);
var musicFadeFrequ = 20;
var musicFadeStep = 3;
stop();
if (getBytesLoaded() == getBytesTotal()) {
gotoAndPlay ("loaded");
}
total = Math.round(getBytesTotal() / 1024);
_root.onEnterFrame = function () {
loaded = Math.round(getBytesLoaded() / 1024);
percent = Math.round((loaded / total) * 100);
_root.loadPercent_txt.text = percent;
if (percent == 100) {
gotoAndPlay ("loaded");
}
};
Frame 19
delete _root.onEnterFrame;
gotoAndPlay (43);
Frame 43
function goWeb() {
if (_root.domain == "petauk") {
getURL ("http://www.peta.org.uk/feat/feat-burberry_fur.asp");
} else {
getURL ("http://www.BloodyBurberry.com", "_blank");
}
}
function goTitle() {
gotoAndPlay (43);
trace(1);
}
function gotoTitle() {
goTitle();
}
function goHighScores() {
gotoAndPlay (244);
}
function gotoHighScores() {
goHighScores();
}
function gotoHighInstructions() {
gotoAndPlay (43);
}
function setContextMenu() {
root_cm = new ContextMenu();
root_cm.hideBuiltInItems();
root_cm.customItems.push(new ContextMenuItem("Restart Game", gotoTitle));
if (_root.domain != "petauk") {
root_cm.customItems.push(new ContextMenuItem("Visit BloodyBurberry.com", goWeb, true));
}
_root.menu = root_cm;
}
fscommand ("allowscale", true);
fscommand ("showmenu", false);
_root._quality = "HIGH";
playSoundtrack("void");
characters = new Array("fox", "raccoon", "bunny");
if (!character) {
character = "raccoon";
}
setContextMenu();
Color.prototype.setTint = function (r, g, b, amount) {
var _local4 = 100 - amount;
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = _local4));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
function clearStage() {
level = 0;
if (antagonists) {
a = 1;
while (a <= antagonists) {
antagonist = _root[("antagonist" + a) + "_mc"];
if (antagonist) {
antagonist.removeMovieClip();
}
a++;
}
}
delete antagonists;
if (foreground_mc) {
foreground_mc.removeMovieClip();
}
if (blackfade_mc) {
blackfade_mc.removeMovieClip();
}
if (info_mc) {
info_mc.removeMovieClip();
}
if (info2_mc) {
info2_mc.removeMovieClip();
}
if (restart_mc) {
restart_mc.removeMovieClip();
}
if (frame_mc) {
frame_mc.removeMovieClip();
}
if (captured_mc) {
captured_mc.removeMovieClip();
}
if (timeover_mc) {
timeover_mc.removeMovieClip();
}
if (soundControl_mc) {
soundControl_mc.removeMovieClip();
}
if (targets) {
t = 1;
while (t <= targets) {
target = _root[("target" + t) + "_mc"];
if (target) {
target._x = (target._y = 0);
setPerspective(target);
target.removeMovieClip();
}
t++;
}
}
delete targets;
if (obstacles) {
ob = 1;
while (ob <= obstacles) {
obstacle = _root[("obstacle" + ob) + "_mc"];
if (obstacle) {
obstacle._x = (obstacle._y = 0);
setPerspective(obstacle);
obstacle.removeMovieClip();
}
ob++;
}
}
delete obstacles;
if (paintDrops) {
p = 1;
while (p <= paintDrops) {
paintDrop = _root[("paintdrop" + p) + "_mc"];
paintDrop._x = (paintDrop._y = 0);
setPerspective(paintDrop);
if (paintDrop) {
paintDrop.removeMovieClip();
}
p++;
}
}
delete paintDrops;
if (player) {
player.removeMovieClip();
}
_root.onEnterFrame = null;
if (info_mc) {
info_mc.info_txt.text = (info2_mc.info_txt.text = "");
info_mc._visible = (info2_mc._visible = (restart_mc._visible = (blackfade_mc._visible = false)));
frame_mc.removeMovieClip();
}
_root.cutsceneWalking = false;
_root.stopSoundtrack();
}
score = 0;
clearStage();
play();
function goDifficulty() {
gotoAndPlay (113);
}
function goLevel() {
gotoAndStop (177);
}
function goSelectPlayer() {
gotoAndStop ("selectChar");
}
var keyPressEnter = false;
var keyPressSpace = false;
_root.onEnterFrame = function () {
if (((!keyPressSpace) && (Key.isDown(32))) || ((!keyPressEnter) && (Key.isDown(13)))) {
if (Key.isDown(13)) {
keyPressEnter = true;
}
if (Key.isDown(32)) {
keyPressSpace = true;
}
_root.goSelectPlayer();
}
if (!Key.isDown(13)) {
keyPressEnter = false;
}
if (!Key.isDown(32)) {
keyPressSpace = false;
}
};
playSound("impact");
stopSoundtrack();
if (speechShowing) {
hideSpeech();
}
if (fdc_lv) {
fdc_lv.onLoad = null;
fdc_lv = null;
}
if (reportFPSInt) {
clearInterval(reportFPSInt);
reportFPSInt = null;
}
play();
Frame 65
stop();
Frame 78
c = 0;
while (c < characters.length) {
character = characters[c];
char_mc = _root[("char_" + character) + "_mc"];
char_mc.characterId = character;
char_mc.onRollOver = function () {
_root.playSound("TICK");
_root.gotoAndStop(this.characterId);
};
char_mc.onRelease = function () {
_root.character = this.characterId;
_root.goDifficulty();
};
c++;
}
var keyPressRight = false;
var keyPressLeft = false;
_root.onEnterFrame = function () {
selectDir = 0;
if ((!keyPressRight) && (Key.isDown(39))) {
selectDir++;
keyPressRight = true;
}
if ((!keyPressLeft) && (Key.isDown(37))) {
selectDir--;
keyPressLeft = true;
}
if (selectDir) {
c = 0;
while (c < characters.length) {
if (character == characters[c]) {
break;
}
c++;
}
if (characters[c + selectDir]) {
_root.playSound("TICK");
_root.gotoAndStop(characters[c + selectDir]);
}
}
if (((!keyPressSpace) && (Key.isDown(32))) || ((!keyPressEnter) && (Key.isDown(13)))) {
if (Key.isDown(13)) {
keyPressEnter = true;
}
if (Key.isDown(32)) {
keyPressSpace = true;
}
_root.goDifficulty();
}
if (!Key.isDown(37)) {
keyPressLeft = false;
}
if (!Key.isDown(39)) {
keyPressRight = false;
}
if (!Key.isDown(13)) {
keyPressEnter = false;
}
if (!Key.isDown(32)) {
keyPressSpace = false;
}
};
gotoAndStop ("raccoon");
Frame 88
_root.character = "fox";
Frame 96
_root.character = "raccoon";
Frame 104
_root.character = "bunny";
Frame 113
playSound("SPOOKYINTRO");
playSoundtrack("void");
Frame 139
stop();
i = 1;
while (i <= 3) {
d_btn = _root[("diff" + i) + "_btn"];
d_btn.difficultyValue = i;
d_btn.onRollOver = function () {
_root.playSound("TICK");
_root.gotoAndStop("difficulty" + this.difficultyValue);
};
d_btn.onRelease = function () {
_root.goLevel();
};
i++;
}
var keyPressUp = false;
var keyPressDown = false;
var keyPressEnter = false;
var keyPressSpace = false;
_root.onEnterFrame = function () {
selectDir = 0;
if ((!keyPressDown) && (Key.isDown(40))) {
selectDir++;
keyPressDown = true;
}
if ((!keyPressUp) && (Key.isDown(38))) {
selectDir--;
keyPressUp = true;
}
if (selectDir) {
if ((_root.difficulty + selectDir) && ((_root.difficulty + selectDir) <= 3)) {
_root.playSound("TICK");
_root.gotoAndStop("difficulty" + (_root.difficulty + selectDir));
}
}
if (((!keyPressSpace) && (Key.isDown(32))) || ((!keyPressEnter) && (Key.isDown(13)))) {
_root.goLevel();
}
if (!Key.isDown(38)) {
keyPressUp = false;
}
if (!Key.isDown(40)) {
keyPressDown = false;
}
if (!Key.isDown(13)) {
keyPressEnter = false;
}
if (!Key.isDown(32)) {
keyPressSpace = false;
}
};
if (!difficulty) {
difficulty = 1;
}
_root.gotoAndStop("difficulty" + difficulty);
Frame 140
difficulty = 1;
Frame 151
difficulty = 2;
Frame 161
difficulty = 3;
Frame 177
function initLevelSpecific() {
}
stop();
level = 1;
antagonists = 3;
targets = 8;
obstacles = 4;
levelTime = 100;
hint = "HINT: MOVE CLOSER TO THE FRONT OF A MANNEQUIN AND TRY AGAIN!";
antagonistSmartness_original = 0.85;
antagonistSpeed_original = 1.7;
var charx = 450;
var chary = 460;
var charxScale = -1;
var targetPoints = 50;
target_onEnterFrame = function (target) {
return(true);
};
ant_onEnterFrame = function (ant) {
if (_root.paintDrops) {
return(true);
}
return(false);
};
function init() {
gameActive = false;
_root.antagonistSmartness = _root.antagonistSmartness_original - (0.2 * (3 - _root.difficulty));
_root.antagonistSpeed = _root.antagonistSpeed_original - (0.2 * (3 - _root.difficulty));
frame_mc.hint_mc.textbox_mc.hint_txt.text = "";
reportFPSInt = setInterval(reportFPS, 40);
attachPlayer();
if (foreground_mc) {
foreground_mc.swapDepths(100000);
}
if (!timer) {
timer = levelTime;
}
a = 1;
while (a <= antagonists) {
ant = _root[("antagonist" + a) + "_mc"];
if (!ant._oX) {
ant._oX = ant._x;
ant._oY = ant._y;
} else {
ant._x = ant._oX;
ant._y = ant._oY;
}
ant.thisId = a;
ant.chary = ant._y;
ant.charx = ant._x;
ant.dx = (ant.dy = 0);
ant.terminalVelocity = terminalVelocity0;
ant.diffx = (ant.diffy = 0);
ant.accelleration = accelleration0;
ant.charxScale = 1;
setPerspective(ant);
a++;
}
targetsHit = 0;
solidSpaces = 0;
t = 1;
while (t <= targets) {
target = _root[("target" + t) + "_mc"];
if (!target._oX) {
target._oX = target._x;
target._oY = target._y;
} else {
target._x = target._oX;
target._y = target._oY;
}
target._x = target._x + 0.1;
target._y = target._y + 0.1;
target.thisId = t;
setPerspective(target, 1);
target.solidSpaceId = "";
setSolidSpace(target);
target.expended = false;
t++;
}
ob = 1;
while (ob <= obstacles) {
obstacle = _root[("obstacle" + ob) + "_mc"];
obstacle._x = obstacle._x + 0.1;
obstacle._y = obstacle._y + 0.1;
obstacle.thisId = t;
setPerspective(obstacle, 1);
obstacle.solidSpaceId = "";
setSolidSpace(obstacle);
ob++;
}
restart_mc._visible = (info_mc._visible = (info2_mc._visible = false));
info_mc.swapDepths(_root.getNextHighestDepth() + 10000);
info2_mc.swapDepths(_root.getNextHighestDepth() + 1);
restart_mc.swapDepths(_root.getNextHighestDepth() + 1);
frame_mc.swapDepths(_root.getNextHighestDepth() + 1);
blackfade_mc.swapDepths(_root.getNextHighestDepth() + 1);
soundControl_mc.swapDepths(_root.getNextHighestDepth() + 1);
blackfade_mc._visible = true;
blackfade_mc.gotoAndPlay(1);
frame_mc._visible = true;
frame_mc.timer_txt.text = "Time: " + timer;
frame_mc.lives_txt.text = "Lives: " + lives;
frame_mc.score_txt.text = "Score: " + score;
paintDrops = 0;
_root.onEnterFrame = rootonEnterFrame;
initLevelSpecific();
}
function setSolidSpace(mc) {
if (mc.solidSpace_mc) {
if (!mc.solidSpaceId) {
solidSpaces++;
_root.solid_mc.attachMovie("blankMC", ("solid" + solidSpaces) + "_mc", _root.solid_mc.getNextHighestDepth());
mc.solidSpaceId = ("solid" + solidSpaces) + "_mc";
}
dynSolidSpace_mc = _root.solid_mc[mc.solidSpaceId];
dynSolidSpace_mc._x = mc._x + (mc.solidSpace_mc._x * (mc._xscale / 100));
dynSolidSpace_mc._y = mc._y + (mc.solidSpace_mc._y * (mc._yscale / 100));
dynSolidSpace_mc._width = mc.solidSpace_mc._width * (mc._xscale / 100);
dynSolidSpace_mc._height = mc.solidSpace_mc._height * (mc._yscale / 100);
}
}
function setPerspective(mc, doNotResize) {
mc.perspective = 100 + (100 * (mc._y / gamey));
if (!doNotResize) {
if (!mc.charxScale) {
mc.charxScale = ((mcc._xscale == 100) ? 1 : -1);
}
mc._xscale = mc.perspective * mc.charxScale;
mc._yscale = mc.perspective;
}
mc.newDepth = Math.floor(mc.perspective * 1000) - 100000;
if (Math.abs(mc.getDepth() - mc.newDepth) > 300) {
if (_root.getInstanceAtDepth(mc.newDepth) && (Math.abs(mc.getDepth() - mc.newDepth) > 300)) {
while (_root.getInstanceAtDepth(mc.newDepth)) {
mc.newDepth++;
}
}
if (!_root.getInstanceAtDepth(mc.newDepth)) {
mc.swapDepths(mc.newDepth);
}
}
}
function testForSolids(mc, originalX, originalY) {
sResult = "";
if (mc.charx < 0) {
mc.charx = 0;
}
if (mc.charx > gamex) {
mc.charx = gamex;
}
if ((mc.chary - 30) < 0) {
mc.chary = 30;
}
if (mc.chary > gamey) {
mc.chary = gamey;
}
if (_root.solid_mc.hitTest(mc._x, mc._y, true)) {
if (!originalX) {
originalX = mc._x - mc.dx;
}
if (!originalY) {
originalY = mc._y - mc.dy;
}
newX = mc._x;
newY = mc._y;
mc._x = originalX;
sResult = "x";
if (_root.solid_mc.hitTest(mc._x, mc._y, true)) {
mc._x = newX;
mc._y = originalY;
sResult = "y";
if (_root.solid_mc.hitTest(mc._x, mc._y, true)) {
mc._x = originalX;
sResult = "xy";
}
}
mc.charx = mc._x;
mc.chary = mc._y;
}
return(sResult);
}
function attachPlayer() {
if (player) {
player.removeMovieClip();
}
_root.attachMovie(("player_" + _root.character) + "MC", "player", 99999);
player._x = (player.charx = _root.charx);
player._y = (player.chary = _root.chary);
player.dx = (player.dy = 0);
player.charxScale = _root.charxScale;
player._xscale = player.charxScale * 100;
player.attachMovie("blankMC", "hitSpace_mc", 99998);
player.hitSpace_mc._width = 10;
player.hitSpace_mc._height = 3;
player.hitSpace_mc._x = 0;
player.hitSpace_mc._y = 0;
}
function playerDie() {
lives--;
frame_mc.lives_txt.text = "Lives: " + lives;
if (!lives) {
gotoAndPlay (217);
} else {
playSound("impact");
playSound("screech");
}
}
function addToScore(scoreUp) {
score = score + scoreUp;
frame_mc.score_txt.text = "Score: " + score;
}
function levelComplete() {
gameActive = false;
levelBonus = ((timer * 10) + (lives * targetPoints)) * _root.difficulty;
blackfade_mc.gotoAndPlay(50);
blackfade_mc._visible = true;
timer = 0;
a = 1;
while (a <= antagonists) {
ant = _root[("antagonist" + a) + "_mc"];
ant.gotoAndStop("idle");
a++;
}
t = 1;
while (t <= targets) {
target = _root[("target" + t) + "_mc"];
if (target.walking) {
target.stop();
}
t++;
}
stopSoundtrack();
}
function levelFailed(failMsg) {
gameActive = false;
if (!timer) {
timer = levelTime;
}
if (failMsg == "Captured!") {
captured_mc.play();
captured_mc.swapDepths(_root.getNextHighestDepth());
} else if (failMsg == "Time Over!") {
timeover_mc.play();
timeover_mc.swapDepths(_root.getNextHighestDepth());
} else {
info_mc.info_txt.text = failMsg;
info_mc._visible = true;
}
a = 1;
while (a <= antagonists) {
ant = _root[("antagonist" + a) + "_mc"];
ant.gotoAndStop("idle");
a++;
}
t = 1;
while (t <= targets) {
target = _root[("target" + t) + "_mc"];
target.gotoAndStop("idle");
target.dy = 0;
t++;
}
playerDie();
if (lives) {
delay = 3;
if (delayFunction) {
delayFunction();
}
delayFunction = function () {
resetLevel();
};
}
}
function resetLevel() {
captured_mc.gotoAndStop(1);
timeover_mc.gotoAndStop(1);
if (paintDrops) {
p = 1;
while (p <= paintDrops) {
paintDrop = _root[("paintdrop" + p) + "_mc"];
paintDrop._x = (paintDrop._y = 0);
setPerspective(paintDrop);
if (paintDrop) {
paintDrop.removeMovieClip();
}
p++;
}
}
delete paintDrops;
if (0 && (timer)) {
targetsHit_save = targetsHit;
init();
targetsHit = targetsHit_save;
} else {
timer = 0;
t = 1;
while (t <= targets) {
target = _root[("target" + t) + "_mc"];
target.gotoAndStop("1");
if (target.expended) {
addToScore(-1 * (targetPoints * _root.difficulty));
}
target.expended = false;
t++;
}
init();
initLevelSpecific();
}
}
function reportFPS() {
if ((!gamePaused) && (gameActive)) {
if ((((FPS && (blackfade_mc)) && (!blackfade_mc._visible)) && (!captured_mc._visible)) && (!timeover_mc._visible)) {
FPScheck++;
FPStally = FPStally + FPS;
if (FPScheck == 7) {
FPSavg = FPStally / FPScheck;
if (FPSavg < 20) {
if (_root._quality == "BEST") {
_root._quality = "HIGH";
} else if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else {
_root._quality = "LOW";
clearInterval(reportFPSInt);
reportFPSInt = null;
}
}
FPScheck = (FPStally = 0);
}
}
}
}
var dy = 0;
var dx = 0;
var accelleration = 4.5;
var friction = 0.8;
var terminalVelocity = 6;
var gamex = 750;
var gamey = 500;
accelleration0 = accelleration;
friction0 = friction;
terminalVelocity0 = terminalVelocity;
var timer = 0;
var globalCounter = 0;
var delay = 0;
var gameActive = false;
rootonEnterFrame = function () {
globalCounter++;
if (!(globalCounter % (50 - (_root.difficulty * 10)))) {
if (gameActive) {
timer--;
frame_mc.timer_txt.text = "Time: " + timer;
if (!timer) {
levelFailed("Time Over!");
}
}
if (delay > 0) {
delay--;
if ((!delay) && (delayFunction)) {
delayFunction();
delayFunction = null;
}
}
}
var _local2 = getTimer();
FPS = Math.floor(1000 / (_local2 - fpstime));
fpstime = _local2;
if (gameActive) {
if (Key.isDown(39) && (player.dx < 5)) {
player.dx = player.dx + (0.1 * accelleration);
player.charxScale = 1;
}
if (Key.isDown(37) && (player.dx > -5)) {
player.dx = player.dx - (0.1 * accelleration);
player.charxScale = -1;
}
if (Key.isDown(38) && (player.dy > -5)) {
player.dy = player.dy - (0.06 * accelleration);
}
if (Key.isDown(40) && (player.dy < 5)) {
player.dy = player.dy + (0.06 * accelleration);
}
if (speed && (Math.random() > 0.7)) {
paintDrops++;
if ((level == 1) && (player.chary > 120)) {
_root.attachMovie("paintdropMC", ("paintdrop" + paintDrops) + "_mc", paintDrops - 2000);
paintdrop_mc = _root[("paintdrop" + paintDrops) + "_mc"];
paintdrop_mc._xscale = (paintdrop_mc._yscale = ((Math.random() * 30) + 3) * (player.perspective / 100));
paintdrop_mc._y = player.chary + (0.05 * player.perspective);
paintdrop_mc._x = player.charx + (-10 * player.charxScale);
if (Math.random() > 0.7) {
playSound("drip");
}
}
}
if (player.flip_mc) {
player.flip_mc.gotoAndStop("flip" + player.charxScale);
}
spaceActive = false;
t = 1;
while (t <= targets) {
target = _root[("target" + t) + "_mc"];
if (target && (target_onEnterFrame(target))) {
if (((!target.expended) && (Key.isDown(32))) && (player.hitSpace_mc.hitTest(target.hitSpace_mc))) {
target.expended = true;
targetsHit++;
addToScore(targetPoints * _root.difficulty);
player.gotoAndPlay("getActive" + level);
target.gotoAndPlay("targeted");
if (targetsHit == targets) {
target.walking = false;
levelComplete();
}
spaceActive = true;
frame_mc.hint_mc.textbox_mc.hint_txt.text = "";
}
}
t++;
}
if (Key.isDown(32)) {
trace((spaceDown + "/") + spaceActive);
if (!spaceDown) {
if (!spaceActive) {
frame_mc.hint_mc.textbox_mc.hint_txt.text = hint;
frame_mc.hint_mc.gotoAndPlay(1);
}
spaceDown = true;
}
} else {
spaceDown = false;
spaceActive = false;
}
a = 1;
while (a <= antagonists) {
ant = _root[("antagonist" + a) + "_mc"];
if (ant && (ant_onEnterFrame(ant))) {
if (ant.dumbx) {
if (Math.abs(ant._x - ant.dumbxPos) > 50) {
ant.dumbx = 0;
}
ant.dumbx--;
if (ant.dumbx < 0) {
ant.dumbx = null;
}
}
if (ant.dumby) {
if (Math.abs(ant._y - ant.dumbyPos) > 50) {
ant.dumby = 0;
}
ant.dumby--;
if (ant.dumby < 0) {
ant.dumby = null;
}
}
if (Math.random() < (0.04 * antagonistSmartness)) {
ant.diffx = player._x - ant._x;
ant.diffy = player._y - ant._y;
if (ant.dumbx) {
ant.diffx = ant.diffx * -0.4;
ant.diffy = ((ant.diffy > 0) ? 300 : -300);
ant.dumbxOverride = true;
}
if (ant.dumby) {
ant.diffy = ant.diffy * -0.4;
ant.diffx = ((ant.diffx > 0) ? 400 : -400);
ant.dumbyOverride = true;
}
}
if (ant.diffx && (Math.random() < (0.6 * antagonistSmartness))) {
xRatio = Math.abs(ant.diffx) / (Math.abs(ant.diffx) + Math.abs(ant.diffy));
yRatio = 1 - xRatio;
if (ant.diffx > 0) {
ant.dx = ant.dx + (((xRatio * 0.085) * ant.accelleration) * antagonistSpeed);
ant.charxScale = 1;
} else {
ant.dx = ant.dx - (((xRatio * 0.085) * ant.accelleration) * antagonistSpeed);
ant.charxScale = -1;
}
if (ant.diffy > 0) {
ant.dy = ant.dy + (((yRatio * 0.065) * ant.accelleration) * antagonistSpeed);
} else {
ant.dy = ant.dy - (((yRatio * 0.065) * ant.accelleration) * antagonistSpeed);
}
}
oDx = ant.dx;
oDy = ant.dy;
ant.dx = ant.dx * friction;
ant.dy = ant.dy * friction;
ant.speed = Math.abs(ant.dx) + Math.abs(ant.dy);
if (ant.speed > ant.terminalVelocity) {
ant.dx = ant.dx / (ant.speed / ant.terminalVelocity);
ant.dy = ant.dy / (ant.speed / ant.terminalVelocity);
}
if (Math.abs(ant.dx) < 0.01) {
ant.dx = 0;
}
if (Math.abs(ant.dy) < 0.01) {
ant.dy = 0;
}
oX = ant._x;
oY = ant._y;
ant.charx = ant.charx + ant.dx;
ant.chary = ant.chary + ant.dy;
ant._x = ant.charx;
ant._y = ant.chary;
solidResult = testForSolids(ant, oX, oY);
if (solidResult) {
if (Math.random() > 0.5) {
if (solidResult.indexOf("x") != -1) {
ant.dx = -1 * oDx;
if ((solidResult.indexOf("y") == -1) && (Math.abs(ant.dy) < 1)) {
ant.dy = ant.dy + ((ant.dy < 1) ? -1 : 1);
}
if (Math.random() < 0.9) {
ant.dumbx = Math.random() * 70;
ant.dumbxPos = ant._x;
ant.dumbxOverride = false;
}
}
if (solidResult.indexOf("y") != -1) {
ant.dy = -1 * oDy;
if ((solidResult.indexOf("x") == -1) && (Math.abs(ant.dx) < 1)) {
ant.dx = ant.dx + ((ant.dx < 1) ? -1 : 1);
}
if (Math.random() < 0.5) {
ant.dumby = Math.random() * 70;
ant.dumbyPos = ant._y;
ant.dumbyOverride = false;
}
}
}
}
if (ant.speed > 0.5) {
if (ant._currentframe < 10) {
ant.gotoAndPlay("walk");
} else {
ant.play();
}
} else {
ant.gotoAndStop("idle");
}
if (ant.hitSpace_mc.hitTest(player.hitSpace_mc)) {
levelFailed("Captured!");
}
setPerspective(ant);
ant.accelleration = accelleration0 * (ant.perspective / 100);
ant.terminalVelocity = terminalVelocity0 * (ant.perspective / 100);
}
a++;
}
speed = Math.abs(player.dx) + Math.abs(player.dy);
if (speed > terminalVelocity) {
player.dx = player.dx / (speed / terminalVelocity);
player.dy = player.dy / (speed / terminalVelocity);
}
if (Math.abs(player.dx) < 0.01) {
player.dx = 0;
}
if (Math.abs(player.dy) < 0.01) {
player.dy = 0;
}
player.charx = player.charx + player.dx;
player.chary = player.chary + player.dy;
oX = player._x;
oY = player._y;
player._x = player.charx;
player._y = player.chary;
testForSolids(player, oX, oY);
player.dx = player.dx * friction;
player.dy = player.dy * friction;
setPerspective(player);
accelleration = accelleration0 * (player.perspective / 100);
terminalVelocity = terminalVelocity0 * (player.perspective / 100);
if (player._currentframe < 50) {
if (speed > 1) {
player.play();
} else {
player.gotoAndStop("idle");
}
}
}
};
var lives = 3;
var score = 0;
var FPS = 0;
var FPScheck = 0;
var FPStally = 0;
var FPSavg = 0;
if (!FPSalerted) {
var FPSalerted = false;
}
init();
Frame 186
clearStage();
blackfade_mc._visible = true;
Frame 187
function initLevelSpecific() {
targetsWalking = 0;
t = 1;
while (t <= targets) {
target = _root[("target" + t) + "_mc"];
target.gotoAndStop("1");
target.walking = false;
target.dy = 0;
t++;
}
}
stop();
level = 2;
antagonists = 3;
targets = 6;
obstacles = 0;
levelTime = 200;
hint = "HINT: MOVE CLOSER TO A CATWALK MODEL AND TRY AGAIN!";
lastTarget = 1;
antagonistSmartness_original = 1;
antagonistSpeed_original = 1.3;
var charx = 90;
var chary = 460;
var charxScale = 1;
var targetPoints = 100;
tt = 0;
target_onEnterFrame = function (target) {
if (!target.originalY) {
target.dy = 0;
target.counter = -1;
target.walking = false;
target.originalY = target._y;
target.shade = 100;
target.shadeColour = new Color(target);
target.shadeColour.setTint(0, 0, 0, target.shade);
}
if (targetsWalking < 2) {
_root[("debug_" + target.thisId) + "2_txt"].text = "c1";
if ((!targetsWalking) || (Math.random() > 0.98)) {
_root[("debug_" + target.thisId) + "2_txt"].text = _root[("debug_" + target.thisId) + "2_txt"].text + "c2";
if (target.thisId == lastTarget) {
_root[("debug_" + target.thisId) + "2_txt"].text = _root[("debug_" + target.thisId) + "2_txt"].text + "c3";
_root[("debug_" + target.thisId) + "2_txt"].text = _root[("debug_" + target.thisId) + "2_txt"].text + ("-" + target.walking);
_root[("debug_" + target.thisId) + "3_txt"].text = (((target.thisId + "-") + lastTarget) + "-") + target.expended;
_root[("debug_" + target.thisId) + "4_txt"].text = (tt + "-") + targets;
tt++;
if ((!target.expended) && (!target.walking)) {
_root[("debug_" + target.thisId) + "2_txt"].text = _root[("debug_" + target.thisId) + "2_txt"].text + "c4";
targetsWalking++;
target.walking = true;
target.dy = 1.5;
target.stoppingPoint = Math.ceil(Math.random() * 100) + 350;
target.gotoAndPlay("walk");
trace("walking " + target.thisId);
}
lastTarget++;
if (lastTarget > targets) {
lastTarget = 1;
}
}
}
}
if (target.walking) {
if (target._currentframe <= 20) {
target.gotoAndPlay("walk");
}
target.dyOverride = 1;
target.shade = (200 - target._y) / 2;
if (target.shade > 100) {
targe.shade = 100;
}
if ((target.shade > 0) && (target.shade <= 100)) {
target.shadeColour.setTint(0, 0, 0, target.shade);
}
if (solid_mc.hitTest(player._x, player._y, 1) && (player._y < 100)) {
player.chary = player.chary + 2;
} else if (target.solidSpace_mc.hitTest(player.hitSpace_mc)) {
if (((target.dy > 0) && (player._y > target._y)) || ((target.dy < 0) && (player._y < target._y))) {
if (target.dy > 0) {
target.dyOverride = 0;
} else {
target.dyOverride = 0;
}
player.chary = player.chary + target.dy;
}
}
if ((target.dy >= 0) && ((target._y > target.stoppingPoint) || (target.expended))) {
if (target.counter > 0) {
target.counter--;
} else if (target.counter < 0) {
target.counter = (target.expended ? (Math.ceil((Math.random() * 1) * 40)) : (Math.ceil((Math.random() * 3) * 40)));
target.counter = target.counter + 40;
target.dy = 0;
if (!target.expended) {
target.gotoAndStop("pose" + Math.ceil(Math.random() * 3));
}
} else {
target.counter = -1;
target.dy = -1.5;
target.gotoAndPlay("goback");
}
}
if (target.walking && (target._y < target.originalY)) {
target.walking = false;
target.dy = 0;
targetsWalking--;
target._y = target.originalY + 1;
}
target._y = target._y + ((target.dy * target.dyOverride) * (target.perspective / 100));
setPerspective(target);
setSolidSpace(target);
return(true);
}
debug_txt.text = targetsWalking;
};
ant_onEnterFrame = function (ant) {
if (_root.paintDrops) {
return(true);
}
return(false);
};
init();
Frame 196
clearStage();
blackfade_mc._visible = true;
Frame 197
function initLevelSpecific() {
}
stop();
level = 3;
antagonists = 1;
targets = 7;
obstacles = 1;
levelTime = 150;
hint = "HINT: MOVE CLOSER TO THE FRONT OF AN UNOPENED CAGE AND TRY AGAIN!";
antagonistSmartness_original = 2.5;
antagonistSpeed_original = 1.4;
var charx = 700;
var chary = 400;
var charxScale = -1;
var targetPoints = 150;
target_onEnterFrame = function (target) {
return(true);
};
ant_onEnterFrame = function (ant) {
if (_root.paintDrops) {
return(true);
}
return(false);
};
init();
Frame 205
clearStage();
gotoAndStop (244);
Frame 217
play();
clearStage();
stopAllSounds();
playSoundtrack("void");
stopSoundtrack();
playSound("screech");
playSound("GAMEOVER");
stop();
Frame 244
clearStage();
ka = "G0ril";
function getHighScores() {
if (!connected) {
_root.connect_mc._visible = true;
}
fdc_lv = new LoadVars();
fdc_lv.load((((((serverScript + "?r=") + simpleEncode("get")) + "&t=") + simpleEncode("" + _root.scoreType)) + "&sess=") + _root.sessionId);
trace((((((serverScript + "?r=") + simpleEncode("get")) + "&t=") + simpleEncode("" + _root.scoreType)) + "&sess=") + _root.sessionId);
fdc_lv.onLoad = function () {
if (!failedToConnect) {
timeoutOkay = -1;
if (scoreType == "ALL-TIME") {
gotoAndStop ("showAllTimeScores");
} else {
gotoAndStop ("showRecentScores");
}
connect_mc._visible = false;
if (fdc_lv.loaded) {
connected = true;
scoreDisplayNum = -1;
showScore();
clearInterval(timer);
timer = null;
timer = setInterval(showScore, 150);
} else {
gotoAndStop ("failedToConnect");
}
}
};
}
function showScore() {
scoreDisplayNum++;
if (scoreDisplayNum) {
character = simpleDecode(fdc_lv["c" + scoreDisplayNum]);
playerName = simpleDecode(fdc_lv["n" + scoreDisplayNum]);
playerScore = simpleDecode(fdc_lv["s" + scoreDisplayNum]);
if (playerScore > 0) {
_root[("hs" + scoreDisplayNum) + "_mc"].gotoAndStop(character);
_root[("scoreName" + scoreDisplayNum) + "_txt"].text = playerName;
_root[("score" + scoreDisplayNum) + "_txt"].text = playerScore;
_root[("hs" + scoreDisplayNum) + "_mc"]._visible = true;
_root[("scoreName" + scoreDisplayNum) + "_txt"]._visible = true;
_root[("score" + scoreDisplayNum) + "_txt"]._visible = true;
}
}
if (scoreDisplayNum == scoresToDisplay) {
clearInterval(timer);
timer = null;
}
}
function checkScore() {
fdc_lv = new LoadVars();
fdc_lv.load((((((((serverScript + "?r=") + simpleEncode("check")) + "&s=") + simpleEncode("" + _root.score)) + "&c=") + simpleEncode(_root.character)) + "&sess=") + _root.sessionId);
trace((((((((serverScript + "?r=") + simpleEncode("check")) + "&s=") + simpleEncode("" + _root.score)) + "&c=") + simpleEncode(_root.character)) + "&sess=") + _root.sessionId);
_root.score = 0;
debug_txt.text = (((((((((_root.score + " -- SERVER CONTACTED: ") + serverScript) + "?r=") + simpleEncode("check")) + "&s=") + simpleEncode("" + _root.score)) + "&c=") + simpleEncode(_root.character)) + "&sess=") + _root.sessionId;
fdc_lv.onLoad = function () {
connect_mc._visible = false;
if (fdc_lv.loaded) {
if (!failedToConnect) {
debug_txt.text = "connected";
timeoutOkay = -1;
responseStr = simpleDecode(fdc_lv.r);
debug_txt.text = (fdc_lv.r + " -- ") + responseStr;
if (responseStr.length) {
_root.scoreType = responseStr;
_root.scoreId = simpleDecode(fdc_lv.i);
gotoAndStop ("enterScore");
} else {
scoreType = "ALL-TIME";
getHighScores();
}
} else {
gotoAndStop ("failedToConnect");
}
}
};
}
function sendHighScore(playerName) {
fdc_lv = new LoadVars();
fdc_lv.load((((((((serverScript + "?r=") + simpleEncode("send")) + "&i=") + simpleEncode("" + _root.scoreId)) + "&n=") + simpleEncode(playerName)) + "&sess=") + _root.sessionId);
trace((((((((serverScript + "?r=") + simpleEncode("send")) + "&i=") + simpleEncode("" + _root.scoreId)) + "&n=") + simpleEncode(playerName)) + "&sess=") + _root.sessionId);
_root.sessionId = Math.random();
if (!connected) {
connect_mc._visible = true;
}
gotoAndStop ("wait");
fdc_lv.onLoad = function () {
if (!failedToConnect) {
timeoutOkay = -1;
connect_mc._visible = false;
if (fdc_lv.loaded) {
responseStr = simpleDecode(fdc_lv.r);
if (responseStr.length) {
if (responseStr == "ALL-TIME") {
scoreType = "ALL-TIME";
} else if (responseStr == "RECENT") {
scoreType = "RECENT";
}
getHighScores();
} else {
gotoAndStop ("failedToConnect");
}
} else {
gotoAndStop ("failedToConnect");
}
}
};
}
function cancel() {
gotoAndStop (43);
}
function str_replace(find, replace, str) {
var _local1 = 0;
var _local2 = 0;
var _local5 = "";
while (_local1 = str.indexOf(find, _local1) , _local1 != -1) {
_local5 = _local5 + (str.substring(_local2, _local1) + replace);
_local1 = _local1 + find.length;
_local2 = _local1;
}
return(_local5 + str.substr(_local2));
}
function trim(str) {
while (str.substr(0, 1) == " ") {
str = str.substr(1);
}
while (str.substr(0, 1) == newline) {
str = str.substr(1);
}
while (str.substr(0, 1) == " ") {
str = str.substr(0, -1);
}
while (str.substr(-1, 1) == " ") {
str = str.substr(0, -1);
}
while (str.substr(-1, 1) == newline) {
str = str.substr(0, -1);
}
while (str.substr(-1, 1) == " ") {
str = str.substr(0, -1);
}
return(str);
}
function simpleEncode(str) {
encodedResult = CLASSES.RC4.encrypt(str, encKey);
return(encodedResult);
}
function simpleDecode(str) {
decodedResult = CLASSES.RC4.decrypt(str, encKey);
return(decodedResult);
}
function reverse(str) {
var _local3 = "";
var _local1 = str.length - 1;
while (_local1 >= 0) {
_local3 = _local3 + str.charAt(_local1);
_local1--;
}
return(_local3);
}
stop();
_root._quality = "HIGH";
playSoundtrack("void");
stopSoundtrack();
sessionId = Math.random();
timeoutOkay = 1500;
connected = false;
failedToConnect = false;
connect_mc._visible = true;
serverScript = "http://localhost/games/burberry/scores.php";
serverScript = "http://suchk.peta.org/games/burberry/scores.php";
serverScript = "http://dev.peta.org/test/burberry-game/scores.asp";
serverScript = "http://www.bloodyburberry.com/features/fur_fighters/scores.asp";
kb = "eip";
encKey = ((ka + "1") + "@") + reverse(kb);
var scoresToDisplay = 8;
trace(CLASSES.Base64);
var scoreId = 0;
var scoreType = "";
if (score) {
checkScore();
} else {
scoreType = "ALL-TIME";
getHighScores();
}
_root.onEnterFrame = function () {
timeoutOkay--;
if (!timeoutOkay) {
gotoAndStop ("failedToConnect");
delete _root.onEnterFrame;
}
if (Key.isDown(27)) {
gotoAndStop (43);
}
};
Frame 246
function simplify(str, allowedChars) {
if (!allowedChars) {
allowedChars = new Array();
}
allowedChars = allowedChars.concat(simpleChars.split(""));
output = "";
strBits = str.split("");
strBitI = 0;
while (strBitI < strBits.length) {
strChar = strBits[strBitI].toLowerCase();
aBit = 0;
while (aBit < allowedChars.length) {
if (strChar == allowedChars[aBit].toLowerCase()) {
output = output + strBits[strBitI];
break;
}
aBit++;
}
strBitI++;
}
return(output);
}
function trim(str) {
while (str.substr(0, 1) == " ") {
str = str.substr(1);
}
while (str.substr(0, 1) == newline) {
str = str.substr(1);
}
while (str.substr(0, 1) == " ") {
str = str.substr(0, -1);
}
while (str.substr(-1, 1) == " ") {
str = str.substr(0, -1);
}
while (str.substr(-1, 1) == newline) {
str = str.substr(0, -1);
}
while (str.substr(-1, 1) == " ") {
str = str.substr(0, -1);
}
return(str);
}
stop();
timeoutOkay = -1;
bigIcon_mc.gotoAndStop(character);
if (!scoreId) {
gotoAndStop ("showAllTimeScores");
}
Selection.setFocus("playername_txt");
welldone_txt.text = ("Yours is " + scoreType) + " high score! Post your name to the scoreboard in honor of such outstanding fur fighting!";
post_btn.onRelease = function () {
if (trim(playername_txt.text)) {
sendHighScore(trim(playername_txt.text));
} else {
scoreType = "ALL-TIME";
getHighScores();
}
};
var playerNameLength = 10;
_root.onEnterFrame = function () {
playerName = playername_txt.text;
playerName = simplify(playerName, Array(" ", "!"));
if (playerName.length > playerNameLength) {
playerName = playerName.substr(0, 10);
}
playername_txt.text = playerName;
if (Key.isDown(27)) {
gotoAndStop (43);
}
if (Key.isDown(13)) {
if (post_btn) {
post_btn.onRelease();
}
}
};
simpleChars = "abcdefghijklmnopqrstuvwxyz1234567890";
Frame 255
timeoutOkay = -1;
Frame 260
timeoutOkay = -1;
i = 1;
while (i <= scoresToDisplay) {
_root[("hs" + i) + "_mc"]._visible = false;
_root[("scoreName" + i) + "_txt"]._visible = false;
_root[("score" + i) + "_txt"]._visible = false;
i++;
}
Frame 275
timeoutOkay = -1;
i = 1;
while (i <= scoresToDisplay) {
_root[("hs" + i) + "_mc"]._visible = false;
_root[("scoreName" + i) + "_txt"]._visible = false;
_root[("score" + i) + "_txt"]._visible = false;
i++;
}
Frame 290
cancel_btn.onRelease = function () {
gotoAndStop (43);
};
retry_btn.onRelease = function () {
gotoAndStop (244);
};
timeoutOkay = -1;
failedToConnect = true;
Symbol 3 MovieClip [infoMC] Frame 1
restart_btn.onRelease = _root.goTitle;
Symbol 602 MovieClip [__Packages.CLASSES.RC4] Frame 0
class CLASSES.RC4
{
function RC4 () {
}
static function encrypt(src, key) {
var _local3 = strToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToHex(_local2));
}
static function decrypt(src, key) {
var _local3 = hexToChars(src);
var _local1 = strToChars(key);
var _local2 = calculate(_local3, _local1);
return(charsToStr(_local2));
}
static function initialize(pwd) {
var _local2 = 0;
var _local3;
var _local4 = pwd.length;
var _local1 = 0;
while (_local1 <= 255) {
mykey[_local1] = pwd[_local1 % _local4];
sbox[_local1] = _local1;
_local1++;
}
_local1 = 0;
while (_local1 <= 255) {
_local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256;
_local3 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local3;
_local1++;
}
}
static function calculate(plaintxt, psw) {
initialize(psw);
var _local1 = 0;
var _local2 = 0;
var _local9 = new Array();
var _local7;
var _local5;
var _local6;
var _local3 = 0;
while (_local3 < plaintxt.length) {
_local1 = (_local1 + 1) % 256;
_local2 = (_local2 + sbox[_local1]) % 256;
_local5 = sbox[_local1];
sbox[_local1] = sbox[_local2];
sbox[_local2] = _local5;
var _local4 = (sbox[_local1] + sbox[_local2]) % 256;
_local7 = sbox[_local4];
_local6 = plaintxt[_local3] ^ _local7;
_local9.push(_local6);
_local3++;
}
return(_local9);
}
static function charsToHex(chars) {
var _local4 = new String("");
var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
var _local1 = 0;
while (_local1 < chars.length) {
_local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]);
_local1++;
}
return(_local4);
}
static function hexToChars(hex) {
var _local3 = new Array();
var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0);
while (_local1 < hex.length) {
_local3.push(parseInt(hex.substr(_local1, 2), 16));
_local1 = _local1 + 2;
}
return(_local3);
}
static function charsToStr(chars) {
var _local3 = new String("");
var _local1 = 0;
while (_local1 < chars.length) {
_local3 = _local3 + String.fromCharCode(chars[_local1]);
_local1++;
}
return(_local3);
}
static function strToChars(str) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < str.length) {
_local3.push(str.charCodeAt(_local1));
_local1++;
}
return(_local3);
}
static var sbox = new Array(255);
static var mykey = new Array(255);
}
Symbol 603 MovieClip [__Packages.CLASSES.Base64] Frame 0
class CLASSES.Base64
{
function Base64 () {
}
static function encode(src) {
var _local1 = 0;
var _local8 = new String("");
var _local6;
var _local4;
var _local3;
var _local10;
var _local9;
var _local7;
var _local2;
while (_local1 < src.length) {
_local6 = src.charCodeAt(_local1++);
_local4 = src.charCodeAt(_local1++);
_local3 = src.charCodeAt(_local1++);
_local10 = _local6 >> 2;
_local9 = ((_local6 & 3) << 4) | (_local4 >> 4);
_local7 = ((_local4 & 15) << 2) | (_local3 >> 6);
_local2 = _local3 & 63;
if (isNaN(_local4)) {
_local2 = 64;
_local7 = _local2;
} else if (isNaN(_local3)) {
_local2 = 64;
}
_local8 = _local8 + (base64chars.charAt(_local10) + base64chars.charAt(_local9));
_local8 = _local8 + (base64chars.charAt(_local7) + base64chars.charAt(_local2));
}
return(_local8);
}
static function decode(src) {
var _local2 = 0;
var _local1 = new String("");
var _local7;
var _local10;
var _local9;
var _local8;
var _local6;
var _local4;
var _local5;
while (_local2 < src.length) {
_local8 = base64chars.indexOf(src.charAt(_local2++));
_local6 = base64chars.indexOf(src.charAt(_local2++));
_local4 = base64chars.indexOf(src.charAt(_local2++));
_local5 = base64chars.indexOf(src.charAt(_local2++));
_local7 = (_local8 << 2) | (_local6 >> 4);
_local10 = ((_local6 & 15) << 4) | (_local4 >> 2);
_local9 = ((_local4 & 3) << 6) | _local5;
_local1 = _local1 + String.fromCharCode(_local7);
if (_local4 != 64) {
_local1 = _local1 + String.fromCharCode(_local10);
}
if (_local5 != 64) {
_local1 = _local1 + String.fromCharCode(_local9);
}
}
return(_local1);
}
static var base64chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
}
Symbol 37 MovieClip [paintdropMC] Frame 1
if (this._y < 100) {
this.removeMovieClip();
stop();
}
Symbol 37 MovieClip [paintdropMC] Frame 21
stop();
Symbol 37 MovieClip [paintdropMC] Frame 248
this.removeMovieClip();
Symbol 41 MovieClip Frame 1
this._alpha = 50;
this.onRelease = function () {
_root.soundOn = !_root.soundOn;
if (!_root.soundOn) {
_root.stopSoundtrack();
} else {
_root.playSoundtrack();
}
if (_root.soundOn) {
gotoAndStop ("on");
} else {
gotoAndStop ("off");
}
};
this.onRollOver = function () {
this._alpha = 100;
};
this.onRollOut = (this.onDragOut = function () {
this._alpha = 50;
});
if (_root.soundOn) {
stop();
} else {
gotoAndStop ("off");
}
Symbol 50 Button
on (release) {
_root.play();
}
Symbol 53 Button
on (release) {
_root.gotoHighScores();
}
Symbol 57 Button
on (release) {
if (_root.domain == "petauk") {
getURL ("http://www.peta.org.uk/feat/feat-burberry_fur.asp", "_blank");
} else {
getURL ("http://www.bloodyburberry.com/videos.asp", "_blank");
}
}
Symbol 65 Button
on (release) {
_root.goSelectPlayer();
}
Symbol 69 MovieClip Frame 21
stop();
Symbol 85 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 70));
Symbol 90 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 15));
Symbol 93 MovieClip Frame 1
stop();
if (_root.level) {
gotoAndStop("level" + _root.level);
}
Symbol 107 MovieClip Frame 1
onEnterFrame = function () {
if ((_root._quality == "MEDIUM") || (_root._quality == "LOW")) {
this._visible = false;
}
};
Symbol 116 MovieClip Frame 1
stop();
if (_root.player.charxScale == -1) {
gotoAndStop ("flip-1");
}
Symbol 116 MovieClip Frame 11
stop();
Symbol 119 MovieClip [player_raccoonMC] Frame 1
stop();
if (_root.cutsceneWalking) {
gotoAndPlay ("walk");
}
Symbol 119 MovieClip [player_raccoonMC] Frame 24
gotoAndPlay (1);
Symbol 119 MovieClip [player_raccoonMC] Frame 57
play();
Symbol 119 MovieClip [player_raccoonMC] Frame 86
gotoAndPlay ("idle");
Symbol 119 MovieClip [player_raccoonMC] Frame 87
play();
Symbol 119 MovieClip [player_raccoonMC] Frame 144
gotoAndPlay ("idle");
Symbol 119 MovieClip [player_raccoonMC] Frame 145
play();
Symbol 119 MovieClip [player_raccoonMC] Frame 156
gotoAndPlay ("idle");
Symbol 132 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 70));
Symbol 139 MovieClip Frame 1
stop();
if (_root.level) {
gotoAndStop("level" + _root.level);
}
Symbol 152 MovieClip [player_foxMC] Frame 1
stop();
if (_root.cutsceneWalking) {
gotoAndPlay ("walk");
}
Symbol 152 MovieClip [player_foxMC] Frame 24
gotoAndPlay (1);
Symbol 152 MovieClip [player_foxMC] Frame 50
play();
Symbol 152 MovieClip [player_foxMC] Frame 79
gotoAndPlay ("idle");
Symbol 152 MovieClip [player_foxMC] Frame 80
play();
Symbol 152 MovieClip [player_foxMC] Frame 137
gotoAndPlay ("idle");
Symbol 152 MovieClip [player_foxMC] Frame 138
play();
Symbol 152 MovieClip [player_foxMC] Frame 149
gotoAndPlay ("idle");
Symbol 155 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 70));
Symbol 158 MovieClip Frame 1
stop();
if (_root.level) {
gotoAndStop("level" + _root.level);
}
Symbol 174 MovieClip [player_bunnyMC] Frame 1
stop();
if (_root.cutsceneWalking) {
gotoAndPlay ("walk");
}
Symbol 174 MovieClip [player_bunnyMC] Frame 18
gotoAndPlay (1);
Symbol 174 MovieClip [player_bunnyMC] Frame 51
play();
Symbol 174 MovieClip [player_bunnyMC] Frame 80
gotoAndPlay ("idle");
Symbol 174 MovieClip [player_bunnyMC] Frame 81
play();
Symbol 174 MovieClip [player_bunnyMC] Frame 138
gotoAndPlay ("idle");
Symbol 174 MovieClip [player_bunnyMC] Frame 139
play();
Symbol 174 MovieClip [player_bunnyMC] Frame 150
gotoAndPlay ("idle");
Symbol 190 MovieClip Frame 1
gotoAndStop(_root.character);
Symbol 193 MovieClip Frame 1
this.onEnterFrame = function () {
if (this._parent._visible) {
this._rotation = this._rotation + 0.1;
}
};
Symbol 202 MovieClip Frame 1
this._visible = false;
stop();
Symbol 202 MovieClip Frame 2
this._visible = true;
Symbol 202 MovieClip Frame 33
stop();
Symbol 205 MovieClip Frame 1
this._visible = false;
stop();
Symbol 205 MovieClip Frame 2
this._visible = true;
Symbol 205 MovieClip Frame 33
stop();
Symbol 207 Button
on (release) {
acceptMission();
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 10
_root.playSound("paint");
Symbol 216 MovieClip Frame 35
stop();
Symbol 283 MovieClip Frame 1
if (!_root.modelNumber) {
_root.modelNumber = 2;
}
if (_root.modelNumber == 6) {
_root.modelNumber = 0;
}
_root.modelNumber++;
this.modelNumber = _root.modelNumber;
this.head_mc.hair_mc.gotoAndStop("model" + this.modelNumber);
this.head_mc.eyes_mc.gotoAndStop("model" + this.modelNumber);
this.clothes_mc.gotoAndStop("model" + this.modelNumber);
this.head_mc.stop();
gotoAndStop ("idle");
this.onEnterFrame = function () {
goingBack = ((this._currentframe >= 84) ? true : false);
this.head_mc.hair_mc.hairback_mc._visible = goingBack;
if (this.head_mc.hair_mc.hairback_mc._visible) {
this.head_mc.hair_mc.hairback_mc.gotoAndStop(this.modelNumber);
this.clothesback_mc.gotoAndStop("model" + this.modelNumber);
this.clothes_mc.gotoAndStop("model" + this.modelNumber);
} else {
this.clothes_mc.gotoAndStop("model" + this.modelNumber);
}
};
Symbol 283 MovieClip Frame 49
if (this.counter <= 0) {
gotoAndPlay ("walk");
}
Symbol 283 MovieClip Frame 71
this.dy = 0;
head_mc.gotoAndStop("shock");
_root.playSound("crowds");
_root.playSound("reaction");
Symbol 283 MovieClip Frame 83
stop();
Symbol 283 MovieClip Frame 84
head_mc.gotoAndStop(1);
Symbol 283 MovieClip Frame 112
gotoAndPlay ("goback");
Symbol 293 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 80));
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 26
if (_root.gameActive) {
gotoAndPlay ("walk");
}
Symbol 312 MovieClip Frame 16
_root.modelNumber = 6;
mission2_mc.model1_mc.gotoAndStop("pose3");
mission2_mc.model2_mc.gotoAndStop("pose2");
mission2_mc.model3_mc.gotoAndStop("pose1");
Symbol 323 MovieClip Frame 1
if (!this.inited) {
gotoAndPlay(random(30));
this.inited = true;
}
Symbol 328 Button
on (release) {
gotoAndPlay ("fadeout");
}
Symbol 339 MovieClip Frame 1
onEnterFrame = function () {
this._x = this._x + 0.5;
};
Symbol 341 MovieClip Frame 1
onEnterFrame = function () {
this._x = this._x + 0.25;
};
Symbol 365 MovieClip Frame 1
if (!_root.level) {
_root.level = 1;
}
if (!_root.character) {
_root.character = "raccoon";
}
_root._quality = "HIGH";
var keyPressEnter = false;
var keyPressSpace = false;
this.onEnterFrame = function () {
if (((!keyPressSpace) && (Key.isDown(32))) || ((!keyPressEnter) && (Key.isDown(13)))) {
gotoAndPlay ("fadeout");
}
if (!Key.isDown(13)) {
keyPressEnter = false;
}
if (!Key.isDown(32)) {
keyPressSpace = false;
}
};
_root.playSoundtrack("music1", 50);
Symbol 365 MovieClip Frame 18
playerImage_mc[("char_" + _root.character) + "_mc"].gotoAndPlay("walk");
Symbol 365 MovieClip Frame 60
playerImage_mc[("char_" + _root.character) + "_mc"].gotoAndPlay("walk");
Symbol 365 MovieClip Frame 81
playerImage_mc[("char_" + _root.character) + "_mc"].gotoAndPlay("walk");
Symbol 365 MovieClip Frame 94
playerImage_mc[("char_" + _root.character) + "_mc"].gotoAndPlay("walk");
Symbol 365 MovieClip Frame 122
playerImage_mc[("char_" + character) + "_mc"].gotoAndPlay("walk");
Symbol 365 MovieClip Frame 367
_root.cutsceneWalking = false;
Symbol 365 MovieClip Frame 397
_root.play();
_root.stopSoundtrack();
Symbol 365 MovieClip Frame 408
this._parent.gotoAndStop("csEnd");
Symbol 368 MovieClip Frame 1
if (!inited) {
inited = true;
gotoAndPlay(random(60));
}
Symbol 386 MovieClip Frame 1
if (!this.inited) {
if (!_root.csModelWalkingNum) {
_root.csModelWalkingNum = 3;
}
this.head_mc.gotoAndStop(_root.csModelWalkingNum);
_root.csModelWalkingNum--;
gotoAndPlay(random(15));
this.inited = true;
}
Symbol 393 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 100));
Symbol 393 MovieClip Frame 102
_root.playSound("BULB");
Symbol 401 MovieClip Frame 1
if (!_root.level) {
_root.level = 1;
}
if (!_root.character) {
_root.character = "raccoon";
}
_root._quality = "HIGH";
var keyPressEnter = false;
var keyPressSpace = false;
this.onEnterFrame = function () {
if (((!keyPressSpace) && (Key.isDown(32))) || ((!keyPressEnter) && (Key.isDown(13)))) {
gotoAndPlay ("fadeout");
}
if (!Key.isDown(13)) {
keyPressEnter = false;
}
if (!Key.isDown(32)) {
keyPressSpace = false;
}
};
_root.playSoundtrack("music2", 50);
Symbol 401 MovieClip Frame 54
walkers_mc.playerImage_mc[("char_" + _root.character) + "_mc"].gotoAndPlay("walk");
_root.cutsceneWalking = true;
Symbol 401 MovieClip Frame 809
_root.cutsceneWalking = false;
Symbol 401 MovieClip Frame 843
_root.play();
_root.stopSoundtrack();
Symbol 401 MovieClip Frame 854
this._parent.gotoAndStop("csEnd");
Symbol 409 Button
on (release) {
getURL (_root.urlPrefix + "petition.asp", "_blank");
}
Symbol 413 Button
on (release) {
this._parent.gotoAndPlay("fadeout");
}
Symbol 416 MovieClip Frame 1
if (!_root.level) {
_root.level = 3;
}
if (!_root.character) {
_root.character = "raccoon";
}
_root._quality = "HIGH";
var keyPressEnter = false;
var keyPressSpace = false;
this.onEnterFrame = function () {
if (((!keyPressSpace) && (Key.isDown(32))) || ((!keyPressEnter) && (Key.isDown(13)))) {
gotoAndPlay ("fadeout");
}
if (!Key.isDown(13)) {
keyPressEnter = false;
}
if (!Key.isDown(32)) {
keyPressSpace = false;
}
};
_root.playSoundtrack("music3", 50);
Symbol 416 MovieClip Frame 18
playerImage_mc[("char_" + _root.character) + "_mc"].gotoAndPlay("walk");
_root.cutsceneWalking = true;
Symbol 416 MovieClip Frame 94
_root.cutsceneWalking = false;
playerImage_mc[("char_" + _root.character) + "_mc"].gotoAndStop(1);
Symbol 416 MovieClip Frame 270
stop();
Symbol 416 MovieClip Frame 295
_root.cutsceneWalking = false;
Symbol 416 MovieClip Frame 329
_root.play();
_root.stopSoundtrack();
Symbol 416 MovieClip Frame 340
this._parent.gotoAndStop("csEnd");
Symbol 417 MovieClip Frame 1
playIntroSound = false;
Symbol 417 MovieClip Frame 2
if (missionDisplayed) {
gotoAndPlay (30);
} else {
playIntroSound = true;
}
level_txt.text = "LEVEL " + _root.level;
mission_mc.gotoAndStop("mission" + _root.level);
Symbol 417 MovieClip Frame 15
function acceptMission() {
delete this.onEnterFrame;
play();
}
stop();
missionDisplayed = true;
var keyPressEnter = false;
var keyPressSpace = false;
this.onEnterFrame = function () {
if (((!keyPressSpace) && (Key.isDown(32))) || ((!keyPressEnter) && (Key.isDown(13)))) {
acceptMission();
}
if (!Key.isDown(13)) {
keyPressEnter = false;
}
if (!Key.isDown(32)) {
keyPressSpace = false;
}
};
Symbol 417 MovieClip Frame 30
_root.gameActive = true;
if (playIntroSound) {
_root.playSound("LEVELINTRO");
_root.playSoundtrack("music" + _root.level);
}
Symbol 417 MovieClip Frame 42
this._visible = false;
gotoAndStop (1);
Symbol 417 MovieClip Frame 74
bonus_txt.text = 0;
i = 1;
while (i <= 4) {
mc = this[("star" + i) + "_mc"];
mc.inited = false;
mc.gotoAndPlay(1);
i++;
}
Symbol 417 MovieClip Frame 90
stop();
_root.playSound("trumpet");
onEnterFrame = function () {
bonusCounted = bonus_txt.text * 1;
bonusCounted = bonusCounted + 20;
_root.playSound("TICK");
if (bonusCounted >= _root.levelBonus) {
bonusCounted = _root.levelBonus;
_root.addToScore(_root.levelBonus);
bonus_txt.text = bonusCounted;
_root.playSound("DING");
play();
delete onEnterFrame;
}
bonus_txt.text = bonusCounted;
};
Symbol 417 MovieClip Frame 187
gotoAndStop("cs" + _root.level);
Symbol 417 MovieClip Frame 208
this._visible = false;
gotoAndStop (1);
Symbol 420 MovieClip Frame 98
stop();
Symbol 428 MovieClip Frame 1
restart_btn.onRelease = _root.goTitle;
Symbol 439 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 10
_root.playSound("paint");
Symbol 439 MovieClip Frame 35
stop();
Symbol 441 MovieClip Frame 1
stop();
Symbol 441 MovieClip Frame 10
_root.playSound("paint");
Symbol 441 MovieClip Frame 35
stop();
Symbol 444 MovieClip Frame 1
stop();
Symbol 444 MovieClip Frame 10
_root.playSound("paint");
Symbol 444 MovieClip Frame 35
stop();
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 10
_root.playSound("paint");
Symbol 446 MovieClip Frame 35
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 10
_root.playSound("paint");
Symbol 449 MovieClip Frame 35
stop();
Symbol 452 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 10
_root.playSound("paint");
Symbol 452 MovieClip Frame 35
stop();
Symbol 454 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 10
_root.playSound("paint");
Symbol 454 MovieClip Frame 35
stop();
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 27
if (_root.gameActive) {
gotoAndPlay ("walk");
}
Symbol 474 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 27
if (_root.gameActive) {
gotoAndPlay ("walk");
}
Symbol 478 MovieClip [antatonist1MC] Frame 1
stop();
Symbol 478 MovieClip [antatonist1MC] Frame 27
if (_root.gameActive) {
gotoAndPlay ("walk");
}
Symbol 512 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 400));
Symbol 512 MovieClip Frame 400
if (!_root.blackfade_mc._visible) {
_root.playSound("BULB");
} else {
gotoAndPlay (2);
}
Symbol 512 MovieClip Frame 403
if ((_root._quality != "HIGH") && (_root._quality != "BEST")) {
gotoAndPlay ("flashed");
}
Symbol 528 MovieClip Frame 1
gotoAndPlay(random(50));
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 10
play();
if (!this.dx) {
this.dx = ((this._x > 350) ? 1 : -1) * 5;
}
if (!this.dy) {
this.dy = 6;
}
if (this.dx > 0) {
escapee_mc._xscale = escapee_mc._xscale * -1;
}
_root.playSound("breaking");
onEnterFrame = function () {
escapee_mc._x = escapee_mc._x + this.dx;
escapee_mc._y = escapee_mc._y + this.dy;
escapee_mc._xscale = escapee_mc._xscale * 1.01;
escapee_mc._yscale = escapee_mc._yscale * 1.01;
};
Symbol 537 MovieClip Frame 18
_root.playSound("BABYSCREAM");
Symbol 537 MovieClip Frame 93
stop();
onEnterFrame = null;
Symbol 543 Button
on (release) {
getURL (_root.urlPrefix + "share.asp");
}
on (rollOver) {
_root.playSound("TICK");
_root.gotoAndStop("shareThis");
}
Symbol 544 Button
on (release) {
_root.goTitle();
}
on (rollOver) {
_root.playSound("TICK");
_root.gotoAndStop("playAgain");
}
Symbol 555 Button
on (release) {
_root.gotoTitle();
}
Symbol 566 Button
on (release) {
_root.gotoTitle();
}
Symbol 586 Button
on (release) {
_root.gotoAndStop("showAllTimeScores");
_root.scoreType = "ALL-TIME";
_root.getHighScores();
}
Symbol 588 Button
on (release) {
_root.gotoAndStop("showRecentScores");
_root.scoreType = "RECENT";
_root.getHighScores();
}
Symbol 591 MovieClip Frame 1
gotoAndStop(_root.character);
Symbol 597 Button
on (release) {
_root.gotoAndStop("showRecentScores");
_root.scoreType = "RECENT";
_root.getHighScores();
}
Symbol 599 Button
on (release) {
_root.gotoAndStop("showAllTimeScores");
_root.scoreType = "ALL-TIME";
_root.getHighScores();
}