Frame 1
NewgroundsAPI.connectMovie(4530);
Instance of Symbol 28 MovieClip "loader" in Frame 1
/* no clip actions */
Frame 1023
NewgroundsAPI.connectMovie(4530);
Frame 1024
stop();
NewgroundsAPI.connectMovie(4530);
Frame 1025
stop();
Frame 1067
function reset() {
en = 250;
bn = 100;
i = 0;
damage = new Array(15, 20, 50, 60);
spd = new Array(35, 35, 20, 30);
maxreltime = new Array(2, 3, 10, 7);
ammo = new Array(690, 690, 690, 690);
acc = new Array(20, 15, 5, 0);
ammoB = ammo[i];
dtime = 0;
dupetime = 50;
health_hold.text = _root.player.health + "%";
ammo_hold.text = ammoB;
}
function lose() {
_root.player.removeMovieClip();
_root.enemy.removeMovieClip();
for (i in _root) {
if (_root[i]._name.indexOf("bull") != -1) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if (_root[i]._name.indexOf("Eshot") != -1) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if (_root[i]._name.indexOf("badA") != -1) {
_root[i].removeMovieClip();
}
}
_root.reset();
_root.gotoAndStop("Menu");
}
_root.score = 0;
_root.reset();
_root.onEnterFrame = function () {
health_hold.text = ("" + _root.player.health) + "%";
ammo_hold.text = "" + ammoB;
ammoB = ammo[i];
if (_root.player.hp <= 0) {
_root.lose();
removeMovieClip(_root.player);
gotoAndStop ("G");
}
if (dtime < dupetime) {
dtime++;
}
if (dtime == dupetime) {
en++;
duplicateMovieClip (_root.enemy, "badA" + en, en);
dtime = 0;
}
if (bn >= 200) {
bn = 100;
}
if (en >= 350) {
en = 250;
}
};
Instance of Symbol 228 MovieClip "player" in Frame 1067
onClipEvent (load) {
xspd = 5;
yspd = 10;
reltime = 0;
maxhp = 420;
hp = maxhp;
this.swapDepths(9999);
}
onClipEvent (enterFrame) {
health = Math.round((hp / maxhp) * 100);
if (reltime < _root.maxreltime[_root.i]) {
reltime++;
}
if ((Key.isDown(32) && (reltime == _root.maxreltime[_root.i])) && (_root.ammo[_root.i] > 0)) {
_root.ammo[_root.i]--;
_root.bn++;
this.ws.w.wh.gotoAndPlay("grr");
sfxmg = new Sound(this);
sfxmg.attachSound("MGF");
sfxmg.start(0, 1);
duplicateMovieClip (_root.bulle, "bull" + _root.bn, _root.bn);
reltime = 0;
}
if (Key.isDown(38)) {
_y = (_y - yspd);
this.gotoAndStop(2);
} else if (Key.isDown(40)) {
_y = (_y + yspd);
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
if (Key.isDown(37)) {
_x = (_x - xspd);
} else if (Key.isDown(39)) {
_x = (_x + xspd);
}
if (Key.isDown(49)) {
_root.i = 0;
reltime = 0;
} else if (Key.isDown(50)) {
_root.i = 1;
reltime = 0;
} else if (Key.isDown(51)) {
_root.i = 2;
reltime = 0;
} else if (Key.isDown(52)) {
_root.i = 3;
reltime = 0;
}
if (_y < 0) {
_y = 0;
} else if (_y > 400) {
_y = 400;
}
if (_x < 0) {
_x = 0;
} else if (_x > 550) {
_x = 550;
}
}
Instance of Symbol 230 MovieClip "bulle" in Frame 1067
onClipEvent (load) {
speed = _root.spd[_root.i];
dam = _root.damage[_root.i];
_x = (_root.player._x + 40);
_y = (_root.player._y + random(_root.acc[_root.i]));
this.gotoAndStop(_root.i + 1);
if (_name == "bulle") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_name != "bulle") {
_x = (_x + speed);
if (_x > 550) {
this.removeMovieClip();
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.sh)) {
_root.ShanemenHP = _root.ShanemenHP - 1;
this.removeMovieClip();
}
}
Frame 1281
stop();
Instance of Symbol 320 MovieClip "enemy" in Frame 1281
onClipEvent (load) {
hp = 75;
spd = 3.5;
Stime = 0;
maxStime = random(30) + 20;
if (_name == "enemy") {
_x = 1000;
_y = 1000;
} else {
_y = random(400);
_x = 600;
}
}
onClipEvent (enterFrame) {
if (_name != "enemy") {
if (this.death._currentframe == 12) {
this.removeMovieClip();
}
if (hp > 0) {
_x = (_x - spd);
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 15;
_root.score = _root.score - 25;
this.gotoAndStop(2);
hp = 0;
}
if (Stime < maxStime) {
Stime++;
}
if (Stime == maxStime) {
_root.bn++;
duplicateMovieClip (_root.Ebulle, "Eshot" + _root.bn, _root.bn);
_root["Eshot" + _root.bn]._x = _x + 40;
_root["Eshot" + _root.bn]._y = _y + random(15);
Stime = 0;
}
for (i in _root) {
if (_root[i]._name.indexOf("bull") != -1) {
if (_root[i].hitTest(this)) {
hp = hp - _root[i].dam;
_root[i].removeMovieClip();
}
}
}
} else {
this.gotoAndStop(2);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.eee)) {
this.removeMovieClip();
}
}
Instance of Symbol 322 MovieClip "Ebulle" in Frame 1281
onClipEvent (load) {
speed = 15;
dam = 6;
this.gotoAndStop(_root.i + 1);
if (_name == "Ebulle") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_name != "Ebulle") {
_x = (_x - speed);
if (_x < 0) {
this.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - dam;
_root.score = _root.score - 5;
_root.hitsfx.gotoAndPlay("hit");
this.removeMovieClip();
}
}
}
Frame 1486
stop();
function reset() {
en = 250;
bn = 100;
i = 0;
damage = new Array(15, 20, 50, 60);
spd = new Array(35, 35, 20, 30);
maxreltime = new Array(2, 3, 10, 7);
acc = new Array(20, 15, 5, 0);
ammoB = ammo[i];
dtime = 0;
dupetime = 35;
health_hold.text = ("" + _root.player.health) + "%";
ammo_hold.text = "" + ammoB;
}
function lose() {
_root.player.removeMovieClip();
_root.enemy.removeMovieClip();
for (i in _root) {
if (_root[i]._name.indexOf("bull") != -1) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if (_root[i]._name.indexOf("Eshot") != -1) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if (_root[i]._name.indexOf("badA") != -1) {
_root[i].removeMovieClip();
}
}
_root.reset();
_root.gotoAndStop("Menu");
}
_root.reset();
_root.onEnterFrame = function () {
health_hold.text = ("" + _root.player.health) + "%";
ammo_hold.text = "" + ammoB;
ammoB = ammo[i];
if (_root.player.hp <= 0) {
_root.lose();
removeMovieClip(_root.player);
gotoAndStop ("G");
}
if (dtime < dupetime) {
dtime++;
}
if (dtime == dupetime) {
en++;
duplicateMovieClip (_root.enemy, "badA" + en, en);
dtime = 0;
}
if (bn >= 200) {
bn = 100;
}
if (en >= 350) {
en = 250;
}
};
Instance of Symbol 322 MovieClip "Ebulle" in Frame 1486
onClipEvent (load) {
speed = 17;
dam = 10;
this.gotoAndStop(_root.i + 1);
if (_name == "Ebulle") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_name != "Ebulle") {
_x = (_x - speed);
if (_x < 0) {
this.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - dam;
_root.score = _root.score - 10;
_root.hitsfx.gotoAndPlay("hit");
this.removeMovieClip();
}
}
}
Instance of Symbol 354 MovieClip "enemy" in Frame 1486
onClipEvent (load) {
hp = 100;
spd = 5;
Stime = 0;
maxStime = random(25) + 20;
if (_name == "enemy") {
_x = 1000;
_y = 1000;
} else {
_y = random(400);
_x = 600;
}
}
onClipEvent (enterFrame) {
if (_name != "enemy") {
if (this.death._currentframe == 12) {
this.removeMovieClip();
}
if (hp > 0) {
_x = (_x - spd);
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 15;
_root.score = _root.score - 25;
this.gotoAndStop(2);
hp = 0;
}
if (Stime < maxStime) {
Stime++;
}
if (Stime == maxStime) {
_root.bn++;
duplicateMovieClip (_root.Ebulle, "Eshot" + _root.bn, _root.bn);
_root["Eshot" + _root.bn]._x = _x + 5;
_root["Eshot" + _root.bn]._y = _y + random(15);
Stime = 0;
}
for (i in _root) {
if (_root[i]._name.indexOf("bull") != -1) {
if (_root[i].hitTest(this)) {
hp = hp - _root[i].dam;
_root[i].removeMovieClip();
}
}
}
} else {
this.gotoAndStop(2);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.eee)) {
this.removeMovieClip();
}
}
Frame 1696
stop();
function reset() {
en = 250;
bn = 100;
i = 0;
damage = new Array(15, 20, 50, 60);
spd = new Array(35, 35, 20, 30);
maxreltime = new Array(2, 3, 10, 7);
acc = new Array(20, 15, 5, 0);
ammoB = ammo[i];
dtime = 0;
dupetime = 75;
health_hold.text = ("" + _root.player.health) + "%";
ammo_hold.text = "" + ammoB;
}
function lose() {
_root.player.removeMovieClip();
_root.enemy.removeMovieClip();
for (i in _root) {
if (_root[i]._name.indexOf("bull") != -1) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if (_root[i]._name.indexOf("Eshot") != -1) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if (_root[i]._name.indexOf("badA") != -1) {
_root[i].removeMovieClip();
}
}
_root.reset();
_root.gotoAndStop("Menu");
}
_root.reset();
_root.onEnterFrame = function () {
health_hold.text = ("" + _root.player.health) + "%";
ammo_hold.text = "" + ammoB;
ammoB = ammo[i];
if (_root.player.hp <= 0) {
_root.lose();
removeMovieClip(_root.player);
gotoAndStop ("G");
}
if (dtime < dupetime) {
dtime++;
}
if (dtime == dupetime) {
en++;
duplicateMovieClip (_root.enemy, "badA" + en, en);
dtime = 0;
}
if (bn >= 200) {
bn = 100;
}
if (en >= 350) {
en = 250;
}
};
Instance of Symbol 401 MovieClip "enemy" in Frame 1696
onClipEvent (load) {
hp = 125;
spd = 4;
Stime = 0;
maxStime = random(40) + 20;
if (_name == "enemy") {
_x = 1000;
_y = 1000;
} else {
_y = random(400);
_x = 600;
}
}
onClipEvent (enterFrame) {
if (_name != "enemy") {
if (this.death._currentframe == 12) {
this.removeMovieClip();
}
if (hp > 0) {
_x = (_x - spd);
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 15;
_root.score = _root.score - 25;
this.gotoAndStop(2);
hp = 0;
}
if (Stime < maxStime) {
Stime++;
}
if (Stime == maxStime) {
_root.bn++;
duplicateMovieClip (_root.Ebulle, "Eshot" + _root.bn, _root.bn);
_root["Eshot" + _root.bn]._x = _x + 5;
_root["Eshot" + _root.bn]._y = _y + random(15);
Stime = 0;
}
for (i in _root) {
if (_root[i]._name.indexOf("bull") != -1) {
if (_root[i].hitTest(this)) {
hp = hp - _root[i].dam;
_root[i].removeMovieClip();
}
}
}
} else {
this.gotoAndStop(2);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.eee)) {
this.removeMovieClip();
}
}
Instance of Symbol 406 MovieClip "Ebulle" in Frame 1696
onClipEvent (load) {
speed = 11;
dam = 11;
this.gotoAndStop(_root.i + 1);
if (_name == "Ebulle") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_name != "Ebulle") {
_x = (_x - speed);
if (_x < 0) {
this.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - dam;
_root.score = _root.score - 10;
_root.hitsfx.gotoAndPlay("hit");
this.removeMovieClip();
}
}
}
Frame 1697
function reset() {
en = 250;
bn = 100;
i = 0;
damage = new Array(15, 20, 50, 60);
spd = new Array(35, 35, 20, 30);
maxreltime = new Array(2, 3, 10, 7);
acc = new Array(20, 15, 5, 0);
ammoB = ammo[i];
dtime = 0;
dupetime = 100;
health_hold.text = ("" + _root.player.health) + "%";
ammo_hold.text = "" + ammoB;
}
function lose() {
_root.player.removeMovieClip();
_root.enemy.removeMovieClip();
for (i in _root) {
if (_root[i]._name.indexOf("bull") != -1) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if (_root[i]._name.indexOf("Eshot") != -1) {
_root[i].removeMovieClip();
}
}
for (i in _root) {
if (_root[i]._name.indexOf("badA") != -1) {
_root[i].removeMovieClip();
}
}
_root.reset();
_root.gotoAndStop("Menu");
}
_root.reset();
_root.onEnterFrame = function () {
health_hold.text = ("" + _root.player.health) + "%";
ammo_hold.text = "" + ammoB;
ammoB = ammo[i];
if (_root.player.hp <= 0) {
_root.lose();
removeMovieClip(_root.player);
gotoAndStop ("G");
}
if (dtime < dupetime) {
dtime++;
}
if (dtime == dupetime) {
en++;
duplicateMovieClip (_root.enemy, "badA" + en, en);
dtime = 0;
}
if (bn >= 200) {
bn = 100;
}
if (en >= 350) {
en = 250;
}
};
Frame 1893
stopAllSounds();
Frame 1917
_root.ShanemenHP = 400;
Instance of Symbol 468 MovieClip "sh" in Frame 1917
onClipEvent (enterFrame) {
if (_root.ShanemenHP <= 0) {
this.gotoAndStop("death");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 0.5;
}
}
Instance of Symbol 471 MovieClip "sHP" in Frame 1917
onClipEvent (enterFrame) {
this._width = _root.ShanemenHP;
}
Frame 2266
stop();
Instance of Symbol 322 MovieClip "Ebulle" in Frame 2266
onClipEvent (load) {
speed = 17;
dam = 10;
this.gotoAndStop(_root.i + 1);
if (_name == "Ebulle") {
_x = 1000;
_y = 1000;
}
}
onClipEvent (enterFrame) {
if (_name != "Ebulle") {
_x = (_x - speed);
if (_x < 0) {
this.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - dam;
_root.score = _root.score - 10;
_root.hitsfx.gotoAndPlay("hit");
this.removeMovieClip();
}
}
}
Instance of Symbol 354 MovieClip "enemy" in Frame 2266
onClipEvent (load) {
hp = 75;
spd = 5;
Stime = 0;
maxStime = random(30) + 20;
if (_name == "enemy") {
_x = 1000;
_y = 1000;
} else {
_y = random(400);
_x = 600;
}
}
onClipEvent (enterFrame) {
if (_name != "enemy") {
if (this.death._currentframe == 12) {
this.removeMovieClip();
}
if (hp > 0) {
_x = (_x - spd);
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 15;
_root.score = _root.score - 25;
this.gotoAndStop(2);
hp = 0;
}
if (Stime < maxStime) {
Stime++;
}
if (Stime == maxStime) {
_root.bn++;
duplicateMovieClip (_root.Ebulle, "Eshot" + _root.bn, _root.bn);
_root["Eshot" + _root.bn]._x = _x + 5;
_root["Eshot" + _root.bn]._y = _y + random(15);
Stime = 0;
}
for (i in _root) {
if (_root[i]._name.indexOf("bull") != -1) {
if (_root[i].hitTest(this)) {
hp = hp - _root[i].dam;
_root[i].removeMovieClip();
}
}
}
} else {
this.gotoAndStop(2);
}
}
}
Frame 2367
stopAllSounds();
_root.player.swapDepths(999999);
gotoAndPlay ("end");
Frame 2368
_root.player.swapDepths(999999);
_root.player._alpha = 0;
Frame 3213
stop();
Frame 3249
stop();
sfxF = new Sound(this);
sfxF.attachSound("F");
sfxF.start(0, 1);
Symbol 13 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 17 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 19 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 27 Button
on (press) {
getURL ("http://www.duderentertainment.com/", "blank");
}
Symbol 28 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndPlay ("loaded");
}
Symbol 28 MovieClip Frame 2
gotoAndPlay (1);
play();
Symbol 28 MovieClip Frame 3
_root.play();
Symbol 30 MovieClip Frame 1
var copyrightNotice = "Copyright (c) 2006-2007 Sockpuppet Pty Ltd. All Rights Reserved. http://www.reanimator.net";
var reanimator = (new flash.geom.Transform(this));
var camera = (new flash.geom.Transform(this._parent));
var w = Stage.width;
var h = Stage.height;
this._visible = false;
this.onEnterFrame = function () {
this._parent.filters = this.filters;
var _local2 = reanimator.matrix;
camera.colorTransform = reanimator.colorTransform;
_local2.invert();
_local2.translate(w * 0.5, h * 0.5);
camera.matrix = _local2;
};
Symbol 582 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 73 MovieClip Frame 286
stop();
Symbol 159 Button
on (press) {
getURL ("http://www.duderentertainment.com/", "blank");
}
Symbol 160 Button
on (press) {
getURL ("http://www.newgrounds.com/refer/thecriminalduder, blank");
}
Symbol 169 Button
on (release) {
stopAllSounds();
gotoAndPlay ("P");
}
Symbol 172 Button
on (release) {
gotoAndPlay ("IN");
}
Symbol 182 Button
on (release) {
gotoAndPlay ("mm");
}
Symbol 202 MovieClip Frame 114
this.gotoAndPlay(1);
Symbol 202 MovieClip Frame 120
this.gotoAndPlay(1);
Symbol 227 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 2
this.gotoAndPlay(random(4));
Symbol 233 MovieClip Frame 3
stop();
Symbol 233 MovieClip Frame 4
stop();
Symbol 302 MovieClip Frame 1
this.gotoAndPlay(random(10));
Symbol 302 MovieClip Frame 2
stop();
Instance of Symbol 85 MovieClip in Symbol 302 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.ammo[_root.i] = _root.ammo[_root.i] + 75;
this.swapDepths(9999);
sfxA = new Sound(this);
sfxA.attachSound("RL");
sfxA.start(0, 1);
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Symbol 302 MovieClip Frame 3
stop();
Symbol 302 MovieClip Frame 4
stop();
Instance of Symbol 300 MovieClip in Symbol 302 MovieClip Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.score = _root.score + 250;
sfxC = new Sound(this);
sfxC.attachSound("DC");
sfxC.start(0, 1);
this.swapDepths(9999);
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Symbol 302 MovieClip Frame 5
stop();
Symbol 302 MovieClip Frame 6
stop();
Instance of Symbol 301 MovieClip in Symbol 302 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp + 75;
sfxW = new Sound(this);
sfxW.attachSound("HT");
sfxW.start(0, 1);
this.swapDepths(9999);
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Symbol 302 MovieClip Frame 7
stop();
Symbol 302 MovieClip Frame 8
stop();
Instance of Symbol 93 MovieClip in Symbol 302 MovieClip Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp + 25;
_root.score = _root.score + 25;
sfxJ = new Sound(this);
sfxJ.attachSound("JJ");
sfxJ.start(0, 1);
this.swapDepths(9999);
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Symbol 302 MovieClip Frame 9
stop();
Symbol 302 MovieClip Frame 10
stop();
Instance of Symbol 93 MovieClip in Symbol 302 MovieClip Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp + 25;
_root.score = _root.score + 25;
sfxJ = new Sound(this);
sfxJ.attachSound("JJ");
sfxJ.start(0, 1);
this.swapDepths(9999);
this.removeMovieClip();
}
}
onClipEvent (enterFrame) {
this._x = this._x + 5;
}
Symbol 319 MovieClip Frame 11
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 2
_root.score = _root.score + 50;
stop();
Symbol 327 MovieClip Frame 1
timer = 0;
gameTimer = 2250;
_root.cd.gameTime = 90;
onEnterFrame = function () {
if (gameTimer > 2250) {
countDown = Math.ceil(gameTimer - 90);
gameTimer--;
} else if (gameTimer == 2250) {
countDown = "";
gameTimer--;
} else if (gameTimer > 0) {
gameTimer--;
_root.cd.gameTime = Math.ceil(gameTimer / 25);
timer--;
} else if (gameTimer == 0) {
gameTimer--;
_root.gotoAndPlay("l2b");
this.gotoAndPlay(2);
}
if (_root.cd.gameTime > 90) {
_root.cd.gameTime = 90;
}
if (timer < 0) {
timer = 45 - ((90 - gameTime) / 2);
}
};
stop();
Symbol 327 MovieClip Frame 2
stop();
Symbol 329 MovieClip Frame 114
stop();
Symbol 352 MovieClip Frame 1
size = 50 + random(100);
a = Math.random() * 4;
b = Math.random() * 4;
xspeed = -4 + a;
yspeed = -9 + b;
_xscale = size;
_yscale = size;
time_left_in_this_world = 50;
gotoAndPlay(random(7));
Symbol 352 MovieClip Frame 2
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + Math.random();
time_left_in_this_world = time_left_in_this_world + -1;
if (time_left_in_this_world < 0) {
gotoAndStop (8);
}
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
Symbol 352 MovieClip Frame 3
gotoAndPlay (2);
Symbol 352 MovieClip Frame 4
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + Math.random();
time_left_in_this_world = time_left_in_this_world + -1;
if (time_left_in_this_world < 0) {
gotoAndStop (8);
}
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
Symbol 352 MovieClip Frame 5
gotoAndPlay (4);
Symbol 352 MovieClip Frame 6
_x = (_x + xspeed);
_y = (_y + yspeed);
yspeed = yspeed + Math.random();
time_left_in_this_world = time_left_in_this_world + -1;
if (time_left_in_this_world < 0) {
gotoAndStop (8);
}
_xscale = (_xscale - 1);
_yscale = (_yscale - 1);
Symbol 352 MovieClip Frame 7
gotoAndPlay (6);
Symbol 352 MovieClip Frame 8
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 2
_root.score = _root.score + 50;
stop();
Symbol 357 MovieClip Frame 1
stop();
timer = 0;
gameTimer = 2250;
_root.cd.gameTime = 90;
onEnterFrame = function () {
if (gameTimer > 2250) {
countDown = Math.ceil(gameTimer - 90);
gameTimer--;
} else if (gameTimer == 2250) {
countDown = "";
gameTimer--;
} else if (gameTimer > 0) {
gameTimer--;
_root.cd.gameTime = Math.ceil(gameTimer / 25);
timer--;
} else if (gameTimer == 0) {
gameTimer--;
_root.gotoAndPlay("l3b");
this.gotoAndPlay(2);
}
if (_root.cd.gameTime > 90) {
_root.cd.gameTime = 90;
}
if (timer < 0) {
timer = 45 - ((90 - gameTime) / 2);
}
};
Symbol 357 MovieClip Frame 2
stop();
Symbol 359 MovieClip Frame 114
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
_root.score = _root.score + 50;
stop();
Symbol 406 MovieClip Frame 1
this.play();
Symbol 409 MovieClip Frame 1
stop();
timer = 0;
gameTimer = 2250;
_root.cd.gameTime = 90;
onEnterFrame = function () {
if (gameTimer > 2250) {
countDown = Math.ceil(gameTimer - 90);
gameTimer--;
} else if (gameTimer == 2250) {
countDown = "";
gameTimer--;
} else if (gameTimer > 0) {
gameTimer--;
_root.cd.gameTime = Math.ceil(gameTimer / 25);
timer--;
} else if (gameTimer == 0) {
gameTimer--;
_root.gotoAndPlay("boss");
this.gotoAndPlay(2);
}
if (_root.cd.gameTime > 90) {
_root.cd.gameTime = 90;
}
if (timer < 0) {
timer = 45 - ((90 - gameTime) / 2);
}
};
Symbol 409 MovieClip Frame 2
stop();
Symbol 411 MovieClip Frame 114
stop();
Instance of Symbol 441 MovieClip in Symbol 443 MovieClip Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 1;
_root.score = _root.score - 5;
}
}
Instance of Symbol 441 MovieClip in Symbol 443 MovieClip Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 1;
_root.score = _root.score - 5;
}
}
Instance of Symbol 441 MovieClip in Symbol 443 MovieClip Frame 35
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 1;
_root.score = _root.score - 5;
}
}
Instance of Symbol 450 MovieClip in Symbol 452 MovieClip Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 2;
_root.score = _root.score - 2;
}
}
Instance of Symbol 450 MovieClip in Symbol 452 MovieClip Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 3;
_root.score = _root.score - 2;
}
}
Instance of Symbol 450 MovieClip in Symbol 452 MovieClip Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 2;
_root.score = _root.score - 2;
}
}
Instance of Symbol 455 MovieClip in Symbol 456 MovieClip Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 2;
_root.score = _root.score - 2;
}
}
Instance of Symbol 455 MovieClip in Symbol 456 MovieClip Frame 49
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.player.hp = _root.player.hp - 2;
_root.score = _root.score - 2;
}
}
Symbol 467 MovieClip Frame 40
stop();
_root.gotoAndPlay("win");
Symbol 468 MovieClip Frame 1
if (_root.ShanemenHP == 0) {
this.gotoAndPlay("death");
}
Symbol 468 MovieClip Frame 44
var attacks = new Array("A1", "A2", "A3");
this.gotoAndPlay(attacks[Math.ceil(Math.random() * attacks.length)]);
Symbol 468 MovieClip Frame 114
this.gotoAndPlay(1);
Symbol 468 MovieClip Frame 185
this.gotoAndPlay(1);
Symbol 468 MovieClip Frame 266
this.gotoAndPlay(1);
Symbol 468 MovieClip Frame 267
stop();
Symbol 502 MovieClip Frame 56
stop();
Symbol 536 Button
on (press) {
stopAllSounds();
gotoAndPlay ("Begin");
}
Symbol 540 Button
on (release) {
stopAllSounds();
gotoAndPlay ("s");
}
Symbol 581 MovieClip Frame 53
stop();
_root.gotoAndPlay("GO", "gameover");