Frame 1
stop();
onEnterFrame = function () {
fscommand ("showmenu", false);
percent = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (percent <= 99.9) {
bar._width = 648 - (percent * 6.48);
amt = Math.floor(percent) + "%";
} else {
gotoAndPlay ("loaded");
}
};
Frame 20
function updateTimer() {
cframe = getTimer();
_global.fdelta = (cframe - pframe) / 25;
pframe = cframe;
fps++;
cTime = cTime + (_global.fdelta * 25);
if (cTime > 1000) {
gui.text_fps = "FPS: " + String(fps);
fpsavg = fpsavg * 4;
fpsavg = fpsavg + fps;
fpsavg = fpsavg / 5;
gui.text_fpsavg = "FPS AVG: " + String(fpsavg);
fps = 0;
cTime = cTime - 1000;
}
if (_global.dynamicQuality) {
if (dynwait <= 0) {
if ((fpsavg < 18) && (_root._quality == "MEDIUM")) {
_root._quality = "LOW";
dynwait = 5000;
} else if (((fpsavg >= 21) && (_root._quality == "LOW")) || ((fpsavg < 18) && (_root._quality == "HIGH"))) {
_root._quality = "MEDIUM";
dynwait = 5000;
} else if ((fpsavg >= 21) && (_root._quality == "MEDIUM")) {
_root._quality = "HIGH";
dynwait = 5000;
}
}
}
if (dynwait > 0) {
dynwait = dynwait - (_global.fdelta * 25);
}
gui.text_dynwait = String(dynwait);
}
function tap(num) {
if ((keys[num] == true) && (heldtime[num] == 0)) {
return(true);
}
}
function keyInput() {
var _local1 = 0;
while (_local1 < 256) {
if (Key.isDown(_local1)) {
if (keys[_local1] == true) {
heldtime[_local1]++;
}
if (dpress[_local1] == true) {
lpress[_local1] = 0;
dpress[_local1] = false;
heldtime[_local1] = heldtime[_local1] + 100;
}
if ((dpress[_local1] == false) && ((framecount - lpress[_local1]) < 5)) {
dpress[_local1] = true;
}
keys[_local1] = true;
} else {
if (keys[_local1] == true) {
lpress[_local1] = framecount - heldtime[_local1];
heldtime[_local1] = 0;
keys[_local1] = false;
}
if (dpress[_local1] == true) {
lpress[_local1] = 0;
dpress[_local1] = false;
}
}
_local1++;
}
if (dclick && (pclick > 0)) {
pclick = -1;
} else if (dclick && (pclick == -1)) {
dclick = false;
}
if (pclick > 0) {
pclick = pclick - (fdelta * 25);
}
}
_global.dynamicQuality = false;
_global.dynwait = 0;
_global.fpsavg = 20;
_global.inmenu = true;
_global.incha = false;
_global.framecount = 0;
_global.fdelta = 0;
_global.vol;
_global.mvol;
_global.sfx = new Sound(_root);
_global.holder;
_global.music;
_global.transtime;
_global.showHL;
_global.cursHL;
_global.startFull;
_global.haloHL;
_global.keys = Array(256);
_global.heldtime = Array(256);
_global.lpress = Array(256);
_global.dpress = Array(256);
_global.dclick = false;
_global.pclick = 0;
_global.dclickspeed = 100;
_global.clickhold = 0;
_global.nextScreen = "Title";
_global.sdata;
_global.curlevel = "grass";
_global.levelcount = 1;
_global.diff = 3;
_global.score = 0;
_global.depths = Array(1750);
_global.isFull;
_global.exitrow;
_global.deaths = 0;
onEnterFrame = function () {
var _local2 = 0;
while (_local2 < 256) {
keys[_local2] = false;
dpress[_local2] = false;
lpress[_local2] = -1000;
heldtime[_local2] = 0;
_local2++;
}
_global.isFull = false;
_global.sdata = new SaveData();
var _local3 = SharedObject.getLocal("RunBunniesConfig", "/");
_global.gquality = _local3.data.gquality;
_global.showHL = _local3.data.showHL;
_global.cursHL = _local3.data.cursHL;
_global.haloHL = _local3.data.haloHL;
_global.mfunc = _local3.data.mfunc;
_global.vol = _local3.data.vol;
_global.mvol = _local3.data.mvol;
if ((_global.gquality == undefined) || (_global.gquality == "DYNAMIC")) {
_local3.data.gquality = (_global.gquality = "MEDIUM");
}
if (_global.showHL == undefined) {
_local3.data.showHL = (_global.showHL = true);
}
if (_global.cursHL == undefined) {
_local3.data.cursHL = (_global.cursHL = true);
}
if (_global.haloHL == undefined) {
_local3.data.haloHL = (_global.haloHL = true);
}
if (_global.mfunc == undefined) {
_local3.data.mfunc = (_global.mfunc = "TILE");
}
if (_global.vol == undefined) {
_local3.data.vol = (_global.vol = 50);
}
if (_global.vol < 0) {
_local3.data.vol = (_global.vol = 0);
}
if (_global.vol > 100) {
_local3.data.vol = (_global.vol = 100);
}
if (_global.mvol == undefined) {
_local3.data.mvol = (_global.mvol = 80);
}
if (_global.mvol < 0) {
_local3.data.mvol = (_global.mvol = 0);
}
if (_global.mvol > 100) {
_local3.data.mvol = (_global.mvol = 100);
}
};
_global.toggleFullscreen = function () {
fscommand ("ffish_run", "ToggleFullscreen");
if (_global.isFull) {
_global.isFull = false;
} else {
_global.isFull = true;
}
_global.updateQuality();
};
_global.updateQuality = function () {
if (_global.isFull) {
if (_global.inmenu) {
_root._quality = "MEDIUM";
_global.dynamicQuality = false;
} else if (_global.fsquality == "DYNAMIC") {
_global.dynamicQuality = true;
_root._quality = "MEDIUM";
} else {
_root._quality = _global.fsquality;
_global.dynamicQuality = false;
}
} else if (_global.inmenu) {
_root._quality = "HIGH";
_global.dynamicQuality = false;
} else if (_global.gquality == "DYNAMIC") {
_global.dynamicQuality = true;
_root._quality = "HIGH";
} else {
_root._quality = _global.gquality;
_global.dynamicQuality = false;
}
};
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);
};
Color.prototype.fillTint = function (r, g, b, amount) {
var _local2 = new Object();
var _local3 = amount / 100;
_local2.ra = r * _local3;
_local2.ga = g * _local3;
_local2.ba = b * _local3;
_local2.rb = (_local2.gb = (_local2.bb = 0));
this.setTransform(_local2);
};
MovieClip.prototype.mcswap = function (linkage, instanceName) {
var _local3 = ((instanceName == undefined) ? (this._name) : (instanceName));
var _local2 = new Object();
this.x = this._x;
this.y = this._y;
this.xs = this._xscale;
this.ys = this._yscale;
this.copyProperties(_local2, "#x#y#xs#ys#");
_local2._x = _local2.x;
_local2._y = _local2.y;
_local2._xscale = _local2.xs;
_local2._yscale = _local2.ys;
this._parent.attachMovie(linkage, _local3, this.getDepth(), _local2);
};
_global.clone = function (obj) {
var _local2 = new Object();
for (i in obj) {
_local2[i] = obj[i];
}
return(_local2);
};
Frame 21
onEnterFrame = function () {
};
Frame 91
function hls() {
var _local5 = [1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0];
var _local1 = new flash.filters.ColorMatrixFilter(_local5);
var _local2 = new flash.filters.GlowFilter(16777215, 0.55, 32, 32, 0.5);
var _local6 = [0.15, 0, 0, 0, 1, 0, 0.15, 0, 0, 1, 0, 0, 0.15, 0, 1, 0, 0, 0, 1, 0];
var _local4 = new flash.filters.ColorMatrixFilter(_local6);
var _local3 = new flash.filters.GlowFilter(14006784, 0.35, 16, 16, 0.5);
menudesc = "";
if (((!block) && (freeplay.hitTest(_xmouse, _ymouse, false))) || (screen == "fp")) {
freeplay.filters = [_local1, _local2];
tfreeplay = "Play";
menudesc = "An ice age is coming! Help the bunnies run to safety.";
} else {
freeplay.filters = [_local4, _local3];
tfreeplay = "";
}
if (((!block) && (challenge.hitTest(_xmouse, _ymouse, false))) || (screen == "ch")) {
challenge.filters = [_local1, _local2];
tchallenge = "Challenges";
menudesc = "Test your skills with a whole set of special levels.";
} else {
challenge.filters = [_local4, _local3];
tchallenge = "";
}
if (((!block) && (dat.hitTest(_xmouse, _ymouse, false))) || (screen == "da")) {
dat.filters = [_local1, _local2];
tdata = "Unlock Content";
menudesc = "Unlock additional levels, bunnies, and more.";
} else {
dat.filters = [_local4, _local3];
tdata = "";
}
if (((!block) && (options.hitTest(_xmouse, _ymouse, false))) || (screen == "op")) {
options.filters = [_local1, _local2];
toptions = "Options";
menudesc = "Adjust the controls the graphic settings.";
} else {
options.filters = [_local4, _local3];
toptions = "";
}
}
function showHelp() {
block = false;
enButtons();
if (screen != "he") {
_root[screen].gotoAndPlay("fade");
bstate = "";
screen = "he";
he.gotoAndPlay("show");
}
}
function showCred() {
block = false;
enButtons();
if (screen != "cr") {
_root[screen].gotoAndPlay("fade");
bstate = "";
screen = "cr";
cr.gotoAndPlay("show");
}
}
function showUnlock() {
block = false;
enButtons();
if (screen != "da") {
_root[screen].gotoAndPlay("fade");
bstate = "";
screen = "da";
da.gotoAndPlay("show");
}
}
function enButtons() {
bfreeplay.enabled = (bchallenge.enabled = (bdata.enabled = (boptions.enabled = true)));
block = false;
}
function disButtons() {
bfreeplay.enabled = (bchallenge.enabled = (bdata.enabled = (boptions.enabled = false)));
block = true;
}
stop();
var init = false;
var bstate = "";
var screen = "";
var block = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local5 = [0.15, 0, 0, 0, 1, 0, 0.15, 0, 0, 1, 0, 0, 0.15, 0, 1, 0, 0, 0, 1, 0];
var _local3 = new flash.filters.ColorMatrixFilter(_local5);
var _local4 = new flash.filters.GlowFilter(14006784, 0.35, 16, 16, 0.5);
freeplay.filters = (challenge.filters = (dat.filters = (options.filters = [_local3, _local4])));
tfreeplay = (tchallenge = (tdata = (toptions = "")));
bstate = "slidein";
tu._visible = false;
_global.inmenu = true;
_global.updateQuality();
_global.holder = _root.createEmptyMovieClip("musicholder", -1001);
_global.music = new Sound(_global.holder);
_global.music.attachSound("Title_Theme_rev2.mp3");
_global.music.setVolume(100 * (_global.mvol / 100));
_global.music.onSoundComplete = function () {
_global.music.start(3.425, 1);
};
_global.music.start(0, 1);
_global.transtime = 0;
}
if (Key.isDown(17) && (Key.isDown(70))) {
_global.updateQuality();
}
if (bstate == "slidein") {
slide._xscale = slide._xscale - 12.5;
if (slide._xscale <= 0) {
bstate = "";
slide.removeMovieClip();
}
}
if (bstate == "close") {
_root[screen].gotoAndPlay("fade");
screen = (bstate = "");
block = false;
enButtons();
}
if (bstate == "advance") {
play();
}
if (bstate == "closetut") {
bstate = "";
tu._visible = false;
tu._alpha = 0;
enButtons();
fp.enButtons();
}
hls();
};
Frame 92
onEnterFrame = function () {
_global.music.setVolume(_global.music.getVolume() - 15);
};
Frame 101
onEnterFrame = function () {
_global.music.stop();
};
Frame 110
onEnterFrame = function () {
if (!_global.incha) {
gotoAndStop (111);
} else {
gotoAndPlay (112);
}
};
Frame 112
onEnterFrame = function () {
_global.music.stop();
_global.holder.removeMovieClip();
_global.music.removeMovieClip();
if (_global.nextscreen == "MainMenu") {
gotoAndStop (91);
} else if (_global.nextscreen == "HiScores") {
gotoAndStop (115);
} else if (_global.nextscreen == "FreePlay") {
gotoAndStop (113);
}
};
Frame 113
function checkHop() {
if (specon) {
return(false);
}
if ((hopbutton != -1) && (Key.isDown(hopbutton))) {
return(true);
}
if ((hopbutton2 != -1) && (Key.isDown(hopbutton2))) {
return(true);
}
if (Key.isDown(32)) {
return(true);
}
return(false);
}
function checkContext() {
if ((contextbutton != -1) && (Key.isDown(contextbutton))) {
return(true);
}
if ((contextbutton2 != -1) && (Key.isDown(contextbutton2))) {
return(true);
}
return(false);
}
function checkSpecial() {
if ((specbutton != -1) && (Key.isDown(specbutton))) {
return(true);
}
if ((specbutton2 != -1) && (Key.isDown(specbutton2))) {
return(true);
}
if (((((hopbutton != -1) && (Key.isDown(hopbutton))) || ((hopbutton2 != -1) && (Key.isDown(hopbutton2)))) || (Key.isDown(32))) && (lclick)) {
return(true);
}
specon = false;
return(false);
}
function InitializeFP() {
init = true;
_global.inmenu = false;
_global.updateQuality();
_global.incha = false;
dclick = 0;
pclick = -1;
var _local5 = 0;
while (_local5 < 1750) {
_global.depths[_local5] = false;
_local5++;
}
gui = _root.attachMovie("bend_UI", "gui", 105001);
Tracker = new ScoreTracker();
Tracker.total = _global.score;
var _local7 = 18;
if (_global.levelcount > 1) {
_local7 = _local7 + 18;
}
if (_global.levelcount > 4) {
_local7 = _local7 + 18;
}
if (_global.levelcount > 8) {
_local7 = _local7 + 18;
}
if (_global.levelcount > 11) {
_local7 = _local7 + 18;
}
var _local9 = false;
if (_global.curlevel == "mixed") {
_local9 = true;
var _local8 = random(3);
if (_local8 == 0) {
_global.curlevel = "grass";
} else if (_local8 == 1) {
_global.curlevel = "metal";
} else if (_local8 == 2) {
_global.curlevel = "tropic";
}
}
if (_global.curlevel == "grass") {
Level = new Tileset("GrassLands - Stage " + _global.levelcount, _local7, 7);
Level.InitFPGrass();
} else if (_global.curlevel == "metal") {
Level = new Tileset("Factory - Stage " + _global.levelcount, _local7, 7);
Level.InitFPMetal();
var _local10 = gui.progressbar._y;
gui.progressbar.mcswap("bend_progress_bar_metal");
gui.progressbar._y = _local10;
} else if (_global.curlevel == "tropic") {
Level = new Tileset("Tropics - Stage " + _global.levelcount, _local7, 7);
Level.InitFPTropic();
var _local10 = gui.progressbar._y;
gui.progressbar.mcswap("bend_progress_bar_tropic");
gui.progressbar._y = _local10;
}
if (_local9) {
_global.curlevel = "mixed";
}
Level.place(_local7 / 10);
gui.map_title = Level.setName;
readymenu = _root.attachMovie("bend_ready", "rmenu", 105099);
customscr = _root.attachMovie("bend_customize", "cmenu", 105089);
upscr = _root.attachMovie("bend_upgrade", "umenu", 105085);
customscr._visible = (upscr._visible = false);
createEmptyMovieClip("numscr", 105050);
Bunnies = new BunnyHandler(Level.cols, Level.rows);
var _local6 = 2 + Math.floor(_global.levelcount / 3);
var _local4 = 0;
_local5 = 0;
while (_local5 < 4) {
Bunnies.spawnBunny("Wabbit", 7, 2 + _local5);
_local5++;
}
var _local3 = 0;
while (_local3 < 4) {
Bunnies.buns[_local3].changeClass(_global.sdata.buns[_local3].bclass);
Bunnies.buns[_local3].loadBunny(_global.sdata.buns[_local3]);
Bunnies.buns[_local3].state = _global.sdata.buns[_local3].state;
if ((Bunnies.buns[_local3].state == "finished") || (Bunnies.buns[_local3].state == "reserve")) {
Bunnies.buns[_local3].state = "updateme";
}
if ((((Bunnies.buns[_local3].bname != "empty") && (Bunnies.buns[_local3].state != "frozen")) && (Bunnies.buns[_local3].state != "dying")) && (Bunnies.buns[_local3].state != "dead")) {
_local4++;
}
_local3++;
}
_local3 = 0;
while ((_local3 < 4) && (_local4 < _local6)) {
if ((((Bunnies.buns[_local3].bname == "empty") || (Bunnies.buns[_local3].state == "frozen")) || (Bunnies.buns[_local3].state == "dying")) || (Bunnies.buns[_local3].state == "dead")) {
Bunnies.buns[_local3].state = "updateme";
Bunnies.buns[_local3].bname = Bunnies.buns[_local3].bunnyname(random(2));
Bunnies.buns[_local3].changeClass("Wabbit");
Bunnies.buns[_local3].newColour();
_local4++;
}
_local3++;
}
_local3 = 3;
while ((_local3 >= 0) && (_local4 > _local6)) {
if ((((Bunnies.buns[_local3].bname != "empty") && (Bunnies.buns[_local3].state != "frozen")) && (Bunnies.buns[_local3].state != "dying")) && (Bunnies.buns[_local3].state != "dead")) {
Bunnies.buns[_local3].state = "reserve";
Bunnies.buns[_local3].mc.removeMovieClip();
Bunnies.buns[_local3].ico.removeMovieClip();
_local4--;
}
_local3--;
}
_local3 = 0;
while (_local3 < 4) {
if ((((Bunnies.buns[_local3].bname == "empty") || (Bunnies.buns[_local3].state == "frozen")) || (Bunnies.buns[_local3].state == "dying")) || (Bunnies.buns[_local3].state == "dead")) {
Bunnies.buns[_local3].state = "dead";
Bunnies.buns[_local3].mc.removeMovieClip();
Bunnies.buns[_local3].ico.removeMovieClip();
}
_local3++;
}
Beasts = new AIHandler(Level.cols, Level.rows);
Beasts.spawn("crunch", 150 - (_global.levelcount * 4));
Beasts.spawn("boulder", 100 + (_global.levelcount * 2));
Beasts.spawn("buzzer", 150 - (_global.levelcount * 4));
gui.icebar._alpha = 75;
gui.handle._width = 419904 / (Level.getEnd() - Level.getStart());
pframe = getTimer();
}
function InitializeCHA() {
init = true;
_global.inmenu = false;
_global.updateQuality();
_global.incha = true;
dclick = 0;
pclick = -1;
var _local3 = 0;
while (_local3 < 1750) {
_global.depths[_local3] = false;
_local3++;
}
gui = _root.attachMovie("bend_UI", "gui", 105001);
Tracker = new ScoreTracker();
Tracker.total = _global.score;
if (_global.curlevel == "CHA_buzzerdash") {
Level = new Tileset("Buzzer Dash Challenge", 90, 7);
Level.InitCHAbuzzerdash();
var _local4 = gui.progressbar._y;
gui.progressbar.mcswap("bend_progress_bar_tropic");
gui.progressbar._y = _local4;
_global.diff = 6;
Bunnies = new BunnyHandler(Level.cols, Level.rows);
var _local5 = 4;
Bunnies.spawnBunny("Runner", 5, 1);
Bunnies.spawnBunny("Runner", 5, 4);
Bunnies.spawnBunny("Runner", 6, 2);
Bunnies.spawnBunny("Runner", 6, 3);
Beasts = new AIHandler(Level.cols, Level.rows);
Beasts.spawn("buzzer", 30);
} else if (_global.curlevel == "CHA_checkers") {
Level = new Tileset("Checkers Challenge", 72, 7);
Level.InitCHAcheckers();
var _local4 = gui.progressbar._y;
gui.progressbar.mcswap("bend_progress_bar_metal");
gui.progressbar._y = _local4;
_global.diff = 20;
Bunnies = new BunnyHandler(Level.cols, Level.rows);
var _local5 = 3;
Bunnies.spawnBunny("Wabbit", 7, 1);
Bunnies.spawnBunny("Wabbit", 7, 3);
Bunnies.spawnBunny("Wabbit", 7, 5);
Beasts = new AIHandler(Level.cols, Level.rows);
Beasts.spawn("crunch", 80);
} else if (_global.curlevel == "CHA_pointblitz") {
Level = new Tileset("Point Blitz Challenge", 72, 7);
Level.InitCHApointblitz();
_global.diff = 12;
Bunnies = new BunnyHandler(Level.cols, Level.rows);
var _local5 = 3;
Bunnies.spawnBunny("Jet", 8, 2);
Bunnies.spawnBunny("Medic", 8, 3);
Bunnies.spawnBunny("Jet", 8, 4);
Level.place(15);
Beasts = new AIHandler(Level.cols, Level.rows);
} else if (_global.curlevel == "CHA_cheapskate") {
Level = new Tileset("Cheapskate Challenge", 72, 7);
Level.InitCHAcheapskate();
_global.diff = 10;
Bunnies = new BunnyHandler(Level.cols, Level.rows);
var _local5 = 4;
Bunnies.spawnBunny("Wabbit", 8, 2);
Bunnies.spawnBunny("Medic", 8, 3);
Bunnies.spawnBunny("Jet", 8, 4);
Bunnies.spawnBunny("Wabbit", 8, 5);
Level.place(5);
Beasts = new AIHandler(Level.cols, Level.rows);
Beasts.spawn("crunch", 200);
Beasts.spawn("boulder", 75);
Beasts.spawn("buzzer", 200);
} else if (_global.curlevel == "CHA_boardwalk") {
Level = new Tileset("Board Walk Challenge", 108, 7);
Level.InitCHAboardwalk();
_global.diff = 20;
Bunnies = new BunnyHandler(Level.cols, Level.rows);
var _local5 = 2;
Bunnies.spawnBunny("Cobra", 8, 3);
Bunnies.spawnBunny("Cobra", 8, 5);
Level.place(5);
Beasts = new AIHandler(Level.cols, Level.rows);
Beasts.spawn("crunch", 160);
Beasts.spawn("buzzer", 200);
} else if (_global.curlevel == "CHA_powerdown") {
powerleft = 0;
Level = new Tileset("Power Down Challenge", 108, 7);
Level.InitCHApowerdown();
_global.diff = 18;
Bunnies = new BunnyHandler(Level.cols, Level.rows);
var _local5 = 3;
Bunnies.spawnBunny("Medic", 8, 2);
Bunnies.spawnBunny("Wabbit", 8, 3);
Bunnies.spawnBunny("Medic", 8, 4);
Level.place(12);
Beasts = new AIHandler(Level.cols, Level.rows);
Beasts.spawn("crunch", 125);
Beasts.spawn("boulder", 200);
Beasts.spawn("buzzer", 125);
}
gui.map_title = Level.setName;
readymenu = _root.attachMovie("bend_ready", "rmenu", 105099);
customscr = _root.attachMovie("bend_customize", "cmenu", 105089);
upscr = _root.attachMovie("bend_upgrade", "umenu", 105085);
customscr._visible = (upscr._visible = false);
createEmptyMovieClip("numscr", 105050);
gui.icebar._alpha = 75;
gui.handle._width = 419904 / (Level.getEnd() - Level.getStart());
pframe = getTimer();
}
function selectBunny() {
if (((((((((mouseState == "customize") || (mouseState == "upgrading")) || (mouseState == "ready")) || (mouseState == "hopdir")) || (mouseState == "ghopdir")) || (mouseState == "snackdir")) || (mouseState == "bunnyselect")) || (mouseState == "paused")) || (exitscr._visible)) {
return(undefined);
}
Bunnies.hideContext(selBun);
selBun = Bunnies.grabBunny();
}
function onSpecButton() {
Level.hideContext();
selectBunny();
if ((selBun != -1) && (Bunnies.bunState(selBun) == "idle")) {
triggerSpecial();
}
}
function onHopButton() {
Level.hideContext();
selectBunny();
if (((!checkSpecial()) && (selBun != -1)) && (Bunnies.bunState(selBun) == "idle")) {
mouseState = "hopdir";
Bunnies.hideContext();
Level.mousehl = false;
Level.rangeHLClear();
Bunnies.statusMenu(selBun);
}
}
function showRange() {
rangeupdate = false;
if (_global.showHL) {
Level.rangeHLClear();
Level.rangeHL(aStarGrid(Bunnies.bunX(selBun), Bunnies.bunY(selBun), Bunnies.buns[selBun].moves, Bunnies.buns[selBun].z, "all"));
}
if (mouseState == "bunnyselect") {
var _local3 = Level.getTileX();
var _local4 = Level.adjustY(_local3, Level.getTileY());
var _local2 = aStarPath(Bunnies.bunX(selBun), Bunnies.bunY(selBun), _local3, _local4, Bunnies.buns[selBun].moves, Bunnies.buns[selBun].z, "all");
if (_local2.length > 0) {
Level.pathHL(_local2, 0, 255, 0, 100);
Level.okPath();
} else {
Level.badPath();
}
}
}
function triggerSpecial() {
if ((selBun != -1) && (Bunnies.bunState(selBun) == "idle")) {
if (Bunnies.buns[selBun].bclass == "Jet") {
mouseState = "ghopdir";
Bunnies.hideContext();
Level.mousehl = false;
Level.rangeHLClear();
} else if ((Bunnies.buns[selBun].bclass == "Cobra") && (clickhold == 0)) {
Bunnies.hideContext();
Bunnies.buns[selBun].cloak();
mouseState = "idle";
Level.pathHLClear();
Level.rangeHLClear();
Level.okPath();
lclick = false;
clickhold = 1;
} else if (Bunnies.buns[selBun].bclass == "Medic") {
Bunnies.hideContext();
Bunnies.mend(selBun);
mouseState = "idle";
Level.pathHLClear();
Level.rangeHLClear();
lclick = false;
} else if (Bunnies.buns[selBun].bclass == "Chomp") {
mouseState = "snackdir";
Bunnies.hideContext();
Level.mousehl = false;
Level.rangeHLClear();
}
}
}
function hopend() {
if ((skillDir == "none") || (skillDir == "cancel")) {
Level.pathHLClear();
Level.okPath();
mouseState = "bunnycontext";
showRange();
} else {
Level.pathHLClear();
Level.okPath();
mouseState = "bunnymoving";
Bunnies.hop(selBun, skillDir);
}
}
function ghopend() {
if ((skillDir == "none") || (skillDir == "cancel")) {
Level.pathHLClear();
Level.okPath();
mouseState = "bunnycontext";
showRange();
} else {
Level.pathHLClear();
Level.okPath();
mouseState = "bunnymoving";
Bunnies.buns[selBun].ghop(skillDir);
}
}
function snackend() {
if ((skillDir == "none") || (skillDir == "cancel")) {
Level.pathHLClear();
Level.okPath();
Level.rangeHLClear();
mouseState = "bunnycontext";
showRange();
} else {
Level.pathHLClear();
Level.okPath();
Level.rangeHLClear();
mouseState = "bunnymoving";
Bunnies.hideContext();
Bunnies.snack(selBun, skillDir);
}
}
function bunnyTracking() {
if (selBun != -1) {
if (((Bunnies.bunState(selBun) == "dying") || (Bunnies.bunState(selBun) == "dead")) || (Bunnies.bunState(selBun) == "frozen")) {
mouseState = "idle";
Level.rangeHLClear();
Level.pathHLClear();
selBun = -1;
} else {
Bunnies.statusMenu(selBun);
Bunnies.buns[selBun].halo = true;
}
}
if (rangeupdate) {
showRange();
}
if (mouseState == "bunnyselect") {
var _local5 = Level.getTileX();
var _local7 = Level.adjustY(_local5, Level.getTileY());
if ((_local5 != pathX) || (_local7 != pathY)) {
pathX = _local5;
pathY = _local7;
if ((_local5 == Bunnies.bunX(selBun)) && (_local7 == Bunnies.bunY(selBun))) {
Level.pathHLClear();
} else {
var _local4 = aStarPath(Bunnies.bunX(selBun), Bunnies.bunY(selBun), _local5, _local7, Bunnies.buns[selBun].moves, Bunnies.buns[selBun].z, "all");
if (_local4.length > 0) {
Level.pathHL(_local4, 0, 255, 0, 100);
Level.okPath();
} else {
Level.badPath();
}
}
}
} else if (mouseState == "bunnymoving") {
if ((Bunnies.bunState(selBun) == "idle") || (rangeupdate)) {
mouseState = "bunnycontext";
showRange();
}
if (Bunnies.bunState(selBun) == "resting") {
mouseState = "idle";
}
} else if (mouseState == "snackdir") {
if (!checkSpecial()) {
snackend();
Level.pathHLClear();
skillDir = "none";
return(undefined);
}
var _local6 = (_xmouse - Bunnies.buns[selBun].mc._x) - 16;
var _local8 = (_ymouse - Bunnies.buns[selBun].mc._y) - 16;
if (Bunnies.buns[selBun].leftyflip) {
_local6 = _local6 + 36;
}
var _local3 = Bunnies.bunX(selBun);
var _local2 = Bunnies.bunY(selBun);
if ((Math.abs(_local6) < 16) && (Math.abs(_local8) < 16)) {
Level.pathHLClear();
skillDir = "cancel";
return(undefined);
}
if (Math.abs(_local6) > Math.abs(_local8)) {
var _local4 = new Array();
if (_local6 > 0) {
_local4.push(new PathNode(_local3 + 1, _local2, 0, 0, null));
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "right";
} else {
_local4.push(new PathNode(_local3 - 1, _local2, 0, 0, null));
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "left";
}
} else if (Math.abs(_local6) <= Math.abs(_local8)) {
var _local4 = new Array();
if (_local8 > 0) {
_local4.push(new PathNode(_local3, _local2 + 1, 0, 0, null));
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "down";
} else {
_local4.push(new PathNode(_local3, _local2 - 1, 0, 0, null));
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "up";
}
}
} else if (mouseState == "hopdir") {
if (!checkHop()) {
hopend();
Level.pathHLClear();
skillDir = "none";
return(undefined);
}
var _local6 = (_xmouse - Bunnies.buns[selBun].mc._x) - 16;
var _local8 = (_ymouse - Bunnies.buns[selBun].mc._y) - 16;
if (Bunnies.buns[selBun].leftyflip) {
_local6 = _local6 + 36;
}
var _local3 = Bunnies.bunX(selBun);
var _local2 = Bunnies.bunY(selBun);
if ((Math.abs(_local6) < 16) && (Math.abs(_local8) < 16)) {
Level.pathHLClear();
skillDir = "cancel";
return(undefined);
}
if (Math.abs(_local6) > Math.abs(_local8)) {
if (_local6 > 0) {
var _local4 = new Array();
var _local9 = new PathNode(_local3 + 1, _local2, 0, 0, null);
var _local11 = new PathNode(_local3 + 2, _local2, 0, 0, null);
_local4.push(_local9);
_local4.push(_local11);
if (((Level.checkTile(_local3 + 2, _local2) != "noaccess") && (_global.bunnyCheck(_local3 + 2, _local2))) && (Level.tile(_local3 + 1, _local2).val != "block")) {
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "right";
} else {
Level.pathHL(_local4, 0, 0, 0, 100);
skillDir = "none";
}
} else {
var _local4 = new Array();
var _local9 = new PathNode(_local3 - 1, _local2, 0, 0, null);
var _local11 = new PathNode(_local3 - 2, _local2, 0, 0, null);
_local4.push(_local9);
_local4.push(_local11);
if (((Level.checkTile(_local3 - 2, _local2) != "noaccess") && (_global.bunnyCheck(_local3 - 2, _local2))) && (Level.tile(_local3 - 1, _local2).val != "block")) {
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "left";
} else {
Level.pathHL(_local4, 0, 0, 0, 100);
skillDir = "none";
}
}
} else if (Math.abs(_local6) <= Math.abs(_local8)) {
if (_local8 > 0) {
var _local4 = new Array();
var _local9 = new PathNode(_local3, _local2 + 1, 0, 0, null);
var _local11 = new PathNode(_local3, _local2 + 2, 0, 0, null);
_local4.push(_local9);
_local4.push(_local11);
if (((Level.checkTile(_local3, _local2 + 2) != "noaccess") && (_global.bunnyCheck(_local3, _local2 + 2))) && (Level.tile(_local3, _local2 + 1).val != "block")) {
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "down";
} else {
Level.pathHL(_local4, 0, 0, 0, 100);
skillDir = "none";
}
} else {
var _local4 = new Array();
var _local9 = new PathNode(_local3, _local2 - 1, 0, 0, null);
var _local11 = new PathNode(_local3, _local2 - 2, 0, 0, null);
_local4.push(_local9);
_local4.push(_local11);
if (((Level.checkTile(_local3, _local2 - 2) != "noaccess") && (_global.bunnyCheck(_local3, _local2 - 2))) && (Level.tile(_local3, _local2 - 1).val != "block")) {
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "up";
} else {
Level.pathHL(_local4, 0, 0, 0, 100);
skillDir = "none";
}
}
}
} else if (mouseState == "ghopdir") {
if (!checkSpecial()) {
ghopend();
Level.pathHLClear();
skillDir = "none";
return(undefined);
}
var _local6 = (_xmouse - Bunnies.buns[selBun].mc._x) - 16;
var _local8 = (_ymouse - Bunnies.buns[selBun].mc._y) - 16;
if (Bunnies.buns[selBun].leftyflip) {
_local6 = _local6 + 36;
}
var _local3 = Bunnies.bunX(selBun);
var _local2 = Bunnies.bunY(selBun);
if ((Math.abs(_local6) < 16) && (Math.abs(_local8) < 16)) {
Level.pathHLClear();
skillDir = "cancel";
return(undefined);
}
if (Math.abs(_local6) > Math.abs(_local8)) {
if (_local6 > 0) {
var _local4 = new Array();
var _local9 = new PathNode(_local3 + 1, _local2, 0, 0, null);
var _local11 = new PathNode(_local3 + 2, _local2, 0, 0, null);
var _local10 = new PathNode(_local3 + 3, _local2, 0, 0, null);
_local4.push(_local9);
_local4.push(_local11);
_local4.push(_local10);
if ((Level.checkTile(_local3 + 3, _local2) != "noaccess") && (_global.bunnyCheck(_local3 + 3, _local2))) {
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "right";
} else {
Level.pathHL(_local4, 0, 0, 0, 100);
skillDir = "none";
}
} else {
var _local4 = new Array();
var _local9 = new PathNode(_local3 - 1, _local2, 0, 0, null);
var _local11 = new PathNode(_local3 - 2, _local2, 0, 0, null);
var _local10 = new PathNode(_local3 - 3, _local2, 0, 0, null);
_local4.push(_local9);
_local4.push(_local11);
_local4.push(_local10);
if ((Level.checkTile(_local3 - 3, _local2) != "noaccess") && (_global.bunnyCheck(_local3 - 3, _local2))) {
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "left";
} else {
Level.pathHL(_local4, 0, 0, 0, 100);
skillDir = "none";
}
}
} else if (Math.abs(_local6) <= Math.abs(_local8)) {
if (_local8 > 0) {
var _local4 = new Array();
var _local9 = new PathNode(_local3, _local2 + 1, 0, 0, null);
var _local11 = new PathNode(_local3, _local2 + 2, 0, 0, null);
var _local10 = new PathNode(_local3, _local2 + 3, 0, 0, null);
_local4.push(_local9);
_local4.push(_local11);
_local4.push(_local10);
if ((Level.checkTile(_local3, _local2 + 3) != "noaccess") && _global.bunnyCheck(_local3, _local2 + 3)) {
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "down";
} else {
Level.pathHL(_local4, 0, 0, 0, 100);
skillDir = "none";
}
} else {
var _local4 = new Array();
var _local9 = new PathNode(_local3, _local2 - 1, 0, 0, null);
var _local11 = new PathNode(_local3, _local2 - 2, 0, 0, null);
var _local10 = new PathNode(_local3, _local2 - 3, 0, 0, null);
_local4.push(_local9);
_local4.push(_local11);
_local4.push(_local10);
if ((Level.checkTile(_local3, _local2 - 3) != "noaccess") && _global.bunnyCheck(_local3, _local2 - 3)) {
Level.pathHL(_local4, 0, 255, 0, 100);
skillDir = "up";
} else {
Level.pathHL(_local4, 0, 0, 0, 100);
skillDir = "none";
}
}
}
}
}
function bunnyHalos() {
Bunnies.halo();
}
function clearAll() {
if (!_global.incha) {
var _local2 = 0;
while (_local2 < 4) {
_global.sdata.buns[_local2].loadBunny(Bunnies.buns[_local2]);
_global.sdata.buns[_local2].state = Bunnies.buns[_local2].state;
_local2++;
}
}
Level.clearAll();
Bunnies.clearAll();
Beasts.clearAll();
delete Level;
delete Bunnies;
delete Beasts;
gui.removeMovieClip();
readymenu.removeMovieClip();
pausemenu.removeMovieClip();
customscr.removeMovieClip();
exitscr.removeMovieClip();
oscr.removeMovieClip();
fm.removeMovieClip();
upscr.removeMovieClip();
numscr.removeMovieClip();
}
function congratsMsg() {
var _local1 = "";
var _local2 = 750000 /* 0x0B71B0 */;
if (Tracker.total < 0) {
_local1 = "Chin up, everyone has to start somewhere";
} else if (Tracker.total == 0) {
_local1 = "Even heroes were zeros to begin with";
} else if (Tracker.total < ((_local2 / 20) * 1)) {
_local1 = "Off to a good start";
} else if (Tracker.total < ((_local2 / 20) * 2)) {
_local1 = "Warming up";
} else if (Tracker.total < ((_local2 / 20) * 3)) {
_local1 = "Getting the hang of it";
} else if (Tracker.total < ((_local2 / 20) * 4)) {
_local1 = "Not bad";
} else if (Tracker.total < ((_local2 / 20) * 5)) {
_local1 = "Decent";
} else if (Tracker.total < ((_local2 / 20) * 6)) {
_local1 = "Solid";
} else if (Tracker.total < ((_local2 / 20) * 7)) {
_local1 = "Good job";
} else if (Tracker.total < ((_local2 / 20) * 8)) {
_local1 = "Great";
} else if (Tracker.total < ((_local2 / 20) * 9)) {
_local1 = "Highly commendable";
} else if (Tracker.total < ((_local2 / 20) * 10)) {
_local1 = "Impressive";
} else if (Tracker.total < ((_local2 / 20) * 11)) {
_local1 = "Embarrassingly good";
} else if (Tracker.total < ((_local2 / 20) * 12)) {
_local1 = "Wow, just wow";
} else if (Tracker.total < ((_local2 / 20) * 13)) {
_local1 = "Crazy insane";
} else if (Tracker.total < ((_local2 / 20) * 14)) {
_local1 = "Unbelievable";
} else if (Tracker.total < ((_local2 / 20) * 15)) {
_local1 = "Godlike";
} else if (Tracker.total < ((_local2 / 20) * 16)) {
_local1 = "Beyond words";
} else if (Tracker.total < ((_local2 / 20) * 17)) {
_local1 = "Incomphrehensible to the human mind.";
} else if (Tracker.total < ((_local2 / 20) * 18)) {
_local1 = "I knew I should've made it harder...";
} else if (Tracker.total < ((_local2 / 20) * 19)) {
_local1 = "You must be cheating";
} else if (Tracker.total < ((_local2 / 20) * 20)) {
_local1 = "This is the second highest message. Ha! Second!";
} else if (Tracker.total >= _local2) {
_local1 = "You are simply too good at this. You win.";
}
return(_local1);
}
function Score(amt, type, px, py, lefty) {
if ((_global.curlevel == "CHA_cheapskate") && ((type == "ice") || (type == "finish"))) {
return(undefined);
}
var _local2 = numscr.getNextHighestDepth();
Tracker.count(type, amt);
if ((((type == "bounce") || (type == "crush")) || (type == "spec")) || (type == "finish")) {
numscr.attachMovie("point_overlay", "points" + _local2, _local2);
numscr["points" + _local2].text.amt = "+ " + amt;
} else if (type == "penal") {
numscr.attachMovie("point_overlay2", "points" + _local2, _local2);
numscr["points" + _local2].text.amt = "- " + amt;
}
numscr["points" + _local2]._x = px + 18;
numscr["points" + _local2]._y = py;
if (lefty) {
numscr["points" + _local2]._x = numscr["points" + _local2]._x - 36;
}
}
function upgrade(bid) {
upscr._visible = true;
prePauseState = mouseState;
mouseState = "upgrading";
Bunnies.stopAll();
Level.stopAll();
Beasts.stopAll();
bungrade = bid;
var _local2 = new Color(upscr.testbun.bbody);
_local2.fillTint(Bunnies.buns[bid].r, Bunnies.buns[bid].g, Bunnies.buns[bid].b, 100);
upscr.bname = Bunnies.buns[bid].bname;
upscr.bclass = Bunnies.buns[bid].bclass;
upscr.done.enabled = false;
upscr.done._alpha = 50;
}
function checkList(list, i, j) {
var _local1 = 0;
while (_local1 < list.length) {
if ((list[_local1].i == i) && (list[_local1].j == j)) {
return(_local1);
}
_local1++;
}
return(null);
}
function tracePath(leaf) {
var _local2 = new Array();
var _local1 = leaf;
while (_local1 != null) {
_local2.push(_local1);
_local1 = _local1.parent;
}
return(_local2);
}
function aStarPath(i, j, ti, tj, maxg, high, block) {
if ((i == ti) && (j == tj)) {
return(undefined);
}
var _local1 = new Array();
var _local14 = new Array();
_local1.push(new PathNode(i, j, 0, 0, null));
while (_local1.length > 0) {
var _local17 = _local1[0].g + _local1[0].h;
var _local13 = 0;
var _local2 = 0;
while (_local2 < _local1.length) {
var _local11 = _local1[_local2].g + _local1[_local2].h;
if (_local11 < _local17) {
_local17 = _local11;
_local13 = _local2;
}
_local2++;
}
_local14.push(_local1[_local13]);
var _local4 = _local1[_local13].i;
var _local3 = _local1[_local13].j;
_local1.splice(_local13, 1);
var _local16 = _local14[_local14.length - 1];
var _local8 = Level.grabNode(_local4 + 1, _local3, ti, tj, _local16, high, maxg, block);
if (_local8.g <= maxg) {
if ((_local8.i == ti) && (_local8.j == tj)) {
return(tracePath(_local8));
}
if ((_local8 != null) && (checkList(_local14, _local4 + 1, _local3) == null)) {
var _local15 = checkList(_local1, _local4 + 1, _local3);
if (_local15 == null) {
_local1.push(_local8);
} else if (_local1[_local15].g > _local8.g) {
_local1[_local15].g = _local8.g;
_local1[_local15].parent = _local8.parent;
}
}
}
var _local5 = Level.grabNode(_local4, _local3 - 1, ti, tj, _local16, high, maxg, block);
if (_local5.g <= maxg) {
if ((_local5.i == ti) && (_local5.j == tj)) {
return(tracePath(_local5));
}
if ((_local5 != null) && (checkList(_local14, _local4, _local3 - 1) == null)) {
var _local15 = checkList(_local1, _local4, _local3 - 1);
if (_local15 == null) {
_local1.push(_local5);
} else if (_local1[_local15].g > _local5.g) {
_local1[_local15].g = _local5.g;
_local1[_local15].parent = _local5.parent;
}
}
}
var _local6 = Level.grabNode(_local4, _local3 + 1, ti, tj, _local16, high, maxg, block);
if (_local6.g <= maxg) {
if ((_local6.i == ti) && (_local6.j == tj)) {
return(tracePath(_local6));
}
if ((_local6 != null) && (checkList(_local14, _local4, _local3 + 1) == null)) {
var _local15 = checkList(_local1, _local4, _local3 + 1);
if (_local15 == null) {
_local1.push(_local6);
} else if (_local1[_local15].g > _local6.g) {
_local1[_local15].g = _local6.g;
_local1[_local15].parent = _local6.parent;
}
}
}
var _local7 = Level.grabNode(_local4 - 1, _local3, ti, tj, _local16, high, maxg, block);
if (_local7.g <= maxg) {
if ((_local7.i == ti) && (_local7.j == tj)) {
return(tracePath(_local7));
}
if ((_local7 != null) && (checkList(_local14, _local4 - 1, _local3) == null)) {
var _local15 = checkList(_local1, _local4 - 1, _local3);
if (_local15 == null) {
_local1.push(_local7);
} else if (_local1[_local15].g > _local7.g) {
_local1[_local15].g = _local7.g;
_local1[_local15].parent = _local7.parent;
}
}
}
}
return(null);
}
function aStarGrid(i, j, maxg, high, block) {
var _local3 = new Array();
var _local13 = new Array();
var _local4 = new Array();
_local3.push(new PathNode(i, j, 0, 0, null));
while (_local3.length > 0) {
_local13.push(_local3[0]);
var _local2 = _local3[0].i;
var _local1 = _local3[0].j;
_local3.shift();
var _local9 = _local13[_local13.length - 1];
var _local10 = Level.grabNode2(_local2 + 1, _local1, ti, tj, _local9, high, maxg, block);
if (((_local10 != null) && (_local10.g <= maxg)) && (checkList(_local4, _local2 + 1, _local1) == null)) {
_local4.push(_local10);
_local3.push(_local10);
}
var _local8 = Level.grabNode2(_local2 - 1, _local1, ti, tj, _local9, high, maxg, block);
if (((_local8 != null) && (_local8.g <= maxg)) && (checkList(_local4, _local2 - 1, _local1) == null)) {
_local4.push(_local8);
_local3.push(_local8);
}
var _local6 = Level.grabNode2(_local2, _local1 - 1, ti, tj, _local9, high, maxg, block);
if (((_local6 != null) && (_local6.g <= maxg)) && (checkList(_local4, _local2, _local1 - 1) == null)) {
_local4.push(_local6);
_local3.push(_local6);
}
var _local7 = Level.grabNode2(_local2, _local1 + 1, ti, tj, _local9, high, maxg, block);
if (((_local7 != null) && (_local7.g <= maxg)) && (checkList(_local4, _local2, _local1 + 1) == null)) {
_local4.push(_local7);
_local3.push(_local7);
}
}
return(_local4.slice());
}
stop();
var init = false;
var camPos = 0;
var Level;
var Tracker;
var mouseState = "ready";
var readytime = 45;
var prePauseState = "idle";
var selBun = -1;
var pathX = -1;
var pathY = -1;
_global.pauseTime = false;
_global.goAwayCustoms = "wtf";
_global.quitter = "none";
_global.upgradeComplete = false;
var bungrade = -1;
var rangeupdate = false;
var powerleft = 0;
var Bunnies;
var skillDir = "none";
var Beasts;
var startTime = 0;
var cframe = 0;
var pframe = 0;
var fps = 0;
var cTime = 0;
var lclick = false;
var mclick = false;
var hopbutton;
var hopbutton2;
var contextbutton;
var contextbutton2;
var specbutton;
var specbutton2;
var clickhold = 0;
var specon = false;
_global.updateRange = function () {
rangeupdate = true;
};
onEnterFrame = function () {
if (!init) {
init = true;
if (_global.mfunc == "HOP") {
hopbutton2 = 4;
} else {
hopbutton2 = -1;
}
if (_global.rfunc == "SPEC") {
specbutton = 2;
} else {
specbutton = -1;
}
if (_global.mfunc == "SPEC") {
specbutton2 = 4;
} else {
specbutton2 = -1;
}
if (_global.rfunc == "TILE") {
contextbutton = 2;
} else {
contextbutton = -1;
}
if (_global.mfunc == "TILE") {
contextbutton2 = 4;
} else {
contextbutton2 = -1;
}
var _local7 = new Sound(_root);
_local7.setVolume(_global.vol);
if (_global.curlevel.indexOf("CHA_") != -1) {
InitializeCHA();
} else {
InitializeFP();
}
_global.holder = _root.createEmptyMovieClip("musicholder", -1001);
_global.music = new Sound(_global.holder);
if (_global.curlevel == "mixed") {
_global.transtime = 0;
}
if (((_global.curlevel == "grass") || (_global.curlevel == "CHA_pointblitz")) || (Level.settype == "grass")) {
_global.music.attachSound("Grass_Theme.mp3");
_global.music.setVolume(100 * (_global.mvol / 100));
} else if (((((_global.curlevel == "metal") || (_global.curlevel == "CHA_checkers")) || (_global.curlevel == "CHA_cheapskate")) || (_global.curlevel == "CHA_powerdown")) || (Level.settype == "metal")) {
_global.music.attachSound("Metal_Theme.mp3");
_global.music.setVolume(100 * (_global.mvol / 100));
} else if ((((_global.curlevel == "tropic") || (_global.curlevel == "CHA_boardwalk")) || (_global.curlevel == "CHA_buzzerdash")) || (Level.settype == "tropic")) {
_global.music.attachSound("Tropics_Theme.mp3");
_global.music.setVolume(100 * (_global.mvol / 100));
}
_global.music.start(_global.transtime / 1000, 1);
_global.transtime = 0;
}
if (_global.music.position > (_global.music.duration - 25)) {
_global.music.stop();
_global.music.setVolume(100 * (_global.mvol / 100));
_global.music.start(0, 1);
}
var _local7 = new Sound(_root);
_local7.setVolume(_global.vol);
if ((_global.quitter == "save") || (_global.quitter == "exit")) {
clearAll();
_global.quitter = "finish";
_root.play();
}
if (Key.isDown(17) && (Key.isDown(70))) {
_global.updateQuality();
}
if (readytime > -20) {
readytime--;
if (readytime == 0) {
mouseState = "idle";
} else if (readytime == -20) {
readymenu.removeMovieClip();
}
}
mouse_coords = (("MOUSE: " + _xmouse) + ", ") + _ymouse;
updateTimer();
keyInput();
if (checkHop()) {
onHopButton();
}
bunnyHalos();
bunnyTracking();
Level.edgeScroll();
if (checkContext() && (!mclick)) {
Level.contextMenu();
}
if (!checkContext()) {
mclick = false;
}
if (checkSpecial()) {
specon = true;
onSpecButton();
} else {
clickhold = 0;
}
Level.mouseHighlight();
if (mouseState != "ready") {
Level.iceGrowth();
}
Level.update();
gui.icebar._x = 16 + ((Level.getIce() * 648) / (Level.getEnd() - Level.getStart()));
if (!Level.interp) {
var _local8 = (Level.pos * 648) / (Level.getEnd() - Level.getStart());
gui.handle._x = _local8 + (gui.handle._width / 2);
}
Beasts.scrollAI(Level.pos);
Beasts.update();
Bunnies.scrollBunnies(Level.pos);
Bunnies.update();
var _local3 = 0;
while (_local3 < Bunnies.buns.length) {
if (((Bunnies.buns[_local3].state != "frozen") && (Bunnies.buns[_local3].state != "finished")) && ((Bunnies.buns[_local3].mc._x <= (Level.ice[0]._x + 2)) || (((Bunnies.buns[_local3].mc._x - 36) <= (Level.ice[0]._x + 2)) && (Bunnies.buns[_local3].leftyflip)))) {
Bunnies.buns[_local3].freeze();
if (_local3 == selBun) {
mouseState = "idle";
}
}
_local3++;
}
_local3 = 0;
while (_local3 < Beasts.nme.length) {
if (((Beasts.nme[_local3].state != "dying") && (Beasts.nme[_local3].state != "dead")) && ((Beasts.nme[_local3].mc._x <= (Level.ice[0]._x + 2)) || (((Beasts.nme[_local3].mc._x - 36) <= (Level.ice[0]._x + 2)) && (Beasts.nme[_local3].leftyflip)))) {
Beasts.nme[_local3].die();
}
_local3++;
}
if (_global.incha) {
if ((_global.curlevel == "CHA_buzzerdash") || (_global.curlevel == "CHA_checkers")) {
if ((mouseState != "gameover") && (!oscr._visible)) {
var _local6 = 0;
_local3 = 0;
while (_local3 < Bunnies.buns.length) {
if (((Bunnies.buns[_local3].state != "dead") && (Bunnies.buns[_local3].state != "dying")) && (Bunnies.buns[_local3].state != "frozen")) {
_local6++;
}
_local3++;
}
if (_local6 < 3) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = bunnyover();
Level.stopAll();
}
}
if (((mouseState != "gameover") && (Bunnies.allDone())) && (!fmenu._visible)) {
mouseState = "gameover";
_root.attachMovie("bend_chadone", "fm", 105086);
Tracker.speed = (Level.iceLeft() * Math.floor(_global.diff)) * 50;
Tracker.total = Tracker.total + Tracker.speed;
fm.t2.scores = Tracker.getResults1();
fm.t2.scores2 = Tracker.getResults2();
fm.t2.tscore = "Total: " + Tracker.total;
Level.stopAll();
}
} else if (_global.curlevel == "CHA_pointblitz") {
if (((mouseState != "gameover") && (Bunnies.allDead())) && (!oscr._visible)) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = bunnyover();
Level.stopAll();
}
if (((mouseState != "gameover") && (Bunnies.allDone())) && (!fmenu._visible)) {
if (Tracker.total < 70000) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = bunnyover();
Level.stopAll();
} else {
mouseState = "gameover";
_root.attachMovie("bend_chadone", "fm", 105086);
Tracker.speed = 0;
Tracker.total = Tracker.total + Tracker.speed;
fm.t2.scores = Tracker.getResults1();
fm.t2.scores2 = Tracker.getResults2();
fm.t2.tscore = "Total: " + Tracker.total;
Level.stopAll();
}
}
} else if (_global.curlevel == "CHA_cheapskate") {
if (((mouseState != "gameover") && (Bunnies.anyDead())) && (!oscr._visible)) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = bunnyover();
Level.stopAll();
}
if (((mouseState != "gameover") && (Bunnies.allDone())) && (!fmenu._visible)) {
if (Tracker.total > 1499) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = bunnyover();
Level.stopAll();
} else {
mouseState = "gameover";
_root.attachMovie("bend_chadone", "fm", 105086);
Tracker.speed = 0;
Tracker.total = Tracker.total + Tracker.speed;
fm.t2.scores = Tracker.getResults1();
fm.t2.scores2 = Tracker.getResults2();
fm.t2.tscore = "Total: " + Tracker.total;
Level.stopAll();
}
}
} else if (_global.curlevel == "CHA_boardwalk") {
if (((mouseState != "gameover") && (Bunnies.anyDead())) && (!oscr._visible)) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = bunnyover();
Level.stopAll();
}
if (((mouseState != "gameover") && (Bunnies.allDone())) && (!fmenu._visible)) {
mouseState = "gameover";
_root.attachMovie("bend_chadone", "fm", 105086);
Tracker.speed = (Level.iceLeft() * Math.floor(_global.diff)) * 50;
Tracker.total = Tracker.total + Tracker.speed;
fm.t2.scores = Tracker.getResults1();
fm.t2.scores2 = Tracker.getResults2();
fm.t2.tscore = "Total: " + Tracker.total;
Level.stopAll();
}
} else if (_global.curlevel == "CHA_powerdown") {
if (((mouseState != "gameover") && (Bunnies.anyDead())) && (!oscr._visible)) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = bunnyover();
Level.stopAll();
}
if (((mouseState != "gameover") && (Bunnies.allDone())) && (!fmenu._visible)) {
if (powerleft > 0) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = bunnyover();
Level.stopAll();
} else {
mouseState = "gameover";
_root.attachMovie("bend_chadone", "fm", 105086);
Tracker.speed = 0;
Tracker.total = Tracker.total + Tracker.speed;
fm.t2.scores = Tracker.getResults1();
fm.t2.scores2 = Tracker.getResults2();
fm.t2.tscore = "Total: " + Tracker.total;
Level.stopAll();
}
}
}
} else if (((mouseState != "gameover") && (Bunnies.allDead())) && (!oscr._visible)) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = (((((bunnyover() + newline) + "Final Total Score: ") + Tracker.total) + " (") + congratsMsg()) + ")";
Level.stopAll();
} else if ((((mouseState != "gameover") && (Bunnies.allDone())) && (!oscr._visible)) && (_global.levelcount == 9)) {
mouseState = "gameover";
_root.attachMovie("bend_over", "oscr", 105086);
oscr.say.saying = ((("This demo only provides 9 stages. Buy the full version to unlock unlimited play!\rFinal Total Score: " + Tracker.total) + " (") + congratsMsg()) + ")";
Level.stopAll();
} else if (((mouseState != "gameover") && (Bunnies.allDone())) && (!fmenu._visible)) {
mouseState = "gameover";
_root.attachMovie("bend_finishup", "fm", 105086);
Tracker.speed = (Level.iceLeft() * Math.floor(_global.diff)) * 50;
Tracker.total = Tracker.total + Tracker.speed;
fm.t2.scores = Tracker.getResults1();
fm.t2.scores2 = Tracker.getResults2();
fm.t2.tscore = ((("Total: " + Tracker.total) + " (") + congratsMsg()) + ")";
Level.stopAll();
}
if ((((((((mouseState != "paused") && (mouseState != "customize")) && (mouseState != "quitting")) && (mouseState != "upgrading")) && (mouseState != "waiting")) && (mouseState != "gameover")) && (tap(80) || (_global.pauseTime))) && (readytime < 0)) {
prePauseState = mouseState;
mouseState = "paused";
pausemenu = _root.attachMovie("bend_pause", "pmenu", 105090);
var _local5 = bunnyfact();
var _local4 = _local5;
while (_local4 == _local5) {
_local4 = bunnyfact();
}
pausemenu.facts.text_facts = (_local5 + newline) + _local4;
Bunnies.stopAll();
Level.stopAll();
Beasts.stopAll();
gui.pausebutton._visible = false;
gui.qualbutton._visible = false;
}
if ((mouseState == "customize") && (_global.goAwayCustoms != "wtf")) {
mouseState = prePauseState;
pausemenu._visible = false;
Bunnies.resumeAll();
Level.resumeAll();
Beasts.resumeAll();
_global.pauseTime = false;
gui.pausebutton._visible = true;
gui.qualbutton._visible = true;
customscr._visible = false;
if (_global.goAwayCustoms == "save") {
Bunnies.buns[selBun].bname = customscr.bname;
Bunnies.buns[selBun].bclass = customscr.bclass;
Bunnies.buns[selBun].r = customscr.rslider.handle._x;
Bunnies.buns[selBun].g = customscr.gslider.handle._x;
Bunnies.buns[selBun].b = customscr.bslider.handle._x;
Bunnies.buns[selBun].reColour();
}
_global.goAwayCustoms = "wtf";
Level.mousehl = true;
}
if ((mouseState == "upgrading") && (_global.upgradeComplete)) {
Bunnies.buns[bungrade].changeClass(upscr.bclass);
Bunnies.buns[bungrade].state = "idle";
Bunnies.buns[bungrade].penalty = 0;
Bunnies.buns[bungrade].moves = Bunnies.buns[bungrade].maxmoves;
Bunnies.buns[bungrade].carrots = Bunnies.buns[bungrade].maxcarrots;
mouseState = "idle";
Bunnies.resumeAll();
Level.resumeAll();
Beasts.resumeAll();
_global.pauseTime = false;
Level.mousehl = true;
gui.pausebutton._visible = true;
gui.qualbutton._visible = true;
upscr._visible = (_global.upgradeComplete = false);
}
if ((((((_global.quitter == "show") && (!emenu._visible)) && (mouseState != "customize")) && (mouseState != "upgrading")) && (mouseState != "gameover")) && (mouseState != "ready")) {
_global.quitter = "waiting";
prePauseState = mouseState;
mouseState = "quitting";
exitscr = _root.attachMovie("bend_exiting", "emenu", 105088);
Bunnies.stopAll();
Level.stopAll();
Beasts.stopAll();
gui.pausebutton._visible = false;
gui.qualbutton._visible = false;
} else if (_global.quitter == "hide") {
_global.quitter = "none";
mouseState = prePauseState;
exitscr.removeMovieClip();
Bunnies.resumeAll();
Level.resumeAll();
Beasts.resumeAll();
gui.pausebutton._visible = true;
gui.qualbutton._visible = true;
}
gui.text_score = "Score: " + Tracker.total;
};
this.onMouseDown = function () {
lclick = true;
Level.hideContext();
if ((((mouseState == "customize") || (mouseState == "upgrading")) || (mouseState == "ready")) || (exitscr._visible)) {
return(undefined);
}
if (mouseState == "paused") {
mouseState = prePauseState;
pausemenu.removeMovieClip();
Bunnies.resumeAll();
Level.resumeAll();
Beasts.resumeAll();
_global.pauseTime = false;
gui.pausebutton._visible = true;
gui.qualbutton._visible = true;
}
if ((selBun != -1) && (Bunnies.bstatus.cust.hitTest(_xmouse, _ymouse, false))) {
customscr._visible = true;
prePauseState = mouseState;
mouseState = "customize";
Bunnies.stopAll();
Level.stopAll();
Beasts.stopAll();
gui.pausebutton._visible = false;
gui.qualbutton._visible = false;
customscr.prepClass(Bunnies.buns[selBun].bclass);
customscr.bname = Bunnies.buns[selBun].bname;
customscr.bclass = Bunnies.buns[selBun].bclass;
customscr.rslider.handle._x = Bunnies.buns[selBun].r;
customscr.gslider.handle._x = Bunnies.buns[selBun].g;
customscr.bslider.handle._x = Bunnies.buns[selBun].b;
}
if (!checkSpecial()) {
if (mouseState == "bunnycontext") {
mouseState = "idle";
Bunnies.hideStatus();
selBun = -1;
Level.rangeHLClear();
} else if (mouseState == "bunnymoving") {
mouseState = "idle";
Bunnies.hideStatus();
selBun = -1;
}
if (mouseState == "idle") {
selectBunny();
if ((selBun != -1) && ((Bunnies.bunState(selBun) == "idle") || (rangeupdate))) {
mouseState = "bunnyselect";
Bunnies.statusMenu(selBun);
pclick = -1;
showRange();
}
}
}
};
this.onMouseUp = function () {
if (mouseState == "bunnyselect") {
var _local1 = Level.getPath();
if (_local1 != null) {
Bunnies.givePath(selBun, _local1);
Level.pathHLClear();
Level.okPath();
Level.rangeHLClear();
mouseState = "bunnymoving";
} else {
Level.pathHLClear();
Level.okPath();
mouseState = "bunnycontext";
}
}
lclick = false;
};
function bunnyfact() {
var _local1 = new Array();
_local1.push("Bunnies are terrible at remembering birthdays. Don't expect any presents.");
_local1.push("Bunnies get confused when you pause. Why does the world stop? What's going on?");
_local1.push("Bunnies dislike broccoli, winter, and being eaten.");
_local1.push("Bunnies dislike genetically modified carrots. Gives them gas.");
_local1.push("Bunnies dislike the Leafs but go see all their games anyways.");
_local1.push("Bunnies have buns of steel. Or fluff. You know, one or the other.");
_local1.push("Bunnies consider rabbit feet to be a sign of extremely bad luck.");
_local1.push("Bunnies whine too much. I'm frozen in ice! Everything is trying to eat me! Whine, whine, whine.");
_local1.push("Bunnies are scared of plungers. Brings back bad memories.");
_local1.push("Bunnies ask random people for medical advice online. Bunnies have a high death rate.");
_local1.push("Bunnies have a highly sophisticated culture that they are too lazy to demonstrate.");
_local1.push("Bunnies think you need to pick up the pace.");
_local1.push("Bunnies think they taste something awful. Really, no joke. Not biased at all.");
_local1.push("Bunnies think gymnasts are just envious.");
_local1.push("Bunnies consider frogs to be amateurs.");
_local1.push("Bunnies have to play games with only a keyboard. That's what they get for eating the mice.");
_local1.push("Bunnies are too young to die. Yes, all of them.");
_local1.push("Bunnies are amazingly out of shape. Just look how much they have to rest, it's ridiculous.");
_local1.push("Bunnies waste time too much time thinking up silly facts instead of doing work.");
_local1.push("Bunnies have awful life insurance rates.");
_local1.push("Bunnies have no need for royalty. Doing nothing is something all bunnies do anyways.");
var _local2 = random(_local1.length);
return(String(_local1[_local2]));
}
function bunnyover() {
var _local1 = new Array();
_local1.push("The bunnies are proud of your valiant effort even though it failed.");
_local1.push("You tried so hard and got so far, but the bunnies are not convinced it really matters.");
_local1.push("Well, there's always next round. For you at least.");
_local1.push("Multiple bunnies were hurt in the playing of this game.");
_local1.push("There are many paths on this road of life. Most are not very good for bunnies.");
_local1.push("Don't feel bad, bunny heaven is quite nice.");
_local1.push("Bunnies just don't get no respect around here.");
_local1.push("Hey, at least you'll always have the memories.");
_local1.push("Take a deep breath. Count to ten. Don't hit the computer.");
_local1.push("It sure is a good thing bunnies multiply so quickly...");
var _local2 = random(_local1.length);
return(String(_local1[_local2]));
}
_global.tileCheck = function (i, j) {
return(Level.checkTile(i, j));
};
_global.tileHeight = function (i, j) {
return(Level.tileHeight(i, j));
};
_global.clearCheck = function (i, j) {
return(bunnyCheck(i, j) && (nmeCheck(i, j)));
};
_global.bunnyCheck = function (i, j) {
return(Bunnies.checkNode(i, j));
};
_global.nmeCheck = function (i, j) {
return(Beasts.checkNode(i, j));
};
_global.hopTrigger = function (i, j) {
return(Level.Trigger(i, j));
};
_global.squishTile = function (i, j) {
return(Level.squish(i, j));
};
_global.dazeTile = function (i, j) {
return(Beasts.daze(i, j));
};
_global.killTile = function (i, j) {
Level.squish(i, j);
return(Beasts.kill(i, j));
};
_global.hurtTile = function (i, j, dmg) {
return(Bunnies.hurt(i, j, dmg));
};
_global.soundAdjust = function (x) {
var _local1 = 100 - (Math.min(Math.abs(x - 324), 400) / 4);
return(_local1);
};
_global.panAdjust = function (x) {
var _local1 = (x - 324) / 3.24;
if (_local1 > 100) {
_local1 = 100;
} else if (_local1 < -100) {
_local1 = -100;
}
if ((pos == 0) && (_local1 == -100)) {
trace((("pos: " + x) + " Pan: ") + _local1);
}
return(_local1);
};
Frame 114
onEnterFrame = function () {
_global.music.stop();
_global.holder.removeMovieClip();
_global.music.removeMovieClip();
if (_global.nextscreen == "MainMenu") {
gotoAndStop (91);
} else if (_global.nextscreen == "HiScores") {
gotoAndStop (115);
} else if (_global.nextscreen == "FreePlay") {
gotoAndStop (113);
}
};
Frame 115
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
_global.inmenu = true;
_global.updateQuality();
oscr.removeMovieClip();
_global.levelcount = 1;
_global.diff = 3;
}
if (Key.isDown(17) && (Key.isDown(70))) {
_global.updateQuality();
}
};
Frame 116
onEnterFrame = function () {
if (_global.nextscreen == "MainMenu") {
gotoAndStop (91);
} else if (_global.nextscreen == "HiScores") {
gotoAndStop (115);
} else if (_global.nextscreen == "FreePlay") {
gotoAndStop (113);
}
};
Symbol 60 Button
on (release) {
_global.score = _parent.Tracker.total;
if (!_global.incha) {
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(Bunnies.buns[i]);
_global.sdata.buns[i].state = Bunnies.buns[i].state;
i++;
}
} else if (_global.curlevel == "CHA_cheapskate") {
_global.score = 1500;
} else {
_global.score = 0;
}
_global.nextscreen = "HiScores";
_global.quitter = "exit";
}
Symbol 63 MovieClip [bend_over] Frame 59
stop();
cont.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
Symbol 80 MovieClip Frame 3
gotoAndPlay ("normal");
Symbol 80 MovieClip Frame 5
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("urchin.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 80 MovieClip Frame 6
onEnterFrame = function () {
};
Symbol 234 MovieClip [bun_chomp_body] Frame 25
gotoAndPlay ("idle");
Symbol 234 MovieClip [bun_chomp_body] Frame 70
gotoAndPlay ("idle");
Symbol 234 MovieClip [bun_chomp_body] Frame 120
gotoAndPlay ("resting");
Symbol 234 MovieClip [bun_chomp_body] Frame 137
gotoAndPlay ("walk");
Symbol 234 MovieClip [bun_chomp_body] Frame 152
gotoAndPlay ("walk_up");
Symbol 234 MovieClip [bun_chomp_body] Frame 167
gotoAndPlay ("walk_down");
Symbol 234 MovieClip [bun_chomp_body] Frame 199
gotoAndPlay ("jump");
Symbol 234 MovieClip [bun_chomp_body] Frame 229
gotoAndPlay ("jump_up");
Symbol 234 MovieClip [bun_chomp_body] Frame 259
gotoAndPlay ("jump_down");
Symbol 234 MovieClip [bun_chomp_body] Frame 270
gotoAndPlay ("freeze");
Symbol 234 MovieClip [bun_chomp_body] Frame 290
gotoAndPlay ("ouch");
Symbol 234 MovieClip [bun_chomp_body] Frame 321
gotoAndPlay ("gone");
Symbol 234 MovieClip [bun_chomp_body] Frame 353
gotoAndPlay ("snack");
Symbol 234 MovieClip [bun_chomp_body] Frame 383
gotoAndPlay ("snack_up");
Symbol 234 MovieClip [bun_chomp_body] Frame 413
gotoAndPlay ("snack_down");
Symbol 311 MovieClip [bun_chomp] Frame 1
bbody.gotoAndPlay("pose");
Symbol 311 MovieClip [bun_chomp] Frame 5
bbody.gotoAndPlay("rejuv");
Symbol 311 MovieClip [bun_chomp] Frame 11
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("burp1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 12
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 25
gotoAndPlay ("idle");
Symbol 311 MovieClip [bun_chomp] Frame 30
bbody.gotoAndPlay("idle");
Symbol 311 MovieClip [bun_chomp] Frame 70
gotoAndPlay ("idle");
Symbol 311 MovieClip [bun_chomp] Frame 75
bbody.gotoAndPlay("resting");
Symbol 311 MovieClip [bun_chomp] Frame 97
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("exhale.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 98
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 120
gotoAndPlay ("resting");
Symbol 311 MovieClip [bun_chomp] Frame 125
bbody.gotoAndPlay("walk");
Symbol 311 MovieClip [bun_chomp] Frame 126
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("chomp_rolling.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 127
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 137
gotoAndPlay ("walk");
Symbol 311 MovieClip [bun_chomp] Frame 140
bbody.gotoAndPlay("walk_up");
Symbol 311 MovieClip [bun_chomp] Frame 141
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("chomp_rolling.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 142
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 152
gotoAndPlay ("walk_up");
Symbol 311 MovieClip [bun_chomp] Frame 155
bbody.gotoAndPlay("walk_down");
Symbol 311 MovieClip [bun_chomp] Frame 156
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("chomp_rolling.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 157
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 167
gotoAndPlay ("walk_down");
Symbol 311 MovieClip [bun_chomp] Frame 175
bbody.gotoAndPlay("jump");
Symbol 311 MovieClip [bun_chomp] Frame 177
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 178
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 180
bbody.gotoAndPlay("bounce");
Symbol 311 MovieClip [bun_chomp] Frame 197
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 198
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 199
gotoAndPlay ("jump");
Symbol 311 MovieClip [bun_chomp] Frame 205
bbody.gotoAndPlay("jump_up");
Symbol 311 MovieClip [bun_chomp] Frame 207
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 208
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 210
bbody.gotoAndPlay("bounce_up");
Symbol 311 MovieClip [bun_chomp] Frame 227
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 228
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 229
gotoAndPlay ("jump_up");
Symbol 311 MovieClip [bun_chomp] Frame 235
bbody.gotoAndPlay("jump_down");
Symbol 311 MovieClip [bun_chomp] Frame 237
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 238
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 240
bbody.gotoAndPlay("bounce_down");
Symbol 311 MovieClip [bun_chomp] Frame 257
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 258
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 259
gotoAndPlay ("jump_down");
Symbol 311 MovieClip [bun_chomp] Frame 265
bbody.gotoAndPlay("freeze");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("ice_freezing.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 266
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 270
gotoAndPlay ("freezeloop");
Symbol 311 MovieClip [bun_chomp] Frame 275
bbody.gotoAndPlay("ouch");
Symbol 311 MovieClip [bun_chomp] Frame 276
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
var _local4 = random(4) + 1;
_local3.attachSound(("ow" + _local4) + ".wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 277
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 290
gotoAndPlay ("ouch");
Symbol 311 MovieClip [bun_chomp] Frame 295
bbody.gotoAndPlay("die");
Symbol 311 MovieClip [bun_chomp] Frame 299
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("chomp_corroding.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 300
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 321
gotoAndPlay ("gone");
Symbol 311 MovieClip [bun_chomp] Frame 325
bbody.gotoAndPlay("snack");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("snack.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 326
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 353
gotoAndPlay ("snack");
Symbol 311 MovieClip [bun_chomp] Frame 355
bbody.gotoAndPlay("snack_up");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("snack.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 356
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 383
gotoAndPlay ("snack_up");
Symbol 311 MovieClip [bun_chomp] Frame 385
bbody.gotoAndPlay("snack_down");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("snack.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 311 MovieClip [bun_chomp] Frame 386
onEnterFrame = function () {
};
Symbol 311 MovieClip [bun_chomp] Frame 413
gotoAndPlay ("snack_down");
Symbol 448 MovieClip [bun_cobra_body] Frame 33
gotoAndPlay ("idle");
Symbol 448 MovieClip [bun_cobra_body] Frame 120
gotoAndPlay ("idle");
Symbol 448 MovieClip [bun_cobra_body] Frame 192
gotoAndPlay ("resting");
Symbol 448 MovieClip [bun_cobra_body] Frame 212
gotoAndPlay ("walk");
Symbol 448 MovieClip [bun_cobra_body] Frame 227
gotoAndPlay ("walk_down");
Symbol 448 MovieClip [bun_cobra_body] Frame 242
gotoAndPlay ("walk_up");
Symbol 448 MovieClip [bun_cobra_body] Frame 274
gotoAndPlay ("jump");
Symbol 448 MovieClip [bun_cobra_body] Frame 304
gotoAndPlay ("jump_down");
Symbol 448 MovieClip [bun_cobra_body] Frame 334
gotoAndPlay ("jump_up");
Symbol 448 MovieClip [bun_cobra_body] Frame 345
gotoAndPlay ("freeze");
Symbol 448 MovieClip [bun_cobra_body] Frame 365
gotoAndPlay ("ouch");
Symbol 448 MovieClip [bun_cobra_body] Frame 401
gotoAndPlay ("gone");
Symbol 448 MovieClip [bun_cobra_body] Frame 423
gotoAndPlay ("cloak");
Symbol 513 MovieClip [bun_cobra] Frame 1
bbody.gotoAndPlay("pose");
Symbol 513 MovieClip [bun_cobra] Frame 5
bbody.gotoAndPlay("rejuv");
Symbol 513 MovieClip [bun_cobra] Frame 33
gotoAndPlay ("idle");
Symbol 513 MovieClip [bun_cobra] Frame 40
bbody.gotoAndPlay("idle");
Symbol 513 MovieClip [bun_cobra] Frame 120
gotoAndPlay ("idle");
Symbol 513 MovieClip [bun_cobra] Frame 125
bbody.gotoAndPlay("resting");
Symbol 513 MovieClip [bun_cobra] Frame 160
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("exhale.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 161
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 192
gotoAndPlay ("resting");
Symbol 513 MovieClip [bun_cobra] Frame 200
bbody.gotoAndPlay("walk");
Symbol 513 MovieClip [bun_cobra] Frame 202
onEnterFrame = function () {
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
};
Symbol 513 MovieClip [bun_cobra] Frame 203
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 212
gotoAndPlay ("walk");
Symbol 513 MovieClip [bun_cobra] Frame 215
bbody.gotoAndPlay("walk_down");
Symbol 513 MovieClip [bun_cobra] Frame 217
onEnterFrame = function () {
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
};
Symbol 513 MovieClip [bun_cobra] Frame 218
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 227
gotoAndPlay ("walk_down");
Symbol 513 MovieClip [bun_cobra] Frame 230
bbody.gotoAndPlay("walk_up");
Symbol 513 MovieClip [bun_cobra] Frame 232
onEnterFrame = function () {
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
};
Symbol 513 MovieClip [bun_cobra] Frame 233
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 242
gotoAndPlay ("walk_up");
Symbol 513 MovieClip [bun_cobra] Frame 250
bbody.gotoAndPlay("jump");
Symbol 513 MovieClip [bun_cobra] Frame 253
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 254
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 272
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 273
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 274
gotoAndPlay ("jump");
Symbol 513 MovieClip [bun_cobra] Frame 280
bbody.gotoAndPlay("jump_down");
Symbol 513 MovieClip [bun_cobra] Frame 283
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 284
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 302
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 303
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 304
gotoAndPlay ("jump_down");
Symbol 513 MovieClip [bun_cobra] Frame 310
bbody.gotoAndPlay("jump_up");
Symbol 513 MovieClip [bun_cobra] Frame 312
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 313
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 332
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 333
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 334
gotoAndPlay ("jump_up");
Symbol 513 MovieClip [bun_cobra] Frame 340
bbody.gotoAndPlay("freeze");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("ice_freezing.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 341
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 345
gotoAndPlay ("freezeloop");
Symbol 513 MovieClip [bun_cobra] Frame 350
bbody.gotoAndPlay("ouch");
Symbol 513 MovieClip [bun_cobra] Frame 351
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
var _local4 = random(4) + 1;
_local3.attachSound(("ow" + _local4) + ".wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 352
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 365
gotoAndPlay ("ouch");
Symbol 513 MovieClip [bun_cobra] Frame 370
bbody.gotoAndPlay("die");
Symbol 513 MovieClip [bun_cobra] Frame 385
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("smoke1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 513 MovieClip [bun_cobra] Frame 386
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 401
gotoAndPlay ("gone");
Symbol 513 MovieClip [bun_cobra] Frame 410
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("smoke1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
bbody.gotoAndPlay("cloak");
Symbol 513 MovieClip [bun_cobra] Frame 411
onEnterFrame = function () {
};
Symbol 513 MovieClip [bun_cobra] Frame 423
gotoAndPlay ("cloak");
Symbol 674 MovieClip [bun_jet_body] Frame 24
gotoAndPlay ("idle");
Symbol 674 MovieClip [bun_jet_body] Frame 40
gotoAndPlay ("idle");
Symbol 674 MovieClip [bun_jet_body] Frame 77
gotoAndPlay ("resting");
Symbol 674 MovieClip [bun_jet_body] Frame 92
gotoAndPlay ("walk");
Symbol 674 MovieClip [bun_jet_body] Frame 107
gotoAndPlay ("walk_up");
Symbol 674 MovieClip [bun_jet_body] Frame 122
gotoAndPlay ("walk_down");
Symbol 674 MovieClip [bun_jet_body] Frame 145
gotoAndPlay ("jump");
Symbol 674 MovieClip [bun_jet_body] Frame 170
gotoAndPlay ("jump_up");
Symbol 674 MovieClip [bun_jet_body] Frame 195
gotoAndPlay ("jump_down");
Symbol 674 MovieClip [bun_jet_body] Frame 214
gotoAndPlay ("ouch");
Symbol 674 MovieClip [bun_jet_body] Frame 235
gotoAndPlay ("gone");
Symbol 674 MovieClip [bun_jet_body] Frame 245
gotoAndPlay ("freeze");
Symbol 674 MovieClip [bun_jet_body] Frame 284
gotoAndPlay ("launch");
Symbol 674 MovieClip [bun_jet_body] Frame 324
gotoAndPlay ("launch_up");
Symbol 674 MovieClip [bun_jet_body] Frame 364
gotoAndPlay ("launch_down");
Symbol 782 MovieClip [bun_wabbit_launchsmoke] Frame 13
stop();
Symbol 789 MovieClip [bun_jet] Frame 1
bbody.gotoAndPlay("pose");
Symbol 789 MovieClip [bun_jet] Frame 5
bbody.gotoAndPlay("rejuv");
Symbol 789 MovieClip [bun_jet] Frame 24
gotoAndPlay ("idle");
Symbol 789 MovieClip [bun_jet] Frame 25
bbody.gotoAndPlay("idle");
Symbol 789 MovieClip [bun_jet] Frame 40
gotoAndPlay ("idle");
Symbol 789 MovieClip [bun_jet] Frame 45
bbody.gotoAndPlay("resting");
Symbol 789 MovieClip [bun_jet] Frame 58
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("exhale.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 59
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 77
gotoAndPlay ("resting");
Symbol 789 MovieClip [bun_jet] Frame 80
bbody.gotoAndPlay("walk");
Symbol 789 MovieClip [bun_jet] Frame 82
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 83
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 92
gotoAndPlay ("walk");
Symbol 789 MovieClip [bun_jet] Frame 95
bbody.gotoAndPlay("walk_up");
Symbol 789 MovieClip [bun_jet] Frame 97
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 98
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 107
gotoAndPlay ("walk_up");
Symbol 789 MovieClip [bun_jet] Frame 110
bbody.gotoAndPlay("walk_down");
Symbol 789 MovieClip [bun_jet] Frame 112
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 113
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 122
gotoAndPlay ("walk_down");
Symbol 789 MovieClip [bun_jet] Frame 125
bbody.gotoAndPlay("jump");
Symbol 789 MovieClip [bun_jet] Frame 132
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jet_hop.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 133
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 143
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 144
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 145
gotoAndPlay ("jump");
Symbol 789 MovieClip [bun_jet] Frame 150
bbody.gotoAndPlay("jump_up");
Symbol 789 MovieClip [bun_jet] Frame 156
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jet_hop.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 157
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 168
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 169
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 170
gotoAndPlay ("jump_up");
Symbol 789 MovieClip [bun_jet] Frame 175
bbody.gotoAndPlay("jump_down");
Symbol 789 MovieClip [bun_jet] Frame 182
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jet_hop.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 183
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 193
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 194
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 195
gotoAndPlay ("jump_down");
Symbol 789 MovieClip [bun_jet] Frame 200
bbody.gotoAndPlay("ouch");
Symbol 789 MovieClip [bun_jet] Frame 203
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
var _local4 = random(4) + 1;
_local3.attachSound(("ow" + _local4) + ".wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 204
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 214
gotoAndPlay ("ouch");
Symbol 789 MovieClip [bun_jet] Frame 215
bbody.gotoAndPlay("die");
Symbol 789 MovieClip [bun_jet] Frame 220
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jet_burnup.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 221
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 235
gotoAndPlay ("gone");
Symbol 789 MovieClip [bun_jet] Frame 240
bbody.gotoAndPlay("freeze");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("ice_freezing.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 241
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 245
gotoAndPlay ("freezeloop");
Symbol 789 MovieClip [bun_jet] Frame 250
bbody.gotoAndPlay("launch");
Symbol 789 MovieClip [bun_jet] Frame 251
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jet_launch.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 252
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 284
gotoAndPlay ("launch");
Symbol 789 MovieClip [bun_jet] Frame 290
bbody.gotoAndPlay("launch_up");
Symbol 789 MovieClip [bun_jet] Frame 291
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jet_launch.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 292
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 324
gotoAndPlay ("launch_up");
Symbol 789 MovieClip [bun_jet] Frame 330
bbody.gotoAndPlay("launch_down");
Symbol 789 MovieClip [bun_jet] Frame 331
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jet_launch.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 789 MovieClip [bun_jet] Frame 332
onEnterFrame = function () {
};
Symbol 789 MovieClip [bun_jet] Frame 364
gotoAndPlay ("launch_down");
Symbol 962 MovieClip [bun_medic_body] Frame 22
gotoAndPlay ("idle");
Symbol 962 MovieClip [bun_medic_body] Frame 67
gotoAndPlay ("idle");
Symbol 962 MovieClip [bun_medic_body] Frame 115
gotoAndPlay ("resting");
Symbol 962 MovieClip [bun_medic_body] Frame 132
gotoAndPlay ("walk");
Symbol 962 MovieClip [bun_medic_body] Frame 147
gotoAndPlay ("walk_up");
Symbol 962 MovieClip [bun_medic_body] Frame 162
gotoAndPlay ("walk_down");
Symbol 962 MovieClip [bun_medic_body] Frame 194
gotoAndPlay ("jump");
Symbol 962 MovieClip [bun_medic_body] Frame 224
gotoAndPlay ("jump_up");
Symbol 962 MovieClip [bun_medic_body] Frame 254
gotoAndPlay ("jump_down");
Symbol 962 MovieClip [bun_medic_body] Frame 265
gotoAndPlay ("freeze");
Symbol 962 MovieClip [bun_medic_body] Frame 285
gotoAndPlay ("ouch");
Symbol 962 MovieClip [bun_medic_body] Frame 319
gotoAndPlay ("gone");
Symbol 962 MovieClip [bun_medic_body] Frame 348
gotoAndPlay ("mend");
Symbol 1025 MovieClip [bun_medic] Frame 1
bbody.gotoAndPlay("pose");
Symbol 1025 MovieClip [bun_medic] Frame 5
bbody.gotoAndPlay("rejuv");
Symbol 1025 MovieClip [bun_medic] Frame 22
gotoAndPlay ("idle");
Symbol 1025 MovieClip [bun_medic] Frame 25
bbody.gotoAndPlay("idle");
Symbol 1025 MovieClip [bun_medic] Frame 67
gotoAndPlay ("idle");
Symbol 1025 MovieClip [bun_medic] Frame 70
bbody.gotoAndPlay("resting");
Symbol 1025 MovieClip [bun_medic] Frame 102
var init = false;
onEnterFrame = function () {
if ((!init) && (random(3) == 0)) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("exhale.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 103
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 115
gotoAndPlay ("resting");
Symbol 1025 MovieClip [bun_medic] Frame 120
bbody.gotoAndPlay("walk");
Symbol 1025 MovieClip [bun_medic] Frame 121
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 122
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 132
gotoAndPlay ("walk");
Symbol 1025 MovieClip [bun_medic] Frame 135
bbody.gotoAndPlay("walk_up");
Symbol 1025 MovieClip [bun_medic] Frame 136
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 137
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 147
gotoAndPlay ("walk_up");
Symbol 1025 MovieClip [bun_medic] Frame 150
bbody.gotoAndPlay("walk_down");
Symbol 1025 MovieClip [bun_medic] Frame 151
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 152
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 162
gotoAndPlay ("walk_down");
Symbol 1025 MovieClip [bun_medic] Frame 170
bbody.gotoAndPlay("jump");
Symbol 1025 MovieClip [bun_medic] Frame 172
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 173
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 175
bbody.gotoAndPlay("bounce");
Symbol 1025 MovieClip [bun_medic] Frame 192
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 193
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 194
gotoAndPlay ("jump");
Symbol 1025 MovieClip [bun_medic] Frame 200
bbody.gotoAndPlay("jump_up");
Symbol 1025 MovieClip [bun_medic] Frame 202
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 203
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 205
bbody.gotoAndPlay("bounce_up");
Symbol 1025 MovieClip [bun_medic] Frame 222
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 223
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 224
gotoAndPlay ("jump_up");
Symbol 1025 MovieClip [bun_medic] Frame 230
bbody.gotoAndPlay("jump_down");
Symbol 1025 MovieClip [bun_medic] Frame 232
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 233
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 235
bbody.gotoAndPlay("bounce_down");
Symbol 1025 MovieClip [bun_medic] Frame 252
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 253
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 254
gotoAndPlay ("jump_down");
Symbol 1025 MovieClip [bun_medic] Frame 260
bbody.gotoAndPlay("freeze");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("ice_freezing.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 261
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 265
gotoAndPlay ("freezeloop");
Symbol 1025 MovieClip [bun_medic] Frame 270
bbody.gotoAndPlay("ouch");
Symbol 1025 MovieClip [bun_medic] Frame 271
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
var _local4 = random(4) + 1;
_local3.attachSound(("ow" + _local4) + ".wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 272
onEnterFrame = function () {
};
Symbol 1025 MovieClip [bun_medic] Frame 285
gotoAndPlay ("ouch");
Symbol 1025 MovieClip [bun_medic] Frame 291
bbody.gotoAndPlay("die");
Symbol 1025 MovieClip [bun_medic] Frame 319
gotoAndPlay ("gone");
Symbol 1025 MovieClip [bun_medic] Frame 330
bbody.gotoAndPlay("mend");
Symbol 1025 MovieClip [bun_medic] Frame 336
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("mend.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1025 MovieClip [bun_medic] Frame 348
gotoAndPlay ("mend");
Symbol 1131 MovieClip [bun_runner_body] Frame 27
gotoAndPlay ("idle");
Symbol 1131 MovieClip [bun_runner_body] Frame 42
gotoAndPlay ("idle");
Symbol 1131 MovieClip [bun_runner_body] Frame 53
var init = false;
onEnterFrame = function () {
if ((!init) && (random(10) == 0)) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("exhale.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1131 MovieClip [bun_runner_body] Frame 54
onEnterFrame = function () {
};
Symbol 1131 MovieClip [bun_runner_body] Frame 57
gotoAndPlay ("resting");
Symbol 1131 MovieClip [bun_runner_body] Frame 68
gotoAndPlay ("walk");
Symbol 1131 MovieClip [bun_runner_body] Frame 78
gotoAndPlay ("walk_up");
Symbol 1131 MovieClip [bun_runner_body] Frame 88
gotoAndPlay ("walk_down");
Symbol 1131 MovieClip [bun_runner_body] Frame 114
gotoAndPlay ("jump");
Symbol 1131 MovieClip [bun_runner_body] Frame 144
gotoAndPlay ("jump_up");
Symbol 1131 MovieClip [bun_runner_body] Frame 174
gotoAndPlay ("jump_down");
Symbol 1131 MovieClip [bun_runner_body] Frame 185
gotoAndPlay ("freeze");
Symbol 1131 MovieClip [bun_runner_body] Frame 205
gotoAndPlay ("ouch");
Symbol 1131 MovieClip [bun_runner_body] Frame 266
gotoAndPlay ("gone");
Symbol 1190 MovieClip [bun_runner] Frame 1
bbody.gotoAndPlay("pose");
Symbol 1190 MovieClip [bun_runner] Frame 5
bbody.gotoAndPlay("rejuv");
Symbol 1190 MovieClip [bun_runner] Frame 27
gotoAndPlay ("idle");
Symbol 1190 MovieClip [bun_runner] Frame 30
bbody.gotoAndPlay("idle");
Symbol 1190 MovieClip [bun_runner] Frame 42
gotoAndPlay ("idle");
Symbol 1190 MovieClip [bun_runner] Frame 45
bbody.gotoAndPlay("resting");
Symbol 1190 MovieClip [bun_runner] Frame 57
gotoAndPlay ("resting");
Symbol 1190 MovieClip [bun_runner] Frame 60
bbody.gotoAndPlay("walk");
Symbol 1190 MovieClip [bun_runner] Frame 62
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 63
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 68
gotoAndPlay ("walk");
Symbol 1190 MovieClip [bun_runner] Frame 70
bbody.gotoAndPlay("walk_up");
Symbol 1190 MovieClip [bun_runner] Frame 72
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 73
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 78
gotoAndPlay ("walk_up");
Symbol 1190 MovieClip [bun_runner] Frame 80
bbody.gotoAndPlay("walk_down");
Symbol 1190 MovieClip [bun_runner] Frame 82
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 83
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 88
gotoAndPlay ("walk_down");
Symbol 1190 MovieClip [bun_runner] Frame 90
bbody.gotoAndPlay("jump");
Symbol 1190 MovieClip [bun_runner] Frame 93
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 94
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 95
bbody.gotoAndPlay("bounce");
Symbol 1190 MovieClip [bun_runner] Frame 112
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 113
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 114
gotoAndPlay ("jump");
Symbol 1190 MovieClip [bun_runner] Frame 120
bbody.gotoAndPlay("jump_up");
Symbol 1190 MovieClip [bun_runner] Frame 123
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 124
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 125
bbody.gotoAndPlay("bounce_up");
Symbol 1190 MovieClip [bun_runner] Frame 142
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 143
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 144
gotoAndPlay ("jump_up");
Symbol 1190 MovieClip [bun_runner] Frame 150
bbody.gotoAndPlay("jump_down");
Symbol 1190 MovieClip [bun_runner] Frame 153
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 154
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 155
bbody.gotoAndPlay("bounce_down");
Symbol 1190 MovieClip [bun_runner] Frame 172
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 173
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 174
gotoAndPlay ("jump_down");
Symbol 1190 MovieClip [bun_runner] Frame 180
bbody.gotoAndPlay("freeze");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("ice_freezing.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 181
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 185
gotoAndPlay ("freezeloop");
Symbol 1190 MovieClip [bun_runner] Frame 190
bbody.gotoAndPlay("ouch");
Symbol 1190 MovieClip [bun_runner] Frame 191
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
var _local4 = random(4) + 1;
_local3.attachSound(("ow" + _local4) + ".wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 192
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 205
gotoAndPlay ("ouch");
Symbol 1190 MovieClip [bun_runner] Frame 210
bbody.gotoAndPlay("die");
Symbol 1190 MovieClip [bun_runner] Frame 246
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("runner_burst.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1190 MovieClip [bun_runner] Frame 247
onEnterFrame = function () {
};
Symbol 1190 MovieClip [bun_runner] Frame 265
bbody.gotoAndPlay("gone");
Symbol 1190 MovieClip [bun_runner] Frame 266
gotoAndPlay ("gone");
Symbol 1195 MovieClip [bun_wabbit_icon] Frame 2
gotoAndPlay ("ok");
Symbol 1195 MovieClip [bun_wabbit_icon] Frame 5
gotoAndPlay ("dead");
Symbol 1195 MovieClip [bun_wabbit_icon] Frame 8
gotoAndPlay ("frozen");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 17
gotoAndPlay ("idle");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 45
gotoAndPlay ("idle");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 98
gotoAndPlay ("resting");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 117
gotoAndPlay ("walk");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 132
gotoAndPlay ("walk_up");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 147
gotoAndPlay ("walk_down");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 179
gotoAndPlay ("jump");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 206
gotoAndPlay ("jump_up");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 233
gotoAndPlay ("jump_down");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 251
gotoAndPlay ("freeze");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 269
gotoAndPlay ("ouch");
Symbol 1273 MovieClip [bun_wabbit_body] Frame 305
gotoAndPlay ("gone");
Symbol 1344 MovieClip [bun_wabbit] Frame 1
bbody.gotoAndPlay("pose");
Symbol 1344 MovieClip [bun_wabbit] Frame 5
bbody.gotoAndPlay("rejuv");
Symbol 1344 MovieClip [bun_wabbit] Frame 17
gotoAndPlay ("idle");
Symbol 1344 MovieClip [bun_wabbit] Frame 20
bbody.gotoAndPlay("idle");
Symbol 1344 MovieClip [bun_wabbit] Frame 45
gotoAndPlay ("idle");
Symbol 1344 MovieClip [bun_wabbit] Frame 50
bbody.gotoAndPlay("resting");
Symbol 1344 MovieClip [bun_wabbit] Frame 71
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("exhale.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 72
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 98
gotoAndPlay ("resting");
Symbol 1344 MovieClip [bun_wabbit] Frame 105
bbody.gotoAndPlay("walk");
Symbol 1344 MovieClip [bun_wabbit] Frame 107
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 108
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 117
gotoAndPlay ("walk");
Symbol 1344 MovieClip [bun_wabbit] Frame 120
bbody.gotoAndPlay("walk_up");
Symbol 1344 MovieClip [bun_wabbit] Frame 122
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 123
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 132
gotoAndPlay ("walk_up");
Symbol 1344 MovieClip [bun_wabbit] Frame 135
bbody.gotoAndPlay("walk_down");
Symbol 1344 MovieClip [bun_wabbit] Frame 137
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("step_sand1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 138
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 147
gotoAndPlay ("walk_down");
Symbol 1344 MovieClip [bun_wabbit] Frame 155
bbody.gotoAndPlay("jump");
Symbol 1344 MovieClip [bun_wabbit] Frame 158
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 159
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 160
bbody.gotoAndPlay("bounce");
Symbol 1344 MovieClip [bun_wabbit] Frame 177
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 178
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 179
gotoAndPlay ("jump");
Symbol 1344 MovieClip [bun_wabbit] Frame 182
bbody.gotoAndPlay("jump_up");
Symbol 1344 MovieClip [bun_wabbit] Frame 185
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 186
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 187
bbody.gotoAndPlay("bounce_up");
Symbol 1344 MovieClip [bun_wabbit] Frame 204
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 205
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 206
gotoAndPlay ("jump_up");
Symbol 1344 MovieClip [bun_wabbit] Frame 209
bbody.gotoAndPlay("jump_down");
Symbol 1344 MovieClip [bun_wabbit] Frame 212
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("jump1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 213
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 214
bbody.gotoAndPlay("bounce_down");
Symbol 1344 MovieClip [bun_wabbit] Frame 231
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("thud1.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 232
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 233
gotoAndPlay ("jump_down");
Symbol 1344 MovieClip [bun_wabbit] Frame 241
bbody.gotoAndPlay("freeze");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("ice_freezing.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 242
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 251
gotoAndPlay ("freezeloop");
Symbol 1344 MovieClip [bun_wabbit] Frame 255
bbody.gotoAndPlay("ouch");
Symbol 1344 MovieClip [bun_wabbit] Frame 260
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
var _local4 = random(4) + 1;
_local3.attachSound(("ow" + _local4) + ".wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1344 MovieClip [bun_wabbit] Frame 261
onEnterFrame = function () {
};
Symbol 1344 MovieClip [bun_wabbit] Frame 269
gotoAndPlay ("ouch");
Symbol 1344 MovieClip [bun_wabbit] Frame 270
bbody.gotoAndPlay("die");
Symbol 1344 MovieClip [bun_wabbit] Frame 305
gotoAndPlay ("gone");
bbody.gotoAndPlay("gone");
Symbol 1346 MovieClip [bun_carrot] Frame 2
gotoAndPlay ("gone");
Symbol 1366 MovieClip [boulder_ball] Frame 2
gotoAndPlay ("idle");
Symbol 1366 MovieClip [boulder_ball] Frame 26
gotoAndPlay ("roll");
Symbol 1366 MovieClip [boulder_ball] Frame 30
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("rock_crash.wav");
_local3.setVolume(15 + _global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1366 MovieClip [boulder_ball] Frame 31
onEnterFrame = function () {
};
Symbol 1366 MovieClip [boulder_ball] Frame 37
gotoAndPlay ("gone");
Symbol 1375 MovieClip Frame 1
onEnterFrame = function () {
var _local4 = new Sound(this);
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
};
Symbol 1408 MovieClip [buzzer] Frame 9
gotoAndPlay ("idle_down");
Symbol 1408 MovieClip [buzzer] Frame 18
gotoAndPlay ("idle_up");
Symbol 1408 MovieClip [buzzer] Frame 19
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("buzzer_attack.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1408 MovieClip [buzzer] Frame 20
onEnterFrame = function () {
};
Symbol 1408 MovieClip [buzzer] Frame 31
gotoAndPlay ("idle_down");
Symbol 1408 MovieClip [buzzer] Frame 43
gotoAndPlay ("gone");
Symbol 1492 MovieClip [crunch] Frame 24
gotoAndPlay ("idle");
Symbol 1492 MovieClip [crunch] Frame 62
gotoAndPlay ("wait");
Symbol 1492 MovieClip [crunch] Frame 88
gotoAndPlay ("walk");
Symbol 1492 MovieClip [crunch] Frame 114
gotoAndPlay ("walk_up");
Symbol 1492 MovieClip [crunch] Frame 139
gotoAndPlay ("walk_down");
Symbol 1492 MovieClip [crunch] Frame 150
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("crunch.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1492 MovieClip [crunch] Frame 151
onEnterFrame = function () {
};
Symbol 1492 MovieClip [crunch] Frame 171
gotoAndPlay ("attack");
Symbol 1492 MovieClip [crunch] Frame 180
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("crunch.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1492 MovieClip [crunch] Frame 181
onEnterFrame = function () {
};
Symbol 1492 MovieClip [crunch] Frame 201
gotoAndPlay ("attack_up");
Symbol 1492 MovieClip [crunch] Frame 210
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("crunch.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1492 MovieClip [crunch] Frame 211
onEnterFrame = function () {
};
Symbol 1492 MovieClip [crunch] Frame 231
gotoAndPlay ("attack_down");
Symbol 1492 MovieClip [crunch] Frame 235
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local3 = new Sound(this);
_local3.attachSound("dizzy.wav");
_local3.setVolume(_global.soundAdjust(this._x));
_local3.setPan(_global.panAdjust(this._x));
_local3.start(0, 1);
}
};
Symbol 1492 MovieClip [crunch] Frame 236
onEnterFrame = function () {
};
Symbol 1492 MovieClip [crunch] Frame 249
gotoAndPlay ("daze");
Symbol 1492 MovieClip [crunch] Frame 260
gotoAndPlay ("gone");
Symbol 1501 MovieClip [bun_9square_heal] Frame 20
this.removeMovieClip();
Symbol 1503 MovieClip [bun_healfx] Frame 41
this.removeMovieClip();
Symbol 1508 MovieClip [nme_daze_fx] Frame 11
gotoAndPlay ("gone");
Symbol 1593 MovieClip [tile_grass_river] Frame 2
gotoAndPlay ("normal");
Symbol 1593 MovieClip [tile_grass_river] Frame 23
gotoAndPlay ("done");
Symbol 2904 MovieClip [__Packages.Bunny] Frame 0
class Bunny extends MovieClip
{
var state, penalty, ID, x, y, depth, bclass, cloaked, bname, mc, ico, r, g, b, maxmoves, moves, maxcarrots, carrots, z, startz, zoffset, leftyflip, halo, recover, movedir, moveFrame, movepath, targetHeight, pstate;
function Bunny (bunclass, i, j, id, d) {
super();
state = "updateme";
penalty = 0;
ID = id;
x = i;
y = j;
depth = d;
bclass = bunclass;
cloaked = false;
if (depth == -1) {
bname = "empty";
return;
}
if (random(2) == 0) {
bname = bunnyname(true);
} else {
bname = bunnyname(false);
}
newColour();
switch (bclass) {
case "Wabbit" :
mc = _root.attachMovie("bun_wabbit", "bunny" + ID, 100101 + d);
ico = _root.attachMovie("bun_wabbit_icon", "bunnyicon" + ID, 105010 + ID);
ico._x = (ico._y = -36);
var _local6 = new Color(mc.bbody);
_local6.fillTint(r, g, b, 80);
var _local7 = new Color(ico);
_local7.fillTint(r, g, b, 80);
maxmoves = (moves = 4);
maxcarrots = (carrots = 3);
break;
case "Chomp" :
mc = _root.attachMovie("bun_chomp", "bunny" + ID, 100101 + d);
ico = _root.attachMovie("bun_wabbit_icon", "bunnyicon" + ID, 105010 + ID);
ico._x = (ico._y = -36);
_local6 = new Color(mc.bbody);
_local6.fillTint(r, g, b, 80);
_local7 = new Color(ico);
_local7.fillTint(r, g, b, 80);
maxmoves = (moves = 5);
maxcarrots = (carrots = 5);
break;
case "Runner" :
mc = _root.attachMovie("bun_runner", "bunny" + ID, 100101 + d);
ico = _root.attachMovie("bun_wabbit_icon", "bunnyicon" + ID, 105010 + ID);
ico._x = (ico._y = -36);
_local6 = new Color(mc.bbody);
_local6.fillTint(r, g, b, 80);
_local7 = new Color(ico);
_local7.fillTint(r, g, b, 80);
maxmoves = (moves = 7);
maxcarrots = (carrots = 4);
break;
case "Cobra" :
mc = _root.attachMovie("bun_cobra", "bunny" + ID, 100101 + d);
ico = _root.attachMovie("bun_wabbit_icon", "bunnyicon" + ID, 105010 + ID);
ico._x = (ico._y = -36);
_local6 = new Color(mc.bbody);
_local6.fillTint(r, g, b, 80);
_local7 = new Color(ico);
_local7.fillTint(r, g, b, 80);
maxmoves = (moves = 6);
maxcarrots = (carrots = 4);
break;
case "Jet" :
mc = _root.attachMovie("bun_jet", "bunny" + ID, 100101 + d);
ico = _root.attachMovie("bun_wabbit_icon", "bunnyicon" + ID, 105010 + ID);
ico._x = (ico._y = -36);
_local6 = new Color(mc.bbody);
_local6.fillTint(r, g, b, 80);
_local7 = new Color(ico);
_local7.fillTint(r, g, b, 80);
maxmoves = (moves = 5);
maxcarrots = (carrots = 4);
break;
case "Medic" :
mc = _root.attachMovie("bun_medic", "bunny" + ID, 100101 + d);
ico = _root.attachMovie("bun_wabbit_icon", "bunnyicon" + ID, 105010 + ID);
ico._x = (ico._y = -36);
_local6 = new Color(mc.bbody);
_local6.fillTint(r, g, b, 80);
_local7 = new Color(ico);
_local7.fillTint(r, g, b, 80);
maxmoves = (moves = 5);
maxcarrots = (carrots = 4);
}
mc._x = x * 36;
mc._y = 72 + (y * 36);
mc.cacheAsBitmap = (mc.bbody.cacheAsBitmap = (ico.cacheAsBitmap = true));
var _local9 = x;
var _local8 = y;
var _local10 = -1;
z = (startz = _global.tileHeight(x, y));
zoffset = 0;
leftyflip = false;
halo = false;
recover = 0;
}
function Bounce(gtfo, amt, type) {
_level0.Level.tile(x, y).mc.spring.gotoAndPlay("spring");
if (movedir == "right") {
if (((_global.tileCheck(x + 2, y) != "noaccess") && (_global.bunnyCheck(x + 2, y))) && (_level0.Level.tile(x + 1, y).val != "block")) {
hop(movedir);
mc.gotoAndPlay("bounce");
moveFrame = moveFrame - 5;
penalty = penalty - 14;
} else {
state = "idle";
}
} else if (movedir == "left") {
if (((_global.tileCheck(x - 2, y) != "noaccess") && (_global.bunnyCheck(x - 2, y))) && (_level0.Level.tile(x - 1, y).val != "block")) {
hop(movedir);
mc.gotoAndPlay("bounce_left");
moveFrame = moveFrame - 5;
penalty = penalty - 14;
} else {
state = "idle";
}
} else if (movedir == "down") {
if (((_global.tileCheck(x, y + 2) != "noaccess") && (_global.bunnyCheck(x, y + 2))) && (_level0.Level.tile(x, y + 1).val != "block")) {
hop(movedir);
mc.gotoAndPlay("bounce_down");
moveFrame = moveFrame - 5;
penalty = penalty - 14;
} else {
state = "idle";
}
} else if (movedir == "up") {
if (((_global.tileCheck(x, y - 2) != "noaccess") && (_global.bunnyCheck(x, y - 2))) && (_level0.Level.tile(x, y - 1).val != "block")) {
hop(movedir);
mc.gotoAndPlay("bounce_up");
moveFrame = moveFrame - 5;
penalty = penalty - 14;
} else {
state = "idle";
}
}
BounceAway(gtfo);
if (state == "hopping") {
_root.Score(amt, type, mc._x, mc._y, leftyflip);
}
return(false);
}
function BounceAway(gtfo) {
if (gtfo) {
if (((state == "idle") && (_global.tileCheck(x + 1, y) != "noaccess")) && (_global.clearCheck(x + 1, y))) {
if (_global.tileHeight(x + 1, y) == z) {
delete movepath;
movepath = new Array();
movepath.push(new PathNode(x + 1, y, 0, 0, null));
state = "moving";
nextMove();
}
}
if (((state == "idle") && (_global.tileCheck(x, y - 1) != "noaccess")) && (_global.clearCheck(x, y - 1))) {
if (_global.tileHeight(x, y - 1) == z) {
delete movepath;
movepath = new Array();
movepath.push(new PathNode(x, y - 1, 0, 0, null));
state = "moving";
nextMove();
}
}
if (((state == "idle") && (_global.tileCheck(x, y + 1) != "noaccess")) && (_global.clearCheck(x, y + 1))) {
if (_global.tileHeight(x, y + 1) == z) {
delete movepath;
movepath = new Array();
movepath.push(new PathNode(x, y + 1, 0, 0, null));
state = "moving";
nextMove();
}
}
if (((state == "idle") && (_global.tileCheck(x - 1, y) != "noaccess")) && (_global.clearCheck(x - 1, y))) {
if (_global.tileHeight(x - 1, y) == z) {
delete movepath;
movepath = new Array();
movepath.push(new PathNode(x - 1, y, 0, 0, null));
state = "moving";
nextMove();
}
}
mc._y = ((72 + (y * 36)) - z) + zoffset;
return(true);
}
if ((state == "idle") && (!gtfo)) {
nextMove();
}
}
function changeClass(g) {
bclass = g;
var _local4 = mc._x;
var _local3 = mc._y;
if (g == "Wabbit") {
mc.mcswap("bun_wabbit");
maxmoves = (moves = 4);
maxcarrots = (carrots = 3);
} else if (g == "Runner") {
mc.mcswap("bun_runner");
maxmoves = maxmoves + 3;
maxcarrots = maxcarrots + 1;
} else if (g == "Medic") {
mc.mcswap("bun_medic");
maxmoves = maxmoves + 1;
maxcarrots = maxcarrots + 1;
} else if (g == "Jet") {
mc.mcswap("bun_jet");
maxmoves = maxmoves + 1;
maxcarrots = maxcarrots + 1;
} else if (g == "Cobra") {
mc.mcswap("bun_cobra");
maxmoves = maxmoves + 2;
maxcarrots = maxcarrots + 2;
} else if (g == "Chomp") {
mc.mcswap("bun_chomp");
maxmoves = maxmoves + 1;
maxcarrots = maxcarrots + 2;
}
moves = maxmoves;
carrots = maxcarrots;
mc._x = _local4;
mc._y = _local3;
if (leftyflip) {
mc._xscale = -100;
}
reColour();
}
function cloak() {
if (!cloaked) {
mc.gotoAndPlay("cloak");
state = "cloaking";
cloaked = true;
moveFrame = 13;
penalty = penalty + 15;
} else {
var _local2 = new Color(mc);
_local2.setTint(125, 125, 125, 0);
mc.gotoAndPlay("uncloak");
mc._alpha = 100;
state = "idle";
cloaked = false;
penalty = penalty + 5;
}
}
function faceMovement() {
if (leftyflip) {
mc._xscale = 100;
mc._x = mc._x - 36;
leftyflip = false;
}
if (movepath[movepath.length - 1].i > x) {
mc.gotoAndPlay("walk");
movedir = "right";
} else if (movepath[movepath.length - 1].i < x) {
mc.gotoAndPlay("walk");
movedir = "left";
mc._xscale = -100;
mc._x = mc._x + 36;
leftyflip = true;
} else if (movepath[movepath.length - 1].j < y) {
mc.gotoAndPlay("walk_up");
movedir = "up";
} else if (movepath[movepath.length - 1].j > y) {
mc.gotoAndPlay("walk_down");
movedir = "down";
}
moves = moves - 1;
penalty = penalty + 18;
if (bclass == "Runner") {
penalty = penalty - 3;
}
if ((movedir == "down") && (z > 0)) {
_global.depths[depth] = false;
depth = _root.Bunnies.findDepth(y * 250);
mc.swapDepths(100101 + depth);
}
}
function finish() {
mc.gotoAndPlay("walk");
state = "finished";
moveFrame = 48;
_root.Score(5000, "finish", mc._x, mc._y, leftyflip);
}
function followPath(p) {
if (movepath != null) {
delete movepath;
}
movepath = new Array();
movepath = p.slice();
state = "moving";
faceMovement();
moveFrame = 11;
if (bclass == "Runner") {
moveFrame = 8;
}
}
function freeze() {
if (((((state == "frozen") || (state == "dead")) || (state == "dying")) || (state == "immune")) || (state == "reserve")) {
return(undefined);
}
state = "frozen";
mc.gotoAndPlay("freeze");
mc._alpha = 100;
var _local4 = new Color(mc);
_local4.setTint(125, 125, 125, 0);
ico.gotoAndPlay("frozen");
maxmoves = 0;
moves = 0;
carrots = 0;
maxcarrots = 0;
_root.Score(1000, "penal", mc._x, mc._y, leftyflip);
_global.deaths = _global.deaths + 1;
}
function getCarrot() {
_root.upgrade(ID);
if (_level0.Level.tile(x + 1, y).target == "carrot") {
_level0.Level.tile(x, y).target = (_level0.Level.tile(x + 1, y).target = "walker");
_level0.Level.tile(x, y).tiledesc = (_level0.Level.tile(x + 1, y).tiledesc = "This golden carrot has already been used.");
_level0.Level.tile(x, y).mcb.gotoAndPlay("gone");
} else if (_level0.Level.tile(x - 1, y).target == "carrot") {
_level0.Level.tile(x, y).target = (_level0.Level.tile(x - 1, y).target = "walker");
_level0.Level.tile(x, y).tiledesc = (_level0.Level.tile(x - 1, y).tiledesc = "This golden carrot has already been used.");
_level0.Level.tile(x - 1, y).mcb.gotoAndPlay("gone");
} else {
_level0.Level.tile(x, y).target = "walker";
_level0.Level.tile(x, y).tiledesc = "This golden carrot has already been used.";
_level0.Level.tile(x, y).mc.gotoAndPlay("gone");
}
}
function ghop(dir) {
if (cloaked) {
cloaked = false;
mc._alpha = 100;
var _local4 = new Color(mc);
_local4.setTint(125, 125, 125, 0);
}
state = "launching";
movedir = dir;
moveFrame = 35;
if (leftyflip) {
mc._xscale = 100;
mc._x = mc._x - 36;
leftyflip = false;
}
if (dir == "right") {
mc.gotoAndPlay("launch");
mc.bbody.gotoAndPlay("launch");
x = x + 3;
} else if (dir == "left") {
mc.gotoAndPlay("launch");
mc.bbody.gotoAndPlay("launch");
x = x - 3;
mc._xscale = -100;
mc._x = mc._x + 36;
leftyflip = true;
} else if (dir == "down") {
mc.gotoAndPlay("launch_down");
mc.bbody.gotoAndPlay("launch_down");
y = y + 3;
} else if (dir == "up") {
mc.gotoAndPlay("launch_up");
mc.bbody.gotoAndPlay("launch_up");
y = y - 3;
}
targetHeight = _global.tileHeight(x, y);
moves = 0;
penalty = penalty + 18;
if (penalty <= 60) {
penalty = 60;
}
}
function hop(dir) {
if (cloaked) {
cloaked = false;
mc._alpha = 100;
var _local4 = new Color(mc);
_local4.setTint(125, 125, 125, 0);
}
state = "hopping";
movedir = dir;
moveFrame = 24;
penalty = penalty + 24;
if (leftyflip) {
mc._xscale = 100;
mc._x = mc._x - 36;
leftyflip = false;
}
if (dir == "right") {
mc.gotoAndPlay("jump");
x = x + 2;
} else if (dir == "left") {
mc.gotoAndPlay("jump");
x = x - 2;
mc._xscale = -100;
mc._x = mc._x + 36;
leftyflip = true;
} else if (dir == "down") {
mc.gotoAndPlay("jump_down");
y = y + 2;
} else if (dir == "up") {
mc.gotoAndPlay("jump_up");
y = y - 2;
}
targetHeight = _global.tileHeight(x, y);
}
function icoUpdate() {
if (state != "moving") {
mc._y = ((72 + (y * 36)) - z) + zoffset;
if (state == "hopping") {
if (movedir == "up") {
mc._y = mc._y + 72;
} else if (movedir == "down") {
mc._y = mc._y - 72;
}
} else if (state == "launching") {
if (movedir == "up") {
mc._y = mc._y + 108;
} else if (movedir == "down") {
mc._y = mc._y - 108;
}
}
}
var _local2 = (mc._x + _level0.Level.pos) * 648;
ico._x = _local2 / (_level0.Level.getEnd() - _level0.Level.getStart());
ico._y = 18 + (y * 2.5);
ico._visible = true;
}
function loseCarrot(dmg) {
if (dmg == undefined) {
dmg = 1;
}
var _local5 = mc.attachMovie("bun_carrot", "bcarrot" + ID, 200);
_local5.gotoAndPlay("throw");
_local5.cacheAsBitmap = true;
carrots--;
if (dmg == 2) {
var _local4 = mc.attachMovie("bun_carrot", "bcarrot2" + ID, 201);
_local4.gotoAndPlay("throw");
_local4.cacheAsBitmap = true;
_local4._y = _local4._y - 18;
carrots--;
}
if (carrots > 0) {
mc.gotoAndPlay("ouch");
pstate = state;
state = "hurting";
moveFrame = 15;
_root.Score(100 * dmg, "penal", mc._x, mc._y, leftyflip);
} else {
mc.gotoAndPlay("die");
state = "dying";
_root.Score(2500, "penal", mc._x, mc._y, leftyflip);
_global.deaths = _global.deaths + 1;
moveFrame = 100;
}
}
function mend() {
var _local3 = mc.attachMovie("bun_healfx", "bhealfx" + ID, 101);
_local3.cacheAsBitmap = true;
if ((state == "resting") || (state == "mending")) {
var _local4 = new Color(mc["bhealfx" + ID]);
_local4.setTint(250, 400, 200, 100);
}
if (carrots < maxcarrots) {
carrots++;
_root.Score(100, "spec", mc._x, mc._y, leftyflip);
}
}
function nextMove() {
if (((movepath != undefined) && (movepath.length != 0)) && (_global.clearCheck(movepath[movepath.length - 1].i, movepath[movepath.length - 1].j))) {
moveFrame = 11;
faceMovement();
if (bclass == "Runner") {
moveFrame = 8;
}
} else {
delete movepath;
movepath = new Array();
}
if (movepath.length == 0) {
moveFrame = -1;
if (moves <= 0) {
rest();
} else {
mc.gotoAndPlay("idle");
state = "idle";
}
}
}
function rest() {
mc.gotoAndPlay("resting");
state = "resting";
moveFrame = penalty;
penalty = 0;
moves = 0;
if (!cloaked) {
var _local2 = new Color(mc);
_local2.setTint(50, 50, 50, 50);
} else {
var _local2 = new Color(mc);
_local2.setTint(0, 0, 0, 250);
}
}
function snack(dir) {
state = "snacking";
moveFrame = 28;
penalty = penalty + 36;
if (penalty <= 96) {
penalty = 96;
}
if (leftyflip) {
mc._xscale = 100;
mc._x = mc._x - 36;
leftyflip = false;
}
if (dir == "right") {
mc.gotoAndPlay("snack");
} else if (dir == "left") {
mc.gotoAndPlay("snack");
mc._xscale = -100;
mc._x = mc._x + 36;
leftyflip = true;
} else if (dir == "up") {
mc.gotoAndPlay("snack_up");
} else if (dir == "down") {
mc.gotoAndPlay("snack_down");
}
movedir = dir;
}
function stateUpdate() {
if (halo && (_global.haloHL == "true")) {
var _local9 = new flash.filters.GlowFilter(16777215, 0.75, 16, 16, 1);
mc.filters = [_local9];
} else if (cloaked) {
var _local9 = new flash.filters.GlowFilter(0, 0, 0, 0, 0);
mc.filters = [_local9];
} else {
mc.filters = [];
}
var _local4 = false;
if (state == "idle") {
recover++;
if ((recover > 120) && (moves < maxmoves)) {
moves++;
recover = 0;
_global.updateRange();
}
} else {
recover = 0;
}
if (state == "resting") {
moveFrame--;
if (moveFrame <= 0) {
moves = maxmoves;
state = "idle";
mc.gotoAndPlay("rejuv");
if (!cloaked) {
var _local8 = new Color(mc);
_local8.setTint(125, 125, 125, 0);
} else {
var _local8 = new Color(mc);
_local8.setTint(100, 100, 100, 100);
}
}
} else if (state == "finished") {
moveFrame--;
if (moveFrame == 12) {
mc.stop();
} else if (moveFrame > 0) {
mc._x = mc._x + 3;
} else if (moveFrame == 0) {
mc.removeMovieClip();
}
} else if (state == "hurting") {
moveFrame--;
if (moveFrame <= 0) {
if (moves <= 0) {
rest();
moveFrame = 1;
pstate = "idle";
return(true);
}
if (pstate == "moving") {
state = pstate;
pstate = "idle";
nextMove();
} else {
state = "idle";
pstate = "idle";
mc.gotoAndPlay("idle");
}
}
} else if (state == "snacking") {
moveFrame--;
if (moveFrame == 22) {
var _local5 = false;
if (movedir == "right") {
if (_global.killTile(x + 1, y)) {
_local5 = true;
}
} else if (movedir == "left") {
if (_global.killTile(x - 1, y)) {
_local5 = true;
}
} else if (movedir == "up") {
if (_global.killTile(x, y - 1)) {
_local5 = true;
}
} else if (movedir == "down") {
if (_global.killTile(x, y + 1)) {
_local5 = true;
}
}
if (_local5) {
_root.Score(5000, "spec", mc._x, mc._y, leftyflip);
}
} else if (moveFrame == 0) {
rest();
return(true);
}
} else if (state == "moving") {
if (bclass == "Runner") {
if (movedir == "right") {
mc._x = mc._x + 4;
} else if (movedir == "left") {
mc._x = mc._x - 4;
} else if (movedir == "up") {
mc._y = mc._y - 4;
} else if (movedir == "down") {
mc._y = mc._y + 4;
}
} else if (movedir == "right") {
mc._x = mc._x + 3;
} else if (movedir == "left") {
mc._x = mc._x - 3;
} else if (movedir == "up") {
mc._y = mc._y - 3;
} else if (movedir == "down") {
mc._y = mc._y + 3;
}
if (moveFrame == 2) {
_global.squishTile(movepath[movepath.length - 1].i, movepath[movepath.length - 1].j);
moveFrame--;
} else if (moveFrame == 0) {
x = movepath[movepath.length - 1].i;
y = movepath[movepath.length - 1].j;
_local4 = true;
movepath.pop();
if (x > (_level0.Level.cols - 3)) {
finish();
return(true);
}
var _local7 = _global.tileCheck(x, y);
if ((_local7 == "trap") && (bclass != "Cobra")) {
loseCarrot();
return(_local4);
}
if ((_local7 == "carrot") && (bclass == "Wabbit")) {
getCarrot();
}
nextMove();
} else {
moveFrame--;
}
} else if (state == "hopping") {
moveFrame--;
if (moveFrame < 18) {
if (movedir == "right") {
mc._x = mc._x + 4.23529411764706;
} else if (movedir == "left") {
mc._x = mc._x - 4.23529411764706;
} else if (movedir == "up") {
zoffset = zoffset - 4.23529411764706;
} else if (movedir == "down") {
zoffset = zoffset + 4.23529411764706;
}
var _local6 = 17 - moveFrame;
var _local10 = ((targetHeight - startz) - -289) / 17;
z = (startz + (_local10 * _local6)) + ((-2 * (_local6 * _local6)) / 2);
}
if (moveFrame == 10) {
_local4 = true;
} else if (moveFrame == 1) {
_global.squishTile(x, y);
} else if (moveFrame == 0) {
z = (startz = Math.round(z));
zoffset = 0;
if (x > (_level0.Level.cols - 3)) {
finish();
return(true);
}
_global.hopTrigger(x, y);
if (_global.dazeTile(x, y)) {
return(Bounce(true, 1000, "crush"));
}
var _local7 = _global.tileCheck(x, y);
if ((_local7 == "carrot") && (bclass == "Wabbit")) {
getCarrot();
}
if ((_local7 == "trap") && (bclass != "Cobra")) {
loseCarrot();
return(_local4);
}
if (_local7 == "bouncer") {
return(Bounce(false, 250, "bounce"));
}
if (moves <= 0) {
rest();
} else {
mc.gotoAndPlay("idle");
state = "idle";
}
_local4 = true;
}
} else if (state == "launching") {
moveFrame--;
if (movedir == "right") {
mc._x = mc._x + 3.17647058823529;
mc.smoke._x = mc.smoke._x - 3.17647058823529;
} else if (movedir == "left") {
mc._x = mc._x - 3.17647058823529;
mc.smoke._x = mc.smoke._x - 3.17647058823529;
} else if (movedir == "up") {
zoffset = zoffset - 3.17647058823529;
mc.smoke._y = mc.smoke._y + 3.17647058823529;
} else if (movedir == "down") {
zoffset = zoffset + 3.17647058823529;
mc.smoke._y = mc.smoke._y - 3.17647058823529;
}
var _local6 = 34 - moveFrame;
var _local10 = ((targetHeight - startz) - -1156) / 34;
z = (startz + (_local10 * _local6)) + ((-1.5 * (_local6 * _local6)) / 1.5);
mc.smoke._y = ((-startz) + z) - zoffset;
if (moveFrame == 10) {
_local4 = true;
} else if (moveFrame == 1) {
_global.squishTile(x, y);
} else if (moveFrame == 0) {
z = (startz = Math.round(z));
zoffset = 0;
if (x > (_level0.Level.cols - 3)) {
finish();
return(true);
}
_global.hopTrigger(x, y);
if (_global.dazeTile(x, y)) {
return(Bounce(true, 1000, "crush"));
}
var _local7 = _global.tileCheck(x, y);
if ((_local7 == "carrot") && (bclass == "Wabbit")) {
getCarrot();
}
if ((_local7 == "trap") && (bclass != "Cobra")) {
loseCarrot();
return(_local4);
}
if (_local7 == "bouncer") {
return(Bounce(false, 250, "bounce"));
}
rest();
_local4 = true;
}
} else if (state == "cloaking") {
moveFrame--;
if (moveFrame == 5) {
mc._alpha = 50;
var _local8 = new Color(mc);
_local8.setTint(100, 100, 100, 100);
moveFrame--;
} else if (moveFrame == 0) {
moves = moves - 1;
if (moves <= 0) {
rest();
} else {
mc.gotoAndPlay("idle");
state = "idle";
}
}
} else if (state == "mending") {
moveFrame--;
if (moveFrame == 0) {
rest();
}
} else if (state == "dying") {
moveFrame--;
if (moveFrame <= 0) {
mc.removeMovieClip();
_global.depths[depth] = false;
state = "dead";
x = -1;
y = -1;
ico.gotoAndPlay("dead");
}
} else if (state == "updateme") {
_local4 = true;
state = "idle";
}
icoUpdate();
return(_local4);
}
function loadBunny(bun) {
r = bun.r;
g = bun.g;
b = bun.b;
bname = bun.bname;
bclass = bun.bclass;
reColour();
}
function loadMC() {
switch (bclass) {
case "Wabbit" :
mc = _root.attachMovie("bun_wabbit", "bunny" + ID, 100101 + depth);
break;
case "Chomp" :
mc = _root.attachMovie("bun_chomp", "bunny" + ID, 100101 + depth);
break;
case "Runner" :
mc = _root.attachMovie("bun_runner", "bunny" + ID, 100101 + depth);
break;
case "Cobra" :
mc = _root.attachMovie("bun_cobra", "bunny" + ID, 100101 + depth);
break;
case "Jet" :
mc = _root.attachMovie("bun_jet", "bunny" + ID, 100101 + depth);
break;
case "Medic" :
mc = _root.attachMovie("bun_medic", "bunny" + ID, 100101 + depth);
}
ico = _root.attachMovie("bun_wabbit_icon", "bunnyicon" + ID, 105010 + ID);
reColour();
}
function newColour() {
r = random(100) + 100;
g = random(100) + 100;
b = random(100) + 100;
}
function reColour() {
var _local2 = new Color(mc.bbody);
_local2.fillTint(r, g, b, 80);
var _local3 = new Color(ico);
_local3.fillTint(r, g, b, 80);
}
function trace2() {
trace("-= Bunny Trace2 =-");
trace("Name: " + bname);
trace("Class: " + bclass);
trace("r: " + r);
trace("g: " + g);
trace("b: " + b);
}
function bunnyname(male) {
var _local1 = new Array();
if (male) {
_local1.push("Andy");
_local1.push("Andre");
_local1.push("Bob");
_local1.push("Bubba");
_local1.push("Butch");
_local1.push("Bud");
_local1.push("Bobble");
_local1.push("Bleach");
_local1.push("Chip");
_local1.push("Chester");
_local1.push("Chief");
_local1.push("Derran");
_local1.push("Dave");
_local1.push("Dude");
_local1.push("Drew");
_local1.push("Eddy");
_local1.push("Francis");
_local1.push("Fuzz");
_local1.push("Fooze");
_local1.push("Flop");
_local1.push("Gord");
_local1.push("Gruff");
_local1.push("Garth");
_local1.push("Gus");
_local1.push("Harry");
_local1.push("Haze");
_local1.push("Huff");
_local1.push("Ivan");
_local1.push("Itch");
_local1.push("Joe");
_local1.push("Jumpy");
_local1.push("Jay");
_local1.push("J.J.");
_local1.push("King");
_local1.push("Kirby");
_local1.push("Kenny");
_local1.push("Kicks");
_local1.push("Lloyd");
_local1.push("Lazy");
_local1.push("Liam");
_local1.push("Manny");
_local1.push("Marv");
_local1.push("Mickey");
_local1.push("Mikey");
_local1.push("M.C.");
_local1.push("Ned");
_local1.push("Ooze");
_local1.push("Oof");
_local1.push("Pete");
_local1.push("Presley");
_local1.push("Pit");
_local1.push("Pixel");
_local1.push("Papa");
_local1.push("Prince");
_local1.push("Quill");
_local1.push("Roger");
_local1.push("Rod");
_local1.push("Red");
_local1.push("Sammy");
_local1.push("Spot");
_local1.push("Stan");
_local1.push("Sleepy");
_local1.push("Speck");
_local1.push("Sly");
_local1.push("Trevor");
_local1.push("Terry");
_local1.push("Tate");
_local1.push("Uwe");
_local1.push("Wonder");
_local1.push("Wish");
_local1.push("Wazza");
_local1.push("Xavier");
_local1.push("Zack");
_local1.push("Zell");
_local1.push("Zit");
_local1.push("Zoom");
_local1.push("Zip");
} else {
_local1.push("Amy");
_local1.push("Angy");
_local1.push("Angel");
_local1.push("Bell");
_local1.push("Brook");
_local1.push("Bubble");
_local1.push("Bluff");
_local1.push("Brat");
_local1.push("Chie");
_local1.push("Carry");
_local1.push("Cammy");
_local1.push("Cate");
_local1.push("Dame");
_local1.push("Ditz");
_local1.push("Dizzy");
_local1.push("Dandruff");
_local1.push("Eve");
_local1.push("Eva");
_local1.push("Elsie");
_local1.push("Fluff");
_local1.push("Fran");
_local1.push("Frump");
_local1.push("Gee");
_local1.push("Heather");
_local1.push("Haley");
_local1.push("Ivy");
_local1.push("Jen");
_local1.push("Jennifer");
_local1.push("Jewel");
_local1.push("Joan");
_local1.push("Jene");
_local1.push("Kairi");
_local1.push("Katt");
_local1.push("Lisa");
_local1.push("Liz");
_local1.push("Lynn");
_local1.push("Lara");
_local1.push("Lana");
_local1.push("Macy");
_local1.push("Mie");
_local1.push("Mama");
_local1.push("Nancy");
_local1.push("Nami");
_local1.push("Priss");
_local1.push("Pixie");
_local1.push("Queen");
_local1.push("Riko");
_local1.push("Rita");
_local1.push("Stacy");
_local1.push("Sara");
_local1.push("Samus");
_local1.push("Sprite");
_local1.push("Tracy");
_local1.push("Trish");
_local1.push("Tear");
_local1.push("Uma");
_local1.push("Wifty");
_local1.push("Woozey");
_local1.push("Wobble");
}
var _local2 = random(_local1.length);
return(String(_local1[_local2]));
}
}
Symbol 2905 MovieClip [__Packages.PathNode] Frame 0
class PathNode
{
var i, j, g, h, parent;
function PathNode (i, j, g, h, parent) {
this.i = i;
this.j = j;
this.g = g;
this.h = h;
this.parent = parent;
}
}
Symbol 2906 MovieClip [__Packages.SaveData] Frame 0
class SaveData
{
var active, fname, level, buns;
function SaveData () {
active = false;
fname = "default save data name";
level = "default level name";
buns = new Array();
}
}
Symbol 2907 MovieClip [__Packages.BunnyHandler] Frame 0
class BunnyHandler
{
var size, rows, buns, bcontext, bstatus, paused, pos;
function BunnyHandler (width, rows) {
size = width;
this.rows = rows;
buns = new Array();
bcontext = _root.attachMovie("bend_bun_context", "buncontext", 105081);
bcontext._visible = false;
bcontext.base._alpha = 80;
bstatus = _root.attachMovie("bend_bun_status", "bunstatus", 105080);
bstatus._visible = false;
bstatus.base._alpha = 80;
bstatus._x = 16;
bstatus._y = 333;
bcontext.cacheAsBitmap = (bcontext.base.cacheAsBitmap = true);
bstatus.cacheAsBitmap = (bstatus.base.cacheAsBitmap = true);
paused = false;
}
function allDead() {
var _local2 = 0;
while (_local2 < buns.length) {
if ((((buns[_local2].state != "dead") && (buns[_local2].state != "dying")) && (buns[_local2].state != "frozen")) && (buns[_local2].state != "reserve")) {
return(false);
}
_local2++;
}
return(true);
}
function allDone() {
var _local3 = false;
var _local2 = 0;
while (_local2 < buns.length) {
if (((((buns[_local2].state != "finished") && (buns[_local2].state != "dead")) && (buns[_local2].state != "dying")) && (buns[_local2].state != "frozen")) && (buns[_local2].state != "reserve")) {
return(false);
}
if (buns[_local2].state == "finished") {
_local3 = true;
}
_local2++;
}
return(_local3);
}
function anyDead() {
var _local2 = 0;
while (_local2 < buns.length) {
if (((buns[_local2].state == "dead") || (buns[_local2].state == "dying")) || (buns[_local2].state == "frozen")) {
return(true);
}
_local2++;
}
return(false);
}
function bunState(i) {
return(buns[i].state);
}
function bunX(i) {
return(buns[i].x);
}
function bunY(i) {
return(buns[i].y);
}
function checkNode(x, y) {
var _local2 = 0;
while (_local2 < buns.length) {
if (((buns[_local2].x == x) && (buns[_local2].y == y)) && (((buns[_local2].state == "idle") || (buns[_local2].state == "resting")) || (buns[_local2].state == "cloaking"))) {
return(false);
}
_local2++;
}
return(true);
}
function clearAll() {
var _local2 = 0;
while (_local2 < buns.length) {
buns[_local2].mc.removeMovieClip();
buns[_local2].ico.removeMovieClip();
buns[_local2].state = "immune";
_local2++;
}
while (buns.length > 0) {
buns.pop();
}
bcontext.removeMovieClip();
bstatus.removeMovieClip();
}
function collideTest(clip) {
var _local2 = 0;
while (_local2 < buns.length) {
if (buns[_local2].mc.bbody.hitTest(clip)) {
return(true);
}
_local2++;
}
return(false);
}
function findDepth(d) {
var _local2 = d + 249;
while (_local2 >= d) {
if (!_global.depths[_local2]) {
_global.depths[_local2] = true;
return(_local2);
}
_local2--;
}
}
function findMidDepth(d) {
var _local2 = d + 149;
while (_local2 >= d) {
if (!_global.depths[_local2]) {
_global.depths[_local2] = true;
return(_local2);
}
_local2--;
}
}
function getCoords() {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < buns.length) {
if ((((((buns[_local2].state != "dead") && (buns[_local2].state != "dying")) && (buns[_local2].state != "frozen")) && (buns[_local2].state != "finished")) && (buns[_local2].state != "immune")) && (buns[_local2].cloaked == false)) {
_local3.push(buns[_local2].x);
_local3.push(buns[_local2].y);
_local3.push(buns[_local2].z);
}
_local2++;
}
return(_local3.slice());
}
function getNearest() {
var _local3 = 9999999 /* 0x98967F */;
var _local2 = 0;
while (_local2 < buns.length) {
if ((((((buns[_local2].state != "dead") && (buns[_local2].state != "dying")) && (buns[_local2].state != "frozen")) && (buns[_local2].state != "finished")) && (buns[_local2].state != "immune")) && (buns[_local2].x < _local3)) {
_local3 = buns[_local2].x;
}
_local2++;
}
return(_local3);
}
function getAverage() {
var _local4 = 0;
var _local3 = 0;
var _local2 = 0;
while (_local2 < buns.length) {
if (((((buns[_local2].state != "dead") && (buns[_local2].state != "frozen")) && (buns[_local2].state != "dying")) && (buns[_local2].state != "finished")) && (buns[_local2].state != "immune")) {
_local4 = _local4 + buns[_local2].x;
_local3++;
}
_local2++;
}
if (_local3 == 0) {
return(0);
}
return(_local4 / _local3);
}
function givePath(i, p) {
buns[i].followPath(p);
}
function grabBunny() {
var _local3 = -9999;
var _local4 = -1;
var _local2 = 0;
while (_local2 < buns.length) {
if (buns[_local2].mc.hitTest(_xmouse, _ymouse, false)) {
if (buns[_local2].mc._y > _local3) {
_local3 = buns[_local2].mc._y;
_local4 = _local2;
}
}
_local2++;
}
return(_local4);
}
function halo() {
var _local3 = grabBunny();
var _local2 = 0;
while (_local2 < buns.length) {
if (_local2 == _local3) {
buns[_local2].halo = true;
} else {
buns[_local2].halo = false;
}
_local2++;
}
}
function hideContext() {
bcontext._visible = false;
}
function hideStatus() {
bstatus._visible = false;
}
function hop(i, dir) {
buns[i].hop(dir);
buns[i].moves = buns[i].moves - 2;
buns[i].penalty = buns[i].penalty + 18;
}
function hurt(i, j, dmg) {
var _local2 = 0;
while (_local2 < buns.length) {
if (((buns[_local2].x == i) && (buns[_local2].y == j)) && (((buns[_local2].state == "idle") || (buns[_local2].state == "resting")) || (buns[_local2].state == "cloaking"))) {
buns[_local2].loseCarrot(dmg);
}
_local2++;
}
}
function mend(index) {
var _local4 = buns[index].x;
var _local3 = buns[index].y;
buns[index].penalty = buns[index].penalty + 72;
if (buns[index].penalty < 125) {
buns[index].penalty = 125;
}
buns[index].mc.gotoAndPlay("mend");
buns[index].state = "mending";
buns[index].moveFrame = 17;
buns[index].mc.attachMovie("bun_9square_heal", "9heal", 25);
var _local6 = new flash.filters.GlowFilter(11206570, 100, 15, 15, 2, 1, false, false);
buns[index].mc["9heal"].filters = [_local6];
var _local7 = new Color(buns[index].mc["9heal"]);
_local7.setTint(250, 400, 200, 100);
var _local2 = 0;
while (_local2 < buns.length) {
if ((((buns[_local2].x > (_local4 - 2)) && (buns[_local2].x < (_local4 + 2))) && (buns[_local2].y > (_local3 - 2))) && (buns[_local2].y < (_local3 + 2))) {
buns[_local2].mend();
}
_local2++;
}
}
function resumeAll() {
var _local2 = 0;
while (_local2 < buns.length) {
buns[_local2].mc.play();
buns[_local2].mc.bbody.play();
paused = false;
_local2++;
}
}
function scrollBunnies(p) {
if (pos == p) {
return(undefined);
}
var _local3 = p - pos;
pos = p;
var _local2 = 0;
while (_local2 < buns.length) {
buns[_local2].mc._x = buns[_local2].mc._x - _local3;
_local2++;
}
bcontext._x = bcontext._x - _local3;
}
function snack(i, dir) {
buns[i].snack(dir);
}
function spawnBunny(bunclass, column, row) {
buns.push(new Bunny(bunclass, column, row, buns.length, findDepth((row - 1) * 250)));
}
function statusMenu(index) {
if (((buns[index].state == "frozen") || (buns[index].state == "dead")) || (buns[index].state == "dying")) {
bstatus._visible = false;
hideContext();
return(undefined);
}
bstatus._visible = true;
bstatus.text_name = buns[index].bname;
bstatus.text_class = buns[index].bclass;
bstatus.text_state = buns[index].state;
var _local2 = buns[index].moves;
_local2 = 100 - (14.3 * _local2);
bstatus.mcover._xscale = _local2;
_local2 = buns[index].carrots;
_local2 = 100 - (20 * _local2);
bstatus.ccover._xscale = _local2;
}
function stopAll() {
var _local2 = 0;
while (_local2 < buns.length) {
buns[_local2].mc.stop();
buns[_local2].mc.bbody.stop();
paused = true;
_local2++;
}
}
function update() {
if (paused) {
return(undefined);
}
var _local3 = 0;
while (_local3 < buns.length) {
if (buns[_local3].stateUpdate()) {
buns[_local3].mc._x = (buns[_local3].x * 36) - pos;
if (buns[_local3].leftyflip) {
buns[_local3].mc._x = buns[_local3].mc._x + 36;
}
if (buns[_local3].state == "hopping") {
if (buns[_local3].movedir == "right") {
buns[_local3].mc._x = buns[_local3].mc._x - 42.35;
} else if (buns[_local3].movedir == "left") {
buns[_local3].mc._x = buns[_local3].mc._x + 42.35;
}
} else if (buns[_local3].state == "launching") {
if (buns[_local3].movedir == "right") {
buns[_local3].mc._x = buns[_local3].mc._x - 31.76;
} else if (buns[_local3].movedir == "left") {
buns[_local3].mc._x = buns[_local3].mc._x + 31.76;
}
}
if (((buns[_local3].movedir != "down") || (buns[_local3].state == "hopping")) || (buns[_local3].state == "launching")) {
var _local4 = findDepth((buns[_local3].y - 1) * 250);
if (_local4 != buns[_local3].depth) {
_global.depths[buns[_local3].depth] = false;
buns[_local3].mc.swapDepths(100101 + _local4);
buns[_local3].depth = _local4;
}
}
}
if ((buns[_local3].mc._x < -72) || (buns[_local3].mc._x > 720)) {
buns[_local3].mc._visible = false;
} else {
buns[_local3].mc._visible = true;
}
_local3++;
}
}
}
Symbol 2908 MovieClip [__Packages.AIHandler] Frame 0
class AIHandler
{
var nme, size, rows, paused, pos;
function AIHandler (width, height) {
nme = new Array();
size = width;
rows = height;
paused = false;
}
function checkNode(x, y) {
var _local2 = 0;
while (_local2 < nme.length) {
if (((((nme[_local2].x == x) && (nme[_local2].y == y)) && (nme[_local2].blocker == true)) && (nme[_local2].state != "moving")) && (nme[_local2].state != "dead")) {
return(false);
}
_local2++;
}
return(true);
}
function clearAll() {
var _local2 = 0;
while (_local2 < nme.length) {
nme[_local2].mc.removeMovieClip();
_local2++;
}
}
function daze(x, y) {
var _local2 = 0;
while (_local2 < nme.length) {
if (((nme[_local2].x == x) && (nme[_local2].y == y)) && (nme[_local2].state != "dead")) {
nme[_local2].daze();
return(true);
}
_local2++;
}
return(false);
}
function kill(x, y) {
var _local2 = 0;
while (_local2 < nme.length) {
if (((nme[_local2].x == x) && (nme[_local2].y == y)) && (nme[_local2].state != "dead")) {
nme[_local2].die();
return(true);
}
_local2++;
}
return(false);
}
function scrollAI(p) {
if (pos == p) {
return(undefined);
}
var _local3 = p - pos;
pos = p;
var _local2 = 0;
while (_local2 < nme.length) {
nme[_local2].mc._x = nme[_local2].mc._x - _local3;
_local2++;
}
}
function spawn(type, freq) {
var _local7 = freq + (25 - _global.diff);
freq = freq * 1.5;
var _local4 = 10;
while (_local4 < (_level0.Level.cols - 4)) {
var _local3 = 1;
while (_local3 < _level0.Level.rows) {
if (random(freq) == 0) {
if (((_global.tileCheck(_local4, _local3) != "noaccess") && (_global.clearCheck(_local4, _local3))) && (_global.tileCheck(_local4, _local3) != "trigger")) {
if (type == "crunch") {
nme.push(new Crunch(type, _local4, _local3, nme.length));
} else if (type == "boulder") {
nme.push(new Boulder(type, _local4, _local3, nme.length));
} else if (type == "buzzer") {
nme.push(new Buzzer(type, _local4, 1, nme.length));
}
freq = freq + _local7;
}
} else {
freq--;
}
_local3++;
}
_local4++;
}
}
function stopAll() {
if (!paused) {
paused = true;
var _local2 = 0;
while (_local2 < nme.length) {
nme[_local2].mc.stop();
_local2++;
}
}
}
function resumeAll() {
if (paused) {
paused = false;
var _local2 = 0;
while (_local2 < nme.length) {
nme[_local2].mc.play();
_local2++;
}
}
}
function update() {
if (paused) {
return(undefined);
}
var _local2 = 0;
while (_local2 < nme.length) {
nme[_local2].update();
_local2++;
}
}
}
Symbol 2909 MovieClip [__Packages.AI] Frame 0
class AI extends MovieClip
{
var ID, x, y, d, mc, z, movepath, penalty, moveFrame, blocker;
function AI (clip, i, j, id) {
super();
ID = id;
x = i;
y = j;
d = 100101 + _root.Bunnies.findMidDepth((y - 1) * 250);
mc = _root.attachMovie(clip, clip + ID, d);
mc._x = x * 36;
mc._y = 72 + (y * 36);
z = _global.tileHeight(x, y);
mc._y = mc._y - z;
movepath = new Array();
penalty = 0;
moveFrame = 0;
blocker = false;
}
}
Symbol 2910 MovieClip [__Packages.Crunch] Frame 0
class Crunch extends AI
{
var moveFrame, state, mc, bx, by, blocker, movedir, x, y, z, penalty, leftyflip, pstate, pframe, movepath, d;
function Crunch (clip, i, j, id) {
super(clip, i, j, id);
moveFrame = 72 - random(36);
state = "resting";
mc.gotoAndPlay("wait");
bx = (by = -1);
mc.cacheAsBitmap;
blocker = true;
}
function attack() {
var _local3 = _level0.Bunnies.getCoords();
movedir = "none";
var _local2 = 0;
while (_local2 < _local3.length) {
if (((_local3[_local2] == (x + 1)) && (_local3[_local2 + 1] == y)) && (_local3[_local2 + 2] == z)) {
movedir = "right";
break;
}
if (((_local3[_local2] == (x - 1)) && (_local3[_local2 + 1] == y)) && (_local3[_local2 + 2] == z)) {
movedir = "left";
break;
}
if (((_local3[_local2] == x) && (_local3[_local2 + 1] == (y + 1))) && (_local3[_local2 + 2] == z)) {
movedir = "down";
break;
}
if (((_local3[_local2] == x) && (_local3[_local2 + 1] == (y - 1))) && (_local3[_local2 + 2] == z)) {
movedir = "up";
break;
}
movedir = "none";
_local2 = _local2 + 3;
}
if (movedir != "none") {
chomp();
return(true);
}
return(false);
}
function chomp() {
moveFrame = 26;
state = "chomping";
penalty = penalty + 108;
if (leftyflip && (movedir == "right")) {
mc._x = mc._x - 36;
mc._xscale = 100;
leftyflip = false;
}
if ((!leftyflip) && (movedir == "left")) {
mc._x = mc._x + 36;
mc._xscale = -100;
leftyflip = true;
}
if ((movedir == "right") || (movedir == "left")) {
mc.gotoAndPlay("attack");
} else if (movedir == "up") {
mc.gotoAndPlay("attack_up");
} else if (movedir == "down") {
mc.gotoAndPlay("attack_down");
}
}
function daze() {
if (state != "dazed") {
pstate = state;
state = "dazed";
pframe = moveFrame;
}
penalty = penalty + 180;
moveFrame = 126 + penalty;
penalty = 0;
mc.gotoAndPlay("daze");
mc.attachMovie("nme_daze_fx", "nmefx", 100);
mc.attachMovie("nme_daze_starwhirl", "stars", 50);
var _local3 = new flash.filters.GlowFilter(16777164, 0.5, 5, 5, 2, 3);
mc.stars.filters = [_local3];
var _local4 = new Color(mc);
_local4.setTint(255, 255, 255, 15);
_root.kongregateStats.submit("EnemiesStunned", 1);
}
function die() {
state = "dying";
mc.gotoAndPlay("die");
moveFrame = 5;
}
function faceMovement() {
if (movepath[movepath.length - 1].i > x) {
if (leftyflip) {
mc._xscale = 100;
mc._x = mc._x - 36;
leftyflip = false;
}
mc.gotoAndPlay("walk");
movedir = "right";
} else if (movepath[movepath.length - 1].i < x) {
if (!leftyflip) {
mc._xscale = -100;
mc._x = mc._x + 36;
leftyflip = true;
}
mc.gotoAndPlay("walk");
movedir = "left";
} else if (movepath[movepath.length - 1].j < y) {
mc.gotoAndPlay("walk_up");
movedir = "up";
} else if (movepath[movepath.length - 1].j > y) {
mc.gotoAndPlay("walk_down");
movedir = "down";
}
_global.depths[d] = false;
if ((movedir == "down") && (z > 0)) {
d = 100101 + _root.Bunnies.findMidDepth(y * 250);
} else {
d = 100101 + _root.Bunnies.findMidDepth((y - 1) * 250);
}
mc.swapDepths(d);
}
function idle() {
state = "idle";
mc.gotoAndPlay("idle");
}
function nextMove() {
var _local3 = movepath.length - 1;
if ((movepath.length > 0) && (_global.clearCheck(movepath[_local3].i, movepath[_local3].j))) {
state = "moving";
faceMovement();
moveFrame = 24;
} else if (!attack()) {
rest();
}
}
function rest() {
state = "resting";
mc.gotoAndPlay("wait");
moveFrame = 126 + penalty;
penalty = 0;
var _local2 = new Color(mc);
_local2.setTint(0, 0, 0, 25);
}
function spotBunnies() {
bx = 999999 /* 0x0F423F */;
by = 999999 /* 0x0F423F */;
var _local2 = _level0.Bunnies.getCoords();
if (leftyflip) {
var _local3 = 0;
while (_local3 < _local2.length) {
if ((_local2[_local3] <= x) && (_local2[_local3 + 2] == z)) {
if ((Math.abs(_local2[_local3] - x) + Math.abs(_local2[_local3 + 1] - y)) <= 8) {
if ((Math.abs(_local2[_local3] - x) + Math.abs(_local2[_local3 + 1] - y)) < (Math.abs(bx - x) + Math.abs(by - y))) {
bx = _local2[_local3];
by = _local2[_local3 + 1];
}
}
}
_local3 = _local3 + 3;
}
} else {
var _local3 = 0;
while (_local3 < _local2.length) {
if ((_local2[_local3] >= x) && (_local2[_local3 + 2] == z)) {
if ((Math.abs(_local2[_local3] - x) + Math.abs(_local2[_local3 + 1] - y)) <= 8) {
if ((Math.abs(_local2[_local3] - x) + Math.abs(_local2[_local3 + 1] - y)) < (Math.abs(bx - x) + Math.abs(by - y))) {
bx = _local2[_local3];
by = _local2[_local3 + 1];
}
}
}
_local3 = _local3 + 2;
}
}
if ((bx != 999999) && (by != 999999)) {
return(true);
}
return(false);
}
function update() {
if (state == "dead") {
return(false);
}
if ((mc._x < -36) || (mc._x > 684)) {
mc._visible = false;
} else {
mc._visible = true;
}
if (state == "resting") {
moveFrame--;
if (moveFrame == 0) {
idle();
var _local6 = new Color(mc);
_local6.setTint(0, 0, 0, 0);
}
} else if (state == "dazed") {
moveFrame--;
if (moveFrame == 0) {
state = pstate;
moveFrame = pframe;
if (state == "moving") {
mc.gotoAndPlay("walk");
_local6.setTint(0, 0, 0, 0);
} else if (state == "resting") {
rest();
}
mc.stars.removeMovieClip();
}
} else if (state == "dying") {
moveFrame--;
if (moveFrame == 0) {
mc.removeMovieClip();
state = "dead";
}
} else if (state == "idle") {
if (moveFrame > 0) {
moveFrame--;
return(undefined);
}
if (attack()) {
return(undefined);
}
if (!spotBunnies()) {
var _local7;
var _local3 = 0;
var _local5 = -1;
while (((_local5 < 0) || (_local5 > (_level0.Level.cols - 1))) && (_local3 < 20)) {
_local5 = x + (random(5) - 2);
_local3++;
}
_local3 = 0;
var _local4 = -1;
while (((_local4 < 1) || (_local4 > (_level0.Level.rows - 1))) && (_local3 < 20)) {
_local4 = y + (random(5) - 2);
_local3++;
}
_local7 = _level0.aStarPath(x, y, _local5, _local4, 2, z, "all");
if (_local7.length > 0) {
if (movepath != null) {
delete movepath;
}
movepath = new Array();
movepath = _local7.slice();
movepath.pop();
nextMove();
}
} else {
var _local7 = _level0.aStarPath(x, y, bx, by, 8, z, "nme");
if (_local7.length > 0) {
if (movepath != null) {
delete movepath;
}
movepath = new Array();
movepath = _local7.slice();
movepath.shift();
movepath.pop();
while (movepath.length > 3) {
movepath.shift();
}
nextMove();
} else {
moveFrame = 24;
}
}
} else if (state == "moving") {
moveFrame--;
if (movedir == "right") {
mc._x = mc._x + 1.5;
} else if (movedir == "left") {
mc._x = mc._x - 1.5;
} else if (movedir == "up") {
mc._y = mc._y - 1.5;
} else if (movedir == "down") {
mc._y = mc._y + 1.5;
}
if (moveFrame == 12) {
x = movepath[movepath.length - 1].i;
y = movepath[movepath.length - 1].j;
} else if (moveFrame == 0) {
movepath.pop();
nextMove();
}
} else if (state == "chomping") {
moveFrame--;
if (moveFrame == 16) {
if (movedir == "right") {
_global.hurtTile(x + 1, y, 2);
} else if (movedir == "left") {
_global.hurtTile(x - 1, y, 2);
} else if (movedir == "up") {
_global.hurtTile(x, y - 1, 2);
} else if (movedir == "down") {
_global.hurtTile(x, y + 1, 2);
}
}
if (moveFrame == 0) {
rest();
}
}
}
}
Symbol 2911 MovieClip [__Packages.Boulder] Frame 0
class Boulder extends AI
{
var state, mc, newHeight, z, zoffset, leftyflip, blocker, movedir, moveFrame, y;
function Boulder (clip, i, j, id) {
super(clip, i, j, id);
state = "resting";
mc.gotoAndPlay("wait");
newHeight = z;
zoffset = 0;
if (random(5) == 0) {
leftyflip = true;
mc._xscale = -100;
mc._x = mc._x + 36;
}
mc.cacheAsBitmap;
mc.ball.cacheAsBitmap;
blocker = true;
}
function daze() {
state = "moving";
if (leftyflip) {
movedir = "left";
} else {
movedir = "right";
}
mc.ball.gotoAndPlay("roll");
}
function smash() {
mc.ball.gotoAndPlay("smash");
state = "breaking";
moveFrame = 8;
}
function update() {
if ((mc._x < -36) || (mc._x > 684)) {
mc._visible = false;
} else {
mc._visible = true;
}
if ((mc.ball._x < -36) || (mc.ball._x > 684)) {
mc.ball.visible = false;
} else if (state != "dead") {
mc.ball.visible = true;
}
if ((state == "dead") || (state == "resting")) {
} else if (state == "moving") {
mc.ball._x = mc.ball._x + 6;
var _local3 = -1;
if (!leftyflip) {
_local3 = ((mc.ball._x + mc._x) + _level0.Level.pos) + 16;
} else if (leftyflip) {
_local3 = ((((-mc.ball._x) + mc._x) - 36) + _level0.Level.pos) + 16;
}
_local3 = _local3 / (36 * _level0.Level.cols);
_local3 = _local3 * _level0.Level.cols;
_local3 = Math.floor(_local3);
newHeight = _global.tileHeight(_local3, y);
if ((newHeight > z) || ((_global.tileCheck(_local3, y) == "noaccess") && (newHeight == z))) {
smash();
return(undefined);
}
if (!_global.nmeCheck(_local3, y)) {
smash();
_global.dazeTile(_local3, y);
return(undefined);
}
if (!_global.bunnyCheck(_local3, y)) {
smash();
_global.hurtTile(_local3, y);
return(undefined);
}
if (z > newHeight) {
zoffset = zoffset + 3;
z = z - zoffset;
} else {
zoffset = 0;
}
mc.ball._y = mc.ball._y + zoffset;
} else if (state == "breaking") {
moveFrame--;
if (moveFrame == 0) {
mc.ball.visible = false;
state = "dead";
}
}
}
}
Symbol 2912 MovieClip [__Packages.Buzzer] Frame 0
class Buzzer extends AI
{
var moveFrame, state, mc, z, hoveroffset, hoverstage, d, y, x, pstate, pframe, penalty, leftyflip, movedir;
function Buzzer (clip, i, j, id) {
super(clip, i, j, id);
moveFrame = 36 + random(108);
state = "resting";
mc.gotoAndPlay("wait");
mc.cacheAsBitmap;
mc._y = mc._y - 40;
mc._y = mc._y + z;
z = mc._y;
hoveroffset = (hoverstage = 0);
_level0.depths[d - 100101] = false;
d = 100101 + _level0.Bunnies.findMidDepth((y + 6) * 250);
mc.swapDepths(d);
var _local3 = new Color(mc);
_local3.setTint(0, 0, 0, 25);
}
function attack() {
var _local3 = _level0.Bunnies.getCoords();
var _local2 = 0;
while (_local2 < _local3.length) {
if ((_local3[_local2] == x) && (_local3[_local2 + 1] == y)) {
if (state == "moving") {
pstate = state;
pframe = moveFrame;
} else {
pstate = "idle";
pframe = 100;
}
mc.gotoAndPlay("attack");
state = "burning";
moveFrame = 11;
penalty = 50;
return(true);
}
_local2 = _local2 + 3;
}
return(false);
}
function die() {
mc.gotoAndPlay("die");
state = "dying";
moveFrame = 10;
}
function idle() {
state = "idle";
}
function update() {
if (state == "dead") {
return(false);
}
if ((mc._x < -36) || (mc._x > 684)) {
mc._visible = false;
} else {
mc._visible = true;
}
hoverstage = hoverstage + 0.1;
hoveroffset = Math.cos(hoverstage) * 10;
mc._y = z + hoveroffset;
mc.shade._y = 55 - hoveroffset;
if (state == "resting") {
moveFrame--;
if (moveFrame == 0) {
idle();
var _local5 = new Color(mc);
_local5.setTint(0, 0, 0, 0);
}
} else if (state == "dying") {
moveFrame--;
if (moveFrame == 0) {
mc.removeMovieClip();
state = "dead";
}
} else if (state == "idle") {
if (leftyflip) {
mc._xscale = 100;
mc._x = mc._x - 36;
leftyflip = false;
}
if (random(2) == 0) {
movedir = "left";
leftyflip = true;
mc._xscale = -100;
mc._x = mc._x + 36;
} else {
movedir = "right";
}
if (y <= 1) {
movedir = movedir + "down";
mc.gotoAndPlay("idle_down");
} else {
movedir = movedir + "up";
mc.gotoAndPlay("idle_up");
}
state = "moving";
moveFrame = 37;
} else if (state == "moving") {
if (penalty == 0) {
if (attack()) {
return(undefined);
}
}
moveFrame--;
if (movedir == "leftdown") {
mc._x = mc._x - 2;
z = z + 5;
}
if (movedir == "leftup") {
mc._x = mc._x - 2;
z = z - 5;
}
if (movedir == "rightdown") {
mc._x = mc._x + 2;
z = z + 5;
}
if (movedir == "rightup") {
mc._x = mc._x + 2;
z = z - 5;
}
var _local4 = (mc._x + _level0.Level.pos) + 8;
if (leftyflip) {
_local4 = _local4 - 36;
}
_local4 = _local4 / (36 * _level0.Level.cols);
_local4 = _local4 * _level0.Level.cols;
x = Math.floor(_local4);
var _local3 = ((z + 40) - 72) + 2;
_local3 = _local3 / (36 * _level0.Level.rows);
_local3 = _local3 * _level0.Level.rows;
_local3 = Math.floor(_local3);
if (_local3 != y) {
_global.depths[d - 100101] = false;
d = 100101 + _level0.Bunnies.findMidDepth((_local3 + 1) * 250);
mc.swapDepths(d);
y = _local3;
}
if (moveFrame == 0) {
moveFrame = 100 + penalty;
penalty = 0;
state = "resting";
var _local5 = new Color(mc);
_local5.setTint(0, 0, 0, 25);
}
} else if (state == "burning") {
moveFrame--;
if (moveFrame == 6) {
_global.hurtTile(x, y, 1);
} else if (moveFrame == 0) {
if (pstate == "moving") {
state = pstate;
moveFrame = pframe;
} else {
idle();
moveFrame = pframe;
}
}
} else if (state == "dying") {
moveFrame--;
if (moveFrame == 0) {
mc.removeMovieClip();
state = "dead";
}
}
}
}
Symbol 2913 MovieClip [__Packages.ScoreTracker] Frame 0
class ScoreTracker
{
var total, ice, speed, bounce, crush, spec, penal, finish;
function ScoreTracker () {
total = (ice = (speed = (bounce = (crush = (spec = (penal = (finish = 0)))))));
}
function count(type, val) {
if (type != "penal") {
total = total + val;
} else {
total = total - val;
}
switch (type) {
case "ice" :
ice = ice + val;
break;
case "speed" :
speed = speed + val;
break;
case "bounce" :
bounce = bounce + val;
break;
case "crush" :
crush = crush + val;
break;
case "spec" :
spec = spec + val;
break;
case "penal" :
penal = penal + val;
break;
case "finish" :
finish = finish + val;
}
}
function getResults1() {
return((((((("Speed Bonus: " + speed) + newline) + "Ice Growth Bonus: ") + ice) + newline) + "Bouncing Bonus: ") + bounce);
}
function getResults2() {
return((((((("Crushing Bonus: " + crush) + newline) + "Special Bonus: ") + spec) + newline) + "Penalties: ") + penal);
}
}
Symbol 2914 MovieClip [__Packages.Tileset] Frame 0
class Tileset
{
var setName, cols, rows, pos, dest, interp, syncval, context, paused, mousehl, mouseIndex, badIndex, pathhl, rangehl, ice, icelimit, icerate, icetime, lastice, zones, div, badTemp, bg, mouseTemp, bgrate, settype;
function Tileset (type, cols, rows) {
setName = type;
this.cols = cols;
this.rows = rows;
pos = 0;
dest = 0;
interp = false;
syncval = 1;
context = _root.attachMovie("bend_tile_context", "tilecontext", 105052);
context._visible = false;
context._alpha = 80;
context.cacheAsBitmap = true;
paused = false;
mousehl = true;
mouseIndex = (badIndex = -1);
pathhl = new Array();
rangehl = new Array();
ice = new Array();
ice.push(_root.attachMovie("ice_edge1", "ice" + ice.length, 102501 + ice.length));
ice.push(_root.attachMovie("ice_mid1", "ice" + ice.length, 102501 + ice.length));
ice[0]._x = 36;
ice[0]._y = 324;
ice[0]._alpha = 66;
ice[1]._x = 0;
ice[1]._y = 324;
ice[1]._alpha = 66;
icelimit = 0;
icerate = 100;
icetime = 0;
lastice = -1;
ice[0].cacheAsBitmap = true;
ice[1].cacheAsBitmap = true;
zones = new Array();
div = 18;
var _local3 = 0;
while (_local3 < (cols / div)) {
zones.push(new TileZone(_local3 * div, div, rows, cols));
zones[_local3].place = "mid";
_local3++;
}
zones[0].place = "start";
zones[zones.length - 1].place = "end";
if (zones.length == 1) {
zones[0].place = "onezone";
}
}
function absTargetScroll(destination) {
dest = destination - 324;
}
function adjustY(i, j) {
if (tile(i, j + 1).z > 0) {
var _local3 = 46 - tile(i, j + 1).z;
if (((_ymouse % 36) > _local3) && ((_ymouse % 36) < 34)) {
j = j + 1;
return(j);
}
}
return(j);
}
function badPath() {
if (paused) {
return(undefined);
}
var _local3 = getTileX();
var _local2 = getTileY();
_local2 = adjustY(_local3, _local2);
var _local5 = index(_local3, _local2);
if (badIndex == _local5) {
return(undefined);
}
badTemp.removeMovieClip();
if ((((_local3 < 0) || (_local3 >= cols)) || (_local2 < 1)) || (_local2 >= rows)) {
return(undefined);
}
badIndex = _local5;
var _local4 = tile(_local3, _local2);
if (_local4.z > 0) {
badTemp = _local4.mcb.attachMovie("grid_badpath", "bhl", 102);
} else {
badTemp = _local4.mc.attachMovie("grid_badpath", "bhl", 102);
}
badTemp._y = badTemp._y - _local4.z;
badTemp.cacheAsBitmap = true;
pathHLClear();
mousehl = false;
}
function checkTile(i, j) {
if ((((j <= 0) || (j >= rows)) || (i < 0)) || (i > (cols - 1))) {
return("noaccess");
}
return(tile(i, j).target);
}
function clearAll() {
var _local2 = 0;
while (_local2 < zones.length) {
zones[_local2].hide();
_local2++;
}
_local2 = 0;
while (_local2 < bg.length) {
bg[_local2].removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < ice.length) {
ice[_local2].removeMovieClip();
_local2++;
}
_local2 = 0;
while (_local2 < pathhl.length) {
pathhl[_local2].removeMovieClip();
_local2++;
}
mouseTemp.removeMovieClip();
badTemp.removeMovieClip();
context.removeMovieClip();
}
function contextMenu() {
var _local5 = getTileX();
var _local6 = adjustY(_local5, getTileY());
if ((((_local6 <= 0) || (_local6 >= rows)) || (_local5 < 0)) || (_local5 > (cols - 1))) {
return(undefined);
}
var _local3 = tile(_local5, _local6);
if (!context._visible) {
var _local4 = new Sound(context);
_local4.attachSound("pop1.wav");
_local4.setVolume(100);
_local4.setPan(_global.panAdjust(context._x));
_local4.start(0, 1);
}
context._visible = true;
context._x = _local3.mc._x + 16;
context._y = _local3.mc._y + 8;
context._y = context._y - _local3.z;
context.tile_name = _local3.tilename;
context.tile_desc = _local3.tiledesc;
if (context._x > 538) {
context._x = 538;
} else if (context._x < 110) {
context._x = 110;
}
}
function edgeScroll() {
if (paused) {
return(undefined);
}
if (_ymouse > 72) {
if (_xmouse > 600) {
scrollTiles(pos + (5 * _global.fdelta));
interp = false;
return(undefined);
}
if (_xmouse < 48) {
scrollTiles(pos + (-5 * _global.fdelta));
interp = false;
return(undefined);
}
} else if ((_ymouse > 72) && (!interp)) {
interp = true;
dest = pos;
}
}
function getStart() {
return(0);
}
function getEnd() {
return(cols * 36);
}
function getIce() {
return(ice[0]._x + pos);
}
function getPath() {
var _local8 = new Array();
var _local2 = 0;
while (_local2 < (pathhl.length - 1)) {
var _local7 = pathhl[_local2]._parent._x;
var _local6 = pathhl[_local2]._parent._y;
var _local4 = Math.floor((((_local7 + pos) + 8) / (36 * cols)) * cols);
var _local3 = Math.floor((((_local6 - 72) + 32) / (36 * rows)) * rows);
var _local5 = new PathNode(_local4, _local3, 0, 0, null);
_local8.push(_local5);
_local2++;
}
if (_local8.length == 0) {
return(null);
}
return(_local8);
}
function getTileX() {
var _local2 = (_xmouse + pos) + 2;
_local2 = _local2 / (36 * cols);
_local2 = _local2 * cols;
_local2 = Math.floor(_local2);
return(_local2);
}
function getTileY() {
var _local2 = (_ymouse - 72) + 2;
_local2 = _local2 / (36 * rows);
_local2 = _local2 * rows;
_local2 = Math.floor(_local2);
return(_local2);
}
function grabNode(i, j, ti, tj, parent, h, maxg, block) {
if ((((i < 0) || (i >= cols)) || (j < 1)) || (j >= rows)) {
return(null);
}
if ((block == "all") && (!_global.clearCheck(i, j))) {
return(null);
}
if ((block == "nme") && (!_global.nmeCheck(i, j))) {
return(null);
}
if ((block == "bun") && (!_global.bunnyCheck(i, j))) {
return(null);
}
var _local5 = tile(i, j);
if ((_local5.target == "noaccess") || (_local5.z != h)) {
return(null);
}
var _local6 = 1 + parent.g;
if ((_local5.target == "trap") && ((_local6 + 1) < maxg)) {
_local6 = _local6 + 1;
}
var _local7 = new PathNode(i, j, _local6, Math.abs(ti - i) + Math.abs(tj - j), parent);
return(_local7);
}
function grabNode2(i, j, ti, tj, parent, h, maxg, block) {
if ((((i < 0) || (i >= cols)) || (j < 1)) || (j >= rows)) {
return(null);
}
if ((block == "all") && (!_global.clearCheck(i, j))) {
return(null);
}
if ((block == "nme") && (!_global.nmeCheck(i, j))) {
return(null);
}
if ((block == "bun") && (!_global.bunnyCheck(i, j))) {
return(null);
}
var _local5 = tile(i, j);
if ((_local5.target == "noaccess") || (_local5.z != h)) {
return(null);
}
var _local8 = 1 + parent.g;
var _local6 = new PathNode(i, j, _local8, Math.abs(ti - i) + Math.abs(tj - j), parent);
return(_local6);
}
function hideContext() {
context._visible = false;
}
function iceGrowth() {
if (paused) {
return(undefined);
}
icerate = 180;
var _local8 = _root.Bunnies.getNearest();
var _local7 = (ice[0]._x / 36) + (pos / 36);
var _local5 = _local8 - _local7;
if (_local5 > 12) {
_local5 = 12;
} else if (_local5 > 8) {
_local5 = _local5 * 0.85;
} else if (_local5 > 2) {
_local5 = _local5 * 0.75;
} else if (_local5 < 2) {
_local5 = 2;
}
icerate = icerate - (_local5 * _global.diff);
var _local9 = _root.Bunnies.getAverage();
_local5 = _local9 - _local7;
if (_local5 > 12) {
_local5 = 12;
} else if (_local5 > 8) {
_local5 = _local5 * 0.85;
} else if (_local5 > 2) {
_local5 = _local5 * 0.75;
} else if (_local5 < 2) {
_local5 = 2;
}
icerate = icerate - (_local5 * _global.diff);
if (icerate < 15) {
icerate = 15;
}
icetime++;
if (icetime >= icerate) {
icetime = 0;
if (ice.length < 15) {
var _local6 = lastice;
while (_local6 == lastice) {
_local6 = random(3);
}
lastice = _local6;
if (_local6 == 0) {
ice.push(_root.attachMovie("ice_mid1", "ice" + ice.length, 102501 + ice.length));
} else if (_local6 == 1) {
ice.push(_root.attachMovie("ice_mid2", "ice" + ice.length, 102501 + ice.length));
} else if (_local6 == 2) {
ice.push(_root.attachMovie("ice_mid3", "ice" + ice.length, 102501 + ice.length));
}
ice[ice.length - 1]._x = ice[0]._x;
ice[ice.length - 1]._y = 324;
ice[ice.length - 1]._alpha = 66;
ice[0]._x = ice[0]._x + 18;
var _local4 = 1;
while (_local4 < ice.length) {
ice[_local4]._x = ice[_local4]._x - 18;
_local4++;
}
ice[ice.length - 1].cacheAsBitmap = true;
} else {
var _local4 = 0;
while (_local4 < ice.length) {
ice[_local4]._x = ice[_local4]._x + 18;
_local4++;
}
if ((ice[1]._x + pos) >= 0) {
icelimit = icelimit + 18;
}
_local4 = 2;
while (_local4 < ice.length) {
ice[_local4]._x = ice[_local4]._x - 36;
if (ice[_local4]._x <= (ice[1]._x + 19)) {
ice[_local4]._x = ice[_local4]._x + 468;
}
_local4++;
}
scrollTiles(pos);
}
_root.Score(10 * Math.floor(_global.diff), "ice");
}
}
function iceLeft() {
var _local2 = Math.floor((ice[0]._x / 36) + (pos / 36));
return(cols - _local2);
}
function index(i, j) {
return(i + (j * cols));
}
function InitCHAbuzzerdash() {
bg = new Array();
bg.push(_root.attachMovie("grass_bg_far", "bgfar", 50));
bg.push(_root.attachMovie("tropic_bg_mid", "bgmid", 51));
bg.push(_root.attachMovie("tropic_bg_near", "bgnear", 52));
bg[0]._x = 324;
bg[0]._y = 108;
bg[1]._x = 324;
bg[1]._y = 108;
bg[1]._yscale = 60;
bg[2]._x = 0;
bg[2]._y = 72;
bg[2]._xscale = (getEnd() * 100) / 648;
bg[0].cacheAsBitmap = (bg[1].cacheAsBitmap = (bg[2].cacheAsBitmap = true));
bgrate = 1;
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].fill("CHA_buzzerdash");
_local3++;
}
settype = "CHA_buzzerdash";
}
function InitCHAcheckers() {
bg = new Array();
bg.push(_root.attachMovie("metal_bg_far", "bgfar", 50));
bg[0]._x = 324;
bg[0]._y = 108;
bg[0].cacheAsBitmap = true;
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].fill("CHA_checkers");
_local3++;
}
settype = "CHA_checkers";
}
function InitCHApointblitz() {
bg = new Array();
bg.push(_root.attachMovie("grass_bg_far", "bgfar", 50));
bg.push(_root.attachMovie("grass_bg_mid", "bgmid", 51));
bg.push(_root.attachMovie("grass_bg_near", "bgnear", 52));
bg[0]._x = 324;
bg[0]._y = 108;
bg[1]._x = 324;
bg[1]._y = 108;
bg[1]._yscale = 60;
bg[2]._x = 0;
bg[2]._y = 108;
bg[2]._xscale = (getEnd() * 100) / 648;
bg[0].cacheAsBitmap = (bg[1].cacheAsBitmap = (bg[2].cacheAsBitmap = true));
bgrate = 2;
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].fill("CHA_pointblitz");
_local3++;
}
settype = "CHA_pointblitz";
}
function InitCHAcheapskate() {
bg = new Array();
bg.push(_root.attachMovie("metal_bg_far", "bgfar", 50));
bg[0]._x = 324;
bg[0]._y = 108;
bg[0].cacheAsBitmap = true;
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].fill("CHA_cheapskate");
_local3++;
}
settype = "CHA_cheapskate";
}
function InitCHAboardwalk() {
bg = new Array();
bg.push(_root.attachMovie("grass_bg_far", "bgfar", 50));
bg.push(_root.attachMovie("tropic_bg_mid", "bgmid", 51));
bg.push(_root.attachMovie("tropic_bg_near", "bgnear", 52));
bg[0]._x = 324;
bg[0]._y = 108;
bg[1]._x = 324;
bg[1]._y = 108;
bg[1]._yscale = 60;
bg[2]._x = 0;
bg[2]._y = 108;
bg[2]._xscale = (getEnd() * 100) / 648;
bg[0].cacheAsBitmap = (bg[1].cacheAsBitmap = (bg[2].cacheAsBitmap = true));
bgrate = 1;
_global.exitrow = 3;
var _local4 = 0;
while (_local4 < zones.length) {
zones[_local4].fill("CHA_boardwalk");
_local4++;
}
settype = "CHA_boardwalk";
}
function InitCHApowerdown() {
bg = new Array();
bg.push(_root.attachMovie("metal_bg_far", "bgfar", 50));
bg[0]._x = 324;
bg[0]._y = 108;
bg[0].cacheAsBitmap = true;
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].fill("CHA_powerdown");
_local3++;
}
settype = "CHA_powerdown";
}
function InitFPGrass() {
bg = new Array();
bg.push(_root.attachMovie("grass_bg_far", "bgfar", 50));
bg.push(_root.attachMovie("grass_bg_mid", "bgmid", 51));
bg.push(_root.attachMovie("grass_bg_near", "bgnear", 52));
bg[0]._x = 324;
bg[0]._y = 108;
bg[1]._x = 324;
bg[1]._y = 108;
bg[1]._yscale = 60;
bg[2]._x = 0;
bg[2]._y = 108;
bg[2]._xscale = (getEnd() * 100) / 648;
bg[0].cacheAsBitmap = (bg[1].cacheAsBitmap = (bg[2].cacheAsBitmap = true));
bgrate = 2;
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].fill("grass");
_local3++;
}
settype = "grass";
}
function InitFPMetal() {
bg = new Array();
bg.push(_root.attachMovie("metal_bg_far", "bgfar", 50));
bg[0]._x = 324;
bg[0]._y = 108;
bg[0].cacheAsBitmap = true;
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].fill("metal");
_local3++;
}
settype = "metal";
}
function InitFPTropic() {
bg = new Array();
bg.push(_root.attachMovie("grass_bg_far", "bgfar", 50));
bg.push(_root.attachMovie("tropic_bg_mid", "bgmid", 51));
bg.push(_root.attachMovie("tropic_bg_near", "bgnear", 52));
bg[0]._x = 324;
bg[0]._y = 108;
bg[1]._x = 324;
bg[1]._y = 108;
bg[1]._yscale = 60;
bg[2]._x = 0;
bg[2]._y = 72;
bg[2]._xscale = (getEnd() * 100) / 648;
bg[0].cacheAsBitmap = (bg[1].cacheAsBitmap = (bg[2].cacheAsBitmap = true));
bgrate = 1;
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].fill("tropic");
_local3++;
}
settype = "tropic";
}
function mouseHighlight() {
if ((paused || (!mousehl)) || (!_global.cursHL)) {
mouseTemp.removeMovieClip();
return(undefined);
}
var _local5 = getTileX();
var _local4 = getTileY();
_local4 = adjustY(_local5, _local4);
var _local6 = index(_local5, _local4);
if (mouseIndex == _local6) {
return(undefined);
}
mouseTemp.removeMovieClip();
if ((((_local5 < 0) || (_local5 >= cols)) || (_local4 < 1)) || (_local4 >= rows)) {
return(undefined);
}
var _local3 = tile(_local5, _local4);
mouseIndex = _local6;
if (_local3.z > 0) {
mouseTemp = _local3.mcb.attachMovie("grid_highlight_low", "hl", 100);
} else {
mouseTemp = _local3.mc.attachMovie("grid_highlight_low", "hl", 100);
}
mouseTemp._y = mouseTemp._y - _local3.z;
mouseTemp.cacheAsBitmap = true;
if (_local3.target == "walker") {
mouseTemp._alpha = 45;
} else if (_local3.target == "noaccess") {
mouseTemp._alpha = 30;
var _local7 = new Color(mouseTemp);
_local7.setTint(150, 0, 0, 100);
} else if (_local3.target == "bouncer") {
mouseTemp._alpha = 40;
var _local7 = new Color(mouseTemp);
_local7.setTint(50, 255, 50, 50);
} else if (_local3.target == "trigger") {
mouseTemp._alpha = 40;
var _local7 = new Color(mouseTemp);
_local7.setTint(50, 50, 255, 50);
} else if (_local3.target == "trap") {
mouseTemp._alpha = 30;
var _local7 = new Color(mouseTemp);
_local7.setTint(255, 150, 0, 100);
} else if (_local3.target == "carrot") {
mouseTemp._alpha = 50;
var _local7 = new Color(mouseTemp);
_local7.setTint(255, 225, 0, 100);
}
}
function okPath() {
badTemp.removeMovieClip();
}
function pathHL(p, r, g, b, a) {
pathHLClear();
pathhl = new Array();
var _local3 = 0;
while (_local3 < p.length) {
var _local2 = tile(p[_local3].i, p[_local3].j);
if (_local2.z > 0) {
pathhl.push(_local2.mcb.attachMovie("grid_highlight_low", "phl", 101));
} else {
pathhl.push(_local2.mc.attachMovie("grid_highlight_low", "phl", 101));
}
pathhl[pathhl.length - 1].cacheAsBitmap = true;
pathhl[pathhl.length - 1]._alpha = 50;
pathhl[pathhl.length - 1]._y = pathhl[pathhl.length - 1]._y - _local2.z;
var _local4 = new Color(pathhl[pathhl.length - 1]);
_local4.setTint(r, g, b, a);
_local3++;
}
mousehl = false;
}
function pathHLClear() {
var _local2 = 0;
while (_local2 < pathhl.length) {
pathhl[_local2].removeMovieClip();
_local2++;
}
delete pathhl;
mousehl = true;
}
function place(amt) {
var _local8 = ((cols - 4) - 12) / amt;
var _local7 = (_local8 - 8) + random(4);
var _local2 = 10;
while (_local2 < (cols - 4)) {
_local7++;
if (_local7 >= _local8) {
var _local5 = false;
var _local6 = 0;
while ((!_local5) && (_local6 < 20)) {
_local6++;
var _local3 = random(6) + 1;
if ((tile(_local2, _local3).target != "noaccess") && (tile(_local2, _local3).target != "trigger")) {
var _local4 = random(3);
if ((settype == "tropic") || (settype == "CHA_buzzerdash")) {
_local4++;
}
if (_local4 == 0) {
tile(_local2, _local3).creature = "frog";
} else if (_local4 == 1) {
tile(_local2, _local3).creature = "bug";
} else if (_local4 == 2) {
tile(_local2, _local3).creature = "bird";
} else if (_local4 == 3) {
tile(_local2, _local3).creature = "starfish";
}
if (_local2 < 18) {
tile(_local2, _local3).loadCreature();
}
_local5 = true;
}
}
if (_local5) {
_local7 = 0;
}
}
_local2++;
}
}
function rangeHL(arr) {
rangeHLClear();
var _local3 = 0;
while (_local3 < arr.length) {
var _local2 = tile(arr[_local3].i, arr[_local3].j);
if (_local2.z > 0) {
rangehl.push(_local2.mcb.attachMovie("range_highlight", "rhl", 105));
} else {
rangehl.push(_local2.mc.attachMovie("range_highlight", "rhl", 105));
}
rangehl[rangehl.length - 1].cacheAsBitmap = true;
rangehl[rangehl.length - 1]._alpha = 25;
rangehl[rangehl.length - 1]._y = rangehl[rangehl.length - 1]._y - _local2.z;
var _local5 = new Color(rangehl[rangehl.length - 1]);
_local5.setTint(200, 255, 200, 100);
_local3++;
}
}
function rangeHLClear() {
var _local2 = 0;
while (_local2 < rangehl.length) {
rangehl[_local2].removeMovieClip();
_local2++;
}
delete rangehl;
rangehl = new Array();
}
function resumeAll() {
paused = (mousehl = false);
var _local2 = 0;
while (_local2 < zones.length) {
zones[_local2].resumeAll();
_local2++;
}
_local2 = 0;
while (_local2 < bg.length) {
bg[_local2].play();
_local2++;
}
}
function scrollTiles(position) {
if (position < icelimit) {
position = icelimit;
}
if (position > ((36 * cols) - 648)) {
position = (36 * cols) - 648;
}
if (pos == position) {
return(undefined);
}
var _local3 = position - pos;
pos = position;
var _local2 = 0;
while (_local2 < zones.length) {
if (((zones[_local2].pos * 36) > ((pos - 648) - 72)) && ((zones[_local2].pos * 36) < (pos + 648))) {
zones[_local2].show();
zones[_local2].scroll(pos);
} else if (((zones[_local2].pos * 36) > ((pos - 800) - 72)) && ((zones[_local2].pos * 36) < (pos + 800))) {
zones[_local2].cache();
zones[_local2].scroll(pos);
} else {
zones[_local2].hide();
}
_local2++;
}
_local2 = 0;
while (_local2 < ice.length) {
ice[_local2]._x = ice[_local2]._x - _local3;
_local2++;
}
context._x = context._x - _local3;
bg[2]._x = ((pos / (36 * cols)) * (-(36 * cols))) / bgrate;
}
function squish(i, j) {
var _local3 = tile(i, j);
if (_local3.creature != "") {
if (!_local3.hightile) {
_local3.mc.creature.gotoAndPlay("squish");
} else {
_local3.mcb.creature.gotoAndPlay("squish");
}
_local3.creature = "";
_root.Score(2000, "crush", _local3.mc._x, _local3.mc._y);
_root.kongregateStats.submit("CreaturesSquished", 1);
}
}
function stopAll() {
paused = (mousehl = true);
var _local2 = 0;
while (_local2 < zones.length) {
zones[_local2].stopAll();
_local2++;
}
_local2 = 0;
while (_local2 < bg.length) {
bg[_local2].stop();
_local2++;
}
}
function tile(i, j) {
var _local2 = Math.floor(i / div);
return(zones[_local2].tiles[zones[_local2].index(i % div, j)]);
}
function tileHeight(i, j) {
if ((((j <= 0) || (j >= rows)) || (i < 0)) || (i > (cols - 1))) {
return(0);
}
return(tile(i, j).z);
}
function Trigger(i, j) {
var _local5 = tile(i, j);
if (_local5.target == "trigger") {
_root.kongregateStats.submit("TriggersHit", 1);
if (_local5.ID == "empty_rivertarget") {
if (tile(i - 2, j + 2).tilename != "Bridge") {
_root.Score(10000, "spec", _local5.mc._x, _local5.mc._y, false);
tile(i - 2, j).mc.gotoAndPlay("trigger");
tile(i - 2, j + 2).target = (tile(i - 1, j + 2).target = (tile(i, j + 2).target = "walker"));
tile(i - 2, j + 2).tilename = (tile(i - 1, j + 2).tilename = (tile(i, j + 2).tilename = "Bridge"));
tile(i - 2, j + 2).tiledesc = (tile(i - 1, j + 2).tiledesc = (tile(i, j + 2).tiledesc = "Bunnies think bridges are amazingly convenient."));
}
}
if (_local5.ID == "tile_metal_red") {
if (tile(i - 1, 1).tilename != "Harmless Wires") {
if (settype == "CHA_powerdown") {
_root.powerleft--;
}
_root.Score(5000, "spec", _local5.mc._x, _local5.mc._y, false);
tile(i, j).mc.button.gotoAndPlay("trigger");
tile(i - 1, 1).mc.gotoAndPlay("off");
tile(i - 1, 1).mcb.gotoAndPlay("off");
tile(i - 1, 2).mc.gotoAndPlay("off");
tile(i - 1, 2).mcb.gotoAndPlay("off");
tile(i - 1, 3).mc.gotoAndPlay("off");
tile(i - 1, 3).mcb.gotoAndPlay("off");
tile(i - 1, 4).mc.gotoAndPlay("off");
tile(i - 1, 4).mcb.gotoAndPlay("off");
tile(i - 1, 5).mc.gotoAndPlay("off");
tile(i - 1, 5).mcb.gotoAndPlay("off");
tile(i - 1, 6).mc.gotoAndPlay("off");
tile(i - 1, 6).mcb.gotoAndPlay("off");
tile(i - 1, 1).target = (tile(i - 1, 2).target = (tile(i - 1, 3).target = (tile(i - 1, 4).target = (tile(i - 1, 5).target = (tile(i - 1, 6).target = "walker")))));
tile(i - 1, 1).tilename = (tile(i - 1, 2).tilename = (tile(i - 1, 3).tilename = (tile(i - 1, 4).tilename = (tile(i - 1, 5).tilename = (tile(i - 1, 6).tilename = "Harmless Wires")))));
tile(i - 1, 1).tiledesc = (tile(i - 1, 2).tiledesc = (tile(i - 1, 3).tiledesc = (tile(i - 1, 4).tiledesc = (tile(i - 1, 5).tiledesc = (tile(i - 1, 6).tiledesc = "It's safe to walk on now that the power is off.")))));
}
}
}
}
function update() {
if (paused) {
return(undefined);
}
syncval = syncval + 1;
if ((syncval > 24) && ((((_global.curlevel == "tropic") || (_global.curlevel == "CHA_buzzerdash")) || (_global.curlevel == "CHA_boardwalk")) || (settype == "tropic"))) {
syncval = 1;
}
var _local3 = 0;
while (_local3 < zones.length) {
zones[_local3].sync(syncval);
_local3++;
}
if (interp && (Math.abs(dest - pos))) {
scrollTiles(pos + (dest - pos));
}
_local3 = 0;
while (_local3 < ice.length) {
if (ice[_local3]._x < -108) {
ice[_local3]._visible = false;
} else {
ice[_local3]._visible = true;
}
_local3++;
}
}
}
Symbol 2915 MovieClip [__Packages.TileZone] Frame 0
class TileZone
{
var pos, cols, rows, maxcols, loaded, vis, cached, tiles, mtype, place;
function TileZone (pos, cols, rows, maxcols) {
this.pos = pos;
this.cols = cols;
this.rows = rows;
this.maxcols = maxcols;
loaded = false;
vis = false;
cached = false;
if (pos == 0) {
vis = true;
}
tiles = new Array();
}
function cache() {
if (!cached) {
cached = true;
var _local3 = Math.floor(tiles.length / 2);
if (vis) {
var _local2 = _local3;
while (_local2 < tiles.length) {
tiles[_local2].unloadmc();
_local2++;
}
vis = false;
} else {
var _local2 = 0;
while (_local2 < _local3) {
tiles[_local2].loadmc();
_local2++;
}
}
}
}
function fill(maptype) {
var _local5;
var _local6;
mtype = maptype;
if (maptype == "grass") {
_local6 = new GrassFP(cols, rows);
_local5 = _local6.CreateMap(place);
} else if (maptype == "metal") {
_local6 = new MetalFP(cols, rows);
_local5 = _local6.CreateMap(place);
} else if (maptype == "tropic") {
_local6 = new TropicFP(cols, rows);
_local5 = _local6.CreateMap(place);
} else if (maptype == "CHA_buzzerdash") {
_local6 = new CHA_buzzerdash(cols, rows);
_local5 = _local6.CreateMap(place);
} else if (maptype == "CHA_checkers") {
_local6 = new CHA_checkers(cols, rows);
_local5 = _local6.CreateMap(place);
} else if (maptype == "CHA_pointblitz") {
_local6 = new CHA_pointblitz(cols, rows);
_local5 = _local6.CreateMap(place);
} else if (maptype == "CHA_cheapskate") {
_local6 = new CHA_cheapskate(cols, rows);
_local5 = _local6.CreateMap(place);
} else if (maptype == "CHA_boardwalk") {
_local6 = new CHA_boardwalk(cols, rows);
_local5 = _local6.CreateMap(place);
} else if (maptype == "CHA_powerdown") {
_local6 = new CHA_powerdown(cols, rows);
_local5 = _local6.CreateMap(place);
}
var _local3 = 0;
while (_local3 < rows) {
var _local2 = 0;
while (_local2 < cols) {
if (pos == 0) {
tiles.push(new Tile(_local2 + pos, _local3, maxcols, _local5[index(_local2, _local3)], true, maptype));
} else {
tiles.push(new Tile(_local2 + pos, _local3, maxcols, _local5[index(_local2, _local3)], false, maptype));
}
_local2++;
}
_local3++;
}
}
function hide() {
if (vis) {
vis = false;
var _local2 = 0;
while (_local2 < tiles.length) {
tiles[_local2].unloadmc();
_local2++;
}
} else if (cached) {
cached = false;
var _local3 = Math.floor(tiles.length / 2);
var _local2 = 0;
while (_local2 < _local3) {
tiles[_local2].unloadmc();
_local2++;
}
}
}
function index(i, j) {
return(i + (j * cols));
}
function resumeAll() {
var _local2 = 0;
while (_local2 < tiles.length) {
tiles[_local2].mc.play();
tiles[_local2].mcb.play();
tiles[_local2].mc.creature.play();
tiles[_local2].mcb.creature.play();
tiles[_local2].mc.wash.play();
tiles[_local2].mc.spark.play();
_local2++;
}
}
function scroll(p) {
var _local3 = tiles.length;
if (cached) {
_local3 = Math.floor(tiles.length / 2);
}
var _local2 = 0;
while (_local2 < _local3) {
tiles[_local2].mc._x = (tiles[_local2].mcb._x = (tiles[_local2].x * 36) - p);
_local2++;
}
}
function show() {
if (!vis) {
vis = true;
var _local3 = 0;
if (cached) {
_local3 = Math.floor(tiles.length / 2);
}
var _local2 = _local3;
while (_local2 < tiles.length) {
tiles[_local2].loadmc();
_local2++;
}
cached = false;
}
}
function stopAll() {
var _local2 = 0;
while (_local2 < tiles.length) {
tiles[_local2].mc.stop();
tiles[_local2].mcb.stop();
tiles[_local2].mc.creature.stop();
tiles[_local2].mcb.creature.stop();
if (mtype == "metal") {
tiles[_local2].mc.spark.stop();
tiles[_local2].mcb.spark.stop();
}
if ((mtype == "tropic") || (mtype == "CHA_buzzerdash")) {
tiles[_local2].mc.wash.stop();
}
_local2++;
}
}
function sync(val) {
if (!vis) {
return(undefined);
}
if (((mtype == "tropic") || (mtype == "CHA_buzzerdash")) || (mtype == "CHA_boardwalk")) {
var _local2 = 0;
while (_local2 < tiles.length) {
if (tiles[_local2].sync) {
tiles[_local2].mc.wash.gotoAndPlay(val);
}
_local2++;
}
}
}
}
Symbol 2916 MovieClip [__Packages.GrassFP] Frame 0
class GrassFP
{
var psize, size, rows;
function GrassFP (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > rows)) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function riverset(a, i, j) {
a[index(i, j)] = "tile_grass_blank";
a[index(i, j + 4)] = "tile_grass_blank";
i++;
a[index(i, j - 1)] = "empty_river";
a[index(i + 1, j - 1)] = "empty_river";
a[index(i + 2, j - 1)] = "empty_river";
a[index(i, j)] = "tile_grass_river";
a[index(i + 1, j)] = "empty_river";
a[index(i + 2, j)] = "empty_rivertarget";
a[index(i, j + 1)] = "empty_river";
a[index(i + 1, j + 1)] = "empty_river";
a[index(i + 2, j + 1)] = "empty_river";
a[index(i, j + 2)] = "empty_river";
a[index(i + 1, j + 2)] = "empty_river";
a[index(i + 2, j + 2)] = "empty_river";
a[index(i, j + 3)] = "empty_river";
a[index(i + 1, j + 3)] = "empty_river";
a[index(i + 2, j + 3)] = "empty_river";
a[index(i, j + 4)] = "empty_river";
a[index(i + 1, j + 4)] = "empty_riverpad";
a[index(i + 2, j + 4)] = "empty_river";
a[index(i, j + 5)] = "empty_river";
a[index(i + 1, j + 5)] = "empty_river";
a[index(i + 2, j + 5)] = "empty_river";
}
function canyonset(a, i, j) {
a[index(i, j)] = "tile_grass_l2_topL";
a[index(i + 1, j)] = "tile_grass_l2_topEdge";
a[index(i + 2, j)] = "tile_grass_l2_topEdge";
a[index(i + 3, j)] = "tile_grass_l2_topR";
a[index(i, j + 1)] = "tile_grass_l2_botL";
a[index(i + 1, j + 1)] = "tile_grass_l2_botEdge";
a[index(i + 2, j + 1)] = "tile_grass_l2_botEdge";
a[index(i + 3, j + 1)] = "tile_grass_l2_botR";
a[index(i, j + 2)] = "tile_grass_blank";
a[index(i + 1, j + 2)] = "tile_grass_blank";
a[index(i + 2, j + 2)] = "tile_grass_blank";
a[index(i + 3, j + 2)] = "tile_grass_blank";
a[index(i, j + 3)] = "tile_grass_l2_topL";
a[index(i + 1, j + 3)] = "tile_grass_l2_topEdge";
a[index(i + 2, j + 3)] = "tile_grass_l2_topEdge";
a[index(i + 3, j + 3)] = "tile_grass_l2_topR";
a[index(i, j + 4)] = "tile_grass_l2_botL";
a[index(i + 1, j + 4)] = "tile_grass_l2_botEdge";
a[index(i + 2, j + 4)] = "tile_grass_l2_botEdge";
a[index(i + 3, j + 4)] = "tile_grass_l2_botR";
}
function islandset(a, i, j) {
a[index(i, j)] = "tile_grass_stream_topL";
a[index(i + 1, j)] = "tile_grass_stream_hori";
a[index(i + 2, j)] = "tile_grass_stream_hori3";
a[index(i + 3, j)] = "tile_grass_stream_topR";
a[index(i, j + 1)] = "tile_grass_stream_vert2";
a[index(i + 1, j + 1)] = "tile_grass_blank";
a[index(i + 2, j + 1)] = "tile_grass_blank";
a[index(i + 3, j + 1)] = "tile_grass_stream_vert2";
a[index(i + 4, j + 1)] = "tile_grass_blank";
a[index(i, j + 2)] = "tile_grass_stream_vert2";
a[index(i + 1, j + 2)] = "tile_grass_blank";
a[index(i + 2, j + 2)] = "tile_grass_blank";
a[index(i + 3, j + 2)] = "tile_grass_stream_vert3";
a[index(i + 4, j + 2)] = "tile_grass_blank";
a[index(i, j + 3)] = "tile_grass_stream_botL";
a[index(i + 1, j + 3)] = "tile_grass_stream_hori2";
a[index(i + 2, j + 3)] = "tile_grass_stream_hori2";
a[index(i + 3, j + 3)] = "tile_grass_stream_botR";
}
function treeset(a, i, j) {
a[index(i, j)] = "tile_grass_blank";
a[index(i + 1, j)] = "tile_grass_blank";
a[index(i + 2, j)] = "tile_grass_blank";
a[index(i, j + 1)] = "tile_grass_tree1";
a[index(i + 1, j + 1)] = "empty_tree1";
a[index(i + 2, j + 1)] = "tile_grass_blank";
a[index(i, j + 2)] = "empty_tree1";
a[index(i + 1, j + 2)] = "empty_tree1";
a[index(i + 2, j + 2)] = "tile_grass_blank";
a[index(i, j + 3)] = "tile_grass_blank";
a[index(i + 1, j + 3)] = "tile_grass_blank";
a[index(i + 2, j + 3)] = "tile_grass_blank";
}
function rockplatset(a, i, j) {
a[index(i, j)] = "tile_grass_rockplat";
a[index(i + 1, j)] = "empty_rockplat";
a[index(i + 2, j)] = "empty_rockplat";
a[index(i + 3, j)] = "empty_rockplat";
a[index(i + 4, j)] = "empty_rockplat";
a[index(i + 5, j)] = "empty_rockplat";
a[index(i, j + 1)] = "empty_rockplat";
a[index(i + 1, j + 1)] = "empty_rockplat";
a[index(i + 2, j + 1)] = "empty_rockplat";
a[index(i + 3, j + 1)] = "empty_rockplat";
a[index(i + 4, j + 1)] = "empty_rockplat";
a[index(i + 5, j + 1)] = "empty_rockplat";
}
function pondset(a, i, j) {
a[index(i, j)] = "tile_grass_blank";
a[index(i + 1, j)] = "tile_grass_blank";
a[index(i + 2, j)] = "tile_grass_blank";
a[index(i + 3, j)] = "tile_grass_blank";
a[index(i, j + 1)] = "tile_grass_pond";
a[index(i + 1, j + 1)] = "empty_pond";
a[index(i + 2, j + 1)] = "empty_pond";
a[index(i + 3, j + 1)] = "tile_grass_blank";
a[index(i, j + 2)] = "empty_pond";
a[index(i + 1, j + 2)] = "empty_pond";
a[index(i + 2, j + 2)] = "empty_pond";
a[index(i + 3, j + 2)] = "tile_grass_blank";
a[index(i, j + 3)] = "tile_grass_blank";
a[index(i + 1, j + 3)] = "tile_grass_blank";
a[index(i + 2, j + 3)] = "tile_grass_blank";
a[index(i + 3, j + 3)] = "tile_grass_blank";
}
function nettlesquareset(a, i, j) {
a[index(i, j)] = "tile_grass_nettle";
a[index(i + 1, j)] = "tile_grass_blank";
a[index(i + 2, j)] = "tile_grass_nettle";
a[index(i, j + 1)] = "tile_grass_blank";
a[index(i + 1, j + 1)] = "tile_grass_blank";
a[index(i + 2, j + 1)] = "tile_grass_blank";
a[index(i, j + 2)] = "tile_grass_nettle";
a[index(i + 1, j + 2)] = "tile_grass_blank";
a[index(i + 2, j + 2)] = "tile_grass_nettle";
}
function bigstumpset(a, i, j) {
a[index(i, j)] = "tile_grass_tree1stump";
a[index(i + 1, j)] = "empty_tree1stump";
a[index(i, j + 1)] = "empty_tree1stump";
a[index(i + 1, j + 1)] = "empty_tree1stump";
}
function campfireset(a, i, j) {
a[index(i, j)] = "tile_grass_campfire";
a[index(i + 1, j)] = "empty_campfire";
a[index(i, j + 1)] = "empty_campfire";
a[index(i + 1, j + 1)] = "empty_campfire";
}
function jumprockset(a, i, j) {
a[index(i, j)] = "tile_grass_shroom";
a[index(i + 1, j)] = "tile_grass_rock1";
a[index(i + 2, j)] = "tile_grass_shroom";
}
function jumpstumpset(a, i, j) {
a[index(i, j)] = "tile_grass_shroom";
a[index(i + 1, j)] = "tile_grass_blank";
a[index(i + 2, j)] = "tile_grass_tree2stump";
}
function carrotset(a, i, j) {
a[index(i, j)] = "tile_grass_carrot";
a[index(i + 1, j)] = "empty_carrot";
}
function CreateMap(place) {
var _local2 = new Array(rows * size);
var _local9 = 0;
while (_local9 < _local2.length) {
_local2[_local9] = "";
_local9++;
}
var _local7 = 1;
if (place == "end") {
size = size - 3;
} else if (place == "start") {
_local7 = 8;
} else if (place == "onezone") {
size = size - 3;
_local7 = 8;
}
var _local5 = 1;
while (_local5 < (rows - 1)) {
var _local3 = _local7;
for ( ; _local3 < (size - 2) ; _local3++) {
if (reserve(_local2, _local3, _local5, 4, 6) && (chance(200))) {
if (chance(20)) {
riverset(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 4, 5) && (chance(600))) {
if (chance(20)) {
canyonset(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 5, 4) && (chance(600))) {
if (chance(40)) {
islandset(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 6, 2) && (chance(500))) {
if (chance(20)) {
rockplatset(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 3, 4) && (chance(500))) {
if (chance(25)) {
treeset(_local2, _local3, _local5);
continue;
}
if (chance(10)) {
pondset(_local2, _local3, _local5);
} else if (reserve(_local2, _local3, _local5, 3, 3) && chance(400)) {
if (chance(10)) {
nettlesquareset(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 2, 2) && chance(300)) {
if (chance(15)) {
bigstumpset(_local2, _local3, _local5);
continue;
}
if (chance(5)) {
campfireset(_local2, _local3, _local5);
} else if (reserve(_local2, _local3, _local5, 3, 1) && chance(200)) {
if (chance(20)) {
jumpstumpset(_local2, _local3, _local5);
continue;
}
if (chance(20)) {
jumprockset(_local2, _local3, _local5);
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(150)) {
carrotset(_local2, _local3, _local5);
}
}
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(150)) {
carrotset(_local2, _local3, _local5);
}
}
} else if (reserve(_local2, _local3, _local5, 3, 1) && chance(200)) {
if (chance(20)) {
jumpstumpset(_local2, _local3, _local5);
continue;
}
if (chance(20)) {
jumprockset(_local2, _local3, _local5);
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(150)) {
carrotset(_local2, _local3, _local5);
}
}
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(150)) {
carrotset(_local2, _local3, _local5);
}
}
} else if (reserve(_local2, _local3, _local5, 3, 3) && chance(400)) {
if (chance(10)) {
nettlesquareset(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 2, 2) && chance(300)) {
if (chance(15)) {
bigstumpset(_local2, _local3, _local5);
continue;
}
if (chance(5)) {
campfireset(_local2, _local3, _local5);
} else if (reserve(_local2, _local3, _local5, 3, 1) && chance(200)) {
if (chance(20)) {
jumpstumpset(_local2, _local3, _local5);
continue;
}
if (chance(20)) {
jumprockset(_local2, _local3, _local5);
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(150)) {
carrotset(_local2, _local3, _local5);
}
}
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(150)) {
carrotset(_local2, _local3, _local5);
}
}
} else if (reserve(_local2, _local3, _local5, 3, 1) && chance(200)) {
if (chance(20)) {
jumpstumpset(_local2, _local3, _local5);
continue;
}
if (chance(20)) {
jumprockset(_local2, _local3, _local5);
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(150)) {
carrotset(_local2, _local3, _local5);
}
}
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(150)) {
carrotset(_local2, _local3, _local5);
}
}
}
_local5++;
}
var _local3 = _local7;
_local5 = 0;
var _local13 = _local7 - 1;
var _local12 = 0;
while (_local3 < size) {
var _local11 = random(100);
if (_local11 < 75) {
_local3 = _local3 + 1;
continue;
}
if (_local2[index(_local3, _local5)] == "tile_grass_stream_cap") {
_local3 = _local3 + 1;
continue;
}
if (_local2[index(_local3, _local5 + 1)] != "") {
_local3 = _local3 + 1;
continue;
}
_local2[index(_local3, _local5)] = "tile_grass_stream_cap";
_local13 = _local3;
_local12 = _local5;
_local5 = _local5 + 1;
var _local4 = "down";
var _local6 = false;
while (!_local6) {
if (_local4 == "down") {
var _local8 = random(80);
if ((((_local8 < 10) && (_local2[index(_local3 - 1, _local5)] == "")) && (_local2[index(_local3 - 2, _local5)] == "")) && ((_local3 - 1) > _local7)) {
_local2[index(_local3, _local5)] = "tile_grass_stream_botR";
_local4 = "left";
_local3 = _local3 - 1;
} else if ((((_local8 < 20) && (_local2[index(_local3 + 1, _local5)] == "")) && (_local2[index(_local3 + 2, _local5)] == "")) && ((_local3 + 1) < size)) {
_local2[index(_local3, _local5)] = "tile_grass_stream_botL";
_local4 = "right";
_local3 = _local3 + 1;
} else if ((_local8 < 80) && ((_local2[index(_local3, _local5 + 1)] == "") || ((_local5 + 1) >= rows))) {
_local2[index(_local3, _local5)] = "tile_grass_stream_vert";
_local4 = "down";
_local5 = _local5 + 1;
} else {
_local6 = true;
_local2[index(_local3, _local5)] = "tile_grass_stream_downdead";
_local4 = "";
}
} else if (_local4 == "left") {
var _local8 = random(80);
if (((_local8 < 10) && (_local2[index(_local3, _local5 - 1)] == "")) && (_local2[index(_local3, _local5 - 2)] == "")) {
_local2[index(_local3, _local5)] = "tile_grass_stream_botL";
_local4 = "up";
_local5 = _local5 - 1;
} else if ((_local8 < 20) && ((_local2[index(_local3, _local5 + 1)] == "") || ((_local5 + 1) >= rows))) {
_local2[index(_local3, _local5)] = "tile_grass_stream_topL";
_local4 = "down";
_local5 = _local5 + 1;
} else if ((_local8 < 80) && ((_local2[index(_local3 - 1, _local5)] == "") && ((_local3 - 1) > _local7))) {
_local2[index(_local3, _local5)] = "tile_grass_stream_hori2";
_local4 = "left";
_local3 = _local3 - 1;
} else {
_local6 = true;
_local2[index(_local3, _local5)] = "tile_grass_stream_leftdead";
_local4 = "";
}
} else if (_local4 == "right") {
var _local8 = random(80);
if (((_local8 < 10) && (_local2[index(_local3, _local5 - 1)] == "")) && (_local2[index(_local3, _local5 - 2)] == "")) {
_local2[index(_local3, _local5)] = "tile_grass_stream_botR";
_local4 = "up";
_local5 = _local5 - 1;
} else if ((_local8 < 20) && ((_local2[index(_local3, _local5 + 1)] == "") || ((_local5 + 1) >= rows))) {
_local2[index(_local3, _local5)] = "tile_grass_stream_topR";
_local4 = "down";
_local5 = _local5 + 1;
} else if (((_local8 < 80) && (_local2[index(_local3 + 1, _local5)] == "")) && ((_local3 + 1) < size)) {
_local2[index(_local3, _local5)] = "tile_grass_stream_hori";
_local4 = "right";
_local3 = _local3 + 1;
} else {
_local6 = true;
_local2[index(_local3, _local5)] = "tile_grass_stream_rightdead";
_local4 = "";
}
} else if (_local4 == "up") {
var _local8 = random(80);
if ((((_local8 < 10) && (_local2[index(_local3 - 1, _local5)] == "")) && (_local2[index(_local3 - 2, _local5)] == "")) && ((_local3 - 1) > _local7)) {
_local2[index(_local3, _local5)] = "tile_grass_stream_topR";
_local4 = "left";
_local3 = _local3 - 1;
} else if ((((_local8 < 20) && (_local2[index(_local3 + 1, _local5)] == "")) && (_local2[index(_local3 + 2, _local5)] == "")) && ((_local3 + 1) < size)) {
_local2[index(_local3, _local5)] = "tile_grass_stream_topL";
_local4 = "right";
_local3 = _local3 + 1;
} else if ((_local8 < 80) && (_local2[index(_local3, _local5 - 1)] == "")) {
_local2[index(_local3, _local5)] = "tile_grass_stream_vert2";
_local4 = "up";
_local5 = _local5 - 1;
} else {
_local6 = true;
_local2[index(_local3, _local5)] = "tile_grass_stream_updead";
_local4 = "";
}
}
if (_local5 == 0) {
_local6 = true;
_local2[index(_local3, _local5)] = "tile_grass_stream_cap";
_local4 = "";
}
if ((((_local3 < 0) || (_local3 >= size)) || (_local5 < 0)) || (_local5 > rows)) {
_local6 = true;
}
}
_local3 = _local13 + 3;
_local5 = _local12;
}
_local3 = _local7;
_local5 = 0;
_local13 = _local7 - 1;
_local12 = 0;
while (_local3 < size) {
var _local11 = random(100);
if (_local11 < 85) {
_local3 = _local3 + 1;
continue;
}
_local5 = random(rows - 2) + 1;
if ((_local2[index(_local3, _local5)] != "") || (_local2[index(_local3, _local5 + 1)] != "")) {
_local3 = _local3 + 1;
continue;
}
_local2[index(_local3, _local5)] = "tile_grass_l2_top";
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_bot";
_local3 = _local3 + 1;
}
_local3 = _local7;
while (_local3 < size) {
_local5 = 0;
while (_local5 < rows) {
if ((_local2[index(_local3, _local5)] == "tile_grass_l2_top") && (chance(500))) {
if ((_local2[index(_local3 - 1, _local5)] == "") && ((_local3 - 1) >= 0)) {
_local2[index(_local3 - 1, _local5)] = "tile_grass_l2_left";
_local2[index(_local3, _local5)] = "tile_grass_l2_topR";
} else if ((_local2[index(_local3 + 1, _local5)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_right";
_local2[index(_local3, _local5)] = "tile_grass_l2_topL";
}
}
if ((_local2[index(_local3, _local5)] == "tile_grass_l2_topL") && (chance(500))) {
if ((_local2[index(_local3 - 1, _local5)] == "") && ((_local3 - 1) >= 0)) {
_local2[index(_local3 - 1, _local5)] = "tile_grass_l2_left";
_local2[index(_local3, _local5)] = "tile_grass_l2_topEdge";
} else if ((_local2[index(_local3, _local5 - 1)] == "") && ((_local5 - 1) > 1)) {
_local2[index(_local3, _local5 - 1)] = "tile_grass_l2_top";
_local2[index(_local3, _local5)] = "tile_grass_l2_leftEdge";
}
}
if ((_local2[index(_local3, _local5)] == "tile_grass_l2_topR") && (chance(500))) {
if ((_local2[index(_local3 + 1, _local5)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_right";
_local2[index(_local3, _local5)] = "tile_grass_l2_topEdge";
} else if ((_local2[index(_local3, _local5 - 1)] == "") && ((_local5 - 1) > 1)) {
_local2[index(_local3, _local5 - 1)] = "tile_grass_l2_top";
_local2[index(_local3, _local5)] = "tile_grass_l2_rightEdge";
}
}
if ((_local2[index(_local3, _local5)] == "tile_grass_l2_left") && (chance(500))) {
if ((_local2[index(_local3, _local5 + 1)] == "") && ((_local5 + 1) < rows)) {
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_bot";
_local2[index(_local3, _local5)] = "tile_grass_l2_topL";
}
}
if ((_local2[index(_local3, _local5)] == "tile_grass_l2_bot") && (chance(500))) {
if ((_local2[index(_local3 - 1, _local5)] == "") && ((_local3 - 1) >= 0)) {
_local2[index(_local3 - 1, _local5)] = "tile_grass_l2_left";
_local2[index(_local3, _local5)] = "tile_grass_l2_botR";
} else if ((_local2[index(_local3 + 1, _local5)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_right";
_local2[index(_local3, _local5)] = "tile_grass_l2_botL";
}
}
if ((_local2[index(_local3, _local5)] == "tile_grass_l2_botR") && (chance(500))) {
if ((_local2[index(_local3 + 1, _local5)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_right";
_local2[index(_local3, _local5)] = "tile_grass_l2_botEdge";
} else if ((_local2[index(_local3, _local5 + 1)] == "") && ((_local5 + 1) > rows)) {
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_down";
_local2[index(_local3, _local5)] = "tile_grass_l2_rightEdge";
}
}
if ((_local2[index(_local3, _local5)] == "tile_grass_l2_right") && (chance(500))) {
if ((_local2[index(_local3, _local5 + 1)] == "") && ((_local5 + 1) < rows)) {
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_bot";
_local2[index(_local3, _local5)] = "tile_grass_l2_topR";
}
}
_local5++;
}
_local3++;
}
var _local10 = 0;
while (_local10 < 3) {
_local3 = _local7;
while (_local3 < size) {
_local5 = 0;
while (_local5 < rows) {
if (_local2[index(_local3, _local5)] == "tile_grass_l2_top") {
if (_local2[index(_local3 + 1, _local5)] == "tile_grass_l2_top") {
_local2[index(_local3, _local5)] = "tile_grass_l2_topL";
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_topR";
}
}
if (_local2[index(_local3, _local5)] == "tile_grass_l2_topEdge") {
if (_local2[index(_local3, _local5 + 1)] == "tile_grass_l2_topL") {
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_leftEdge";
}
}
if (_local2[index(_local3, _local5)] == "tile_grass_l2_topR") {
if (_local2[index(_local3 + 1, _local5)] == "tile_grass_l2_topL") {
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_topEdge";
_local2[index(_local3, _local5)] = "tile_grass_l2_topEdge";
} else if ((_local2[index(_local3 + 1, _local5)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_right";
_local2[index(_local3, _local5)] = "tile_grass_l2_topEdge";
}
}
if (_local2[index(_local3, _local5)] == "tile_grass_l2_botR") {
if (_local2[index(_local3 + 1, _local5)] == "tile_grass_l2_botL") {
_local2[index(_local3, _local5)] = "tile_grass_l2_botEdge";
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_botEdge";
} else if (_local2[index(_local3, _local5 + 1)] == "tile_grass_l2_right") {
_local2[index(_local3, _local5)] = "tile_grass_l2_rightEdge";
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_botR";
}
}
if (_local2[index(_local3, _local5)] == "tile_grass_l2_botL") {
if (_local2[index(_local3, _local5 + 1)] == "tile_grass_l2_topEdge") {
_local2[index(_local3, _local5)] = "tile_grass_l2_leftEdge";
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_full";
} else if ((_local2[index(_local3, _local5 + 1)] == "") && ((_local5 + 1) < rows)) {
_local2[index(_local3, _local5)] = "tile_grass_l2_leftEdge";
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_bot";
}
}
if (_local2[index(_local3, _local5)] == "tile_grass_l2_left") {
if (_local2[index(_local3, _local5 - 1)] == "tile_grass_l2_left") {
_local2[index(_local3, _local5)] = "tile_grass_l2_botL";
_local2[index(_local3, _local5 - 1)] = "tile_grass_l2_topL";
} else if (_local2[index(_local3, _local5 + 1)] == "tile_grass_l2_topL") {
_local2[index(_local3, _local5)] = "tile_grass_l2_topL";
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_leftEdge";
}
}
if (_local2[index(_local3, _local5)] == "tile_grass_l2_right") {
if (_local2[index(_local3, _local5 + 1)] == "tile_grass_l2_left") {
_local2[index(_local3, _local5)] = "tile_grass_l2_topR";
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_botL";
} else if (_local2[index(_local3, _local5 - 1)] == "tile_grass_l2_left") {
_local2[index(_local3, _local5)] = "tile_grass_l2_botR";
_local2[index(_local3, _local5 - 1)] = "tile_grass_l2_topL";
} else if (_local2[index(_local3, _local5 + 1)] == "tile_grass_l2_right") {
_local2[index(_local3, _local5)] = "tile_grass_l2_topR";
_local2[index(_local3, _local5 + 1)] = "tile_grass_l2_botR";
} else if (_local2[index(_local3, _local5 - 1)] == "tile_grass_l2_down") {
_local2[index(_local3, _local5)] = "tile_grass_l2_botR";
_local2[index(_local3, _local5 - 1)] = "tile_grass_l2_vert";
} else if (_local2[index(_local3 + 1, _local5)] == "tile_grass_l2_down") {
_local2[index(_local3, _local5)] = "tile_grass_l2_hori";
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_botR";
}
}
if (_local2[index(_local3, _local5)] == "tile_grass_l2_bot") {
if (_local2[index(_local3 + 1, _local5)] == "tile_grass_l2_bot") {
_local2[index(_local3, _local5)] = "tile_grass_l2_botL";
_local2[index(_local3 + 1, _local5)] = "tile_grass_l2_botR";
}
}
_local5++;
}
_local3++;
}
_local10++;
}
_local5 = 1;
while (_local5 < rows) {
_local3 = _local7;
while (_local3 < size) {
if (_local2[index(_local3, _local5)] != "") {
} else {
if ((_local2[index(_local3 + 1, _local5)] == "") && (_local2[index(_local3 - 1, _local5)] == "")) {
if (random(25) == 0) {
_local2[index(_local3, _local5)] = "tile_grass_rock1";
}
}
if ((_local2[index(_local3, _local5 + 1)] == "") && (_local2[index(_local3, _local5 - 1)] == "")) {
if (random(25) == 0) {
_local2[index(_local3, _local5)] = "tile_grass_tree2";
}
}
if (((_local2[index(_local3 + 1, _local5)] == "tile_grass_stream_vert") || (_local2[index(_local3 + 1, _local5)] == "tile_grass_stream_vert")) && (_local2[index(_local3 + 2, _local5)] == "")) {
if (random(4) == 0) {
_local2[index(_local3, _local5)] = "tile_grass_shroom";
}
}
if ((_local2[index(_local3 + 1, _local5)] == "tile_grass_rock1") && (_local2[index(_local3 + 2, _local5)] == "")) {
if (random(4) == 0) {
_local2[index(_local3, _local5)] = "tile_grass_shroom";
}
}
if (random(50) == 0) {
_local2[index(_local3, _local5)] = "tile_grass_shroom";
}
if ((_local2[index(_local3 - 1, _local5)] == "tile_grass_stream_vert") || (_local2[index(_local3 - 1, _local5)] == "tile_grass_stream_vert2")) {
if (random(20) == 0) {
_local2[index(_local3, _local5)] = "tile_grass_nettle";
}
}
if (_local2[index(_local3, _local5)] == "") {
if (random(35) == 0) {
_local2[index(_local3, _local5)] = "tile_grass_nettle";
}
}
}
_local3++;
}
_local5++;
}
_local9 = 0;
while (_local9 < _local2.length) {
if (_local2[_local9] != "") {
} else if ((_local9 < size) && (_local2[_local9] == "")) {
_local2[_local9] = "tile_grass_cap1";
} else {
_local2[_local9] = "tile_grass_blank";
}
_local9++;
}
_local9 = 0;
while (_local9 < _local2.length) {
if (_local2[_local9] == "tile_grass_blank") {
if (random(100) < 20) {
_local2[_local9] = "tile_grass_tuft1";
} else if (random(100) < 20) {
_local2[_local9] = "tile_grass_tuft2";
} else if (random(100) < 3) {
_local2[_local9] = "tile_grass_tuft3";
} else if (random(100) < 3) {
_local2[_local9] = "tile_grass_tuft4";
} else if (random(100) < 20) {
_local2[_local9] = "tile_grass_tuft5";
} else if (random(100) < 20) {
_local2[_local9] = "tile_grass_tuft6";
}
} else if (_local2[_local9] == "tile_grass_cap1") {
if (random(100) < 10) {
_local2[_local9] = "tile_grass_cap3";
} else if (random(100) < 5) {
_local2[_local9] = "tile_grass_cap4";
} else if (random(100) < 10) {
_local2[_local9] = "tile_grass_cap5";
} else if (random(100) < 30) {
_local2[_local9] = "tile_grass_cap2";
}
} else if (_local2[_local9] == "tile_grass_rock1") {
if (random(100) < 25) {
_local2[_local9] = "tile_grass_hole";
} else if (random(100) < 35) {
_local2[_local9] = "tile_grass_rock2";
}
} else if (_local2[_local9] == "tile_grass_shroom") {
if (random(100) < 50) {
_local2[_local9] = "tile_grass_shroom2";
}
} else if (_local2[_local9] == "tile_grass_stream_vert") {
if (random(100) < 25) {
_local2[_local9] = "tile_grass_stream_vert3";
}
} else if (_local2[_local9] == "tile_grass_stream_hori") {
if (random(100) < 25) {
_local2[_local9] = "tile_grass_stream_hori3";
}
}
_local9++;
}
if ((place == "end") || (place == "onezone")) {
size = psize;
_local2[index(size - 3, 0)] = (_local2[index(size - 1, 0)] = "tile_grass_cap2");
_local2[index(size - 2, 0)] = "tile_grass_cap_finish";
_local9 = 1;
while (_local9 < rows) {
if (random(2) == 0) {
_local2[index(size - 2, _local9)] = "tile_grass_tuft_finish";
} else {
_local2[index(size - 2, _local9)] = "tile_grass_tuft_finish2";
}
_local9++;
}
}
passcheck(_local2, _local7);
return(_local2);
}
function passcheck(a, safe) {
var _local7 = new Array("t", "t", "t", "t", "t", "t");
var _local9 = new Array("t", "t", "t", "t", "t", "t");
var _local3 = new Array("f", "f", "f", "f", "f", "f");
var _local6 = safe;
while (_local6 < (size - 2)) {
var _local4 = 0;
while (_local4 < (rows - 1)) {
var _local2 = a[index(_local6, _local4 + 1)];
if ((((((((((((((((((((_local2 == "tile_grass_hole") || (_local2 == "tile_grass_pond")) || (_local2 == "empty_pond")) || (_local2 == "tile_grass_river")) || (_local2 == "empty_river")) || (_local2 == "tile_grass_rock1")) || (_local2 == "tile_grass_rock2")) || (_local2 == "tile_grass_tree1")) || (_local2 == "empty_tree1")) || (_local2 == "tile_grass_tree2")) || (_local2 == "tile_grass_stream_botL")) || (_local2 == "tile_grass_stream_botR")) || (_local2 == "tile_grass_stream_hori")) || (_local2 == "tile_grass_stream_hori2")) || (_local2 == "tile_grass_stream_hori3")) || (_local2 == "tile_grass_stream_topL")) || (_local2 == "tile_grass_stream_topR")) || (_local2 == "tile_grass_stream_vert")) || (_local2 == "tile_grass_stream_vert2")) || (_local2 == "tile_grass_stream_vert3")) {
_local3[_local4] = "n";
} else if ((_local7[_local4] == "t") || (_local9[_local4] == "t")) {
_local3[_local4] = "t";
}
_local4++;
}
_local4 = 0;
while (_local4 < (rows - 1)) {
if (_local3[_local4] == "f") {
if (((((_local4 > 0) && (_local3[_local4 - 1] == "t")) || ((_local4 > 1) && (_local3[_local4 - 2] == "t"))) || ((_local4 < (rows - 2)) && (_local3[_local4 + 1] == "t"))) || ((_local4 < (rows - 3)) && (_local3[_local4 + 2] == "t"))) {
_local3[_local4] = "t";
}
}
_local4++;
}
var _local10 = false;
_local4 = 0;
while (_local4 < (rows - 1)) {
if ((_local3[_local4] == "t") || (_local7[_local4] == "t")) {
_local10 = true;
}
_local4++;
}
if (!_local10) {
var _local8 = 0;
_local4 = 0;
while (_local4 < (rows - 1)) {
if (_local9[_local4] == "t") {
_local3[_local4] = "t";
a[index(_local6, _local4 + 1)] = "tile_grass_blank";
_local8++;
}
if (_local8 == 2) {
break;
}
_local4++;
}
}
_local9 = _local7.slice();
_local7 = _local3.slice();
var _local5 = 0;
while (_local5 < 7) {
_local3[_local5] = "f";
_local5++;
}
_local6++;
}
}
}
Symbol 2917 MovieClip [__Packages.MetalFP] Frame 0
class MetalFP
{
var psize, size, rows;
function MetalFP (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > rows)) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function CreateMap(place) {
var _local2 = new Array(rows * size);
var _local6 = 0;
while (_local6 < _local2.length) {
_local2[_local6] = "";
_local6++;
}
var _local8 = 1;
if (place == "end") {
size = size - 3;
} else if (place == "start") {
_local8 = 8;
} else if (place == "onezone") {
size = size - 3;
_local8 = 8;
}
_local6 = 0;
for ( ; _local6 < size ; _local6++) {
if (_local2[_local6] != "") {
} else if ((_local6 % 5) == 0) {
_local2[_local6] = "tile_metal_cap_post1";
} else if ((((_local6 + 2) < size) && (_local2[_local6 + 1] == "")) && (_local2[_local6 + 2] == "")) {
if (chance(200)) {
_local2[_local6] = "tile_metal_cap_wall1";
_local2[_local6 + 1] = "empty";
_local2[_local6 + 2] = "empty";
continue;
}
} else if (((_local6 + 1) < size) && (_local2[_local6 + 1] == "")) {
if (chance(200)) {
_local2[_local6] = "tile_metal_cap_wall2";
_local2[_local6 + 1] = "empty";
} else if (chance(200)) {
_local2[_local6] = "tile_metal_cap_wall3";
_local2[_local6 + 1] = "empty";
} else if (chance(200)) {
_local2[_local6] = "tile_metal_cap_plug";
_local2[_local6 + 1] = "empty";
}
}
}
var _local3 = _local8;
while (_local3 < size) {
var _local4 = 1;
while (_local4 < rows) {
if (chance(250)) {
if (((_local4 == 1) && ((_local3 + 1) < size)) && (chance(50))) {
_local2[index(_local3, _local4)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3, _local4 + 2)] = (_local2[index(_local3 + 1, _local4 + 2)] = (_local2[index(_local3, _local4 + 3)] = (_local2[index(_local3 + 1, _local4 + 3)] = (_local2[index(_local3, _local4 + 4)] = (_local2[index(_local3 + 1, _local4 + 4)] = (_local2[index(_local3, _local4 + 5)] = (_local2[index(_local3 + 1, _local4 + 5)] = "tile_metal_high1"))))))))))));
} else if ((((_local4 + 3) < rows) && ((_local3 + 3) < size)) && (chance(50))) {
_local2[index(_local3, _local4)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 2, _local4)] = (_local2[index(_local3 + 3, _local4)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3, _local4 + 2)] = (_local2[index(_local3 + 3, _local4 + 1)] = (_local2[index(_local3 + 3, _local4 + 2)] = (_local2[index(_local3, _local4 + 3)] = (_local2[index(_local3 + 1, _local4 + 3)] = (_local2[index(_local3 + 2, _local4 + 3)] = (_local2[index(_local3 + 3, _local4 + 3)] = "tile_metal_mid1")))))))))));
_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3 + 1, _local4 + 2)] = (_local2[index(_local3 + 2, _local4 + 1)] = (_local2[index(_local3 + 2, _local4 + 2)] = "tile_metal_high1")));
} else if ((((_local4 + 2) < rows) && ((_local3 + 4) < size)) && (chance(50))) {
_local2[index(_local3, _local4)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3, _local4 + 2)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3 + 1, _local4 + 2)] = (_local2[index(_local3 + 2, _local4)] = (_local2[index(_local3 + 2, _local4 + 2)] = (_local2[index(_local3 + 3, _local4)] = (_local2[index(_local3 + 3, _local4 + 1)] = (_local2[index(_local3 + 3, _local4 + 2)] = (_local2[index(_local3 + 4, _local4)] = (_local2[index(_local3 + 4, _local4 + 1)] = (_local2[index(_local3 + 4, _local4 + 2)] = "tile_metal_mid1")))))))))))));
_local2[index(_local3 + 2, _local4 + 1)] = "tile_metal_high1";
} else if ((((_local4 + 3) < rows) && ((_local3 + 1) < size)) && (chance(100))) {
_local2[index(_local3, _local4)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3, _local4 + 2)] = (_local2[index(_local3, _local4 + 3)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3 + 1, _local4 + 2)] = (_local2[index(_local3 + 1, _local4 + 3)] = "tile_metal_mid1")))))));
} else if ((((_local4 + 2) < rows) && ((_local3 + 1) < size)) && chance(100)) {
_local2[index(_local3, _local4)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 1, _local4 + 1)] = "tile_metal_mid1")));
} else if ((((_local4 + 1) < rows) && ((_local3 + 3) < size)) && chance(100)) {
_local2[index(_local3, _local4)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 2, _local4)] = (_local2[index(_local3 + 3, _local4)] = "tile_metal_mid1")));
}
}
_local4++;
}
_local3++;
}
var _local4 = 1;
while (_local4 < rows) {
_local3 = _local8;
while (_local3 < size) {
var _local5 = false;
if (((_local2[index(_local3, _local4 - 1)] == "tile_metal_cap_plug") || (_local2[index(_local3, _local4 - 1)] == "tile_metal_cable1")) || (_local2[index(_local3, _local4 - 1)] == "tile_metal_cable_port")) {
if (_local2[index(_local3, _local4)] == "tile_metal_mid1") {
_local2[index(_local3, _local4)] = "tile_metal_mid_cable";
} else if (_local2[index(_local3, _local4)] == "tile_metal_high1") {
_local2[index(_local3, _local4)] = "tile_metal_high_cable";
} else {
_local2[index(_local3, _local4)] = "tile_metal_cable1";
}
_local5 = true;
} else if ((_local2[index(_local3, _local4 - 1)] == "tile_metal_mid_cable") || (_local2[index(_local3, _local4 - 1)] == "tile_metal_mid_cable_port")) {
if (_local2[index(_local3, _local4)] == "tile_metal_mid1") {
_local2[index(_local3, _local4)] = "tile_metal_mid_cable";
} else if (_local2[index(_local3, _local4)] == "tile_metal_high1") {
_local2[index(_local3, _local4)] = "tile_metal_high_cable";
} else {
_local2[index(_local3, _local4)] = "tile_metal_cable_port";
}
_local5 = true;
} else if (_local2[index(_local3, _local4 - 1)] == "tile_metal_high_cable") {
if (_local2[index(_local3, _local4)] == "tile_metal_high1") {
_local2[index(_local3, _local4)] = "tile_metal_high_cable";
} else if (_local2[index(_local3, _local4)] == "tile_metal_mid1") {
_local2[index(_local3, _local4)] = "tile_metal_mid_cable_port";
} else {
_local2[index(_local3, _local4)] = "tile_metal_cable_port";
}
_local5 = true;
}
if ((_local4 == 1) && (_local5)) {
if ((((((_local2[index(_local3 + 1, _local4)] != "tile_metal_red") && (_local2[index(_local3 + 1, _local4 + 1)] != "tile_metal_red")) && (_local2[index(_local3 + 1, _local4 + 2)] != "tile_metal_red")) && (_local2[index(_local3 + 1, _local4 + 3)] != "tile_metal_red")) && (_local2[index(_local3 + 1, _local4 + 4)] != "tile_metal_red")) && (_local2[index(_local3 + 1, _local4 + 5)] != "tile_metal_red")) {
var _local7 = random(6) + 1;
_local2[index(_local3 + 1, _local7)] = "tile_metal_red";
}
}
_local3++;
}
_local4++;
}
_local4 = 1;
while (_local4 < rows) {
_local3 = _local8;
while (_local3 < size) {
if (_local2[index(_local3, _local4)] != "") {
} else if (chance(25)) {
_local2[index(_local3, _local4)] = "tile_metal_rubble1";
} else if (chance(25)) {
_local2[index(_local3, _local4)] = "tile_metal_plat";
} else if (chance(20)) {
_local2[index(_local3, _local4)] = "tile_metal_post1";
} else if (chance(40)) {
_local2[index(_local3, _local4)] = "tile_metal_spring";
} else if (chance(20)) {
_local2[index(_local3, _local4)] = "tile_metal_fissure";
} else if (chance(10)) {
_local2[index(_local3, _local4)] = "tile_metal_carrot";
}
_local3++;
}
_local4++;
}
_local6 = 0;
while (_local6 < _local2.length) {
if (_local2[_local6] != "") {
} else if (_local6 < size) {
_local2[_local6] = "tile_metal_cap1";
} else {
_local2[_local6] = "tile_metal_blank";
}
_local6++;
}
_local6 = 0;
while (_local6 < _local2.length) {
if (_local2[_local6] == "tile_metal_blank") {
if (random(100) < 20) {
_local2[_local6] = "tile_metal_floor1";
} else if (random(100) < 20) {
_local2[_local6] = "tile_metal_floor2";
} else if (random(100) < 20) {
_local2[_local6] = "tile_metal_floor3";
} else if (random(100) < 5) {
_local2[_local6] = "tile_metal_floor4";
} else if (chance(20)) {
_local2[_local6] = "tile_metal_grass";
} else if (random(100) < 10) {
_local2[_local6] = "tile_metal_floor5";
} else if (random(100) < 10) {
_local2[_local6] = "tile_metal_floor6";
} else if (random(100) < 20) {
_local2[_local6] = "tile_metal_floor7";
}
} else if (_local2[_local6] == "tile_metal_cap1") {
if (random(100) < 20) {
_local2[_local6] = "tile_metal_cap2";
} else if (random(100) < 20) {
_local2[_local6] = "tile_metal_cap3";
}
} else if (_local2[_local6] == "tile_metal_cap_post1") {
if (random(100) < 30) {
_local2[_local6] = "tile_metal_cap_post2";
} else if (random(100) < 30) {
_local2[_local6] = "tile_metal_cap_post3";
} else if (random(100) < 30) {
_local2[_local6] = "tile_metal_cap_postwall";
}
} else if (_local2[_local6] == "tile_metal_rubble1") {
if (random(100) < 50) {
_local2[_local6] = "tile_metal_rubble2";
}
} else if (_local2[_local6] == "tile_metal_mid1") {
if (random(100) < 30) {
_local2[_local6] = "tile_metal_mid2";
} else if (random(100) < 30) {
_local2[_local6] = "tile_metal_mid3";
} else if (random(100) < 40) {
_local2[_local6] = "tile_metal_mid4";
} else if (random(100) < 10) {
_local2[_local6] = "tile_metal_midburner";
}
} else if (_local2[_local6] == "tile_metal_spring") {
if (chance(400)) {
_local2[_local6] = "tile_metal_bouncer";
}
} else if (_local2[_local6] == "tile_metal_high1") {
if (random(100) < 20) {
_local2[_local6] = "tile_metal_high2";
}
}
_local6++;
}
if ((place == "end") || (place == "onezone")) {
size = psize;
_local2[index(size - 3, 0)] = (_local2[index(size - 1, 0)] = "tile_metal_cap2");
_local2[index(size - 2, 0)] = "tile_metal_cap_finish";
_local6 = 1;
while (_local6 < rows) {
if (random(2) == 0) {
_local2[index(size - 2, _local6)] = "tile_metal_floor_finish1";
} else {
_local2[index(size - 2, _local6)] = "tile_metal_floor_finish2";
}
_local6++;
}
}
passcheck(_local2, _local8);
return(_local2);
}
function passcheck(a, safe) {
var _local7 = new Array("t", "t", "t", "t", "t", "t");
var _local9 = new Array("t", "t", "t", "t", "t", "t");
var _local2 = new Array("f", "f", "f", "f", "f", "f");
var _local6 = safe;
while (_local6 < (size - 2)) {
var _local3 = 0;
while (_local3 < (rows - 1)) {
var _local4 = a[index(_local6, _local3 + 1)];
if (((_local4 == "tile_metal_post1") || (_local4 == "tile_metal_rubble1")) || (_local4 == "tile_metal_rubble2")) {
_local2[_local3] = "n";
} else if ((_local7[_local3] == "t") || (_local9[_local3] == "t")) {
_local2[_local3] = "t";
}
_local3++;
}
_local3 = 0;
while (_local3 < (rows - 1)) {
if (_local2[_local3] == "f") {
if (((((_local3 > 0) && (_local2[_local3 - 1] == "t")) || ((_local3 > 1) && (_local2[_local3 - 2] == "t"))) || ((_local3 < (rows - 2)) && (_local2[_local3 + 1] == "t"))) || ((_local3 < (rows - 3)) && (_local2[_local3 + 2] == "t"))) {
_local2[_local3] = "t";
}
}
_local3++;
}
var _local10 = false;
_local3 = 0;
while (_local3 < (rows - 1)) {
if ((_local2[_local3] == "t") || (_local7[_local3] == "t")) {
_local10 = true;
}
_local3++;
}
if (!_local10) {
var _local8 = 0;
_local3 = 0;
while (_local3 < (rows - 1)) {
if (_local9[_local3] == "t") {
_local2[_local3] = "t";
a[index(_local6, _local3 + 1)] = "tile_metal_blank";
_local8++;
}
if (_local8 == 2) {
break;
}
_local3++;
}
}
_local9 = _local7.slice();
_local7 = _local2.slice();
var _local5 = 0;
while (_local5 < 7) {
_local2[_local5] = "f";
_local5++;
}
_local6++;
}
}
}
Symbol 2918 MovieClip [__Packages.TropicFP] Frame 0
class TropicFP
{
var psize, size, rows;
function TropicFP (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > (rows - 1))) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function rockblockset(a, i, j) {
a[index(i, j)] = "tile_tropic_castle";
a[index(i + 1, j)] = "";
a[index(i + 2, j)] = "tile_tropic_rocks";
}
function urchintrapset(a, i, j) {
a[index(i, j)] = "tile_tropic_urchin";
a[index(i + 2, j)] = "tile_tropic_urchin";
a[index(i + 4, j)] = "tile_tropic_spikeshell";
}
function puddleset1(a, i, j) {
a[index(i, j)] = "tile_tropic_puddle";
a[index(i + 1, j)] = "empty_puddle";
a[index(i + 2, j)] = "empty_puddle";
a[index(i, j + 1)] = "empty_puddle";
a[index(i + 1, j + 1)] = "empty_puddle";
a[index(i + 2, j + 1)] = "empty_puddle";
}
function treeset1(a, i, j) {
a[index(i, j)] = "tile_tropic_blank";
a[index(i + 1, j)] = "tile_tropic_blank";
a[index(i + 2, j)] = "tile_tropic_blank";
a[index(i, j + 1)] = "tile_tropic_tree1";
a[index(i + 1, j + 1)] = "empty_tree1";
a[index(i + 2, j + 1)] = "tile_tropic_blank";
a[index(i, j + 2)] = "empty_tree1";
a[index(i + 1, j + 2)] = "empty_tree1";
a[index(i + 2, j + 2)] = "tile_tropic_blank";
}
function logset1(a, i, j) {
a[index(i, j)] = "tile_tropic_log_big";
a[index(i + 1, j)] = "empty_log_big";
a[index(i + 2, j)] = "empty_log_big";
a[index(i + 3, j)] = "empty_log_big";
a[index(i, j + 1)] = "empty_log_big";
a[index(i + 1, j + 1)] = "empty_log_big";
a[index(i + 2, j + 1)] = "empty_log_big";
a[index(i + 3, j + 1)] = "empty_log_big";
}
function carrotset(a, i, j) {
a[index(i, j)] = "tile_tropic_carrot";
}
function CreateMap(place) {
var _local2 = new Array(rows * size);
var _local7 = 0;
while (_local7 < _local2.length) {
_local2[_local7] = "";
_local7++;
}
var _local6 = 1;
if (place == "end") {
size = size - 3;
} else if (place == "start") {
_local6 = 8;
} else if (place == "onezone") {
size = size - 3;
_local6 = 8;
}
var _local3 = 0;
while (_local3 < size) {
if (_local2[index(_local3, 0)] != "") {
} else {
var _local5 = 0;
if ((chance(50) && (_local3 > _local6)) && ((_local3 + 1) < size)) {
_local2[index(_local3, _local5)] = "tile_tropic_ocean_topL";
_local2[index(_local3 + 1, _local5)] = "tile_tropic_ocean_topR";
_local2[index(_local3, _local5 + 1)] = "tile_tropic_ocean_leftEdge";
_local2[index(_local3 + 1, _local5 + 1)] = "tile_tropic_ocean_rightEdge";
_local2[index(_local3, _local5 + 2)] = "tile_tropic_ocean_botL";
_local2[index(_local3 + 1, _local5 + 2)] = "tile_tropic_ocean_botR";
_local3 = _local3 + 1;
} else if (chance(125) && ((_local3 + 2) < size)) {
_local2[index(_local3, _local5)] = "tile_tropic_ocean_topL";
_local2[index(_local3 + 1, _local5)] = "tile_tropic_ocean_open";
_local2[index(_local3 + 2, _local5)] = "tile_tropic_ocean_topR";
_local2[index(_local3, _local5 + 1)] = "tile_tropic_ocean_botL";
_local2[index(_local3 + 1, _local5 + 1)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 2, _local5 + 1)] = "tile_tropic_ocean_botR";
_local3 = _local3 + 2;
} else if ((chance(50) && (_local3 > _local6)) && ((_local3 + 6) < size)) {
_local2[index(_local3, _local5)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 1, _local5)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 2, _local5)] = "tile_tropic_ocean_topL";
_local2[index(_local3 + 3, _local5)] = "tile_tropic_ocean_open";
_local2[index(_local3 + 4, _local5)] = "tile_tropic_ocean_topR";
_local2[index(_local3 + 5, _local5)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 6, _local5)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 1, _local5 + 1)] = "tile_tropic_blank";
_local2[index(_local3 + 2, _local5 + 1)] = "tile_tropic_ocean_leftEdge";
_local2[index(_local3 + 3, _local5 + 1)] = "tile_tropic_sandbar";
_local2[index(_local3 + 4, _local5 + 1)] = "tile_tropic_ocean_rightEdge";
_local2[index(_local3 + 5, _local5 + 1)] = "tile_tropic_blank";
_local2[index(_local3, _local5 + 2)] = "tile_tropic_ocean_overL";
_local2[index(_local3 + 1, _local5 + 2)] = "tile_tropic_ocean_topEdge";
_local2[index(_local3 + 2, _local5 + 2)] = "tile_tropic_ocean_underL";
_local2[index(_local3 + 3, _local5 + 2)] = "tile_tropic_ocean_open";
_local2[index(_local3 + 4, _local5 + 2)] = "tile_tropic_ocean_underR";
_local2[index(_local3 + 5, _local5 + 2)] = "tile_tropic_ocean_topEdge";
_local2[index(_local3 + 6, _local5 + 2)] = "tile_tropic_ocean_overR";
_local2[index(_local3, _local5 + 3)] = "tile_tropic_ocean_leftEdge";
_local2[index(_local3 + 1, _local5 + 3)] = "tile_tropic_ocean_open";
_local2[index(_local3 + 2, _local5 + 3)] = "tile_tropic_ocean_open";
_local2[index(_local3 + 3, _local5 + 3)] = "tile_tropic_ocean_open";
_local2[index(_local3 + 4, _local5 + 3)] = "tile_tropic_ocean_open";
_local2[index(_local3 + 5, _local5 + 3)] = "tile_tropic_ocean_open";
_local2[index(_local3 + 6, _local5 + 3)] = "tile_tropic_ocean_rightEdge";
_local2[index(_local3, _local5 + 4)] = "tile_tropic_ocean_botL";
_local2[index(_local3 + 1, _local5 + 4)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 2, _local5 + 4)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 3, _local5 + 4)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 4, _local5 + 4)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 5, _local5 + 4)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3 + 6, _local5 + 4)] = "tile_tropic_ocean_botR";
_local3 = _local3 + 6;
}
}
_local3++;
}
_local3 = _local6;
while (_local3 < (size - 1)) {
if ((_local2[index(_local3, 0)] != "") || (_local2[index(_local3, 1)] != "")) {
} else {
var _local5 = 0;
if (chance(300)) {
_local2[index(_local3, _local5)] = "tile_tropic_ocean_topDelta";
while (chance(700) && (_local5 < 5)) {
_local5++;
if ((chance(200) && (_local2[index(_local3 - 2, _local5)] == "")) && (_local2[index(_local3 + 2, _local5)] == "")) {
_local2[index(_local3, _local5)] = "tile_tropic_ocean_midDelta";
var _local4 = _local3 - 1;
while ((chance(500) && (_local2[index(_local4 - 1, _local5)] == "")) && ((_local4 - 1) >= _local6)) {
_local2[index(_local4, _local5)] = "tile_tropic_ocean_hori";
_local4--;
}
_local2[index(_local4, _local5)] = "tile_tropic_ocean_left_end";
_local4 = _local3 + 1;
while ((chance(500) && (_local2[index(_local4 + 1, _local5)] == "")) && ((_local4 + 1) < (size - 1))) {
_local2[index(_local4, _local5)] = "tile_tropic_ocean_hori";
_local4++;
}
_local2[index(_local4, _local5)] = "tile_tropic_ocean_right_end";
} else {
_local2[index(_local3, _local5)] = "tile_tropic_ocean_vert";
}
}
_local5++;
if (_local5 == 6) {
_local2[index(_local3, _local5)] = "tile_tropic_foilstream";
} else {
_local2[index(_local3, _local5)] = "tile_tropic_ocean_vert_end";
}
_local3 = _local3 + 1;
} else {
_local2[index(_local3, _local5)] = "tile_tropic_ocean_botEdge";
}
}
_local3++;
}
var _local5 = 1;
while (_local5 < (rows - 1)) {
_local3 = _local6;
for ( ; _local3 < (size - 2) ; _local3++) {
if (reserve(_local2, _local3, _local5, 3, 3) && (chance(200))) {
if (chance(40)) {
treeset1(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 4, 2) && (chance(200))) {
if (chance(45)) {
logset1(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 4, 1) && (chance(200))) {
if (chance(45)) {
urchintrapset(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 3, 2) && (chance(50))) {
if (chance(50)) {
puddleset1(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 3, 1) && (chance(200))) {
if (chance(35)) {
rockblockset(_local2, _local3, _local5);
continue;
}
} else if (reserve(_local2, _local3, _local5, 2, 1) && chance(100)) {
if (chance(60)) {
carrotset(_local2, _local3, _local5);
}
}
}
_local5++;
}
_local3 = 0;
while (_local3 < psize) {
if ((_local2[index(_local3, 6)] == "tile_tropic_ocean_vert") || (_local2[index(_local3, 6)] == "tile_tropic_ocean_midDelta")) {
_local2[index(_local3, 6)] = "tile_tropic_foilstream";
} else if ((_local2[index(_local3, 5)] == "") && (chance(300))) {
_local2[index(_local3, 5)] = "tile_tropic_2foil";
_local2[index(_local3, 6)] = "empty_foil";
} else if (_local2[index(_local3, 6)] == "") {
_local2[index(_local3, 6)] = "tile_tropic_foil";
}
_local3++;
}
_local5 = 1;
while (_local5 < rows) {
_local3 = _local6;
while (_local3 < size) {
if (_local2[index(_local3, _local5)] != "") {
} else if (_local2[index(_local3, _local5)] == "") {
if (chance(75)) {
_local2[index(_local3, _local5)] = "tile_tropic_rocks";
} else if (chance(25)) {
_local2[index(_local3, _local5)] = "tile_tropic_spikeshell";
} else if (chance(25)) {
_local2[index(_local3, _local5)] = "tile_tropic_urchin";
} else if (chance(60)) {
_local2[index(_local3, _local5)] = "tile_tropic_fern1";
}
}
_local3++;
}
_local5++;
}
_local7 = 0;
while (_local7 < _local2.length) {
if (_local2[_local7] != "") {
} else if (_local7 < size) {
_local2[_local7] = "tile_tropic_ocean_botEdge";
} else {
_local2[_local7] = "tile_tropic_blank";
}
_local7++;
}
_local7 = 0;
while (_local7 < _local2.length) {
if (_local2[_local7] == "tile_tropic_blank") {
if (chance(100)) {
_local2[_local7] = "tile_tropic_blank2";
} else if (chance(100)) {
_local2[_local7] = "tile_tropic_blank3";
}
} else if (_local2[_local7] == "tile_tropic_fern1") {
if (chance(100)) {
_local2[_local7] = "tile_tropic_puddle_small";
} else if (chance(200)) {
_local2[_local7] = "tile_tropic_fern2";
}
} else if (_local2[_local7] == "tile_tropic_foil") {
if (chance(150)) {
_local2[_local7] = "tile_tropic_foil2";
} else if (chance(150)) {
_local2[_local7] = "tile_tropic_foilfern1";
} else if (chance(150)) {
_local2[_local7] = "tile_tropic_foilfern2";
} else if (chance(150)) {
_local2[_local7] = "tile_tropic_foilfern3";
} else if (chance(100)) {
_local2[_local7] = "tile_tropic_foiltree2";
} else if (chance(100)) {
_local2[_local7] = "tile_tropic_foil3";
} else if (chance(100)) {
_local2[_local7] = "tile_tropic_foil4";
}
} else if (_local2[_local7] == "tile_tropic_2foil") {
if (chance(300)) {
_local2[_local7] = "tile_tropic_2foil2";
} else if (chance(75)) {
_local2[_local7] = "tile_tropic_foiltree1";
}
} else if (_local2[_local7] == "tile_tropic_rocks") {
if (chance(150)) {
_local2[_local7] = "tile_tropic_castle";
} else if (chance(250)) {
_local2[_local7] = "tile_tropic_rocks2";
}
} else if (_local2[_local7] == "tile_tropic_spikeshell") {
if (chance(400)) {
_local2[_local7] = "tile_tropic_spikeshell2";
}
} else if (_local2[_local7] == "tile_tropic_urchin") {
if (chance(400)) {
_local2[_local7] = "tile_tropic_urchin2";
}
}
_local7++;
}
if ((place == "end") || (place == "onezone")) {
size = psize;
_local2[index(size - 3, 0)] = (_local2[index(size - 1, 0)] = "tile_tropic_ocean_botEdge");
_local2[index(size - 2, 0)] = "tile_tropic_cap_finish";
_local7 = 1;
while (_local7 < rows) {
if (random(2) == 0) {
_local2[index(size - 2, _local7)] = "tile_tropic_finish1";
} else {
_local2[index(size - 2, _local7)] = "tile_tropic_finish2";
}
_local7++;
}
_local2[index(size - 2, 6)] = "tile_tropic_foilfinish";
}
passcheck(_local2, _local6);
return(_local2);
}
function passcheck(a, safe) {
var _local7 = new Array("t", "t", "t", "t", "t", "t");
var _local9 = new Array("t", "t", "t", "t", "t", "t");
var _local3 = new Array("f", "f", "f", "f", "f", "f");
var _local6 = safe;
while (_local6 < (size - 2)) {
var _local4 = 0;
while (_local4 < (rows - 1)) {
var _local2 = a[index(_local6, _local4 + 1)];
if ((((((((((((((((((((((((_local2 == "tile_tropic_castle") || (_local2 == "tile_tropic_rocks")) || (_local2 == "tile_tropic_rocks2")) || (_local2 == "tile_tropic_tree1")) || (_local2 == "empty_tree1")) || (_local2 == "tile_tropic_ocean_botDelta")) || (_local2 == "tile_tropic_ocean_botEdge")) || (_local2 == "tile_tropic_ocean_botL")) || (_local2 == "tile_tropic_ocean_botR")) || (_local2 == "tile_tropic_ocean_hori")) || (_local2 == "tile_tropic_ocean_leftEdge")) || (_local2 == "tile_tropic_ocean_midDelta")) || (_local2 == "tile_tropic_ocean_open")) || (_local2 == "tile_tropic_ocean_overL")) || (_local2 == "tile_tropic_ocean_overR")) || (_local2 == "tile_tropic_ocean_rightEdge")) || (_local2 == "tile_tropic_ocean_rightDelta")) || (_local2 == "tile_tropic_ocean_topDelta")) || (_local2 == "tile_tropic_ocean_topEdge")) || (_local2 == "tile_tropic_ocean_topL")) || (_local2 == "tile_tropic_ocean_topR")) || (_local2 == "tile_tropic_ocean_underL")) || (_local2 == "tile_tropic_ocean_underR")) || (_local2 == "tile_tropic_ocean_vert")) {
_local3[_local4] = "n";
} else if ((_local7[_local4] == "t") || (_local9[_local4] == "t")) {
_local3[_local4] = "t";
}
_local4++;
}
_local4 = 0;
while (_local4 < (rows - 1)) {
if (_local3[_local4] == "f") {
if (((((_local4 > 0) && (_local3[_local4 - 1] == "t")) || ((_local4 > 1) && (_local3[_local4 - 2] == "t"))) || ((_local4 < (rows - 2)) && (_local3[_local4 + 1] == "t"))) || ((_local4 < (rows - 3)) && (_local3[_local4 + 2] == "t"))) {
_local3[_local4] = "t";
}
}
_local4++;
}
var _local10 = false;
_local4 = 0;
while (_local4 < (rows - 1)) {
if ((_local3[_local4] == "t") || (_local7[_local4] == "t")) {
_local10 = true;
}
_local4++;
}
if (!_local10) {
var _local8 = 0;
_local4 = 0;
while (_local4 < (rows - 1)) {
if (_local9[_local4] == "t") {
_local3[_local4] = "t";
a[index(_local6, _local4 + 1)] = "tile_tropic_blank";
_local8++;
}
if (_local8 == 2) {
break;
}
_local4++;
}
}
_local9 = _local7.slice();
_local7 = _local3.slice();
var _local5 = 0;
while (_local5 < 7) {
_local3[_local5] = "f";
_local5++;
}
_local6++;
}
}
}
Symbol 2919 MovieClip [__Packages.CHA_buzzerdash] Frame 0
class CHA_buzzerdash
{
var psize, size, rows;
function CHA_buzzerdash (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > (rows - 1))) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function CreateMap(place) {
var _local2 = new Array(rows * size);
var _local5 = 0;
while (_local5 < _local2.length) {
_local2[_local5] = "";
_local5++;
}
var _local6 = 1;
if (place == "start") {
_local6 = 8;
}
var _local3 = 0;
while (_local3 < size) {
_local2[index(_local3, 0)] = "tile_tropic_ocean_botEdge";
_local2[index(_local3, 5)] = "tile_tropic_ocean_topEdge";
_local2[index(_local3, 6)] = "tile_tropic_ocean_open";
_local3++;
}
var _local4 = 1;
while (_local4 < rows) {
_local3 = _local6;
while (_local3 < size) {
if (reserve(_local2, _local3, _local4, 3, 1) && (chance(250))) {
_local2[index(_local3, _local4)] = "tile_tropic_blank";
_local2[index(_local3 + 1, _local4)] = "tile_tropic_rocks";
_local2[index(_local3 + 2, _local4)] = "tile_tropic_blank";
} else if (reserve(_local2, _local3, _local4, 3, 1) && (chance(100))) {
_local2[index(_local3, _local4)] = "tile_tropic_fern1";
}
_local3++;
}
_local4++;
}
_local5 = 0;
while (_local5 < _local2.length) {
if (_local2[_local5] != "") {
} else {
_local2[_local5] = "tile_tropic_blank";
}
_local5++;
}
_local5 = 0;
while (_local5 < _local2.length) {
if (_local2[_local5] == "tile_tropic_blank") {
if (chance(100)) {
_local2[_local5] = "tile_tropic_blank2";
} else if (chance(100)) {
_local2[_local5] = "tile_tropic_blank3";
}
} else if (_local2[_local5] == "tile_tropic_fern1") {
if (chance(100)) {
_local2[_local5] = "tile_tropic_puddle_small";
} else if (chance(200)) {
_local2[_local5] = "tile_tropic_fern2";
}
} else if (_local2[_local5] == "tile_tropic_rocks") {
if (chance(150)) {
_local2[_local5] = "tile_tropic_castle";
} else if (chance(250)) {
_local2[_local5] = "tile_tropic_rocks2";
}
}
_local5++;
}
if (place == "end") {
size = psize;
_local5 = 1;
while (_local5 < 5) {
if (random(2) == 0) {
_local2[index(size - 2, _local5)] = "tile_tropic_finish1";
} else {
_local2[index(size - 2, _local5)] = "tile_tropic_finish2";
}
_local5++;
}
}
return(_local2);
}
}
Symbol 2920 MovieClip [__Packages.CHA_checkers] Frame 0
class CHA_checkers
{
var psize, size, rows;
function CHA_checkers (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > rows)) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function CreateMap(place) {
var _local2 = new Array(rows * size);
var _local5 = 0;
while (_local5 < _local2.length) {
_local2[_local5] = "";
_local5++;
}
_local5 = 0;
for ( ; _local5 < size ; _local5++) {
if (_local2[_local5] != "") {
} else if ((_local5 % 5) == 0) {
_local2[_local5] = "tile_metal_cap_post1";
} else if ((((_local5 + 2) < size) && (_local2[_local5 + 1] == "")) && (_local2[_local5 + 2] == "")) {
if (chance(200)) {
_local2[_local5] = "tile_metal_cap_wall1";
_local2[_local5 + 1] = "empty";
_local2[_local5 + 2] = "empty";
continue;
}
} else if (((_local5 + 1) < size) && (_local2[_local5 + 1] == "")) {
if (chance(200)) {
_local2[_local5] = "tile_metal_cap_wall2";
_local2[_local5 + 1] = "empty";
} else if (chance(200)) {
_local2[_local5] = "tile_metal_cap_wall3";
_local2[_local5 + 1] = "empty";
}
}
}
var _local4 = 0;
while (_local4 < size) {
var _local3 = 1;
for ( ; _local3 < rows ; _local3++) {
if (((_local3 == 1) || (_local3 == 3)) || (_local3 == 5)) {
if (((_local4 % 2) == 1) || (random(10) == 0)) {
_local2[index(_local4, _local3)] = "tile_checker_black";
continue;
}
} else if (random(20) == 0) {
_local2[index(_local4, _local3)] = "tile_checker_black";
} else {
_local2[index(_local4, _local3)] = "tile_checker_red";
}
_local2[index(_local4, _local3)] = "tile_checker_red";
}
_local4++;
}
_local5 = 0;
while (_local5 < _local2.length) {
if (_local2[_local5] == "tile_checker_black") {
if (chance(25)) {
_local2[_local5] = "tile_checker_mid";
} else if (chance(25)) {
_local2[_local5] = "tile_checker_high";
} else if (chance(75)) {
_local2[_local5] = "tile_checker_rubble";
} else if (chance(25)) {
_local2[_local5] = "tile_checker_spring";
}
}
_local5++;
}
if (place == "end") {
_local2[index(size - 2, 0)] = "tile_metal_cap_finish";
_local5 = 1;
while (_local5 < rows) {
if (random(2) == 0) {
_local2[index(size - 2, _local5)] = "tile_metal_floor_finish1";
} else {
_local2[index(size - 2, _local5)] = "tile_metal_floor_finish2";
}
_local2[index(size - 1, _local5)] = "tile_metal_blank";
_local5++;
}
}
return(_local2);
}
}
Symbol 2921 MovieClip [__Packages.CHA_pointblitz] Frame 0
class CHA_pointblitz
{
var psize, size, rows;
function CHA_pointblitz (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > rows)) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function jumprockset(a, i, j) {
a[index(i, j)] = "tile_grass_shroom";
a[index(i + 1, j)] = "tile_grass_rock1";
a[index(i + 2, j)] = "tile_grass_shroom";
}
function jumpstumpset(a, i, j) {
a[index(i, j)] = "tile_grass_shroom";
a[index(i + 1, j)] = "tile_grass_blank";
a[index(i + 2, j)] = "tile_grass_tree2stump";
}
function CreateMap(place) {
var _local2 = new Array(rows * size);
var _local6 = 0;
while (_local6 < _local2.length) {
_local2[_local6] = "";
_local6++;
}
var _local5 = 1;
if (place == "end") {
size = size - 3;
} else if (place == "start") {
_local5 = 8;
}
var _local4 = 1;
while (_local4 < (rows - 1)) {
var _local3 = _local5;
while (_local3 < (size - 2)) {
if (reserve(_local3, _local4, 3, 1)) {
if (chance(50)) {
jumprockset(_local2, _local3, _local4);
} else if (chance(50)) {
jumpstumpset(_local2, _local3, _local4);
}
}
_local3++;
}
_local4++;
}
var _local3 = _local5;
_local4 = 0;
var _local11 = _local5 - 1;
var _local10 = 0;
_local3 = _local5;
_local4 = 0;
_local11 = _local5 - 1;
_local10 = 0;
while (_local3 < size) {
var _local8 = random(100);
if (_local8 < 60) {
_local3 = _local3 + 1;
continue;
}
_local4 = random(rows - 2) + 1;
if ((_local2[index(_local3, _local4)] != "") || (_local2[index(_local3, _local4 + 1)] != "")) {
_local3 = _local3 + 1;
continue;
}
_local2[index(_local3, _local4)] = "tile_grass_l2_top";
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_bot";
_local3 = _local3 + 1;
}
_local3 = _local5;
while (_local3 < size) {
_local4 = 0;
while (_local4 < rows) {
if ((_local2[index(_local3, _local4)] == "tile_grass_l2_top") && (chance(500))) {
if ((_local2[index(_local3 - 1, _local4)] == "") && ((_local3 - 1) >= 0)) {
_local2[index(_local3 - 1, _local4)] = "tile_grass_l2_left";
_local2[index(_local3, _local4)] = "tile_grass_l2_topR";
} else if ((_local2[index(_local3 + 1, _local4)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_right";
_local2[index(_local3, _local4)] = "tile_grass_l2_topL";
}
}
if ((_local2[index(_local3, _local4)] == "tile_grass_l2_topL") && (chance(500))) {
if ((_local2[index(_local3 - 1, _local4)] == "") && ((_local3 - 1) >= 0)) {
_local2[index(_local3 - 1, _local4)] = "tile_grass_l2_left";
_local2[index(_local3, _local4)] = "tile_grass_l2_topEdge";
} else if ((_local2[index(_local3, _local4 - 1)] == "") && ((_local4 - 1) > 1)) {
_local2[index(_local3, _local4 - 1)] = "tile_grass_l2_top";
_local2[index(_local3, _local4)] = "tile_grass_l2_leftEdge";
}
}
if ((_local2[index(_local3, _local4)] == "tile_grass_l2_topR") && (chance(500))) {
if ((_local2[index(_local3 + 1, _local4)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_right";
_local2[index(_local3, _local4)] = "tile_grass_l2_topEdge";
} else if ((_local2[index(_local3, _local4 - 1)] == "") && ((_local4 - 1) > 1)) {
_local2[index(_local3, _local4 - 1)] = "tile_grass_l2_top";
_local2[index(_local3, _local4)] = "tile_grass_l2_rightEdge";
}
}
if ((_local2[index(_local3, _local4)] == "tile_grass_l2_left") && (chance(500))) {
if ((_local2[index(_local3, _local4 + 1)] == "") && ((_local4 + 1) < rows)) {
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_bot";
_local2[index(_local3, _local4)] = "tile_grass_l2_topL";
}
}
if ((_local2[index(_local3, _local4)] == "tile_grass_l2_bot") && (chance(500))) {
if ((_local2[index(_local3 - 1, _local4)] == "") && ((_local3 - 1) >= 0)) {
_local2[index(_local3 - 1, _local4)] = "tile_grass_l2_left";
_local2[index(_local3, _local4)] = "tile_grass_l2_botR";
} else if ((_local2[index(_local3 + 1, _local4)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_right";
_local2[index(_local3, _local4)] = "tile_grass_l2_botL";
}
}
if ((_local2[index(_local3, _local4)] == "tile_grass_l2_botR") && (chance(500))) {
if ((_local2[index(_local3 + 1, _local4)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_right";
_local2[index(_local3, _local4)] = "tile_grass_l2_botEdge";
} else if ((_local2[index(_local3, _local4 + 1)] == "") && ((_local4 + 1) > rows)) {
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_down";
_local2[index(_local3, _local4)] = "tile_grass_l2_rightEdge";
}
}
if ((_local2[index(_local3, _local4)] == "tile_grass_l2_right") && (chance(500))) {
if ((_local2[index(_local3, _local4 + 1)] == "") && ((_local4 + 1) < rows)) {
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_bot";
_local2[index(_local3, _local4)] = "tile_grass_l2_topR";
}
}
_local4++;
}
_local3++;
}
var _local7 = 0;
while (_local7 < 3) {
_local3 = _local5;
while (_local3 < size) {
_local4 = 0;
while (_local4 < rows) {
if (_local2[index(_local3, _local4)] == "tile_grass_l2_top") {
if (_local2[index(_local3 + 1, _local4)] == "tile_grass_l2_top") {
_local2[index(_local3, _local4)] = "tile_grass_l2_topL";
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_topR";
}
}
if (_local2[index(_local3, _local4)] == "tile_grass_l2_topEdge") {
if (_local2[index(_local3, _local4 + 1)] == "tile_grass_l2_topL") {
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_leftEdge";
}
}
if (_local2[index(_local3, _local4)] == "tile_grass_l2_topR") {
if (_local2[index(_local3 + 1, _local4)] == "tile_grass_l2_topL") {
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_topEdge";
_local2[index(_local3, _local4)] = "tile_grass_l2_topEdge";
} else if ((_local2[index(_local3 + 1, _local4)] == "") && ((_local3 + 1) < size)) {
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_right";
_local2[index(_local3, _local4)] = "tile_grass_l2_topEdge";
}
}
if (_local2[index(_local3, _local4)] == "tile_grass_l2_botR") {
if (_local2[index(_local3 + 1, _local4)] == "tile_grass_l2_botL") {
_local2[index(_local3, _local4)] = "tile_grass_l2_botEdge";
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_botEdge";
} else if (_local2[index(_local3, _local4 + 1)] == "tile_grass_l2_right") {
_local2[index(_local3, _local4)] = "tile_grass_l2_rightEdge";
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_botR";
}
}
if (_local2[index(_local3, _local4)] == "tile_grass_l2_botL") {
if (_local2[index(_local3, _local4 + 1)] == "tile_grass_l2_topEdge") {
_local2[index(_local3, _local4)] = "tile_grass_l2_leftEdge";
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_full";
} else if ((_local2[index(_local3, _local4 + 1)] == "") && ((_local4 + 1) < rows)) {
_local2[index(_local3, _local4)] = "tile_grass_l2_leftEdge";
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_bot";
}
}
if (_local2[index(_local3, _local4)] == "tile_grass_l2_left") {
if (_local2[index(_local3, _local4 - 1)] == "tile_grass_l2_left") {
_local2[index(_local3, _local4)] = "tile_grass_l2_botL";
_local2[index(_local3, _local4 - 1)] = "tile_grass_l2_topL";
} else if (_local2[index(_local3, _local4 + 1)] == "tile_grass_l2_topL") {
_local2[index(_local3, _local4)] = "tile_grass_l2_topL";
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_leftEdge";
}
}
if (_local2[index(_local3, _local4)] == "tile_grass_l2_right") {
if (_local2[index(_local3, _local4 + 1)] == "tile_grass_l2_left") {
_local2[index(_local3, _local4)] = "tile_grass_l2_topR";
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_botL";
} else if (_local2[index(_local3, _local4 - 1)] == "tile_grass_l2_left") {
_local2[index(_local3, _local4)] = "tile_grass_l2_botR";
_local2[index(_local3, _local4 - 1)] = "tile_grass_l2_topL";
} else if (_local2[index(_local3, _local4 + 1)] == "tile_grass_l2_right") {
_local2[index(_local3, _local4)] = "tile_grass_l2_topR";
_local2[index(_local3, _local4 + 1)] = "tile_grass_l2_botR";
} else if (_local2[index(_local3, _local4 - 1)] == "tile_grass_l2_down") {
_local2[index(_local3, _local4)] = "tile_grass_l2_botR";
_local2[index(_local3, _local4 - 1)] = "tile_grass_l2_vert";
} else if (_local2[index(_local3 + 1, _local4)] == "tile_grass_l2_down") {
_local2[index(_local3, _local4)] = "tile_grass_l2_hori";
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_botR";
}
}
if (_local2[index(_local3, _local4)] == "tile_grass_l2_bot") {
if (_local2[index(_local3 + 1, _local4)] == "tile_grass_l2_bot") {
_local2[index(_local3, _local4)] = "tile_grass_l2_botL";
_local2[index(_local3 + 1, _local4)] = "tile_grass_l2_botR";
}
}
_local4++;
}
_local3++;
}
_local7++;
}
_local6 = 0;
while (_local6 < _local2.length) {
if (_local2[_local6] != "") {
} else if ((_local6 < size) && (_local2[_local6] == "")) {
_local2[_local6] = "tile_grass_cap1";
} else {
_local2[_local6] = "tile_grass_blank";
}
_local6++;
}
_local6 = 0;
while (_local6 < _local2.length) {
if (_local2[_local6] == "tile_grass_blank") {
if (random(100) < 20) {
_local2[_local6] = "tile_grass_tuft1";
} else if (random(100) < 20) {
_local2[_local6] = "tile_grass_tuft2";
} else if (random(100) < 3) {
_local2[_local6] = "tile_grass_tuft3";
} else if (random(100) < 3) {
_local2[_local6] = "tile_grass_tuft4";
} else if (random(100) < 20) {
_local2[_local6] = "tile_grass_tuft5";
} else if (random(100) < 20) {
_local2[_local6] = "tile_grass_tuft6";
}
} else if (_local2[_local6] == "tile_grass_cap1") {
if (random(100) < 10) {
_local2[_local6] = "tile_grass_cap3";
} else if (random(100) < 5) {
_local2[_local6] = "tile_grass_cap4";
} else if (random(100) < 10) {
_local2[_local6] = "tile_grass_cap5";
} else if (random(100) < 30) {
_local2[_local6] = "tile_grass_cap2";
}
} else if (_local2[_local6] == "tile_grass_rock1") {
if (random(100) < 25) {
_local2[_local6] = "tile_grass_hole";
} else if (random(100) < 35) {
_local2[_local6] = "tile_grass_rock2";
}
} else if (_local2[_local6] == "tile_grass_shroom") {
if (random(100) < 50) {
_local2[_local6] = "tile_grass_shroom2";
}
} else if (_local2[_local6] == "tile_grass_stream_vert") {
if (random(100) < 25) {
_local2[_local6] = "tile_grass_stream_vert3";
}
} else if (_local2[_local6] == "tile_grass_stream_hori") {
if (random(100) < 25) {
_local2[_local6] = "tile_grass_stream_hori3";
}
}
_local6++;
}
if ((place == "end") || (place == "onezone")) {
size = psize;
_local2[index(size - 3, 0)] = (_local2[index(size - 1, 0)] = "tile_grass_cap2");
_local2[index(size - 2, 0)] = "tile_grass_cap_finish";
_local6 = 1;
while (_local6 < rows) {
if (random(2) == 0) {
_local2[index(size - 2, _local6)] = "tile_grass_tuft_finish";
} else {
_local2[index(size - 2, _local6)] = "tile_grass_tuft_finish2";
}
_local6++;
}
}
return(_local2);
}
}
Symbol 2922 MovieClip [__Packages.CHA_cheapskate] Frame 0
class CHA_cheapskate
{
var psize, size, rows;
function CHA_cheapskate (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > rows)) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function CreateMap(place) {
var _local2 = new Array(rows * size);
var _local6 = 0;
while (_local6 < _local2.length) {
_local2[_local6] = "";
_local6++;
}
var _local8 = 1;
if (place == "end") {
size = size - 3;
} else if (place == "start") {
_local8 = 8;
} else if (place == "onezone") {
size = size - 3;
_local8 = 8;
}
_local6 = 0;
for ( ; _local6 < size ; _local6++) {
if (_local2[_local6] != "") {
} else if ((_local6 % 5) == 0) {
_local2[_local6] = "tile_metal_cap_post1";
} else if ((((_local6 + 2) < size) && (_local2[_local6 + 1] == "")) && (_local2[_local6 + 2] == "")) {
if (chance(200)) {
_local2[_local6] = "tile_metal_cap_wall1";
_local2[_local6 + 1] = "empty";
_local2[_local6 + 2] = "empty";
continue;
}
} else if (((_local6 + 1) < size) && (_local2[_local6 + 1] == "")) {
if (chance(400)) {
_local2[_local6] = "tile_metal_cap_plug";
_local2[_local6 + 1] = "empty";
} else if (chance(200)) {
_local2[_local6] = "tile_metal_cap_wall2";
_local2[_local6 + 1] = "empty";
} else if (chance(200)) {
_local2[_local6] = "tile_metal_cap_wall3";
_local2[_local6 + 1] = "empty";
}
}
}
var _local3 = _local8;
while (_local3 < size) {
var _local4 = 1;
while (_local4 < rows) {
if (chance(250)) {
if (((_local4 == 1) && ((_local3 + 1) < size)) && (chance(50))) {
_local2[index(_local3, _local4)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3, _local4 + 2)] = (_local2[index(_local3 + 1, _local4 + 2)] = (_local2[index(_local3, _local4 + 3)] = (_local2[index(_local3 + 1, _local4 + 3)] = (_local2[index(_local3, _local4 + 4)] = (_local2[index(_local3 + 1, _local4 + 4)] = (_local2[index(_local3, _local4 + 5)] = (_local2[index(_local3 + 1, _local4 + 5)] = "tile_metal_high1"))))))))))));
} else if ((((_local4 + 3) < rows) && ((_local3 + 3) < size)) && (chance(50))) {
_local2[index(_local3, _local4)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 2, _local4)] = (_local2[index(_local3 + 3, _local4)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3, _local4 + 2)] = (_local2[index(_local3 + 3, _local4 + 1)] = (_local2[index(_local3 + 3, _local4 + 2)] = (_local2[index(_local3, _local4 + 3)] = (_local2[index(_local3 + 1, _local4 + 3)] = (_local2[index(_local3 + 2, _local4 + 3)] = (_local2[index(_local3 + 3, _local4 + 3)] = "tile_metal_mid1")))))))))));
_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3 + 1, _local4 + 2)] = (_local2[index(_local3 + 2, _local4 + 1)] = (_local2[index(_local3 + 2, _local4 + 2)] = "tile_metal_high1")));
} else if ((((_local4 + 2) < rows) && ((_local3 + 4) < size)) && (chance(50))) {
_local2[index(_local3, _local4)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3, _local4 + 2)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3 + 1, _local4 + 2)] = (_local2[index(_local3 + 2, _local4)] = (_local2[index(_local3 + 2, _local4 + 2)] = (_local2[index(_local3 + 3, _local4)] = (_local2[index(_local3 + 3, _local4 + 1)] = (_local2[index(_local3 + 3, _local4 + 2)] = (_local2[index(_local3 + 4, _local4)] = (_local2[index(_local3 + 4, _local4 + 1)] = (_local2[index(_local3 + 4, _local4 + 2)] = "tile_metal_mid1")))))))))))));
_local2[index(_local3 + 2, _local4 + 1)] = "tile_metal_high1";
} else if ((((_local4 + 3) < rows) && ((_local3 + 1) < size)) && (chance(100))) {
_local2[index(_local3, _local4)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3, _local4 + 2)] = (_local2[index(_local3, _local4 + 3)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 1, _local4 + 1)] = (_local2[index(_local3 + 1, _local4 + 2)] = (_local2[index(_local3 + 1, _local4 + 3)] = "tile_metal_mid1")))))));
} else if ((((_local4 + 2) < rows) && ((_local3 + 1) < size)) && chance(100)) {
_local2[index(_local3, _local4)] = (_local2[index(_local3, _local4 + 1)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 1, _local4 + 1)] = "tile_metal_mid1")));
} else if ((((_local4 + 1) < rows) && ((_local3 + 3) < size)) && chance(100)) {
_local2[index(_local3, _local4)] = (_local2[index(_local3 + 1, _local4)] = (_local2[index(_local3 + 2, _local4)] = (_local2[index(_local3 + 3, _local4)] = "tile_metal_mid1")));
}
}
_local4++;
}
_local3++;
}
var _local4 = 1;
while (_local4 < rows) {
_local3 = _local8;
while (_local3 < size) {
var _local5 = false;
if (((_local2[index(_local3, _local4 - 1)] == "tile_metal_cap_plug") || (_local2[index(_local3, _local4 - 1)] == "tile_metal_cable1")) || (_local2[index(_local3, _local4 - 1)] == "tile_metal_cable_port")) {
if (_local2[index(_local3, _local4)] == "tile_metal_mid1") {
_local2[index(_local3, _local4)] = "tile_metal_mid_cable";
} else if (_local2[index(_local3, _local4)] == "tile_metal_high1") {
_local2[index(_local3, _local4)] = "tile_metal_high_cable";
} else {
_local2[index(_local3, _local4)] = "tile_metal_cable1";
}
_local5 = true;
} else if ((_local2[index(_local3, _local4 - 1)] == "tile_metal_mid_cable") || (_local2[index(_local3, _local4 - 1)] == "tile_metal_mid_cable_port")) {
if (_local2[index(_local3, _local4)] == "tile_metal_mid1") {
_local2[index(_local3, _local4)] = "tile_metal_mid_cable";
} else if (_local2[index(_local3, _local4)] == "tile_metal_high1") {
_local2[index(_local3, _local4)] = "tile_metal_high_cable";
} else {
_local2[index(_local3, _local4)] = "tile_metal_cable_port";
}
_local5 = true;
} else if (_local2[index(_local3, _local4 - 1)] == "tile_metal_high_cable") {
if (_local2[index(_local3, _local4)] == "tile_metal_high1") {
_local2[index(_local3, _local4)] = "tile_metal_high_cable";
} else if (_local2[index(_local3, _local4)] == "tile_metal_mid1") {
_local2[index(_local3, _local4)] = "tile_metal_mid_cable_port";
} else {
_local2[index(_local3, _local4)] = "tile_metal_cable_port";
}
_local5 = true;
}
if ((_local4 == 1) && (_local5)) {
if ((((((_local2[index(_local3 + 1, _local4)] != "tile_metal_red") && (_local2[index(_local3 + 1, _local4 + 1)] != "tile_metal_red")) && (_local2[index(_local3 + 1, _local4 + 2)] != "tile_metal_red")) && (_local2[index(_local3 + 1, _local4 + 3)] != "tile_metal_red")) && (_local2[index(_local3 + 1, _local4 + 4)] != "tile_metal_red")) && (_local2[index(_local3 + 1, _local4 + 5)] != "tile_metal_red")) {
var _local7 = random(6) + 1;
_local2[index(_local3 + 1, _local7)] = "tile_metal_red";
}
}
_local3++;
}
_local4++;
}
_local4 = 1;
while (_local4 < rows) {
_local3 = _local8;
while (_local3 < size) {
if (_local2[index(_local3, _local4)] != "") {
} else if (chance(25)) {
_local2[index(_local3, _local4)] = "tile_metal_rubble1";
} else if (chance(25)) {
_local2[index(_local3, _local4)] = "tile_metal_plat";
} else if (chance(20)) {
_local2[index(_local3, _local4)] = "tile_metal_post1";
} else if (chance(120)) {
_local2[index(_local3, _local4)] = "tile_metal_spring";
} else if (chance(20)) {
_local2[index(_local3, _local4)] = "tile_metal_fissure";
} else if (chance(10)) {
_local2[index(_local3, _local4)] = "tile_metal_carrot";
}
_local3++;
}
_local4++;
}
_local6 = 0;
while (_local6 < _local2.length) {
if (_local2[_local6] != "") {
} else if (_local6 < size) {
_local2[_local6] = "tile_metal_cap1";
} else {
_local2[_local6] = "tile_metal_blank";
}
_local6++;
}
_local6 = 0;
while (_local6 < _local2.length) {
if (_local2[_local6] == "tile_metal_blank") {
if (random(100) < 20) {
_local2[_local6] = "tile_metal_floor1";
} else if (random(100) < 20) {
_local2[_local6] = "tile_metal_floor2";
} else if (random(100) < 20) {
_local2[_local6] = "tile_metal_floor3";
} else if (random(100) < 5) {
_local2[_local6] = "tile_metal_floor4";
} else if (chance(20)) {
_local2[_local6] = "tile_metal_grass";
} else if (random(100) < 10) {
_local2[_local6] = "tile_metal_floor5";
} else if (random(100) < 10) {
_local2[_local6] = "tile_metal_floor6";
} else if (random(100) < 20) {
_local2[_local6] = "tile_metal_floor7";
}
} else if (_local2[_local6] == "tile_metal_cap1") {
if (random(100) < 20) {
_local2[_local6] = "tile_metal_cap2";
} else if (random(100) < 20) {
_local2[_local6] = "tile_metal_cap3";
}
} else if (_local2[_local6] == "tile_metal_cap_post1") {
if (random(100) < 30) {
_local2[_local6] = "tile_metal_cap_post2";
} else if (random(100) < 30) {
_local2[_local6] = "tile_metal_cap_post3";
} else if (random(100) < 30) {
_local2[_local6] = "tile_metal_cap_postwall";
}
} else if (_local2[_local6] == "tile_metal_rubble1") {
if (random(100) < 50) {
_local2[_local6] = "tile_metal_rubble2";
}
} else if (_local2[_local6] == "tile_metal_mid1") {
if (random(100) < 30) {
_local2[_local6] = "tile_metal_mid2";
} else if (random(100) < 30) {
_local2[_local6] = "tile_metal_mid3";
} else if (random(100) < 40) {
_local2[_local6] = "tile_metal_mid4";
} else if (random(100) < 10) {
_local2[_local6] = "tile_metal_midburner";
}
} else if (_local2[_local6] == "tile_metal_spring") {
if (chance(400)) {
_local2[_local6] = "tile_metal_bouncer";
}
} else if (_local2[_local6] == "tile_metal_high1") {
if (random(100) < 20) {
_local2[_local6] = "tile_metal_high2";
}
}
_local6++;
}
if ((place == "end") || (place == "onezone")) {
size = psize;
_local2[index(size - 3, 0)] = (_local2[index(size - 1, 0)] = "tile_metal_cap2");
_local2[index(size - 2, 0)] = "tile_metal_cap_finish";
_local6 = 1;
while (_local6 < rows) {
if (random(2) == 0) {
_local2[index(size - 2, _local6)] = "tile_metal_floor_finish1";
} else {
_local2[index(size - 2, _local6)] = "tile_metal_floor_finish2";
}
_local6++;
}
}
passcheck(_local2, _local8);
return(_local2);
}
function passcheck(a, safe) {
var _local7 = new Array("t", "t", "t", "t", "t", "t");
var _local9 = new Array("t", "t", "t", "t", "t", "t");
var _local2 = new Array("f", "f", "f", "f", "f", "f");
var _local6 = safe;
while (_local6 < (size - 2)) {
var _local3 = 0;
while (_local3 < (rows - 1)) {
var _local4 = a[index(_local6, _local3 + 1)];
if (((_local4 == "tile_metal_post1") || (_local4 == "tile_metal_rubble1")) || (_local4 == "tile_metal_rubble2")) {
_local2[_local3] = "n";
} else if ((_local7[_local3] == "t") || (_local9[_local3] == "t")) {
_local2[_local3] = "t";
}
_local3++;
}
_local3 = 0;
while (_local3 < (rows - 1)) {
if (_local2[_local3] == "f") {
if (((((_local3 > 0) && (_local2[_local3 - 1] == "t")) || ((_local3 > 1) && (_local2[_local3 - 2] == "t"))) || ((_local3 < (rows - 2)) && (_local2[_local3 + 1] == "t"))) || ((_local3 < (rows - 3)) && (_local2[_local3 + 2] == "t"))) {
_local2[_local3] = "t";
}
}
_local3++;
}
var _local10 = false;
_local3 = 0;
while (_local3 < (rows - 1)) {
if ((_local2[_local3] == "t") || (_local7[_local3] == "t")) {
_local10 = true;
}
_local3++;
}
if (!_local10) {
var _local8 = 0;
_local3 = 0;
while (_local3 < (rows - 1)) {
if (_local9[_local3] == "t") {
_local2[_local3] = "t";
a[index(_local6, _local3 + 1)] = "tile_metal_blank";
_local8++;
}
if (_local8 == 2) {
break;
}
_local3++;
}
}
_local9 = _local7.slice();
_local7 = _local2.slice();
var _local5 = 0;
while (_local5 < 7) {
_local2[_local5] = "f";
_local5++;
}
_local6++;
}
}
}
Symbol 2923 MovieClip [__Packages.CHA_boardwalk] Frame 0
class CHA_boardwalk
{
var psize, size, rows;
function CHA_boardwalk (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > rows)) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function notsand(t) {
if (((t == "tile_tropic_blank") || (t == "tile_tropic_finish1")) || (t == "tile_tropic_finish2")) {
return(false);
}
return(true);
}
function issand(t) {
return(!notsand(t));
}
function CreateMap(place) {
var _local3 = new Array(rows * size);
var _local7 = 0;
while (_local7 < _local3.length) {
_local3[_local7] = "";
_local7++;
}
var _local11 = 0;
if (place == "end") {
size = size - 3;
} else if (place == "start") {
_local11 = 8;
} else if (place == "onezone") {
size = size - 3;
_local11 = 8;
}
var _local4 = _global.exitrow;
var _local13 = 0;
var _local8 = _local11;
while (_local8 < size) {
_local3[index(_local8, _local4)] = "tile_tropic_walk";
_local3[index(_local8, _local4 + 2)] = "tile_tropic_walk";
var _local5 = -1;
var _local9 = false;
var _local10 = 0;
while (!_local9) {
_local5 = random(4);
if (_local5 == 3) {
_local5 = _local13;
}
if (((((_local5 == 0) && ((_local4 < 3) || (_local3[index(_local8 + 1, _local4 - 2)] == ""))) && ((_local4 > (rows - 3)) || (_local3[index(_local8 + 1, _local4 + 2)] == ""))) || ((((_local5 == 1) && (((_local4 > 1) && (_local3[index(_local8, _local4 - 1)] == "")) && (_local3[index(_local8 - 1, _local4 - 1)] == ""))) && ((_local8 < 3) || (_local3[index(_local8 - 2, _local4)] == ""))) && ((_local8 > (size - 3)) || (_local3[index(_local8 + 2, _local4)] == "")))) || ((((_local5 == 2) && (((_local4 < (rows - 1)) && (_local3[index(_local8, _local4 + 1)] == "")) && (_local3[index(_local8 - 1, _local4 + 1)] == ""))) && ((_local8 < 3) || (_local3[index(_local8 - 2, _local4)] == ""))) && ((_local8 > (size - 3)) || (_local3[index(_local8 + 2, _local4)] == "")))) {
_local9 = true;
}
if (!_local9) {
_local10++;
if (_local10 > 10) {
_local5 = 0;
_local9 = true;
}
}
}
if (_local5 == 0) {
} else if (_local5 == 1) {
_local8--;
_local4--;
} else if (_local5 == 2) {
_local8--;
_local4++;
}
_local13 = _local5;
_local8++;
}
_global.exitrow = _local4;
var _local12 = 0;
while (_local12 < 3) {
_local8 = 0;
while (_local8 < size) {
var _local6 = 1;
while (_local6 < rows) {
if (_local3[index(_local8, _local6)] == "tile_tropic_walk") {
if (((((((_local3[index(_local8 + 1, _local6)] == "") && (_local3[index(_local8 + 2, _local6)] == "")) && (_local3[index(_local8 + 3, _local6)] == "")) && ((_local6 == 0) || (_local3[index(_local8 + 1, _local6 - 1)] == ""))) && ((_local6 == (rows - 1)) || (_local3[index(_local8 + 1, _local6 + 1)] == ""))) && (chance(600))) && (_local8 < (size - 4))) {
if (chance(100)) {
_local3[index(_local8 + 1, _local6)] = "tile_tropic_walk_broken";
} else {
_local3[index(_local8 + 1, _local6)] = "tile_tropic_walk";
}
}
if (((((((_local3[index(_local8 - 1, _local6)] == "") && (_local3[index(_local8 - 2, _local6)] == "")) && (_local3[index(_local8 - 3, _local6)] == "")) && ((_local6 == 0) || (_local3[index(_local8 - 1, _local6 - 1)] == ""))) && ((_local6 == (rows - 1)) || (_local3[index(_local8 - 1, _local6 + 1)] == ""))) && (chance(600))) && (_local8 > _local11)) {
if (chance(50)) {
_local3[index(_local8 - 1, _local6)] = "tile_tropic_walk_broken";
} else {
_local3[index(_local8 - 1, _local6)] = "tile_tropic_walk";
}
}
if (((((_local3[index(_local8, _local6 - 1)] == "") && ((_local8 == 0) || (_local3[index(_local8 - 1, _local6 - 1)] == ""))) && ((_local8 == (size - 1)) || (_local3[index(_local8 + 1, _local6 - 1)] == ""))) && (chance(300))) && (_local6 > 1)) {
if (chance(50)) {
_local3[index(_local8, _local6 - 1)] = "tile_tropic_walk_broken";
} else {
_local3[index(_local8, _local6 - 1)] = "tile_tropic_walk";
}
_local6 = _local6 + 2;
}
if (((((_local3[index(_local8, _local6 + 1)] == "") && ((_local8 == 0) || (_local3[index(_local8 - 1, _local6 + 1)] == ""))) && ((_local8 == (size - 1)) || (_local3[index(_local8 + 1, _local6 + 1)] == ""))) && (chance(300))) && (_local6 < (rows - 1))) {
if (chance(50)) {
_local3[index(_local8, _local6 + 1)] = "tile_tropic_walk_broken";
} else {
_local3[index(_local8, _local6 + 1)] = "tile_tropic_walk";
}
_local6 = _local6 + 2;
}
}
_local6++;
}
_local8++;
}
_local12++;
}
if ((place == "end") || (place == "onezone")) {
size = psize;
_local3[index(size - 3, 1)] = "tile_tropic_ocean_topR";
_local3[index(size - 2, 1)] = "tile_tropic_cap_finish";
_local3[index(size - 1, 1)] = "tile_tropic_ocean_botEdge";
_local7 = 2;
while (_local7 < rows) {
_local3[index(size - 1, _local7)] = "tile_tropic_blank";
if (random(2) == 0) {
_local3[index(size - 2, _local7)] = "tile_tropic_finish1";
} else {
_local3[index(size - 2, _local7)] = "tile_tropic_finish2";
}
if (_local3[index(size - 3, _local7)] == "") {
_local3[index(size - 3, _local7)] = "tile_tropic_ocean_rightEdge";
}
_local7++;
}
}
_local8 = 0;
while (_local8 < size) {
var _local6 = 1;
while (_local6 < rows) {
if (_local3[index(_local8, _local6)] == "") {
if (chance(5)) {
_local3[index(_local8, _local6)] = "tile_tropic_walk_broken";
} else {
_local3[index(_local8, _local6)] = "tile_tropic_ocean_open";
}
}
_local6++;
}
_local8++;
}
_local7 = 0;
while (_local7 < _local3.length) {
if ((((_local3[_local7] == "tile_tropic_walk") && (_local3[_local7 + 1] == "tile_tropic_walk")) && (_local3[_local7 + 2] == "tile_tropic_walk")) && (chance(300))) {
_local3[_local7 + 1] = "tile_tropic_walk_broken";
}
if (_local3[_local7] == "tile_tropic_walk") {
if (chance(100)) {
_local3[_local7] = "tile_tropic_walk2";
}
}
if (_local3[_local7] == "tile_tropic_walk_broken") {
if (chance(400)) {
_local3[_local7] = "tile_tropic_walk_broken2";
}
}
_local7++;
}
return(_local3);
}
}
Symbol 2924 MovieClip [__Packages.CHA_powerdown] Frame 0
class CHA_powerdown
{
var psize, size, rows;
function CHA_powerdown (s, r) {
psize = (size = s);
rows = r;
}
function index(i, j) {
return(i + (j * psize));
}
function reserve(arr, i, j, x, y) {
if (((i + x) > size) || ((j + y) > rows)) {
return(false);
}
var _local3 = 0;
while (_local3 < x) {
var _local2 = 0;
while (_local2 < y) {
if (arr[index(i + _local3, j + _local2)] != "") {
return(false);
}
_local2++;
}
_local3++;
}
return(true);
}
function chance(amt) {
var _local1 = random(1000 - amt);
var _local2 = random(1000);
if ((_local2 >= _local1) && (_local2 <= (_local1 + amt))) {
return(true);
}
return(false);
}
function CreateMap(place) {
var _local3 = new Array(rows * size);
var _local7 = 0;
while (_local7 < _local3.length) {
_local3[_local7] = "";
_local7++;
}
var _local9 = 1;
if (place == "end") {
size = size - 3;
} else if (place == "start") {
_local9 = 8;
} else if (place == "onezone") {
size = size - 3;
_local9 = 8;
}
_local7 = 0;
for ( ; _local7 < size ; _local7++) {
if ((_local7 % 8) == 0) {
_local3[_local7] = "tile_metal_cap_post1";
} else if ((_local7 % 5) == 0) {
_local3[_local7] = "tile_metal_cap_plug";
_local3[_local7 + 1] = "empty";
} else if (_local3[_local7] == "") {
if ((((_local7 + 2) < size) && (_local3[_local7 + 1] == "")) && (_local3[_local7 + 2] == "")) {
if (chance(200)) {
_local3[_local7] = "tile_metal_cap_wall1";
_local3[_local7 + 1] = "empty";
_local3[_local7 + 2] = "empty";
continue;
}
} else if (((_local7 + 1) < size) && (_local3[_local7 + 1] == "")) {
if (chance(200)) {
_local3[_local7] = "tile_metal_cap_wall2";
_local3[_local7 + 1] = "empty";
} else if (chance(200)) {
_local3[_local7] = "tile_metal_cap_wall3";
_local3[_local7 + 1] = "empty";
}
}
}
}
var _local4 = _local9;
while (_local4 < size) {
var _local5 = 1;
while (_local5 < rows) {
if (chance(250)) {
if (((_local5 == 1) && ((_local4 + 1) < size)) && (chance(50))) {
_local3[index(_local4, _local5)] = (_local3[index(_local4 + 1, _local5)] = (_local3[index(_local4 + 1, _local5 + 1)] = (_local3[index(_local4, _local5 + 1)] = (_local3[index(_local4 + 1, _local5 + 1)] = (_local3[index(_local4, _local5 + 2)] = (_local3[index(_local4 + 1, _local5 + 2)] = (_local3[index(_local4, _local5 + 3)] = (_local3[index(_local4 + 1, _local5 + 3)] = (_local3[index(_local4, _local5 + 4)] = (_local3[index(_local4 + 1, _local5 + 4)] = (_local3[index(_local4, _local5 + 5)] = (_local3[index(_local4 + 1, _local5 + 5)] = "tile_metal_high1"))))))))))));
} else if ((((_local5 + 3) < rows) && ((_local4 + 3) < size)) && (chance(50))) {
_local3[index(_local4, _local5)] = (_local3[index(_local4 + 1, _local5)] = (_local3[index(_local4 + 2, _local5)] = (_local3[index(_local4 + 3, _local5)] = (_local3[index(_local4, _local5 + 1)] = (_local3[index(_local4, _local5 + 2)] = (_local3[index(_local4 + 3, _local5 + 1)] = (_local3[index(_local4 + 3, _local5 + 2)] = (_local3[index(_local4, _local5 + 3)] = (_local3[index(_local4 + 1, _local5 + 3)] = (_local3[index(_local4 + 2, _local5 + 3)] = (_local3[index(_local4 + 3, _local5 + 3)] = "tile_metal_mid1")))))))))));
_local3[index(_local4 + 1, _local5 + 1)] = (_local3[index(_local4 + 1, _local5 + 2)] = (_local3[index(_local4 + 2, _local5 + 1)] = (_local3[index(_local4 + 2, _local5 + 2)] = "tile_metal_high1")));
} else if ((((_local5 + 2) < rows) && ((_local4 + 4) < size)) && (chance(50))) {
_local3[index(_local4, _local5)] = (_local3[index(_local4, _local5 + 1)] = (_local3[index(_local4, _local5 + 2)] = (_local3[index(_local4 + 1, _local5)] = (_local3[index(_local4 + 1, _local5 + 1)] = (_local3[index(_local4 + 1, _local5 + 2)] = (_local3[index(_local4 + 2, _local5)] = (_local3[index(_local4 + 2, _local5 + 2)] = (_local3[index(_local4 + 3, _local5)] = (_local3[index(_local4 + 3, _local5 + 1)] = (_local3[index(_local4 + 3, _local5 + 2)] = (_local3[index(_local4 + 4, _local5)] = (_local3[index(_local4 + 4, _local5 + 1)] = (_local3[index(_local4 + 4, _local5 + 2)] = "tile_metal_mid1")))))))))))));
_local3[index(_local4 + 2, _local5 + 1)] = "tile_metal_high1";
} else if ((((_local5 + 3) < rows) && ((_local4 + 1) < size)) && (chance(100))) {
_local3[index(_local4, _local5)] = (_local3[index(_local4, _local5 + 1)] = (_local3[index(_local4, _local5 + 2)] = (_local3[index(_local4, _local5 + 3)] = (_local3[index(_local4 + 1, _local5)] = (_local3[index(_local4 + 1, _local5 + 1)] = (_local3[index(_local4 + 1, _local5 + 2)] = (_local3[index(_local4 + 1, _local5 + 3)] = "tile_metal_mid1")))))));
} else if ((((_local5 + 2) < rows) && ((_local4 + 1) < size)) && chance(100)) {
_local3[index(_local4, _local5)] = (_local3[index(_local4, _local5 + 1)] = (_local3[index(_local4 + 1, _local5)] = (_local3[index(_local4 + 1, _local5 + 1)] = "tile_metal_mid1")));
} else if ((((_local5 + 1) < rows) && ((_local4 + 3) < size)) && chance(100)) {
_local3[index(_local4, _local5)] = (_local3[index(_local4 + 1, _local5)] = (_local3[index(_local4 + 2, _local5)] = (_local3[index(_local4 + 3, _local5)] = "tile_metal_mid1")));
}
}
_local5++;
}
_local4++;
}
var _local5 = 1;
while (_local5 < rows) {
_local4 = _local9;
while (_local4 < size) {
var _local6 = false;
if (((_local3[index(_local4, _local5 - 1)] == "tile_metal_cap_plug") || (_local3[index(_local4, _local5 - 1)] == "tile_metal_cable1")) || (_local3[index(_local4, _local5 - 1)] == "tile_metal_cable_port")) {
if (_local3[index(_local4, _local5)] == "tile_metal_mid1") {
_local3[index(_local4, _local5)] = "tile_metal_mid_cable";
} else if (_local3[index(_local4, _local5)] == "tile_metal_high1") {
_local3[index(_local4, _local5)] = "tile_metal_high_cable";
} else {
_local3[index(_local4, _local5)] = "tile_metal_cable1";
}
_local6 = true;
} else if ((_local3[index(_local4, _local5 - 1)] == "tile_metal_mid_cable") || (_local3[index(_local4, _local5 - 1)] == "tile_metal_mid_cable_port")) {
if (_local3[index(_local4, _local5)] == "tile_metal_mid1") {
_local3[index(_local4, _local5)] = "tile_metal_mid_cable";
} else if (_local3[index(_local4, _local5)] == "tile_metal_high1") {
_local3[index(_local4, _local5)] = "tile_metal_high_cable";
} else {
_local3[index(_local4, _local5)] = "tile_metal_cable_port";
}
_local6 = true;
} else if (_local3[index(_local4, _local5 - 1)] == "tile_metal_high_cable") {
if (_local3[index(_local4, _local5)] == "tile_metal_high1") {
_local3[index(_local4, _local5)] = "tile_metal_high_cable";
} else if (_local3[index(_local4, _local5)] == "tile_metal_mid1") {
_local3[index(_local4, _local5)] = "tile_metal_mid_cable_port";
} else {
_local3[index(_local4, _local5)] = "tile_metal_cable_port";
}
_local6 = true;
}
if ((_local5 == 1) && (_local6)) {
if ((((((_local3[index(_local4 + 1, _local5)] != "tile_metal_red") && (_local3[index(_local4 + 1, _local5 + 1)] != "tile_metal_red")) && (_local3[index(_local4 + 1, _local5 + 2)] != "tile_metal_red")) && (_local3[index(_local4 + 1, _local5 + 3)] != "tile_metal_red")) && (_local3[index(_local4 + 1, _local5 + 4)] != "tile_metal_red")) && (_local3[index(_local4 + 1, _local5 + 5)] != "tile_metal_red")) {
var _local8 = random(6) + 1;
_local3[index(_local4 + 1, _local8)] = "tile_metal_red";
_root.powerleft++;
}
}
_local4++;
}
_local5++;
}
_local5 = 1;
while (_local5 < rows) {
_local4 = _local9;
while (_local4 < size) {
if (_local3[index(_local4, _local5)] != "") {
} else if (chance(25)) {
_local3[index(_local4, _local5)] = "tile_metal_rubble1";
} else if (chance(25)) {
_local3[index(_local4, _local5)] = "tile_metal_plat";
} else if (chance(20)) {
_local3[index(_local4, _local5)] = "tile_metal_post1";
} else if (chance(40)) {
_local3[index(_local4, _local5)] = "tile_metal_spring";
} else if (chance(20)) {
_local3[index(_local4, _local5)] = "tile_metal_fissure";
} else if (chance(10)) {
_local3[index(_local4, _local5)] = "tile_metal_carrot";
}
_local4++;
}
_local5++;
}
_local7 = 0;
while (_local7 < _local3.length) {
if (_local3[_local7] != "") {
} else if (_local7 < size) {
_local3[_local7] = "tile_metal_cap1";
} else {
_local3[_local7] = "tile_metal_blank";
}
_local7++;
}
_local7 = 0;
while (_local7 < _local3.length) {
if (_local3[_local7] == "tile_metal_blank") {
if (random(100) < 20) {
_local3[_local7] = "tile_metal_floor1";
} else if (random(100) < 20) {
_local3[_local7] = "tile_metal_floor2";
} else if (random(100) < 20) {
_local3[_local7] = "tile_metal_floor3";
} else if (random(100) < 5) {
_local3[_local7] = "tile_metal_floor4";
} else if (chance(20)) {
_local3[_local7] = "tile_metal_grass";
} else if (random(100) < 10) {
_local3[_local7] = "tile_metal_floor5";
} else if (random(100) < 10) {
_local3[_local7] = "tile_metal_floor6";
} else if (random(100) < 20) {
_local3[_local7] = "tile_metal_floor7";
}
} else if (_local3[_local7] == "tile_metal_cap1") {
if (random(100) < 20) {
_local3[_local7] = "tile_metal_cap2";
} else if (random(100) < 20) {
_local3[_local7] = "tile_metal_cap3";
}
} else if (_local3[_local7] == "tile_metal_cap_post1") {
if (random(100) < 30) {
_local3[_local7] = "tile_metal_cap_post2";
} else if (random(100) < 30) {
_local3[_local7] = "tile_metal_cap_post3";
} else if (random(100) < 30) {
_local3[_local7] = "tile_metal_cap_postwall";
}
} else if (_local3[_local7] == "tile_metal_rubble1") {
if (random(100) < 50) {
_local3[_local7] = "tile_metal_rubble2";
}
} else if (_local3[_local7] == "tile_metal_mid1") {
if (random(100) < 30) {
_local3[_local7] = "tile_metal_mid2";
} else if (random(100) < 30) {
_local3[_local7] = "tile_metal_mid3";
} else if (random(100) < 40) {
_local3[_local7] = "tile_metal_mid4";
} else if (random(100) < 10) {
_local3[_local7] = "tile_metal_midburner";
}
} else if (_local3[_local7] == "tile_metal_spring") {
if (chance(400)) {
_local3[_local7] = "tile_metal_bouncer";
}
} else if (_local3[_local7] == "tile_metal_high1") {
if (random(100) < 20) {
_local3[_local7] = "tile_metal_high2";
}
}
_local7++;
}
if ((place == "end") || (place == "onezone")) {
size = psize;
_local3[index(size - 3, 0)] = (_local3[index(size - 1, 0)] = "tile_metal_cap2");
_local3[index(size - 2, 0)] = "tile_metal_cap_finish";
_local7 = 1;
while (_local7 < rows) {
if (random(2) == 0) {
_local3[index(size - 2, _local7)] = "tile_metal_floor_finish1";
} else {
_local3[index(size - 2, _local7)] = "tile_metal_floor_finish2";
}
_local7++;
}
}
passcheck(_local3, _local9);
return(_local3);
}
function passcheck(a, safe) {
var _local7 = new Array("t", "t", "t", "t", "t", "t");
var _local9 = new Array("t", "t", "t", "t", "t", "t");
var _local2 = new Array("f", "f", "f", "f", "f", "f");
var _local6 = safe;
while (_local6 < (size - 2)) {
var _local3 = 0;
while (_local3 < (rows - 1)) {
var _local4 = a[index(_local6, _local3 + 1)];
if (((_local4 == "tile_metal_post1") || (_local4 == "tile_metal_rubble1")) || (_local4 == "tile_metal_rubble2")) {
_local2[_local3] = "n";
} else if ((_local7[_local3] == "t") || (_local9[_local3] == "t")) {
_local2[_local3] = "t";
}
_local3++;
}
_local3 = 0;
while (_local3 < (rows - 1)) {
if (_local2[_local3] == "f") {
if (((((_local3 > 0) && (_local2[_local3 - 1] == "t")) || ((_local3 > 1) && (_local2[_local3 - 2] == "t"))) || ((_local3 < (rows - 2)) && (_local2[_local3 + 1] == "t"))) || ((_local3 < (rows - 3)) && (_local2[_local3 + 2] == "t"))) {
_local2[_local3] = "t";
}
}
_local3++;
}
var _local10 = false;
_local3 = 0;
while (_local3 < (rows - 1)) {
if ((_local2[_local3] == "t") || (_local7[_local3] == "t")) {
_local10 = true;
}
_local3++;
}
if (!_local10) {
var _local8 = 0;
_local3 = 0;
while (_local3 < (rows - 1)) {
if (_local9[_local3] == "t") {
_local2[_local3] = "t";
a[index(_local6, _local3 + 1)] = "tile_metal_blank";
_local8++;
}
if (_local8 == 2) {
break;
}
_local3++;
}
}
_local9 = _local7.slice();
_local7 = _local2.slice();
var _local5 = 0;
while (_local5 < 7) {
_local2[_local5] = "f";
_local5++;
}
_local6++;
}
}
}
Symbol 2925 MovieClip [__Packages.Tile] Frame 0
class Tile extends MovieClip
{
var ID, empty, x, y, z, depth, maxcols, tileset, sync, shiftover, creature, hightile, mc, mcb, target, val, tilename, tiledesc;
function Tile (i, j, cols, ttype, preload, tset) {
super();
ID = ttype;
empty = false;
x = i;
y = j;
z = 0;
depth = -1;
maxcols = cols;
tileset = tset;
sync = false;
shiftover = false;
creature = "";
hightile = false;
fillContext();
if (ttype.indexOf("empty_") != -1) {
empty = true;
}
if ((tileset == "grass") || (tileset == "CHA_pointblitz")) {
if (((((((((((((((((((((((((((ID == "tile_grass_rock1") || (ID == "tile_grass_rock2")) || (ID == "tile_grass_tree1")) || (ID == "tile_grass_pond")) || (ID == "tile_grass_tree2")) || (ID == "tile_grass_tree2stump")) || (ID == "tile_grass_tree1stump")) || (ID == "tile_grass_l2_top")) || (ID == "tile_grass_l2_topEdge")) || (ID == "tile_grass_l2_topL")) || (ID == "tile_grass_l2_topR")) || (ID == "tile_grass_l2_bot")) || (ID == "tile_grass_l2_botEdge")) || (ID == "tile_grass_l2_botL")) || (ID == "tile_grass_l2_botR")) || (ID == "tile_grass_l2_right")) || (ID == "tile_grass_l2_left")) || (ID == "tile_grass_l2_rightEdge")) || (ID == "tile_grass_l2_leftEdge")) || (ID == "tile_grass_l2_full")) || (ID == "tile_grass_l2_vert")) || (ID == "tile_grass_l2_hori")) || (ID == "empty_tree1stump")) || (ID == "tile_grass_rockplat")) || (ID == "empty_rockplat")) || (ID == "tile_grass_carrot")) || (ID == "empty_carrot")) {
hightile = true;
} else {
hightile = false;
}
} else if (((tileset == "metal") || (tileset == "CHA_cheapskate")) || (tileset == "CHA_powerdown")) {
if (((((((((((((ID == "tile_metal_plat") || (ID == "tile_metal_post1")) || (ID == "tile_metal_mid1")) || (ID == "tile_metal_mid2")) || (ID == "tile_metal_mid3")) || (ID == "tile_metal_mid4")) || (ID == "tile_metal_midburner")) || (ID == "tile_metal_mid_cable")) || (ID == "tile_metal_cable_port")) || (ID == "tile_metal_mid_cable_port")) || (ID == "tile_metal_high1")) || (ID == "tile_metal_high2")) || (ID == "tile_metal_high_cable")) {
hightile = true;
} else {
hightile = false;
}
} else if (tileset == "CHA_checkers") {
if ((ID == "tile_checker_mid") || (ID == "tile_checker_high")) {
hightile = true;
} else {
hightile = false;
}
} else if (((tileset == "tropic") || (tileset == "CHA_buzzerdash")) || (tileset == "CHA_boardwalk")) {
if ((((((((((((((((((ID == "tile_tropic_ocean_botEdge") || (ID == "tile_tropic_ocean_leftEdge")) || (ID == "tile_tropic_ocean_rightEdge")) || (ID == "tile_tropic_ocean_topEdge")) || (ID == "tile_tropic_ocean_botL")) || (ID == "tile_tropic_ocean_botR")) || (ID == "tile_tropic_ocean_topL")) || (ID == "tile_tropic_ocean_topR")) || (ID == "tile_tropic_ocean_underL")) || (ID == "tile_tropic_ocean_underR")) || (ID == "tile_tropic_ocean_overL")) || (ID == "tile_tropic_ocean_overR")) || (ID == "tile_tropic_ocean_vert")) || (ID == "tile_tropic_ocean_hori")) || (ID == "tile_tropic_ocean_topDelta")) || (ID == "tile_tropic_ocean_midDelta")) || (ID == "tile_tropic_ocean_open")) || (ID == "tile_tropic_cap_finish")) {
sync = true;
} else if ((((ID == "tile_tropic_tree1") || (ID == "tile_tropic_castle")) || (ID == "tile_tropic_log_big")) || (ID == "empty_log_big")) {
hightile = true;
} else if ((ID == "tile_tropic_foiltree1") || (ID == "tile_tropic_foiltree2")) {
hightile = (shiftover = true);
} else {
hightile = false;
}
}
if (preload) {
loadmc();
}
}
function findDepth(d) {
var _local3 = d;
while (_local3 < (d + 250)) {
if (_global.depths[_local3] == false) {
_global.depths[_local3] = true;
depth = _local3;
return(_local3);
}
_local3++;
}
}
function loadCreature() {
if (creature != "") {
if (!hightile) {
mc.attachMovie(creature, "creature", 1234);
} else {
mcb.attachMovie(creature, "creature", 1234);
mcb.creature._y = mcb.creature._y - z;
}
}
}
function loadmc() {
if (empty) {
mc = _root.createEmptyMovieClip(("tile" + x) + (y * maxcols), (100 + x) + (y * maxcols));
mc._x = x * 36;
mc._y = 72 + (y * 36);
if (hightile) {
mcb = _root.createEmptyMovieClip(("tileb" + x) + (y * maxcols), 100101 + findDepth((y - 1) * 250));
mcb._x = mc._x;
mcb._y = mc._y;
}
loadCreature();
return(undefined);
}
mc = _root.attachMovie(ID, ("tile" + x) + (y * maxcols), (100 + x) + (y * maxcols));
mc._x = x * 36;
mc._y = 72 + (y * 36);
mc.cacheAsBitmap = true;
if (hightile) {
if (shiftover) {
y = y + 2;
}
mcb = _root.attachMovie(ID + "b", ("tileb" + x) + (y * maxcols), 100101 + findDepth((y - 1) * 250));
if (shiftover) {
y = y - 2;
}
mcb._x = mc._x;
mcb._y = mc._y;
mcb.cacheAsBitmap = true;
}
loadCreature();
if (tileset == "tropic") {
mc.wash.cacheAsBitmap = true;
}
}
function unloadmc() {
mc.removeMovieClip();
if (hightile) {
mcb.removeMovieClip();
if (depth > -1) {
_global.depths[depth] = false;
depth = -1;
}
}
}
function fillContext() {
if ((ID == "tile_empty") || (ID == "empty")) {
target = "empty";
val = "0";
tilename = "Empty";
tiledesc = "This is empty.";
} else if ((tileset == "grass") || (tileset == "CHA_pointblitz")) {
if (((((((ID == "tile_grass_blank") || (ID == "tile_grass_tuft1")) || (ID == "tile_grass_tuft2")) || (ID == "tile_grass_tuft3")) || (ID == "tile_grass_tuft4")) || (ID == "tile_grass_tuft5")) || (ID == "tile_grass_tuft6")) {
target = "walker";
val = "0";
tilename = "Grass";
tiledesc = "Bunnies like grass. No surprises.";
}
if ((ID == "tile_grass_carrot") || (ID == "empty_carrot")) {
target = "carrot";
val = "0";
tilename = "Golden Carrot";
tiledesc = "Bring a bunny here to make them stronger!";
} else if ((ID == "tile_grass_shroom") || (ID == "tile_grass_shroom2")) {
target = "bouncer";
val = "2";
tilename = "Mushrooms";
tiledesc = "Very bouncy but taste terrible.";
} else if ((ID == "tile_grass_rock1") || (ID == "tile_grass_rock2")) {
target = "noaccess";
val = "0";
tilename = "Rock";
tiledesc = "Bunnies have a hard time liking rocks.";
} else if (((ID == "tile_grass_tree1") || (ID == "empty_tree1")) || (ID == "tile_grass_tree2")) {
target = "noaccess";
val = "block";
tilename = "Tree";
tiledesc = "Bunnies think climbing trees would be easier with arms.";
} else if (ID == "tile_grass_hole") {
target = "noaccess";
val = "0";
tilename = "Fox Hole";
tiledesc = "Bunnies stay away from these when they don't feel like being eaten.";
} else if (((((((((((((((ID == "tile_grass_l2_top") || (ID == "tile_grass_l2_topEdge")) || (ID == "tile_grass_l2_topL")) || (ID == "tile_grass_l2_topR")) || (ID == "tile_grass_l2_bot")) || (ID == "tile_grass_l2_botEdge")) || (ID == "tile_grass_l2_botL")) || (ID == "tile_grass_l2_botR")) || (ID == "tile_grass_l2_right")) || (ID == "tile_grass_l2_left")) || (ID == "tile_grass_l2_rightEdge")) || (ID == "tile_grass_l2_leftEdge")) || (ID == "tile_grass_l2_full")) || (ID == "tile_grass_l2_vert")) || (ID == "tile_grass_l2_hori")) {
target = "walker";
val = "1";
tilename = "Plateau";
z = 30;
tiledesc = "Bunnies are not afraid of heights.";
} else if (((ID == "tile_grass_tree1stump") || (ID == "empty_tree1stump")) || (ID == "tile_grass_tree2stump")) {
target = "walker";
val = "1";
tilename = "Tree Stump";
z = 32;
tiledesc = "Stumps make good safegrounds.";
} else if (((((((((((ID == "tile_grass_stream_cap") || (ID == "tile_grass_stream_vert")) || (ID == "tile_grass_stream_hori")) || (ID == "tile_grass_stream_vert2")) || (ID == "tile_grass_stream_hori2")) || (ID == "tile_grass_stream_vert3")) || (ID == "tile_grass_stream_hori3")) || (ID == "tile_grass_stream_botL")) || (ID == "tile_grass_stream_botR")) || (ID == "tile_grass_stream_topL")) || (ID == "tile_grass_stream_topR")) {
target = "noaccess";
val = "0";
tilename = "Stream";
tiledesc = "Bunnies are terrible swimmers.";
} else if ((((ID == "tile_grass_stream_downdead") || (ID == "tile_grass_stream_updead")) || (ID == "tile_grass_stream_leftdead")) || (ID == "tile_grass_stream_rightdead")) {
target = "walker";
val = "0";
tilename = "Delta";
tiledesc = "The stream ends here so it is safe to cross.";
} else if ((ID == "tile_grass_pond") || (ID == "empty_pond")) {
target = "noaccess";
val = "0";
tilename = "Pond";
tiledesc = "Bunnies have more important things to do than take a bath.";
} else if (ID == "tile_grass_nettle") {
target = "trap";
val = "0";
tilename = "Stinging Nettle";
tiledesc = "Nettle gives bunnies a nasty sting.";
} else if ((ID == "tile_grass_tuft_finish") || (ID == "tile_grass_tuft_finish2")) {
target = "walker";
val = "0";
tilename = "Finish Line";
tiledesc = "What are you, a tortoise? Hurry up!";
} else if ((ID == "tile_grass_river") || (ID == "empty_river")) {
target = "noaccess";
val = "0";
tilename = "River";
tiledesc = "Anything this big has to have a trick to it.";
} else if (ID == "empty_riverpad") {
target = "walker";
val = "0";
tilename = "Lily Pad";
tiledesc = "This looks sturdy enough to cross on.";
} else if (ID == "empty_rivertarget") {
target = "trigger";
val = "1";
tilename = "River Platform";
tiledesc = "Suspicious? Better hop on it!";
} else if ((ID == "tile_grass_campfire") || (ID == "empty_campfire")) {
target = "walker";
val = "0";
tilename = "Campfire";
tiledesc = "Cool enough to walk across safely.";
} else if ((ID == "tile_grass_rockplat") || (ID == "empty_rockplat")) {
target = "walker";
val = "1";
tilename = "Rock Slab";
z = 10;
tiledesc = "How erratic.";
}
} else if ((((tileset == "metal") || (tileset == "CHA_checkers")) || (tileset == "CHA_cheapskate")) || (tileset == "CHA_powerdown")) {
if (((((ID == "tile_metal_blank") || (ID == "tile_metal_floor1")) || (ID == "tile_metal_floor2")) || (ID == "tile_metal_floor3")) || (ID == "tile_metal_floor7")) {
target = "walker";
val = "0";
tilename = "Concrete";
tiledesc = "Fascinating.";
} else if (((ID == "tile_metal_floor4") || (ID == "tile_metal_floor5")) || (ID == "tile_metal_floor6")) {
target = "walker";
val = "0";
tilename = "Paint Chips";
tiledesc = "This place is a wreck!";
} else if (ID == "tile_metal_grass") {
target = "walker";
val = "0";
tilename = "Patch Grass";
tiledesc = "Bunnies are happy nature is trying to take this place over.";
} else if ((ID == "tile_metal_carrot") || (ID == "empty_carrot")) {
target = "carrot";
val = "0";
tilename = "Golden Carrot";
tiledesc = "Bring a bunny here to make them stronger!";
} else if (((ID == "tile_metal_rubble1") || (ID == "tile_metal_rubble2")) || (ID == "tile_checker_rubble")) {
target = "noaccess";
val = "0";
tilename = "Rubble";
tiledesc = "Bunnies feel like the walls are collapsing in around them.";
} else if ((ID == "tile_metal_floor_finish1") || (ID == "tile_metal_floor_finish2")) {
target = "walker";
val = "0";
tilename = "Finish Line";
tiledesc = "Hurry up and get out of this dump!";
} else if (ID == "tile_metal_plat") {
target = "walker";
val = "1";
tilename = "Platform";
z = 14;
tiledesc = "Looks sturdy enough for a bunny.";
} else if ((((ID == "tile_metal_mid1") || (ID == "tile_metal_mid2")) || (ID == "tile_metal_mid3")) || (ID == "tile_metal_mid4")) {
target = "walker";
val = "1";
tilename = "Mid Level";
z = 18;
tiledesc = "Nothing special about this.";
} else if ((ID == "tile_metal_high1") || (ID == "tile_metal_high2")) {
target = "walker";
val = "2";
tilename = "High Level";
z = 30;
tiledesc = "Thing are looking up.";
} else if (ID == "tile_metal_post1") {
target = "noaccess";
val = "block";
tilename = "Support Beam";
tiledesc = "Doesn't look like it is supporting anything anymore.";
} else if ((ID == "tile_metal_spring") || (ID == "tile_checker_spring")) {
target = "bouncer";
val = "2";
tilename = "Loose Spring";
tiledesc = "Looks bouncy.";
} else if (ID == "tile_metal_bouncer") {
target = "bouncer";
val = "2";
tilename = "Lift Platform";
tiledesc = "Bunnies can always use a lift.";
} else if (((ID == "tile_metal_fissure") || (ID == "tile_metal_cable1")) || (ID == "tile_metal_cable_port")) {
target = "trap";
val = "0";
tilename = "Sparking Wires";
tiledesc = "Careful, the power is still on.";
} else if ((ID == "tile_metal_mid_cable") || (ID == "tile_metal_mid_cable_port")) {
target = "trap";
val = "0";
tilename = "Sparking Wires";
z = 18;
tiledesc = "Careful, the power is still on.";
} else if (ID == "tile_metal_high_cable") {
target = "trap";
val = "0";
tilename = "Sparking Wires";
z = 30;
tiledesc = "Careful, the power is still on.";
} else if (ID == "tile_metal_midburner") {
target = "trap";
val = "0";
tilename = "Burner";
z = 18;
tiledesc = "Bunnies dislike being roasted.";
} else if (ID == "tile_metal_red") {
target = "trigger";
val = "1";
tilename = "Power Toggle";
tiledesc = "Turns off the power of the cables next to it.";
} else if (ID == "tile_checker_black") {
target = "walker";
val = "0";
tilename = "Safe Tile";
tiledesc = "Hop between the black tiles!";
} else if (ID == "tile_checker_mid") {
target = "walker";
val = "0";
tilename = "Safe Tile";
z = 18;
tiledesc = "Crunches can't chase bunnies up here.";
} else if (ID == "tile_checker_high") {
target = "walker";
val = "0";
tilename = "Safe Tile";
z = 30;
tiledesc = "Crunches can't chase bunnies up here.";
} else if (ID == "tile_checker_red") {
target = "trap";
val = "0";
tilename = "Hot Plate";
tiledesc = "This is way too hot to walk on.";
}
} else if (((tileset == "tropic") || (tileset == "CHA_buzzerdash")) || (tileset == "CHA_boardwalk")) {
if ((((((ID == "tile_tropic_blank") || (ID == "tile_tropic_blank2")) || (ID == "tile_tropic_blank3")) || (ID == "tile_tropic_ocean_vert_end")) || (ID == "tile_tropic_ocean_left_end")) || (ID == "tile_tropic_ocean_right_end")) {
target = "walker";
val = "0";
tilename = "Sand";
tiledesc = "Nothing beats a sandy board on a sunny day.";
}
if ((ID == "tile_tropic_walk") || (ID == "tile_tropic_walk2")) {
target = "walker";
val = "0";
tilename = "Planks";
tiledesc = "Bunnies think whoever built all this is a nutcase.";
}
if ((ID == "tile_tropic_walk_broken") || (ID == "tile_tropic_walk_broken2")) {
target = "noaccess";
val = "0";
tilename = "Broken Planks";
tiledesc = "Sharp and not stable enough to stand on.";
} else if (ID == "tile_tropic_carrot") {
target = "carrot";
val = "0";
tilename = "Golden Carrot";
tiledesc = "Bring a bunny here to make them stronger!";
} else if ((((((((((((((((((ID == "tile_tropic_ocean_botEdge") || (ID == "tile_tropic_ocean_leftEdge")) || (ID == "tile_tropic_ocean_rightEdge")) || (ID == "tile_tropic_ocean_topEdge")) || (ID == "tile_tropic_ocean_botL")) || (ID == "tile_tropic_ocean_botR")) || (ID == "tile_tropic_ocean_topL")) || (ID == "tile_tropic_ocean_topR")) || (ID == "tile_tropic_ocean_underL")) || (ID == "tile_tropic_ocean_underR")) || (ID == "tile_tropic_ocean_overL")) || (ID == "tile_tropic_ocean_overR")) || (ID == "tile_tropic_ocean_vert")) || (ID == "tile_tropic_ocean_hori")) || (ID == "tile_tropic_ocean_topDelta")) || (ID == "tile_tropic_ocean_midDelta")) || (ID == "tile_tropic_ocean_open")) || (ID == "tile_tropic_foilstream")) {
target = "noaccess";
val = "0";
tilename = "Coast";
tiledesc = "Bunnies could get washed away if they walk here.";
} else if (((ID == "tile_tropic_finish1") || (ID == "tile_tropic_finish2")) || (ID == "tile_tropic_foilfinish")) {
target = "walker";
val = "0";
tilename = "Finish Line";
tiledesc = "The bunnies are getting sunburns because you are taking so long.";
} else if ((((((((ID == "tile_tropic_foil") || (ID == "tile_tropic_foil2")) || (ID == "tile_tropic_foil3")) || (ID == "tile_tropic_foil4")) || (ID == "tile_tropic_2foil")) || (ID == "tile_tropic_2foil2")) || (ID == "empty_foil")) || (ID == "tile_tropic_foiltree1")) {
target = "walker";
val = "0";
tilename = "Island Growth";
tiledesc = "Looks like the growth is pretty wild here.";
} else if ((ID == "tile_tropic_rocks") || (ID == "tile_tropic_rocks2")) {
target = "noaccess";
val = "0";
tilename = "Rock";
tiledesc = "Just rocking out.";
} else if (ID == "tile_tropic_castle") {
target = "walker";
val = "0";
tilename = "Sand Castle";
z = 20;
tiledesc = "Might be sturdy enough to stand on!";
} else if ((ID == "tile_tropic_tree1") || (ID == "empty_tree1")) {
target = "noaccess";
val = "0";
tilename = "Palm Trees";
tiledesc = "They're pretty, but in the way.";
} else if (((((ID == "tile_tropic_fern1") || (ID == "tile_tropic_fern2")) || (ID == "tile_tropic_foilfern1")) || (ID == "tile_tropic_foilfern2")) || (ID == "tile_tropic_foilfern3")) {
target = "walker";
val = "0";
tilename = "Fern";
tiledesc = "Looks like a bunny could squirm through this.";
} else if (((ID == "tile_tropic_puddle") || (ID == "empty_puddle")) || (ID == "tile_tropic_puddle_small")) {
target = "walker";
val = "0";
tilename = "Puddle";
tiledesc = "Time to get your feet wet.";
} else if (ID == "tile_tropic_sandbar") {
target = "walker";
val = "0";
tilename = "Sandbar";
tiledesc = "A bunny could sneak across here.";
} else if ((ID == "tile_tropic_log_big") || (ID == "empty_log_big")) {
target = "walker";
val = "0";
tilename = "Driftwood";
z = 20;
tiledesc = "Get a jump on everyone by jumping up here.";
} else if ((ID == "tile_tropic_spikeshell") || (ID == "tile_tropic_spikeshell2")) {
target = "trap";
val = "0";
tilename = "Spikey Shell";
tiledesc = "Very pretty, but those spikes look dangerous.";
} else if ((ID == "tile_tropic_urchin") || (ID == "tile_tropic_urchin2")) {
target = "bouncer";
val = "0";
tilename = "Sea Urchin";
tiledesc = "Bunnies think urchins don't mind being bounced on because urchins don't think.";
} else if ((ID == "tile_tropic_foiltree1") || (ID == "tile_tropic_foiltree2")) {
target = "walker";
val = "0";
tilename = "Palm Trees";
tiledesc = "Bunnies think not being able to see themselves is annoying.";
}
}
}
}
Symbol 1604 Button
on (release) {
_global.pauseTime = true;
}
Symbol 1609 Button
on (release) {
if (_global.quitter != "waiting") {
_global.quitter = "show";
}
}
Symbol 1615 MovieClip Frame 1
handle.onEnterFrame = function () {
if (this._x < 0) {
this._x = (_global.vol / 100) * line._width;
}
var _local4 = (this._x / line._width) * 100;
fill._xscale = _local4;
fill._yscale = _local4;
_global.vol = _local4;
var _local5 = new Sound(_root);
_local5.setVolume(_global.vol);
};
handle.onPress = function () {
this.startDrag(true, 0, 0, line._width, 0);
};
handle.onRelease = (handle.onReleaseOutside = function () {
var _local3 = SharedObject.getLocal("RunBunniesConfig", "/");
_local3.data.vol = _global.vol;
_local3.flush();
this.stopDrag();
});
Symbol 1621 MovieClip [bend_UI] Frame 1
this.val = 0;
handle.onEnterFrame = function () {
val = Math.round(this._x);
var _local3 = val / 648;
var _local4 = _parent.Level.getStart() + ((_parent.Level.getEnd() - _parent.Level.getStart()) * _local3);
_parent.Level.absTargetScroll(_local4);
};
handle.onPress = function () {
var _local3 = handle._width / 2;
this.startDrag(true, _local3, 26, progressbar._width - _local3, 26);
_parent.Level.interp = true;
};
handle.onRelease = (handle.onReleaseOutside = stopDrag);
Symbol 1692 MovieClip [title_free_bubble3] Frame 1
stop();
Symbol 1692 MovieClip [title_free_bubble3] Frame 13
stop();
Symbol 1700 MovieClip [slider] Frame 1
this.val = 127.5;
handle.onEnterFrame = function () {
val = Math.round(this._x);
};
handle.onPress = function () {
this.startDrag(true, 0, 0, line._width, 0);
};
handle.onRelease = (handle.onReleaseOutside = stopDrag);
Symbol 1705 Button
on (release) {
_global.score = 0;
_global.nextscreen = "MainMenu";
_root.play();
}
Symbol 1707 Button
on (release) {
var i = 0;
while (i < 4) {
_global.sdata.buns[i].state = "updateme";
i++;
}
_global.score = 0;
_global.nextscreen = "FreePlay";
_global.deaths = 0;
_root.play();
}
Symbol 1709 MovieClip [hscores_system_input] Frame 1
con.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
rep.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
inpbutt.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
Symbol 1710 Button
on (release) {
_parent.text_title = "Free Play: Grasslands";
_parent.clevel = (_global.curlevel = "grass");
_parent.loadData();
}
Symbol 1712 Button
on (release) {
_parent.text_title = "Free Play: Factory";
_parent.clevel = (_global.curlevel = "metal");
_parent.loadData();
}
Symbol 1714 Button
on (release) {
_parent._parent.bstate = "return";
}
Symbol 1716 Button
on (release) {
_parent.text_title = "Free Play: Tropics";
_parent.clevel = (_global.curlevel = "tropic");
_parent.loadData();
}
Symbol 1718 Button
on (release) {
_parent.text_title = "Challenges: All";
_parent.clevel = (_global.curlevel = "CHA");
_parent.loadCHAFile();
}
Symbol 1720 Button
on (release) {
_parent.text_title = "Free Play: Mixed";
_parent.clevel = (_global.curlevel = "mixed");
_parent.loadData();
}
Symbol 1722 MovieClip [hscores_system_switch] Frame 1
gra.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
fac.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
tro.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
cha.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
Symbol 1736 MovieClip [save_slot] Frame 1
stop();
Symbol 1741 Button
on (release) {
_parent.bstate = "close";
_parent.enButtons();
}
Symbol 1753 Button
on (release) {
darkenAll();
var c = new Color(che);
c.setTint(0, 0, 0, 0);
_global.curlevel = "CHA_checkers";
cha_desc = "Checkers\r\rHop from space to space to the finish line. Avoid red tiles!\rGet all 3 Wabbits to the finish line to win.";
}
Symbol 1760 Button
on (release) {
darkenAll();
var c = new Color(poi);
c.setTint(0, 0, 0, 0);
_global.curlevel = "CHA_pointblitz";
cha_desc = "Point Blitz\r\rRack up as high a score as possible by bouncing around.\rGet at least 70 000 points to win.";
}
Symbol 1764 Button
on (release) {
if (_global.curlevel != "") {
_global.incha = true;
_global.nextscreen = "FreePlay";
_parent.bstate = "advance";
}
}
Symbol 1767 MovieClip [title_chal] Frame 1
stop();
Symbol 1767 MovieClip [title_chal] Frame 11
onEnterFrame = function () {
cloud.gotoAndPlay("stretch");
_parent.disButtons();
};
Symbol 1767 MovieClip [title_chal] Frame 12
onEnterFrame = function () {
};
Symbol 1767 MovieClip [title_chal] Frame 20
function darkenAll() {
var _local1 = new Color(buz);
_local1.setTint(60, 60, 60, 60);
var _local4 = new Color(che);
_local4.setTint(60, 60, 60, 60);
var _local2 = new Color(poi);
_local2.setTint(60, 60, 60, 60);
var _local5 = new Color(ska);
_local5.setTint(60, 60, 60, 60);
var _local3 = new Color(boa);
_local3.setTint(60, 60, 60, 60);
var _local6 = new Color(pow);
_local6.setTint(60, 60, 60, 60);
}
stop();
var init = false;
closer.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
bplay.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
bplay.onRollOver = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o1.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o1.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o2.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o2.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o3.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o3.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o4.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o4.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o5.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o5.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o6.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o6.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (!init) {
init = true;
darkenAll();
cha_desc = "\rSelect a challenge to view it's description.";
if (_global.curlevel == "CHA_buzzerdash") {
var _local2 = new Color(buz);
_local2.setTint(0, 0, 0, 0);
} else if (_global.curlevel == "CHA_checkers") {
var _local2 = new Color(che);
_local2.setTint(0, 0, 0, 0);
} else if (_global.curlevel == "CHA_pointblitz") {
var _local2 = new Color(poi);
_local2.setTint(0, 0, 0, 0);
} else if (_global.curlevel == "CHA_cheapskate") {
var _local2 = new Color(ska);
_local2.setTint(0, 0, 0, 0);
} else if (_global.curlevel == "CHA_boardwalk") {
var _local2 = new Color(boa);
_local2.setTint(0, 0, 0, 0);
} else if (_global.curlevel == "CHA_powerdown") {
var _local2 = new Color(pow);
_local2.setTint(0, 0, 0, 0);
} else {
_global.curlevel = "CHA_checkers";
var _local2 = new Color(che);
_local2.setTint(0, 0, 0, 0);
}
}
};
Symbol 1767 MovieClip [title_chal] Frame 33
onEnterFrame = function () {
};
Symbol 1771 Button
on (release) {
rslider.handle._x = 155;
gslider.handle._x = 50;
bslider.handle._x = 50;
}
Symbol 1773 Button
on (release) {
rslider.handle._x = 40;
gslider.handle._x = 140;
bslider.handle._x = 40;
}
Symbol 1775 Button
on (release) {
rslider.handle._x = 150;
gslider.handle._x = 150;
bslider.handle._x = 40;
}
Symbol 1777 Button
on (release) {
rslider.handle._x = 35;
gslider.handle._x = 125;
bslider.handle._x = 145;
}
Symbol 1779 Button
on (release) {
rslider.handle._x = 140;
gslider.handle._x = 0;
bslider.handle._x = 140;
}
Symbol 1781 Button
on (release) {
rslider.handle._x = 165;
gslider.handle._x = 120;
bslider.handle._x = 35;
}
Symbol 1783 Button
on (release) {
rslider.handle._x = 200;
gslider.handle._x = 200;
bslider.handle._x = 200;
}
Symbol 1785 Button
on (release) {
rslider.handle._x = 55;
gslider.handle._x = 55;
bslider.handle._x = 55;
}
Symbol 1787 Button
on (release) {
rslider.handle._x = 0;
gslider.handle._x = 55;
bslider.handle._x = 145;
}
Symbol 1789 Button
on (release) {
rslider.handle._x = 160;
gslider.handle._x = 90;
bslider.handle._x = 120;
}
Symbol 1793 Button
on (release) {
testbun.removeMovieClip();
_parent.bstate = "done";
done.enabled = (cancel.enabled = false);
}
Symbol 1794 Button
on (release) {
testbun.removeMovieClip();
_parent.bstate = "cancel";
done.enabled = (cancel.enabled = false);
}
Symbol 1797 MovieClip [title_customize] Frame 1
function prepClass(bt) {
buntype = bt;
switch (buntype) {
case "Wabbit" :
this.attachMovie("bun_wabbit", "testbun", 1000);
break;
case "Chomp" :
this.attachMovie("bun_chomp", "testbun", 1000);
break;
case "Runner" :
this.attachMovie("bun_runner", "testbun", 1000);
break;
case "Cobra" :
this.attachMovie("bun_cobra", "testbun", 1000);
break;
case "Jet" :
this.attachMovie("bun_jet", "testbun", 1000);
break;
case "Medic" :
this.attachMovie("bun_medic", "testbun", 1000);
}
testbun._x = 135;
testbun._y = 120;
testbun._xscale = (testbun._yscale = 250);
testbun.gotoAndPlay("idle");
done.enabled = (cancel.enabled = true);
this._alpha = 100;
}
var init = false;
var buntype = "Wabbit";
cancel.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
done.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
this.onEnterFrame = function () {
if (!init) {
init = true;
}
var _local3 = rslider.val;
var _local4 = gslider.val;
var _local2 = bslider.val;
var _local1 = new Color(testbun.bbody);
_local1.fillTint(_local3, _local4, _local2, 80);
};
Symbol 1800 Button
on (release) {
getURL ("http://www.runbunnies.com/purchase.html", "_blank");
}
Symbol 1804 MovieClip [title_data] Frame 1
stop();
Symbol 1804 MovieClip [title_data] Frame 11
onEnterFrame = function () {
cloud.gotoAndPlay("stretch");
_parent.disButtons();
};
Symbol 1804 MovieClip [title_data] Frame 20
stop();
var bstate = "";
closer.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
onEnterFrame = function () {
};
Symbol 1804 MovieClip [title_data] Frame 33
onEnterFrame = function () {
};
Symbol 1810 Button
on (release) {
cloud.gotoAndPlay("stretch");
gotoAndPlay ("step2");
_parent.disButtons();
}
Symbol 1811 Button
on (release) {
_parent.bstate = "close";
}
Symbol 1814 Button
on (release) {
_global.curlevel = "grass";
var c = new Color(grass);
c.setTint(0, 0, 0, 0);
var cc = new Color(metal);
cc.setTint(60, 60, 60, 60);
var ccc = new Color(tropic);
ccc.setTint(60, 60, 60, 60);
var cccc = new Color(mixed);
cccc.setTint(60, 60, 60, 60);
var ccccc = new Color(rand);
ccccc.setTint(60, 60, 60, 60);
lev_title = "Grasslands";
lev_desc.textColor = 21760;
}
Symbol 1815 Button
on (release) {
_global.curlevel = "metal";
var c = new Color(grass);
c.setTint(60, 60, 60, 60);
var cc = new Color(metal);
cc.setTint(0, 0, 0, 0);
var ccc = new Color(tropic);
ccc.setTint(60, 60, 60, 60);
var cccc = new Color(mixed);
cccc.setTint(60, 60, 60, 60);
var ccccc = new Color(rand);
ccccc.setTint(60, 60, 60, 60);
lev_title = "Factory";
lev_desc.textColor = 4473924 /* 0x444444 */;
}
Symbol 1818 Button
on (release) {
_parent.disButtons();
disButtons();
_parent.tu._visible = true;
_parent.tu._alpha = 100;
}
Symbol 1827 Button
on (release) {
select = 1;
bstate = "customizing";
custom._visible = true;
if (buns[0].bname == "empty") {
custom.bname = buns[0].bunnyname(random(2));
} else {
custom.bname = buns[0].bname;
}
custom.rslider.handle._x = buns[0].r;
custom.gslider.handle._x = buns[0].g;
custom.bslider.handle._x = buns[0].b;
buns[0].mc._visible = (buns[1].mc._visible = (buns[2].mc._visible = (buns[3].mc._visible = false)));
disButtons();
custom.done.enabled = (custom.cancel.enabled = true);
if (buns[0].bname == "empty") {
custom.prepClass("Wabbit");
} else {
custom.prepClass(buns[0].bclass);
}
}
Symbol 1828 Button
on (release) {
select = 2;
bstate = "customizing";
custom._visible = true;
if (buns[1].bname == "empty") {
custom.bname = buns[1].bunnyname(random(2));
} else {
custom.bname = buns[1].bname;
}
custom.rslider.handle._x = buns[1].r;
custom.gslider.handle._x = buns[1].g;
custom.bslider.handle._x = buns[1].b;
buns[0].mc._visible = (buns[1].mc._visible = (buns[2].mc._visible = (buns[3].mc._visible = false)));
disButtons();
custom.done.enabled = (custom.cancel.enabled = true);
custom.prepClass(buns[1].bclass);
}
Symbol 1829 Button
on (release) {
select = 3;
bstate = "customizing";
custom._visible = true;
if (buns[2].bname == "empty") {
custom.bname = buns[2].bunnyname(random(2));
} else {
custom.bname = buns[2].bname;
}
custom.rslider.handle._x = buns[2].r;
custom.gslider.handle._x = buns[2].g;
custom.bslider.handle._x = buns[2].b;
buns[0].mc._visible = (buns[1].mc._visible = (buns[2].mc._visible = (buns[3].mc._visible = false)));
disButtons();
custom.done.enabled = (custom.cancel.enabled = true);
custom.prepClass(buns[2].bclass);
}
Symbol 1830 Button
on (release) {
select = 4;
bstate = "customizing";
custom._visible = true;
if (buns[3].bname == "empty") {
custom.bname = buns[3].bunnyname(random(2));
} else {
custom.bname = buns[3].bname;
}
custom.rslider.handle._x = buns[3].r;
custom.gslider.handle._x = buns[3].g;
custom.bslider.handle._x = buns[3].b;
buns[0].mc._visible = (buns[1].mc._visible = (buns[2].mc._visible = (buns[3].mc._visible = false)));
disButtons();
custom.done.enabled = (custom.cancel.enabled = true);
custom.prepClass(buns[3].bclass);
}
Symbol 1831 Button
on (release) {
var i = 0;
while (i < 4) {
if (buns[i].bname != "empty") {
buns[i].bname = buns[i].bunnyname(random(2));
var cls = 0;
if ((cls == 0) || (i > 1)) {
buns[i].bclass = "Wabbit";
} else if (cls == 1) {
buns[i].bclass = "Chomp";
buns[i].bname = buns[i].bunnyname(true);
} else if (cls == 2) {
buns[i].bclass = "Runner";
} else if (cls == 3) {
buns[i].bclass = "Cobra";
buns[i].bname = buns[i].bunnyname(true);
} else if (cls == 4) {
buns[i].bclass = "Medic";
} else if (cls == 5) {
buns[i].bclass = "Jet";
}
buns[i].newColour();
buns[i].reColour();
}
i++;
}
name1 = buns[0].bname;
name2 = buns[1].bname;
name3 = buns[2].bname;
name4 = buns[3].bname;
reDisplay();
checkEmpty();
}
Symbol 1833 Button
on (release) {
buns[2].bname = "empty";
checkEmpty();
}
Symbol 1834 Button
on (release) {
buns[3].bname = "empty";
checkEmpty();
}
Symbol 1845 Button
on (release) {
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(buns[i]);
buns[i].mc.removeMovieClip();
i++;
}
gotoAndPlay ("step1");
cloud.gotoAndPlay("shrink");
_parent.enButtons();
}
Symbol 1846 Button
on (release) {
if (_global.curlevel != "") {
if (_global.curlevel == "rand") {
var num = random(4);
if (num == 0) {
_global.curlevel = "grass";
} else if (num == 1) {
_global.curlevel = "metal";
} else if (num == 2) {
_global.curlevel = "tropic";
} else if (num == 3) {
_global.curlevel = "mixed";
}
}
_global.levelcount = 1;
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(buns[i]);
buns[i].mc.removeMovieClip();
i++;
}
_global.incha = false;
_global.nextscreen = "FreePlay";
_parent.bstate = "advance";
_global.deaths = 0;
}
}
Symbol 1848 Button
on (release) {
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(buns[i]);
buns[i].mc.removeMovieClip();
i++;
}
_parent.bstate = "close";
_parent.enButtons();
}
Symbol 1852 Button
on (release) {
var i = 0;
while (i < 30) {
mc1[i].removeMovieClip();
i++;
}
text_alert = "";
init = false;
isactive = false;
delayclick = true;
saveorload = "exit";
fscommand ("ffish_run", "RightContext");
}
Symbol 1854 MovieClip [save_system_new] Frame 1
function initBunnies() {
slot1.sname = "Save Slot 1";
slot2.sname = "Save Slot 2";
slot3.sname = "Save Slot 3";
slot4.sname = "Save Slot 4";
slot5.sname = "Save Slot 5";
slot1.fname = (slot2.fname = (slot3.fname = (slot4.fname = (slot5.fname = ""))));
var _local1 = 0;
while (_local1 < 30) {
mc1.push(attachMovie("bun_wabbit", "savebunny" + _local1, 6 + _local1));
mc1[_local1]._visible = false;
_local1++;
}
}
function showBunny(bun, slot, i) {
if (bun.bname != "empty") {
if (i == 0) {
namestring = namestring + bun.bname;
}
if (i == 1) {
namestring = namestring + ", ";
namestring = namestring + bun.bname;
}
if (i == 2) {
namestring2 = namestring2 + bun.bname;
}
if (i == 3) {
namestring2 = namestring2 + ", ";
namestring2 = namestring2 + bun.bname;
}
}
var _local1 = ((slot - 1) * 6) + i;
mc1[_local1].removeMovieClip();
if (bun.bname == "empty") {
return(undefined);
}
switch (bun.bclass) {
case "Wabbit" :
mc1[_local1] = attachMovie("bun_wabbit", "savebunny" + _local1, 6 + _local1);
break;
case "Chomp" :
mc1[_local1] = attachMovie("bun_chomp", "savebunny" + _local1, 6 + _local1);
break;
case "Runner" :
mc1[_local1] = attachMovie("bun_runner", "savebunny" + _local1, 6 + _local1);
break;
case "Cobra" :
mc1[_local1] = attachMovie("bun_cobra", "savebunny" + _local1, 6 + _local1);
break;
case "Medic" :
mc1[_local1] = attachMovie("bun_medic", "savebunny" + _local1, 6 + _local1);
break;
case "Jet" :
mc1[_local1] = attachMovie("bun_jet", "savebunny" + _local1, 6 + _local1);
}
var _local5 = new Color(mc1[_local1].bbody);
_local5.fillTint(bun.r, bun.g, bun.b, 80);
if (i > 1) {
i++;
}
mc1[_local1]._x = 316 + (i * 54);
if (slot == 1) {
mc1[_local1]._y = 43;
} else if (slot == 2) {
mc1[_local1]._y = 107;
} else if (slot == 3) {
mc1[_local1]._y = 171;
} else if (slot == 4) {
mc1[_local1]._y = 234;
} else if (slot == 5) {
mc1[_local1]._y = 301;
}
mc1[_local1]._visible = true;
}
function clearBunnies() {
for (a in mc1) {
a.mc.removeMovieClip;
}
delete mc1;
mc1 = new Array();
}
function highlights() {
if (((_global.saveConfirm == "pending") || (_global.saveConfirm == "process")) || (_global.saveConfirm == "askingfordeletion")) {
return(undefined);
}
var _local4 = 1;
while (_local4 < 6) {
if (this["slot" + _local4].hitTest(_xmouse, _ymouse, true)) {
if (mclick) {
if (((saveorload == "load") && (this["slot" + _local4].fname != undefined)) && (this["slot" + _local4].fname != "")) {
so = SharedObject.getLocal("RunBunniesSave" + _local4, "/");
if ((so.data.fname != undefined) && (so.data.fname != "")) {
_global.sdata.buns[0].loadBunny(so.data.b0);
_global.sdata.buns[1].loadBunny(so.data.b1);
_global.sdata.buns[2].loadBunny(so.data.b2);
_global.sdata.buns[3].loadBunny(so.data.b3);
}
delete so;
_parent.bstate = "loaded";
} else if (saveorload == "save") {
fscommand ("ffish_run", "RightSend");
confirm.text_name = this["slot" + _local4].fname;
if ((confirm.text_name == undefined) || (confirm.text_name == "")) {
confirm.text_name = "Super Bunnies";
}
if (this["slot" + _local4].buns == "") {
confirm.text_desc = ("Are you sure you want to save in:\r[Save Slot " + _local4) + "]?";
} else {
confirm.text_desc = ((((("Are you sure you want to overwrite \r[" + this["slot" + _local4].fname) + "]") + newline) + "in [Save Slot ") + _local4) + "]?";
}
confirm._visible = true;
_global.saveConfirm = "pending";
selslot = _local4;
confirm.block = true;
confirm.can.enabled = (confirm.sav.enabled = false);
this["slot" + _local4].gotoAndStop(3);
} else if (((saveorload == "delete") && (this["slot" + _local4].fname != undefined)) && (this["slot" + _local4].fname != "")) {
dconfirm.text_desc = (((((((("Are you sure you want to DELETE \r[" + this["slot" + _local4].fname) + "]") + newline) + "in [Save Slot ") + _local4) + "]?") + newline) + newline) + "Saves cannot be recovered once deleted.";
dconfirm._visible = true;
_global.saveConfirm = "askingfordeletion";
selslot = _local4;
dconfirm.block = true;
can.enabled = (del.enabled = false);
this["slot" + _local4].gotoAndStop(3);
}
} else {
this["slot" + _local4].gotoAndStop(2);
}
} else {
this["slot" + _local4].gotoAndStop(1);
}
_local4++;
}
}
stop();
var init = false;
var isactive = false;
var mc1 = new Array();
var namestring = "";
var namestring2 = "";
var mclick = false;
var delayclick = true;
var confirm;
var dconfirm;
var selslot = 0;
_global.saveConfirm = "";
var saveorload = "";
var so;
done.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
this.onMouseDown = function () {
mclick = true;
};
this.onEnterFrame = function () {
if (!isactive) {
return(undefined);
}
if ((_global.saveConfirm == "process") || (_global.saveConfirm == "wait")) {
if (_global.saveConfirm != "wait") {
so = SharedObject.getLocal("RunBunniesSave" + selslot, "/");
so.data.fname = confirm.text_name;
so.data.numBunnies = sdata.buns.length;
so.data.b0 = sdata.buns[0];
so.data.b1 = sdata.buns[1];
so.data.b2 = sdata.buns[2];
so.data.b3 = sdata.buns[3];
success = so.flush();
}
so.onStatus = function (result) {
if (result.code == "SharedObject.Flush.Success") {
success = true;
} else {
success = false;
}
};
if (success == true) {
text_alert = ("[" + confirm.text_name) + "] was saved successfully!";
_global.saveConfirm = "";
init = false;
clearBunnies();
delete so;
} else if (success == false) {
text_alert = "The file could not be saved. Please right-click and select Settings, then make sure that the 'Local Storage' setting is set to 10KB or more.";
_global.saveConfirm = "";
delete so;
s = new Sound(this);
s.attachSound("alarm1.wav");
s.start(0, 1);
} else if (success == "pending") {
text_alert = "Please select 'Allow' on the prompt to enable saving.";
_global.saveConfirm = "wait";
}
}
if (!init) {
init = true;
initBunnies();
confirm = attachMovie("save_confirm", "scon", 100);
confirm._visible = false;
dconfirm = attachMovie("delete_confirm", "dcon", 101);
dconfirm._visible = false;
dconfirm.can.enabled = (dconfirm.del.enabled = false);
var _local3 = 1;
while (_local3 < 6) {
so = SharedObject.getLocal("RunBunniesSave" + _local3, "/");
if ((so.data.fname != undefined) && (so.data.fname != "")) {
this["slot" + _local3].fname = so.data.fname;
if (so.data.numBunnies > 0) {
showBunny(so.data.b0, _local3, 0);
}
if (so.data.numBunnies > 1) {
showBunny(so.data.b1, _local3, 1);
}
if (so.data.numBunnies > 2) {
showBunny(so.data.b2, _local3, 2);
}
if (so.data.numBunnies > 3) {
showBunny(so.data.b3, _local3, 3);
}
this["slot" + _local3].sbuns = namestring;
this["slot" + _local3].rbuns = namestring2;
} else {
this["slot" + _local3].fname = "";
this["slot" + _local3].buns = "";
}
delete so;
namestring = (namestring2 = "");
_local3++;
}
}
if (_global.saveConfirm == "nodelete") {
dconfirm._visible = false;
_global.saveConfirm = "";
text_alert = "File was not deleted.";
dconfirm.can.enabled = (dconfirm.del.enabled = false);
}
if (_global.saveConfirm == "yesdelete") {
so = SharedObject.getLocal("RunBunniesSave" + selslot, "/");
this["slot" + selslot].fname = (so.data.fname = "");
this["slot" + selslot].buns = "";
so.data.b0 = (so.data.b1 = (so.data.b2 = (so.data.b3 = undefined)));
so.data.numBunnies = 0;
so.flush();
delete so;
var _local3 = 0;
while (_local3 < 4) {
showBunny(new Bunny("", 0, 0, 0, -1), selslot, _local3);
_local3++;
}
selslot = -1;
dconfirm._visible = false;
_global.saveConfirm = "";
dconfirm.can.enabled = (dconfirm.del.enabled = false);
text_alert = "File deleted.";
}
if (_global.saveConfirm == "no") {
confirm._visible = false;
_global.saveConfirm = "";
text_alert = "File save was cancelled.";
confirm.can.enabled = (confirm.sav.enabled = false);
}
if (_global.saveConfirm == "yes") {
confirm._visible = false;
_global.saveConfirm = "process";
confirm.can.enabled = (confirm.sav.enabled = false);
text_alert = ("Saving File [" + confirm.text_name) + "]...";
}
if (delayclick) {
mclick = (delayclick = false);
return(undefined);
}
highlights();
mclick = false;
};
Symbol 1855 MovieClip [title_free] Frame 1
stop();
Symbol 1855 MovieClip [title_free] Frame 20
function disButtons() {
closer.enabled = (learn.enabled = (nextb.enabled = (gr.enabled = (me.enabled = (tr.enabled = (mi.enabled = (ra.enabled = false)))))));
}
function enButtons() {
closer.enabled = (learn.enabled = (nextb.enabled = (gr.enabled = (me.enabled = (tr.enabled = (mi.enabled = (ra.enabled = true)))))));
}
stop();
var init = false;
var bstate = "";
nextb.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
closer.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
learn.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
learn.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
gr.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
gr.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
me.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
me.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
tr.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
tr.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
mi.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
mi.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
ra.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
ra.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (!init) {
init = true;
if (_global.curlevel == "grass") {
var _local2 = new Color(grass);
_local2.setTint(0, 0, 0, 0);
} else if (_global.curlevel == "metal") {
var _local2 = new Color(metal);
_local2.setTint(0, 0, 0, 0);
} else if (_global.curlevel == "tropic") {
var _local2 = new Color(tropic);
_local2.setTint(0, 0, 0, 0);
} else if (_global.curlevel == "rand") {
var _local2 = new Color(rand);
_local2.setTint(0, 0, 0, 0);
} else {
_global.curlevel = "grass";
var _local2 = new Color(grass);
_local2.setTint(0, 0, 0, 0);
}
}
};
Symbol 1855 MovieClip [title_free] Frame 30
function reDisplay() {
var _local1 = 0;
while (_local1 < 4) {
custom._visible = (loader._visible = false);
switch (buns[_local1].bclass) {
case "Wabbit" :
buns[_local1].mc.mcswap("bun_wabbit");
break;
case "Chomp" :
buns[_local1].mc.mcswap("bun_chomp");
break;
case "Runner" :
buns[_local1].mc.mcswap("bun_runner");
break;
case "Cobra" :
buns[_local1].mc.mcswap("bun_cobra");
break;
case "Jet" :
buns[_local1].mc.mcswap("bun_jet");
break;
case "Medic" :
buns[_local1].mc.mcswap("bun_medic");
}
buns[_local1].reColour();
buns[_local1].mc._x = 155 + (108 * _local1);
buns[_local1].mc._y = 122;
buns[_local1].mc.gotoAndPlay("idle");
_local1++;
}
}
function checkEmpty() {
var _local2 = 0;
while (_local2 < 4) {
if ((buns[_local2].bname == undefined) || (buns[_local2].bname == "empty")) {
buns[_local2].bname = "empty";
buns[_local2].mc._visible = false;
this["name" + (_local2 + 1)] = buns[_local2].bname;
this["add" + (_local2 + 1)] = "add";
} else {
buns[_local2].mc._visible = true;
this["add" + (_local2 + 1)] = "";
this["name" + (_local2 + 1)] = buns[_local2].bname;
}
_local2++;
}
}
function checkPlay() {
if ((((name1 == "empty") && (name2 == "empty")) && (name3 == "empty")) && (name4 == "empty")) {
bplay._visible = false;
} else {
bplay._visible = true;
}
}
function disButtons() {
bbun1.enabled = (bbun2.enabled = (bbun3.enabled = (bbun4.enabled = (brand.enabled = (bload.enabled = (bsave.enabled = (bback.enabled = (bplay.enabled = (bclose.enabled = false)))))))));
}
function enButtons() {
bbun1.enabled = (bbun2.enabled = (bbun3.enabled = (bbun4.enabled = (brand.enabled = (bload.enabled = (bsave.enabled = (bback.enabled = (bplay.enabled = (bclose.enabled = true)))))))));
}
stop();
var init = false;
var buns = new Array(4);
var bstate = "";
var select = -1;
var dataLoaded = false;
bclose.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
bback.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
bplay.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
bplay.onRollOver = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
brand.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
bload.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
bsave.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
bbun1.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
bbun1.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
bbun2.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
bbun2.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
bbun3.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
bbun3.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
bbun4.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
bbun4.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = 0;
while (_local4 < _global.sdata.buns.length) {
_global.sdata.buns[_local4].loadMC();
_local4++;
}
while (_global.sdata.buns.length < 2) {
var _local3 = 0;
if (_local3 == 0) {
_global.sdata.buns.push(new Bunny("Wabbit", 0, 0, _global.sdata.buns.length, _global.sdata.buns.length));
}
if (_local3 == 1) {
_global.sdata.buns.push(new Bunny("Chomp", 0, 0, _global.sdata.buns.length, _global.sdata.buns.length));
}
if (_local3 == 2) {
_global.sdata.buns.push(new Bunny("Runner", 0, 0, _global.sdata.buns.length, _global.sdata.buns.length));
}
if (_local3 == 3) {
_global.sdata.buns.push(new Bunny("Cobra", 0, 0, _global.sdata.buns.length, _global.sdata.buns.length));
}
if (_local3 == 4) {
_global.sdata.buns.push(new Bunny("Medic", 0, 0, _global.sdata.buns.length, _global.sdata.buns.length));
}
if (_local3 == 5) {
_global.sdata.buns.push(new Bunny("Jet", 0, 0, _global.sdata.buns.length, _global.sdata.buns.length));
}
}
while (_global.sdata.buns.length < 4) {
_global.sdata.buns.push(new Bunny("Wabbit", 0, 0, _global.sdata.buns.length, _global.sdata.buns.length));
_global.sdata.buns[_global.sdata.buns.length - 1].bname = (this["name" + (_global.sdata.buns.length - 1)] = "empty");
}
_local4 = 0;
while (_local4 < 4) {
buns[_local4] = _global.sdata.buns[_local4];
buns[_local4].state = "updateme";
_local4++;
}
reDisplay();
checkEmpty();
}
checkPlay();
if ((bstate == "loaded") || (loader.saveorload == "exit")) {
loader._visible = false;
loader.clearBunnies();
loader.active = false;
loader.saveorload = "";
reDisplay();
enButtons();
checkEmpty();
bstate = "";
}
if (bstate == "cancel") {
reDisplay();
enButtons();
checkEmpty();
bstate = "";
custom._alpha = 0;
} else if (bstate == "done") {
r = custom.rslider.val;
g = custom.gslider.val;
b = custom.bslider.val;
this["name" + select] = (buns[select - 1].bname = custom.bname);
var _local5 = new Color(buns[select - 1].mc.bbody);
_local5.fillTint(r, g, b, 80);
buns[select - 1].r = r;
buns[select - 1].g = g;
buns[select - 1].b = b;
reDisplay();
enButtons();
checkEmpty();
bstate = "";
custom._alpha = 0;
}
buns[0].ico._visible = (buns[1].ico._visible = (buns[2].ico._visible = (buns[3].ico._visible = false)));
};
Symbol 1855 MovieClip [title_free] Frame 40
onEnterFrame = function () {
};
Symbol 1859 Button
on (release) {
if (_global.gquality == "LOW") {
_global.gquality = "HIGH";
gqual = "full quality";
} else if (_global.gquality == "HIGH") {
_global.gquality = "MEDIUM";
gqual = "moderate";
} else if (_global.gquality == "MEDIUM") {
_global.gquality = "LOW";
gqual = "fast performance";
}
saveneeded = true;
}
Symbol 1860 Button
on (release) {
if (_global.gquality == "LOW") {
_global.gquality = "MEDIUM";
gqual = "moderate";
} else if (_global.gquality == "MEDIUM") {
_global.gquality = "HIGH";
gqual = "full quality";
} else if (_global.gquality == "HIGH") {
_global.gquality = "LOW";
gqual = "fast performance";
}
saveneeded = true;
}
Symbol 1863 Button
on (release) {
if (_global.fsquality == "LOW") {
_global.fsquality = "DYNAMIC";
fsqual = "auto-adjust";
} else if (_global.fsquality == "DYNAMIC") {
_global.fsquality = "HIGH";
fsqual = "full quality";
} else if (_global.fsquality == "HIGH") {
_global.fsquality = "MEDIUM";
fsqual = "moderate";
} else if (_global.fsquality == "MEDIUM") {
_global.fsquality = "LOW";
fsqual = "fast performance";
}
saveneeded = true;
}
Symbol 1864 Button
on (release) {
if (_global.fsquality == "LOW") {
_global.fsquality = "MEDIUM";
fsqual = "moderate";
} else if (_global.fsquality == "MEDIUM") {
_global.fsquality = "HIGH";
fsqual = "full quality";
} else if (_global.fsquality == "HIGH") {
_global.fsquality = "DYNAMIC";
fsqual = "auto-adjust";
} else if (_global.fsquality == "DYNAMIC") {
_global.fsquality = "LOW";
fsqual = "fast performance";
}
saveneeded = true;
}
Symbol 1870 Button
on (release) {
if (_global.showHL == true) {
_global.showHL = false;
} else {
_global.showHL = true;
}
saveneeded = true;
}
Symbol 1872 Button
on (release) {
if (_global.cursHL == true) {
_global.cursHL = false;
} else {
_global.cursHL = true;
}
saveneeded = true;
}
Symbol 1874 Button
on (release) {
if (_global.haloHL == true) {
_global.haloHL = false;
} else {
_global.haloHL = true;
}
saveneeded = true;
}
Symbol 1875 Button
on (release) {
if (_global.mfunc == "HOP") {
_global.mfunc = "NONE";
} else if (_global.mfunc == "NONE") {
_global.mfunc = "TILE";
} else if (_global.mfunc == "TILE") {
_global.mfunc = "SPEC";
} else if (_global.mfunc == "SPEC") {
_global.mfunc = "HOP";
}
saveneeded = true;
}
Symbol 1876 Button
on (release) {
if (_global.mfunc == "HOP") {
_global.mfunc = "SPEC";
} else if (_global.mfunc == "SPEC") {
_global.mfunc = "TILE";
} else if (_global.mfunc == "TILE") {
_global.mfunc = "NONE";
} else if (_global.mfunc == "NONE") {
_global.mfunc = "HOP";
}
saveneeded = true;
}
Symbol 1879 Button
on (release) {
if (_global.rfunc == "HOP") {
_global.rfunc = "NONE";
} else if (_global.rfunc == "NONE") {
_global.rfunc = "TILE";
} else if (_global.rfunc == "TILE") {
_global.rfunc = "SPEC";
} else if (_global.rfunc == "SPEC") {
_global.rfunc = "HOP";
}
saveneeded = true;
}
Symbol 1880 Button
on (release) {
if (_global.rfunc == "HOP") {
_global.rfunc = "SPEC";
} else if (_global.rfunc == "SPEC") {
_global.rfunc = "TILE";
} else if (_global.rfunc == "TILE") {
_global.rfunc = "NONE";
} else if (_global.rfunc == "NONE") {
_global.rfunc = "HOP";
}
saveneeded = true;
}
Symbol 1882 MovieClip Frame 1
handle.onEnterFrame = function () {
if (this._x < 0) {
this._x = (_global.mvol / 100) * line._width;
}
var _local3 = (this._x / line._width) * 100;
fill._xscale = _local3 * 4;
fill._yscale = _local3 * 4;
_global.mvol = _local3;
var _local4 = new Sound(_global.holder);
_local4.setVolume(80 * (_global.mvol / 100));
};
handle.onPress = function () {
this.startDrag(true, 0, 0, line._width, 0);
};
handle.onRelease = (handle.onReleaseOutside = function () {
var _local3 = SharedObject.getLocal("RunBunniesConfig", "/");
_local3.data.mvol = _global.mvol;
_local3.flush();
this.stopDrag();
});
Symbol 1884 MovieClip [title_options] Frame 1
stop();
Symbol 1884 MovieClip [title_options] Frame 11
onEnterFrame = function () {
cloud.gotoAndPlay("stretch");
_parent.disButtons();
};
Symbol 1884 MovieClip [title_options] Frame 12
onEnterFrame = function () {
};
Symbol 1884 MovieClip [title_options] Frame 20
stop();
var saveneeded = false;
closebut.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
l1.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
l2.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
l3.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
l4.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
r1.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
r2.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
r3.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
r4.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o1.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o2.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o3.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o4.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o1.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o2.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o3.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o4.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (_global.gquality == "LOW") {
gqual = "Fast Performance";
} else if (_global.gquality == "MEDIUM") {
gqual = "Moderate";
} else if (_global.gquality == "HIGH") {
gqual = "Full Quality";
} else {
gqual = _global.gquality;
}
if (_global.showHL == true) {
pathcheck._visible = true;
} else {
pathcheck._visible = false;
}
if (_global.cursHL == true) {
tilecheck._visible = true;
} else {
tilecheck._visible = false;
}
if (_global.haloHL == true) {
halocheck._visible = true;
} else {
halocheck._visible = false;
}
if (_global.mfunc == "HOP") {
mfuncd = "Hop Control";
} else if (_global.mfunc == "SPEC") {
mfuncd = "Special Moves";
} else if (_global.mfunc == "TILE") {
mfuncd = "Tile Information";
} else if (_global.mfunc == "NONE") {
mfuncd = "Nothing";
} else {
mfuncd = _global.mfunc;
}
if (saveneeded) {
saveneeded = false;
so = SharedObject.getLocal("RunBunniesConfig", "/");
so.data.gquality = _global.gquality;
so.data.showHL = _global.showHL;
so.data.cursHL = _global.cursHL;
so.data.haloHL = _global.haloHL;
so.data.mfunc = _global.mfunc;
so.data.mvol = _global.mvol;
so.flush();
delete so;
}
};
Symbol 1884 MovieClip [title_options] Frame 33
onEnterFrame = function () {
};
Symbol 1889 MovieClip [bend_progress_bar_tropic_bubble] Frame 1
stop();
onEnterFrame = function () {
if (random(10) == 0) {
play();
}
};
Symbol 1889 MovieClip [bend_progress_bar_tropic_bubble] Frame 2
onEnterFrame = function () {
};
Symbol 1895 MovieClip [point_overlay] Frame 41
this.removeMovieClip();
Symbol 1898 MovieClip [point_overlay2] Frame 41
this.removeMovieClip();
Symbol 1908 Button
on (release) {
if (!block) {
_global.saveConfirm = "yesdelete";
}
}
Symbol 1910 Button
on (release) {
if (!block) {
_global.saveConfirm = "nodelete";
}
}
Symbol 1913 MovieClip [delete_confirm] Frame 1
var block = true;
can.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
del.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (block) {
block = false;
can.enabled = (del.enabled = true);
}
};
Symbol 1917 Button
on (release) {
if (!block) {
_parent.bstate = "cleared";
}
}
Symbol 1919 Button
on (release) {
if (!block) {
_parent.bstate = "noclear";
}
}
Symbol 1921 MovieClip Frame 1
var block = true;
can.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
del.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (block) {
block = false;
can.enabled = (cle.enabled = true);
}
};
Symbol 1922 MovieClip [hscores_system] Frame 1
function disButtons() {
inp.inpbutt.enabled = (inp.cont.enabled = (inp.rep.enabled = false));
swi.gra.enabled = (swi.fac.enabled = (swi.tro.enabled = (swi.done.enabled = false)));
}
function enButtons() {
inp.inpbutt.enabled = (inp.cont.enabled = (inp.rep.enabled = true));
swi.gra.enabled = (swi.fac.enabled = (swi.tro.enabled = (swi.done.enabled = true)));
}
stop();
var init = false;
var bstate = "";
var scores = new Array();
var clevel = _global.curlevel;
onEnterFrame = function () {
if (!init) {
init = true;
inp.inpbutt.enabled = false;
inp.inpbutt._visible = false;
inp.inptext = "";
clearer.visible = false;
if (_global.incha) {
var _local3 = "Challenge ";
switch (_global.curlevel) {
case "CHA_checkers" :
_local3 = _local3 + "#2: Checkers";
inp._visible = true;
inp._alpha = 100;
swi._visible = false;
inp.curscore = _global.score;
break;
case "CHA_pointblitz" :
_local3 = _local3 + "#3: Point Blitz";
inp._visible = true;
inp._alpha = 100;
swi._visible = false;
inp.curscore = _global.score;
}
text_title = _local3;
} else {
text_title = "Free Play: ";
if (_global.curlevel == "grass") {
text_title = text_title + "Grasslands";
} else if (_global.curlevel == "metal") {
text_title = text_title + "Factory";
}
inp._visible = true;
inp._alpha = 100;
swi._visible = false;
inp.curscore = _global.score;
}
}
if (bstate == "locked") {
inp.inpbutt.enabled = false;
var _local4 = new Color(inp.inpbutt);
_local4.setTint(50, 50, 50, 75);
bstate = "done";
}
if (bstate == "clearing") {
disButtons();
bstate = "";
} else if (bstate == "cleared") {
enButtons();
bstate = "";
clearer._visible = (clearer.can.enabled = (clearer.can.enabled = false));
var _local2 = 0;
while (_local2 < scores.length) {
scores[_local2] = 0;
scores[_local2 + 1] = "No Score";
_local2 = _local2 + 2;
}
saveData();
display();
} else if (bstate == "noclear") {
enButtons();
bstate = "";
clearer._visible = (clearer.can.enabled = (clearer.can.enabled = false));
}
};
Symbol 1923 Button
on (release) {
if (!block) {
if ((text_name == "") || (text_name == undefined)) {
text_desc = "You must enter a save name.";
} else {
_global.saveConfirm = "yes";
}
}
}
Symbol 1927 Button
on (release) {
if (!block) {
_global.saveConfirm = "no";
}
}
Symbol 1929 MovieClip [save_confirm] Frame 1
var block = true;
can.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
sav.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (block) {
block = false;
can.enabled = (sav.enabled = true);
}
};
Symbol 1936 Button
on (release) {
if ((bclass == "Chomp") || (bclass == "Medic")) {
_global.upgradeComplete = true;
}
}
Symbol 1941 Button
on (release) {
skill_desc = "Mend: Supply carrots to yourself and everyone around you.";
bclass = "Medic";
done.enabled = true;
done._alpha = 100;
donetext = "Done";
}
Symbol 1942 Button
on (release) {
skill_desc = "Snack: Why avoid enemies when they make such good meals?";
bclass = "Chomp";
done.enabled = true;
done._alpha = 100;
donetext = "Done";
}
Symbol 1962 MovieClip Frame 1
bbody.gotoAndPlay("pose");
Symbol 1962 MovieClip Frame 5
bbody.gotoAndPlay("rejuv");
Symbol 1962 MovieClip Frame 25
gotoAndPlay ("idle");
Symbol 1962 MovieClip Frame 30
bbody.gotoAndPlay("idle");
Symbol 1962 MovieClip Frame 70
gotoAndPlay ("idle");
Symbol 1962 MovieClip Frame 75
bbody.gotoAndPlay("resting");
Symbol 1962 MovieClip Frame 97
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("exhale.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 98
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 120
gotoAndPlay ("resting");
Symbol 1962 MovieClip Frame 125
bbody.gotoAndPlay("walk");
Symbol 1962 MovieClip Frame 126
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("chomp_rolling.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 127
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 137
gotoAndPlay ("walk");
Symbol 1962 MovieClip Frame 140
bbody.gotoAndPlay("walk_up");
Symbol 1962 MovieClip Frame 141
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("chomp_rolling.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 142
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 152
gotoAndPlay ("walk_up");
Symbol 1962 MovieClip Frame 155
bbody.gotoAndPlay("walk_down");
Symbol 1962 MovieClip Frame 156
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("chomp_rolling.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 157
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 167
gotoAndPlay ("walk_down");
Symbol 1962 MovieClip Frame 175
bbody.gotoAndPlay("jump");
Symbol 1962 MovieClip Frame 177
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("jump1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 178
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 180
bbody.gotoAndPlay("bounce");
Symbol 1962 MovieClip Frame 197
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("thud1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 198
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 199
gotoAndPlay ("jump");
Symbol 1962 MovieClip Frame 205
bbody.gotoAndPlay("jump_up");
Symbol 1962 MovieClip Frame 207
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("jump1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 208
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 210
bbody.gotoAndPlay("bounce_up");
Symbol 1962 MovieClip Frame 227
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("thud1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 228
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 229
gotoAndPlay ("jump_up");
Symbol 1962 MovieClip Frame 235
bbody.gotoAndPlay("jump_down");
Symbol 1962 MovieClip Frame 237
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("jump1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 238
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 240
bbody.gotoAndPlay("bounce_down");
Symbol 1962 MovieClip Frame 257
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("thud1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 258
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 259
gotoAndPlay ("jump_down");
Symbol 1962 MovieClip Frame 265
bbody.gotoAndPlay("freeze");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("ice_freezing.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 266
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 270
gotoAndPlay ("freezeloop");
Symbol 1962 MovieClip Frame 275
bbody.gotoAndPlay("ouch");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
var _local5 = random(4) + 1;
_local4.attachSound(("ow" + _local5) + ".wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 276
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 290
gotoAndPlay ("ouch");
Symbol 1962 MovieClip Frame 295
bbody.gotoAndPlay("die");
Symbol 1962 MovieClip Frame 299
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("chomp_corroding.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 300
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 321
gotoAndPlay ("gone");
Symbol 1962 MovieClip Frame 325
bbody.gotoAndPlay("snack");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("snack.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 326
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 353
gotoAndPlay ("snack");
Symbol 1962 MovieClip Frame 355
bbody.gotoAndPlay("snack_up");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("snack.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 356
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 383
gotoAndPlay ("snack_up");
Symbol 1962 MovieClip Frame 385
bbody.gotoAndPlay("snack_down");
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("snack.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 1962 MovieClip Frame 386
onEnterFrame = function () {
};
Symbol 1962 MovieClip Frame 413
gotoAndPlay ("snack_down");
Symbol 1964 MovieClip [bend_upgrade] Frame 1
done.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
o1.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o1.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o2.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o2.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o3.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o3.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o4.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o4.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
o5.onRollOver = function () {
_global.sfx.attachSound("click3.wav");
_global.sfx.start();
};
o5.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
Symbol 1970 Button
on (release) {
_global.goAwayCustoms = "save";
}
Symbol 1971 Button
on (release) {
_global.goAwayCustoms = "reset";
}
Symbol 1975 MovieClip [bend_customize] Frame 1
function prepClass(bt) {
buntype = bt;
switch (buntype) {
case "Wabbit" :
this.attachMovie("bun_wabbit", "testbun", 1000);
break;
case "Chomp" :
this.attachMovie("bun_chomp", "testbun", 1000);
break;
case "Runner" :
this.attachMovie("bun_runner", "testbun", 1000);
break;
case "Cobra" :
this.attachMovie("bun_cobra", "testbun", 1000);
break;
case "Jet" :
this.attachMovie("bun_jet", "testbun", 1000);
break;
case "Medic" :
this.attachMovie("bun_medic", "testbun", 1000);
}
testbun._x = 135;
testbun._y = 120;
testbun._xscale = (testbun._yscale = 250);
testbun.gotoAndPlay("idle");
done.enabled = (cancel.enabled = true);
this._alpha = 100;
}
var init = false;
var buntype = "Wabbit";
cancel.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
done.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
this.onEnterFrame = function () {
if (!init) {
init = true;
}
var _local3 = rslider.val;
var _local4 = gslider.val;
var _local2 = bslider.val;
var _local1 = new Color(testbun.bbody);
_local1.fillTint(_local3, _local4, _local2, 80);
};
Symbol 1987 MovieClip [bend_ready] Frame 75
stop();
Symbol 1992 Button
on (release) {
_global.score = _parent.Tracker.total;
play();
}
Symbol 1994 Button
on (release) {
_global.score = _parent.Tracker.total;
play();
}
Symbol 1996 MovieClip [bend_finishup] Frame 32
stop();
cont.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
Symbol 1996 MovieClip [bend_finishup] Frame 41
onEnterFrame = function () {
_global.levelcount = _global.levelcount + 1;
switch (_global.levelcount) {
case 1 :
_global.diff = 3;
break;
case 2 :
_global.diff = 5.5;
break;
case 3 :
_global.diff = 8;
break;
case 4 :
_global.diff = 11;
break;
case 5 :
_global.diff = 14;
break;
case 6 :
_global.diff = 17;
break;
case 7 :
_global.diff = 21;
break;
case 8 :
_global.diff = 25;
break;
case 9 :
_global.diff = 29;
break;
case 10 :
_global.diff = 33;
}
if (_global.levelcount > 10) {
_global.diff = _global.diff * 1.1;
}
_global.nextscreen = "FreePlay";
_global.quitter = "exit";
var _local3 = new Sound(_root);
_local3.setVolume(0);
_global.transtime = _global.music.position;
};
Symbol 1996 MovieClip [bend_finishup] Frame 42
this.removeMovieClip();
Symbol 2004 MovieClip [bend_pause] Frame 59
stop();
Symbol 2007 Button
on (release) {
_global.quitter = "hide";
}
Symbol 2008 Button
on (release) {
bstate = "saving";
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(_parent.Bunnies.buns[i]);
_global.sdata.buns[i].state = _parent.Bunnies.buns[i].state;
i++;
}
saver._alpha = 100;
saver.saveorload = "save";
saver.text_title = "SAVE";
saver.delayclick = true;
saver.done._visible = true;
saver.isactive = true;
saver._visible = true;
disButtons();
}
Symbol 2009 Button
on (release) {
_global.score = _parent.Tracker.total;
if (!_global.incha) {
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(Bunnies.buns[i]);
_global.sdata.buns[i].state = Bunnies.buns[i].state;
i++;
}
} else if (_global.curlevel == "CHA_cheapskate") {
_global.score = 1500;
} else {
_global.score = 0;
}
bstate = "quit";
play();
}
Symbol 2013 Button
on (release) {
bstate = "saving";
_global.sdata.buns = _parent.Bunnies.buns.slice();
saver._alpha = 100;
saver.saveorload = "save";
saver.text_title = "SAVE";
saver.delayclick = true;
saver.done._visible = true;
saver.isactive = true;
saver._visible = true;
disButtons();
}
Symbol 2014 Button
on (release) {
delete _global.sdata.buns;
_global.sdata.buns = _parent.Bunnies.buns.slice();
bstate = "quit";
}
Symbol 2016 MovieClip [bend_exiting] Frame 22
function disButtons() {
cancel.enabled = (save.enabled = (quit.enabled = false));
}
function enButtons() {
cancel.enabled = (save.enabled = (quit.enabled = true));
}
stop();
var init = false;
var bstate = "";
bcanc.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
bsave.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
bquit.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (!init) {
init = true;
saver._visible = false;
bsave.enabled = (bsave._visible = false);
tsave = "";
}
if (bstate == "quit") {
_global.nextscreen = "HiScores";
_root.play();
_parent.clearAll();
bstate = "";
play();
}
if (saver.saveorload == "exit") {
saver._visible = false;
enButtons();
}
};
Symbol 2016 MovieClip [bend_exiting] Frame 23
stop();
onEnterFrame = function () {
};
this.removeMovieClip();
Symbol 2021 MovieClip [bend_chadone] Frame 32
stop();
cont.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
Symbol 2021 MovieClip [bend_chadone] Frame 41
onEnterFrame = function () {
_global.levelcount = _global.levelcount + 1;
_global.diff = _global.diff * 1.1;
if (_global.diff < 6) {
_global.diff = _global.diff + 1.5;
} else {
_global.diff = _global.diff + 1.5;
}
_global.nextscreen = "HiScores";
_global.quitter = "exit";
};
Symbol 2021 MovieClip [bend_chadone] Frame 42
this.removeMovieClip();
Symbol 2043 MovieClip Frame 2
gotoAndPlay ("normal");
Symbol 2043 MovieClip Frame 5
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("spring1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2043 MovieClip Frame 6
onEnterFrame = function () {
};
Symbol 2082 MovieClip [cable1_sparks] Frame 1
onEnterFrame = function () {
};
Symbol 2082 MovieClip [cable1_sparks] Frame 17
stop();
onEnterFrame = function () {
if (random(48) == 0) {
play();
if (random(3) == 0) {
var _local4 = new Sound(this);
_local4.attachSound("spark1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
}
};
Symbol 2088 MovieClip [tile_metal_cable_port] Frame 2
gotoAndPlay ("idle");
Symbol 2088 MovieClip [tile_metal_cable_port] Frame 11
gotoAndPlay ("off");
Symbol 2096 MovieClip [tile_metal_cable1] Frame 2
gotoAndPlay ("idle");
Symbol 2096 MovieClip [tile_metal_cable1] Frame 10
gotoAndPlay ("off");
Symbol 2107 MovieClip [tile_metal_high_cableb] Frame 2
gotoAndPlay ("idle");
Symbol 2107 MovieClip [tile_metal_high_cableb] Frame 11
gotoAndPlay ("off");
Symbol 2114 MovieClip [tile_metal_mid_cable_portb] Frame 2
gotoAndPlay ("idle");
Symbol 2114 MovieClip [tile_metal_mid_cable_portb] Frame 11
gotoAndPlay ("off");
Symbol 2118 MovieClip [tile_metal_mid_cableb] Frame 2
gotoAndPlay ("idle");
Symbol 2118 MovieClip [tile_metal_mid_cableb] Frame 11
gotoAndPlay ("off");
Symbol 2128 MovieClip Frame 2
gotoAndPlay ("idle");
Symbol 2128 MovieClip Frame 8
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("power_down.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2128 MovieClip Frame 9
onEnterFrame = function () {
};
Symbol 2128 MovieClip Frame 15
gotoAndPlay ("done");
Symbol 2197 MovieClip Frame 3
gotoAndPlay ("normal");
Symbol 2197 MovieClip Frame 5
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("machine_shift.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
play();
}
};
Symbol 2197 MovieClip Frame 6
onEnterFrame = function () {
};
Symbol 2266 MovieClip [tile_grass_carrotb] Frame 46
gotoAndPlay ("normal");
Symbol 2266 MovieClip [tile_grass_carrotb] Frame 51
gotoAndPlay ("gone");
Symbol 2346 MovieClip [title_bun_jet] Frame 1
bbody.gotoAndPlay("walk");
Symbol 2346 MovieClip [title_bun_jet] Frame 13
gotoAndPlay ("walk");
Symbol 2348 MovieClip [title_bun_medic] Frame 1
bbody.gotoAndPlay("walk");
Symbol 2348 MovieClip [title_bun_medic] Frame 13
gotoAndPlay ("walk");
Symbol 2353 MovieClip [title_bun_runner] Frame 1
bbody.gotoAndPlay("walk");
Symbol 2353 MovieClip [title_bun_runner] Frame 9
gotoAndPlay ("walk");
Symbol 2358 MovieClip [title_bun_wabbit] Frame 1
bbody.gotoAndPlay("walk");
Symbol 2358 MovieClip [title_bun_wabbit] Frame 13
gotoAndPlay ("walk");
Symbol 2468 MovieClip Frame 2
gotoAndPlay ("normal");
Symbol 2468 MovieClip Frame 4
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("urchin.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2468 MovieClip Frame 5
onEnterFrame = function () {
};
Symbol 2478 MovieClip Frame 2
gotoAndPlay ("normal");
Symbol 2478 MovieClip Frame 4
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("urchin.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2478 MovieClip Frame 5
onEnterFrame = function () {
};
Symbol 2545 MovieClip [tile_tropic_carrot] Frame 40
gotoAndPlay ("normal");
Symbol 2545 MovieClip [tile_tropic_carrot] Frame 49
gotoAndPlay ("gone");
Symbol 2588 MovieClip Frame 3
gotoAndPlay ("normal");
Symbol 2588 MovieClip Frame 5
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("urchin.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2588 MovieClip Frame 6
onEnterFrame = function () {
};
Symbol 2595 MovieClip [tile_metal_carrot] Frame 40
gotoAndPlay ("normal");
Symbol 2595 MovieClip [tile_metal_carrot] Frame 49
gotoAndPlay ("gone");
Symbol 2607 MovieClip Frame 1
var init = false;
onEnterFrame = function () {
if ((!init) && (random(3) == 0)) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("spark1.wav");
_local4.setVolume(_global.soundAdjust(_parent._x) - 15);
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2607 MovieClip Frame 2
onEnterFrame = function () {
};
Symbol 2630 MovieClip [frog] Frame 10
var init = false;
onEnterFrame = function () {
if ((random(4) == 0) && (!init)) {
init = true;
var _local4 = new Sound(this);
var _local5 = random(3) + 1;
_local4.attachSound(("croak" + _local5) + ".wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2630 MovieClip [frog] Frame 11
onEnterFrame = function () {
};
Symbol 2630 MovieClip [frog] Frame 55
gotoAndPlay ("idle");
Symbol 2630 MovieClip [frog] Frame 85
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("squish.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2630 MovieClip [frog] Frame 86
onEnterFrame = function () {
};
Symbol 2630 MovieClip [frog] Frame 90
gotoAndPlay ("squished");
Symbol 2634 MovieClip [bug] Frame 33
gotoAndPlay ("idle");
Symbol 2634 MovieClip [bug] Frame 40
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("squish.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2634 MovieClip [bug] Frame 41
onEnterFrame = function () {
};
Symbol 2634 MovieClip [bug] Frame 45
gotoAndPlay ("squished");
Symbol 2641 MovieClip [bird] Frame 13
var init = false;
onEnterFrame = function () {
if ((random(5) == 0) && (!init)) {
init = true;
var _local4 = new Sound(this);
var _local5 = random(3) + 1;
_local4.attachSound(("chirp" + _local5) + ".wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2641 MovieClip [bird] Frame 14
onEnterFrame = function () {
};
Symbol 2641 MovieClip [bird] Frame 40
gotoAndPlay ("idle");
Symbol 2641 MovieClip [bird] Frame 45
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("squak.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2641 MovieClip [bird] Frame 46
onEnterFrame = function () {
};
Symbol 2641 MovieClip [bird] Frame 50
gotoAndPlay ("squished");
Symbol 2645 MovieClip [starfish] Frame 5
gotoAndPlay ("normal");
Symbol 2645 MovieClip [starfish] Frame 10
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
var _local4 = new Sound(this);
_local4.attachSound("squish.wav");
_local4.setVolume(_global.soundAdjust(_parent._x));
_local4.setPan(_global.panAdjust(_parent._x));
_local4.start(0, 1);
}
};
Symbol 2645 MovieClip [starfish] Frame 11
onEnterFrame = function () {
};
Symbol 2645 MovieClip [starfish] Frame 15
gotoAndPlay ("squished");
Symbol 2647 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (random(100) == 0) {
play();
}
};
Symbol 2647 MovieClip Frame 2
onEnterFrame = function () {
};
Symbol 2647 MovieClip Frame 11
stop();
onEnterFrame = function () {
if (random(100) == 0) {
play();
}
};
Symbol 2647 MovieClip Frame 12
onEnterFrame = function () {
};
Symbol 2647 MovieClip Frame 23
stop();
onEnterFrame = function () {
if (random(100) == 0) {
play();
}
};
Symbol 2647 MovieClip Frame 24
onEnterFrame = function () {
};
Symbol 2653 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (random(100) == 0) {
play();
}
};
Symbol 2653 MovieClip Frame 2
onEnterFrame = function () {
};
Symbol 2653 MovieClip Frame 11
stop();
onEnterFrame = function () {
if (random(100) == 0) {
play();
}
};
Symbol 2653 MovieClip Frame 12
onEnterFrame = function () {
};
Symbol 2653 MovieClip Frame 23
stop();
onEnterFrame = function () {
if (random(100) == 0) {
play();
}
};
Symbol 2653 MovieClip Frame 24
onEnterFrame = function () {
};
Symbol 2656 Button
on (release) {
fscommand ("quit");
}
Symbol 2660 Button
on (release) {
getURL ("http://www.pgstudios.org", "_blank");
}
Symbol 2661 MovieClip Frame 1
onEnterFrame = function () {
};
Symbol 2661 MovieClip Frame 135
stop();
onEnterFrame = function () {
if (random(24) == 0) {
play();
}
};
Symbol 2676 Button
on (release) {
if (screen != "fp") {
_root[screen].gotoAndPlay("fade");
bstate = "";
screen = "fp";
fp.gotoAndPlay("show");
}
}
Symbol 2677 Button
on (release) {
if (screen != "ch") {
_root[screen].gotoAndPlay("fade");
bstate = "";
screen = "ch";
ch.gotoAndPlay("show");
}
}
Symbol 2678 Button
on (release) {
if (screen != "da") {
_root[screen].gotoAndPlay("fade");
bstate = "";
screen = "da";
da.gotoAndPlay("show");
}
}
Symbol 2679 Button
on (release) {
if (screen != "op") {
_root[screen].gotoAndPlay("fade");
bstate = "";
screen = "op";
op.gotoAndPlay("show");
}
}
Symbol 2684 Button
on (release) {
if (fp.select != undefined) {
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(fp.buns[i]);
fp.buns[i].mc.removeMovieClip();
i++;
}
}
showHelp();
}
Symbol 2689 Button
on (release) {
if (fp.select != undefined) {
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(fp.buns[i]);
fp.buns[i].mc.removeMovieClip();
i++;
}
}
showCred();
}
Symbol 2692 Button
on (release) {
if (fp.select != undefined) {
var i = 0;
while (i < 4) {
_global.sdata.buns[i].loadBunny(fp.buns[i]);
fp.buns[i].mc.removeMovieClip();
i++;
}
}
showUnlock();
}
Symbol 2695 MovieClip Frame 1
stop();
Symbol 2695 MovieClip Frame 11
stop();
var bstate = "";
closebut.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (bstate != "deleting") {
loader._visible = false;
}
if ((bstate == "done") || (loader.saveorload == "exit")) {
bstate = (loader.saveorload = "");
hscore.enabled = (msave.enabled = true);
}
if (bstate == "return") {
this.hs.removeMovieClip();
hscore.enabled = (msave.enabled = true);
bstate = "";
}
};
Symbol 2695 MovieClip Frame 24
onEnterFrame = function () {
};
Symbol 2698 Button
on (release) {
sel(1);
}
Symbol 2699 Button
on (release) {
sel(2);
}
Symbol 2700 Button
on (release) {
sel(3);
}
Symbol 2701 Button
on (release) {
sel(4);
}
Symbol 2702 Button
on (release) {
sel(5);
}
Symbol 2703 Button
on (release) {
sel(6);
}
Symbol 2704 Button
on (release) {
sel(7);
}
Symbol 2705 Button
on (release) {
sel(8);
}
Symbol 2706 Button
on (release) {
sel(9);
}
Symbol 2707 Button
on (release) {
sel(10);
}
Symbol 2708 Button
on (release) {
sel(11);
}
Symbol 2709 Button
on (release) {
sel(12);
}
Symbol 2710 Button
on (release) {
sel(13);
}
Symbol 2711 Button
on (release) {
sel(14);
}
Symbol 2712 Button
on (release) {
sel(15);
}
Symbol 2732 Button
on (release) {
_parent.bstate = "closetut";
}
Symbol 2738 Button
on (release) {
if (current > 1) {
current--;
} else if (current == 1) {
current = 15;
}
sel(current);
}
Symbol 2739 Button
on (release) {
if (current < 15) {
current++;
} else if (current == 15) {
current = 1;
}
sel(current);
}
Symbol 2790 MovieClip Frame 1
onEnterFrame = function () {
b1.stop();
b2.stop();
b3.stop();
b1.bbody.stop();
b2.bbody.stop();
b3.bbody.stop();
};
Symbol 2805 MovieClip Frame 1
onEnterFrame = function () {
b1.stop();
b2.stop();
b3.stop();
b1.bbody.stop();
b2.bbody.stop();
b3.bbody.stop();
};
Symbol 2808 MovieClip Frame 1
bbody.gotoAndPlay("resting");
Symbol 2808 MovieClip Frame 68
gotoAndPlay ("resting");
Symbol 2816 MovieClip Frame 1
var init = false;
onEnterFrame = function () {
if (!init) {
init = true;
b1.gotoAndPlay("resting");
}
};
Symbol 2824 MovieClip Frame 1
Symbol 2869 MovieClip Frame 1
function clearsel() {
var _local2 = 1;
while (_local2 < 16) {
this["te" + _local2].textColor = 3355443 /* 0x333333 */;
this["tutpage" + _local2]._visible = false;
_local2++;
}
}
function sel(i) {
clearsel();
this["te" + i].textColor = 16777215 /* 0xFFFFFF */;
this["tutpage" + i]._visible = true;
this["tutpage" + i]._alpha = 100;
current = i;
}
var current = 1;
var init = false;
leftswap.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
rightswap.onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
closer.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (!init) {
init = true;
tutpage1._visible = true;
tutpage1._alpha = 100;
var _local3 = 1;
while (_local3 < 16) {
this["t" + _local3].onPress = function () {
_global.sfx.attachSound("click2.wav");
_global.sfx.start();
};
_local3++;
}
}
};
Symbol 2875 Button
on (release) {
getURL ("http://www.runbunnies.com/freesound_credits.html", "_blank");
}
Symbol 2876 MovieClip Frame 1
stop();
Symbol 2876 MovieClip Frame 11
stop();
var bstate = "";
closebut.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};
onEnterFrame = function () {
if (bstate != "deleting") {
loader._visible = false;
}
if ((bstate == "done") || (loader.saveorload == "exit")) {
bstate = (loader.saveorload = "");
hscore.enabled = (msave.enabled = true);
}
if (bstate == "return") {
this.hs.removeMovieClip();
hscore.enabled = (msave.enabled = true);
bstate = "";
}
};
Symbol 2876 MovieClip Frame 24
onEnterFrame = function () {
};
Symbol 2879 Button
on (release) {
_root.play();
}
Symbol 2891 Button
on (release) {
if (mark._alpha == 0) {
mark._alpha = 100;
_global.levelcount = 5;
_global.diff = 15;
_global.score = 150000 /* 0x0249F0 */;
} else {
mark._alpha = 0;
_global.levelcount = 1;
_global.diff = 3;
_global.score = 0;
}
}
Symbol 2903 MovieClip Frame 1
proceed.onPress = function () {
_global.sfx.attachSound("click1.wav");
_global.sfx.start();
};