Frame 1
MochiAd.showPreloaderAd({id:"92b3feaf1147539b", res:"600x400"});
Stage.showMenu = false;
Stage.scaleMode = "noScale";
Frame 2
function checkLoad(l) {
_root.btLoaded = Math.floor(_root.getBytesLoaded() / 1024);
_root.btTotal = Math.floor(_root.getBytesTotal() / 1024);
_root.pcLoaded = Math.floor((_root.btLoaded / _root.btTotal) * 100);
_root.load_progress_mc.gotoAndStop(_root.pcLoaded);
if ((_root.btLoaded >= _root.btTotal) && (_root.btTotal > 0)) {
clearInterval(nProgress);
play();
}
updateAfterEvent();
}
System.security.allowDomain("http://www.bubblebox.com/");
var nProgress;
var urlProtected = false;
_root.muteMusic = false;
_root.muteFX = false;
_root.introVariableResetter = false;
var btLoaded = 0;
var btTotal = 0;
var pcLoaded = 0;
var currUrl = _url.toLowerCase();
if (urlProtected && (currUrl.indexOf("tigertailstudios.com") <= 0)) {
getURL ("www.tigertailstudios.com", "_top");
} else {
nProgress = setInterval(checkLoad, 100, this);
}
stop();
Frame 16
gotoAndStop (22);
Frame 24
gotoAndStop (25);
Frame 25
function startGame() {
gotoAndPlay (1288);
}
function playStory() {
gotoAndPlay (26);
}
function playEndStory() {
gotoAndPlay (1289);
}
function playCredits() {
gotoAndPlay (1510);
}
function showMenu() {
gotoAndPlay (25);
}
function playBackground() {
stopBackground();
if (!_root.muteMusic) {
var _local2 = new Sound();
_local2.attachSound(_root.backgroundMusic);
_local2.start(0, 1000);
}
}
function playMenuBackground() {
_root.backgroundMusic = "menu_music";
playBackground();
}
function playGameBackground(currLevel) {
var _local2 = (Math.floor(currLevel / 4) % 3) + 1;
_root.backgroundMusic = "gameBG" + _local2;
playBackground();
}
function playSadSong() {
_root.backgroundMusic = "sad_music";
playBackground();
}
function stopBackground() {
stopAllSounds();
}
function toggleMuteMusic() {
_root.muteMusic = (_root.muteMusic ? false : true);
}
function toggleMuteFX() {
_root.muteFX = (_root.muteFX ? false : true);
}
function toggleIntroVariable() {
_root.introVariableResetter = (_root.introVariableResetter ? false : true);
}
_root.level_restart_mc.removeMovieClip();
_root.backFromCredits = false;
_root.totalLevels = 24;
if (!_root.backFromCredits) {
stopBackground();
playMenuBackground();
} else {
_root.backFromCredits = false;
}
savedData = SharedObject.getLocal("user_data");
_root.saveProgress = savedData.data;
if (_root.saveProgress.levelsCompleted == null) {
_root.saveProgress.levelsCompleted = 1;
}
if (_root.saveProgress.highScore == null) {
_root.saveProgress.highScore = 0;
}
stop();
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("d392da3f", this, 10301, true);
Instance of Symbol 531 MovieClip in Frame 25
onClipEvent (load) {
if ((_root.saveProgress.levelsCompleted == null) || (_root.saveProgress.levelsCompleted == 1)) {
this._visible = false;
}
}
Frame 1287
_root.startLevelNo = 1;
_root.startGame();
stop();
Frame 1288
function setIntroVariables(bool) {
_root.beeIntroShown = (_root.healthBarIntroShown = (_root.droneIntroShown = (_root.kamikazeIntroShown = (_root.miteIntroShown = (_root.hornetIntroShown = (_root.swarmIntroShown = (_root.spiderIntroShown = (_root.healthIntroShown = (_root.lightArmorIntroShown = (_root.sloMoIntroShown = (_root.pollenGunIntroShown = (_root.stingIntroShown = (_root.heavyArmorIntroShown = (_root.endHotelIntroShown = (_root.slomoBarIntroShown = (_root.slomoPromoShown = bool))))))))))))))));
}
function calculatePPF() {
_root.ppfArray[2] = _root.ppfArray[1];
_root.ppfArray[1] = _root.ppfArray[0];
_root.ppfArray[0] = (_root.anim_bee_mc.beeHealth / _root.baseBeeHealth) * 100;
_root.ppf = Math.ceil(((_root.ppfArray[0] + _root.ppfArray[1]) + _root.ppfArray[2]) / 3);
}
function reducePPFonRestart() {
var _local2 = 0.2;
_root.ppfArray[0] = _root.ppfArray[0] - (_root.ppfArray[0] * _local2);
_root.ppfArray[1] = _root.ppfArray[1] - (_root.ppfArray[1] * _local2);
_root.ppfArray[2] = _root.ppfArray[2] - (_root.ppfArray[2] * _local2);
if (_root.ppfArray[0] < 0) {
_root.ppfArray[0] = 0;
}
if (_root.ppfArray[1] < 0) {
_root.ppfArray[1] = 0;
}
if (_root.ppfArray[2] < 0) {
_root.ppfArray[2] = 0;
}
_root.ppf = Math.ceil(((_root.ppfArray[0] + _root.ppfArray[1]) + _root.ppfArray[2]) / 3);
}
function showPointer() {
Mouse.hide();
_root.attachMovie("mouse_pointer", "mouse_pointer_mc", 90000);
startDrag (_root.mouse_pointer_mc, true, 0, 0, Stage.width, Stage.height);
}
function createDisplayPanel() {
_root.attachMovie("Display Panel", "disp_panel_mc", 70000);
}
function showDisplayPanel() {
_root.disp_panel_mc._visible = true;
if (((!_root.healthBarIntroShown) && (_root.terrain_controller_mc.currLevel != _root.startLevelNo)) && (_root.prevBaseBeeHealth == (_root.baseBeeHealth - 10))) {
_root.healthBarIntroShown = true;
_root.talker_mc.startTalk("healthbar", "disp_panel_mc.health_bar_mc");
_root.freezeAll();
}
}
function hideDisplayPanel() {
_root.disp_panel_mc._visible = false;
}
function removeDisplayPanel() {
_root.disp_panel_mc.removeMovieClip();
}
function addParameters(char_mc, paramStr) {
while (paramStr.length > 0) {
var _local2 = paramStr.substring(1, paramStr.indexOf(")"));
var _local3 = _local2.split("=");
char_mc[_local3[0]] = _local3[1];
paramStr = paramStr.substring(_local2.length + 2);
}
}
function addEnemy(enemyName) {
_root.enemiesArr.push(enemyName);
}
function removeEnemy(enemyName) {
var i;
i = 0;
while ((i < enemiesArr.length) && (enemiesArr[i] != enemyName)) {
i++;
}
if (i != enemiesArr.length) {
eval (_root.enemiesArr[i]).removeMovieClip();
enemiesArr.splice(i, 1);
}
}
function clearEnemies() {
var i = 0;
while (i < _root.enemiesArr.length) {
eval ("_root." + _root.enemiesArr[i]).removeMovieClip();
i++;
}
}
function freezeEnemies() {
var i = 0;
while (i < _root.enemiesArr.length) {
eval ("_root." + _root.enemiesArr[i]).freeze();
i++;
}
}
function unFreezeEnemies() {
var i = 0;
while (i < _root.enemiesArr.length) {
eval ("_root." + _root.enemiesArr[i]).unFreeze();
i++;
}
}
function setClearStage(bool) {
_root.clearStage = bool;
}
function startTerrainScrolling() {
_root.scrollSpeed = _root.baseScrollSpeed * _root.slowMotionFactor;
}
function stopTerrainScrolling() {
_root.scrollSpeed = 0;
}
function freezeAll() {
stopTerrainScrolling();
_root.slowMotionFactor = 0;
_root.anim_bee_mc.stopBeeMove();
freezeEnemies();
_root.pauseGame = true;
}
function unFreezeAll() {
startTerrainScrolling();
_root.anim_bee_mc.startBeeMove();
unFreezeEnemies();
_root.pauseGame = false;
stopSlowMotionEffect();
if (_root.currentIntroShown != "") {
_root[_root.currentIntroShown].unFreeze();
_root.talker_mc.abortIntro();
_root.currentIntroShown = "";
}
}
function updateScorer(levelNumber) {
Scorer.setLevelBonus(levelNumber);
Scorer.setHeartBonus((_root.anim_bee_mc.beeHealth / _root.baseBeeHealth) * 100);
Scorer.calculateTotalScore();
}
function showHelp() {
stopSlowMotionEffect();
if (_root.pauseMenuShown) {
removePauseMenu();
} else {
_root.freezeAll();
}
_root.attachMovie("help_panel", "help_panel_mc", 80400);
_root.help_panel_mc._x = _root.midX;
_root.help_panel_mc._y = _root.midY;
_root.helpShown = true;
}
function showUploadScorePanel() {
_root.attachMovie("uploader_menu", "uploader_menu_mc", 80300);
_root.uploader_menu_mc._x = Stage.width / 2;
_root.uploader_menu_mc._y = Stage.height / 2;
}
function removeHelp() {
if (!_root.clearStage) {
_root.unFreezeAll();
}
_root.help_panel_mc.removeMovieClip();
_root.helpShown = false;
}
function showPauseMenu() {
stopBackground();
_root.attachMovie("pause_menu", "pause_menu_mc", 80300);
_root.pause_menu_mc._x = Stage.width / 2;
_root.pause_menu_mc._y = Stage.height / 2;
_root.pauseMenuShown = true;
}
function removePauseMenu() {
_root.pause_menu_mc.removeMovieClip();
playBackground();
_root.pauseMenuShown = false;
}
function quitToMainMenu() {
_root.terrain_controller_mc.clearAll();
_root.showMenu();
}
function startSlowMotionEffect() {
_root.measureRowCF = false;
if (!_root.slomoPromoShown) {
_root.slomoPromoShown = true;
}
if (((!_root.pauseGame) && (!_root.clearStage)) && (_root.slowMotionDuration > 0)) {
stopReplenishSlowMotion();
_root.slowMotionFactor = _root.slowMotionReductionFactor;
clearInterval(_root.slowMotionProcess);
_root.slowMotionProcess = setInterval(_root.updateSlowMotionEffect, 100);
startTerrainScrolling();
}
}
function updateSlowMotionEffect() {
if (_root.pauseGame) {
return(undefined);
}
if (_root.slowMotionProcess == 0) {
_root.slowMotionDuration = _root.slowMotionDuration + 10;
}
if (_root.replenishProcess == 0) {
_root.slowMotionDuration = _root.slowMotionDuration - 100;
}
if (_root.slowMotionDuration <= 0) {
_root.slowMotionDuration = 0;
stopSlowMotionEffect();
}
if (_root.slowMotionDuration >= _root.baseSlowMotionDuration) {
resetSlowMotionDuration();
}
}
function resetSlowMotionDuration() {
clearInterval(_root.slowMotionProcess);
clearInterval(_root.replenishProcess);
_root.slowMotionProcess = 0;
_root.slowMotionFactor = 1;
_root.slowMotionDuration = _root.baseSlowMotionDuration;
}
function stopSlowMotionEffect() {
if (_root.clearStage || (_root.pauseGame)) {
return(undefined);
}
clearInterval(_root.slowMotionProcess);
_root.slowMotionProcess = 0;
_root.slowMotionFactor = 1;
if (_root.slowMotionDuration < _root.baseSlowMotionDuration) {
clearInterval(_root.replenishProcess);
_root.replenishProcess = setInterval(_root.updateSlowMotionEffect, 100);
}
startTerrainScrolling();
}
function stopReplenishSlowMotion() {
clearInterval(_root.replenishProcess);
_root.replenishProcess = 0;
}
function removeKeyListener() {
Key.removeListener(keyListener);
}
function addKeyListener() {
Key.addListener(keyListener);
}
_root.enemiesArr = new Array();
_root.totalLevels = 24;
_root.droneBeesId = 1;
_root.spidersId = 1;
_root.baseScrollSpeed = 3;
_root.prevBaseBeeHealth = (_root.startBeeHealth = (_root.baseBeeHealth = 30));
_root.fps = 33;
_root.ticks = 0;
_root.terrainRenderFrequency = 200;
_root.slowMotionAcquired = false;
_root.ppfArray = new Array(0, 0, 0);
_root.ppf = 0;
_root.pauseGame = false;
_root.clearStage = true;
_root.currentIntroShown = "";
_root.angleConvFactor = 57.2957795130823;
_root.pauseMenuShown = false;
_root.helpShown = false;
_root.measureRowCF = false;
_root.midX = Stage.width / 2;
_root.midY = Stage.height / 2;
_root.perFrameTime = 1000 / _root.fps;
_root.cityNamesArr = new Array("DRONE CITY", "MITESVILLE", "SWARMWOOD", "HORNETCOVE", "SPIDEY TOWN", "ALL HELL");
_root.levelNamesArr = new Array("SUBURBS", "COUNTRYSIDE", "BEACH", "FOREST");
var redColorTransform = (new flash.geom.ColorTransform(1, 1, 1, 0, 255, -50, -50, 255));
var extraRedColorTransform = (new flash.geom.ColorTransform(1, 1, 1, 0, 255, -100, -100, 255));
setIntroVariables(_root.introVariableResetter);
showPointer();
_root.baseArmorStrength = new Array(1, 100, 200, 300);
_root.armorProtectionFactor = new Array(0, 0.75, 0.85, 0.95);
_root.baseSlowMotionDuration = 10000;
_root.slowMotionDuration = _root.baseSlowMotionDuration;
_root.slowMotionProcess = 0;
_root.replenishProcess = 0;
_root.slowMotionFactor = 1;
_root.slowMotionReductionFactor = 0.4;
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (((Key.getAscii() == 32) && (_root.slowMotionAcquired)) && (!_root.pauseGame)) {
if (_root.slowMotionProcess == 0) {
_root.startSlowMotionEffect();
} else {
_root.stopSlowMotionEffect();
}
} else if (((((((Key.getAscii() == 112) || (Key.getAscii() == 80)) || (Key.getAscii() == 113)) || (Key.getAscii() == 81)) || (Key.isDown(27))) && (!_root.clearStage)) && (!_root.helpShown)) {
if (!_root.pauseGame) {
showPauseMenu();
stopSlowMotionEffect();
_root.freezeAll();
} else {
if (_root.currentIntroShown == "") {
removePauseMenu();
}
_root.unFreezeAll();
}
}
};
addKeyListener();
stop();
Frame 1289
_root.stopBackground();
playMenuBackground();
Frame 1509
if (Scorer.getTotalScore() <= _root.saveProgress.highScore) {
_root.upload_scores_btn._visible = false;
} else {
_root.saveProgress.highScore = Scorer.getTotalScore();
}
stop();
Instance of Symbol 283 MovieClip "totalTicker_mc" in Frame 1509
onClipEvent (load) {
this.increment = 1000;
this.targetValue = Scorer.getTotalScore();
this.gotoAndPlay(2);
}
Frame 1969
gotoAndPlay (1510);
Symbol 669 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 670 MovieClip [__Packages.GameObject] Frame 0
class GameObject
{
var __name, __x, __y;
function GameObject (name) {
setName(name);
}
function setName(name) {
__name = name;
}
function getName() {
return(__name);
}
function setX(x) {
__x = x;
}
function getX() {
return(__x);
}
function setY(y) {
__y = y;
}
function getY() {
return(__y);
}
function getString() {
return(((((getName() + ":(_x=") + getX()) + ")(_y=") + getY()) + ")");
}
}
Symbol 671 MovieClip [__Packages.Character] Frame 0
class Character extends GameObject
{
var charId;
function Character (cId) {
super(CharCreator.allChars[cId]);
charId = cId;
}
function getCharId() {
return(charId);
}
function setBaseCF(pBaseCF) {
baseCF = Math.ceil(pBaseCF);
}
function getBaseCF() {
return(baseCF);
}
function setHelpFactor(helpFactor) {
baseHelpFactor = helpFactor;
}
function getHelpFactor() {
return(baseHelpFactor);
}
function updateParamString(pName, pValue) {
paramString = paramString + (((("(" + pName) + "=") + pValue) + ")");
}
function getString() {
return(super.getString() + paramString);
}
function updateCF(CFValue) {
return(null);
}
function updateSpeed(defaultSpeed, deltaSpeed) {
updateParamString("speed", Math.ceil(defaultSpeed + deltaSpeed));
}
function updateAttackChance(defaultAttackChance, deltaAttackChance) {
updateParamString("attackChance", Math.ceil(defaultAttackChance + deltaAttackChance));
}
function updateHitPoints(defaultHitPoints, deltaHitPoints) {
updateParamString("hitPoints", Math.ceil(defaultHitPoints + deltaHitPoints));
}
function updateDamagePoints(defaultDamagePoints, deltaDamagePoints) {
updateParamString("damagePoints", defaultDamagePoints + deltaDamagePoints);
}
function updatePixelage(defaultPixelage, deltaPixelage) {
updateParamString("pixelage", Math.ceil(defaultPixelage + deltaPixelage));
}
function updateHelpFactor(addCF) {
addCF = addCF - 0.1;
setHelpFactor(getHelpFactor() + (addCF * (10 * getHelpFactor())));
}
var paramString = "";
var baseCF = 0;
var baseHelpFactor = 0;
}
Symbol 672 MovieClip [__Packages.CharCreator] Frame 0
class CharCreator
{
var levelChars;
function CharCreator (levelNumber, totalLevelCF) {
levelNo = levelNumber;
levelCF = totalLevelCF;
levelHelpFactor = Math.floor(levelCF / 20);
permittedCharsArray = new Array();
var _local2 = 0;
while (_local2 < percentDistArr[levelNo].length) {
charCFBucketArray[_local2] = Math.floor(levelCF * percentDistArr[levelNo][_local2]);
if (charCFBucketArray[_local2] > 0) {
permittedCharsArray.push(_local2);
}
_local2++;
}
}
function createCharacters(gameArray) {
createCharacterList();
var _local2 = 0;
while (_local2 < levelChars.length) {
_local2++;
}
organizeCharacters(gameArray);
}
function createCharacterList(gameArray) {
levelChars = new Array();
var _local6 = 0;
while (_local6 < levelCF) {
var _local3 = getCharacter();
var _local4 = _local3.getCharId();
var _local7 = (levelCF + _local6) / LevelGen.maxDeltaCF;
_local3.updateCF(_local7);
var _local5 = _local3.getBaseCF();
_local6 = _local6 + _local5;
charCFBucketArray[_local4] = charCFBucketArray[_local4] - _local5;
if (charCFBucketArray[_local4] < 0) {
var _local2 = 0;
_local2 = 0;
while ((_local2 < permittedCharsArray.length) && (permittedCharsArray[_local2] != _local4)) {
_local2++;
}
if (_local2 != permittedCharsArray.length) {
permittedCharsArray.splice(_local2, 1);
}
}
levelChars.push(_local3);
}
}
function getCharacter() {
var _local2 = 0;
_local2 = permittedCharsArray[random(permittedCharsArray.length)];
switch (String(_local2)) {
case "0" :
return(new Drone());
case "1" :
return(new Kamikaze());
case "2" :
return(new Mite());
case "3" :
return(new Swarm());
case "4" :
return(new Hornet());
case "5" :
return(new Spider(spiderId++));
}
}
function organizeCharacters(gameArray) {
if ((_root.ppf <= 50) && ((_root.anim_bee_mc.beeHealth / _root.baseBeeHealth) <= 0.5)) {
addHealthBonus(gameArray, 0);
}
if ((!_root.slowMotionAcquired) && (levelNo >= sloMoIntroLevel)) {
addSlowMotionBonus(gameArray, random(5));
addSlowMotionBonus(gameArray, 6 + random(3));
}
if (pollenGunLevelCheck() && (!_root.beeHoldsGun)) {
addPollenGunBonus(gameArray, random(5));
}
var _local13 = (gameArray.length - 2) / levelChars.length;
var _local16 = new Array(3, 2, 3, 2, 2);
var _local6 = new Array(0, 0, 0, 0, 0);
var _local7 = 0;
var _local15 = 1;
var _local8 = 0;
var _local14 = 3;
var _local11 = new Array(0, 0, 0);
var _local12 = 0;
var _local5 = 1;
var _local9 = 0;
while ((_local5 < gameArray.length) && (_local9 < levelChars.length)) {
if ((Math.floor(_local5) - _local15) >= 1) {
if (_local13 > 1) {
_local8 = _local8 / _local13;
}
_local12 = _local12 + _local8;
_local12 = _local12 - _local11[_local14 - 1];
_local11.unshift(_local8);
_local11.length = _local14;
if ((_local12 / levelHelpFactor) >= 0.2) {
createBonusItems(Math.floor(_local5), gameArray);
_local12 = 0;
_local11 = [0, 0, 0];
}
_local8 = 0;
_local15 = Math.floor(_local5);
}
var _local4 = Character(levelChars[_local9]);
if (_local4.getName() == "spider") {
gameArray.updateArrayAtIndex(_local4.getString(), Math.floor(_local5) + _local7, false);
_local7 = _local7 + Math.floor(Spider(_local4).getSpiderWebHeight() / _root.terrainRenderFrequency);
if (levelNo > 20) {
_local7--;
}
} else {
gameArray.updateArrayAtIndex(_local4.getString(), Math.floor(_local5) + _local6[_local4.getCharId()]);
_local6[_local4.getCharId()] = _local6[_local4.getCharId()] + (_local16[_local4.getCharId()] + 1);
}
if (_local7 > 0) {
_local7--;
}
var _local3 = 0;
while (_local3 < _local6.length) {
if (_local6[_local3] > 0) {
_local6[_local3]--;
}
_local3++;
}
_local8 = _local8 + _local4.getHelpFactor();
_local5 = _local5 + _local13;
_local9++;
}
}
function createBonusItems(currIndex, gameArray) {
var _local4 = (((currIndex - 3) > 0) ? (currIndex - 3) : 0);
var _local3 = random(100);
if (_local3 < 20) {
if (random(100) < 50) {
addHealthBonus(gameArray, _local4);
} else {
addArmorBonus(gameArray, ((levelNo <= (_root.totalLevels / 2)) ? 1 : 2), _local4);
}
}
if (pollenGunLevelCheck()) {
_local3 = random(100);
if (_local3 < 15) {
addPollenGunBonus(gameArray, _local4);
}
}
}
function pollenGunLevelCheck() {
return((levelNo >= pollenGunIntroLevel) && ((levelNo % 4) > 1));
}
function addHealthBonus(gameArray, index) {
gameArray.updateArrayAtIndex(new HealthBonus().getString(), index);
}
function addArmorBonus(gameArray, armorType, index) {
gameArray.updateArrayAtIndex(new ArmorBonus(armorType).getString(), index);
}
function addPollenGunBonus(gameArray, index) {
gameArray.updateArrayAtIndex(new PollenGunBonus().getString(), index);
}
function addSlowMotionBonus(gameArray, index) {
gameArray.updateArrayAtIndex(new SlowMotionBonus().getString(), index);
}
var levelCFVariance = 1.1;
static var allChars = new Array("drone_bee", "kamikaze_bee", "mite", "swarm", "hornet", "spider");
static var allBonuses = new Array("health_icon", "armor_icon", "pollen_gun_icon", "slowmotion_icon");
var percentDistArr = new Array([0.8], [0, 0.8], [0.6, 0.4], [0.4, 0.6], [0.25, 0, 0.75], [0, 0.3, 0.7], [0.1, 0.3, 0.6], [0.1, 0.4, 0.5], [0, 0.3, 0, 0.7], [0, 0, 0.3, 0.7], [0.1, 0.4, 0, 0.5], [0.05, 0.25, 0.3, 0.4], [0, 0.1, 0.2, 0, 0.7], [0, 0.2, 0, 0.2, 0.6], [0.1, 0, 0.2, 0.3, 0.5], [0, 0.15, 0.15, 0.25, 0.45], [0, 0.4, 0, 0, 0, 0.6], [0, 0, 0.1, 0.3, 0, 0.6], [0.1, 0.3, 0.2, 0, 0, 0.4], [0.05, 0.25, 0.2, 0, 0, 0.5], [0, 0, 0.3, 0, 0.3, 0.4], [0, 0.15, 0, 0.1, 0.35, 0.4], [0, 0.2, 0, 0.15, 0.35, 0.35], [0, 0.2, 0.2, 0.2, 0.2, 0.2]);
var charCFBucketArray = new Array(0, 0, 0, 0, 0, 0);
var permittedCharsArray = new Array();
var sloMoIntroLevel = 6;
var pollenGunIntroLevel = 2;
var levelCF = 0;
var levelHelpFactor = 0;
var levelNo = 0;
var spiderId = 0;
var noOfSwarmsCreated = 0;
}
Symbol 673 MovieClip [__Packages.GameArray] Frame 0
class GameArray extends Array
{
var length;
function GameArray (arrLength) {
super(arrLength);
var _local3 = 0;
while (_local3 < length) {
this[_local3] = "";
_local3++;
}
}
function updateArrayAtIndex(objectString, index, fitBack) {
if (fitBack == undefined) {
fitBack = true;
}
if (index < length) {
this[index] = this[index] + (objectString + "|");
} else if (fitBack) {
this[(index % length) + 1] = this[(index % length) + 1] + (objectString + "|");
}
}
function updateArrayAtHeight(objectString, pixelHeight) {
updateArrayAtIndex(objectString, Math.floor((pixelHeight - Stage.height) / _root.terrainRenderFrequency));
}
function getGameArray() {
return(this);
}
function printString() {
var _local2 = 0;
while (_local2 < length) {
_local2++;
}
}
}
Symbol 674 MovieClip [__Packages.LevelGen] Frame 0
class LevelGen
{
var gameArray;
function LevelGen () {
}
function setLevel(levelNumber) {
levelNo = levelNumber - 1;
}
function setPPF(p_ppf) {
ppf = p_ppf;
}
function getGameArray() {
totalLevelCF = (startCF + (levelCFIncrement * levelNo)) + (ppf * levelNo);
createTerrain();
createCharacters();
gameArray.printString();
return(gameArray);
}
function createTerrain() {
var _local3 = new TerrainCreator(levelNo, totalLevelCF, gameArray);
var _local4 = (_local3.getTerrainHeight() - Stage.height) / _root.terrainRenderFrequency;
gameArray = new GameArray(_local4);
_local3.createTerrain(gameArray);
}
function createCharacters() {
var _local2 = new CharCreator(levelNo, totalLevelCF);
_local2.createCharacters(gameArray);
}
var levelNo = 0;
var ppf = 0;
var totalLevelCF = 0;
static var totalLevels = 23;
static var levelCFIncrement = 50;
static var startCF = 400;
static var maxDeltaCF = (startCF + (levelCFIncrement * totalLevels)) + (100 * totalLevels);
}
Symbol 675 MovieClip [__Packages.TerrainCreator] Frame 0
class TerrainCreator
{
function TerrainCreator (levelNumber, complexityFactor, gameArray) {
levelNo = levelNumber;
terrainString = terrainStringArr[levelNo % 4];
terrainHeight = terrainTileSize * Math.floor(complexityFactor / (90 + (4 * levelNo)));
}
function getTerrainHeight() {
return(terrainHeight);
}
function createTerrainArray(arraySize) {
var _local2 = new Array(1, 2, 3, 4);
var _local1 = new Array();
var _local4 = new Array();
while ((arraySize--) > 0) {
var _local3 = random(_local2.length);
if (_local1.length > 0) {
_local2.push(_local1[0]);
}
_local1 = _local2.splice(_local3, 1);
_local4.push(_local1[0]);
}
return(_local4);
}
function createTerrain(gameArray) {
terrArray = createTerrainArray((terrainHeight / terrainTileSize) + 2);
createStartTerrain(gameArray);
createScrollingTerrain(gameArray);
createEndTerrain(gameArray);
}
function createStartTerrain(gameArray) {
var _local2;
if (terrainString == "water_terrain") {
_local2 = new GameObject(startBeachString);
} else {
_local2 = new GameObject((terrainString + terrArray.pop()) + "");
}
_local2.setX(0);
_local2.setY(Stage.height);
var _local3 = new GameObject(startHotelString);
_local3.setX(0);
_local3.setY(Stage.height);
gameArray.updateArrayAtIndex(_local2.getString(), 0);
gameArray.updateArrayAtIndex(_local3.getString(), 0);
}
function createScrollingTerrain(gameArray) {
var _local3 = new GameObject("");
var _local2 = terrainTileSize;
while (_local2 < (getTerrainHeight() - terrainTileSize)) {
_local3.setName((terrainString + terrArray.pop()) + "");
_local3.setX(0);
_local3.setY(-20);
gameArray.updateArrayAtHeight(_local3.getString(), _local2);
_local2 = _local2 + terrainTileSize;
}
}
function createEndTerrain(gameArray) {
var _local3;
if (terrainString == "water_terrain") {
_local3 = new GameObject(endBeachString);
} else {
_local3 = new GameObject((terrainString + terrArray.pop()) + "");
}
_local3.setX(0);
_local3.setY(-20);
var _local5 = new GameObject(endHotelString);
_local5.setX(0);
_local5.setY(-terrainTileSize);
gameArray.updateArrayAtIndex(_local3.getString(), gameArray.length - (terrainTileSize / _root.terrainRenderFrequency));
gameArray.updateArrayAtIndex(_local5.getString(), gameArray.length - (terrainTileSize / _root.terrainRenderFrequency));
_local3.setY(-600);
gameArray.updateArrayAtIndex(_local3.getString(), gameArray.length - (terrainTileSize / _root.terrainRenderFrequency));
}
var terrainStringArr = ["city_terrain", "plains_terrain", "water_terrain", "forest_terrain"];
var startHotelString = "start_hotel";
var endHotelString = "end_hotel";
var startBeachString = "start_beach";
var endBeachString = "end_beach";
var terrainString = "";
var maxTiles = 4;
var terrainTileSize = 600;
var terrArray = new Array();
var terrainHeight = 0;
var levelNo = 0;
}
Symbol 676 MovieClip [__Packages.Drone] Frame 0
class Drone extends Character
{
var setX, setY, setBaseCF, setHelpFactor, updateSpeed, updateAttackChance, updateHitPoints, updateDamagePoints, updatePixelage, getBaseCF, updateHelpFactor;
function Drone () {
super(0);
setX(50 + random(450));
setY(50 + random(100));
setBaseCF(25);
setHelpFactor(1);
}
function updateCF(addCF) {
updateSpeed(defaultSpeed, addCF * maxDeltaSpeed);
updateAttackChance(defaultAttackChance, addCF * maxDeltaAttackChance);
updateHitPoints(defaultHitPoints, addCF * maxDeltaHitPoints);
updateDamagePoints(defaultDamagePoints, addCF * maxDeltaDamagePoints);
updatePixelage(defaultPixelage, addCF * maxDeltaPixelage);
setBaseCF(getBaseCF() * (1 + addCF));
updateHelpFactor(addCF);
}
static var defaultSpeed = 3;
static var defaultAttackChance = 10;
static var defaultHitPoints = 30;
static var defaultDamagePoints = 5;
static var defaultPixelage = 600;
static var maxDeltaSpeed = 0;
static var maxDeltaAttackChance = 35;
static var maxDeltaHitPoints = 0;
static var maxDeltaDamagePoints = 20;
static var maxDeltaPixelage = 600;
}
Symbol 677 MovieClip [__Packages.Kamikaze] Frame 0
class Kamikaze extends Character
{
var setX, setY, setBaseCF, setHelpFactor, updateSpeed, updateAttackChance, updateHitPoints, updateDamagePoints, updatePixelage, getBaseCF, updateHelpFactor;
function Kamikaze () {
super(1);
setX(50 + random(450));
setY(50 + random(100));
setBaseCF(35);
setHelpFactor(2);
}
function updateCF(addCF) {
updateSpeed(defaultSpeed, addCF * maxDeltaSpeed);
updateAttackChance(defaultAttackChance, addCF * maxDeltaAttackChance);
updateHitPoints(defaultHitPoints, addCF * maxDeltaHitPoints);
updateDamagePoints(defaultDamagePoints, addCF * maxDeltaDamagePoints);
updatePixelage(defaultPixelage, addCF * maxDeltaPixelage);
setBaseCF(getBaseCF() * (1 + addCF));
updateHelpFactor(addCF);
}
static var defaultSpeed = 10;
static var defaultAttackChance = 20;
static var defaultHitPoints = 45;
static var defaultDamagePoints = 10;
static var defaultPixelage = 600;
static var maxDeltaSpeed = 20;
static var maxDeltaAttackChance = 20;
static var maxDeltaHitPoints = 0;
static var maxDeltaDamagePoints = 20;
static var maxDeltaPixelage = 600;
}
Symbol 678 MovieClip [__Packages.Mite] Frame 0
class Mite extends Character
{
var setX, setY, setBaseCF, setHelpFactor, updateSpeed, updateAttackChance, updateHitPoints, updateDamagePoints, updatePixelage, getBaseCF, updateHelpFactor, updateParamString;
function Mite () {
super(2);
setX(50 + random(450));
setY(50 + random(100));
setBaseCF(30);
setHelpFactor(2);
}
function updateCF(addCF) {
updateSpeed(defaultSpeed, addCF * maxDeltaSpeed);
updateAttackChance(defaultAttackChance, addCF * maxDeltaAttackChance);
updateHitPoints(defaultHitPoints, addCF * maxDeltaHitPoints);
updateDamagePoints(defaultDamagePoints, addCF * maxDeltaDamagePoints);
updatePixelage(defaultPixelage, addCF * maxDeltaPixelage);
updateMiteHoldResistance(addCF * maxMiteHoldResistance);
updateBaseMiteHoldStregth(addCF * maxDeltaBaseMiteHoldStregth);
setBaseCF(getBaseCF() * (1 + addCF));
updateHelpFactor(addCF);
}
function updateMiteHoldResistance(deltaMiteHoldResistance) {
updateParamString("miteHoldResistance", defaultMiteHoldResistance + deltaMiteHoldResistance);
}
function updateBaseMiteHoldStregth(deltaBaseMiteHoldStregth) {
updateParamString("baseMiteHoldStregth", defaultBaseMiteHoldStregth + deltaBaseMiteHoldStregth);
}
static var defaultSpeed = 10;
static var defaultAttackChance = 20;
static var defaultHitPoints = 30;
static var defaultDamagePoints = 2;
static var defaultPixelage = 600;
static var defaultMiteHoldResistance = 30;
static var defaultBaseMiteHoldStregth = 800;
static var maxDeltaSpeed = 20;
static var maxDeltaAttackChance = 25;
static var maxDeltaHitPoints = 0;
static var maxDeltaDamagePoints = 3;
static var maxDeltaPixelage = 600;
static var maxMiteHoldResistance = 20;
static var maxDeltaBaseMiteHoldStregth = 200;
}
Symbol 679 MovieClip [__Packages.Swarm] Frame 0
class Swarm extends Character
{
var setX, setY, setBaseCF, setHelpFactor, updateDamagePoints, getBaseCF, updateHelpFactor;
function Swarm () {
super(3);
setX(50 + random(100));
setY(-10);
setBaseCF(40);
setHelpFactor(2);
}
function updateCF(addCF) {
updateDamagePoints(defaultDamagePoints, addCF * maxDeltaDamagePoints);
setBaseCF(getBaseCF() * (1 + addCF));
updateHelpFactor(addCF);
}
static var defaultDamagePoints = 3;
static var maxDeltaDamagePoints = 20;
}
Symbol 680 MovieClip [__Packages.Hornet] Frame 0
class Hornet extends Character
{
var setX, setY, setBaseCF, setHelpFactor, updateSpeed, updateAttackChance, updateHitPoints, updateDamagePoints, updatePixelage, getBaseCF, updateHelpFactor, updateParamString;
function Hornet () {
super(4);
setX(50 + random(450));
setY(50 + random(100));
setBaseCF(45);
setHelpFactor(4);
}
function updateCF(addCF) {
updateSpeed(defaultSpeed, addCF * maxDeltaSpeed);
updateAttackChance(defaultAttackChance, addCF * maxDeltaAttackChance);
updateHitPoints(defaultHitPoints, addCF * maxDeltaHitPoints);
updateDamagePoints(defaultDamagePoints, addCF * maxDeltaDamagePoints);
updatePixelage(defaultPixelage, addCF * maxDeltaPixelage);
updateChasingDistance(addCF * maxDeltaChasingDistance);
setBaseCF(getBaseCF() * (1 + addCF));
updateHelpFactor(addCF);
}
function updateChasingDistance(deltaChasingDistance) {
updateParamString("chasingDistance", defaultChasingDistance + deltaChasingDistance);
}
static var defaultSpeed = 8;
static var defaultAttackChance = 10;
static var defaultHitPoints = 45;
static var defaultDamagePoints = 1;
static var defaultChasingDistance = 500;
static var defaultPixelage = 600;
static var maxDeltaSpeed = 17;
static var maxDeltaAttackChance = 45;
static var maxDeltaHitPoints = 0;
static var maxDeltaDamagePoints = 15;
static var maxDeltaPixelage = 600;
static var maxDeltaChasingDistance = 200;
}
Symbol 681 MovieClip [__Packages.HealthBonus] Frame 0
class HealthBonus extends GameObject
{
var setX, setY;
function HealthBonus () {
super(CharCreator.allBonuses[0]);
setX(100 + random(300));
setY(-65);
}
}
Symbol 682 MovieClip [__Packages.ArmorBonus] Frame 0
class ArmorBonus extends GameObject
{
var setX, setY;
function ArmorBonus (pArmorType) {
super(CharCreator.allBonuses[1]);
setX(100 + random(300));
setY(-15);
armorType = pArmorType;
}
function getString() {
return(((super.getString() + "(armorType=") + armorType) + ")");
}
var armorType = 1;
}
Symbol 683 MovieClip [__Packages.PollenGunBonus] Frame 0
class PollenGunBonus extends GameObject
{
var setX, setY;
function PollenGunBonus () {
super(CharCreator.allBonuses[2]);
setX(100 + random(300));
setY(-115);
}
function setPollenBullets(p_pollenBullets) {
pollenBullets = p_pollenBullets;
}
function getString() {
return(((super.getString() + "(pollenBullets=") + pollenBullets) + ")");
}
var pollenBullets = 25;
}
Symbol 684 MovieClip [__Packages.SlowMotionBonus] Frame 0
class SlowMotionBonus extends GameObject
{
var setX, setY;
function SlowMotionBonus () {
super(CharCreator.allBonuses[3]);
setX(100 + random(300));
setY(-165);
}
}
Symbol 685 MovieClip [__Packages.Spider] Frame 0
class Spider extends Character
{
var setX, setY, setBaseCF, setHelpFactor, spiderId, paramString, updateSpeed, updateAttackChance, updateHitPoints, updateDamagePoints, getBaseCF, updateHelpFactor, updateParamString;
function Spider (pSpiderId) {
super(5);
spiderLocation = random(2);
setX(((spiderLocation == 0) ? (10 + random(30)) : ((Stage.width - 50) - random(30))));
setY(-30);
setBaseCF(100);
setHelpFactor(6);
spiderId = pSpiderId;
}
function createWebInstances() {
var _local6 = Math.ceil(pixelage / Web.webHeight);
spiderWebHeight = _local6 * Web.webHeight;
var _local7 = ((spiderLocation == 0) ? (random(10)) : ((Stage.width - 100) - random(10)));
var _local5 = "";
webArray = new Array();
var _local3 = 0;
while (_local3 < _local6) {
var _local2 = new Web();
var _local4 = (("web" + spiderId) + _local3) + "_mc";
_local2.setX(_local7);
_local2.setY(-10 - (_local3 * Web.webHeight));
_local2.setInstanceName(_local4);
webArray.push(_local2);
_local5 = _local5 + ((_local5 == "") ? (_local4) : ("," + _local4));
_local3++;
}
paramString = paramString + (("(webInstances=" + _local5) + ")");
}
function getString() {
if (webArray == null) {
createWebInstances();
}
var _local4 = super.getString();
var _local3 = 0;
while (_local3 < webArray.length) {
_local4 = _local4 + ("|" + Web(webArray[_local3]).getString());
_local3++;
}
return(_local4);
}
function updateCF(addCF) {
updateSpeed(defaultSpeed, addCF * maxDeltaSpeed);
updateAttackChance(defaultAttackChance, addCF * maxDeltaAttackChance);
updateHitPoints(defaultHitPoints, addCF * maxDeltaHitPoints);
updateDamagePoints(defaultDamagePoints, addCF * maxDeltaDamagePoints);
updatePixelage(addCF * maxDeltaPixelage);
updateCatchupPixels(addCF * maxDeltaCatchUpPixels);
setBaseCF(getBaseCF() * (1 + addCF));
updateHelpFactor(addCF);
}
function updatePixelage(deltaPixelage) {
pixelage = defaultPixelage + deltaPixelage;
}
function updateCatchupPixels(deltaCatchupPixels) {
updateParamString("catchUpPixels", defaultCatchUpPixels + Math.floor(deltaCatchupPixels));
}
function getSpiderWebHeight() {
return(spiderWebHeight);
}
static var defaultSpeed = 4;
static var defaultAttackChance = 5;
static var defaultHitPoints = 30;
static var defaultDamagePoints = 1;
static var defaultPixelage = 400;
static var defaultSpiderWalkChance = 50;
static var defaultCatchUpPixels = 100;
var spiderLocation = 0;
var pixelage = defaultPixelage;
var webArray = null;
var spiderWebHeight = 0;
static var maxDeltaSpeed = 20;
static var maxDeltaAttackChance = 40;
static var maxDeltaHitPoints = 0;
static var maxDeltaDamagePoints = 10;
static var maxDeltaPixelage = 1400;
static var maxDeltaCatchUpPixels = 150;
}
Symbol 686 MovieClip [__Packages.Web] Frame 0
class Web extends GameObject
{
function Web () {
super("web");
}
function setInstanceName(instanceName) {
paramString = paramString + (("(_name=" + instanceName) + ")");
}
function getString() {
return(super.getString() + paramString);
}
static var webHeight = 600;
var paramString = "";
}
Symbol 687 MovieClip [__Packages.Scorer] Frame 0
class Scorer
{
function Scorer () {
}
static function resetScores() {
_levelNumber = (levelBonus = (_heartNumber = (heartBonus = (totalScore = (prevScore = 0)))));
}
static function setLevelBonus(levelNumber) {
_levelNumber = levelNumber;
levelBonus = levelNumber * 1000;
}
static function getLevelNumber() {
return(_levelNumber);
}
static function getLevelBonus() {
return(levelBonus);
}
static function setHeartBonus(beeHealth) {
_heartNumber = Math.floor(beeHealth);
heartBonus = _heartNumber * 10;
}
static function getHeartNumber() {
return(_heartNumber);
}
static function getHeartBonus() {
return(heartBonus);
}
static function calculateTotalScore() {
prevScore = totalScore;
totalScore = totalScore + (levelBonus + heartBonus);
}
static function getTotalScore() {
return(totalScore);
}
static function getPrevScore() {
return(prevScore);
}
static var _levelNumber = 0;
static var levelBonus = 0;
static var _heartNumber = 0;
static var heartBonus = 0;
static var totalScore = 0;
static var prevScore = 0;
}
Symbol 11 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 100
stop();
Symbol 20 MovieClip Frame 1
if (_root.muteMusic) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 20 MovieClip Frame 2
stop();
Symbol 20 MovieClip Frame 3
stop();
Symbol 22 Button
on (press) {
_root.toggleMuteMusic();
music_muter_mc.gotoAndPlay(1);
}
Symbol 26 MovieClip Frame 1
if (_root.muteFX) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 26 MovieClip Frame 2
stop();
Symbol 26 MovieClip Frame 3
stop();
Symbol 28 Button
on (press) {
_root.toggleMuteFX();
fx_muter_mc.gotoAndPlay(1);
}
Symbol 31 Button
on (press) {
_root.quitToMainMenu();
_root.removePauseMenu();
}
Symbol 34 Button
on (press) {
_root.playBackground();
_root.unFreezeAll();
_root.removePauseMenu();
}
Symbol 36 MovieClip Frame 1
if (_root.introVariableResetter) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 36 MovieClip Frame 2
stop();
Symbol 36 MovieClip Frame 3
stop();
Symbol 37 Button
on (press) {
_root.toggleIntroVariable();
_root.setIntroVariables(_root.introVariableResetter);
intro_switcher_mc.gotoAndPlay(1);
}
Symbol 40 MovieClip Frame 1
stop();
Symbol 72 Button
on (press) {
_root.showHelp();
}
Symbol 73 MovieClip [Display Panel] Frame 1
stop();
Instance of Symbol 40 MovieClip "terrain_progress_mc" in Symbol 73 MovieClip [Display Panel] Frame 1
onClipEvent (load) {
this.gotoAndStop(0);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.terrain_controller_mc.getTerrainProgress());
}
Instance of Symbol 46 MovieClip "pollengun_ind_mc" in Symbol 73 MovieClip [Display Panel] Frame 1
onClipEvent (load) {
this._visible = _root.anim_bee_mc.beeHoldsGun;
}
onClipEvent (enterFrame) {
this._visible = _root.anim_bee_mc.beeHoldsGun;
}
Instance of Symbol 53 MovieClip "slomot_pb_mc" in Symbol 73 MovieClip [Display Panel] Frame 1
onClipEvent (load) {
this._visible = _root.slowMotionAcquired;
}
onClipEvent (enterFrame) {
this.slomo_progress_mc.gotoAndStop(Math.ceil(_root.slowMotionDuration / 100));
}
Instance of Symbol 64 MovieClip "health_bar_mc" in Symbol 73 MovieClip [Display Panel] Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
this.total_health_mc.gotoAndStop(Math.floor(_root.baseBeeHealth));
this.health_progress_mc.gotoAndStop(Math.floor(_root.anim_bee_mc.beeHealth));
}
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
if (_root.muteFX) {
gotoAndStop ("end");
}
Symbol 78 MovieClip [Animated Pollen Bullet] Frame 1
function moveBullet() {
if (_root.slowMotionFactor == 1) {
_x = (_x + xDisp);
_y = (_y + yDisp);
} else {
_x = (_x + (_root.slowMotionFactor * xDisp));
_y = (_y + (_root.slowMotionFactor * yDisp));
}
}
var pollenSpeed = 2;
var pollenHitPoint = 10;
var xDisp;
var yDisp;
var pollenHit = false;
if (pollenShotFromBee) {
this.pollen_bullet_mc.gotoAndStop(2);
pollenSpeed = 4;
pollenHitPoint = 15;
}
xDisp = xDisp * pollenSpeed;
yDisp = yDisp * pollenSpeed;
Symbol 78 MovieClip [Animated Pollen Bullet] Frame 2
if (((Math.abs(_root.midY - _y) > _root.midY) || (Math.abs(_root.midX - _x) > _root.midX)) || (_root.clearStage)) {
removeMovieClip("");
} else {
moveBullet();
}
Symbol 78 MovieClip [Animated Pollen Bullet] Frame 3
moveBullet();
if (!pollenShotFromBee) {
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.reduceBeeHealthFromPollen(pollenHitPoint);
pollenHit = true;
gotoAndPlay ("pollen burst");
}
} else {
var enemiesArrLen = _root.enemiesArr.length;
var i = 0;
while (i < enemiesArrLen) {
if (_root[_root.enemiesArr[i]].hitTest(_x, _y)) {
_root[_root.enemiesArr[i]].takeDamage(pollenHitPoint);
pollenHit = true;
gotoAndPlay ("pollen burst");
}
i++;
}
}
if (!pollenHit) {
gotoAndPlay (2);
}
Symbol 78 MovieClip [Animated Pollen Bullet] Frame 5
this.pollenHitfx_mc.play();
Symbol 78 MovieClip [Animated Pollen Bullet] Frame 10
removeMovieClip("");
stop();
Symbol 81 MovieClip [Animated Spider Sting] Frame 1
function moveSting() {
if (_root.slowMotionFactor == 1) {
_x = (_x + xDisp);
_y = (_y + yDisp);
} else {
_x = (_x + (_root.slowMotionFactor * xDisp));
_y = (_y + (_root.slowMotionFactor * yDisp));
}
}
function unFreeze() {
gotoAndPlay ("loop");
}
function checkIntro() {
if (!_root.stingIntroShown) {
_root.stingIntroShown = true;
_root.talker_mc.startTalk("sting", this._name);
_root.freezeAll();
this.stop();
} else {
if (_root.currentIntroShown == this._name) {
_root.unFreezeAll();
}
gotoAndPlay ("loop");
}
}
var stingSpeed = 3;
var stingHitPoint = 5;
var moveCtr = 0;
xDisp = xDisp * stingSpeed;
yDisp = yDisp * stingSpeed;
Symbol 81 MovieClip [Animated Spider Sting] Frame 2
if (((Math.abs(_root.midY - _y) > _root.midY) || (Math.abs(_root.midX - _x) > _root.midX)) || (_root.clearStage)) {
removeMovieClip("");
} else {
moveSting();
}
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.startBeeControlReversal();
gotoAndPlay ("sting burst");
}
if (!_root.stingIntroShown) {
if (moveCtr >= 10) {
checkIntro();
} else {
moveCtr++;
}
}
Symbol 81 MovieClip [Animated Spider Sting] Frame 3
moveSting();
gotoAndPlay ("loop");
Symbol 81 MovieClip [Animated Spider Sting] Frame 10
removeMovieClip("");
stop();
Symbol 90 MovieClip Frame 36
if (!_root.muteFX) {
var fallFX = new Sound();
fallFX.attachSound("fallingAooFX");
fallFX.start(0, 1);
}
Symbol 90 MovieClip Frame 56
stop();
Symbol 92 MovieClip [spider] Frame 1
function getSpeed() {
return(speed * _root.slowMotionFactor);
}
function setColorTransform() {
transformObj.colorTransform = _root.redColorTransform;
tranformColorProcess = setInterval(restoreColorTransform, 40);
}
function restoreColorTransform() {
clearInterval(tranformColorProcess);
transformObj.colorTransform = defaultColorTransform;
}
function freeze() {
if (!spiderDead) {
this.spidey_mc.stop();
this.stop();
} else {
gotoAndStop ("end");
}
}
function unFreeze() {
if (!spiderDead) {
gotoAndPlay ("walk loop");
} else {
gotoAndStop ("end");
}
}
function moveSpiderDown() {
_y = (_y + Math.ceil(_root.scrollSpeed * 0.6));
if ((!_root.spiderIntroShown) && (_y > 60)) {
gotoAndPlay ("intro");
return(false);
}
if (waitingForWebRetract) {
_root[snatchWebInstance]._y = this._y;
}
if (((_y - this._height) - 100) >= Stage.height) {
gotoAndStop ("end");
return(false);
}
if (_root.clearStage && (!spiderExiting)) {
gotoAndStop ("exit");
return(false);
}
return(true);
}
function exit() {
if (!spiderDead) {
gotoAndPlay ("exit");
} else {
gotoAndStop ("end");
}
}
function takeDamage(damagePoints) {
if (!spiderDead) {
hitPoints = hitPoints - damagePoints;
setColorTransform();
if (hitPoints <= 0) {
spiderDead = true;
gotoAndPlay ("die");
}
}
}
function getSpiderDirection() {
return((((_root.anim_bee_mc._y - _y) > 0) ? 1 : -1));
}
function getSpiderXDirection() {
return((((dx - _x) > 0) ? 1 : -1));
}
function isMovingWithinWeb() {
var _local5 = _x;
var _local4 = _y;
_x = dx;
_y = dy;
var _local3 = 0;
_local3 = 0;
while ((_local3 < webInstanceNameArr.length) && (!this.hitTest(_root[webInstanceNameArr[_local3]].hitLayer_mc))) {
_local3++;
}
if (_local3 < webInstanceNameArr.length) {
_x = _local5;
_y = _local4;
if (spiderDirection == -1) {
this.spidey_mc._rotation = 0;
} else {
this.spidey_mc._rotation = 180;
}
this.spidey_mc.play();
return(true);
}
_x = _local5;
_y = _local4;
currWalkChance = spiderWalkChance + 1;
this.spidey_mc.stop();
return(false);
}
function moveSpider() {
if (currWalkChance <= spiderWalkChance) {
if (walkHopToggle == 0) {
_x = dx;
_y = dy;
gotoAndPlay ("attack frame");
} else {
if (Math.abs(_x - dx) > getSpeed()) {
_x = (_x + (getSpiderXDirection() * getSpeed()));
} else {
_x = dx;
}
if (Math.abs(_y - dy) > getSpeed()) {
_y = (_y + (spiderDirection * getSpeed()));
} else {
_y = dy;
}
if ((_x == dx) && (_y == dy)) {
if (spiderExiting) {
gotoAndStop ("end");
} else {
currWalkChance = 100;
gotoAndPlay ("attack frame");
}
}
}
}
}
_root.addParameters(this, paramString);
var spiderDead = false;
var speed = ((speed == undefined) ? (Spider.defaultSpeed) : (speed));
var spiderWalkChance = ((spiderWalkChance == undefined) ? (Spider.defaultSpiderWalkChance) : (spiderWalkChance));
var attackChance = ((attackChance == undefined) ? (Spider.defaultAttackChance) : (attackChance));
var hitPoints = ((hitPoints == undefined) ? (Spider.defaultHitPoints) : (hitPoints));
var damagePoints = ((damagePoints == undefined) ? (Spider.defaultDamagePoints) : (damagePoints));
var catchUpPixels = ((catchUpPixels == undefined) ? (Spider.defaultCatchUpPixels) : (catchUpPixels));
var webInstances = ((webInstances == undefined) ? "" : (webInstances));
var currWalkChance = 100;
var spiderId = (_root.spidersId++);
var dxMax = 50;
var dyMax = 100;
var spiderDirection;
var dx;
var dy;
var walkHopToggle;
var baseMissileNumber = (16000 + (spiderId * 100));
var missileNumber = baseMissileNumber;
var webInstanceNameArr = webInstances.split(",");
var waitingForWebRetract = false;
var snatchWebInstance;
var spiderExiting = false;
var transformObj = (new flash.geom.Transform(this.spidey_mc));
var defaultColorTransform = transformObj.colorTransform;
var tranformColorProcess = 0;
var annoySampler = 0;
Symbol 92 MovieClip [spider] Frame 3
if (((!moveSpiderDown()) || (waitingForWebRetract)) || (spiderDead)) {
return(undefined);
}
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints, ((((annoySampler++) % 6) == 0) ? false : true));
}
if (waitingForWebRetract || (spiderExiting)) {
return(undefined);
}
if (_root.anim_bee_mc.isBeeInThisWeb || ((Stage.height - _y) <= catchUpPixels)) {
currWalkChance = spiderWalkChance - 10;
if (_root.anim_bee_mc.isBeeInThisWeb) {
dx = Math.floor(_root.anim_bee_mc._x);
dy = Math.floor(_root.anim_bee_mc._y);
spiderDirection = getSpiderDirection();
} else {
spiderDirection = -1;
dx = Math.floor(_x + ((random(3) - 1) * (random(dxMax) + 10)));
dy = Math.floor((_y - 150) - (random(dyMax) + 10));
}
if (isMovingWithinWeb()) {
walkHopToggle = 1;
} else {
gotoAndPlay ("attack frame");
}
} else {
currWalkChance = 100;
}
if (currWalkChance > spiderWalkChance) {
currWalkChance = Number(random(100)) + 1;
if (currWalkChance <= spiderWalkChance) {
spiderDirection = getSpiderDirection();
dx = Math.floor(_x + ((random(3) - 1) * (random(dxMax) + 10)));
dy = Math.floor(_y + (spiderDirection * (random(dyMax) + 10)));
if (isMovingWithinWeb()) {
walkHopToggle = 1;
} else {
currWalkChance = 100;
gotoAndPlay ("attack frame");
}
} else {
gotoAndPlay ("attack frame");
}
}
Symbol 92 MovieClip [spider] Frame 4
if (((!moveSpiderDown()) || (waitingForWebRetract)) || (spiderDead)) {
return(undefined);
}
moveSpider();
Symbol 92 MovieClip [spider] Frame 5
if (((!moveSpiderDown()) || (waitingForWebRetract)) || (spiderDead)) {
return(undefined);
}
moveSpider();
Symbol 92 MovieClip [spider] Frame 6
if ((!moveSpiderDown()) || (spiderDead)) {
return(undefined);
}
moveSpider();
gotoAndPlay ("walk loop");
Symbol 92 MovieClip [spider] Frame 7
this.spidey_mc.stop();
if ((!moveSpiderDown()) || (spiderDead)) {
return(undefined);
}
var missileLaunchNo = (Number(random(100)) + 1);
if (missileLaunchNo <= attackChance) {
newMissileName = ("stinger" + spiderId) + missileNumber;
if (missileNumber >= (baseMissileNumber + 100)) {
missileNumber = baseMissileNumber;
} else {
missileNumber++;
}
if (_y > (Stage.height / 2)) {
_root.attachMovie("Animated Spider Sting", newMissileName, missileNumber);
} else {
_root.attachMovie("Animated Spider Web", newMissileName, missileNumber);
waitingForWebRetract = true;
snatchWebInstance = newMissileName;
_root[newMissileName].callingSpider = this._name;
}
_root[newMissileName]._x = _x;
_root[newMissileName]._y = _y;
xMouseLoc = _root.anim_bee_mc._x - _x;
yMouseLoc = (_root.anim_bee_mc._y - (4 * _root.scrollSpeed)) - _y;
angle = Math.atan2(yMouseLoc, xMouseLoc) * _root.angleConvFactor;
_root[newMissileName]._rotation = angle;
if (Math.abs(xMouseLoc) >= Math.abs(yMouseLoc)) {
_root[newMissileName].xDisp = xMouseLoc / Math.abs(xMouseLoc);
_root[newMissileName].yDisp = yMouseLoc / Math.abs(xMouseLoc);
} else {
_root[newMissileName].xDisp = xMouseLoc / Math.abs(yMouseLoc);
_root[newMissileName].yDisp = yMouseLoc / Math.abs(yMouseLoc);
}
this.spidey_mc._rotation = angle - 90;
}
if (waitingForWebRetract) {
gotoAndPlay ("outer loop");
}
Symbol 92 MovieClip [spider] Frame 10
if ((!moveSpiderDown()) || (spiderDead)) {
return(undefined);
}
if (spiderDirection == -1) {
this.spidey_mc._rotation = 0;
} else {
this.spidey_mc._rotation = 180;
}
currWalkChance = 100;
gotoAndPlay ("outer loop");
Symbol 92 MovieClip [spider] Frame 11
function checkIntro() {
if (!_root.spiderIntroShown) {
_root.spiderIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == this._name) {
_root.unFreezeAll();
}
gotoAndPlay ("walk loop");
}
}
checkIntro();
stop();
Symbol 92 MovieClip [spider] Frame 12
_root.talker_mc.startTalk("spider", this._name);
_root.freezeAll();
stop();
Symbol 92 MovieClip [spider] Frame 13
spiderExiting = true;
waitingForWebRetract = false;
currWalkChance = spiderWalkChance - 10;
attackChance = 0;
_root[snatchWebInstance].removeMovieClip();
if (_x < (Stage.width / 2)) {
dx = _x - 200;
this.spidey_mc._rotation = -90;
} else {
dx = _x + 200;
this.spidey_mc._rotation = 90;
}
dy = _y;
gotoAndPlay ("walk loop");
Symbol 92 MovieClip [spider] Frame 14
aaooFX.stop("aaooFX");
if (_root[snatchWebInstance].isBeeCaughtInWeb) {
_root.anim_bee_mc.isBeeInThisWeb = (isBeeCaughtInWeb = false);
_root.anim_bee_mc.startBeeMove();
}
_root[snatchWebInstance].removeMovieClip();
moveSpiderDown();
Symbol 92 MovieClip [spider] Frame 19
moveSpiderDown();
Symbol 92 MovieClip [spider] Frame 24
moveSpiderDown();
Symbol 92 MovieClip [spider] Frame 29
moveSpiderDown();
Symbol 92 MovieClip [spider] Frame 34
moveSpiderDown();
Symbol 92 MovieClip [spider] Frame 39
moveSpiderDown();
Symbol 92 MovieClip [spider] Frame 44
moveSpiderDown();
Symbol 92 MovieClip [spider] Frame 49
moveSpiderDown();
Symbol 92 MovieClip [spider] Frame 54
_root.removeEnemy(this._name);
stop();
Symbol 100 MovieClip Frame 29
function checkIntro() {
if (!_root.miteIntroShown) {
_root.miteIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == _parent._name) {
_root.unFreezeAll();
}
gotoAndPlay ("hover");
}
}
checkIntro();
Symbol 100 MovieClip Frame 30
_root.talker_mc.startTalk("mite", _parent._name);
_root.freezeAll();
stop();
Symbol 100 MovieClip Frame 60
gotoAndPlay ("hover");
Symbol 100 MovieClip Frame 90
stop();
Symbol 100 MovieClip Frame 110
_root.removeEnemy(_parent._name);
stop();
Symbol 101 MovieClip [mite] Frame 1
function freeze() {
this.anim_mite_mc.stop();
this.stop();
}
function unFreeze() {
this.anim_mite_mc.play();
play();
}
var beeDead = false;
_root.addParameters(this, paramString);
if (_x < (Stage.width / 2)) {
this.anim_mite_mc._xscale = -100;
}
Symbol 101 MovieClip [mite] Frame 29
function getSpeed() {
return(speed * _root.slowMotionFactor);
}
function setColorTransform() {
transformObj.colorTransform = _root.redColorTransform;
tranformColorProcess = setInterval(restoreColorTransform, 40);
}
function restoreColorTransform() {
clearInterval(tranformColorProcess);
transformObj.colorTransform = defaultColorTransform;
}
function takeDamage(damagePoints) {
if (!beeDead) {
hitPoints = hitPoints - damagePoints;
setColorTransform();
if (hitPoints <= 0) {
beeDead = true;
gotoAndStop ("die");
}
}
}
function exit() {
gotoAndPlay ("exit");
}
function getMiteYDirection() {
return((((dy - _y) < 0) ? -1 : 1));
}
function getMiteXDirection() {
return((((dx - _x) < 0) ? -1 : 1));
}
var speed = ((speed == undefined) ? (Mite.defaultSpeed) : (speed));
var attackChance = ((attackChance == undefined) ? (Mite.defaultAttackChance) : (attackChance));
var miteHoldResistance = ((miteHoldResistance == undefined) ? (Mite.defaultMiteHoldResistance) : (miteHoldResistance));
var baseMiteHoldStregth = ((baseMiteHoldStregth == undefined) ? (Mite.defaultBaseMiteHoldStregth) : (baseMiteHoldStregth));
var hitPoints = ((hitPoints == undefined) ? (Mite.defaultHitPoints) : (hitPoints));
var damagePoints = ((damagePoints == undefined) ? (Mite.defaultDamagePoints) : (damagePoints));
var pixelage = ((pixelage == undefined) ? (Mite.defaultPixelage) : (pixelage));
var currFlyTowardsChance = 100;
var dx = 0;
var dy = 0;
var attachDisplacement = (random(21) - 10);
var isMiteAttachedToBee = false;
var miteHoldStregth = baseMiteHoldStregth;
var prevXposition = 0;
var prevYposition = 0;
var startTick = _root.ticks;
var transformObj = (new flash.geom.Transform(this.anim_mite_mc));
var defaultColorTransform = transformObj.colorTransform;
var tranformColorProcess = 0;
var annoySampler = 0;
Symbol 101 MovieClip [mite] Frame 30
if ((((_root.ticks - startTick) * _root.terrainRenderFrequency) >= pixelage) || (_root.clearStage)) {
gotoAndPlay ("exit");
}
if (_x < (Stage.width / 2)) {
this.anim_mite_mc._xscale = -100;
} else {
this.anim_mite_mc._xscale = 100;
}
Symbol 101 MovieClip [mite] Frame 33
miteHoldStregth = baseMiteHoldStregth;
if (_root.anim_bee_mc.hitTest(_x, _y)) {
isMiteAttachedToBee = true;
}
if (currFlyTowardsChance > attackChance) {
currFlyTowardsChance = Number(random(100)) + 1;
if (currFlyTowardsChance <= attackChance) {
dx = _root.anim_bee_mc._x;
dy = _root.anim_bee_mc._y;
angle = Math.atan2(_y - dy, _x - dx) * _root.angleConvFactor;
this.anim_mite_mc._xscale = -100;
this.anim_mite_mc._rotation = angle - 180;
} else {
gotoAndPlay ("outer loop");
}
}
if (isMiteAttachedToBee) {
this.anim_mite_mc._rotation = -90;
this.anim_mite_mc._xscale = -100;
annoySampler = 0;
gotoAndPlay ("fly along loop");
} else {
if (Math.abs(_x - dx) > getSpeed()) {
_x = (_x + (getMiteXDirection() * getSpeed()));
} else {
_x = dx;
}
if (Math.abs(_y - dy) > getSpeed()) {
_y = (_y + (getMiteYDirection() * getSpeed()));
} else {
_y = dy;
}
if ((_x == dx) && (_y == dy)) {
currFlyTowardsChance = 100;
this.anim_mite_mc._rotation = 0;
gotoAndPlay ("outer loop");
}
}
Symbol 101 MovieClip [mite] Frame 35
if (_root.clearStage) {
gotoAndPlay ("exit");
} else {
gotoAndPlay ("fly towards loop");
}
Symbol 101 MovieClip [mite] Frame 36
_x = (_root.anim_bee_mc._x + attachDisplacement);
_y = (_root.anim_bee_mc._y + attachDisplacement);
var shakeStrength = ((Math.abs(prevXposition - _root._xmouse) + Math.abs(prevYposition - _root._ymouse)) - miteHoldResistance);
prevXposition = _root._xmouse;
prevYposition = _root._ymouse;
miteHoldStregth = miteHoldStregth - shakeStrength;
if (miteHoldStregth > baseMiteHoldStregth) {
miteHoldStregth = baseMiteHoldStregth;
} else if (miteHoldStregth <= 0) {
isMiteAttachedToBee = false;
currFlyTowardsChance = 1;
_x = (_root.anim_bee_mc._x - 40);
_y = (_root.anim_bee_mc._y + 200);
gotoAndPlay ("outer loop");
}
Symbol 101 MovieClip [mite] Frame 38
if (this.hitTest(_root.anim_bee_mc)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints, ((((annoySampler++) % 6) == 0) ? false : true));
}
if (_root.clearStage) {
gotoAndPlay ("exit");
} else {
gotoAndPlay ("fly along loop");
}
Symbol 101 MovieClip [mite] Frame 39
if (_x < (Stage.width / 2)) {
this.anim_mite_mc._xscale = -100;
} else {
this.anim_mite_mc._xscale = 100;
}
this.anim_mite_mc.gotoAndPlay("exit");
Symbol 101 MovieClip [mite] Frame 68
_root.removeEnemy(this._name);
stop();
Symbol 101 MovieClip [mite] Frame 69
aaooFX.stop("aaooFX");
if (!_root.muteFX) {
var fallFX = new Sound();
fallFX.attachSound("fallingAooFX");
fallFX.start(0, 1);
}
this.anim_mite_mc.gotoAndPlay("die");
Symbol 112 MovieClip Frame 2
if (_root.muteFX) {
gotoAndStop ("end");
}
Symbol 112 MovieClip Frame 36
stop();
removeMovieClip("");
Symbol 122 MovieClip Frame 30
stop();
Symbol 123 MovieClip Frame 10
stop();
Symbol 124 MovieClip Frame 26
function checkIntro() {
if (!_root.kamikazeIntroShown) {
_root.kamikazeIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == _parent._name) {
_root.unFreezeAll();
}
gotoAndPlay ("hover");
}
}
checkIntro();
Symbol 124 MovieClip Frame 27
_root.talker_mc.startTalk("kamikaze", _parent._name);
_root.freezeAll();
stop();
Symbol 124 MovieClip Frame 57
gotoAndPlay ("hover");
Symbol 124 MovieClip Frame 58
stop();
Symbol 124 MovieClip Frame 88
stop();
Symbol 124 MovieClip Frame 118
_root.removeEnemy(_parent._name);
stop();
Symbol 124 MovieClip Frame 138
_root.removeEnemy(_parent._name);
stop();
Symbol 125 MovieClip [kamikaze_bee] Frame 1
function freeze() {
if (!beeDead) {
this.anim_kamikaze_mc.stop();
this.stop();
}
}
function unFreeze() {
this.play();
}
var beeDead = false;
_root.addParameters(this, paramString);
if (_x < (Stage.width / 2)) {
this.anim_kamikaze_mc._xscale = -100;
}
Symbol 125 MovieClip [kamikaze_bee] Frame 26
function getSpeed() {
return(speed * _root.slowMotionFactor);
}
function setColorTransform() {
transformObj.colorTransform = _root.redColorTransform;
tranformColorProcess = setInterval(restoreColorTransform, 40);
}
function restoreColorTransform() {
clearInterval(tranformColorProcess);
transformObj.colorTransform = defaultColorTransform;
}
function moveKamikaze() {
if (beeDead) {
return(undefined);
}
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints);
this.gotoAndPlay("burst out");
}
if (Math.abs(_x - dx) > getSpeed()) {
_x = (_x + (getXDirection() * getSpeed()));
} else {
_x = dx;
}
if (Math.abs(_y - dy) > getSpeed()) {
_y = (_y + (getYDirection() * getSpeed()));
} else {
_y = dy;
}
if ((_x == dx) && (_y == dy)) {
currFlyTowardsChance = 100;
this.anim_kamikaze_mc._rotation = 0;
this.anim_kamikaze_mc.gotoAndPlay("hover");
gotoAndPlay ("outer loop");
}
}
function takeDamage(damagePoints) {
if (!beeDead) {
hitPoints = hitPoints - damagePoints;
setColorTransform();
if (hitPoints <= 0) {
beeDead = true;
gotoAndStop ("die");
}
}
}
function exit() {
if (!beeDead) {
this.gotoAndPlay("exit");
}
}
function getYDirection() {
return((((dy - _y) < 0) ? -1 : 1));
}
function getXDirection() {
return((((dx - _x) < 0) ? -1 : 1));
}
var currFlyTowardsChance = 100;
var dx = 0;
var dy = 0;
var startTick = _root.ticks;
var speed = ((speed == undefined) ? (Kamikaze.defaultSpeed) : (speed));
var hitPoints = ((hitPoints == undefined) ? (Kamikaze.defaultHitPoints) : (hitPoints));
var damagePoints = ((damagePoints == undefined) ? (Kamikaze.defaultDamagePoints) : (damagePoints));
var attackChance = ((attackChance == undefined) ? (Kamikaze.defaultAttackChance) : (attackChance));
var pixelage = ((pixelage == undefined) ? (Kamikaze.defaultPixelage) : (pixelage));
var transformObj = (new flash.geom.Transform(this.anim_kamikaze_mc));
var defaultColorTransform = transformObj.colorTransform;
var tranformColorProcess = 0;
Symbol 125 MovieClip [kamikaze_bee] Frame 27
if (beeDead) {
return(undefined);
}
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints);
gotoAndPlay ("burst out");
} else if ((((_root.ticks - startTick) * _root.terrainRenderFrequency) >= pixelage) || (_root.clearStage)) {
gotoAndPlay ("exit");
}
if (_x < (Stage.width / 2)) {
this.anim_kamikaze_mc._xscale = -100;
} else {
this.anim_kamikaze_mc._xscale = 100;
}
Symbol 125 MovieClip [kamikaze_bee] Frame 28
if (beeDead) {
return(undefined);
}
if (_root.clearStage) {
gotoAndPlay ("exit");
} else if (currFlyTowardsChance > attackChance) {
currFlyTowardsChance = Number(random(100)) + 1;
if (currFlyTowardsChance <= attackChance) {
dx = _root.anim_bee_mc._x;
dy = _root.anim_bee_mc._y;
angle = Math.atan2(_y - dy, _x - dx) * _root.angleConvFactor;
this.anim_kamikaze_mc._xscale = -100;
this.anim_kamikaze_mc._rotation = angle - 180;
this.anim_kamikaze_mc.gotoAndStop("charge");
} else {
gotoAndPlay ("outer loop");
}
}
moveKamikaze();
Symbol 125 MovieClip [kamikaze_bee] Frame 29
if (beeDead) {
return(undefined);
}
moveKamikazee();
Symbol 125 MovieClip [kamikaze_bee] Frame 30
if (beeDead) {
return(undefined);
}
moveKamikazee();
gotoAndPlay ("fly towards loop");
Symbol 125 MovieClip [kamikaze_bee] Frame 31
if (beeDead) {
return(undefined);
}
beeDead = true;
this.anim_kamikaze_mc.gotoAndPlay("burst out");
Symbol 125 MovieClip [kamikaze_bee] Frame 59
stop();
Symbol 125 MovieClip [kamikaze_bee] Frame 60
this.anim_kamikaze_mc._rotation = 0;
if (_x < (Stage.width / 2)) {
this.anim_kamikaze_mc._xscale = -100;
} else {
this.anim_kamikaze_mc._xscale = 100;
}
this.anim_kamikaze_mc.gotoAndPlay("exit");
Symbol 125 MovieClip [kamikaze_bee] Frame 88
_root.removeEnemy(this._name);
stop();
Symbol 125 MovieClip [kamikaze_bee] Frame 89
aaooFX.stop("aaooFX");
if (!_root.muteFX) {
var fallFX = new Sound();
fallFX.attachSound("fallingAooFX");
fallFX.start(0, 1);
}
this.anim_kamikaze_mc.gotoAndPlay("die");
Symbol 133 MovieClip Frame 30
function checkIntro() {
if (!_root.hornetIntroShown) {
_root.hornetIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == _parent._name) {
_root.unFreezeAll();
}
gotoAndPlay ("hover");
}
}
checkIntro();
Symbol 133 MovieClip Frame 31
_root.talker_mc.startTalk("hornet", _parent._name);
_root.freezeAll();
stop();
Symbol 133 MovieClip Frame 61
gotoAndPlay ("hover");
Symbol 133 MovieClip Frame 62
stop();
Symbol 133 MovieClip Frame 91
stop();
Symbol 133 MovieClip Frame 111
_root.removeEnemy(_parent._name);
stop();
Symbol 134 MovieClip [hornet] Frame 1
function freeze() {
this.anim_hornet_mc.stop();
this.stop();
}
function unFreeze() {
this.anim_hornet_mc.play();
play();
}
var beeDead = false;
_root.addParameters(this, paramString);
if (_x < (Stage.width / 2)) {
this.anim_hornet_mc._xscale = -100;
}
Symbol 134 MovieClip [hornet] Frame 31
function getSpeed() {
return(speed * _root.slowMotionFactor);
}
function setColorTransform() {
transformObj.colorTransform = _root.extraRedColorTransform;
tranformColorProcess = setInterval(restoreColorTransform, 40);
}
function restoreColorTransform() {
clearInterval(tranformColorProcess);
transformObj.colorTransform = defaultColorTransform;
}
function moveHornet() {
if (Math.abs(_x - dx) > getSpeed()) {
_x = (_x + (getXDirection() * getSpeed()));
} else {
_x = dx;
}
if (Math.abs(_y - dy) > getSpeed()) {
_y = (_y + (getYDirection() * getSpeed()));
} else {
_y = dy;
}
if ((_x == dx) && (_y == dy)) {
dx = startX;
dy = startY;
}
if ((_x == startX) && (_y == startY)) {
currFlyTowardsChance = 100;
gotoAndPlay ("outer loop");
}
}
function takeDamage(damagePoints) {
if (!beeDead) {
hitPoints = hitPoints - damagePoints;
setColorTransform();
if (hitPoints <= 0) {
beeDead = true;
gotoAndStop ("die");
}
}
}
function exit() {
gotoAndPlay ("exit");
}
function getYDirection() {
return((((dy - _y) < 0) ? -1 : 1));
}
function getXDirection() {
return((((dx - _x) < 0) ? -1 : 1));
}
var speed = ((speed == undefined) ? (Hornet.defaultSpeed) : (speed));
var attackChance = ((attackChance == undefined) ? (Hornet.defaultAttackChance) : (attackChance));
var hitPoints = ((hitPoints == undefined) ? (Hornet.defaultHitPoints) : (hitPoints));
var damagePoints = ((damagePoints == undefined) ? (Hornet.defaultDamagePoints) : (damagePoints));
var pixelage = ((pixelage == undefined) ? (Hornet.defaultPixelage) : (pixelage));
var currFlyTowardsChance = 100;
var currChasingDistance = 0;
var startX;
var startY;
var dx;
var dy;
var startTick = _root.ticks;
var transformObj = (new flash.geom.Transform(this.anim_hornet_mc));
var defaultColorTransform = transformObj.colorTransform;
var tranformColorProcess = 0;
Symbol 134 MovieClip [hornet] Frame 32
if ((((_root.ticks - startTick) * _root.terrainRenderFrequency) >= pixelage) || (_root.clearStage)) {
gotoAndPlay ("exit");
}
this.anim_hornet_mc._rotation = 0;
if (_x < (Stage.width / 2)) {
this.anim_hornet_mc._xscale = -100;
} else {
this.anim_hornet_mc._xscale = 100;
}
Symbol 134 MovieClip [hornet] Frame 33
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints);
}
if (currFlyTowardsChance > attackChance) {
currFlyTowardsChance = Number(random(100)) + 1;
if (currFlyTowardsChance <= attackChance) {
startX = _x;
startY = _y;
dx = _root.anim_bee_mc._x;
dy = _root.anim_bee_mc._y;
angle = Math.atan2(_y - dy, _x - dx) * _root.angleConvFactor;
this.anim_hornet_mc._rotation = angle + 90;
} else {
gotoAndPlay ("outer loop");
}
}
moveHornet();
Symbol 134 MovieClip [hornet] Frame 34
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints);
}
Symbol 134 MovieClip [hornet] Frame 35
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints);
}
if (_root.clearStage) {
gotoAndPlay ("exit");
} else {
gotoAndPlay ("fly towards loop");
}
Symbol 134 MovieClip [hornet] Frame 36
this.anim_hornet_mc.gotoAndPlay("exit");
Symbol 134 MovieClip [hornet] Frame 65
_root.removeEnemy(this._name);
stop();
Symbol 134 MovieClip [hornet] Frame 66
aaooFX.stop("aaooFX");
if (!_root.muteFX) {
var fallFX = new Sound();
fallFX.attachSound("fallingAooFX");
fallFX.start(0, 1);
}
this.anim_hornet_mc.gotoAndPlay("die");
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 6
stop();
Symbol 150 MovieClip Frame 5
gotoAndPlay ("bee no armor");
Symbol 150 MovieClip Frame 10
gotoAndPlay ("bee light armor");
Symbol 150 MovieClip Frame 15
gotoAndPlay ("bee heavy armor");
Symbol 150 MovieClip Frame 16
if (!_root.muteFX) {
var fallFX = new Sound();
fallFX.attachSound("fallingAooFX");
fallFX.start(0, 1);
}
Symbol 150 MovieClip Frame 31
_parent.removeMovieClip("");
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 2
if (_root.muteFX) {
gotoAndStop ("end");
}
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
if (_root.muteFX) {
gotoAndStop ("end");
}
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
if (_root.muteFX) {
gotoAndStop ("end");
}
Symbol 157 MovieClip [Bee] Frame 1
function setColorTransform() {
transformObj.colorTransform = _root.extraRedColorTransform;
tranformColorProcess = setInterval(restoreColorTransform, 70);
}
function restoreColorTransform() {
clearInterval(tranformColorProcess);
transformObj.colorTransform = defaultColorTransform;
}
function startImmunityPeriod(timeDuration) {
beeImmuneToWeb = true;
beeImmunityProcess = setInterval(stopImmunityPeriod, timeDuration);
}
function stopImmunityPeriod() {
beeImmuneToWeb = false;
clearInterval(beeImmunityProcess);
beeImmunityProcess = 0;
}
function prepareBeeForLevelStart() {
beeSpeed = 30 + (_root.terrain_controller_mc.currLevel * 2);
stopBeeControlReversal();
}
function startBeeControlReversal() {
if (beeControlReversalNumber == 0) {
pivotX = _x;
pivotY = _y;
beeControlReversalProcess = setInterval(stopBeeControlReversal, beeControlReversalTime * 1000);
beeControlReversalNumber = 2;
}
}
function stopBeeControlReversal() {
if (beeControlReversalNumber != 0) {
pivotX = 0;
pivotY = 0;
clearInterval(beeControlReversalProcess);
beeControlReversalNumber = (beeControlReversalProcess = 0);
}
}
function startBeeMove() {
if (processNum == 0) {
processNum = setInterval(moveBeeToPointer, beeCatchupMS);
}
this.gotoAndPlay("loop");
_root.startTerrainScrolling();
}
function stopBeeMove() {
clearInterval(processNum);
processNum = 0;
this.stop();
_root.stopTerrainScrolling();
}
function killBee() {
stopBeeMove();
removeMovieClip("");
}
function moveBeeToPointer() {
var destX = 0;
var destY = 0;
var distanceX = 0;
var distanceY = 0;
with (_root.anim_bee_mc) {
destX = _root._xmouse;
destY = _root._ymouse;
if (beeControlReversalNumber > 0) {
destX = destX + (beeControlReversalNumber * (pivotX - _root._xmouse));
destY = destY + (beeControlReversalNumber * (pivotY - _root._ymouse));
}
if (destX < 0) {
destX = 0;
} else if (destX > Stage.width) {
destX = Stage.width;
}
if (destY < 0) {
destY = 0;
} else if (destY > Stage.height) {
destY = Stage.height;
}
distanceX = destX - _x;
distanceY = destY - _y;
if (Math.abs(distanceX) > beeSpeed) {
_x = _x + ((distanceX > 0) ? (beeSpeed) : (-beeSpeed));
} else {
_x = destX;
}
if (Math.abs(distanceY) > beeSpeed) {
_y = _y + ((distanceY > 0) ? (beeSpeed) : (-beeSpeed));
} else {
_y = destY;
}
if ((((!_root.beeIntroShown) && (!_root.clearStage)) && (_x == destX)) && (_y == destY)) {
gotoAndPlay("intro");
}
}
}
function addBeeHealth(healthGainPoints) {
beeHealth = beeHealth + healthGainPoints;
if (beeHealth > _root.baseBeeHealth) {
beeHealth = _root.baseBeeHealth;
}
}
function reduceBeeHealthFromPollen(hitPoints) {
this.aachoofx_mc.play();
takeDamage(hitPoints);
}
function reduceBeeHealth(hitPoints, annoyReduction) {
if (!annoyReduction) {
this.aaoofx_mc.play();
}
takeDamage(hitPoints);
}
function takeDamage(damagePoints) {
beeHealth = beeHealth - Number((1 - _root.armorProtectionFactor[beeArmor]) * damagePoints);
if (beeHealth <= 0) {
beeHealth = 0;
this.bee_mc.gotoAndPlay("bee dead");
_root.terrain_controller_mc.endLevel(_parent.beeHealth);
return(undefined);
}
setColorTransform();
if (currentArmorStrength > 0) {
currentArmorStrength = currentArmorStrength - Number(_root.armorProtectionFactor[beeArmor] * damagePoints);
}
if (currentArmorStrength <= 0) {
_root.currentArmorStrength = 0;
this.bee_mc.gotoAndPlay("bee no armor");
}
}
function addBeeArmor(armorType) {
beeArmor = armorType;
this.bee_mc.gotoAndPlay((beeArmor * 5) + 1);
currentArmorStrength = _root.baseArmorStrength[beeArmor];
}
function addPollenBullets(pollenBullets) {
if (!beeHoldsGun) {
beeHoldsGun = true;
this.bee_mc.base_bee_mc.gotoAndStop("bee with gun");
}
pollenBulletsRemaining = pollenBulletsRemaining + Number(pollenBullets);
if (pollenBulletsRemaining > 100) {
pollenBulletsRemaining = 100;
}
}
function firePollenBullets() {
if ((_root.pauseGame || (_root.clearStage)) || (!beeHoldsGun)) {
return(undefined);
}
this.plopfx_mc.play();
newMissileName = "missile50000" + missileNumber;
_root.attachMovie("Animated Pollen Bullet", newMissileName, missileNumber);
if (missileNumber >= (baseMissileNumber + 100)) {
missileNumber = baseMissileNumber;
} else {
missileNumber++;
}
_root[newMissileName]._x = _x + 10;
_root[newMissileName]._y = _y - 30;
_root[newMissileName].xDisp = 0;
_root[newMissileName].yDisp = -1;
_root[newMissileName].pollenShotFromBee = true;
pollenBulletsRemaining--;
if (pollenBulletsRemaining <= 0) {
beeHoldsGun = false;
this.bee_mc.base_bee_mc.gotoAndStop("bee without gun");
}
}
var beeHealth = ((beeHealth == undefined) ? (_root.baseBeeHealth) : (beeHealth));
var beeArmor = ((beeArmor == undefined) ? 0 : (beeArmor));
var currentArmorStrength = ((currentArmorStrength == undefined) ? 0 : (currentArmorStrength));
var beeHoldsGun = ((beeHoldsGun == undefined) ? false : (beeHoldsGun));
var pollenBulletsRemaining = 0;
var beeSpeed = 30;
var isBeeInThisWeb = false;
var beeControlReversalNumber = 0;
var beeControlReversalTime = 4;
var pivotX = 0;
var pivotY = 0;
var beeCatchupMS = 40;
var beeImmuneToWeb = false;
var beeImmunityProcess = 0;
var processNum = 0;
var beeControlReversalProcess = 0;
this.bee_mc.gotoAndPlay((_root.beeArmor * 5) + 1);
this.bee_mc.base_bee_mc.gotoAndStop("bee without gun");
startBeeMove();
var transformObj = (new flash.geom.Transform(this.bee_mc));
var defaultColorTransform = transformObj.colorTransform;
var tranformColorProcess = 0;
var baseMissileNumber = 50001;
missileNumber = baseMissileNumber;
_root.anim_bee_mc.onMouseDown = function () {
if (beeHoldsGun && (pollenBulletsRemaining > 0)) {
firePollenBullets();
}
};
Symbol 157 MovieClip [Bee] Frame 30
gotoAndPlay ("loop");
Symbol 157 MovieClip [Bee] Frame 31
function checkIntro() {
if (!_root.beeIntroShown) {
_root.beeIntroShown = true;
nextFrame();
}
}
checkIntro();
stop();
Symbol 157 MovieClip [Bee] Frame 32
_root.talker_mc.startTalk("bee", this._name);
_root.freezeAll();
stop();
Symbol 162 MovieClip Frame 2
if (_root.muteFX) {
gotoAndStop ("end");
}
Symbol 162 MovieClip Frame 18
stop();
removeMovieClip("");
Symbol 163 MovieClip [health_icon] Frame 1
function getSpeed() {
return(_root.scrollSpeed * _root.slowMotionFactor);
}
function freeze() {
}
function unFreeze() {
gotoAndPlay (2);
}
function checkIntro() {
if (!_root.healthIntroShown) {
_root.healthIntroShown = true;
_root.talker_mc.startTalk("health", this._name);
_root.freezeAll();
} else {
if (_root.currentIntroShown == this._name) {
_root.unFreezeAll();
}
gotoAndPlay (2);
}
}
var healthGainPoints = ((healthGainPoints == undefined) ? (Math.ceil(_root.terrain_controller_mc.currLevel / 8) * 10) : (healthGainPoints));
Symbol 163 MovieClip [health_icon] Frame 2
_y = (_y + _root.scrollSpeed);
if (this.health_icon_mc.hitTest(_root.anim_bee_mc) && (_root.healthIntroShown)) {
_root.anim_bee_mc.addBeeHealth(healthGainPoints);
gotoAndPlay ("end");
}
if ((!_root.healthIntroShown) && (_y >= 50)) {
checkIntro();
}
Symbol 163 MovieClip [health_icon] Frame 3
if (((_y - this._height) >= Stage.height) || (_root.clearStage)) {
gotoAndStop ("cleanup");
} else {
gotoAndPlay (2);
}
Symbol 163 MovieClip [health_icon] Frame 9
clearInterval(introProcess);
_root.removeEnemy(this._name);
stop();
Symbol 166 MovieClip Frame 2
if (_root.muteFX) {
gotoAndStop ("end");
}
Symbol 166 MovieClip Frame 18
stop();
removeMovieClip("");
Symbol 167 MovieClip [pollen_gun_icon] Frame 1
function freeze() {
}
function unFreeze() {
gotoAndPlay (2);
}
function checkIntro() {
if (!_root.pollenGunIntroShown) {
_root.pollenGunIntroShown = true;
_root.talker_mc.startTalk("pollengun", this._name);
_root.freezeAll();
} else if (_root.currentIntroShown == this._name) {
_root.unFreezeAll();
}
}
var pollenBullets = ((pollenBullets == undefined) ? 40 : (pollenBullets));
Symbol 167 MovieClip [pollen_gun_icon] Frame 2
_y = (_y + _root.scrollSpeed);
if (this.pollengun_icon_mc.hitTest(_root.anim_bee_mc) && (_root.pollenGunIntroShown)) {
_root.disp_panel_mc.pollengun_ind_mc._visible = true;
_root.anim_bee_mc.addPollenBullets(pollenBullets);
gotoAndPlay ("end");
}
if ((!_root.pollenGunIntroShown) && (_y >= 50)) {
checkIntro();
}
Symbol 167 MovieClip [pollen_gun_icon] Frame 3
if (((_y - this._height) >= Stage.height) || (_root.clearStage)) {
gotoAndStop ("cleanup");
} else {
gotoAndPlay (2);
}
Symbol 167 MovieClip [pollen_gun_icon] Frame 9
clearInterval(introProcess);
_root.removeEnemy(this._name);
stop();
Symbol 170 MovieClip [slowmotion_icon] Frame 1
function freeze() {
}
function unFreeze() {
gotoAndPlay (2);
}
function checkIntro() {
if (!_root.sloMoIntroShown) {
_root.sloMoIntroShown = true;
_root.talker_mc.startTalk("slomo", this._name);
_root.freezeAll();
} else if (_root.currentIntroShown == this._name) {
_root.unFreezeAll();
}
}
var introProcess = -1;
Symbol 170 MovieClip [slowmotion_icon] Frame 2
_y = (_y + _root.scrollSpeed);
if (this.slowmo_goggles_mc.hitTest(_root.anim_bee_mc) && (_root.sloMoIntroShown)) {
_root.slowMotionAcquired = true;
_root.disp_panel_mc.slomot_pb_mc._visible = true;
_root.resetSlowMotionDuration();
if (!_root.slomoBarIntroShown) {
_root.measureRowCF = true;
_root.slomoBarIntroShown = true;
_root.talker_mc.startTalk("slomobar", "disp_panel_mc.slomot_pb_mc");
_root.freezeAll();
}
gotoAndPlay ("end");
}
if ((!_root.sloMoIntroShown) && (_y >= 50)) {
checkIntro();
}
Symbol 170 MovieClip [slowmotion_icon] Frame 3
if (((_y - this._height) >= Stage.height) || (_root.clearStage)) {
gotoAndStop ("cleanup");
} else {
gotoAndPlay (2);
}
Symbol 170 MovieClip [slowmotion_icon] Frame 9
clearInterval(introProcess);
_root.removeEnemy(this._name);
stop();
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 5
stop();
Symbol 174 MovieClip [armor_icon] Frame 1
function freeze() {
}
function unFreeze() {
gotoAndPlay (2);
}
function checkIntro() {
if ((armorType == 1) && (!_root.lightArmorIntroShown)) {
_root.lightArmorIntroShown = true;
_root.talker_mc.startTalk("lightarmor", this._name);
_root.freezeAll();
} else if ((armorType == 2) && (!_root.heavyArmorIntroShown)) {
_root.heavyArmorIntroShown = true;
_root.talker_mc.startTalk("heavyarmor", this._name);
_root.freezeAll();
} else {
if (_root.currentIntroShown == this._name) {
_root.unFreezeAll();
}
gotoAndPlay (2);
}
}
var armorType = ((armorType == undefined) ? 1 : (armorType));
this.armor_icon_mc.gotoAndStop((armorType - 1) * 5);
Symbol 174 MovieClip [armor_icon] Frame 2
_y = (_y + _root.scrollSpeed);
if (this.armor_icon_mc.hitTest(_root.anim_bee_mc) && (((armorType == 1) && (_root.lightArmorIntroShown)) || ((armorType == 2) && (_root.heavyArmorIntroShown)))) {
_root.anim_bee_mc.addBeeArmor(armorType);
gotoAndPlay ("end");
}
if ((((armorType == 1) && (!_root.lightArmorIntroShown)) || ((armorType == 2) && (!_root.heavyArmorIntroShown))) && (_y >= 50)) {
checkIntro();
}
Symbol 174 MovieClip [armor_icon] Frame 3
if (((_y - this._height) >= Stage.height) || (_root.clearStage)) {
gotoAndStop ("cleanup");
} else {
gotoAndPlay (2);
}
Symbol 174 MovieClip [armor_icon] Frame 9
_root.removeEnemy(this._name);
stop();
Symbol 179 MovieClip [city_terrain1] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 179 MovieClip [city_terrain1] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 182 MovieClip [city_terrain2] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 182 MovieClip [city_terrain2] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 185 MovieClip [city_terrain3] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 185 MovieClip [city_terrain3] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 188 MovieClip [city_terrain4] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 188 MovieClip [city_terrain4] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 193 MovieClip Frame 1
if (_parent.webDirection == -1) {
_parent.gotoAndStop("end");
}
this.end_mc.onEnterFrame = function () {
if (_parent.isBeeCaughtInWeb || (_root.anim_bee_mc.beeImmuneToWeb)) {
return(undefined);
}
if (this.hitTest(_root.anim_bee_mc)) {
_parent.isBeeCaughtInWeb = true;
_root.anim_bee_mc.stopBeeControlReversal();
_root.anim_bee_mc.stopBeeMove();
_parent.webSpeed = 1;
_parent.webDirection = -1;
}
};
Symbol 193 MovieClip Frame 120
_parent.webDirection = -1;
Symbol 194 MovieClip [Animated Spider Web] Frame 1
function getSpeed() {
return((webDirection * webSpeed) * _root.slowMotionFactor);
}
function moveWeb() {
_y = (_y + (_root.scrollSpeed * 0.25));
if (((_y - this._height) >= Stage.height) || (_root.clearStage)) {
removeMovieClip("");
}
webFrameLoc = webFrameLoc + getSpeed();
webFrameLoc = ((webFrameLoc > 120) ? 120 : (((webFrameLoc < 1) ? 1 : (webFrameLoc))));
this.spider_web_mc.gotoAndStop(Math.floor(webFrameLoc));
if (isBeeCaughtInWeb) {
var _local3 = {x:this.spider_web_mc.end_mc._x, y:this.spider_web_mc.end_mc._y};
this.localToGlobal(_local3);
_root.anim_bee_mc._x = _local3.x - 10;
_root.anim_bee_mc._y = _local3.y - 10;
}
}
var webSpeed = 3;
var webDirection = 1;
var isBeeCaughtInWeb = false;
var callingSpider;
var webFrameLoc = 0;
var baseWebHoldStregth = 200;
var webHoldStregth = baseWebHoldStregth;
var webHoldResistance = 50;
var prevXposition = 0;
var prevYposition = 0;
Symbol 194 MovieClip [Animated Spider Web] Frame 2
moveWeb();
Symbol 194 MovieClip [Animated Spider Web] Frame 3
moveWeb();
Symbol 194 MovieClip [Animated Spider Web] Frame 4
moveWeb();
Symbol 194 MovieClip [Animated Spider Web] Frame 5
moveWeb();
if (isBeeCaughtInWeb && (!_root.pauseGame)) {
var shakeStrength = ((Math.abs(prevXposition - _root._xmouse) + Math.abs(prevYposition - _root._ymouse)) - webHoldResistance);
webHoldStregth = webHoldStregth - shakeStrength;
if (webHoldStregth > baseWebHoldStregth) {
webHoldStregth = baseWebHoldStregth;
} else if (webHoldStregth <= 0) {
_root.anim_bee_mc.isBeeInThisWeb = (isBeeCaughtInWeb = false);
webSpeed = 6;
if (_x < (Stage.width / 2)) {
_root.anim_bee_mc._x = _root.anim_bee_mc._x + 50;
} else {
_root.anim_bee_mc._x = _root.anim_bee_mc._x - 50;
}
_root.anim_bee_mc.startBeeMove();
_root.anim_bee_mc.startImmunityPeriod(500);
}
}
prevXposition = _root._xmouse;
prevYposition = _root._ymouse;
gotoAndPlay ("loop");
Symbol 194 MovieClip [Animated Spider Web] Frame 6
_root[callingSpider].waitingForWebRetract = false;
removeMovieClip("");
stop();
Symbol 197 MovieClip [forest_terrain1] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 197 MovieClip [forest_terrain1] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 200 MovieClip [forest_terrain2] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 200 MovieClip [forest_terrain2] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 203 MovieClip [forest_terrain3] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 203 MovieClip [forest_terrain3] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 206 MovieClip [forest_terrain4] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 206 MovieClip [forest_terrain4] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 209 MovieClip [water_terrain1] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 209 MovieClip [water_terrain1] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 212 MovieClip [end_beach] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 212 MovieClip [end_beach] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 214 MovieClip [start_beach] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 214 MovieClip [start_beach] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 217 MovieClip [water_terrain2] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 217 MovieClip [water_terrain2] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 220 MovieClip [water_terrain3] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 220 MovieClip [water_terrain3] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 223 MovieClip [water_terrain4] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 223 MovieClip [water_terrain4] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 226 MovieClip [plains_terrain1] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 226 MovieClip [plains_terrain1] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 229 MovieClip [plains_terrain2] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 229 MovieClip [plains_terrain2] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 232 MovieClip [plains_terrain3] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 232 MovieClip [plains_terrain3] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 235 MovieClip [plains_terrain4] Frame 1
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 235 MovieClip [plains_terrain4] Frame 2
_y = (_y + _root.scrollSpeed);
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 237 MovieClip [mouse_pointer] Frame 1
var middleKeyPressed;
if (ASnative(800, 2) /* [Key] isDown */(4) && (_root.slowMotionAcquired)) {
if (!middleKeyPressed) {
if (_root.slowMotionProcess == 0) {
_root.startSlowMotionEffect();
} else {
_root.stopSlowMotionEffect();
}
middleKeyPressed = true;
}
} else {
middleKeyPressed = false;
}
Symbol 239 MovieClip [swarm1] Frame 12
function checkIntro() {
if (!_root.swarmIntroShown) {
_parent.stopSwarm();
_root.swarmIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == _parent._name) {
_root.unFreezeAll();
}
if (_parent.safetyFactor == 1) {
if (_currentframe < 15) {
gotoAndPlay (15);
} else {
play();
}
}
}
}
checkIntro();
Symbol 239 MovieClip [swarm1] Frame 13
_root.talker_mc.startTalk("swarm", _parent._name);
_root.freezeAll();
stop();
Symbol 239 MovieClip [swarm1] Frame 134
clearInterval(introProcess);
_parent.gotoAndStop("out of screen");
stop();
Symbol 240 MovieClip [swarm4] Frame 12
function checkIntro() {
if (!_root.swarmIntroShown) {
_parent.stopSwarm();
_root.swarmIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == _parent._name) {
_root.unFreezeAll();
}
if (_parent.safetyFactor == 1) {
if (_currentframe < 15) {
gotoAndPlay (15);
} else {
play();
}
}
}
}
checkIntro();
Symbol 240 MovieClip [swarm4] Frame 13
_root.talker_mc.startTalk("swarm", _parent._name);
_root.freezeAll();
stop();
Symbol 240 MovieClip [swarm4] Frame 134
clearInterval(introProcess);
_parent.gotoAndStop("out of screen");
stop();
Symbol 241 MovieClip [swarm3] Frame 12
function checkIntro() {
if (!_root.swarmIntroShown) {
_parent.stopSwarm();
_root.swarmIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == _parent._name) {
_root.unFreezeAll();
}
if (_parent.safetyFactor == 1) {
if (_currentframe < 15) {
gotoAndPlay (15);
} else {
play();
}
}
}
}
checkIntro();
Symbol 241 MovieClip [swarm3] Frame 13
_root.talker_mc.startTalk("swarm", _parent._name);
_root.freezeAll();
stop();
Symbol 241 MovieClip [swarm3] Frame 134
clearInterval(introProcess);
_parent.gotoAndStop("out of screen");
stop();
Symbol 242 MovieClip [swarm2] Frame 12
function checkIntro() {
if (!_root.swarmIntroShown) {
_parent.stopSwarm();
_root.swarmIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == _parent._name) {
_root.unFreezeAll();
}
if (_parent.safetyFactor == 1) {
if (_currentframe < 15) {
gotoAndPlay (15);
} else {
play();
}
}
}
}
checkIntro();
Symbol 242 MovieClip [swarm2] Frame 13
_root.talker_mc.startTalk("swarm", _parent._name);
_root.freezeAll();
stop();
Symbol 242 MovieClip [swarm2] Frame 134
clearInterval(introProcess);
_parent.gotoAndStop("out of screen");
stop();
Symbol 243 MovieClip [swarm] Frame 1
function moveSwarm() {
if (_root.clearStage) {
exit();
}
swarmTickCounter = swarmTickCounter + (_root.slowMotionFactor * safetyFactor);
if (swarmTickCounter >= 1) {
swarmTickCounter = 0;
swarm_mc.nextFrame();
if (this.hitTest(_root.anim_bee_mc)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints * (4 / _root.fps));
}
}
}
function exit() {
gotoAndStop ("out of screen");
}
function freeze() {
safetyFactor = 0;
swarm_mc.stop();
stop();
}
function unFreeze() {
safetyFactor = 1;
play();
}
_root.addParameters(this, paramString);
var damagePoints = ((damagePoints == undefined) ? (Swarm.defaultDamagePoints) : (damagePoints));
var swarmProcess = 0;
var swarmTickCounter = 0;
var safetyFactor = 1;
var randSwarm = (random(4) + 1);
attachMovie("swarm" + randSwarm, "swarm_mc", this.getDepth());
swarm_mc._x = 180;
swarm_mc._y = 250;
Symbol 243 MovieClip [swarm] Frame 2
moveSwarm();
Symbol 243 MovieClip [swarm] Frame 3
gotoAndPlay ("loop");
Symbol 243 MovieClip [swarm] Frame 4
_root.removeEnemy(this._name);
stop();
Symbol 249 MovieClip [fps] Frame 1
function calcFPS() {
numFrames++;
var _local3 = getTimer();
var _local1 = (_local3 - startTime) / 1000;
var _local2 = Math.round(numFrames / _local1);
fpsField.text = _local2;
secElapsedField.text = Math.floor(_local1);
}
var startTime = getTimer();
var numFrames = 0;
this.onEnterFrame = calcFPS;
Symbol 257 MovieClip Frame 5
gotoAndPlay (1);
Symbol 257 MovieClip Frame 15
gotoAndPlay (1);
Symbol 258 MovieClip Frame 27
function checkIntro() {
if (!_root.droneIntroShown) {
_root.droneIntroShown = true;
nextFrame();
} else {
if (_root.currentIntroShown == _parent._name) {
_root.unFreezeAll();
}
gotoAndPlay ("hover");
}
}
checkIntro();
Symbol 258 MovieClip Frame 28
_root.talker_mc.startTalk("drone", _parent._name);
_root.freezeAll();
stop();
Symbol 258 MovieClip Frame 58
gotoAndPlay ("hover");
Symbol 258 MovieClip Frame 88
stop();
Symbol 258 MovieClip Frame 108
_root.removeEnemy(_parent._name);
stop();
Symbol 259 MovieClip [drone_bee] Frame 1
function freeze() {
this.anim_drone_bee_mc.stop();
this.stop();
}
function unFreeze() {
this.anim_drone_bee_mc.play();
play();
}
var beeDead = false;
_root.addParameters(this, paramString);
if (_x < (Stage.width / 2)) {
this.anim_drone_bee_mc._xscale = -100;
}
Symbol 259 MovieClip [drone_bee] Frame 27
function getSpeed() {
return(((random(3) - 1) * speed) * _root.slowMotionFactor);
}
function setColorTransform() {
transformObj.colorTransform = _root.redColorTransform;
tranformColorProcess = setInterval(restoreColorTransform, 40);
}
function restoreColorTransform() {
clearInterval(tranformColorProcess);
transformObj.colorTransform = defaultColorTransform;
}
function takeDamage(damagePoints) {
if (!beeDead) {
hitPoints = hitPoints - damagePoints;
setColorTransform();
if (hitPoints <= 0) {
beeDead = true;
gotoAndStop ("die");
}
}
}
function exit() {
gotoAndPlay ("exit");
}
var xMin = 50;
var xMax = 550;
var yMin = 30;
var yMax = 150;
var droneBeeId = (_root.droneBeesId++);
var baseMissileNumber = (15000 + (droneBeeId * 100));
missileNumber = baseMissileNumber;
var startTick = _root.ticks;
var speed = ((speed == undefined) ? (Drone.defaultSpeed) : (speed));
var attackChance = ((attackChance == undefined) ? (Drone.defaultAttackChance) : (attackChance));
var hitPoints = ((hitPoints == undefined) ? (Drone.defaultHitPoints) : (hitPoints));
var damagePoints = ((damagePoints == undefined) ? (Drone.defaultDamagePoints) : (damagePoints));
var pixelage = ((pixelage == undefined) ? (Drone.defaultPixelage) : (pixelage));
var transformObj = (new flash.geom.Transform(this.anim_drone_bee_mc));
var defaultColorTransform = transformObj.colorTransform;
var tranformColorProcess = 0;
var newX = 0;
var newY = 0;
Symbol 259 MovieClip [drone_bee] Frame 28
if (_root.anim_bee_mc.hitTest(_x, _y)) {
_root.anim_bee_mc.reduceBeeHealth(damagePoints);
}
Symbol 259 MovieClip [drone_bee] Frame 31
newX = _x + getSpeed();
newY = _y + getSpeed();
if ((newX > xMin) && (newX < xMax)) {
var stageCenterX = (Stage.width / 2);
if ((_x < stageCenterX) && (newX > stageCenterX)) {
this.anim_drone_bee_mc._xscale = 100;
}
if ((_x > stageCenterX) && (newX < stageCenterX)) {
this.anim_drone_bee_mc._xscale = -100;
}
_x = newX;
}
if ((newY > yMin) && (newY < yMax)) {
_y = newY;
}
Symbol 259 MovieClip [drone_bee] Frame 32
if (random(100) <= attackChance) {
newMissileName = ("missile" + droneBeeId) + missileNumber;
_root.attachMovie("Animated Pollen Bullet", newMissileName, missileNumber);
if (missileNumber >= (baseMissileNumber + 100)) {
missileNumber = baseMissileNumber;
} else {
missileNumber++;
}
_root[newMissileName]._x = _x;
_root[newMissileName]._y = _y;
xMouseLoc = _root.anim_bee_mc._x - _x;
yMouseLoc = _root.anim_bee_mc._y - _y;
if (Math.abs(xMouseLoc) >= Math.abs(yMouseLoc)) {
_root[newMissileName].xDisp = xMouseLoc / Math.abs(xMouseLoc);
_root[newMissileName].yDisp = yMouseLoc / Math.abs(xMouseLoc);
} else {
_root[newMissileName].xDisp = xMouseLoc / Math.abs(yMouseLoc);
_root[newMissileName].yDisp = yMouseLoc / Math.abs(yMouseLoc);
}
this.anim_drone_bee_mc.direct_drone_bee_mc.gotoAndPlay("throw action");
}
Symbol 259 MovieClip [drone_bee] Frame 36
if ((((_root.ticks - startTick) * _root.terrainRenderFrequency) >= pixelage) || (_root.clearStage)) {
gotoAndPlay ("exit");
} else {
gotoAndPlay ("loop");
}
Symbol 259 MovieClip [drone_bee] Frame 37
this.anim_drone_bee_mc.gotoAndPlay("exit");
Symbol 259 MovieClip [drone_bee] Frame 70
_root.removeEnemy(this._name);
stop();
Symbol 259 MovieClip [drone_bee] Frame 71
aaooFX.stop("aaooFX");
if (!_root.muteFX) {
var fallFX = new Sound();
fallFX.attachSound("fallingAooFX");
fallFX.start(0, 1);
}
this.anim_drone_bee_mc.gotoAndPlay("die");
Symbol 272 Button
on (press) {
if (!_root.helpShown) {
if ((_root.terrain_controller_mc.currLevel == 1) || ((_root.terrain_controller_mc.currLevel != _root.startLevelNo) && (((_root.terrain_controller_mc.currLevel - 1) % 4) == 0))) {
_root.attachMovie("cities_map", "cities_map_mc", 80200);
_root.cities_map_mc._x = Stage.width / 2;
_root.cities_map_mc._y = Stage.height / 2;
} else {
_root.terrain_controller_mc.startLevel();
}
removeMovieClip("");
}
}
Symbol 274 Button
on (press) {
if ((_root.terrain_controller_mc.currLevel == 1) || ((_root.terrain_controller_mc.currLevel != _root.startLevelNo) && (((_root.terrain_controller_mc.currLevel - 1) % 4) == 0))) {
_root.attachMovie("cities_map", "cities_map_mc", 80200);
_root.cities_map_mc._x = Stage.width / 2;
_root.cities_map_mc._y = Stage.height / 2;
} else {
_root.terrain_controller_mc.startLevel();
}
removeMovieClip("");
}
Symbol 275 MovieClip [level_start_panel] Frame 1
if (_root.terrain_controller_mc.currLevel > _root.startLevelNo) {
this.start_game_btn._visible = false;
this.attachMovie("scoreboard", "scoreboard_mc", 80150);
scoreboard_mc._x = (-(scoreboard_mc._width / 2)) + 10;
scoreboard_mc._y = (-(scoreboard_mc._height / 2)) - 30;
this.level_txt.text = _root.terrain_controller_mc.currLevel - 1;
} else {
this.continue_btn._visible = false;
this.level_txt.text = _root.terrain_controller_mc.currLevel;
}
stop();
Symbol 279 Button
on (release) {
_root.showUploadScorePanel();
_root.uploader_menu_mc._y = _root.uploader_menu_mc._y + 30;
}
Symbol 281 Button
on (release) {
_root.quitToMainMenu();
}
Symbol 283 MovieClip Frame 1
var currentValue;
var targetValue;
var increment;
stop();
Symbol 283 MovieClip Frame 2
if ((targetValue - currentValue) > increment) {
currentValue = currentValue + increment;
} else {
currentValue = targetValue;
}
Symbol 283 MovieClip Frame 3
if (currentValue >= targetValue) {
stop();
_parent.play();
} else {
gotoAndPlay (2);
}
Symbol 286 Button
on (press) {
if (!_root.helpShown) {
_root.uploader_menu_mc.removeMovieClip();
_root.showDisplayPanel();
_root.terrain_controller_mc.restartLevel();
removeMovieClip("");
}
}
Symbol 289 Button
on (release) {
getURL ("http://www.bubblebox.com/", "_blank");
}
Symbol 296 Button
on (rollOver) {
gotoAndPlay (1);
}
on (rollOut) {
gotoAndPlay (11);
}
on (press) {
getURL ("http://www.tigertailstudios.com/", "_blank");
}
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 10
stop();
Symbol 299 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.bubblebox.com/", "_blank");
};
Symbol 300 MovieClip [level_restart_panel] Frame 1
_root.hideDisplayPanel();
Symbol 300 MovieClip [level_restart_panel] Frame 35
if (Scorer.getTotalScore() <= _root.saveProgress.highScore) {
this.upload_scores_btn._visible = false;
} else {
this.quit_btn._visible = false;
}
stop();
Instance of Symbol 283 MovieClip "totalTicker_mc" in Symbol 300 MovieClip [level_restart_panel] Frame 35
onClipEvent (load) {
this.currentValue = Scorer.getTotalScore();
}
Symbol 307 MovieClip Frame 1
function adjustLook(newX, newY) {
if (newX > (Stage.width / 2)) {
instr_panel_mc._xscale = -100;
}
if (newY > (Stage.height / 2)) {
instr_panel_mc._yscale = -100;
}
}
Symbol 310 MovieClip Frame 1
function setHeight(heightPixels) {
instr_panel_mc._height = heightPixels;
}
function adjustLook(newX, newY) {
if (newX > (Stage.width / 2)) {
instr_panel_mc._xscale = -100;
_x = (_x - (_width + 10));
}
if (newY > (Stage.height / 2)) {
instr_panel_mc._yscale = -100;
_y = (_y - _height);
}
}
Symbol 312 MovieClip [drone_talker] Frame 1
function centerText() {
this.drone_instr_txt._x = this.drone_instr_mc._x + ((this.drone_instr_mc._width - this.drone_instr_txt._width) / 2);
this.drone_instr_txt._y = (this.drone_instr_mc._y + ((this.drone_instr_mc._height - this.drone_instr_txt._height) / 2)) + 5;
}
function centerTextInBubble() {
var _local3 = this.drone_instr_mc.instr_panel_mc.main_bubble_mc;
if (_root.anim_bee_mc._x < (Stage.width / 2)) {
this.drone_instr_txt._x = this.drone_instr_mc._x + ((this.drone_instr_mc._width - this.drone_instr_txt._width) / 2);
} else {
this.drone_instr_txt._x = this.drone_instr_mc._x - this.drone_instr_txt._width;
}
if (_root.anim_bee_mc._y < (Stage.height / 2)) {
this.drone_instr_txt._y = (this.drone_instr_mc._y + _local3._y) - 15;
} else {
this.drone_instr_txt._y = (this.drone_instr_mc._y - _local3._y) - 15;
}
}
var charX;
var charY;
var instanceName;
var droneCoords = {x:charX, y:charY};
this.globalToLocal(droneCoords);
var beeCoords = {x:_root.anim_bee_mc._x, y:_root.anim_bee_mc._y};
this.globalToLocal(beeCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 312 MovieClip [drone_talker] Frame 2
this.drone_instr_mc._x = beeCoords.x;
this.drone_instr_mc._y = beeCoords.y;
this.drone_instr_mc.adjustLook(_root.anim_bee_mc._x, _root.anim_bee_mc._y);
centerTextInBubble();
Symbol 312 MovieClip [drone_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("second");
};
Symbol 312 MovieClip [drone_talker] Frame 141
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 312 MovieClip [drone_talker] Frame 142
this.drone_instr_mc._x = droneCoords.x;
this.drone_instr_mc._y = droneCoords.y;
this.drone_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 312 MovieClip [drone_talker] Frame 151
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 312 MovieClip [drone_talker] Frame 286
_root[instanceName].anim_drone_bee_mc.checkIntro();
_root.currentIntroShown = "";
drone_instr_mc.removeMovieClip();
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 315 MovieClip [kamikaze_talker] Frame 1
function centerText() {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 2;
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
function centerTextInBubble() {
var _local3 = this.char_instr_mc.instr_panel_mc.main_bubble_mc;
if (_root.anim_bee_mc._x < (Stage.width / 2)) {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
} else {
this.char_instr_txt._x = this.char_instr_mc._x - this.char_instr_txt._width;
}
if (_root.anim_bee_mc._y < (Stage.height / 2)) {
this.char_instr_txt._y = (this.char_instr_mc._y + _local3._y) - 15;
} else {
this.char_instr_txt._y = (this.char_instr_mc._y - _local3._y) - 15;
}
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX, y:charY};
this.globalToLocal(charCoords);
var beeCoords = {x:_root.anim_bee_mc._x, y:_root.anim_bee_mc._y};
this.globalToLocal(beeCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 315 MovieClip [kamikaze_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 315 MovieClip [kamikaze_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("second");
};
Symbol 315 MovieClip [kamikaze_talker] Frame 213
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 315 MovieClip [kamikaze_talker] Frame 214
this.char_instr_mc._x = beeCoords.x;
this.char_instr_mc._y = beeCoords.y;
this.char_instr_mc.adjustLook(_root.anim_bee_mc._x, _root.anim_bee_mc._y);
centerTextInBubble();
Symbol 315 MovieClip [kamikaze_talker] Frame 222
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 315 MovieClip [kamikaze_talker] Frame 319
_root[instanceName].anim_kamikaze_mc.checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 318 MovieClip [hornet_talker] Frame 1
function centerText() {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 2;
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
function centerTextInBubble() {
var _local3 = this.char_instr_mc.instr_panel_mc.main_bubble_mc;
if (_root.anim_bee_mc._x < (Stage.width / 2)) {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 5;
} else {
this.char_instr_txt._x = (this.char_instr_mc._x - this.char_instr_txt._width) - 9;
}
if (_root.anim_bee_mc._y < (Stage.height / 2)) {
this.char_instr_txt._y = (this.char_instr_mc._y + _local3._y) - 15;
} else {
this.char_instr_txt._y = (this.char_instr_mc._y - _local3._y) - 19;
}
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY};
this.globalToLocal(charCoords);
var beeCoords = {x:_root.anim_bee_mc._x, y:_root.anim_bee_mc._y};
this.globalToLocal(beeCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 318 MovieClip [hornet_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 318 MovieClip [hornet_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("second");
};
Symbol 318 MovieClip [hornet_talker] Frame 177
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 318 MovieClip [hornet_talker] Frame 178
this.char_instr_mc._x = beeCoords.x;
this.char_instr_mc._y = beeCoords.y;
this.char_instr_mc.adjustLook(_root.anim_bee_mc._x, _root.anim_bee_mc._y);
centerTextInBubble();
Symbol 318 MovieClip [hornet_talker] Frame 186
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 318 MovieClip [hornet_talker] Frame 320
_root[instanceName].anim_hornet_mc.checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 320 MovieClip [slomo_talker] Frame 1
function centerText() {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 320 MovieClip [slomo_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 320 MovieClip [slomo_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 320 MovieClip [slomo_talker] Frame 248
_root[instanceName].checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 322 MovieClip [pollengun_talker] Frame 1
function centerText() {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY + 15};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 322 MovieClip [pollengun_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 322 MovieClip [pollengun_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 322 MovieClip [pollengun_talker] Frame 142
_root[instanceName].checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 324 MovieClip [lightarmor_talker] Frame 1
function centerText() {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY + 10};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 324 MovieClip [lightarmor_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 324 MovieClip [lightarmor_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 324 MovieClip [lightarmor_talker] Frame 139
_root[instanceName].checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 326 MovieClip [heavyarmor_talker] Frame 1
function centerText() {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY + 10};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 326 MovieClip [heavyarmor_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 326 MovieClip [heavyarmor_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 326 MovieClip [heavyarmor_talker] Frame 139
_root[instanceName].checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 328 MovieClip [sting_talker] Frame 1
function centerText() {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 2;
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) - 2;
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY + 10};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 328 MovieClip [sting_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 328 MovieClip [sting_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 328 MovieClip [sting_talker] Frame 175
_root[instanceName].checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 330 MovieClip [health_talker] Frame 1
function centerText() {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 330 MovieClip [health_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 330 MovieClip [health_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 330 MovieClip [health_talker] Frame 139
_root[instanceName].checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 332 MovieClip [bee_talker] Frame 1
function centerText() {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
this.char_instr_txt._y = this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2);
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 332 MovieClip [bee_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 332 MovieClip [bee_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 332 MovieClip [bee_talker] Frame 213
_root.unFreezeAll();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 334 MovieClip [healthbar_talker] Frame 1
function centerText() {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
var charX;
var charY;
var instanceName;
var charCoords = {x:(charX - 80) + ((_root.baseBeeHealth / 10) * 16), y:charY + 10};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 334 MovieClip [healthbar_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 334 MovieClip [healthbar_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 334 MovieClip [healthbar_talker] Frame 213
_root.unFreezeAll();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 336 MovieClip [slomobar_talker] Frame 1
function centerText() {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 10;
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX, y:charY + 30};
this.globalToLocal(charCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 336 MovieClip [slomobar_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 336 MovieClip [slomobar_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 336 MovieClip [slomobar_talker] Frame 285
_root.unFreezeAll();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 338 MovieClip [endHotel_talker] Frame 1
function centerTextInBubble() {
var _local3 = this.char_instr_mc.instr_panel_mc.main_bubble_mc;
if (_root.anim_bee_mc._x < (Stage.width / 2)) {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 5;
} else {
this.char_instr_txt._x = (this.char_instr_mc._x - this.char_instr_txt._width) - 5;
}
if (_root.anim_bee_mc._y < (Stage.height / 2)) {
this.char_instr_txt._y = (this.char_instr_mc._y + _local3._y) - 15;
} else {
this.char_instr_txt._y = (this.char_instr_mc._y - _local3._y) - 2;
}
}
var charX;
var charY;
var instanceName;
var beeCoords = {x:_root.anim_bee_mc._x, y:_root.anim_bee_mc._y};
this.globalToLocal(beeCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 338 MovieClip [endHotel_talker] Frame 2
this.char_instr_mc._x = beeCoords.x;
this.char_instr_mc._y = beeCoords.y;
this.char_instr_mc.adjustLook(_root.anim_bee_mc._x, _root.anim_bee_mc._y);
centerTextInBubble();
Symbol 338 MovieClip [endHotel_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 338 MovieClip [endHotel_talker] Frame 213
_root[instanceName].checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 341 MovieClip [spider_talker] Frame 1
function centerText() {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 2;
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
function centerTextInBubble() {
var _local3 = this.char_instr_mc.instr_panel_mc.main_bubble_mc;
if (_root.anim_bee_mc._x < (Stage.width / 2)) {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 5;
} else {
this.char_instr_txt._x = (this.char_instr_mc._x - this.char_instr_txt._width) - 19;
}
if (_root.anim_bee_mc._y < (Stage.height / 2)) {
this.char_instr_txt._y = (this.char_instr_mc._y + _local3._y) - 15;
} else {
this.char_instr_txt._y = (this.char_instr_mc._y - _local3._y) - 21;
}
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX + 10, y:charY};
this.globalToLocal(charCoords);
var beeCoords = {x:_root.anim_bee_mc._x, y:_root.anim_bee_mc._y};
this.globalToLocal(beeCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 341 MovieClip [spider_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 341 MovieClip [spider_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("second");
};
Symbol 341 MovieClip [spider_talker] Frame 216
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 341 MovieClip [spider_talker] Frame 217
this.char_instr_mc._x = beeCoords.x;
this.char_instr_mc._y = beeCoords.y;
this.char_instr_mc.adjustLook(_root.anim_bee_mc._x, _root.anim_bee_mc._y);
centerTextInBubble();
Symbol 341 MovieClip [spider_talker] Frame 225
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 341 MovieClip [spider_talker] Frame 323
_root[instanceName].checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 344 MovieClip [mite_Talker] Frame 1
function centerText() {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 2;
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
function centerTextInBubble() {
var _local3 = this.char_instr_mc.instr_panel_mc.main_bubble_mc;
if (_root.anim_bee_mc._x < (Stage.width / 2)) {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
} else {
this.char_instr_txt._x = (this.char_instr_mc._x - this.char_instr_txt._width) - 15;
}
if (_root.anim_bee_mc._y < (Stage.height / 2)) {
this.char_instr_txt._y = (this.char_instr_mc._y + _local3._y) - 18;
} else {
this.char_instr_txt._y = (this.char_instr_mc._y - _local3._y) - 18;
}
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX, y:charY};
this.globalToLocal(charCoords);
var beeCoords = {x:_root.anim_bee_mc._x, y:_root.anim_bee_mc._y};
this.globalToLocal(beeCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 344 MovieClip [mite_Talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 344 MovieClip [mite_Talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("second");
};
Symbol 344 MovieClip [mite_Talker] Frame 285
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 344 MovieClip [mite_Talker] Frame 286
this.char_instr_mc._x = beeCoords.x;
this.char_instr_mc._y = beeCoords.y;
this.char_instr_mc.adjustLook(_root.anim_bee_mc._x, _root.anim_bee_mc._y);
centerTextInBubble();
Symbol 344 MovieClip [mite_Talker] Frame 294
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 344 MovieClip [mite_Talker] Frame 428
_root[instanceName].anim_mite_mc.checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 346 MovieClip [slomopromo_talker] Frame 1
function centerTextInBubble() {
var _local3 = this.char_instr_mc.instr_panel_mc.main_bubble_mc;
if (_root.anim_bee_mc._x < (Stage.width / 2)) {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 5;
} else {
this.char_instr_txt._x = (this.char_instr_mc._x - this.char_instr_txt._width) - 9;
}
if (_root.anim_bee_mc._y < (Stage.height / 2)) {
this.char_instr_txt._y = (this.char_instr_mc._y + _local3._y) - 14;
} else {
this.char_instr_txt._y = (this.char_instr_mc._y - _local3._y) - 24;
}
}
var instanceName;
var beeCoords = {x:_root.anim_bee_mc._x, y:_root.anim_bee_mc._y};
this.globalToLocal(beeCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 346 MovieClip [slomopromo_talker] Frame 2
this.char_instr_mc._x = beeCoords.x;
this.char_instr_mc._y = beeCoords.y;
this.char_instr_mc.adjustLook(_root.anim_bee_mc._x, _root.anim_bee_mc._y);
centerTextInBubble();
_root.freezeAll();
Symbol 346 MovieClip [slomopromo_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 346 MovieClip [slomopromo_talker] Frame 146
_root.currentIntroShown = "";
_root.unFreezeAll();
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 351 MovieClip [web] Frame 1
function moveWebDown() {
_y = (_y + _root.scrollSpeed);
if ((((_y - this._height) - 400) >= Stage.height) || (_root.clearStage)) {
removeMovieClip("");
}
}
var baseWebHoldStregth = 800;
var webHoldStregth = baseWebHoldStregth;
var prevXposition = 0;
var prevYposition = 0;
var webHoldResistance = 70;
var isBeeInThisWeb = false;
var startLevel = _root.terrain_controller_mc.currLevel;
var webRespiteProcess = -1;
Symbol 351 MovieClip [web] Frame 2
moveWebDown();
if ((isBeeInThisWeb || (_root.anim_bee_mc.isBeeInThisWeb)) || (_root.anim_bee_mc.beeImmuneToWeb)) {
return(undefined);
}
if (this.hitLayer_mc.hitTest(_root.anim_bee_mc)) {
_root.anim_bee_mc.isBeeInThisWeb = (isBeeInThisWeb = true);
_root.anim_bee_mc.stopBeeControlReversal();
_root.anim_bee_mc.stopBeeMove();
webHoldStregth = baseWebHoldStregth;
}
Symbol 351 MovieClip [web] Frame 3
if (isBeeInThisWeb && (!_root.pauseGame)) {
var shakeStrength = ((Math.abs(prevXposition - _root._xmouse) + Math.abs(prevYposition - _root._ymouse)) - webHoldResistance);
prevXposition = _root._xmouse;
prevYposition = _root._ymouse;
webHoldStregth = webHoldStregth - shakeStrength;
if (webHoldStregth > baseWebHoldStregth) {
webHoldStregth = baseWebHoldStregth;
} else if (webHoldStregth <= 0) {
_root.anim_bee_mc.isBeeInThisWeb = (isBeeInThisWeb = false);
if (_x < (Stage.width / 2)) {
_root.anim_bee_mc._x = (_x + _width) + 50;
} else {
_root.anim_bee_mc._x = (_x - _width) - 20;
}
_root.anim_bee_mc.startBeeMove();
_root.anim_bee_mc.startImmunityPeriod(1000);
}
}
gotoAndPlay ("loop");
Instance of Symbol 141 MovieClip "base_bee_mc" in Symbol 356 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 356 MovieClip Frame 5
gotoAndPlay ("bee no armor");
Symbol 381 Button
on (press) {
_root.terrain_controller_mc.startLevel();
removeMovieClip("");
}
Symbol 382 Button
on (press) {
_root.terrain_controller_mc.startLevel();
removeMovieClip("");
}
Symbol 383 MovieClip [cities_map] Frame 1
_root.playGameBackground(_root.terrain_controller_mc.currLevel);
if (_root.terrain_controller_mc.currLevel == 1) {
this.continue_btn._visible = false;
} else {
this.start_game_btn._visible = false;
}
gotoAndPlay((40 * (Math.floor(_root.terrain_controller_mc.currLevel / 4) - 1)) + 1);
Instance of Symbol 365 MovieClip "map_intro_mc" in Symbol 383 MovieClip [cities_map] Frame 1
onClipEvent (load) {
if (_root.terrain_controller_mc.currLevel == 1) {
_x = -300;
_y = -200;
}
}
Instance of Symbol 368 MovieClip "dronecity_mc" in Symbol 383 MovieClip [cities_map] Frame 1
onClipEvent (load) {
if (_root.terrain_controller_mc.currLevel == 5) {
_x = -300;
_y = -200;
}
}
Instance of Symbol 371 MovieClip in Symbol 383 MovieClip [cities_map] Frame 1
onClipEvent (load) {
if (_root.terrain_controller_mc.currLevel == 9) {
_x = -300;
_y = -200;
}
}
Instance of Symbol 374 MovieClip in Symbol 383 MovieClip [cities_map] Frame 1
onClipEvent (load) {
if (_root.terrain_controller_mc.currLevel == 13) {
_x = -300;
_y = -200;
}
}
Instance of Symbol 377 MovieClip in Symbol 383 MovieClip [cities_map] Frame 1
onClipEvent (load) {
if (_root.terrain_controller_mc.currLevel == 17) {
_x = -300;
_y = -200;
}
}
Instance of Symbol 380 MovieClip in Symbol 383 MovieClip [cities_map] Frame 1
onClipEvent (load) {
if (_root.terrain_controller_mc.currLevel == 21) {
_x = -300;
_y = -200;
}
}
Symbol 383 MovieClip [cities_map] Frame 40
if (_root.terrain_controller_mc.currLevel != 1) {
stop();
}
Symbol 383 MovieClip [cities_map] Frame 80
if (_root.terrain_controller_mc.currLevel != 1) {
stop();
}
Symbol 383 MovieClip [cities_map] Frame 120
if (_root.terrain_controller_mc.currLevel != 1) {
stop();
}
Symbol 383 MovieClip [cities_map] Frame 160
if (_root.terrain_controller_mc.currLevel != 1) {
stop();
}
Symbol 383 MovieClip [cities_map] Frame 200
if (_root.terrain_controller_mc.currLevel != 1) {
stop();
}
Symbol 383 MovieClip [cities_map] Frame 240
if (_root.terrain_controller_mc.currLevel != 1) {
stop();
} else {
gotoAndPlay (2);
}
Symbol 396 MovieClip [scoreboard] Frame 2
this.prevScore_txt.text = (this.totalTicker_mc.currentValue = Scorer.getPrevScore());
Symbol 396 MovieClip [scoreboard] Frame 10
this.levelNumber_txt.text = Scorer.getLevelNumber();
Symbol 396 MovieClip [scoreboard] Frame 26
levelTicker_mc.currentValue = 0;
levelTicker_mc.increment = 1000;
levelTicker_mc.targetValue = Scorer.getLevelBonus();
levelTicker_mc.gotoAndPlay(2);
stop();
Symbol 396 MovieClip [scoreboard] Frame 40
this.healthNumber_txt.text = Scorer.getHeartNumber();
Symbol 396 MovieClip [scoreboard] Frame 56
healthTicker_mc.currentValue = 0;
healthTicker_mc.increment = 100;
healthTicker_mc.targetValue = Scorer.getHeartBonus();
healthTicker_mc.gotoAndPlay(2);
stop();
Symbol 396 MovieClip [scoreboard] Frame 71
totalTicker_mc.increment = 1000;
totalTicker_mc.targetValue = Scorer.getTotalScore();
totalTicker_mc.gotoAndPlay(2);
stop();
Symbol 396 MovieClip [scoreboard] Frame 72
stop();
Symbol 415 MovieClip [end_hotel] Frame 1
function moveDown() {
_y = (_y + _root.scrollSpeed);
if ((!_root.endHotelIntroShown) && (_y >= 150)) {
checkIntro();
}
}
function checkIntro() {
if (!_root.endHotelIntroShown) {
_root.endHotelIntroShown = true;
_root.talker_mc.startTalk("endHotel", this._name);
_root.freezeAll();
} else {
if (_root.currentIntroShown == this._name) {
_root.unFreezeAll();
}
gotoAndPlay (2);
}
}
Instance of Symbol 414 MovieClip in Symbol 415 MovieClip [end_hotel] Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.anim_bee_mc) && (_root.endHotelIntroShown)) {
_root.terrain_controller_mc.endLevel();
}
}
Symbol 415 MovieClip [end_hotel] Frame 2
moveDown();
Symbol 415 MovieClip [end_hotel] Frame 3
gotoAndPlay (2);
Symbol 416 MovieClip [start_hotel] Frame 1
this.hotel_mc.stop();
Symbol 416 MovieClip [start_hotel] Frame 2
_y = (_y + (_root.scrollSpeed * 2));
if ((_y - this._height) >= Stage.height) {
this.removeMovieClip();
}
Symbol 416 MovieClip [start_hotel] Frame 4
gotoAndPlay (2);
Symbol 419 MovieClip [swarm_talker] Frame 1
function centerText() {
this.char_instr_txt._x = this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2);
this.char_instr_txt._y = (this.char_instr_mc._y + ((this.char_instr_mc._height - this.char_instr_txt._height) / 2)) + 5;
}
function centerTextInBubble() {
var _local3 = this.char_instr_mc.instr_panel_mc.main_bubble_mc;
if (_root.anim_bee_mc._x < (Stage.width / 2)) {
this.char_instr_txt._x = (this.char_instr_mc._x + ((this.char_instr_mc._width - this.char_instr_txt._width) / 2)) - 5;
} else {
this.char_instr_txt._x = (this.char_instr_mc._x - this.char_instr_txt._width) - 9;
}
if (_root.anim_bee_mc._y < (Stage.height / 2)) {
this.char_instr_txt._y = (this.char_instr_mc._y + _local3._y) - 17;
} else {
this.char_instr_txt._y = (this.char_instr_mc._y - _local3._y) - 19;
}
}
var charX;
var charY;
var instanceName;
var charCoords = {x:charX, y:charY + 100};
this.globalToLocal(charCoords);
var beeCoords = {x:_root.anim_bee_mc._x, y:_root.anim_bee_mc._y};
this.globalToLocal(beeCoords);
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 419 MovieClip [swarm_talker] Frame 2
this.char_instr_mc._x = charCoords.x;
this.char_instr_mc._y = charCoords.y;
this.char_instr_mc.adjustLook(charX, charY);
centerText();
Symbol 419 MovieClip [swarm_talker] Frame 10
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("second");
};
Symbol 419 MovieClip [swarm_talker] Frame 213
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 419 MovieClip [swarm_talker] Frame 214
this.char_instr_mc._x = beeCoords.x;
this.char_instr_mc._y = beeCoords.y;
this.char_instr_mc.adjustLook(_root.anim_bee_mc._x, _root.anim_bee_mc._y);
centerTextInBubble();
Symbol 419 MovieClip [swarm_talker] Frame 222
_root.mouse_pointer_mc.onMouseDown = function () {
gotoAndPlay ("end");
};
Symbol 419 MovieClip [swarm_talker] Frame 357
_root[instanceName].swarm_mc.checkIntro();
_root.currentIntroShown = "";
removeMovieClip("");
_root.mouse_pointer_mc.onMouseDown = null;
Symbol 429 Button
on (press) {
_root.removeHelp();
}
Symbol 438 MovieClip [help_panel] Frame 1
gotoAndStop(_root.terrain_controller_mc.currLevel);
Instance of Symbol 239 MovieClip [swarm1] in Symbol 438 MovieClip [help_panel] Frame 9
onClipEvent (load) {
stop();
}
Symbol 446 Button
on (press) {
uploadScore();
}
Symbol 450 Button
on (press) {
removeMovieClip("");
}
Symbol 451 MovieClip [uploader_menu] Frame 1
function uploadScore() {
_root.lvholder.removeMovieClip();
var _local2 = _root.createEmptyMovieClip("lvholder", 80450);
_local2.name = player_name_txt.text;
_local2.score = Scorer.getTotalScore();
_local2.game = "beejeez";
_local2.loadVariables("http://www.bubblebox.com/scripts/insertscore.php?rand=" + int(Math.random() * 100000), "POST");
_root.saveProgress.highScore = Scorer.getTotalScore();
_root.quitToMainMenu();
removeMovieClip("");
}
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 10
stop();
Symbol 476 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
this._alpha = 0;
this.tel = 0;
this.play_latest_text._visible = false;
this.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
} else {
this.tel++;
if (this.play_latest_text._visible == false) {
this.play_latest_text._visible = true;
this.play_latest_text.play();
}
}
if (this.tel > 85) {
this._alpha = this._alpha - 15;
if (this._alpha <= 0) {
this._parent.play();
delete this.onEnterFrame;
}
}
};
stop();
this.onRollOver = function () {
this.logo_ro.gotoAndStop(2);
};
this.onRollOut = function () {
this.logo_ro.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.logo_ro.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.bubblebox.com/", "_blank");
};
Symbol 494 Button
on (rollOver) {
gotoAndPlay (1);
}
on (rollOut) {
gotoAndPlay (11);
}
on (press) {
_root.playStory();
}
Symbol 495 MovieClip Frame 1
stop();
Symbol 495 MovieClip Frame 10
stop();
Symbol 501 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (press) {
_root.playCredits();
}
Symbol 502 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 10
stop();
Symbol 515 Button
on (rollOver) {
gotoAndPlay (1);
}
on (rollOut) {
gotoAndPlay (11);
}
on (press) {
getURL ("http://www.bubblebox.com/highscores/775.htm", "_blank");
}
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 10
stop();
Symbol 521 Button
on (rollOver) {
gotoAndPlay (2);
}
on (rollOut) {
gotoAndPlay (11);
}
on (press) {
var enteredNo = Number(_parent.startLevel_txt.text);
if ((enteredNo > 0) && (enteredNo <= ((_root.saveProgress.levelsCompleted != null) ? (_root.saveProgress.levelsCompleted) : (_root.totalLevels)))) {
_root.startLevelNo = enteredNo;
_root.startGame();
}
}
Symbol 525 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 10
stop();
Symbol 529 MovieClip Frame 2
if (_root.saveProgress.levelsCompleted != null) {
this.maxResume_level_txt.text = _root.saveProgress.levelsCompleted;
} else {
this.maxResume_level_txt.text = _root.totalLevels;
}
stop();
Symbol 535 MovieClip Frame 1
if (_root.muteMusic) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
Symbol 535 MovieClip Frame 2
stop();
Symbol 535 MovieClip Frame 3
stop();
Symbol 536 MovieClip Frame 1
this.muter_mc.onPress = function () {
_root.toggleMuteMusic();
if (!_root.muteMusic) {
_root.playBackground();
} else {
_root.stopBackground();
}
this.gotoAndPlay(1);
};
stop();
Symbol 547 Button
on (press) {
_parent.stop();
_root.startLevelNo = 1;
_root.startGame();
}
Symbol 549 Button
on (press) {
gotoAndPlay ("screen2");
}
Symbol 569 Button
on (press) {
gotoAndPlay ("screen3");
}
Symbol 603 MovieClip Frame 1
function abortIntro() {
_root.char_talker_mc.removeMovieClip();
_root.mouse_pointer_mc.onMouseDown = null;
}
function startTalk(characterName, instanceName) {
_root.attachMovie(characterName + "_talker", "char_talker_mc", 65000);
_root.char_talker_mc.charX = eval ("_root." + instanceName)._x;
_root.char_talker_mc.charY = eval ("_root." + instanceName)._y;
_root.currentIntroShown = (_root.char_talker_mc.instanceName = instanceName);
_root.char_talker_mc.play();
}
stop();
Symbol 605 MovieClip Frame 1
function getLevelArray(levelNumber) {
levelGen.setLevel(levelNumber);
levelGen.setPPF(_root.ppf);
return(levelGen.getGameArray());
}
var levelGen = new LevelGen();
stop();
Symbol 607 MovieClip Frame 1
function populateDepthArray() {
return(new Array(1000, 2000, 2500, 4000, 5000, 60000, 7000, 8000, 9000, 3000, 3200, 3400, 3600));
}
function updateTerrainArray(depth) {
terrainArr.unshift(depth);
if (terrainArr.length > terrainArrLength) {
terrainArr.length = terrainArrLength;
}
}
function clearTerrainArray() {
var _local2 = 0;
while (_local2 <= terrainArr.length) {
var _local3 = _root.getInstanceAtDepth(terrainArr[_local2]);
_local3.removeMovieClip();
_local2++;
}
terrainArr = new Array();
}
function clearAll() {
_root.anim_bee_mc.killBee();
_root.setClearStage(true);
_root.clearEnemies();
_root.resetSlowMotionDuration();
clearTerrainArray();
_root.removeDisplayPanel();
_root.removeKeyListener();
}
function getTerrainProgress() {
return(Math.ceil(((currRow + 1) / (terrainArray.length + 1)) * 100));
}
function createBee() {
_root.attachMovie("Bee", "anim_bee_mc", 50000);
}
function hideBee() {
_root.anim_bee_mc._visible = false;
_root.anim_bee_mc._x = -(Stage.width / 2);
_root.anim_bee_mc._y = -Stage.height;
_root.anim_bee_mc.stopBeeMove();
}
function showBee() {
_root.anim_bee_mc._visible = true;
_root.anim_bee_mc._x = Stage.width / 2;
_root.anim_bee_mc._y = Stage.height + 200;
_root.anim_bee_mc.prepareBeeForLevelStart();
_root.anim_bee_mc.startBeeMove();
}
function getDepthForItem(itemId) {
return(depthArr[itemId]++);
}
function spawnItem(terrainItem, terrainParamString) {
var _local5 = "";
var _local2 = 0;
var _local4 = 0;
var _local6 = false;
var _local3 = false;
switch (terrainItem) {
case "start_hotel" :
case "end_hotel" :
_local2 = getDepthForItem(1);
_local3 = true;
break;
case "drone_bee" :
_local2 = getDepthForItem(3);
_local6 = true;
_local4 = 1;
break;
case "kamikaze_bee" :
_local2 = getDepthForItem(4);
_local6 = true;
_local4 = 2;
break;
case "mite" :
_local2 = getDepthForItem(5);
_local6 = true;
_local4 = 3;
break;
case "swarm" :
_local2 = getDepthForItem(6);
_local6 = true;
_local4 = 4;
break;
case "hornet" :
_local2 = getDepthForItem(7);
_local6 = true;
_local4 = 5;
break;
case "spider" :
_local2 = getDepthForItem(8);
_local6 = true;
_local4 = 6;
break;
case "web" :
_local2 = getDepthForItem(2);
_local3 = true;
break;
case "armor_icon" :
if (_root.anim_bee_mc.currentArmorStrength == _root.baseArmorStrength[_root.anim_bee_mc.beeArmor]) {
return(null);
}
_local2 = getDepthForItem(9);
_local3 = true;
break;
case "health_icon" :
if (_root.anim_bee_mc.beeHealth == _root.baseBeeHealth) {
return(null);
}
_local2 = getDepthForItem(10);
_local3 = true;
break;
case "pollen_gun_icon" :
if (_root.anim_bee_mc.pollenBulletsRemaining > 80) {
return(null);
}
_local2 = getDepthForItem(11);
_local3 = true;
break;
case "slowmotion_icon" :
if (!_root.slowMotionAcquired) {
_local2 = getDepthForItem(12);
_local3 = true;
} else {
return(null);
}
default :
_local2 = getDepthForItem(0);
_local3 = true;
}
_local5 = (terrainItem + "_mc") + _local2;
_root.attachMovie(terrainItem, _local5, _local2);
if (_local6) {
_root.addEnemy(_local5);
_root[_local5].paramString = terrainParamString;
if (_root.measureRowCF) {
_root.rowCF = _root.rowCF + _local4;
}
}
if (_local3) {
updateTerrainArray(_local2);
_root[_local5].cacheAsBitmap = true;
_root.addParameters(_root[_local5], terrainParamString);
}
return(_root[_local5]);
}
function renderTerrain() {
currRow++;
var _local6 = terrainArray[currRow];
var _local4 = _local6.split("|");
_root.rowCF = 0;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split(":");
var _local5 = spawnItem(_local3[0], _local3[1]);
_local2++;
}
if ((_root.measureRowCF && (_root.rowCF >= 6)) && (!_root.slomoPromoShown)) {
_root.measureRowCF = false;
_root.slomoPromoShown = true;
_root.talker_mc.startTalk("slomopromo", "anim_bee_mc");
}
_root.marker_mc._y = 0;
}
function startLevel() {
currRow = -1;
depthArr = populateDepthArray();
_root.setClearStage(false);
_root.unFreezeAll();
clearTerrainArray();
_root.cityName = _root.cityNamesArr[Math.floor((currLevel - 1) / 4)];
_root.levelName = _root.levelNamesArr[(currLevel - 1) % 4];
_root.startTerrainScrolling();
_root.marker_mc._y = _root.terrainRenderFrequency + 10;
_root.marker_mc.play();
showBee();
_root.showDisplayPanel();
gotoAndPlay ("wait");
}
function restartLevel() {
terrainArray = _root.level_controller_mc.getLevelArray(currLevel);
levelRestartNumber++;
createBee();
startLevel();
}
function restartGame() {
Scorer.resetScores();
currLevel = 1;
createBee();
startLevel();
}
function startNextLevel() {
startLevel();
}
function endLevel() {
this.stop();
_root.hideDisplayPanel();
_root.marker_mc.stop();
_root.stopTerrainScrolling();
_root.resetSlowMotionDuration();
_root.setClearStage(true);
if (_root.anim_bee_mc.beeHealth <= 0) {
_root.reducePPFonRestart();
gotoAndStop ("restart");
} else {
_root.saveProgress.levelsCompleted = currLevel;
hideBee();
_root.updateScorer(currLevel);
currLevel++;
levelRestartNumber = 0;
if (currLevel <= _root.totalLevels) {
_root.calculatePPF();
gotoAndStop ("start");
} else {
gotoAndPlay ("game over");
}
}
}
Scorer.resetScores();
var depthArr;
var currLevel = _root.startLevelNo;
var levelRestartNumber = 0;
var terrainArrLength = 10;
var terrainArr = new Array();
var currRow = -1;
createBee();
hideBee();
_root.createDisplayPanel();
Symbol 607 MovieClip Frame 2
_root.stopTerrainScrolling();
if (currLevel == 1) {
_root.attachMovie("cities_map", "cities_map_mc", 80200);
_root.cities_map_mc._x = Stage.width / 2;
_root.cities_map_mc._y = Stage.height / 2;
} else {
_root.attachMovie("level_start_panel", "level_start_mc", 80100);
_root.level_start_mc._x = Stage.width / 2;
_root.level_start_mc._y = Stage.height / 2;
}
_root.prevBaseBeeHealth = _root.baseBeeHealth;
_root.baseBeeHealth = _root.startBeeHealth + (10 * Math.floor((currLevel - 1) / 2));
if ((currLevel == _root.startLevelNo) || (_root.anim_bee_mc.beeHealth == (_root.baseBeeHealth - 10))) {
_root.anim_bee_mc.beeHealth = _root.baseBeeHealth;
}
currRow = -1;
depthArr = populateDepthArray();
terrainArray = _root.level_controller_mc.getLevelArray(currLevel);
if (currLevel == _root.startLevelNo) {
clearTerrainArray();
renderTerrain();
_root.cityName = _root.cityNamesArr[Math.floor((currLevel - 1) / 4)];
_root.levelName = _root.levelNamesArr[(currLevel - 1) % 4];
if (currLevel > 1) {
_root.playGameBackground(currLevel - 1);
}
}
stop();
Symbol 607 MovieClip Frame 3
if (_root.marker_mc._y > _root.terrainRenderFrequency) {
_root.ticks++;
gotoAndPlay ("draw_next");
}
Symbol 607 MovieClip Frame 4
gotoAndPlay ("wait");
Symbol 607 MovieClip Frame 8
renderTerrain();
gotoAndPlay ("wait");
Symbol 607 MovieClip Frame 9
this.terrain_controller_mc.stop();
_root.anim_bee_mc.stop();
clearInterval(_root.anim_bee_mc.processNum);
_root.anim_bee_mc.bee_mc.gotoAndPlay("bee dead");
_root.attachMovie("level_restart_panel", "level_restart_mc", 80200);
_root.level_restart_mc._x = Stage.width / 2;
_root.level_restart_mc._y = (Stage.height / 2) + 20;
terrainArray = _root.level_controller_mc.getLevelArray(currLevel);
_root.disp_panel_mc.health_bar_mc.health_progress_mc.gotoAndStop(1);
stop();
Symbol 607 MovieClip Frame 10
clearAll();
_root.playEndStory();
stop();
Symbol 614 MovieClip Frame 1
stop();
Symbol 614 MovieClip Frame 2
_y = (_y + (_root.scrollSpeed * 2));
if (_y > Stage.height) {
removeMovieClip("");
}
Symbol 614 MovieClip Frame 4
gotoAndPlay (2);
Symbol 628 Button
on (press) {
_root.uploader_menu_mc.removeMovieClip();
_root.startLevelNo = 1;
_root.startGame();
}
Symbol 630 Button
on (press) {
_root.uploader_menu_mc.removeMovieClip();
_root.playCredits();
}
Symbol 631 Button
on (release) {
_root.showUploadScorePanel();
}
Symbol 643 Button
on (press) {
_root.backFromCredits = true;
_root.showMenu();
}