Frame 1
function getSponsorMoreGamesLink() {
if (_root.localization_portal == "game_com_cn") {
return(_root.localization_url1);
}
return(_root.localization_url1 + "&utm_content=button_mainscreen_moregames");
}
function isLicensedDomain() {
for (var _local1 in licenseDomains) {
if ((currentDomain == licenseDomains[_local1]) || (currentDomain == ("www." + licenseDomains[_local1]))) {
return(true);
}
}
return(false);
}
function getLicenseUrl() {
return("http://www.robotjamgames.com");
}
stop();
sponsorFrameName = "spil";
gamename = "bladestriker";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
hostingdomain = real_domain[0];
var sites = ["agame_com", "a10_com", "spel_nl", "jeu_fr", "spielen_com", "clickjogos_com", "zapjuegos_com", "spel_se", "flashgames_ru", "game_co_in", "games_co_id", "egames_jp", "gioco_it", "gry_pl"];
var swfName = unescape(real_domain[real_domain.length - 1].split("?")[0].split(".swf")[0]);
var siteName = swfName.substring(gamename.length + 1, swfName.length);
var isSpil = false;
for (var i in sites) {
if (sites[i] == siteName) {
isSpil = true;
break;
}
}
if (!isSpil) {
siteName = "agame_com";
}
siteName = siteName.toLowerCase();
trace(siteName);
if (hostingdomain == "") {
hostingdomain = "unknown";
}
savedomain1 = "gamedev.dev.spilgames.com";
savedomain2 = "www8.agame.com";
if ((hostingdomain == savedomain1) || (hostingdomain == savedomain2)) {
spilnetwerk = "internal";
} else {
spilnetwerk = "external";
}
switch (siteName) {
case "agame_com" :
_root.localization_url1 = (((("http://www.agame.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
break;
case "a10_com" :
_root.localization_url1 = (((("http://www.a10.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 1;
_root.localization_branding_nr = 46;
_root.localization_portal = "teen";
break;
case "game_com_cn" :
_root.localization_url1 = "http://www.game.com.cn/moregames/";
_root.localization_language_nr = 2;
_root.localization_branding_nr = 2;
_root.localization_portal = "game_com_cn";
break;
case "spel_nl" :
_root.localization_url1 = (((("http://www.spel.nl/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 3;
_root.localization_branding_nr = 4;
_root.localization_portal = "tweens";
break;
case "jeu_fr" :
_root.localization_url1 = (((("http://www.jeu.fr/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 4;
_root.localization_branding_nr = 5;
_root.localization_portal = "tweens";
break;
case "spielen_com" :
_root.localization_url1 = (((("http://www.spielen.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 5;
_root.localization_branding_nr = 6;
_root.localization_portal = "tweens";
break;
case "spel_se" :
_root.localization_url1 = (((("http://www.spel.se/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 7;
_root.localization_branding_nr = 9;
_root.localization_portal = "tweens";
break;
case "zapjuegos_com" :
_root.localization_url1 = (((("http://www.zapjuegos.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 9;
_root.localization_branding_nr = 3;
_root.localization_portal = "tweens";
break;
case "clickjogos_com" :
_root.localization_url1 = (((("http://www.clickjogos.com/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 11;
_root.localization_branding_nr = 7;
_root.localization_portal = "tweens";
break;
case "games_co_id" :
_root.localization_url1 = (((("http://www.games.co.id/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 13;
_root.localization_branding_nr = 13;
_root.localization_portal = "tweens";
break;
case "flashgames_ru" :
_root.localization_url1 = (((("http://www.flashgames.ru/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 12;
_root.localization_branding_nr = 11;
_root.localization_portal = "tweens";
break;
case "mygames_co_uk" :
_root.localization_url1 = (((("http://www.mygames.co.uk/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 16;
_root.localization_branding_nr = 10;
_root.localization_portal = "tweens";
break;
case "game_co_in" :
_root.localization_url1 = (((("http://www.game.co.in/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 16;
_root.localization_branding_nr = 12;
_root.localization_portal = "tweens";
break;
case "ojogos_pt" :
_root.localization_url1 = (((("http://www.ojogos.pt/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 10;
_root.localization_branding_nr = 42;
_root.localization_portal = "family";
break;
case "egames_jp" :
_root.localization_url1 = (((("http://www.egames.jp/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 17;
_root.localization_branding_nr = 44;
_root.localization_portal = "tweens";
break;
case "gry_pl" :
_root.localization_url1 = (((("http://www.gry.pl/moregames/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 6;
_root.localization_branding_nr = 21;
_root.localization_portal = "family";
break;
case "gioco_it" :
_root.localization_url1 = (((("http://www.gioco.it/moregames/?utm_medium=brandedgames_" + spilnetwerk) + "&utm_campaign=") + gamename) + "&utm_source=") + hostingdomain;
_root.localization_language_nr = 8;
_root.localization_branding_nr = 23;
_root.localization_portal = "family";
}
var licenseDomains = ["robotjamgames.com"];
var licenseFrameName = "robotjam";
var currentDomain = _root._url.split("/");
currentDomain = currentDomain[2];
var enableScores = true;
var enableMylogo = false;
mochi.as2.MochiAd.showPreGameAd({id:"e21585efe79a48fc", res:"640x510"});
Frame 2
if (percentage < 100) {
}
Frame 3
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;
var pv;
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);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&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);
}
mochi.as2.MochiServices.connect("e21585efe79a48fc");
__com_mochibot__("aa6e4ea9", this, 10301, true);
bellStriker.GameController.__get__instance().preInitialise(this);
Frame 4
if (_root.isLicensedDomain()) {
_root.gotoAndStop(_root.licenseFrameName.toString());
}
Frame 125
stop();
Frame 133
stop();
Frame 145
stop();
Frame 155
function scoreEnd() {
btnCover._visible = false;
}
function scoreShow() {
btnCover._visible = true;
}
popup._visible = false;
stop();
_quality = "BEST";
if (bellStriker.StateManager.hasSavedGame()) {
btnClear.enabled = true;
txtClear._alpha = 100;
} else {
btnClear.enabled = false;
txtClear._alpha = 60;
}
if (_root.localization_url1 == null) {
moreText._visible = false;
logo_mainscreen._visible = false;
btnGuide._visible = false;
}
btnCover._visible = false;
btnCover.useHandCursor = false;
if (_root.isLicensedDomain() && (!_root.enableScores)) {
txtScores._visible = false;
btnScores._visible = false;
}
if (_root.isLicensedDomain() && (!_root.enableMylogo)) {
myLogo.enabled = false;
}
Instance of Symbol 9 MovieClip "myLogo" in Frame 155
on (press) {
getURL ("http://www.shockwood.com?game=BladeStriker", "_blank");
}
Instance of Symbol 1012 MovieClip "sound" in Frame 155
on (release) {
bellStriker.GameController.__get__instance().soundSwitch(this);
}
onClipEvent (load) {
if (bellStriker.GameController.__get__instance().soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 156
stop();
Frame 159
stop();
Instance of Symbol 1012 MovieClip "sound" in Frame 159
on (release) {
bellStriker.GameController.__get__instance().soundSwitch(this);
}
onClipEvent (load) {
if (bellStriker.GameController.__get__instance().soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 160
stop();
Frame 161
stop();
Frame 168
stop();
btnPlay.enabled = false;
btnPlay._alpha = 40;
images._visible = false;
score.text = "POINTS " + bellStriker.GameController.__get__instance().__get__score();
var i = 0;
while (i < bellStriker.GameController.__get__instance().data.levels.length) {
this["mission" + i]._alpha = 75;
this["mission" + i].data = bellStriker.GameController.__get__instance().data.levels[i];
this["mission" + i].label.text = "Mission " + (i + 1);
this["mission" + i]._xscale = (this["mission" + i]._yscale = 85);
this["mission" + i].hitZone._alpha = 0;
this["mission" + i].onRollOver = function () {
this._alpha = 100;
this._xscale = (this._yscale = 100);
};
this["mission" + i].onRollOut = function () {
if (!this.active) {
this._alpha = 75;
this._xscale = (this._yscale = 85);
}
};
this["mission" + i].onDragOut = this["mission" + i].onRollOut;
this["mission" + i].levelNum = i;
this["mission" + i].onPress = function () {
images._visible = true;
images.gotoAndStop(this.levelNum + 1);
images.completed._visible = false;
if (this.data.locked) {
images.completed._visible = true;
images.completed.text = "LOCKED";
}
if (this.data.completed) {
images.completed._visible = true;
images.completed.text = "COMPLETED";
}
btnPlay.enabled = !this.data.locked;
btnPlay._alpha = (this.data.locked ? 40 : 100);
missionNum.text = this.label.text;
title.text = this.data.name;
time.text = this.data.timeOfDay;
description.htmlText = this.data.description;
description.htmlText = description.htmlText + "<br>";
description.htmlText = description.htmlText + (("<font color='#ff0000'><b>Primary objective: </b></font>" + this.data.primary) + "<br>");
description.htmlText = description.htmlText + (("<font color='#ff0000'><b>Secondary objective: </b></font>" + this.data.secondary) + "<br><br>");
description.htmlText = description.htmlText + ("<b>Tip - </b>" + this.data.general);
this._alpha = 100;
this._xscale = (this._yscale = 100);
this.active = true;
bellStriker.GameController.__get__instance().selectedLevel = this.levelNum;
for (var _local2 in this._parent) {
if (this._parent[_local2] != this) {
this._parent[_local2].active = false;
this._parent[_local2].onRollOut();
}
}
};
this["mission" + i].onRelease = function () {
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
};
i++;
}
Frame 169
stop();
btnPlay.enabled = bellStriker.GameController.__get__instance().__get__selectedWeapons().length > 0;
btnPlay._alpha = ((bellStriker.GameController.__get__instance().__get__selectedWeapons().length > 0) ? 100 : 40);
bellStriker.GameController.__get__instance().saveGame();
score.text = "POINTS " + bellStriker.GameController.__get__instance().__get__score();
var i = 0;
while (i < bellStriker.GameController.__get__instance().data.weapons.length) {
this["weapon" + i].gotoAndStop(i + 1);
this["weapon" + i]._alpha = 40;
this["weapon" + i].active._visible = false;
this["weapon" + i].hitZone._alpha = 0;
this["weapon" + i].index = i;
this["weapon" + i].data = bellStriker.GameController.__get__instance().data.weapons[i];
if (bellStriker.GameController.__get__instance().data.weapons[i].active) {
this["weapon" + i].notAvailable._visible = false;
this["weapon" + i].isActive = bellStriker.GameController.__get__instance().data.weapons[i].selected;
this["weapon" + i].active._visible = bellStriker.GameController.__get__instance().data.weapons[i].selected;
if (bellStriker.GameController.__get__instance().data.weapons[i].selected) {
this["weapon" + i]._alpha = 100;
}
this["weapon" + i].hitZone.onRollOver = function () {
this._parent._alpha = 100;
};
this["weapon" + i].hitZone.onRollOut = function () {
if (!this._parent.isActive) {
this._parent._alpha = 40;
}
};
this["weapon" + i].hitZone.onDragOut = this["weapon" + i].hitZone.onRollOut;
this["weapon" + i].hitZone.onPress = function () {
this._parent._alpha = 100;
bellStriker.GameController.__get__instance().selectWeapon(this._parent.index);
this._parent.isActive = this._parent.data.selected;
this._parent.active._visible = this._parent.data.selected;
btnPlay.enabled = bellStriker.GameController.__get__instance().__get__selectedWeapons().length > 0;
btnPlay._alpha = ((bellStriker.GameController.__get__instance().__get__selectedWeapons().length > 0) ? 100 : 40);
};
this["weapon" + i].hitZone.onRelease = function () {
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
};
} else {
this["weapon" + i].notAvailable._visible = true;
}
this["weapon" + i].ammo.text = "AMMO " + bellStriker.GameController.__get__instance().data.weapons[i].ammo;
this["weapon" + i].title.text = bellStriker.GameController.__get__instance().data.weapons[i].name;
this["weapon" + i].description.text = bellStriker.GameController.__get__instance().data.weapons[i].description;
i++;
}
Instance of Symbol 1012 MovieClip "sound" in Frame 169
on (release) {
bellStriker.GameController.__get__instance().soundSwitch(this);
}
onClipEvent (load) {
if (bellStriker.GameController.__get__instance().soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 170
function setWeapons() {
score.text = "POINTS " + bellStriker.GameController.__get__instance().__get__score();
cash.text = "$" + bellStriker.GameController.__get__instance().__get__cash();
var _local2 = 0;
while (_local2 < bellStriker.GameController.__get__instance().data.weapons.length) {
this["weapon" + _local2].title.text = bellStriker.GameController.__get__instance().data.weapons[_local2].name;
this["weapon" + _local2].active._visible = bellStriker.GameController.__get__instance().data.weapons[_local2].active;
this["weapon" + _local2].buy._visible = !bellStriker.GameController.__get__instance().data.weapons[_local2].active;
this["weapon" + _local2].price.text = "$" + bellStriker.GameController.__get__instance().data.weapons[_local2].price;
this["weapon" + _local2].ammoPrice.text = "$" + bellStriker.GameController.__get__instance().data.weapons[_local2].ammoPrice;
this["weapon" + _local2].data = bellStriker.GameController.__get__instance().data.weapons[_local2];
this["weapon" + _local2].index = _local2;
this["weapon" + _local2].gotoAndStop(_local2 + 1);
this["weapon" + _local2].ammo.text = "AMMO " + bellStriker.GameController.__get__instance().data.weapons[_local2].ammo;
if (bellStriker.GameController.__get__instance().__get__cash() >= bellStriker.GameController.__get__instance().data.weapons[_local2].price) {
this["weapon" + _local2].buy._alpha = 100;
this["weapon" + _local2].buy.enabled = true;
} else {
this["weapon" + _local2].buy._alpha = 50;
this["weapon" + _local2].buy.enabled = false;
}
if (bellStriker.GameController.__get__instance().__get__cash() >= bellStriker.GameController.__get__instance().data.weapons[_local2].ammoPrice) {
this["weapon" + _local2].buyAmmo._alpha = 100;
this["weapon" + _local2].buyAmmo.enabled = true;
} else {
this["weapon" + _local2].buyAmmo._alpha = 50;
this["weapon" + _local2].buyAmmo.enabled = false;
}
this["weapon" + _local2].buy.onRelease = function () {
bellStriker.GameController.__get__instance().buyWeapon(this._parent.index);
setWeapons();
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
};
this["weapon" + _local2].buyAmmo.onRelease = function () {
bellStriker.GameController.__get__instance().buyAmmo(this._parent.index);
setWeapons();
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
};
_local2++;
}
_local2 = 0;
while (_local2 < bellStriker.GameController.__get__instance().data.skills.length) {
this["skill" + _local2].title.text = bellStriker.GameController.__get__instance().data.skills[_local2].name;
this["skill" + _local2].price.text = "$" + bellStriker.GameController.__get__instance().data.skills[_local2].price;
this["skill" + _local2].skill.gotoAndStop(bellStriker.GameController.__get__instance().data.skills[_local2].level + 1);
this["skill" + _local2].buy._visible = bellStriker.GameController.__get__instance().data.skills[_local2].level < 5;
this["skill" + _local2].data = bellStriker.GameController.__get__instance().data.skills[_local2];
this["skill" + _local2].index = _local2;
this["skill" + _local2].gotoAndStop(_local2 + 1);
if (bellStriker.GameController.__get__instance().__get__cash() >= bellStriker.GameController.__get__instance().data.skills[_local2].price) {
this["skill" + _local2].buy._alpha = 100;
this["skill" + _local2].buy.enabled = true;
} else {
this["skill" + _local2].buy._alpha = 50;
this["skill" + _local2].buy.enabled = false;
}
this["skill" + _local2].buy.onRelease = function () {
bellStriker.GameController.__get__instance().buySkill(this._parent.index);
setWeapons();
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
};
_local2++;
}
bellStriker.GameController.__get__instance().saveGame();
}
setWeapons();
Instance of Symbol 1012 MovieClip "sound" in Frame 170
on (release) {
bellStriker.GameController.__get__instance().soundSwitch(this);
}
onClipEvent (load) {
if (bellStriker.GameController.__get__instance().soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 171
pts.text = "";
images._visible = false;
title.text = "";
description.text = "";
txtPercentage.text = "";
score.text = "POINTS " + bellStriker.GameController.__get__instance().__get__score();
var i = 0;
while (i < bellStriker.GameController.__get__instance().data.achievements.length) {
this["achievement" + i].gotoAndStop(Math.round((bellStriker.GameController.__get__instance().data.achievements[i].current / bellStriker.GameController.__get__instance().data.achievements[i].total) * 100));
this["achievement" + i].data = bellStriker.GameController.__get__instance().data.achievements[i];
this["achievement" + i].index = i;
this["achievement" + i].label.text = i + 1;
this["achievement" + i].onRollOver = function () {
this._parent.pts.text = ("Earn " + this.data.score) + " pts";
this._parent.title.text = "Achievement " + (this.index + 1);
this._parent.description.text = this.data.name;
this._parent.txtPercentage.text = Math.round((this.data.current / this.data.total) * 100) + "% Complete";
this._parent.images._visible = true;
this._parent.images.gotoAndStop(this.index + 1);
this._parent.images.completed._visible = this.data.current == this.data.total;
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
};
i++;
}
Instance of Symbol 1012 MovieClip "sound" in Frame 171
on (release) {
bellStriker.GameController.__get__instance().soundSwitch(this);
}
onClipEvent (load) {
if (bellStriker.GameController.__get__instance().soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 172
function scoreEnd() {
btnCover._visible = false;
}
function scoreShow() {
btnCover._visible = true;
}
txtAccumScore.text = bellStriker.GameController.__get__instance().score;
txtBestScore.text = bellStriker.GameController.__get__instance().getLevelScoreTotal();
txtCash.text = "$" + bellStriker.GameController.__get__instance().__get__cash();
txtDies.text = bellStriker.GameController.__get__instance().data.deaths;
txtEnemy.text = bellStriker.GameController.__get__instance().data.enemyTargets;
txtCivilian.text = bellStriker.GameController.__get__instance().data.civilianTargets;
txtMissiles.text = bellStriker.GameController.__get__instance().data.missiles;
txtBullets.text = bellStriker.GameController.__get__instance().data.bullets;
txtItems.text = bellStriker.GameController.__get__instance().data.items;
txtMedikits.text = bellStriker.GameController.__get__instance().data.health;
txtHits.text = bellStriker.GameController.__get__instance().data.hitsTaken;
var i = 0;
while (i < bellStriker.GameController.__get__instance().data.levels.length) {
this["mission" + i].num.text = i + 1;
this["mission" + i].mission.text = bellStriker.GameController.__get__instance().data.levels[i].name;
this["mission" + i].complete.text = (bellStriker.GameController.__get__instance().data.levels[i].completed ? "YES" : "NO");
this["mission" + i].score.text = bellStriker.GameController.__get__instance().data.levels[i].s;
this["mission" + i].attempts.text = bellStriker.GameController.__get__instance().data.levels[i].a;
i++;
}
totalScore.text = bellStriker.GameController.__get__instance().getLevelScoreTotal();
totalAttempts.text = bellStriker.GameController.__get__instance().getLevelAttemptsTotal();
if (bellStriker.GameController.__get__instance().getLevelScoreTotal() > 0) {
btnSubmit.enabled = true;
btnSubmit._alpha = 100;
} else {
btnSubmit.enabled = false;
btnSubmit._alpha = 50;
}
btnCover._visible = false;
btnCover.useHandCursor = false;
if (_root.isLicensedDomain()) {
btnSubmit._visible = false;
submitTitle._visible = false;
}
Instance of Symbol 1012 MovieClip "sound" in Frame 172
on (release) {
bellStriker.GameController.__get__instance().soundSwitch(this);
}
onClipEvent (load) {
if (bellStriker.GameController.__get__instance().soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 173
_quality = "MEDIUM";
stop();
bellStriker.GameController.__get__instance().initialise(this);
initialising.useHandCursor = false;
Instance of Symbol 1309 MovieClip "initialising" in Frame 173
on (press) {
}
Frame 174
stop();
Mouse.show();
score.text = "POINTS " + bellStriker.GameController.__get__instance().__get__score();
txtTitle.text = (("Mission " + (bellStriker.GameController.__get__instance().selectedLevel + 1)) + " - ") + bellStriker.GameController.__get__instance().data.levels[bellStriker.GameController.__get__instance().selectedLevel].name;
txtPrimary.text = (bellStriker.GameController.__get__instance().levelPrimaryComplete ? "YES" : "NO");
txtSecondary.text = (bellStriker.GameController.__get__instance().levelSecondaryComplete ? "YES" : "NO");
txtEnemyTargets.text = bellStriker.GameController.__get__instance().levelEnemyTargets;
txtCivilian.text = bellStriker.GameController.__get__instance().levelCivilianTargets;
txtAchievements.text = bellStriker.GameController.__get__instance().levelAchievements;
txtWeapons.text = bellStriker.GameController.__get__instance().levelWeapons;
txtAmmo.text = bellStriker.GameController.__get__instance().levelAmmo;
txtScore.text = bellStriker.GameController.__get__instance().levelScore;
txtCash.text = "$" + bellStriker.GameController.__get__instance().__get__levelCash();
unlock._visible = bellStriker.GameController.__get__instance().data.levels[bellStriker.GameController.__get__instance().selectedLevel].completed;
if (bellStriker.GameController.__get__instance().selectedLevel == (bellStriker.GameController.__get__instance().data.levels.length - 1)) {
unlock.text = "ALL MISSIONS ACCOMPLISHED";
unlock._visible = true;
}
if (bellStriker.GameController.__get__instance().levelHueyHealth <= 0) {
unlock.text = "YOU DIED";
unlock._visible = true;
}
if (_root.localization_url1 == null) {
moreText._visible = false;
logo_mainscreen._visible = false;
btnGuide._visible = false;
}
Instance of Symbol 1012 MovieClip "sound" in Frame 174
on (release) {
bellStriker.GameController.__get__instance().soundSwitch(this);
}
onClipEvent (load) {
if (bellStriker.GameController.__get__instance().soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 28 MovieClip Frame 1
gotoAndStop(_root.localization_language_nr);
Symbol 131 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 147 MovieClip Frame 1
if (_root.isLicensedDomain()) {
gotoAndStop(_root.licenseFrameName);
} else {
gotoAndStop(_root.sponsorFrameName);
}
Symbol 147 MovieClip Frame 5
stop();
Symbol 147 MovieClip Frame 10
stop();
Symbol 147 MovieClip Frame 16
stop();
Symbol 1329 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_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 _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
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;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_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 showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(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();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
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_failed();
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;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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) {
options.ad_failed();
_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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
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 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;
if (_local7._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
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;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
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);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1330 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1331 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.3 as2");
}
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 get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 1332 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 1333 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1334 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1335 MovieClip [__Packages.bellStriker.GameController] Frame 0
class bellStriker.GameController
{
static var _instance;
var soundEffects, data, _huey, _pause, _setting, _currentLevel, preScope, backgroundMusic, levelPrimaryComplete, levelSecondaryComplete, lastI, scope, firelayer, canvasHolder, bullets, waters, largeAmmo, objects, target, canvas, rect, stepInt, currentTarget;
function GameController () {
soundEffects = new Array();
var _local2;
if (bellStriker.StateManager.hasSavedGame()) {
_local2 = bellStriker.StateManager.loadGame();
} else {
_local2 = bellStriker.StateManager.saveGame(new bellStriker.Data());
}
data = new bellStriker.Data(_local2);
}
static function get instance() {
if (_instance == null) {
_instance = new bellStriker.GameController();
}
return(_instance);
}
function get levelCash() {
return(Math.ceil(levelScore / 10));
}
function get huey() {
return(_huey);
}
function get pause() {
return(_pause);
}
function set setting(value) {
_setting = value;
//return(setting);
}
function get setting() {
return(_setting);
}
function set currentLevel(value) {
_currentLevel = value;
_currentLevel.__set__data(data.levels[selectedLevel]);
//return(currentLevel);
}
function get currentLevel() {
return(_currentLevel);
}
function preInitialise(scope) {
preScope = scope;
backgroundMusic = new Sound(preScope);
backgroundMusic.attachSound("intro.mp3");
if (soundOn) {
backgroundMusic.setVolume(75);
} else {
backgroundMusic.setVolume(0);
}
backgroundMusic.start(0, 1000000);
}
function saveGame() {
bellStriker.StateManager.saveGame(data);
}
function newGame() {
bellStriker.StateManager.newGame();
var _local2 = preScope;
_instance = null;
instance.preInitialise(_local2);
}
function get shieldStrengthRatio() {
return((Math.max(1, 5 - data.skills[3].level) / 5) * 0.5);
}
function get weaponStrengthRatio() {
var _local2 = 1;
var _local3 = 1.6;
var _local4 = (_local3 - _local2) * (Math.max(1, data.skills[4].level) / 5);
return(_local2 + _local4);
}
function get speedRatio() {
var _local2 = 1.25;
var _local3 = 1.75;
var _local4 = (_local3 - _local2) * (Math.max(1, data.skills[1].level) / 5);
return(_local2 + _local4);
}
function get stabilityRatio() {
var _local2 = 0.5;
var _local3 = 1.5;
var _local4 = (_local3 - _local2) * (Math.max(1, data.skills[2].level) / 5);
return(_local2 + _local4);
}
function get weaponAccuracyRatio() {
return((5 - data.skills[0].level) / 5);
}
function get currentWeapon() {
return(selectedWeapons[currentWeaponIndex]);
}
function initialise(scope) {
_levelEnded = false;
_initialised = false;
levelPrimaryComplete = false;
levelSecondaryComplete = false;
levelScore = 0;
levelEnemyTargets = 0;
levelCivilianTargets = 0;
levelAchievements = 0;
levelWeapons = 0;
levelAmmo = 0;
levelHueyHealth = 0;
lastI = 0;
this.scope = scope;
scope.onEnterFrame = function () {
bellStriker.GameController.__get__instance().step();
};
_huey = bellStriker.Huey(scope.attachMovie("huey", "_huey", scope.getNextHighestDepth()));
firelayer = scope.createEmptyMovieClip("firelayer", 9);
canvasHolder._x = 0;
canvasHolder._y = 0;
scope.ui.swapDepths(scope.getNextHighestDepth());
scope.ui.message._alpha = 0;
scope.mc_mute1.swapDepths(scope.getNextHighestDepth());
scope.mc_mute2.swapDepths(scope.getNextHighestDepth());
bullets = [];
waters = [];
largeAmmo = [];
initialiseWeapons();
objects = [];
Mouse.hide();
target = scope.attachMovie("target", "target", scope.getNextHighestDepth());
target.startDrag(true);
target.hitZone._visible = false;
Mouse.addListener(this);
setTargetJitter();
scope.ui.help._visible = false;
if (!data.startUnPaused) {
togglePause();
}
saveGame();
scope.initialising.swapDepths(scope.getNextHighestDepth());
}
function setTargetJitter() {
var _local2 = 15 * weaponAccuracyRatio;
gs.TweenLite.to(target, 0.35, {_x:(scope._xmouse + ((-_local2) / 2)) + (_local2 * Math.random()), _y:(scope._ymouse + ((-_local2) / 2)) + (_local2 * Math.random()), overwrite:1, onCompleteScope:this, onComplete:setTargetJitter});
}
function onMouseMove() {
setTargetJitter();
}
function step() {
if (!_initialised) {
initialiseStep();
}
if ((!_pause) && (_initialised)) {
if (_huey.fuel && (!isNaN(_huey.fuel))) {
fuel = _huey.fuel;
}
if (((stepCount == 0) || (stepCount == 2)) || (stepCount == 4)) {
setting.step();
}
if (((stepCount == 1) || (stepCount == 3)) || (stepCount == 5)) {
stepAmmo();
}
if (stepCount == 3) {
showHide();
}
if ((stepCount >= 5) && (!_levelEnded)) {
stepCount = 0;
objectsStep();
} else {
stepCount++;
}
huey.step();
placeHueyRadar();
shootTarget();
renderUI();
if ((lives == 0) || (fuel <= 0)) {
gameOver = true;
}
if ((scope._ymouse < 40) || (scope._ymouse > 437)) {
Mouse.show();
target._visible = false;
} else {
Mouse.hide();
target._visible = true;
}
}
}
function onMouseWheel(delta) {
if (delta > 0) {
currentWeaponIndex++;
if (currentWeaponIndex > (selectedWeapons.length - 1)) {
currentWeaponIndex = 0;
}
playSoundEffect("click3.mp3");
} else {
currentWeaponIndex--;
if (currentWeaponIndex < 0) {
currentWeaponIndex = selectedWeapons.length - 1;
}
playSoundEffect("click3.mp3");
}
}
function drawFireLayer() {
var _local2 = new flash.geom.Matrix();
canvas.draw(firelayer, _local2, null, null, rect);
}
function initialiseWeapons() {
var _local2 = 0;
while (_local2 < data.weapons.length) {
huey["weapon" + (_local2 + 1)]._visible = false;
_local2++;
}
_local2 = 0;
while (_local2 < selectedWeapons.length) {
huey["weapon" + (selectedWeapons[_local2].weaponIndex + 1)]._visible = true;
_local2++;
}
}
function get selectedWeapons() {
var _local3 = [];
var _local2 = 0;
while (_local2 < data.weapons.length) {
if (data.weapons[_local2].selected) {
_local3.push(data.weapons[_local2]);
}
_local2++;
}
return(_local3);
}
function get activeWeapons() {
var _local3 = [];
var _local2 = 0;
while (_local2 < data.weapons.length) {
if (data.weapons[_local2].active) {
_local3.push(data.weapons[_local2]);
}
_local2++;
}
return(_local3);
}
function timer() {
}
function showHide() {
var _local4 = new flash.geom.Point(huey._x, huey._y);
huey._parent.localToGlobal(_local4);
var _local2 = 0;
while (_local2 < objects.length) {
var _local3 = new flash.geom.Point(objects[_local2]._x, objects[_local2]._y);
objects[_local2]._parent.localToGlobal(_local3);
objects[_local2]._visible = Math.abs(_local3.x - _local4.x) <= 1600;
objects[_local2].targetType._visible = (Math.abs(_local3.x - _local4.x) <= 800) && (!objects[_local2].locked);
_local2++;
}
}
function renderUI() {
scope.ui.fuel.gotoAndStop(Math.abs(Math.round(huey.fuel) - 100));
scope.ui.score.text = "POINTS " + score;
scope.ui.lives.text = lives;
scope.ui.objectives.mission.text = "MISSION " + (selectedLevel + 1);
scope.ui.objectives.primary.text = data.levels[selectedLevel].primary;
scope.ui.objectives.secondary.text = data.levels[selectedLevel].secondary;
if (levelPrimaryComplete) {
scope.ui.objectives.primaryLight.gotoAndStop(2);
} else {
scope.ui.objectives.primaryLight.gotoAndStop(1);
}
if (levelSecondaryComplete) {
scope.ui.objectives.secondaryLight.gotoAndStop(2);
} else {
scope.ui.objectives.secondaryLight.gotoAndStop(1);
}
var _local2 = 0;
while (_local2 < 3) {
if (selectedWeapons[_local2]) {
scope.ui["weapon" + (_local2 + 1)].gotoAndStop(selectedWeapons[_local2].weaponIndex + 1);
if (selectedWeapons[_local2].ammo > 0) {
scope.ui["weapon" + (_local2 + 1)].ammo.text = "x" + selectedWeapons[_local2].ammo;
} else {
scope.ui["weapon" + (_local2 + 1)].ammo.text = "NO AMMO";
}
scope.ui["weapon" + (_local2 + 1)].label.text = _local2 + 1;
scope.ui["weapon" + (_local2 + 1)]._alpha = 60;
if (currentWeaponIndex == _local2) {
scope.ui["weapon" + (_local2 + 1)]._alpha = 100;
}
scope.ui["weapon" + (_local2 + 1)]._visible = true;
} else {
scope.ui["weapon" + (_local2 + 1)]._visible = false;
}
_local2++;
}
}
function soundSwitch(button) {
soundOn = !soundOn;
huey.soundSwitch();
if (!soundOn) {
backgroundMusic.setVolume(0);
button.gotoAndStop(2);
} else {
backgroundMusic.setVolume(75);
button.gotoAndStop(1);
}
}
function doGameOver() {
_huey.removeMovieClip();
stopAllSounds();
scope.ui.removeMovieClip();
canvasHolder.removeMovieClip();
scope.mc_mute1.removeMovieClip();
scope.mc_mute2.removeMovieClip();
clearInterval(stepInt);
if (fuel <= 0) {
if (_huey.rapidFuel) {
endType = 3;
} else {
endType = 1;
}
} else if (lives == 0) {
endType = 2;
}
preScope.gotoAndPlay("gameover");
huey.end();
}
function gameEnd() {
gameOver = false;
endLife = false;
doGameOver();
score = (0);
lives = 3;
gameTime = 90000 /* 0x015F90 */;
preScope.gotoAndPlay("gameover");
}
function restart() {
_instance = null;
preScope.gotoAndPlay("intro");
}
function stepAmmo() {
var _local2 = 0;
while (_local2 < largeAmmo.length) {
largeAmmo[_local2].step();
_local2++;
}
}
function registerLargeAmmoObject(object) {
largeAmmo.push(object);
}
function registerObject(object) {
objects.push(object);
if (object.classTypeName == "WaterObject") {
waters.push(object);
}
}
function checkWaterHit(object) {
var _local2 = 0;
while (_local2 < waters.length) {
if ((object != waters[_local2]) && (waters[_local2].hitZone.hitTest(object.hitZone))) {
object.gotoAndStop(object._totalframes - 1);
object.removeMe();
}
_local2++;
}
}
function initialiseStep() {
var _local5 = 0;
if ((lastI < objects.length) || (objects.length == 0)) {
_initialised = false;
} else {
_initialised = true;
}
if (!_initialised) {
scope.initialising._visible = true;
trace(lastI + " - INIT");
var _local6 = false;
var _local7 = Math.round((lastI / objects.length) * 100);
scope.initialising.preloader.gotoAndStop(_local7);
scope.initialising.preloader.loaderText.text = "Please wait...";
var _local3 = lastI;
while (_local3 < objects.length) {
var _local2 = 0;
while (_local2 < objects.length) {
_local5++;
if (_local5 > 3000) {
lastI = _local3;
_local6 = true;
break;
}
if (((((((objects[_local3] != objects[_local2]) && (!objects[_local3].noSittingOn)) && ((objects[_local2].classTypeName == "HumanObject") || (objects[_local2].classTypeName == "VehicleObject"))) && (objects[_local2].hitTest(objects[_local3]))) && (objects[_local2]._totalframes > 1)) && (objects[_local3]._totalframes > 1)) && (objects[_local2]._y < (objects[_local3]._y + (objects[_local3]._height / 2)))) {
objects[_local3].objectsOnMe.push(objects[_local2]);
}
if (((objects[_local3] != objects[_local2]) && (objects[_local2] instanceof bellStriker.objects.GroundObject)) && (objects[_local2].classTypeName != "PlantObject")) {
var _local4;
if (objects[_local2]._x > objects[_local3]._x) {
_local4 = Math.sqrt((((objects[_local3]._x + objects[_local3]._width) - objects[_local2]._x) * ((objects[_local3]._x + objects[_local3]._width) - objects[_local2]._x)) + ((objects[_local3]._y - objects[_local2]._y) * (objects[_local3]._y - objects[_local2]._y)));
} else {
_local4 = Math.sqrt(((objects[_local3]._x - objects[_local2]._x) * (objects[_local3]._x - objects[_local2]._x)) + ((objects[_local3]._y - objects[_local2]._y) * (objects[_local3]._y - objects[_local2]._y)));
}
if (_local4 <= 12) {
objects[_local3].nearbyObjects.push(objects[_local2]);
}
}
_local2++;
}
if (_local6) {
break;
}
lastI = objects.length;
_local3++;
}
} else {
scope.initialising.removeMovieClip();
huey.soundSwitch();
trace("START");
}
}
function objectsStep(bullet, explodingObject) {
huey.collisionObject = null;
var _local2 = 0;
while (_local2 < objects.length) {
if (objects[_local2].removing) {
objects.splice(_local2, 1);
_local2--;
} else {
if (objects[_local2] instanceof bellStriker.objects.GroundObject) {
objects[_local2].step();
placeObjectRadar(objects[_local2]);
checkAmmoSurroundings(objects[_local2]);
if (objects[_local2].exploding) {
var _local5 = new flash.geom.Point(objects[_local2]._x, objects[_local2]._y);
objects[_local2].localToGlobal(_local5);
var _local3 = 0;
while (_local3 < objects[_local2].nearbyObjects.length) {
var _local4 = new flash.geom.Point(objects[_local2].nearbyObjects[_local3]._x, objects[_local2].nearbyObjects[_local3]._y);
objects[_local2].nearbyObjects[_local3]._parent.localToGlobal(_local4);
var _local6 = Math.sqrt(((_local5.x - _local4.x) * (_local5.x - _local4.x)) + ((_local5.y - _local4.y) * (_local5.y - _local4.y)));
if (((!objects[_local2].nearbyObjects[_local3].exploding) && (_local6 <= (200 * instance.enemyBlastRadius))) && (objects[_local2].nearbyObjects[_local3].classTypeName.indexOf("PickupObject") == -1)) {
objects[_local2].nearbyObjects[_local3].die(null, 1 - (_local6 / 300), 0, objects[_local2].health / 3);
objects[_local2].nearbyObjects.splice(_local3, 1);
_local3--;
}
_local3++;
}
}
checkLargeAmmoHit(objects[_local2]);
}
if (objects[_local2].classTypeName.indexOf("PickupObject") > -1) {
if ((huey.checkForPickup() && (huey.winch.hook.hitTest(objects[_local2].hitZone))) && (!objects[_local2].locked)) {
huey.pickupObject = objects[_local2];
}
}
if (objects[_local2].classTypeName == "LandingPadObject") {
placeObjectRadar(objects[_local2]);
if ((huey.__get__hasLanded() && (huey.hitZone.hitTest(objects[_local2].hitZone))) && (objects[_local2]._name == "landing")) {
levelEnded(10);
break;
}
}
if ((objects[_local2].classTypeName == "CollisionObject") || (objects[_local2].classTypeName == "WaterObject")) {
}
if (objects[_local2].canCheckWater) {
checkWaterHit(objects[_local2]);
}
}
_local2++;
}
}
function levelEnded(speed) {
if (!_levelEnded) {
_levelEnded = true;
gs.TweenLite.to(scope, 1, {_alpha:0, onCompleteScope:this, onComplete:levelEndComplete});
}
}
function levelEndComplete() {
data.levels[selectedLevel].a++;
if (data.levels[selectedLevel].s < levelScore) {
data.levels[selectedLevel].s = levelScore;
}
delete scope.onEnterFrame;
scope.ui.removeMovieClip();
firelayer.removeMovieClip();
levelHueyHealth = huey.health;
huey.end();
huey.removeMovieClip();
scope._alpha = 100;
target.removeMovieClip();
Mouse.removeListener(this);
if ((levelPrimaryComplete && (levelSecondaryComplete)) && (levelHueyHealth > 0)) {
data.levels[selectedLevel].completed = true;
var _local2 = 0;
while ((!data.levels[_local2].locked) && (_local2 < data.levels.length)) {
_local2++;
}
data.levels[_local2].locked = false;
}
if (levelHueyHealth <= 0) {
data.__set__deaths((data.__get__deaths()+1));
}
data.enemyTargets = data.enemyTargets + levelEnemyTargets;
data.civilianTargets = data.civilianTargets + levelCivilianTargets;
saveGame();
scope.gotoAndStop("endlevel", 1);
Mouse.show();
}
function targetOver(object) {
if (((target._x >= huey._x) && (huey._xscale > 0)) || ((target._x <= huey._x) && (huey._xscale < 0))) {
if (object instanceof bellStriker.objects.GroundObject) {
if ((!object.noTarget) || (object.isDestroy)) {
if (object.isEnemy || (object.isDestroy)) {
if (((object.classTypeName == "HumanObject") || (object.classTypeName == "VehicleObject")) || (object.isDestroy)) {
target.gotoAndStop(2);
} else {
target.gotoAndStop(3);
}
} else {
target.gotoAndStop(4);
}
} else {
target.gotoAndStop(1);
}
target.health._xscale = object.getHealthBar();
currentTarget = object;
} else {
target.gotoAndStop(1);
currentTarget = null;
}
} else {
target.gotoAndStop(1);
currentTarget = null;
}
}
function updateTarget(object) {
if (currentTarget == object) {
targetOver(object);
}
}
function targetOut() {
target.gotoAndStop(1);
currentTarget = null;
}
function onMouseDown() {
if (!_pause) {
shoot = true;
}
}
function onMouseUp() {
if (!_pause) {
shoot = false;
}
}
function checkAmmoSurroundings(object) {
if ((!object.exploding) && (object._totalframes > 1)) {
var _local4 = new flash.geom.Point(object._x, object._y);
object._parent.localToGlobal(_local4);
var _local2 = 0;
while (_local2 < largeAmmo.length) {
if ((!largeAmmo[_local2].exploding) && (!largeAmmo[_local2].fromGound)) {
var _local3 = new flash.geom.Point(largeAmmo[_local2].wayPoint.x, largeAmmo[_local2].wayPoint.y);
largeAmmo[_local2]._parent.localToGlobal(_local3);
var _local5 = Math.sqrt(((_local4.x - _local3.x) * (_local4.x - _local3.x)) + ((_local4.y - _local3.y) * (_local4.y - _local3.y)));
if (_local5 < 250) {
largeAmmo[_local2].nearbyObjects.push(object);
}
}
_local2++;
}
}
}
function shootTarget() {
if (shootCount > selectedWeapons[currentWeaponIndex].shootMax) {
if (shoot) {
shootCount = 0;
}
if (selectedWeapons[currentWeaponIndex].ammo > 0) {
if ((selectedWeapons[currentWeaponIndex].minRotation != 0) || (selectedWeapons[currentWeaponIndex].maxRotation != 0)) {
var _local5 = Math.atan2(target._y - huey._y, target._x - huey._x) * 57.2957795130823;
if (huey._xscale < 0) {
huey.__get__currentWeapon()._rotation = ((Math.atan2(target._y - huey._y, target._x - huey._x) * -57.2957795130823) - 180) + huey._rotation;
} else {
huey.__get__currentWeapon()._rotation = _local5;
}
}
if ((selectedWeapons[currentWeaponIndex].ammoName != null) && (shoot)) {
if (((target._x >= huey._x) && (huey._xscale > 0)) || ((target._x <= huey._x) && (huey._xscale < 0))) {
var _local2 = addFireObject(selectedWeapons[currentWeaponIndex].ammoName, "bullet");
_local2.weaponStrength = selectedWeapons[currentWeaponIndex].weaponStrength * weaponStrengthRatio;
_local2.ammoFrame = selectedWeapons[currentWeaponIndex].ammoFrame;
_local2.speed = selectedWeapons[currentWeaponIndex].weaponSpeed;
var _local4 = new flash.geom.Point(huey.__get__currentWeapon().launchZone._x, huey.__get__currentWeapon().launchZone._y);
trace("WEAPON_" + huey.__get__currentWeapon()._name);
huey.__get__currentWeapon().localToGlobal(_local4);
_local2._x = _local4.x;
_local2._y = _local4.y;
_local2.wayPoint = new flash.geom.Point(target._x, target._y);
if (((currentTarget == null) && (target._y < 270)) || (target._y > 420)) {
_local2.wayPoint.x = _local2.wayPoint.x + ((target._x - _local4.x) * 10);
_local2.wayPoint.y = _local2.wayPoint.y + ((target._y - _local4.y) * 10);
_local2.noTarget = true;
}
_local2._parent.localToGlobal(_local2.wayPoint);
_local2.currentTarget = currentTarget._parent[currentTarget._name];
shoot = false;
selectedWeapons[currentWeaponIndex].ammo--;
data.__set__missiles((data.__get__missiles()+1));
}
} else if (shoot && (((target._x >= huey._x) && (huey._xscale > 0)) || ((target._x <= huey._x) && (huey._xscale < 0)))) {
var _local3;
if ((currentTarget != null) && (((target._x >= huey._x) && (huey._xscale > 0)) || ((target._x <= huey._x) && (huey._xscale < 0)))) {
currentTarget.die();
targetOver(currentTarget);
_local3 = addFireObject("bulletHitObject", "bullet");
} else if (((target._x >= huey._x) && (huey._xscale > 0)) || ((target._x <= huey._x) && (huey._xscale < 0))) {
if ((target._y > 300) && (target._y < 400)) {
_local3 = addFireObject("bulletHitGround", "bullet");
} else {
_local3 = addFireObject("bulletHitObject", "bullet");
_local3.noHit = true;
_local3.play();
}
}
if (huey._xscale > 0) {
_local3._x = Math.max(target._x, huey._x);
} else {
_local3._x = Math.min(target._x, huey._x);
}
_local3._y = target._y;
_local3._rotation = _local5;
if (huey.__get__currentWeapon()._currentframe == 1) {
huey.__get__currentWeapon().play();
}
selectedWeapons[currentWeaponIndex].ammo--;
data.__set__bullets((data.__get__bullets()+1));
}
} else if (shoot) {
playSoundEffect("noAmmo.mp3");
shoot = false;
}
} else {
shootCount++;
}
}
function stepBullets() {
}
function bulletHit(bullet) {
bullet.removeMe();
}
function removeBullet(bullet) {
bullet.removing = true;
}
function checkHueyHit(bullet) {
if ((huey.hitZone.hitTest(bullet.hitZone) && (bullet.isEnemy)) && (!bullet.exploding)) {
bullet.hit();
score = score - 10;
return(true);
}
return(false);
}
function checkLargeAmmoHit(object, surroundingObject) {
var _local2 = 0;
while (_local2 < largeAmmo.length) {
if (largeAmmo[_local2].hitZone.hitTest(object.hitZone) && (largeAmmo[_local2].exploding)) {
if (surroundingObject != null) {
var _local5 = Math.sqrt(((object._x - surroundingObject._x) * (object._x - surroundingObject._x)) + ((object._y - surroundingObject._y) * (object._y - surroundingObject._y)));
object.die(largeAmmo[_local2], _local5 / 25);
} else {
object.die(largeAmmo[_local2]);
}
return(true);
}
_local2++;
}
return(false);
}
function removeLargeAmmoObject(object) {
var _local2 = 0;
while (_local2 < largeAmmo.length) {
if (object == largeAmmo[_local2]) {
largeAmmo.splice(_local2, 1);
return(undefined);
}
_local2++;
}
}
function removeGroundObject(object) {
object.removing = true;
}
function primaryReached(num, total, fail) {
if (fail || (currentLevel.primaryFailed)) {
currentLevel.primaryFailed = true;
levelPrimaryComplete = false;
if (((total == 1) || (num == total)) || (currentLevel.primaryFailed)) {
displayMessage("Primary Objective Failed");
} else {
displayMessage(((("Primary Objective " + num) + " Of ") + total) + " Failed");
}
} else if ((total == 1) || (num == total)) {
displayMessage("Primary Objective Reached");
levelPrimaryComplete = true;
} else {
displayMessage(((("Primary Objective " + num) + " Of ") + total) + " Reached");
}
}
function secondaryReached(num, total, fail) {
if (fail || (currentLevel.secondaryFailed)) {
currentLevel.secondaryFailed = true;
levelSecondaryComplete = false;
if (((total == 1) || (num == total)) || (currentLevel.secondaryFailed)) {
displayMessage("Secondary Objective Failed");
} else {
displayMessage(((("Secondary Objective " + num) + " Of ") + total) + " Failed");
}
} else if ((total == 1) || (num == total)) {
displayMessage("Secondary Objective Reached");
levelSecondaryComplete = true;
} else {
displayMessage(((("Secondary Objective " + num) + " Of ") + total) + " Reached");
}
}
function displayMessage(message) {
trace(message);
scope.ui.message.text = message;
gs.TweenLite.to(scope.ui.message, 1, {_alpha:100});
gs.TweenLite.to(scope.ui.message, 1, {delay:4, _alpha:0, overwrite:0});
}
function removeCollisionObject(object) {
object.removing = true;
}
function checkHueyCollision(object) {
if (object.hitZone.hitTest(huey.hitZone) && ((object._y + object._height) >= object.allowedY)) {
huey.collisionObject = object;
playSoundEffect("crash.mp3");
object.flex();
}
if (object.hitZone.hitTest(huey.pickupObject) && ((object._y + object._height) >= object.allowedY)) {
if (huey.pickupObject.collisionObject == null) {
}
huey.pickupObject._y = huey.pickupObject._y - 0.25;
}
}
function getCollisionObject(object) {
var _local2 = 0;
while (_local2 < objects.length) {
if (((objects[_local2].classTypeName == "CollisionObject") || (objects[_local2].classTypeName == "WaterObject")) && (object.hitTest(objects[_local2].hitZone))) {
return(objects[_local2]);
}
_local2++;
}
}
function addFireObject(clip, name) {
return(firelayer.attachMovie(clip, (name + "_") + firelayer.getNextHighestDepth(), firelayer.getNextHighestDepth()));
}
function selectWeapon(index) {
if (selectedWeapons.length < 3) {
data.weapons[index].selected = !data.weapons[index].selected;
} else {
data.weapons[index].selected = false;
}
}
function isWeaponActive(index) {
var _local2 = 0;
while (_local2 < selectedWeapons.length) {
if (selectedWeapons[_local2] == index) {
return(true);
}
_local2++;
}
return(false);
}
function getCurrentLevelName() {
return(("level" + (selectedLevel + 1)) + "_assets");
}
function clearRadar() {
}
function addRadar(object) {
if ((object != null) && ((object.isPrimary || (object.isSecondary)) || (object.classTypeName == "LandingPadObject"))) {
object.radarItem = scope.ui.radar.attachMovie("radarItem", "radarItem_" + scope.ui.radar.getNextHighestDepth(), scope.ui.radar.getNextHighestDepth());
if (object.classTypeName == "LandingPadObject") {
object.radarItem.gotoAndStop(4);
} else if (object.isEnemy) {
object.radarItem.gotoAndStop(2);
} else {
object.radarItem.gotoAndStop(3);
}
}
}
function placeHueyRadar() {
scope.ui.radar.huey._x = (-currentLevel._x) / (currentLevel._xscale / 100);
scope.ui.radar.huey._y = huey._y / (currentLevel._yscale / 100);
}
function placeObjectRadar(object) {
object.radarItem._x = object._x;
object.radarItem._y = object._y;
}
function setUiHealth(val) {
scope.ui.health.bar._xscale = val;
}
function set score(val) {
if (val > data.__get__hits()) {
cash = cash + Math.ceil((val - data.__get__hits()) / 10);
levelScore = levelScore + (val - data.__get__hits());
}
data.__set__hits(val);
scope.ui.score.text = val;
//return(score);
}
function get score() {
return(Number(data.__get__hits()));
}
function getNextEmptyWeaponIndex() {
var _local2 = 0;
while (_local2 < data.weapons.length) {
if (!data.weapons[_local2].active) {
return(_local2);
}
_local2++;
}
return(-1);
}
function activateWeapon(index) {
data.weapons[index].active = true;
levelWeapons++;
}
function addAmmo(index, rounds) {
data.weapons[index].ammo = data.weapons[index].ammo + rounds;
renderUI();
levelAmmo++;
}
function checkAchievement(type, index) {
if ((data.achievements[index].type == type) && (data.achievements[index].current < data.achievements[index].total)) {
data.achievements[index].current++;
if (data.achievements[index].current == data.achievements[index].total) {
displayMessage("New achievement reached");
levelAchievements++;
}
}
}
function checkDieAchievement(object) {
if ((!object.isPrimary) && (!object.isSecondary)) {
checkAchievement(ACHIEVEMENT_DESTROY, object.achievement);
}
}
function checkRescueAchievement(object) {
if ((!object.isPrimary) && (!object.isSecondary)) {
checkAchievement(ACHIEVEMENT_RESCUE, object.achievement);
}
}
function get cash() {
return(Number(data.__get__yoyos()));
}
function set cash(value) {
data.__set__yoyos(value);
//return(cash);
}
function buyWeapon(index) {
trace((((index + "-") + cash) + "-") + data.weapons[index]);
if ((cash >= data.weapons[index].price) && (!isWeaponActive(index))) {
trace((cash + "-") + data.weapons[index].price);
cash = cash - data.weapons[index].price;
activateWeapon(index);
return(true);
}
return(false);
}
function buyAmmo(index) {
if (cash >= data.weapons[index].ammoPrice) {
cash = cash - data.weapons[index].ammoPrice;
addAmmo(index, data.weapons[index].rounds);
return(true);
}
return(false);
}
function buySkill(index) {
if ((data.skills[index].level < 5) && (cash >= data.skills[index].price)) {
data.skills[index].level++;
cash = cash - data.skills[index].price;
}
return(data.skills[index].level < 5);
}
function togglePause(startUnPaused) {
step();
_pause = !_pause;
scope.ui.help._visible = _pause;
if (data.startUnPaused) {
scope.ui.help.showAgain.gotoAndStop(2);
} else {
scope.ui.help.showAgain.gotoAndStop(1);
}
scope.ui.objectives._alpha = (_pause ? 20 : 85);
_root._quality = (_pause ? "BEST" : "MEDIUM");
target._visible = !_pause;
if (_pause) {
Mouse.show();
} else {
Mouse.hide();
}
if (startUnPaused == 1) {
data.startUnPaused = false;
} else {
data.startUnPaused = true;
}
}
function playSoundEffect(effect) {
if (soundOn) {
var _local3 = preScope.createEmptyMovieClip("sound_" + soundEffects.length, preScope.getNextHighestDepth());
var _local4 = new Sound(_local3);
_local4.attachSound(effect);
_local4.setVolume(100);
_local4.start(0, 1);
soundEffects.push({sound:_local4, mc:_local3});
_local4.onSoundComplete = function () {
var _local3 = bellStriker.GameController.__get__instance().soundEffects;
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].sound == this) {
_local3[_local2].mc.removeMovieClip();
_local3.splice(_local2, 1);
}
_local2++;
}
};
}
}
function getLevelScoreTotal() {
var _local2 = 0;
for (var _local3 in data.levels) {
_local2 = _local2 + data.levels[_local3].s;
}
return(_local2);
}
function getLevelAttemptsTotal() {
var _local2 = 0;
for (var _local3 in data.levels) {
_local2 = _local2 + data.levels[_local3].a;
}
return(_local2);
}
var gameTime = 90000;
var stepTime = 40;
var lives = 3;
var totalLives = 3;
var endLife = false;
var soundOn = true;
var gameOver = false;
var _levelEnded = false;
var _initialised = false;
var groundLevel = 370;
var fuel = 100;
var endType = 0;
var stepCount = 0;
var targetClearCount = 0;
var shoot = false;
var shootCount = 0;
var selectedLevel = 0;
var currentWeaponIndex = 0;
var drawCount = 0;
var radarWidth = 405;
var radarHeight = 34;
var enemyHealthRatio = 1;
var enemyBlastRadius = 1;
static var ACHIEVEMENT_RESCUE = "achievementRescue";
static var ACHIEVEMENT_DESTROY = "achievementDestroy";
var levelScore = 0;
var levelEnemyTargets = 0;
var levelCivilianTargets = 0;
var levelAchievements = 0;
var levelWeapons = 0;
var levelAmmo = 0;
var levelHueyHealth = 0;
}
Symbol 1336 MovieClip [__Packages.bellStriker.Setting] Frame 0
class bellStriker.Setting extends MovieClip
{
var background, background1, midlayer, midlayer1, frontlayer, frontlayer1, obstaclelayer, attachMovie, sky, gotoAndStop, night, speed;
function Setting () {
super();
}
function onLoad() {
bellStriker.GameController.__get__instance().__set__setting(this);
background.swapDepths(1);
background1 = background.duplicateMovieClip("background1", 2);
midlayer.swapDepths(3);
midlayer1 = midlayer.duplicateMovieClip("midlayer1", 4);
frontlayer.swapDepths(7);
frontlayer1 = frontlayer.duplicateMovieClip("frontlayer1", 8);
obstaclelayer = bellStriker.Level(attachMovie(bellStriker.GameController.__get__instance().getCurrentLevelName(), "obstaclelayer", 6));
bellStriker.GameController.__get__instance().__set__currentLevel(obstaclelayer);
switch (obstaclelayer.timeOfDay) {
case bellStriker.Level.TIME_DAY :
sky.gotoAndStop(1);
gotoAndStop(1);
break;
case bellStriker.Level.TIME_DUSK :
sky.gotoAndStop(2);
gotoAndStop(2);
break;
case bellStriker.Level.TIME_NIGHT :
sky.gotoAndStop(3);
gotoAndStop(3);
}
obstaclelayer._y = 30;
background1X = backgroundX + background._width;
midlayer1X = midlayerX + midlayer._width;
frontlayer1X = frontlayerX + frontlayer._width;
night.swapDepths(9);
reset();
midlayer.onRollOver = function () {
bellStriker.GameController.__get__instance().targetOut();
};
midlayer1.onRollOver = midlayer.onRollOver;
frontlayer.onRollOver = midlayer.onRollOver;
frontlayer1.onRollOver = midlayer.onRollOver;
}
function reset() {
}
function step() {
speed = bellStriker.GameController.__get__instance().__get__huey().speed;
if (Math.abs(speed) > 4) {
moveBackground(speed);
moveMidlayer(speed);
moveFrontlayer(speed);
moveObstaclelayer(speed);
}
}
function drawBitmap() {
var _local2 = bellStriker.GameController.__get__instance().canvas;
var _local4 = bellStriker.GameController.__get__instance().rect;
var _local3 = new flash.geom.Matrix();
_local2.draw(this, _local3, null, null, _local4);
}
function moveBackground(amount) {
backgroundX = backgroundX - (amount / 22);
background1X = background1X - (amount / 22);
if (amount >= 0) {
if (backgroundX <= (-background._width)) {
backgroundX = background1X + background1._width;
}
if (background1X <= (-background1._width)) {
background1X = backgroundX + background._width;
}
} else {
if (backgroundX >= 0) {
background1X = backgroundX - background1._width;
}
if (background1X >= 0) {
backgroundX = background1X - background._width;
}
}
background._x = backgroundX;
background1._x = background1X;
}
function moveMidlayer(amount) {
midlayerX = midlayerX - (amount / 15);
midlayer1X = midlayer1X - (amount / 15);
if (amount >= 0) {
if (midlayerX <= (-midlayer._width)) {
midlayerX = midlayer1X + midlayer1._width;
}
if (midlayer1X <= (-midlayer1._width)) {
midlayer1X = midlayerX + midlayer._width;
}
} else {
if (midlayerX >= 0) {
midlayer1X = midlayerX - midlayer1._width;
}
if (midlayer1X >= 0) {
midlayerX = midlayer1X - midlayer._width;
}
}
midlayer._x = midlayerX;
midlayer1._x = midlayer1X;
}
function moveFrontlayer(amount) {
frontlayerX = frontlayerX - (amount / 10);
frontlayer1X = frontlayer1X - (amount / 10);
if (amount >= 0) {
if (frontlayerX <= (-frontlayer._width)) {
frontlayerX = frontlayer1X + frontlayer1._width;
}
if (frontlayer1X <= (-frontlayer1._width)) {
frontlayer1X = frontlayerX + frontlayer._width;
}
} else {
if (frontlayerX >= 0) {
frontlayer1X = frontlayerX - frontlayer1._width;
}
if (frontlayer1X >= 0) {
frontlayerX = frontlayer1X - frontlayer._width;
}
}
frontlayer._x = frontlayerX;
frontlayer1._x = frontlayer1X;
}
function moveObstaclelayer(amount) {
obstaclelayerX = obstaclelayerX - (amount / 15);
obstaclelayer._x = obstaclelayerX;
}
function moveAll(amount) {
moveObstaclelayer(amount);
moveFrontlayer(amount);
moveMidlayer(amount);
moveBackground(amount);
}
var skyX = 0;
var backgroundX = 0;
var background1X = 0;
var midlayerX = 0;
var midlayer1X = 0;
var frontlayerX = 0;
var frontlayer1X = 0;
var obstaclelayerX = 0;
var firelayerX = 0;
var moveCount = 0;
}
Symbol 1337 MovieClip [__Packages.bellStriker.Level] Frame 0
class bellStriker.Level extends MovieClip
{
var bitmaps, bg, _xscale, _yscale, primariesA, primariesB, secondariesA, secondariesB, getNextHighestDepth, _data, primaryTypeA, primaryTypeB, secondaryTypeA, secondaryTypeB;
function Level () {
super();
}
function onLoad() {
bitmaps = new Array();
bg._visible = false;
_xscale = 2000;
_yscale = 2000;
primariesA = [];
primariesB = [];
secondariesA = [];
secondariesB = [];
for (var _local4 in this) {
if (this[_local4]._name.indexOf("primaryA") > -1) {
primariesA.push(this[_local4]);
this[_local4].attachMovie("object_targetType", "targetType", this[_local4].getNextHighestDepth());
} else if (this[_local4]._name.indexOf("primaryB") > -1) {
primariesB.push(this[_local4]);
this[_local4].attachMovie("object_targetType", "targetType", this[_local4].getNextHighestDepth());
} else if (this[_local4]._name.indexOf("primary") > -1) {
primariesA.push(this[_local4]);
this[_local4].attachMovie("object_targetType", "targetType", this[_local4].getNextHighestDepth());
}
if (this[_local4]._name.indexOf("secondaryA") > -1) {
secondariesA.push(this[_local4]);
this[_local4].attachMovie("object_targetType", "targetType", this[_local4].getNextHighestDepth());
} else if (this[_local4]._name.indexOf("secondaryB") > -1) {
secondariesB.push(this[_local4]);
this[_local4].attachMovie("object_targetType", "targetType", this[_local4].getNextHighestDepth());
} else if (this[_local4]._name.indexOf("secondary") > -1) {
secondariesA.push(this[_local4]);
this[_local4].attachMovie("object_targetType", "targetType", this[_local4].getNextHighestDepth());
}
if (this[_local4]._name.indexOf("primary") > -1) {
this[_local4].isPrimary = true;
} else if (this[_local4]._name.indexOf("secondary") > -1) {
this[_local4].isSecondary = true;
}
if (this[_local4].classTypeName == "WeaponPickupObject") {
var _local2 = bellStriker.GameController.__get__instance().getNextEmptyWeaponIndex();
if (_local2 > -1) {
this[_local4].gotoAndStop(_local2 + 1);
} else {
this[_local4].swapDepths(getNextHighestDepth());
this[_local4].removeMovieClip();
}
}
if (this[_local4].classTypeName == "WeaponCratePickupObject") {
var _local3 = Math.floor(Math.random() * bellStriker.GameController.__get__instance().__get__activeWeapons().length);
this[_local4].gotoAndStop(bellStriker.GameController.__get__instance().__get__activeWeapons()[_local3].weaponIndex + 1);
}
bellStriker.GameController.__get__instance().addRadar(this[_local4]);
}
setupClips();
primaryCountA = primariesA.length;
secondaryCountA = secondariesA.length;
primaryCountB = primariesB.length;
secondaryCountB = secondariesB.length;
}
function get data() {
return(_data);
}
function set data(value) {
_data = value;
for (var _local2 in _data) {
trace((_local2 + "=") + _data[_local2]);
this[_local2] = _data[_local2];
}
setupClips();
//return(data);
}
function setupClips() {
for (var _local2 in primariesA) {
primariesA[_local2].isDestroy = primaryTypeA == TYPE_DESTROY;
if (((!primariesA[_local2].isFriendly) && (primaryTypeA == TYPE_PICKUP)) || (primaryTypeA == TYPE_SAVE)) {
primariesA[_local2].isEnemy = false;
}
}
for (var _local2 in primariesB) {
primariesB[_local2].isDestroy = primaryTypeB == TYPE_DESTROY;
if (((!primariesB[_local2].isFriendly) && (primaryTypeB == TYPE_PICKUP)) || (primaryTypeB == TYPE_SAVE)) {
primariesB[_local2].isEnemy = false;
}
}
for (var _local2 in secondariesA) {
secondariesA[_local2].isDestroy = secondaryTypeA == TYPE_DESTROY;
if (((!secondariesA[_local2].isFriendly) && (secondaryTypeA == TYPE_PICKUP)) || (secondaryTypeA == TYPE_SAVE)) {
secondariesA[_local2].isEnemy = false;
}
}
for (var _local2 in secondariesB) {
secondariesB[_local2].isDestroy = secondaryTypeB == TYPE_DESTROY;
if (((!secondariesB[_local2].isFriendly) && (secondaryTypeB == TYPE_PICKUP)) || (secondaryTypeB == TYPE_SAVE)) {
secondariesB[_local2].isEnemy = false;
}
}
}
function checkObjective(objectA, objectB) {
var _local7;
var _local5 = -1;
var _local6 = false;
var _local4 = 0;
while (_local4 < primariesA.length) {
if (primariesA[_local4] == objectA) {
_local7 = true;
_local5 = _local4;
}
_local4++;
}
if (_local7) {
if (objectB != null) {
_local4 = 0;
while (_local4 < primariesB.length) {
if (primariesB[_local4] == objectB) {
objectA.__set__locked(true);
objectB.__set__locked(true);
objectA.targetType._visible = false;
objectB.targetType._visible = false;
primariesB.splice(_local4, 1);
primariesA.splice(_local5, 1);
bellStriker.GameController.__get__instance().primaryReached(Math.abs(primariesA.length - primaryCountA), primaryCountA, false);
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + primaryScore;
_local6 = true;
}
_local4++;
}
} else {
objectA.__set__locked(true);
objectA.targetType._visible = false;
primariesA.splice(_local5, 1);
bellStriker.GameController.__get__instance().primaryReached(Math.abs(primariesA.length - primaryCountA), primaryCountA, false);
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + primaryScore;
_local6 = true;
}
}
_local7 = false;
_local5 = -1;
_local4 = 0;
while (_local4 < secondariesA.length) {
if (secondariesA[_local4] == objectA) {
_local7 = true;
_local5 = _local4;
}
_local4++;
}
if (_local7) {
if (objectB != null) {
_local4 = 0;
while (_local4 < secondariesB.length) {
if (secondariesB[_local4] == objectB) {
objectA.__set__locked(true);
objectB.__set__locked(true);
objectA.targetType._visible = false;
objectB.targetType._visible = false;
secondariesB.splice(_local4, 1);
secondariesA.splice(_local5, 1);
bellStriker.GameController.__get__instance().secondaryReached(Math.abs(secondariesA.length - secondaryCountA), secondaryCountA, false);
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + secondaryScore;
_local6 = true;
}
_local4++;
}
} else {
objectA.__set__locked(true);
objectA.targetType._visible = false;
secondariesA.splice(_local5, 1);
bellStriker.GameController.__get__instance().secondaryReached(Math.abs(secondariesA.length - secondaryCountA), secondaryCountA, false);
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + secondaryScore;
_local6 = true;
}
}
return(_local6);
}
function checkObjectiveDie(object) {
var _local3 = false;
var _local5 = false;
if (object.isEnemy) {
bellStriker.GameController.__get__instance().levelEnemyTargets++;
} else {
bellStriker.GameController.__get__instance().levelCivilianTargets++;
}
if (primaryCountA != primaryCountB) {
var _local4 = 0;
while (_local4 < primariesB.length) {
if (object == primariesB[_local4]) {
primariesB.splice(_local4, 1);
object.__set__locked(true);
object.targetType._visible = false;
bellStriker.GameController.__get__instance().primaryReached(Math.abs(primariesB.length - primaryCountB), primaryCountB, primaryTypeB != TYPE_DESTROY);
_local5 = primaryTypeB == TYPE_DESTROY;
_local3 = true;
}
_local4++;
}
if (primaryTypeB == TYPE_SAVE) {
if ((primariesA.length == 0) && (primariesB.length > 0)) {
bellStriker.GameController.__get__instance().primaryReached(1, 1, false);
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + primaryScore;
_local5 = false;
_local4 = 0;
while (_local4 < primariesB.length) {
primariesB[_local4].locked = true;
primariesB.splice(_local4, 1);
_local4--;
_local4++;
}
_local3 = true;
}
if (_local5) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + primaryScore;
}
}
} else {
trace("CHECK HERE");
var _local4 = 0;
while (_local4 < primariesA.length) {
if (object == primariesA[_local4]) {
primariesA.splice(_local4, 1);
object.__set__locked(true);
object.targetType._visible = false;
bellStriker.GameController.__get__instance().primaryReached(Math.abs(primariesA.length - primaryCountA), primaryCountA, primaryTypeA != TYPE_DESTROY);
if (primaryTypeA == TYPE_DESTROY) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + primaryScore;
}
_local3 = true;
}
_local4++;
}
_local4 = 0;
while (_local4 < primariesB.length) {
if (object == primariesB[_local4]) {
primariesB.splice(_local4, 1);
object.__set__locked(true);
object.targetType._visible = false;
bellStriker.GameController.__get__instance().primaryReached(Math.abs(primariesB.length - primaryCountB), primaryCountB, primaryTypeB != TYPE_DESTROY);
if (primaryTypeB == TYPE_DESTROY) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + primaryScore;
}
_local3 = true;
}
_local4++;
}
}
if (secondaryCountA != secondaryCountB) {
var _local4 = 0;
while (_local4 < secondariesB.length) {
if (object == secondariesB[_local4]) {
secondariesB.splice(_local4, 1);
object.__set__locked(true);
object.targetType._visible = false;
bellStriker.GameController.__get__instance().secondaryReached(Math.abs(secondariesB.length - secondaryCountB), secondaryCountB, secondaryTypeB != TYPE_DESTROY);
_local5 = secondaryCountB == TYPE_DESTROY;
_local3 = true;
}
_local4++;
}
if (secondaryTypeB == TYPE_SAVE) {
if ((secondariesA.length == 0) && (secondariesB.length > 0)) {
bellStriker.GameController.__get__instance().secondaryReached(1, 1, false);
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + secondaryScore;
_local5 = false;
_local4 = 0;
while (_local4 < secondariesB.length) {
secondariesB[_local4].locked = true;
secondariesB.splice(_local4, 1);
_local4--;
_local4++;
}
_local3 = true;
}
if (_local5) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + secondaryScore;
}
}
} else {
var _local4 = 0;
while (_local4 < secondariesA.length) {
if (object == secondariesA[_local4]) {
secondariesA.splice(_local4, 1);
object.__set__locked(true);
object.targetType._visible = false;
bellStriker.GameController.__get__instance().secondaryReached(Math.abs(secondariesA.length - secondaryCountA), secondaryCountA, secondaryTypeA != TYPE_DESTROY);
if (secondaryTypeA == TYPE_DESTROY) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + secondaryScore;
}
_local3 = true;
}
_local4++;
}
_local4 = 0;
while (_local4 < secondariesB.length) {
if (object == secondariesB[_local4]) {
secondariesB.splice(_local4, 1);
object.__set__locked(true);
object.targetType._visible = false;
bellStriker.GameController.__get__instance().secondaryReached(Math.abs(secondariesB.length - secondaryCountB), secondaryCountB, secondaryTypeB != TYPE_DESTROY);
if (secondaryTypeB == TYPE_DESTROY) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + secondaryScore;
}
_local3 = true;
}
_local4++;
}
}
if (!_local3) {
if (object.isPrimary && (!object.isDestroy)) {
bellStriker.GameController.__get__instance().primaryReached(1, 1, true);
if (object.__get__locked()) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score - primaryScore;
object.__set__locked(false);
}
}
if (object.isSecondary && (!object.isDestroy)) {
bellStriker.GameController.__get__instance().secondaryReached(1, 1, true);
if (object.__get__locked()) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score - secondaryScore;
object.__set__locked(false);
}
}
}
return(_local3);
}
var primaryCountA = 0;
var primaryCountB = 0;
var secondaryCountA = 0;
var secondaryCountB = 0;
static var TYPE_PICKUP = "typePickup";
static var TYPE_DROP = "typeDrop";
static var TYPE_DESTROY = "typeDestroy";
static var TYPE_SAVE = "typeSave";
static var TIME_DAY = "Day Mission";
static var TIME_DUSK = "Dusk Mission";
static var TIME_NIGHT = "Night Mission";
var casualties = 0;
var buildingTargets = 0;
var humanTargets = 0;
var vehicleTargets = 0;
var primaryScore = 0;
var secondaryScore = 0;
}
Symbol 1338 MovieClip [__Packages.bellStriker.objects.BaseObject] Frame 0
class bellStriker.objects.BaseObject extends MovieClip
{
var startX, _x, startY, _y, startDepth, getDepth, hitZone, _name, radarItem, targetType, _parent, _width, onEnterFrame;
function BaseObject () {
super();
}
function onLoad() {
bellStriker.GameController.__get__instance().registerObject(this);
startX = _x;
startY = _y;
startDepth = getDepth();
hitZone._visible = false;
currentHealth = health;
if (_name.indexOf("friendly") > -1) {
isEnemy = false;
}
loaded();
}
function set locked(val) {
_locked = val;
if (val) {
radarItem.removeMovieClip();
targetType.removeMovieClip();
}
//return(locked);
}
function get locked() {
return(_locked);
}
function loaded() {
}
function die(ammo, healthPercent, explodingY, forceReduce) {
}
function step() {
if ((!placed) && (targetType)) {
targetType._x = (_width / 2) * (_parent._xscale / 100);
if (!isEnemy) {
targetType.gotoAndStop(2);
}
}
}
function quickStep() {
}
function removeMe() {
radarItem.removeMovieClip();
onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 10;
} else {
this.onRollOut();
delete this.onRollOut;
this.swapDepths(this._parent.getNextHighestDepth());
this.removeMovieClip();
}
};
}
function getHealthBar() {
return(Math.max(0, (currentHealth / health) * 100));
}
var currentHealth = 10;
var health = 10;
var removing = false;
var stepCount = 0;
var classTypeName = "BaseObject";
var allowedY = 17;
var _locked = false;
var isEnemy = true;
var placed = false;
}
Symbol 1339 MovieClip [__Packages.bellStriker.objects.BaseAmmoObject] Frame 0
class bellStriker.objects.BaseAmmoObject extends bellStriker.objects.BaseObject
{
var hitZone, nearbyObjects, _visible, innerRocket, ammoFrame, currentTarget, wayPoint, rot, _y, _x, exploding, _rotation, noTarget, gotoAndPlay, explosion;
function BaseAmmoObject () {
super();
}
function onLoad() {
hitZone._visible = false;
bellStriker.GameController.__get__instance().registerLargeAmmoObject(this);
nearbyObjects = [];
_visible = false;
}
function step() {
_visible = true;
innerRocket.gotoAndStop(ammoFrame);
if ((currentTarget != null) && (currentTarget.isMoving)) {
wayPoint = new flash.geom.Point(currentTarget._x, currentTarget._y + (currentTarget._height / 2));
currentTarget._parent.localToGlobal(wayPoint);
}
if ((currentTarget == null) && (wayPoint.y < 300)) {
if (!rot) {
rot = Math.atan2(wayPoint.y - _y, wayPoint.x - _x) * 57.2957795130823;
}
} else {
rot = Math.atan2(wayPoint.y - _y, wayPoint.x - _x) * 57.2957795130823;
}
if (fromGound) {
}
if (!exploding) {
_rotation = rot;
_x = _x + (Math.sin((_rotation - 90) * (Math.PI/180)) * (speed * -2));
_y = _y - (Math.cos((_rotation - 90) * (Math.PI/180)) * (speed * -2));
}
var _local3 = Math.sqrt(((wayPoint.x - _x) * (wayPoint.x - _x)) + ((wayPoint.y - _y) * (wayPoint.y - _y)));
if (((_local3 <= speed) || ((noTarget && (_y > 330)) && (_x < 650))) && (!exploding)) {
exploding = true;
if (!noTarget) {
_x = wayPoint.x;
_y = wayPoint.y;
}
gotoAndPlay("explode");
explosion.gotoAndStop(ammoFrame);
hitZone._visible = false;
if (currentTarget == bellStriker.GameController.__get__instance().__get__huey()) {
bellStriker.GameController.__get__instance().__get__huey().hit(weaponStrength);
} else {
currentTarget.die(this);
}
var _local2 = 0;
while (_local2 < nearbyObjects.length) {
nearbyObjects[_local2].die(this);
_local2++;
}
}
if (exploding) {
_x = _x - (bellStriker.GameController.__get__instance().__get__huey().speed / 20);
}
if ((Math.abs(bellStriker.GameController.__get__instance().__get__huey()._y - _y) > 500) || (Math.abs(bellStriker.GameController.__get__instance().__get__huey()._x - _x) > 500)) {
removeMe();
}
if ((_x > 800) || (_y > 800)) {
removeMe();
}
if (exploding && (explosion.explode._currentframe == explosion.explode._totalframes)) {
explosion.explode.swapDepths(explosion.getNextHighestDepth());
explosion.explode.removeMovieClip();
removeMe();
}
}
function removeMe() {
bellStriker.GameController.__get__instance().removeLargeAmmoObject(this);
super.removeMe();
}
var speed = 30;
var weaponStrength = 0;
var fromGound = false;
}
Symbol 1340 MovieClip [__Packages.bellStriker.objects.LandingPadObject] Frame 0
class bellStriker.objects.LandingPadObject extends bellStriker.objects.BaseObject
{
var classTypeName;
function LandingPadObject () {
super();
classTypeName = "LandingPadObject";
}
}
Symbol 1341 MovieClip [__Packages.bellStriker.Huey] Frame 0
class bellStriker.Huey extends MovieClip
{
var smoke, hitZone, locatorZone, _x, _y, shadowStartX, shadow, shadowStartY, soundEngine, winch, _rotation, exploding, gotoAndPlay, pickupObject, collisionObject, _parent, down, left, _xscale, blur, filters, _visible;
function Huey () {
super();
}
function onLoad() {
smoke = [[], [], [], []];
hitZone._visible = false;
locatorZone._visible = false;
xPos = startX;
yPos = startY;
_x = xPos;
_y = yPos;
shadowStartX = shadow._x;
shadowStartY = shadow._y;
Key.addListener(this);
for (var _local2 in this) {
if (_local2.indexOf("smoke_1") > -1) {
this[_local2]._visible = false;
smoke[0].push(this[_local2]);
} else if (_local2.indexOf("smoke_2") > -1) {
this[_local2]._visible = false;
smoke[1].push(this[_local2]);
} else if (_local2.indexOf("smoke_3") > -1) {
this[_local2]._visible = false;
smoke[2].push(this[_local2]);
} else if (_local2.indexOf("smoke_4") > -1) {
this[_local2]._visible = false;
smoke[3].push(this[_local2]);
}
}
soundEngine = new Sound(this);
soundEngine.attachSound("chopper.mp3");
soundEngine.setVolume(0);
soundEngine.start(0, 100000);
}
function step() {
moveGlobal();
if (Key.isDown(32) && ((winch._currentframe == 1) || (winch._currentframe == 20))) {
winch.play();
bellStriker.GameController.__get__instance().playSoundEffect("winch.mp3");
if (winch._currentframe == 20) {
dropObject();
}
}
_x = xPos;
_y = yPos;
_rotation = rotate;
movePickupObject();
if (dead) {
deathCount++;
if (deathCount > 50) {
bellStriker.GameController.__get__instance().levelEnded(2);
}
}
positionSmoke();
}
function get currentWeapon() {
return(this["weapon" + (bellStriker.GameController.__get__instance().__get__selectedWeapons()[bellStriker.GameController.__get__instance().currentWeaponIndex].weaponIndex + 1)]);
}
function winchUp() {
if (winch._currentframe == 20) {
winch.play();
bellStriker.GameController.__get__instance().playSoundEffect("winch.mp3");
}
}
function get vSpeed() {
return(yInc);
}
function set vSpeed(value) {
yInc = value;
//return(vSpeed);
}
function onMouseDown() {
fireCount = 0;
fireBullets = true;
}
function set health(val) {
_health = val;
_health = Math.min(_health, 100);
setSmoke();
if ((_health <= 0) && (!exploding)) {
exploding = true;
gotoAndPlay("explode");
}
bellStriker.GameController.__get__instance().setUiHealth(_health);
//return(health);
}
function get health() {
return(_health);
}
function onMouseUp() {
fireBullets = false;
}
function checkForPickup() {
return((winch._currentframe == 20) && (pickupObject == null));
}
function getPickupX(object) {
var _local2 = new flash.geom.Point(winch.hook._x, winch.hook._y);
winch.localToGlobal(_local2);
object._parent.globalToLocal(_local2);
return(_local2.x - (object._width / 3));
}
function movePickupObject() {
if (pickupObject != null) {
pickupObject.pickingUp();
if (winch.hook._visible) {
pickupObject.swapDepths(pickupObject._parent.getNextHighestDepth());
winch.hook._visible = false;
}
var _local2 = new flash.geom.Point(winch.hook._x, winch.hook._y);
winch.localToGlobal(_local2);
pickupObject._parent.globalToLocal(_local2);
pickupObject._x = _local2.x - (pickupObject._width / 3);
pickupObject._y = _local2.y;
if (pickupObject.autoUp && (winch._currentframe == 20)) {
winch.play();
bellStriker.GameController.__get__instance().playSoundEffect("winch.mp3");
}
if (pickupObject.autoUp && (winch._currentframe == 1)) {
winch.hook._visible = true;
pickupObject.pickedUp();
pickupObject = null;
} else if (winch._currentframe == 1) {
dropObject();
}
}
}
function dropObject(collisionObject, destroy) {
pickupObject.drop(collisionObject, destroy);
pickupObject = null;
winch.hook._visible = true;
if (winch._currentframe > 1) {
winch.play();
bellStriker.GameController.__get__instance().playSoundEffect("winch.mp3");
}
}
function moveGlobal() {
if (collisionObject != null) {
var _local4 = new flash.geom.Point(collisionObject._x, collisionObject._y);
var _local2 = new flash.geom.Point(_x, _y);
collisionObject._parent.localToGlobal(_local4);
_parent.localToGlobal(_local2);
if (_local4.x > _local2.x) {
rotate = -6;
xInc = -30;
speed = -80;
} else {
rotate = 6;
xInc = 30;
speed = 80;
}
yPos = yPos - 2;
yInc = 0;
if (allowHitHealth) {
health = health - (3 * bellStriker.GameController.__get__instance().__get__shieldStrengthRatio());
}
allowHitHealth = false;
if (health <= 0) {
collisionObject.die(null, 0, 0, collisionObject.health);
dead = true;
if (_local4.x > _local2.x) {
}
}
}
if (collisionObject == null) {
allowHitHealth = true;
var _local3 = startY;
if (winch._currentframe > 1) {
_local3 = startY - 75;
}
if (yPos > _local3) {
yPos = _local3;
if (winch._currentframe > 1) {
yInc = -1;
down = false;
} else {
yInc = 0;
}
} else {
if (((Key.isDown(40) || (Key.isDown(83))) && (collisionObject == null)) && (health > 0)) {
if (yInc < 0) {
}
if (yInc < 7) {
yInc = yInc + (0.3 * (bellStriker.GameController.__get__instance().__get__speedRatio() / 2));
}
down = true;
} else if (down && (health > 0)) {
if (yInc > 0) {
yInc = yInc - (0.03 * (bellStriker.GameController.__get__instance().__get__stabilityRatio() * 1.2));
} else {
yInc = 0;
}
}
if (((Key.isDown(38) || (Key.isDown(87))) && (collisionObject == null)) && (health > 0)) {
if (yInc > 0) {
}
if (yInc > -7) {
yInc = yInc - (0.3 * (bellStriker.GameController.__get__instance().__get__speedRatio() / 2));
}
down = false;
} else if ((!down) && (health > 0)) {
if (yInc < 0) {
yInc = yInc + (0.03 * (bellStriker.GameController.__get__instance().__get__stabilityRatio() * 1.2));
} else {
yInc = 0;
}
}
if (yPos <= startY) {
yPos = yPos + yInc;
} else {
yPos = startY;
}
if (yPos < (startY - 10)) {
if (((Key.isDown(37) || (Key.isDown(65))) && (collisionObject == null)) && (health > 0)) {
if (rotate > -20) {
rotate = rotate - (0.75 * bellStriker.GameController.__get__instance().__get__speedRatio());
}
left = true;
} else if (left) {
if (rotate < 0) {
rotate = rotate + (0.25 * bellStriker.GameController.__get__instance().__get__stabilityRatio());
} else {
rotate = 0;
}
}
if (((Key.isDown(39) || (Key.isDown(68))) && (collisionObject == null)) && (health > 0)) {
if (rotate < 20) {
rotate = rotate + (0.75 * bellStriker.GameController.__get__instance().__get__speedRatio());
}
left = false;
} else if (!left) {
if (rotate > 0) {
rotate = rotate - (0.25 * bellStriker.GameController.__get__instance().__get__stabilityRatio());
} else {
rotate = 0;
}
}
} else {
rotate = 0;
}
if (yPos < startY) {
if (reverse) {
if (_xscale > -100) {
_xscale = _xscale - 15;
blur = blur + 5;
} else {
_xscale = -100;
blur = 0;
}
if (xPos < (Stage.width - startX)) {
xPos = xPos + 30;
bellStriker.GameController.__get__instance().__get__setting().moveAll(300);
} else {
xPos < (Stage.width - startX);
}
} else {
if (_xscale < 100) {
_xscale = _xscale + 15;
blur = blur + 5;
} else {
_xscale = 100;
blur = 0;
}
if (xPos > startX) {
xPos = xPos - 20;
bellStriker.GameController.__get__instance().__get__setting().moveAll(-300);
} else {
xPos = startX;
}
}
if (blur > 0) {
var _local5 = new flash.filters.BlurFilter();
_local5.blurX = blur;
filters = [_local5];
} else {
filters = [];
}
}
speed = (rotate * 6) + xInc;
speed = speed * bellStriker.GameController.__get__instance().speedRatio;
if (rotate > 5) {
xInc = 20;
} else if (rotate < -5) {
xInc = -20;
} else if (xInc > 0) {
xInc = xInc - (0.2 * bellStriker.GameController.__get__instance().__get__stabilityRatio());
} else if (xInc < 0) {
xInc = xInc + (0.2 * bellStriker.GameController.__get__instance().__get__stabilityRatio());
} else {
xInc = 0;
}
}
}
if (bellStriker.GameController.__get__instance().soundOn) {
var _local6 = Math.abs(speed / 200) * 55;
soundEngine.setVolume(45 + _local6);
}
if (((yPos < startY) && (Math.abs(rotate) <= 6)) && (Math.abs(yInc) < 1)) {
if ((bobbing > 1) && (bobDirection == 1)) {
bobDirection = -1;
} else if ((bobbing < -1) && (bobDirection == -1)) {
bobDirection = 1;
}
bobbing = bobbing + ((0.05 * bellStriker.GameController.__get__instance().__get__stabilityRatio()) * bobDirection);
yPos = yPos + (bobbing / (4 * bellStriker.GameController.__get__instance().__get__stabilityRatio()));
}
if (yPos < 90) {
yPos = 93;
yInc = 0;
bobDirection = 1;
}
totalDistance = totalDistance + Math.abs(speed / 50);
currentDistance = currentDistance + (speed / 50);
if (health <= 0) {
yInc = yInc + 0.3;
dead = true;
if (_xscale < 0) {
_xscale = -100;
} else {
_xscale = 100;
}
} else if (_xscale < 0) {
shadow._rotation = _rotation;
shadow._x = -_rotation;
winch._rotation = rotate;
} else {
shadow._rotation = -_rotation;
shadow._x = _rotation;
winch._rotation = -rotate;
}
shadow._y = (startY - _y) + 20;
shadow._xscale = (_y / startY) * 100;
shadow._yscale = shadow._xscale;
shadow._alpha = shadow._xscale;
}
function onKeyDown() {
if ((health > 0) && (!bellStriker.GameController.__get__instance().__get__pause())) {
switch (Key.getCode()) {
case 49 :
case 97 :
if (bellStriker.GameController.__get__instance().__get__selectedWeapons().length >= 1) {
bellStriker.GameController.__get__instance().currentWeaponIndex = 0;
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
}
break;
case 50 :
case 98 :
if (bellStriker.GameController.__get__instance().__get__selectedWeapons().length >= 2) {
bellStriker.GameController.__get__instance().currentWeaponIndex = 1;
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
}
break;
case 51 :
case 99 :
if (bellStriker.GameController.__get__instance().__get__selectedWeapons().length >= 3) {
bellStriker.GameController.__get__instance().currentWeaponIndex = 2;
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
}
break;
case 80 :
case 112 :
bellStriker.GameController.__get__instance().togglePause();
break;
case 82 :
case 114 :
reverse = !reverse;
}
}
}
function drawBitmap() {
var _local3 = bellStriker.GameController.__get__instance().canvas;
var _local4 = bellStriker.GameController.__get__instance().rect;
var _local2 = new flash.geom.Matrix();
_local2.rotate(rotate * (Math.PI/180));
_local2.translate(xPos, yPos);
_local3.draw(this, _local2, null, null, _local4, true);
}
function reset() {
crashed = false;
xPos = startX;
yPos = startY;
speed = 60;
_visible = true;
}
function get hasLanded() {
return(_y >= (startY - 10));
}
function soundSwitch() {
if (bellStriker.GameController.__get__instance().soundOn) {
soundEngine.setVolume(45);
} else {
soundEngine.setVolume(0);
}
}
function end() {
soundEngine.stop();
soundEngine.setVolume(0);
}
function setSmoke() {
if (health <= 70) {
for (var _local2 in smoke[0]) {
smoke[0][_local2]._visible = true;
}
} else {
for (var _local2 in smoke[0]) {
smoke[0][_local2]._visible = false;
}
}
if (health <= 50) {
for (var _local2 in smoke[1]) {
smoke[1][_local2]._visible = true;
}
} else {
for (var _local2 in smoke[1]) {
smoke[1][_local2]._visible = false;
}
}
if (health <= 30) {
for (var _local2 in smoke[2]) {
smoke[2][_local2]._visible = true;
}
} else {
for (var _local2 in smoke[2]) {
smoke[2][_local2]._visible = false;
}
}
if (health <= 10) {
for (var _local2 in smoke[3]) {
smoke[3][_local2]._visible = true;
}
} else {
for (var _local2 in smoke[3]) {
smoke[3][_local2]._visible = false;
}
}
}
function positionSmoke() {
for (var _local3 in smoke) {
for (var _local2 in smoke[_local3]) {
if (smoke[_local3][_local2].startRotation == null) {
smoke[_local3][_local2].startRotation = smoke[_local3][_local2]._rotation;
}
if (_xscale < 0) {
smoke[_local3][_local2]._rotation = smoke[_local3][_local2].startRotation + _rotation;
} else {
smoke[_local3][_local2]._rotation = smoke[_local3][_local2].startRotation - _rotation;
}
smoke[_local3][_local2]._xscale = Math.abs(_xscale);
smoke[_local3][_local2]._yscale = Math.abs(_xscale);
}
}
}
function hit(strength) {
if (strength) {
health = health - (strength * bellStriker.GameController.__get__instance().__get__shieldStrengthRatio());
bellStriker.GameController.__get__instance().data.__set__hitsTaken((bellStriker.GameController.__get__instance().data.__get__hitsTaken()+1));
}
}
var speed = 0;
var fuel = 100;
var startX = 150;
var startY = 350;
var rotate = 0;
var xPos = 0;
var yPos = 0;
var yInc = 0;
var xInc = 0;
var bobbing = 0;
var bobDirection = -1;
var _health = 100;
var currentX = 0;
var minX = -35000;
var reverse = false;
var crashed = false;
var knock = false;
var knockCount = 0;
var knockAmount = 0;
var rapidFuel = false;
var fireBullets = false;
var fireCount = 0;
var fireRelease = 6;
var totalDistance = 0;
var currentDistance = 0;
var locked = false;
var isColliding = true;
var collidingCount = 0;
var allowHitHealth = true;
var dead = false;
var deathCount = 0;
}
Symbol 1342 MovieClip [__Packages.bellStriker.objects.GroundObject] Frame 0
class bellStriker.objects.GroundObject extends bellStriker.objects.BaseObject
{
var classTypeName, health, dropToY, _y, objectsOnMe, nearbyObjects, _totalframes, currentHealth, dead, isEnemy, _currentframe, _name, play, _x, _width, _height, hitZone;
function GroundObject () {
super();
classTypeName = "GroundObject";
health = 10;
}
function onLoad() {
super.onLoad();
dropToY = _y;
objectsOnMe = [];
nearbyObjects = [];
}
function loaded() {
}
function die(ammo, healthPercent, explodingY, forceReduce) {
trace((("AMMO :: " + ammo.weaponStrength) + "--") + healthPercent);
if (_totalframes > 1) {
super.die(ammo);
if (explodingY) {
dropToY = explodingY;
}
var _local3 = 0;
if (ammo) {
if (healthPercent) {
_local3 = ammo.weaponStrength * healthPercent;
} else {
_local3 = ammo.weaponStrength;
}
} else if (forceReduce) {
if (healthPercent) {
_local3 = forceReduce * healthPercent;
} else {
_local3 = forceReduce;
}
} else {
_local3 = bellStriker.GameController.__get__instance().__get__currentWeapon().weaponStrength * bellStriker.GameController.__get__instance().__get__weaponStrengthRatio();
}
currentHealth = currentHealth - _local3;
if (currentHealth <= 0) {
if (!dead) {
bellStriker.GameController.__get__instance().__get__currentLevel().checkObjectiveDie(this);
bellStriker.GameController.__get__instance().__get__currentLevel().checkObjective(this);
bellStriker.GameController.__get__instance().checkDieAchievement(this);
if ((!isEnemy) && (score > 0)) {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score - score;
} else {
bellStriker.GameController.__get__instance().score = bellStriker.GameController.__get__instance().score + score;
}
}
dead = true;
}
bellStriker.GameController.__get__instance().updateTarget(this);
finalDie();
}
}
function finalDie() {
if (currentHealth <= 0) {
if (_currentframe == 1) {
exploding = true;
trace((classTypeName + "_") + _name);
play();
var _local2 = 0;
while (_local2 < objectsOnMe.length) {
var _local4 = Math.sqrt(((_x - objectsOnMe[_local2]._x) * (_x - objectsOnMe[_local2]._x)) + ((_y - objectsOnMe[_local2]._y) * (_y - objectsOnMe[_local2]._y)));
var _local3 = health / _local4;
if (objectsOnMe[_local2].currentHealth > 0) {
objectsOnMe[_local2].die(null, 0, 0, _local3);
}
if (objectsOnMe[_local2]._width < (_width / 1.5)) {
objectsOnMe[_local2].dropToY = _y + (_height / 2);
}
objectsOnMe[_local2].canCheckWater = true;
_local2++;
}
}
}
}
function onRollOut() {
bellStriker.GameController.__get__instance().targetOut();
}
function onDragOut() {
bellStriker.GameController.__get__instance().targetOut();
}
function onRollOver() {
bellStriker.GameController.__get__instance().targetOut();
}
function onDragOver() {
bellStriker.GameController.__get__instance().targetOut();
}
function onReleaseOutside() {
bellStriker.GameController.__get__instance().targetOut();
}
function step() {
super.step();
if (_totalframes > 1) {
if (hitZone.hitTest(_root._xmouse, _root._ymouse)) {
bellStriker.GameController.__get__instance().targetOver(this);
}
}
if (classTypeName != "PickupObject") {
if (dropToY < _y) {
_y = _y + 1.5;
} else {
_y = dropToY;
}
}
}
function removeMe() {
trace("DIE :: " + currentHealth);
if (currentHealth <= 0) {
bellStriker.GameController.__get__instance().__get__currentLevel().checkObjectiveDie(this);
} else {
bellStriker.GameController.__get__instance().__get__currentLevel().checkObjective(this);
}
bellStriker.GameController.__get__instance().removeGroundObject(this);
super.removeMe();
}
var exploding = false;
var canCheckWater = false;
var noSittingOn = false;
var score = 0;
}
Symbol 1343 MovieClip [__Packages.bellStriker.objects.CollisionObject] Frame 0
class bellStriker.objects.CollisionObject extends bellStriker.objects.GroundObject
{
var classTypeName, _xscale, _rotation, flexxed;
function CollisionObject () {
super();
classTypeName = "CollisionObject";
}
function onLoad() {
super.onLoad();
}
function flex() {
if (allowFlex) {
flexAmount = flexAmount * -0.5;
_xscale = _xscale + flexAmount;
_rotation = _rotation + flexAmount;
flexCount = 0;
flexxed = true;
}
}
function step() {
super.step();
if (flexxed) {
flexCount++;
if (flexCount > 1) {
flex();
flexxed = false;
}
}
}
function removeMe() {
bellStriker.GameController.__get__instance().removeCollisionObject(this);
super.removeMe();
}
var flexAmount = 0.2;
var flexCount = 0;
var allowFlex = false;
}
Symbol 1344 MovieClip [__Packages.bellStriker.objects.PickupObject] Frame 0
class bellStriker.objects.PickupObject extends bellStriker.objects.GroundObject
{
var classTypeName, health, collisionObject, onEnterFrame, startY, _y, currentHealth, play, _rotation, getDepth, swapDepths, startDepth, _visible, removeMe, targetType;
function PickupObject () {
super();
classTypeName = "PickupObject";
health = 50;
}
function drop(collisionObject, destroy) {
if (collisionObject) {
this.collisionObject = collisionObject;
this.destroy = destroy;
}
onEnterFrame = quickStep;
dropping = true;
}
function step() {
super.step();
}
function quickStep() {
super.quickStep();
var _local3 = startY;
trace("DROPPING - " + dropping);
if (dropping && (_y < startY)) {
dropInc = dropInc + 0.15;
_y = _y + dropInc;
}
if (dropping) {
collisionObject = bellStriker.GameController.__get__instance().getCollisionObject(this);
}
if (collisionObject) {
bellStriker.GameController.__get__instance().__get__currentLevel().checkObjective(this, collisionObject);
}
if (_y >= startY) {
if ((collisionObject != null) && (collisionObject.classTypeName == "WaterObject")) {
currentHealth = 0;
play();
}
if (destroy) {
play();
}
_y = startY;
if (!autoUp) {
_rotation = 0;
}
if ((collisionObject && ((collisionObject._y + collisionObject._height) > _y)) && (collisionObject.getDepth() > getDepth())) {
swapDepths(collisionObject);
} else {
swapDepths(startDepth);
}
collisionObject = null;
dropInc = 0.1;
delete onEnterFrame;
dropping = false;
}
}
function pickedUp() {
bellStriker.GameController.__get__instance().data.__set__items((bellStriker.GameController.__get__instance().data.__get__items()+1));
bellStriker.GameController.__get__instance().__get__currentLevel().checkObjective(this);
bellStriker.GameController.__get__instance().checkRescueAchievement(this);
_visible = false;
removeMe();
}
function pickingUp() {
targetType._visible = false;
}
var dropping = false;
var dropInc = 0.2;
var autoUp = true;
var destroy = false;
}
Symbol 1345 MovieClip [__Packages.bellStriker.Weapon] Frame 0
class bellStriker.Weapon extends MovieClip
{
function Weapon () {
super();
}
function onLoad() {
}
var shootMax = 20;
var ammoFrame = 1;
}
Symbol 1346 MovieClip [__Packages.bellStriker.Data] Frame 0
class bellStriker.Data
{
var levels, achievements, weapons, skills;
function Data (loadObj) {
levels = new Array();
var _local8 = new Object();
_local8.name = "Charity day";
_local8.description = "The Red Cross have been making charity food supply drops to remote villages in the area. They have increasingly become under heavy fire from Juam's army and are missing their supply drop off points.";
_local8.primary = "Pick up the dropped supplies and deliver them to the waiting villages.";
_local8.secondary = "Rescue the ambushed ambulance team who have come under attack.";
_local8.general = "When carrying items on your winch, keep high enough above the trees and water!";
_local8.primaryTypeA = bellStriker.Level.TYPE_PICKUP;
_local8.primaryTypeB = bellStriker.Level.TYPE_DROP;
_local8.secondaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local8.secondaryTypeB = bellStriker.Level.TYPE_SAVE;
_local8.primaryScore = 800;
_local8.secondaryScore = 1200;
_local8.timeOfDay = bellStriker.Level.TIME_DAY;
_local8.locked = false;
_local8.completed = false;
_local8.s = 0;
_local8.a = 0;
var _local17 = new Object();
_local17.name = "Stop listening";
_local17.description = "Carlos seems to know our every move and our intelligence shows that he has a number of communication posts deep in the jungle that his men are eavesdropping from.";
_local17.primary = "Eliminate the communication posts listening in on our communication lines.";
_local17.secondary = "Rescue our man taken hostage on a covert operation.";
_local17.general = "When on a rescue mission, be careful not to take out the hostage by blowing up too many surrounding buildings.";
_local17.primaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local17.secondaryTypeA = bellStriker.Level.TYPE_SAVE;
_local17.primaryScore = 400;
_local17.secondaryScore = 1500;
_local17.timeOfDay = bellStriker.Level.TIME_DUSK;
_local17.locked = true;
_local17.completed = false;
_local17.s = 0;
_local17.a = 0;
var _local16 = new Object();
_local16.name = "Stop 'em coming";
_local16.description = "We know that Juam is using sophisticated drug factories deep in the jungle and only has one main supply route in and out.";
_local16.primary = "Destroy the bridge on the main road out used for smuggling.";
_local16.secondary = "Wipe out the fuel depot on the river that keeps the vehicles rolling.";
_local16.general = "Look for hidden medikits and ammo.";
_local16.primaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local16.secondaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local16.primaryScore = 2500;
_local16.secondaryScore = 1500;
_local16.timeOfDay = bellStriker.Level.TIME_NIGHT;
_local16.locked = true;
_local16.completed = false;
_local16.s = 0;
_local16.a = 0;
var _local15 = new Object();
_local15.name = "Smokin' cloud";
_local15.description = "Intelligence has located 3 of Juam's smaller drug making facilities. They are heavily guarded but need taking out.";
_local15.primary = "Destroy the drug factories and any of Juam's army protecting them.";
_local15.secondary = "Rescue the workers on the plantations growing essential ingredients.";
_local15.general = "Be careful not to wipe out the plantation workers, you have to rescue them all.";
_local15.primaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local15.secondaryTypeA = bellStriker.Level.TYPE_PICKUP;
_local15.primaryScore = 1500;
_local15.secondaryScore = 250;
_local15.timeOfDay = bellStriker.Level.TIME_DUSK;
_local15.locked = true;
_local15.completed = false;
_local15.s = 0;
_local15.a = 0;
var _local14 = new Object();
_local14.name = "Put up, take down";
_local14.description = "Carlos just doesn't give up. Where we destroy, he builds. Construction machinery has been spotted near a local village, with plans to build new factories and road network.";
_local14.primary = "Destroy the construction machinery being used.";
_local14.secondary = "Take out the newly laid fuel lines.";
_local14.general = "As always, take out as many enemies you find along the way and pick up supplies for yourself.";
_local14.primaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local14.secondaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local14.primaryScore = 1500;
_local14.secondaryScore = 350;
_local14.timeOfDay = bellStriker.Level.TIME_DAY;
_local14.locked = true;
_local14.completed = false;
_local14.s = 0;
_local14.a = 0;
var _local10 = new Object();
_local10.name = "Rescue mission";
_local10.description = "2 of your fellow pilots have been taken down while transporting supplies behind enemy lines.";
_local10.primary = "Rescue the pilots to safety";
_local10.secondary = "Pick up the supplies they were transporting and bring them back to base.";
_local10.general = "Be careful not to take out friendly targets or supplies.";
_local10.primaryTypeA = bellStriker.Level.TYPE_PICKUP;
_local10.secondaryTypeA = bellStriker.Level.TYPE_PICKUP;
_local10.secondaryTypeB = bellStriker.Level.TYPE_DROP;
_local10.primaryScore = 2000;
_local10.secondaryScore = 1500;
_local10.timeOfDay = bellStriker.Level.TIME_DUSK;
_local10.locked = true;
_local10.completed = false;
_local10.s = 0;
_local10.a = 0;
var _local9 = new Object();
_local9.name = "Cut the power";
_local9.description = "Carlos' men have taken over a government power plant and waterworks for his own use. This plant is essential to the locals in the region.";
_local9.primary = "Rescue the power plant from the hands of Carlos' army and reinstate it.";
_local9.secondary = "Rescue the engineers and workers of these plants locked up nearby.";
_local9.general = "Ensure that the plants stay in working order and rescue all engineers.";
_local9.primaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local9.primaryTypeB = bellStriker.Level.TYPE_SAVE;
_local9.secondaryTypeA = bellStriker.Level.TYPE_PICKUP;
_local9.primaryScore = 300;
_local9.secondaryScore = 400;
_local9.timeOfDay = bellStriker.Level.TIME_DAY;
_local9.locked = true;
_local9.completed = false;
_local9.s = 0;
_local9.a = 0;
var _local13 = new Object();
_local13.name = "The drugs don't work";
_local13.description = "It's rumoured that Carlos Juam's scientists have developed a revolutionary new machine to develop cocaine disguised as sugar.";
_local13.primary = "Take out the scientists and their laboratory.";
_local13.secondary = "Find and destroy the machine prototype.";
_local13.general = "Destroy as much material as you can, this research must never be found and re-used";
_local13.primaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local13.secondaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local13.primaryScore = 500;
_local13.secondaryScore = 3500;
_local13.timeOfDay = bellStriker.Level.TIME_NIGHT;
_local13.locked = true;
_local13.completed = false;
_local13.s = 0;
_local13.a = 0;
var _local11 = new Object();
_local11.name = "Where is Carlos Juam?";
_local11.description = "We're still unsure of the whereabouts of Carlos Juam but we know where his right-hand man, Antonio Andreas is located. Our men are in his house and have him captured but they are trapped and surrounded by Juam's army.";
_local11.primary = "Take out Antonio's heavy security so our men can get out.";
_local11.secondary = "Pick up our men and Antonio for interrogation.";
_local11.general = "It's a long way back to base over enemy territory - watch yourself!";
_local11.primaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local11.secondaryTypeA = bellStriker.Level.TYPE_PICKUP;
_local11.primaryScore = 500;
_local11.secondaryScore = 1000;
_local11.timeOfDay = bellStriker.Level.TIME_NIGHT;
_local11.locked = true;
_local11.completed = false;
_local11.s = 0;
_local11.a = 0;
var _local12 = new Object();
_local12.name = "Showtime!";
_local12.description = "Carlos' has been found but he has the heaviest security you will have encountered.";
_local12.primary = "Destroy Carlos Juam's compound and his heavy weapons.";
_local12.secondary = "Capture Carlos, he should come easily now.";
_local12.general = "Don't kill Carlos, we need to interrogate him.";
_local12.primaryTypeA = bellStriker.Level.TYPE_DESTROY;
_local12.secondaryTypeA = bellStriker.Level.TYPE_PICKUP;
_local12.primaryScore = 3000;
_local12.secondaryScore = 1500;
_local12.timeOfDay = bellStriker.Level.TIME_DUSK;
_local12.locked = true;
_local12.completed = false;
_local12.s = 0;
_local12.a = 0;
levels.push(_local8);
levels.push(_local17);
levels.push(_local16);
levels.push(_local15);
levels.push(_local14);
levels.push(_local10);
levels.push(_local9);
levels.push(_local13);
levels.push(_local11);
levels.push(_local12);
achievements = new Array();
var _local27 = new Object();
_local27.name = "Rescue 8 donkeys.";
_local27.type = bellStriker.GameController.ACHIEVEMENT_RESCUE;
_local27.total = 8;
_local27.score = 300;
_local27.current = 0;
var _local26 = new Object();
_local26.name = "Take out 4 water planes!";
_local26.type = bellStriker.GameController.ACHIEVEMENT_DESTROY;
_local26.total = 4;
_local26.score = 1000;
_local26.current = 0;
var _local25 = new Object();
_local25.name = "Rescue 15 field workers (excluding targets on a primary or secondary mission).";
_local25.type = bellStriker.GameController.ACHIEVEMENT_RESCUE;
_local25.total = 15;
_local25.score = 800;
_local25.current = 0;
var _local24 = new Object();
_local24.name = "Take out 12 canoes.";
_local24.type = bellStriker.GameController.ACHIEVEMENT_DESTROY;
_local24.total = 12;
_local24.score = 500;
_local24.current = 0;
var _local23 = new Object();
_local23.name = "Destroy 6 bridges (excluding targets on a primary or secondary mission).";
_local23.type = bellStriker.GameController.ACHIEVEMENT_DESTROY;
_local23.total = 6;
_local23.score = 1500;
_local23.current = 0;
var _local22 = new Object();
_local22.name = "Pick up 20 crates.";
_local22.type = bellStriker.GameController.ACHIEVEMENT_RESCUE;
_local22.total = 20;
_local22.score = 600;
_local22.current = 0;
var _local21 = new Object();
_local21.name = "Pick up 15 oil drums.";
_local21.type = bellStriker.GameController.ACHIEVEMENT_RESCUE;
_local21.total = 15;
_local21.score = 700;
_local21.current = 0;
var _local34 = new Object();
_local34.name = "Take out 8 transportation trucks.";
_local34.type = bellStriker.GameController.ACHIEVEMENT_DESTROY;
_local34.total = 8;
_local34.score = 900;
_local34.current = 0;
var _local32 = new Object();
_local32.name = "Rescue 5 cows.";
_local32.type = bellStriker.GameController.ACHIEVEMENT_RESCUE;
_local32.total = 5;
_local32.score = 300;
_local32.current = 0;
var _local30 = new Object();
_local30.name = "Rescue 15 sheep.";
_local30.type = bellStriker.GameController.ACHIEVEMENT_RESCUE;
_local30.total = 15;
_local30.score = 400;
_local30.current = 0;
var _local31 = new Object();
_local31.name = "Take out 15 enemy watchtowers.";
_local31.type = bellStriker.GameController.ACHIEVEMENT_DESTROY;
_local31.total = 15;
_local31.score = 1000;
_local31.current = 0;
var _local28 = new Object();
_local28.name = "Destroy 10 white vans (not ambulances!).";
_local28.type = bellStriker.GameController.ACHIEVEMENT_DESTROY;
_local28.total = 10;
_local28.score = 800;
_local28.current = 0;
var _local29 = new Object();
_local29.name = "Take out 10 fuel tanks.";
_local29.type = bellStriker.GameController.ACHIEVEMENT_DESTROY;
_local29.total = 10;
_local29.score = 1200;
_local29.current = 0;
var _local33 = new Object();
_local33.name = "Destroy 7 gas tanks (excluding targets on a primary or secondary mission).";
_local33.type = bellStriker.GameController.ACHIEVEMENT_DESTROY;
_local33.total = 7;
_local33.score = 1500;
_local33.current = 0;
achievements.push(_local27);
achievements.push(_local26);
achievements.push(_local25);
achievements.push(_local24);
achievements.push(_local23);
achievements.push(_local22);
achievements.push(_local21);
achievements.push(_local34);
achievements.push(_local32);
achievements.push(_local30);
achievements.push(_local31);
achievements.push(_local28);
achievements.push(_local29);
achievements.push(_local33);
weapons = new Array();
var _local19 = new bellStriker.Weapon();
_local19.name = "M60 Machine Gun";
_local19.description = "A belt-fed machine gun firing 7.62 mm armour piercing rounds. Most useful for enemy personnel.";
_local19.weaponIndex = 0;
_local19.maxRotation = 85;
_local19.minRotation = -45;
_local19.weaponStrength = 5;
_local19.shootMax = 4;
_local19.rounds = 300;
_local19.price = 300;
_local19.ammoPrice = 100;
_local19.selected = false;
_local19.active = true;
_local19.ammo = 1500;
var _local7 = new bellStriker.Weapon();
_local7.name = "M261 Rocket Launcher";
_local7.description = "Carries free-flight 70 mm rockets. These rockets are generally used against vehicles and personnel.";
_local7.weaponIndex = 1;
_local7.maxRotation = 0;
_local7.minRotation = 0;
_local7.weaponStrength = 80;
_local7.weaponSpeed = 25;
_local7.shootMax = 25;
_local7.ammoName = "object_rocket";
_local7.ammoFrame = 2;
_local7.price = 1300;
_local7.ammoPrice = 300;
_local7.rounds = 24;
_local7.selected = false;
_local7.active = false;
_local7.ammo = 0;
var _local18 = new bellStriker.Weapon();
_local18.name = "M134 Machine Gun";
_local18.description = "This multi-barrel gun fires up to 3000 rounds a minute. Great for clusters of small ground targets.";
_local18.weaponIndex = 2;
_local18.maxRotation = 45;
_local18.minRotation = -25;
_local18.weaponStrength = 12;
_local18.shootMax = 6;
_local18.price = 1000;
_local18.ammoPrice = 150;
_local18.rounds = 200;
_local18.selected = false;
_local18.active = false;
_local18.ammo = 0;
var _local6 = new bellStriker.Weapon();
_local6.name = "M158 Rocket Launcher";
_local6.description = "Carries free-flight 70 mm rockets. These rockets are generally used against vehicles and personnel.";
_local6.weaponIndex = 3;
_local6.maxRotation = 0;
_local6.minRotation = 0;
_local6.weaponStrength = 60;
_local6.weaponSpeed = 30;
_local6.ammoName = "object_rocket";
_local6.ammoFrame = 2;
_local6.shootMax = 25;
_local6.price = 600;
_local6.ammoPrice = 200;
_local6.rounds = 16;
_local6.selected = false;
_local6.active = false;
_local6.ammo = 0;
var _local5 = new bellStriker.Weapon();
_local5.name = "M22 Guided Missiles";
_local5.description = "Consists of externally mounted wire guided missiles. Ideal for larger ground targets.";
_local5.weaponIndex = 4;
_local5.maxRotation = 0;
_local5.minRotation = 0;
_local5.weaponStrength = 200;
_local5.weaponSpeed = 40;
_local5.shootMax = 30;
_local5.ammoName = "object_rocket";
_local5.ammoFrame = 3;
_local5.price = 3000;
_local5.ammoPrice = 500;
_local5.rounds = 12;
_local5.selected = false;
_local5.active = false;
_local5.ammo = 0;
var _local4 = new bellStriker.Weapon();
_local4.name = "M5 Grenade Pod";
_local4.description = "Carries up to 300 rounds of 40mm ammunition. Ideal for clearing vehicles and personnel groups.";
_local4.weaponIndex = 5;
_local4.maxRotation = 106;
_local4.minRotation = -15;
_local4.weaponStrength = 30;
_local4.weaponSpeed = 20;
_local4.shootMax = 10;
_local4.ammoName = "object_rocket";
_local4.ammoFrame = 4;
_local4.price = 2000;
_local4.ammoPrice = 250;
_local4.rounds = 50;
_local4.selected = false;
_local4.active = false;
_local4.ammo = 0;
weapons.push(_local19);
weapons.push(_local7);
weapons.push(_local18);
weapons.push(_local6);
weapons.push(_local5);
weapons.push(_local4);
skills = new Array();
var _local38 = new Object();
_local38.name = "Weapon Accuracy";
_local38.price = 25;
_local38.level = 0;
var _local37 = new Object();
_local37.name = "Chopper Speed";
_local37.price = 25;
_local37.level = 0;
var _local36 = new Object();
_local36.name = "Chopper Stability";
_local36.price = 25;
_local36.level = 0;
var _local35 = new Object();
_local35.name = "Chopper Shield";
_local35.price = 25;
_local35.level = 0;
var _local39 = new Object();
_local39.name = "Weapon Strength";
_local39.price = 25;
_local39.level = 0;
skills.push(_local38);
skills.push(_local37);
skills.push(_local36);
skills.push(_local35);
skills.push(_local39);
if (loadObj) {
var _local3 = 0;
while (_local3 < levels.length) {
if (loadObj.levels[_local3]) {
for (var _local20 in loadObj.levels[_local3]) {
levels[_local3][_local20] = loadObj.levels[_local3][_local20];
}
}
_local3++;
}
_local3 = 0;
while (_local3 < achievements.length) {
if (loadObj.achievements[_local3]) {
for (var _local20 in loadObj.achievements[_local3]) {
achievements[_local3][_local20] = loadObj.achievements[_local3][_local20];
}
}
_local3++;
}
_local3 = 0;
while (_local3 < weapons.length) {
if (loadObj.weapons[_local3]) {
for (var _local20 in loadObj.weapons[_local3]) {
weapons[_local3][_local20] = loadObj.weapons[_local3][_local20];
}
}
_local3++;
}
_local3 = 0;
while (_local3 < skills.length) {
if (loadObj.skills[_local3]) {
for (var _local20 in loadObj.skills[_local3]) {
skills[_local3][_local20] = loadObj.skills[_local3][_local20];
}
}
_local3++;
}
_hits = (loadObj._hits ? (loadObj._hits) : 0);
_yoyos = (loadObj._yoyos ? (loadObj._yoyos) : 0);
startUnPaused = loadObj.startUnPaused;
time = (loadObj.time ? (loadObj.time) : 0);
targs = (loadObj.targs ? (loadObj.targs) : 0);
helper = (loadObj.helper ? (loadObj.helper) : 0);
helper2 = (loadObj.helper2 ? (loadObj.helper2) : 0);
stress = (loadObj.stress ? (loadObj.stress) : 0);
dudes = (loadObj.dudes ? (loadObj.dudes) : 0);
two = (loadObj.two ? (loadObj.two) : 0);
yeah = (loadObj.yeah ? (loadObj.yeah) : 0);
}
}
function get hits() {
return(Math.round(_hits * 0.567687));
}
function set hits(value) {
if (value > 0) {
_hits = value / 0.567687;
} else {
_hits = 0;
}
//return(hits);
}
function set deaths(value) {
time = value;
//return(deaths);
}
function get deaths() {
return(time);
}
function set enemyTargets(value) {
targs = value;
//return(enemyTargets);
}
function get enemyTargets() {
return(targs);
}
function set civilianTargets(value) {
helper = value;
//return(civilianTargets);
}
function get civilianTargets() {
return(helper);
}
function set missiles(value) {
helper2 = value;
//return(missiles);
}
function get missiles() {
return(helper2);
}
function set bullets(value) {
stress = value;
//return(bullets);
}
function get bullets() {
return(stress);
}
function set health(value) {
dudes = value;
//return(health);
}
function get health() {
return(dudes);
}
function set items(value) {
two = value;
//return(items);
}
function get items() {
return(two);
}
function set hitsTaken(value) {
yeah = value;
//return(hitsTaken);
}
function get hitsTaken() {
return(yeah);
}
function get yoyos() {
return(Math.round(_yoyos * 0.365879));
}
function set yoyos(value) {
if (value > 0) {
_yoyos = value / 0.365879;
} else {
_yoyos = 0;
}
//return(yoyos);
}
var _hits = 0;
var _yoyos = 0;
var time = 0;
var targs = 0;
var helper = 0;
var helper2 = 0;
var stress = 0;
var dudes = 0;
var two = 0;
var yeah = 0;
var startUnPaused = false;
}
Symbol 1347 MovieClip [__Packages.bellStriker.StateManager] Frame 0
class bellStriker.StateManager
{
function StateManager () {
}
static function hasSavedGame() {
trace(StateData2.data);
return(StateData2.data != null);
}
static function newGame() {
clearSO();
return(true);
}
static function loadGame() {
return(StateData2.data);
}
static function saveGame(data) {
clearSO();
var _local1 = new Object();
_local1._hits = data._hits;
_local1._yoyos = data._yoyos;
_local1.time = data.time;
_local1.targs = data.targs;
_local1.helper = data.helper;
_local1.helper2 = data.helper2;
_local1.stress = data.stress;
_local1.dudes = data.dudes;
_local1.two = data.two;
_local1.yeah = data.yeah;
_local1.levels = [];
_local1.achievements = [];
_local1.weapons = [];
_local1.skills = [];
var _local3 = 0;
while (_local3 < data.levels.length) {
_local1.levels[_local3] = new Object();
_local1.levels[_local3].completed = data.levels[_local3].completed;
_local1.levels[_local3].locked = data.levels[_local3].locked;
_local1.levels[_local3].s = data.levels[_local3].s;
_local1.levels[_local3].a = data.levels[_local3].a;
_local3++;
}
_local3 = 0;
while (_local3 < data.achievements.length) {
_local1.achievements[_local3] = new Object();
_local1.achievements[_local3].current = data.achievements[_local3].current;
_local3++;
}
_local3 = 0;
while (_local3 < data.weapons.length) {
_local1.weapons[_local3] = new Object();
_local1.weapons[_local3].selected = data.weapons[_local3].selected;
_local1.weapons[_local3].active = data.weapons[_local3].active;
_local1.weapons[_local3].ammo = data.weapons[_local3].ammo;
_local3++;
}
_local3 = 0;
while (_local3 < data.skills.length) {
_local1.skills[_local3] = new Object();
_local1.skills[_local3].level = data.skills[_local3].level;
_local3++;
}
StateData2.startUnPaused = data.startUnPaused;
StateData2.data = _local1;
StateData1.data = new Object({score:32423, cash:234034, levels:[2, 5, 7, 4], skills:[2, 5, 7, 8]});
StateData3.data = new Object({score:4365, cash:123, _yoyos:536, _hits:345, levels:[1, 5, 2, 76], skills:[2, 1, 728]});
StateData4.data = new Object({_score:32423, _cash:234034, hits:909345, levels:[2, 5, 7, 4], skills:[2, 5, 7, 8]});
return(StateData2.data);
}
static function get StateData1() {
var _local1 = SharedObject.getLocal("sdf98745jhksdf", "/");
return(_local1.data);
}
static function get StateData2() {
var _local1 = SharedObject.getLocal("sdf08734lkjhfgghvf", "/");
return(_local1.data);
}
static function get StateData3() {
var _local1 = SharedObject.getLocal("dfg3094356ljnjkhgf", "/");
return(_local1.data);
}
static function get StateData4() {
var _local1 = SharedObject.getLocal("bellstriker");
return(_local1.data);
}
static function clearSO() {
var _local1 = SharedObject.getLocal("sdf98745jhksdf", "/");
_local1.clear();
_local1.flush(10000);
_local1 = SharedObject.getLocal("sdf08734lkjhfgghvf", "/");
_local1.clear();
_local1.flush(10000);
_local1 = SharedObject.getLocal("dfg3094356ljnjkhgf", "/");
_local1.clear();
_local1.flush(10000);
_local1 = SharedObject.getLocal("bellstriker");
_local1.clear();
_local1.flush(10000);
}
}
Symbol 1348 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var timerClip, _tlInitted, currentTime, _gcInterval, overwriteManager;
var vars, duration, delay, combinedTimeScale, active, target, ease, tweens, initted, initTime, startTime, endTargetID, _hasPlugins, _hasUpdate, started, gc;
function TweenLite ($target, $duration, $vars) {
if ((timerClip._visible != false) || (!_tlInitted)) {
gs.plugins.TweenPlugin.activate([gs.plugins.TintPlugin, gs.plugins.RemoveTintPlugin, gs.plugins.FramePlugin, gs.plugins.AutoAlphaPlugin, gs.plugins.VisiblePlugin, gs.plugins.VolumePlugin, gs.plugins.EndArrayPlugin]);
currentTime = getTimer();
var _local3 = 999;
while (_root.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
timerClip = _root.createEmptyMovieClip("__tweenLite_mc", _local3);
timerClip._visible = false;
clearInterval(_gcInterval);
_gcInterval = setInterval(killGarbage, 2000);
timerClip.onEnterFrame = updateAll;
if (overwriteManager == undefined) {
overwriteManager = {mode:1, enabled:false};
}
_tlInitted = true;
}
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
combinedTimeScale = $vars.timeScale || 1;
active = Boolean(($duration == 0) && (delay == 0));
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
ease = vars.ease;
tweens = [];
initted = false;
initTime = currentTime;
startTime = initTime + (delay * 1000);
endTargetID = getID($target, true);
var _local6 = ((($vars.overwrite == undefined) || ((!overwriteManager.enabled) && ($vars.overwrite > 1))) ? (overwriteManager.mode) : (Number($vars.overwrite)));
if ((_local6 == 1) && ($target != undefined)) {
delete masterList[endTargetID];
masterList[endTargetID] = {target:$target, tweens:[this]};
} else {
masterList[endTargetID].tweens.push(this);
}
if (active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
if (active) {
render(startTime + 1);
} else {
render(startTime);
}
if ((vars._visible != undefined) && (vars.runBackwards == true)) {
target._visible = vars._visible;
}
}
}
function initTweenVals() {
var _local2;
var _local5;
var _local4;
if ((vars.timeScale != undefined) && (target.timeScale != undefined)) {
tweens[tweens.length] = new gs.utils.tween.TweenInfo(target, "timeScale", target.timeScale, vars.timeScale - target.timeScale, "timeScale", false);
}
for (_local2 in vars) {
if (_reservedProps[_local2] != undefined) {
} else if (plugins[_local2] != undefined) {
_local4 = new plugins[_local2]();
if (_local4.onInitTween(target, vars[_local2], this) == false) {
tweens[tweens.length] = new gs.utils.tween.TweenInfo(target, _local2, target[_local2], ((typeof(vars[_local2]) == "number") ? (vars[_local2] - target[_local2]) : (Number(vars[_local2]))), _local2, false);
} else {
tweens[tweens.length] = new gs.utils.tween.TweenInfo(_local4, "changeFactor", 0, 1, ((_local4.overwriteProps.length == 1) ? (_local4.overwriteProps[0]) : "_MULTIPLE_"), true);
_hasPlugins = true;
}
} else {
tweens[tweens.length] = new gs.utils.tween.TweenInfo(target, _local2, target[_local2], ((typeof(vars[_local2]) == "number") ? (vars[_local2] - target[_local2]) : (Number(vars[_local2]))), _local2, false);
}
}
if (vars.runBackwards == true) {
var _local3;
_local5 = tweens.length - 1;
while (_local5 > -1) {
_local3 = tweens[_local5];
_local3.start = _local3.start + _local3.change;
_local3.change = -_local3.change;
_local5--;
}
}
if (vars.onUpdate != null) {
_hasUpdate = true;
}
if (overwriteManager.enabled && (masterList[endTargetID] != undefined)) {
overwriteManager.manageOverwrites(this, masterList[endTargetID].tweens);
}
initted = true;
}
function activate() {
started = (active = true);
if (!initted) {
initTweenVals();
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
if (duration == 0.001) {
startTime = startTime - 1;
}
}
function render($t) {
var _local5 = ($t - startTime) * 0.001;
var _local4;
var _local2;
var _local3;
if (_local5 >= duration) {
_local5 = duration;
_local4 = (((ease == vars.ease) || (duration == 0.001)) ? 1 : 0);
} else {
_local4 = ease(_local5, 0, 1, duration);
}
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local4 * _local2.change);
_local3--;
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local5 == duration) {
complete(true);
}
}
function complete($skipRender) {
if ($skipRender != true) {
if (!initted) {
initTweenVals();
}
startTime = currentTime - ((duration * 1000) / combinedTimeScale);
render(currentTime);
return(undefined);
}
if (_hasPlugins) {
var _local2 = tweens.length - 1;
while (_local2 > -1) {
if ((tweens[_local2].isPlugin == true) && (tweens[_local2].target.onComplete != undefined)) {
tweens[_local2].target.onComplete();
}
_local2--;
}
}
if (vars.persist != true) {
enabled = (false);
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
}
function clear() {
tweens = [];
vars = {ease:vars.ease};
_hasUpdate = false;
}
function killVars($vars) {
if (overwriteManager.enabled) {
overwriteManager.killVars($vars, vars, tweens);
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:0}));
}
static function updateAll() {
var _local4 = (currentTime = getTimer());
var _local5 = masterList;
var _local6;
var _local3;
var _local2;
var _local1;
for (_local6 in _local5) {
_local3 = _local5[_local6].tweens;
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if (_local1.active) {
_local1.render(_local4);
} else if (_local1.gc) {
_local3.splice(_local2, 1);
} else if (_local4 >= _local1.startTime) {
_local1.activate();
_local1.render(_local4);
}
_local2--;
}
}
}
static function getID($target, $lookup) {
var _local3;
if ($lookup) {
var _local1 = masterList;
if (typeof($target) == "movieclip") {
if (_local1[String($target)] != undefined) {
return(String($target));
}
_local3 = String($target);
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].target == $target) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
static function removeTween($t, $clear) {
if ($clear != false) {
$t.clear();
}
$t.__set__enabled(false);
}
static function killTweensOf($target, $complete) {
var _local5 = getID($target, true);
var _local3 = masterList[_local5];
var _local2;
var _local1;
if (_local3 != undefined) {
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if ($complete && (!_local1.gc)) {
_local1.complete(false);
}
_local1.clear();
_local2--;
}
delete masterList[_local5];
}
}
static function killGarbage() {
var _local1 = masterList;
var _local2;
var _local3;
for (_local2 in _local1) {
if (_local1[_local2].tweens.length == 0) {
delete _local1[_local2];
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
return(vars.proxiedEase.apply(null, arguments.concat(vars.easeParams)));
}
function get enabled() {
return((gc ? false : true));
}
function set enabled($b) {
if ($b) {
if (masterList[endTargetID] == undefined) {
masterList[endTargetID] = {target:target, tweens:[this]};
} else {
var _local3 = masterList[endTargetID].tweens;
var _local4;
var _local2;
_local2 = _local3.length - 1;
while (_local2 > -1) {
if (_local3[_local2] == this) {
_local4 = true;
break;
}
_local2--;
}
if (!_local4) {
_local3[_local3.length] = this;
}
}
}
gc = ($b ? false : true);
if (gc) {
active = false;
} else {
active = started;
}
//return(enabled);
}
static var version = 10.092;
static var killDelayedCallsTo = killTweensOf;
static var masterList = {};
static var plugins = {};
static var _cnt = -16000;
static var _reservedProps = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, persist:1, renderOnStart:1, proxiedEase:1, easeParams:1, yoyo:1, loop:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, orientToBezier:1, timeScale:1};
}
Symbol 1349 MovieClip [__Packages.gs.plugins.TweenPlugin] Frame 0
class gs.plugins.TweenPlugin
{
var _tweens, _changeFactor, propName, round, overwriteProps;
function TweenPlugin () {
_tweens = [];
_changeFactor = 0;
}
function onInitTween($target, $value, $tween) {
addTween($target, propName, $target[propName], $value, propName);
return(true);
}
function addTween($object, $propName, $start, $end, $overwriteProp) {
if ($end != undefined) {
var _local3 = ((typeof($end) == "number") ? ($end - $start) : (Number($end)));
if (_local3 != 0) {
_tweens[_tweens.length] = new gs.utils.tween.TweenInfo($object, $propName, $start, _local3, $overwriteProp || ($propName));
}
}
}
function updateTweens($changeFactor) {
var _local3;
var _local2;
if (round) {
_local3 = _tweens.length - 1;
while (_local3 > -1) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = Math.round(_local2.start + (_local2.change * $changeFactor));
_local3--;
}
} else {
_local3 = _tweens.length - 1;
while (_local3 > -1) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local2.change * $changeFactor);
_local3--;
}
}
}
function set changeFactor($n) {
updateTweens($n);
_changeFactor = $n;
//return(changeFactor);
}
function get changeFactor() {
return(_changeFactor);
}
function killProps($lookup) {
var _local2;
_local2 = overwriteProps.length - 1;
while (_local2 > -1) {
if ($lookup[overwriteProps[_local2]] != undefined) {
overwriteProps.splice(_local2, 1);
}
_local2--;
}
_local2 = _tweens.length - 1;
while (_local2 > -1) {
if ($lookup[_tweens[_local2].name] != undefined) {
_tweens.splice(_local2, 1);
}
_local2--;
}
}
static function activate($plugins) {
var _local1;
var _local3;
_local1 = $plugins.length - 1;
while (_local1 > -1) {
_local3 = new $plugins[_local1]();
gs.TweenLite.plugins[_local3.propName] = $plugins[_local1];
_local1--;
}
return(true);
}
static var VERSION = 1.04;
static var API = 1;
}
Symbol 1350 MovieClip [__Packages.gs.utils.tween.TweenInfo] Frame 0
class gs.utils.tween.TweenInfo
{
var target, property, start, change, name, isPlugin;
function TweenInfo ($target, $property, $start, $change, $name, $isPlugin) {
target = $target;
property = $property;
start = $start;
change = $change;
name = $name;
isPlugin = $isPlugin;
}
}
Symbol 1351 MovieClip [__Packages.gs.plugins.TintPlugin] Frame 0
class gs.plugins.TintPlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, _ignoreAlpha, _color, _ct, _tweens, __get__changeFactor;
function TintPlugin () {
super();
propName = "tint";
overwriteProps = ["tint"];
}
function onInitTween($target, $value, $tween) {
if ((typeof($target) != "movieclip") && (!($target instanceof TextField))) {
return(false);
}
var _local2 = (($tween.vars._alpha != undefined) ? ($tween.vars._alpha) : ((($tween.vars.autoAlpha != undefined) ? ($tween.vars.autoAlpha) : ($target._alpha))));
var _local6 = ((($value == null) || ($tween.vars.removeTint == true)) ? ({rb:0, gb:0, bb:0, ab:0, ra:_local2, ga:_local2, ba:_local2, aa:_local2}) : ({rb:$value >> 16, gb:($value >> 8) & 255, bb:$value & 255, ra:0, ga:0, ba:0, aa:_local2}));
_ignoreAlpha = true;
init($target, _local6);
return(true);
}
function init($target, $end) {
_color = new Color($target);
_ct = _color.getTransform();
var _local5;
var _local2;
for (_local2 in $end) {
if (_ct[_local2] != $end[_local2]) {
_tweens[_tweens.length] = new gs.utils.tween.TweenInfo(_ct, _local2, _ct[_local2], $end[_local2] - _ct[_local2], "tint", false);
}
}
}
function set changeFactor($n) {
var _local3;
var _local2;
_local3 = _tweens.length - 1;
while (_local3 > -1) {
_local2 = _tweens[_local3];
_local2.target[_local2.property] = _local2.start + (_local2.change * $n);
_local3--;
}
if (_ignoreAlpha) {
var _local5 = _color.getTransform();
_ct.aa = _local5.aa;
_ct.ab = _local5.ab;
}
_color.setTransform(_ct);
//return(__get__changeFactor());
}
static var VERSION = 1.1;
static var API = 1;
}
Symbol 1352 MovieClip [__Packages.gs.plugins.RemoveTintPlugin] Frame 0
class gs.plugins.RemoveTintPlugin extends gs.plugins.TintPlugin
{
var propName;
function RemoveTintPlugin () {
super();
propName = "removeTint";
}
static var VERSION = 1;
static var API = 1;
}
Symbol 1353 MovieClip [__Packages.gs.plugins.FramePlugin] Frame 0
class gs.plugins.FramePlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, round, _target, frame, addTween, updateTweens, __get__changeFactor;
function FramePlugin () {
super();
propName = "frame";
overwriteProps = ["frame"];
round = true;
}
function onInitTween($target, $value, $tween) {
if ((typeof($target) != "movieclip") || (isNaN($value))) {
return(false);
}
_target = MovieClip($target);
frame = _target._currentframe;
addTween(this, "frame", frame, $value, "frame");
return(true);
}
function set changeFactor($n) {
updateTweens($n);
_target.gotoAndStop(frame);
//return(__get__changeFactor());
}
static var VERSION = 1.01;
static var API = 1;
}
Symbol 1354 MovieClip [__Packages.gs.plugins.AutoAlphaPlugin] Frame 0
class gs.plugins.AutoAlphaPlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, onComplete, _target, _tween, _visible, _tweenVisible, _alphaStart, _alphaChange, _tweenAlpha, __get__changeFactor;
function AutoAlphaPlugin () {
super();
propName = "autoAlpha";
overwriteProps = ["_alpha", "_visible"];
onComplete = onCompleteTween;
}
function onInitTween($target, $value, $tween) {
_target = $target;
_tween = $tween;
_visible = Boolean($value != 0);
_tweenVisible = true;
_alphaStart = _target._alpha;
_alphaChange = ((typeof($value) == "number") ? ($value - _alphaStart) : (Number($value)));
_tweenAlpha = Boolean(_alphaChange != 0);
return(true);
}
function killProps($lookup) {
super.killProps($lookup);
_tweenVisible = Boolean($lookup._visible == undefined);
_tweenAlpha = Boolean($lookup._alpha == undefined);
}
function onCompleteTween() {
if ((_tweenVisible && (_tween.vars.runBackwards != true)) && (_tween.ease == _tween.vars.ease)) {
_target._visible = _visible;
}
}
function set changeFactor($n) {
if (_tweenAlpha) {
_target._alpha = _alphaStart + (_alphaChange * $n);
}
if ((_target._visible != true) && (_tweenVisible)) {
_target._visible = true;
}
//return(__get__changeFactor());
}
static var VERSION = 1;
static var API = 1;
}
Symbol 1355 MovieClip [__Packages.gs.plugins.VisiblePlugin] Frame 0
class gs.plugins.VisiblePlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, onComplete, _target, _tween, _visible, __get__changeFactor;
function VisiblePlugin () {
super();
propName = "_visible";
overwriteProps = ["_visible"];
onComplete = onCompleteTween;
}
function onInitTween($target, $value, $tween) {
_target = $target;
_tween = $tween;
_visible = Boolean($value);
return(true);
}
function onCompleteTween() {
if ((_tween.vars.runBackwards != true) && (_tween.ease == _tween.vars.ease)) {
_target._visible = _visible;
}
}
function set changeFactor($n) {
if (_target._visible != true) {
_target._visible = true;
}
//return(__get__changeFactor());
}
static var VERSION = 1;
static var API = 1;
}
Symbol 1356 MovieClip [__Packages.gs.plugins.VolumePlugin] Frame 0
class gs.plugins.VolumePlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, _sound, volume, addTween, updateTweens, __get__changeFactor;
function VolumePlugin () {
super();
propName = "volume";
overwriteProps = ["volume"];
}
function onInitTween($target, $value, $tween) {
if (isNaN($value) || ((typeof($target) != "movieclip") && (!($target instanceof Sound)))) {
return(false);
}
_sound = ((typeof($target) == "movieclip") ? (new Sound($target)) : (Sound($target)));
volume = _sound.getVolume();
addTween(this, "volume", volume, $value, "volume");
return(true);
}
function set changeFactor($n) {
updateTweens($n);
_sound.setVolume(volume);
//return(__get__changeFactor());
}
static var VERSION = 1.01;
static var API = 1;
}
Symbol 1357 MovieClip [__Packages.gs.plugins.EndArrayPlugin] Frame 0
class gs.plugins.EndArrayPlugin extends gs.plugins.TweenPlugin
{
var propName, overwriteProps, _info, _a, round, __get__changeFactor;
function EndArrayPlugin () {
super();
propName = "endArray";
overwriteProps = ["endArray"];
_info = [];
}
function onInitTween($target, $value, $tween) {
if ((!($target instanceof Array)) || (!($value instanceof Array))) {
return(false);
}
var _local3 = $target;
var _local2 = $value;
init(_local3, _local2);
return(true);
}
function init($start, $end) {
_a = $start;
var _local2 = $end.length - 1;
while (_local2 > -1) {
if (($start[_local2] != $end[_local2]) && ($start[_local2] != undefined)) {
_info[_info.length] = new gs.utils.tween.ArrayTweenInfo(_local2, _a[_local2], $end[_local2] - _a[_local2]);
}
_local2--;
}
}
function set changeFactor($n) {
var _local3;
var _local2;
if (round) {
_local3 = _info.length - 1;
while (_local3 > -1) {
_local2 = _info[_local3];
_a[_local2.index] = Math.round(_local2.start + (_local2.change * $n));
_local3--;
}
} else {
_local3 = _info.length - 1;
while (_local3 > -1) {
_local2 = _info[_local3];
_a[_local2.index] = _local2.start + (_local2.change * $n);
_local3--;
}
}
//return(__get__changeFactor());
}
static var VERSION = 1.02;
static var API = 1;
}
Symbol 1358 MovieClip [__Packages.gs.utils.tween.ArrayTweenInfo] Frame 0
class gs.utils.tween.ArrayTweenInfo
{
var index, start, change;
function ArrayTweenInfo ($index, $start, $change) {
index = $index;
start = $start;
change = $change;
}
}
Symbol 1359 MovieClip [__Packages.bellStriker.objects.BulletObject] Frame 0
class bellStriker.objects.BulletObject extends bellStriker.objects.BaseObject
{
var classTypeName, _xscale, _yscale, speed, hitZone, wayPoint, _y, _x, _rotation, _currentframe, play;
function BulletObject () {
super();
classTypeName = "BulletObject";
}
function onLoad() {
_xscale = 60;
_yscale = 60;
speed = 30 + (Math.random() * 10);
hitZone._visible = false;
}
function step() {
checkHumanHit = false;
checkGroundObjectHit = false;
var _local2 = bellStriker.GameController.__get__instance().groundLevel;
if (wayPoint.y > 270) {
_local2 = wayPoint.y;
}
if ((_y >= (_local2 - 40)) && (_y < _local2)) {
checkGroundObjectHit = true;
checkHumanHit = true;
}
if (((_local2 == wayPoint.y) && ((wayPoint.x - bellStriker.GameController.__get__instance().__get__huey()._x) > 30)) && ((wayPoint.y - bellStriker.GameController.__get__instance().__get__huey()._y) > 0)) {
_x = _x - (Math.sin((_rotation - 90) * (Math.PI/180)) * (speed * 2));
_y = _y + (Math.cos((_rotation - 90) * (Math.PI/180)) * (speed * 2));
if ((!isEnemy) && ((_y >= wayPoint.y) || (_x >= wayPoint.x))) {
_y = wayPoint.y;
_x = wayPoint.x;
checkGroundObjectHit = true;
checkHumanHit = true;
hit();
return(undefined);
}
_x = _x - (Math.sin((_rotation - 90) * (Math.PI/180)) * (speed * -2));
_y = _y + (Math.cos((_rotation - 90) * (Math.PI/180)) * (speed * -2));
}
if ((!isEnemy) && ((_x >= (Stage.width + 300)) || (_y >= _local2))) {
hit();
return(undefined);
}
if (isEnemy && (((_y < -200) || (_x < -200)) || (_x >= (Stage.width + 300)))) {
hit();
return(undefined);
}
_x = _x - (Math.sin((_rotation - 90) * (Math.PI/180)) * speed);
_y = _y + (Math.cos((_rotation - 90) * (Math.PI/180)) * speed);
}
function hit() {
if (_currentframe == 1) {
play();
exploding = true;
}
}
function removeMe() {
super.removeMe();
bellStriker.GameController.__get__instance().removeBullet(this);
}
var isEnemy = false;
var exploding = false;
var removing = false;
var checkHumanHit = false;
var checkGroundObjectHit = false;
}
Symbol 1360 MovieClip [__Packages.bellStriker.objects.WeaponCratePickupObject] Frame 0
class bellStriker.objects.WeaponCratePickupObject extends bellStriker.objects.PickupObject
{
var autoUp, classTypeName, _currentframe, rounds;
function WeaponCratePickupObject () {
super();
autoUp = true;
classTypeName = "WeaponCratePickupObject";
}
function onLoad() {
super.onLoad();
}
function pickedUp() {
super.pickedUp();
bellStriker.GameController.__get__instance().addAmmo(_currentframe - 1, rounds);
}
}
Symbol 1361 MovieClip [__Packages.bellStriker.objects.MedikitPickupObject] Frame 0
class bellStriker.objects.MedikitPickupObject extends bellStriker.objects.PickupObject
{
var autoUp;
function MedikitPickupObject () {
super();
autoUp = true;
}
function onLoad() {
super.onLoad();
}
function pickedUp() {
super.pickedUp();
bellStriker.GameController.__get__instance().__get__huey().__set__health(100);
bellStriker.GameController.__get__instance().data.__set__health((bellStriker.GameController.__get__instance().data.__get__health()+1));
}
}
Symbol 1362 MovieClip [__Packages.bellStriker.objects.WeaponPickupObject] Frame 0
class bellStriker.objects.WeaponPickupObject extends bellStriker.objects.PickupObject
{
var autoUp, classTypeName, _currentframe;
function WeaponPickupObject () {
super();
autoUp = true;
classTypeName = "WeaponPickupObject";
}
function onLoad() {
super.onLoad();
}
function pickedUp() {
super.pickedUp();
bellStriker.GameController.__get__instance().activateWeapon(_currentframe - 1);
}
}
Symbol 1363 MovieClip [__Packages.bellStriker.objects.HumanObject] Frame 0
class bellStriker.objects.HumanObject extends bellStriker.objects.GroundObject
{
var classTypeName, health, shootTarget, removing, removeMe, isEnemy, localToGlobal, _rotation, gotoAndStop, ammoName, ammoFrame, weaponStrength, fireAnim, currentHealth, _currentframe, gotoAndPlay;
function HumanObject () {
super();
classTypeName = "HumanObject";
health = 10;
}
function onLoad() {
shootTarget._visible = false;
super.onLoad();
}
function loaded() {
}
function step() {
super.step();
if (dying) {
if (dieCount < 45) {
dieCount++;
} else {
removing = true;
removeMe();
}
} else if (isEnemy) {
var _local5 = new flash.geom.Point(shootTarget._x, shootTarget._y);
localToGlobal(_local5);
if (bellStriker.GameController.__get__instance().__get__huey().locatorZone.hitTest(this)) {
if (fireCount < fireRelease) {
fireCount++;
} else {
fireCount = 0;
var _local7 = Math.atan2(bellStriker.GameController.__get__instance().__get__huey()._y - _local5.y, bellStriker.GameController.__get__instance().__get__huey()._x - _local5.x) * 57.2957795130823;
var _local10 = true;
var _local4 = Math.abs(_local7);
var _local6 = Math.round((_local4 / 180) * 8);
if (_rotation < 90) {
_local6 = Math.abs(8 - Math.round((_local4 / 180) * 8));
}
trace("OT -- " + _local4);
if (((_local6 >= 1) && (_local6 <= 8)) && ((_local4 >= upperAngle) || (_local4 <= lowerAngle))) {
gotoAndStop(_local6);
} else {
_local10 = false;
}
if (_local10) {
_local7 = Math.atan2(bellStriker.GameController.__get__instance().__get__huey()._y - _local5.y, bellStriker.GameController.__get__instance().__get__huey()._x - _local5.x) * 57.2957795130823;
if (ammoName) {
var _local3 = bellStriker.GameController.__get__instance().addFireObject(ammoName, "bullet");
_local3.ammoFrame = ammoFrame;
_local3.weaponStrength = weaponStrength;
var _local9 = new flash.geom.Point(shootTarget._x, shootTarget._y);
localToGlobal(_local9);
_local3._x = _local9.x;
_local3._y = _local9.y;
_local3._xscale = (_local3._yscale = 90);
_local3.wayPoint = new flash.geom.Point(bellStriker.GameController.__get__instance().__get__huey()._x, bellStriker.GameController.__get__instance().__get__huey()._y);
_local3.fromGound = true;
_local3.currentTarget = bellStriker.GameController.__get__instance().huey;
_local3.step();
} else {
var _local8 = bellStriker.GameController.__get__instance().addFireObject("bulletHitObject", "bullet");
_local8._x = (bellStriker.GameController.__get__instance().__get__huey()._x - 30) + (Math.random() * 60);
_local8._y = (bellStriker.GameController.__get__instance().__get__huey()._y - 15) + (Math.random() * 30);
_local8._rotation = _local7;
bellStriker.GameController.__get__instance().__get__huey().hit(weaponStrength);
}
fireAnim.gotoAndPlay(1);
}
}
}
}
}
function finalDie() {
if ((currentHealth <= 0) && (_currentframe < 9)) {
dying = true;
gotoAndPlay(9);
var _local2 = Math.ceil(Math.random() * 2);
bellStriker.GameController.__get__instance().playSoundEffect(("die" + _local2) + ".mp3");
}
}
var fireCount = 0;
var fireRelease = 5;
var upperAngle = 0;
var lowerAngle = 180;
var dying = false;
var dieCount = 0;
}
Symbol 1364 MovieClip [__Packages.bellStriker.objects.FuelPickupObject] Frame 0
class bellStriker.objects.FuelPickupObject extends bellStriker.objects.PickupObject
{
var autoUp, classTypeName;
function FuelPickupObject () {
super();
autoUp = true;
classTypeName = "FuelPickupObject";
}
function onLoad() {
super.onLoad();
}
function pickedUp() {
super.pickedUp();
}
}
Symbol 1365 MovieClip [__Packages.bellStriker.objects.VehicleObject] Frame 0
class bellStriker.objects.VehicleObject extends bellStriker.objects.GroundObject
{
var classTypeName, health;
function VehicleObject () {
super();
classTypeName = "VehicleObject";
health = 40;
}
}
Symbol 1366 MovieClip [__Packages.bellStriker.objects.WaterObject] Frame 0
class bellStriker.objects.WaterObject extends bellStriker.objects.CollisionObject
{
var classTypeName, allowedY;
function WaterObject () {
super();
classTypeName = "WaterObject";
allowedY = 14;
}
function die() {
}
}
Symbol 1367 MovieClip [__Packages.bellStriker.objects.AnimalPickupObject] Frame 0
class bellStriker.objects.AnimalPickupObject extends bellStriker.objects.PickupObject
{
var autoUp, classTypeName, sound;
function AnimalPickupObject () {
super();
autoUp = true;
classTypeName = "AnimalPickupObject";
}
function onLoad() {
super.onLoad();
}
function pickedUp() {
super.pickedUp();
bellStriker.GameController.__get__instance().playSoundEffect(sound);
}
function die(ammo, healthPercent, explodingY, forceReduce) {
super.die();
bellStriker.GameController.__get__instance().playSoundEffect(sound);
}
}
Symbol 1368 MovieClip [__Packages.bellStriker.objects.HumanPickupObject] Frame 0
class bellStriker.objects.HumanPickupObject extends bellStriker.objects.PickupObject
{
var autoUp, classTypeName, play;
function HumanPickupObject () {
super();
autoUp = true;
classTypeName = "HumanPickupObject";
}
function onLoad() {
super.onLoad();
}
function pickedUp() {
super.pickedUp();
}
function die(ammo, healthPercent, explodingY, forceReduce) {
super.die(ammo, healthPercent, explodingY, forceReduce);
var _local3 = Math.ceil(Math.random() * 2);
bellStriker.GameController.__get__instance().playSoundEffect(("die" + _local3) + ".mp3");
play();
}
}
Symbol 1369 MovieClip [__Packages.bellStriker.objects.RocketObject] Frame 0
class bellStriker.objects.RocketObject extends bellStriker.objects.BaseAmmoObject
{
function RocketObject () {
super();
}
}
Symbol 1370 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1371 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 156 MovieClip [bulletHitGround] Frame 1
#initclip 135
Object.registerClass("bulletHitGround", bellStriker.objects.BaseObject);
#endinitclip
bellStriker.GameController.__get__instance().playSoundEffect("m60.mp3");
Symbol 156 MovieClip [bulletHitGround] Frame 15
this.removeMe();
stop();
Symbol 161 MovieClip [bulletHitObject] Frame 1
#initclip 44
Object.registerClass("bulletHitObject", bellStriker.objects.BaseObject);
#endinitclip
bellStriker.GameController.__get__instance().playSoundEffect("m60.mp3");
Symbol 161 MovieClip [bulletHitObject] Frame 5
if (noHit) {
this.removeMe();
stop();
}
Symbol 161 MovieClip [bulletHitObject] Frame 9
bellStriker.GameController.__get__instance().playSoundEffect("objectHit.mp3");
Symbol 161 MovieClip [bulletHitObject] Frame 16
this.removeMe();
stop();
Symbol 163 MovieClip [flag] Frame 1
#initclip 45
Object.registerClass("flag", bellStriker.objects.GroundObject);
#endinitclip
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 20
stop();
Symbol 169 MovieClip Frame 40
Symbol 177 MovieClip [weapon_m261] Frame 1
#initclip 46
Object.registerClass("weapon_m261", bellStriker.Weapon);
#endinitclip
weaponIndex = 1;
maxRotation = 0;
minRotation = 0;
weaponStrength = 60;
weaponSpeed = 30;
ammoName = "object_rocket";
ammoFrame = 2;
shootMax = 25;
Symbol 180 MovieClip [weapon_m158] Frame 1
#initclip 47
Object.registerClass("weapon_m158", bellStriker.Weapon);
#endinitclip
weaponIndex = 3;
maxRotation = 0;
minRotation = 0;
weaponStrength = 80;
weaponSpeed = 25;
shootMax = 25;
ammoName = "object_rocket";
ammoFrame = 2;
Symbol 187 MovieClip [weapon_m5] Frame 1
#initclip 48
Object.registerClass("weapon_m5", bellStriker.Weapon);
#endinitclip
weaponIndex = 5;
maxRotation = 106;
minRotation = -15;
weaponStrength = 30;
weaponSpeed = 20;
shootMax = 10;
ammoName = "object_rocket";
ammoFrame = 4;
stop();
Symbol 201 MovieClip [weapon_m60_attached] Frame 1
#initclip 49
Object.registerClass("weapon_m60_attached", bellStriker.Weapon);
#endinitclip
stop();
weaponIndex = 0;
maxRotation = 85;
minRotation = -45;
weaponStrength = 5;
shootMax = 4;
Symbol 208 MovieClip [weapon_m134] Frame 1
#initclip 50
Object.registerClass("weapon_m134", bellStriker.Weapon);
#endinitclip
stop();
weaponIndex = 2;
maxRotation = 45;
minRotation = -25;
weaponStrength = 10;
shootMax = 8;
Symbol 211 MovieClip [weapon_m22] Frame 1
#initclip 51
Object.registerClass("weapon_m22", bellStriker.Weapon);
#endinitclip
weaponIndex = 4;
maxRotation = 0;
minRotation = 0;
weaponStrength = 300;
weaponSpeed = 40;
shootMax = 30;
ammoName = "object_rocket";
ammoFrame = 3;
Symbol 239 MovieClip Frame 12
if (!noRemove) {
_parent.removeMe();
}
stop();
Symbol 245 MovieClip [huey] Frame 1
#initclip 52
Object.registerClass("huey", bellStriker.Huey);
#endinitclip
Symbol 245 MovieClip [huey] Frame 6
gotoAndPlay (1);
Instance of Symbol 239 MovieClip in Symbol 245 MovieClip [huey] Frame 8
onClipEvent (load) {
this.noRemove = true;
}
Symbol 245 MovieClip [huey] Frame 9
bellStriker.GameController.__get__instance().playSoundEffect("explodeLarge.mp3");
Symbol 245 MovieClip [huey] Frame 13
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Instance of Symbol 239 MovieClip in Symbol 245 MovieClip [huey] Frame 13
onClipEvent (load) {
this.noRemove = true;
}
Symbol 245 MovieClip [huey] Frame 17
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Instance of Symbol 239 MovieClip in Symbol 245 MovieClip [huey] Frame 19
onClipEvent (load) {
this.noRemove = true;
}
Symbol 245 MovieClip [huey] Frame 20
stop();
Symbol 269 MovieClip [object_weaponcrate] Frame 1
#initclip 53
Object.registerClass("object_weaponcrate", bellStriker.objects.WeaponCratePickupObject);
#endinitclip
stop();
autoUp = true;
rounds = 500;
Symbol 269 MovieClip [object_weaponcrate] Frame 2
stop();
rounds = 21;
Symbol 269 MovieClip [object_weaponcrate] Frame 3
stop();
rounds = 300;
Symbol 269 MovieClip [object_weaponcrate] Frame 4
stop();
rounds = 60;
Symbol 269 MovieClip [object_weaponcrate] Frame 5
stop();
rounds = 12;
Symbol 269 MovieClip [object_weaponcrate] Frame 6
stop();
rounds = 100;
Symbol 272 MovieClip [object_medikit] Frame 1
#initclip 54
Object.registerClass("object_medikit", bellStriker.objects.MedikitPickupObject);
#endinitclip
autoUp = true;
Symbol 279 MovieClip [object_weapon] Frame 1
#initclip 55
Object.registerClass("object_weapon", bellStriker.objects.WeaponPickupObject);
#endinitclip
stop();
autoUp = true;
Symbol 279 MovieClip [object_weapon] Frame 2
stop();
Symbol 279 MovieClip [object_weapon] Frame 3
stop();
Symbol 279 MovieClip [object_weapon] Frame 4
stop();
Symbol 279 MovieClip [object_weapon] Frame 5
stop();
Symbol 279 MovieClip [object_weapon] Frame 6
stop();
Symbol 285 MovieClip [object_bushes] Frame 1
#initclip 56
Object.registerClass("object_bushes", bellStriker.objects.GroundObject);
#endinitclip
stop();
health = 5;
noSittingOn = true;
score = 1;
noTarget = true;
Symbol 285 MovieClip [object_bushes] Frame 4
stop();
this.removeMe();
Symbol 291 MovieClip Frame 1
stop();
Symbol 302 MovieClip [object_soldierKneel] Frame 1
#initclip 57
Object.registerClass("object_soldierKneel", bellStriker.objects.HumanObject);
#endinitclip
stop();
weaponStrength = 3;
isEnemy = true;
score = 25;
Symbol 302 MovieClip [object_soldierKneel] Frame 9
Symbol 302 MovieClip [object_soldierKneel] Frame 10
stop();
Symbol 340 MovieClip Frame 15
if (this._parent._parent._currentframe != this._parent._parent._totalframes) {
this._parent._parent.play();
}
Symbol 340 MovieClip Frame 32
stop();
Symbol 344 MovieClip Frame 1
var count = 1;
Symbol 344 MovieClip Frame 13
count++;
if (count < 14) {
gotoAndPlay (2);
}
Symbol 344 MovieClip Frame 23
stop();
_parent.removeMe();
Symbol 345 MovieClip [object_hut] Frame 1
#initclip 58
Object.registerClass("object_hut", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 50;
isEnemy = false;
score = -10;
Symbol 345 MovieClip [object_hut] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 345 MovieClip [object_hut] Frame 3
stop();
removeMe();
Symbol 348 MovieClip [object_tree] Frame 1
#initclip 59
Object.registerClass("object_tree", bellStriker.objects.CollisionObject);
#endinitclip
allowFlex = true;
Symbol 352 MovieClip [object_tent] Frame 1
#initclip 60
Object.registerClass("object_tent", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 40;
score = 50;
Symbol 352 MovieClip [object_tent] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 352 MovieClip [object_tent] Frame 3
stop();
Symbol 358 MovieClip [object_building] Frame 1
#initclip 61
Object.registerClass("object_building", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 200;
score = 60;
Symbol 358 MovieClip [object_building] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Symbol 358 MovieClip [object_building] Frame 6
stop();
Symbol 358 MovieClip [object_building] Frame 7
stop();
removeMe();
Symbol 361 MovieClip [object_tarmac] Frame 1
#initclip 62
Object.registerClass("object_tarmac", bellStriker.objects.GroundObject);
#endinitclip
Symbol 368 MovieClip [object_crate] Frame 1
#initclip 63
Object.registerClass("object_crate", bellStriker.objects.FuelPickupObject);
#endinitclip
stop();
health = 4;
score = 1;
achievement = 5;
autoUp = true;
Symbol 368 MovieClip [object_crate] Frame 6
stop();
this.removeMe();
Symbol 372 MovieClip [object_oil] Frame 1
#initclip 64
Object.registerClass("object_oil", bellStriker.objects.FuelPickupObject);
#endinitclip
stop();
health = 5;
score = 5;
achievement = 6;
Symbol 372 MovieClip [object_oil] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 372 MovieClip [object_oil] Frame 3
stop();
Symbol 376 MovieClip [object_jeep] Frame 1
#initclip 65
Object.registerClass("object_jeep", bellStriker.objects.VehicleObject);
#endinitclip
stop();
health = 40;
score = 40;
Symbol 376 MovieClip [object_jeep] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 376 MovieClip [object_jeep] Frame 9
stop();
Symbol 376 MovieClip [object_jeep] Frame 10
stop();
Symbol 379 MovieClip [object_stickFence] Frame 1
#initclip 66
Object.registerClass("object_stickFence", bellStriker.objects.GroundObject);
#endinitclip
Symbol 390 MovieClip [object_soldierlying] Frame 1
#initclip 67
Object.registerClass("object_soldierlying", bellStriker.objects.HumanObject);
#endinitclip
stop();
weaponStrength = 2;
isEnemy = true;
score = 25;
Symbol 390 MovieClip [object_soldierlying] Frame 9
Symbol 390 MovieClip [object_soldierlying] Frame 10
stop();
Symbol 393 MovieClip [object_palms] Frame 1
#initclip 68
Object.registerClass("object_palms", bellStriker.objects.CollisionObject);
#endinitclip
Symbol 397 MovieClip [object_shack] Frame 1
#initclip 69
Object.registerClass("object_shack", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 80;
score = 40;
Symbol 397 MovieClip [object_shack] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 397 MovieClip [object_shack] Frame 3
stop();
removeMe();
Symbol 401 MovieClip [object_water] Frame 1
#initclip 70
Object.registerClass("object_water", bellStriker.objects.WaterObject);
#endinitclip
Symbol 405 MovieClip [object_sheep] Frame 1
#initclip 71
Object.registerClass("object_sheep", bellStriker.objects.AnimalPickupObject);
#endinitclip
stop();
health = 4;
isEnemy = false;
score = -3;
achievement = 9;
sound = "sheep.mp3";
Symbol 405 MovieClip [object_sheep] Frame 10
stop();
this.removeMe();
Symbol 408 MovieClip [object_fence] Frame 1
#initclip 72
Object.registerClass("object_fence", bellStriker.objects.GroundObject);
#endinitclip
Symbol 412 MovieClip [object_ambulance] Frame 1
#initclip 73
Object.registerClass("object_ambulance", bellStriker.objects.VehicleObject);
#endinitclip
stop();
health = 40;
isEnemy = false;
score = -15;
Symbol 412 MovieClip [object_ambulance] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 412 MovieClip [object_ambulance] Frame 3
stop();
this.removeMe();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 12
stop();
Symbol 425 MovieClip [object_soldieRocket] Frame 1
#initclip 74
Object.registerClass("object_soldieRocket", bellStriker.objects.HumanObject);
#endinitclip
stop();
weaponStrength = 20;
fireRelease = 10;
ammoName = "object_rocket";
ammoFrame = 2;
isEnemy = true;
score = 50;
Symbol 425 MovieClip [object_soldieRocket] Frame 9
Symbol 425 MovieClip [object_soldieRocket] Frame 10
stop();
Symbol 427 MovieClip [object_groundTarget] Frame 1
#initclip 75
Object.registerClass("object_groundTarget", bellStriker.objects.CollisionObject);
#endinitclip
health = 100000 /* 0x0186A0 */;
isEnemy = false;
Symbol 433 MovieClip [object_supplies] Frame 1
#initclip 76
Object.registerClass("object_supplies", bellStriker.objects.PickupObject);
#endinitclip
stop();
health = 300;
isEnemy = false;
score = -25;
autoUp = false;
Symbol 433 MovieClip [object_supplies] Frame 12
stop();
this.removeMe();
Symbol 437 MovieClip [object_woman] Frame 1
#initclip 77
Object.registerClass("object_woman", bellStriker.objects.HumanPickupObject);
#endinitclip
stop();
isEnemy = false;
score = -20;
achievement = 2;
Symbol 437 MovieClip [object_woman] Frame 10
stop();
this.removeMe();
Symbol 441 MovieClip [object_man] Frame 1
#initclip 78
Object.registerClass("object_man", bellStriker.objects.HumanPickupObject);
#endinitclip
stop();
isEnemy = false;
score = -20;
achievement = 2;
Symbol 441 MovieClip [object_man] Frame 10
stop();
this.removeMe();
Symbol 446 MovieClip [object_gasTank] Frame 1
#initclip 79
Object.registerClass("object_gasTank", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 120;
score = 100;
achievement = 13;
Symbol 446 MovieClip [object_gasTank] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Symbol 446 MovieClip [object_gasTank] Frame 6
stop();
Symbol 446 MovieClip [object_gasTank] Frame 7
stop();
removeMe();
Symbol 448 MovieClip [object_landingPad] Frame 1
#initclip 80
Object.registerClass("object_landingPad", bellStriker.objects.LandingPadObject);
#endinitclip
Symbol 452 MovieClip [object_friend] Frame 1
#initclip 81
Object.registerClass("object_friend", bellStriker.objects.HumanPickupObject);
#endinitclip
stop();
isEnemy = false;
score = -20;
Symbol 452 MovieClip [object_friend] Frame 10
stop();
this.removeMe();
Symbol 453 MovieClip [level1_assets] Frame 1
#initclip 82
Object.registerClass("level1_assets", bellStriker.Level);
#endinitclip
Symbol 458 MovieClip [object_radioMast] Frame 1
#initclip 83
Object.registerClass("object_radioMast", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 100;
score = 65;
Symbol 458 MovieClip [object_radioMast] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 458 MovieClip [object_radioMast] Frame 6
stop();
Symbol 458 MovieClip [object_radioMast] Frame 7
stop();
removeMe();
Symbol 464 MovieClip [object_watchTower] Frame 1
#initclip 84
Object.registerClass("object_watchTower", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 80;
score = 50;
achievement = 10;
Symbol 464 MovieClip [object_watchTower] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 464 MovieClip [object_watchTower] Frame 6
stop();
Symbol 464 MovieClip [object_watchTower] Frame 7
stop();
removeMe();
Symbol 467 MovieClip [object_prisoner] Frame 1
#initclip 85
Object.registerClass("object_prisoner", bellStriker.objects.HumanPickupObject);
#endinitclip
stop();
isEnemy = false;
score = -20;
Symbol 467 MovieClip [object_prisoner] Frame 10
stop();
this.removeMe();
Symbol 471 MovieClip [object_whiteVan] Frame 1
#initclip 86
Object.registerClass("object_whiteVan", bellStriker.objects.VehicleObject);
#endinitclip
stop();
health = 80;
score = 35;
achievement = 11;
Symbol 471 MovieClip [object_whiteVan] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 471 MovieClip [object_whiteVan] Frame 3
stop();
Symbol 482 MovieClip [object_soldiersTruck] Frame 1
#initclip 87
Object.registerClass("object_soldiersTruck", bellStriker.objects.HumanObject);
#endinitclip
stop();
weaponStrength = 10;
fireRelease = 8;
health = 80;
isEnemy = true;
score = 75;
Symbol 482 MovieClip [object_soldiersTruck] Frame 9
Symbol 482 MovieClip [object_soldiersTruck] Frame 10
stop();
removeMe();
Symbol 487 MovieClip [object_canoe] Frame 1
#initclip 88
Object.registerClass("object_canoe", bellStriker.objects.GroundObject);
#endinitclip
stop();
health = 20;
score = 10;
achievement = 3;
Symbol 487 MovieClip [object_canoe] Frame 2
stop();
Symbol 487 MovieClip [object_canoe] Frame 3
stop();
removeMe();
Symbol 491 MovieClip [object_cow] Frame 1
#initclip 89
Object.registerClass("object_cow", bellStriker.objects.AnimalPickupObject);
#endinitclip
stop();
health = 5;
isEnemy = false;
score = -5;
achievement = 8;
autoUp = true;
sound = "cow.mp3";
Symbol 491 MovieClip [object_cow] Frame 10
stop();
this.removeMe();
Symbol 495 MovieClip [object_donkey] Frame 1
#initclip 90
Object.registerClass("object_donkey", bellStriker.objects.AnimalPickupObject);
#endinitclip
stop();
health = 4;
isEnemy = false;
score = -5;
achievement = 0;
autoUp = true;
sound = "donkey.mp3";
Symbol 495 MovieClip [object_donkey] Frame 15
stop();
this.removeMe();
Symbol 499 MovieClip [object_offRoader] Frame 1
#initclip 91
Object.registerClass("object_offRoader", bellStriker.objects.VehicleObject);
#endinitclip
stop();
health = 40;
score = 50;
Symbol 499 MovieClip [object_offRoader] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 499 MovieClip [object_offRoader] Frame 3
stop();
removeMe();
Symbol 504 MovieClip [object_fuelTank] Frame 1
#initclip 92
Object.registerClass("object_fuelTank", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 50;
score = 80;
achievement = 12;
Symbol 504 MovieClip [object_fuelTank] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Symbol 504 MovieClip [object_fuelTank] Frame 4
stop();
Symbol 504 MovieClip [object_fuelTank] Frame 5
stop();
removeMe();
Symbol 505 MovieClip [level2_assets] Frame 1
#initclip 93
Object.registerClass("level2_assets", bellStriker.Level);
#endinitclip
Symbol 510 MovieClip [object_truck] Frame 1
#initclip 94
Object.registerClass("object_truck", bellStriker.objects.VehicleObject);
#endinitclip
stop();
health = 100;
score = 40;
achievement = 7;
Symbol 510 MovieClip [object_truck] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 510 MovieClip [object_truck] Frame 4
stop();
Symbol 510 MovieClip [object_truck] Frame 5
stop();
removeMe();
Symbol 517 MovieClip [object_bridge] Frame 1
#initclip 95
Object.registerClass("object_bridge", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 500;
score = 150;
achievement = 4;
Symbol 517 MovieClip [object_bridge] Frame 3
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Symbol 517 MovieClip [object_bridge] Frame 9
stop();
Symbol 517 MovieClip [object_bridge] Frame 10
stop();
Symbol 522 MovieClip [object_waterPlane] Frame 1
#initclip 96
Object.registerClass("object_waterPlane", bellStriker.objects.VehicleObject);
#endinitclip
stop();
health = 100;
score = 50;
achievement = 1;
Symbol 522 MovieClip [object_waterPlane] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 522 MovieClip [object_waterPlane] Frame 4
stop();
Symbol 522 MovieClip [object_waterPlane] Frame 5
stop();
removeMe();
Symbol 528 MovieClip [object_factory] Frame 1
#initclip 97
Object.registerClass("object_factory", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 100;
score = 100;
Symbol 528 MovieClip [object_factory] Frame 3
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 528 MovieClip [object_factory] Frame 6
stop();
Symbol 528 MovieClip [object_factory] Frame 7
stop();
removeMe();
Symbol 533 MovieClip [object_fuelTanker] Frame 1
#initclip 98
Object.registerClass("object_fuelTanker", bellStriker.objects.VehicleObject);
#endinitclip
stop();
health = 60;
score = 60;
Symbol 533 MovieClip [object_fuelTanker] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 533 MovieClip [object_fuelTanker] Frame 4
stop();
Symbol 533 MovieClip [object_fuelTanker] Frame 5
stop();
removeMe();
Symbol 538 MovieClip [object_petrolPump] Frame 1
#initclip 99
Object.registerClass("object_petrolPump", bellStriker.objects.GroundObject);
#endinitclip
stop();
health = 15;
score = 30;
Symbol 538 MovieClip [object_petrolPump] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 538 MovieClip [object_petrolPump] Frame 3
stop();
Symbol 543 MovieClip [object_corrugatedBuilding] Frame 1
#initclip 100
Object.registerClass("object_corrugatedBuilding", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 60;
score = 50;
Symbol 543 MovieClip [object_corrugatedBuilding] Frame 4
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 543 MovieClip [object_corrugatedBuilding] Frame 5
stop();
removeMe();
Symbol 547 MovieClip [object_barn] Frame 1
#initclip 101
Object.registerClass("object_barn", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 60;
score = 30;
Symbol 547 MovieClip [object_barn] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 547 MovieClip [object_barn] Frame 3
stop();
this.removeMe();
Symbol 548 MovieClip [level3_assets] Frame 1
#initclip 102
Object.registerClass("level3_assets", bellStriker.Level);
#endinitclip
Symbol 549 MovieClip [level4_assets] Frame 1
#initclip 103
Object.registerClass("level4_assets", bellStriker.Level);
#endinitclip
Symbol 552 MovieClip [object_rubble] Frame 1
#initclip 104
Object.registerClass("object_rubble", bellStriker.objects.GroundObject);
#endinitclip
Symbol 556 MovieClip [object_bulldozer] Frame 1
#initclip 105
Object.registerClass("object_bulldozer", bellStriker.objects.VehicleObject);
#endinitclip
stop();
health = 80;
score = 40;
Symbol 556 MovieClip [object_bulldozer] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 556 MovieClip [object_bulldozer] Frame 3
stop();
removeMe();
Symbol 562 MovieClip [object_construction] Frame 1
#initclip 106
Object.registerClass("object_construction", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 100;
score = 50;
Symbol 562 MovieClip [object_construction] Frame 6
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 562 MovieClip [object_construction] Frame 7
stop();
removeMe();
Symbol 567 MovieClip [object_road] Frame 1
#initclip 107
Object.registerClass("object_road", bellStriker.objects.GroundObject);
#endinitclip
stop();
health = 200;
score = 100;
noSittingOn = true;
Symbol 567 MovieClip [object_road] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 567 MovieClip [object_road] Frame 5
stop();
Symbol 567 MovieClip [object_road] Frame 6
stop();
removeMe();
Symbol 573 MovieClip [object_pipeline] Frame 1
#initclip 108
Object.registerClass("object_pipeline", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 300;
score = 200;
Symbol 573 MovieClip [object_pipeline] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 573 MovieClip [object_pipeline] Frame 5
stop();
Symbol 573 MovieClip [object_pipeline] Frame 6
stop();
removeMe();
Symbol 583 MovieClip [object_tank] Frame 1
#initclip 109
Object.registerClass("object_tank", bellStriker.objects.HumanObject);
#endinitclip
stop();
health = 200;
weaponStrength = 35;
fireRelease = 10;
ammoName = "object_rocket";
ammoFrame = 2;
upperAngle = 140;
lowerAngle = 60;
score = 100;
Symbol 583 MovieClip [object_tank] Frame 9
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Symbol 583 MovieClip [object_tank] Frame 11
stop();
removeMe();
Symbol 584 MovieClip [level5_assets] Frame 1
#initclip 110
Object.registerClass("level5_assets", bellStriker.Level);
#endinitclip
Symbol 589 MovieClip [object_chopper] Frame 1
#initclip 111
Object.registerClass("object_chopper", bellStriker.objects.GroundObject);
#endinitclip
stop();
health = 100;
score = 80;
Symbol 589 MovieClip [object_chopper] Frame 4
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 589 MovieClip [object_chopper] Frame 5
stop();
removeMe();
Symbol 590 MovieClip [level6_assets] Frame 1
#initclip 112
Object.registerClass("level6_assets", bellStriker.Level);
#endinitclip
Symbol 597 MovieClip [object_powerplant] Frame 1
#initclip 113
Object.registerClass("object_powerplant", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 600;
score = 300;
isEnemy = false;
Symbol 597 MovieClip [object_powerplant] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeLarge.mp3");
Symbol 597 MovieClip [object_powerplant] Frame 6
stop();
Symbol 597 MovieClip [object_powerplant] Frame 7
stop();
removeMe();
Symbol 603 MovieClip [object_waterWorks] Frame 1
#initclip 114
Object.registerClass("object_waterWorks", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 500;
score = 200;
isEnemy = false;
Symbol 603 MovieClip [object_waterWorks] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Symbol 603 MovieClip [object_waterWorks] Frame 6
stop();
Symbol 603 MovieClip [object_waterWorks] Frame 7
stop();
removeMe();
Symbol 609 MovieClip [object_oldHouse] Frame 1
#initclip 115
Object.registerClass("object_oldHouse", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 80;
score = 15;
Symbol 609 MovieClip [object_oldHouse] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 609 MovieClip [object_oldHouse] Frame 6
stop();
Symbol 609 MovieClip [object_oldHouse] Frame 7
stop();
removeMe();
Symbol 610 MovieClip [level7_assets] Frame 1
#initclip 116
Object.registerClass("level7_assets", bellStriker.Level);
#endinitclip
Symbol 615 MovieClip [object_machine] Frame 1
#initclip 117
Object.registerClass("object_machine", bellStriker.objects.GroundObject);
#endinitclip
stop();
health = 320;
score = 60;
Symbol 615 MovieClip [object_machine] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 615 MovieClip [object_machine] Frame 5
stop();
Symbol 615 MovieClip [object_machine] Frame 6
stop();
Symbol 619 MovieClip [object_scientist] Frame 1
#initclip 118
Object.registerClass("object_scientist", bellStriker.objects.HumanObject);
#endinitclip
stop();
isEnemy = true;
score = 20;
Symbol 619 MovieClip [object_scientist] Frame 10
stop();
Symbol 625 MovieClip [object_farmBuilding] Frame 1
#initclip 119
Object.registerClass("object_farmBuilding", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 100;
score = 60;
Symbol 625 MovieClip [object_farmBuilding] Frame 3
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 625 MovieClip [object_farmBuilding] Frame 6
stop();
Symbol 625 MovieClip [object_farmBuilding] Frame 7
stop();
removeMe();
Symbol 626 MovieClip [level8_assets] Frame 1
#initclip 120
Object.registerClass("level8_assets", bellStriker.Level);
#endinitclip
Symbol 630 MovieClip [object_antonio] Frame 1
#initclip 121
Object.registerClass("object_antonio", bellStriker.objects.HumanPickupObject);
#endinitclip
stop();
isEnemy = true;
score = 20;
Symbol 630 MovieClip [object_antonio] Frame 10
stop();
this.removeMe();
Symbol 636 MovieClip [object_house] Frame 1
#initclip 122
Object.registerClass("object_house", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 100;
score = 65;
Symbol 636 MovieClip [object_house] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 636 MovieClip [object_house] Frame 6
stop();
Symbol 636 MovieClip [object_house] Frame 7
stop();
removeMe();
Symbol 637 MovieClip [level9_assets] Frame 1
#initclip 123
Object.registerClass("level9_assets", bellStriker.Level);
#endinitclip
Symbol 643 MovieClip [object_boat] Frame 1
#initclip 124
Object.registerClass("object_boat", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 300;
score = 150;
Symbol 643 MovieClip [object_boat] Frame 3
bellStriker.GameController.__get__instance().playSoundEffect("explodeLarge.mp3");
Symbol 643 MovieClip [object_boat] Frame 8
stop();
Symbol 643 MovieClip [object_boat] Frame 9
stop();
this.removeMe();
Symbol 647 MovieClip [object_carlos] Frame 1
#initclip 125
Object.registerClass("object_carlos", bellStriker.objects.HumanObject);
#endinitclip
stop();
isEnemy = true;
score = 20;
Symbol 647 MovieClip [object_carlos] Frame 10
stop();
this.removeMe();
Symbol 653 MovieClip [object_carlosHouse] Frame 1
#initclip 126
Object.registerClass("object_carlosHouse", bellStriker.objects.CollisionObject);
#endinitclip
stop();
health = 200;
score = 80;
Symbol 653 MovieClip [object_carlosHouse] Frame 2
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Symbol 653 MovieClip [object_carlosHouse] Frame 6
stop();
Symbol 653 MovieClip [object_carlosHouse] Frame 7
stop();
removeMe();
Symbol 654 MovieClip [level10_assets] Frame 1
#initclip 127
Object.registerClass("level10_assets", bellStriker.Level);
#endinitclip
Symbol 658 MovieClip Frame 1
stop();
Symbol 658 MovieClip Frame 2
stop();
Symbol 658 MovieClip Frame 3
stop();
Symbol 670 MovieClip [mc_setting] Frame 1
#initclip 128
Object.registerClass("mc_setting", bellStriker.Setting);
#endinitclip
stop();
Symbol 670 MovieClip [mc_setting] Frame 2
stop();
Symbol 670 MovieClip [mc_setting] Frame 3
stop();
Symbol 674 MovieClip [object_bullet] Frame 1
#initclip 129
Object.registerClass("object_bullet", bellStriker.objects.BulletObject);
#endinitclip
stop();
Symbol 674 MovieClip [object_bullet] Frame 5
stop();
this.removeMe();
Symbol 676 MovieClip [object_bulletSmall] Frame 1
#initclip 130
Object.registerClass("object_bulletSmall", bellStriker.objects.BulletObject);
#endinitclip
stop();
Symbol 676 MovieClip [object_bulletSmall] Frame 2
this.removeMe();
Symbol 679 MovieClip [object_fuel] Frame 1
#initclip 131
Object.registerClass("object_fuel", bellStriker.objects.FuelPickupObject);
#endinitclip
autoUp = true;
Symbol 681 MovieClip Frame 1
stop();
Symbol 681 MovieClip Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("rocket.mp3");
Symbol 681 MovieClip Frame 3
stop();
bellStriker.GameController.__get__instance().playSoundEffect("missile.mp3");
Symbol 681 MovieClip Frame 4
stop();
bellStriker.GameController.__get__instance().playSoundEffect("grenade.mp3");
Symbol 682 MovieClip Frame 1
stop();
Symbol 682 MovieClip Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeMedium.mp3");
Symbol 682 MovieClip Frame 3
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeLarge.mp3");
Symbol 682 MovieClip Frame 4
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeGrenade.mp3");
Symbol 683 MovieClip [object_rocket] Frame 1
#initclip 132
Object.registerClass("object_rocket", bellStriker.objects.RocketObject);
#endinitclip
Symbol 683 MovieClip [object_rocket] Frame 22
if (!exploding) {
gotoAndPlay (16);
}
Symbol 683 MovieClip [object_rocket] Frame 24
stop();
Symbol 684 MovieClip [object_supplies2] Frame 1
#initclip 133
Object.registerClass("object_supplies2", bellStriker.objects.PickupObject);
#endinitclip
stop();
isEnemy = false;
score = -25;
Symbol 684 MovieClip [object_supplies2] Frame 4
for (var i in this) {
this[i].play();
}
Symbol 684 MovieClip [object_supplies2] Frame 12
stop();
this.removeMe();
Symbol 687 MovieClip [object_targetType] Frame 1
stop();
Symbol 687 MovieClip [object_targetType] Frame 2
stop();
Symbol 689 MovieClip [object_tentFriendly] Frame 1
#initclip 134
Object.registerClass("object_tentFriendly", bellStriker.objects.GroundObject);
#endinitclip
stop();
health = 30;
isEnemy = false;
Symbol 689 MovieClip [object_tentFriendly] Frame 2
stop();
bellStriker.GameController.__get__instance().playSoundEffect("explodeSmall.mp3");
Symbol 689 MovieClip [object_tentFriendly] Frame 3
stop();
removeMe();
Symbol 694 MovieClip [radarItem] Frame 1
stop();
Symbol 694 MovieClip [radarItem] Frame 2
stop();
Symbol 694 MovieClip [radarItem] Frame 3
stop();
Symbol 694 MovieClip [radarItem] Frame 4
stop();
Symbol 701 MovieClip [target] Frame 1
stop();
Symbol 701 MovieClip [target] Frame 2
stop();
Symbol 701 MovieClip [target] Frame 3
stop();
Symbol 701 MovieClip [target] Frame 4
stop();
Symbol 725 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 155
Symbol 734 MovieClip Frame 156
stop();
_root.gotoAndStop("mainmenu");
Symbol 736 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 736 MovieClip Frame 90
stop();
Symbol 742 MovieClip Frame 156
stop();
_root.gotoAndStop("mainmenu");
Symbol 750 MovieClip Frame 155
stop();
_root.gotoAndStop("mainmenu");
Symbol 753 MovieClip Frame 156
stop();
_root.gotoAndStop("mainmenu");
Symbol 760 MovieClip Frame 39
stop();
Symbol 760 MovieClip Frame 55
_root.gotoAndStop("mainmenu");
Symbol 762 MovieClip Frame 157
stop();
_root.gotoAndStop("mainmenu");
Symbol 763 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "tweens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
if (_root.localization_portal == "teen") {
gotoAndStop (5);
}
Symbol 772 Button
on (press) {
_root.getURL("http://www.addictinggames.com");
}
Symbol 923 MovieClip Frame 147
stop();
Symbol 924 MovieClip Frame 1
_root.stop();
Symbol 924 MovieClip Frame 440
_root.play();
Symbol 993 MovieClip Frame 1
_parent.stop();
Symbol 993 MovieClip Frame 138
stop();
_parent.play();
Symbol 1000 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
gotoAndStop (159);
}
Symbol 1001 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
var o = {n:[5, 13, 6, 13, 4, 3, 12, 12, 3, 11, 4, 10, 13, 5, 2, 5], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, onClose:scoreEnd, onDisplay:scoreShow});
}
Symbol 1002 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
popup._visible = true;
}
Symbol 1003 Button
on (release) {
if (_root.isLicensedDomain()) {
getURL (_root.getLicenseUrl(), "_blank");
} else {
getURL (_root.getSponsorMoreGamesLink(), "_blank");
}
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
}
Symbol 1012 MovieClip Frame 1
stop();
Symbol 1012 MovieClip Frame 2
stop();
Symbol 1024 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
bellStriker.GameController.__get__instance().newGame();
_visible = false;
}
Symbol 1027 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
_visible = false;
}
Symbol 1028 MovieClip Frame 1
bg.useHandCursor = false;
Instance of Symbol 1014 MovieClip "bg" in Symbol 1028 MovieClip Frame 1
on (press) {
}
Symbol 1032 Button
on (release) {
gotoAndStop (159);
}
Symbol 1037 Button
on (release) {
prevFrame();
}
Symbol 1043 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
gotoAndStop ("storyModeMissions");
}
Symbol 1051 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
nextFrame();
}
Symbol 1064 Button
on (release) {
gotoAndStop ("storyModeMissions");
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
}
Symbol 1065 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
gotoAndStop (155);
}
Symbol 1068 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
prevFrame();
}
Symbol 1070 Button
on (release) {
gotoAndStop ("storyModeMissions");
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
}
Symbol 1094 Button
on (release) {
gotoAndStop (161);
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
}
Symbol 1096 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
gotoAndStop (169);
}
Symbol 1100 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
gotoAndStop (171);
}
Symbol 1103 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
gotoAndStop (172);
}
Symbol 1113 MovieClip Frame 1
stop();
Symbol 1113 MovieClip Frame 2
stop();
Symbol 1113 MovieClip Frame 3
stop();
Symbol 1113 MovieClip Frame 4
stop();
Symbol 1113 MovieClip Frame 5
stop();
Symbol 1113 MovieClip Frame 6
stop();
Symbol 1114 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
prevFrame();
}
Symbol 1118 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
gotoAndStop (173);
}
Symbol 1122 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
gotoAndStop (170);
}
Symbol 1126 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
gotoAndStop (169);
}
Symbol 1141 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 2
stop();
Symbol 1141 MovieClip Frame 3
stop();
Symbol 1141 MovieClip Frame 4
stop();
Symbol 1141 MovieClip Frame 5
stop();
Symbol 1141 MovieClip Frame 6
stop();
Symbol 1151 MovieClip Frame 1
stop();
Symbol 1151 MovieClip Frame 2
stop();
Symbol 1151 MovieClip Frame 3
stop();
Symbol 1151 MovieClip Frame 4
stop();
Symbol 1151 MovieClip Frame 5
stop();
Symbol 1151 MovieClip Frame 6
stop();
Symbol 1158 MovieClip Frame 1
stop();
Symbol 1158 MovieClip Frame 2
stop();
Symbol 1158 MovieClip Frame 3
stop();
Symbol 1158 MovieClip Frame 4
stop();
Symbol 1158 MovieClip Frame 5
stop();
Symbol 1162 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click3.mp3");
gotoAndStop ("storyModeMissions");
}
Symbol 1170 MovieClip Frame 1
stop();
Symbol 1214 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
var o = {n:[5, 13, 6, 13, 4, 3, 12, 12, 3, 11, 4, 10, 13, 5, 2, 5], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:bellStriker.GameController.__get__instance().getLevelScoreTotal(), onClose:scoreEnd, onDisplay:scoreShow});
}
Symbol 1222 MovieClip Frame 1
frameCount = 0;
timeStamp = 0;
this.onEnterFrame = function () {
if ((frameCount++) >= 10) {
var _local2 = getTimer() - timeStamp;
var _local1 = (frameCount / _local2) * 1000;
timeStamp = getTimer();
frameCount = 0;
CounterText.text = "fps: " + Math.round(_local1);
}
};
Symbol 1239 MovieClip Frame 1
stop();
Symbol 1239 MovieClip Frame 2
stop();
Symbol 1239 MovieClip Frame 3
stop();
Symbol 1239 MovieClip Frame 4
stop();
Symbol 1239 MovieClip Frame 5
stop();
Symbol 1239 MovieClip Frame 6
stop();
Symbol 1244 Button
on (press) {
bellStriker.GameController.__get__instance().togglePause();
}
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
}
Symbol 1252 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
bellStriker.GameController.__get__instance().levelEnded();
}
Symbol 1259 MovieClip Frame 1
stop();
Symbol 1259 MovieClip Frame 2
stop();
Symbol 1294 MovieClip Frame 1
stop();
Symbol 1294 MovieClip Frame 2
stop();
Symbol 1295 Button
on (press) {
bellStriker.GameController.__get__instance().togglePause(showAgain._currentframe);
}
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
}
Instance of Symbol 1294 MovieClip "showAgain" in Symbol 1303 MovieClip Frame 1
on (press) {
if (this._currentframe == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 1304 MovieClip Frame 1
stop();
Instance of Symbol 1012 MovieClip "sound" in Symbol 1304 MovieClip Frame 1
on (release) {
bellStriker.GameController.__get__instance().soundSwitch(this);
}
onClipEvent (load) {
if (bellStriker.GameController.__get__instance().soundOn) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 1304 MovieClip Frame 2
stop();
Symbol 1304 MovieClip Frame 3
stop();
Symbol 1314 Button
on (release) {
bellStriker.GameController.__get__instance().playSoundEffect("click1.mp3");
gotoAndStop ("storyModeMissions");
}
Symbol 1328 Button
on (release) {
if (_root.isLicensedDomain()) {
getURL (_root.getLicenseUrl(), "_blank");
} else {
getURL (_root.getSponsorMoreGamesLink(), "_blank");
}
bellStriker.GameController.__get__instance().playSoundEffect("click2.mp3");
}