Combined Code
movieClip 14 splat1 {
frame 27 {
this.removeMovieClip();
}
}
movieClip 24 splat2 {
frame 30 {
this.removeMovieClip();
}
}
movieClip 35 splat3 {
frame 38 {
this.removeMovieClip();
}
}
frame 1 {
NewgroundsAPI.connectMovie(7726);
stop();
Stage.showMenu = false();
_root.hit1 = new Sound(this);
_root.hit1.attachSound('hit1');
_root.hit2 = new Sound(this);
_root.hit2.attachSound('hit2');
_root.hit3 = new Sound(this);
_root.hit3.attachSound('hit3');
_root.hit4 = new Sound(this);
_root.hit4.attachSound('hit4');
_root.hit5 = new Sound(this);
_root.hit5.attachSound('hit5');
_root.createEmptyMovieClip('musicMC', 1001);
track01 = new Sound(musicMC);
track01.attachSound('track01');
}
movieClip 38 {
}
movieClip 41 {
}
movieClip 43 {
}
movieClip 45 {
}
movieClip 47 {
}
movieClip 50 {
}
movieClip 51 {
}
movieClip 52 {
}
movieClip 53 {
}
movieClip 54 {
}
movieClip 55 {
}
movieClip 58 {
}
movieClip 62 {
}
movieClip 72 {
frame 40 {
stop();
}
}
movieClip 85 {
}
button 86 {
on (press) {
tellTarget ('_root') {
nextFrame();
}
}
}
button 87 {
on (press) {
gotoAndStop('end');
_root.play();
}
}
movieClip 88 {
instance of movieClip 62 {
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop('lastframe');
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay('loaded');
}
}
}
frame 101 {
play();
}
frame 165 {
stop();
}
}
button 94 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
button 100 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
movieClip 101 {
}
movieClip 102 {
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');
} else {}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
// unknown tag 88 length 63
movieClip 991 __Packages.NewgroundsAPI {
#initclip
if (!_global.NewgroundsAPI) {
var v1 = function () {};
_global.NewgroundsAPI = v1;
var v2 = v1.prototype;
v1.connectMovie = function (id) {
if (!id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)');
} else {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendMessage('Connecting to API gateway...');
NewgroundsAPI.tracker_id = id;
NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase();
if (NewgroundsAPI.host.length < 1) {
NewgroundsAPI.host = 'localhost';
}
var v2 = new Object();
NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS);
}
}
};
v1.setMovieVersion = function (movie_version) {
if (!movie_version) {
NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)');
} else {
NewgroundsAPI.version = movie_version;
}
};
v1.debugMode = function () {
NewgroundsAPI.debug = true;
};
v1.addCustomEvent = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom event: ' + stat_name);
}
}
};
v1.addCustomLink = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name);
}
}
};
v1.loadMySite = function () {
NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE);
};
v1.loadNewgrounds = function (special) {
if (special) {
var v1 = {'page': special};
}
NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1);
};
v1.logCustomEvent = function (event_name) {
if (!event_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)');
} else {
if (!NewgroundsAPI.custom_events[event_name]) {
NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name);
} else {
NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]);
}
}
};
v1.loadCustomLink = function (link_name) {
if (!link_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)');
} else {
if (!NewgroundsAPI.custom_links[link_name]) {
NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name);
} else {
NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]);
}
}
};
v1.getAdURL = function () {
return NewgroundsAPI.movie_options.ad_url;
};
v1.getMovieURL = function () {
if (NewgroundsAPI.movie_options.movie_url) {
return NewgroundsAPI.movie_options.movie_url;
} else {
return 'Newgrounds.com';
}
};
v1.getNewVersionURL = function () {
return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION;
};
v1.SendEvent = function (id) {
NewgroundsAPI.SendStat(id, false);
};
v1.SendLink = function (id, extra) {
NewgroundsAPI.SendStat(id, true, extra);
};
v1.ReadGatewayData = function (params) {
for (var v2 in params) {
params[v2] = unescape(params[v2]);
NewgroundsAPI.movie_options[v2] = params[v2];
}
if (params.settings_loaded) {
NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!');
NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\'');
if (NewgroundsAPI.movie_options.message) {
NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message);
}
if (NewgroundsAPI.movie_options.ad_url) {
NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads');
NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url);
}
if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) {
NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!');
NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.deny_host) {
NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.');
NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.');
NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.request_portal_url == 1) {
var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url);
var v3 = new XML();
v3.ignoreWhite = true;
v3.load(v4);
}
} else {
if (!NewgroundsAPI.movie_options.settings_loaded) {
NewgroundsAPI.SendError('Could not establish connection to the API gateway.');
}
}
};
v1.SendStat = function (stat_id, open_in_browser, extra) {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.');
NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?');
} else {
var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id;
for (var v9 in extra) {
v7 += '&' + escape(v9) + '=' + escape(extra[v9]);
}
trace(v7);
if (NewgroundsAPI.debug) {
v7 += '&debug=1';
}
if (open_in_browser) {
getURL(v7, '_blank');
} else {
var v10 = new XML();
v10.ignoreWhite = true;
v10.onLoad = function (success) {
var v6 = new Object();
var v3 = 0;
while (v3 < this.firstChild.childNodes.length) {
var v4 = this.firstChild.childNodes[v3];
var v5 = v4.nodeName;
var v2 = v4.attributes.value;
if (v2 == Number(v2)) {
v2 = Number(v2);
}
v6[v5] = v2;
++v3;
}
NewgroundsAPI.ReadGatewayData(v6);
};
v10.load(v7);
}
}
};
v1.SendError = function (msg) {
trace('[NEWGROUNDS API ERROR] :: ' + msg);
};
v1.SendMessage = function (msg) {
trace('[NEWGROUNDS API] :: ' + msg);
};
v1.InitTextFormats = function () {
if (!NewgroundsAPI.error_format) {
NewgroundsAPI.error_format = new TextFormat();
NewgroundsAPI.error_format.font = 'Arial Black';
NewgroundsAPI.error_format.size = 48;
NewgroundsAPI.error_format.color = 16711680;
}
if (!NewgroundsAPI.header_format) {
NewgroundsAPI.header_format = new TextFormat();
NewgroundsAPI.header_format.font = 'Arial Black';
NewgroundsAPI.header_format.size = 24;
NewgroundsAPI.header_format.color = 16777215;
}
if (!NewgroundsAPI.normal_format) {
NewgroundsAPI.normal_format = new TextFormat();
NewgroundsAPI.normal_format.font = 'Arial';
NewgroundsAPI.normal_format.bold = true;
NewgroundsAPI.normal_format.size = 12;
NewgroundsAPI.normal_format.color = 16777215;
}
if (!NewgroundsAPI.link_format) {
NewgroundsAPI.link_format = new TextFormat();
NewgroundsAPI.link_format.color = 16776960;
NewgroundsAPI.link_format.underline = true;
}
};
v1.onNewVersionAvailable = function (version, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
var v2 = new Object();
v2.x = Stage.width / 2;
v2.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(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.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(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.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 v3 = 'Version ' + version + ' is now available at:' + '\n';
var v5 = v3.length;
v3 += movie_url;
var v4 = v3.length;
_root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!';
_root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.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 = v3;
_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(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format);
};
v1.onDenyHost = function (hostname, movie_url, redirect_url) {
NewgroundsAPI.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 v2 = 'This movie has not been approved for use on ' + hostname + '.';
v2 += '\r\rFor an aproved copy, please visit:\r';
var v4 = v2.length;
v2 += movie_url;
var v3 = v2.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(NewgroundsAPI.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 = v2;
_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(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format);
};
v1.isInstalled = function () {
return true;
};
v1.onAdsApproved = function (ad_url) {};
v1.movie_options = new Object();
v1.custom_events = new Object();
v1.custom_links = new Object();
v1.MOVIE_VIEWS = 1;
v1.AUTHOR_SITE = 2;
v1.NEWGROUNDS = 3;
v1.NEW_VERSION = 4;
v1.CUSTOM_STATS = 50;
v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php';
ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1);
}
#endinitclip
}
movieClip 992 __Packages.ab3.rankz.Armor_Bot_30_En_AS1 {
#initclip
if (!_global.ab3) {
_global.ab3 = new Object();
}
if (!_global.ab3.rankz) {
_global.ab3.rankz = new Object();
}
if (!_global.ab3.rankz.Armor_Bot_30_En_AS1) {
var v1 = function () {
super();
};
ab3.rankz.Armor_Bot_30_En_AS1 = v1;
ab3.rankz.Armor_Bot_30_En_AS1 extends Object;
var v2 = v1.prototype;
v1.Encode = function (str) {
var v1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return v1.encodeArmor_Bot_30_En_AS1(str);
};
v1.Decode = function (str) {
var v1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return v1.decodeArmor_Bot_30_En_AS1(str);
};
v1.StringReplaceAll = function (source, find, replacement) {
return (source.split(find)).join(replacement);
};
v1.InitReverseChars = function () {
ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup = new Array();
var v1 = 0;
while (v1 < ab3.rankz.Armor_Bot_30_En_AS1._Chars.length) {
ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[ab3.rankz.Armor_Bot_30_En_AS1._Chars[v1]] = v1;
++v1;
}
return true;
};
v1.UrlDecode = function (str) {
str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '\\', ' ');
str = unescape(str);
return str;
};
v1.UrlEncode = function (str) {
str = escape(str);
str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '\\', '%2B');
str = ab3.rankz.Armor_Bot_30_En_AS1.StringReplaceAll(str, '%20', '+');
return str;
};
v2.setArmor_Bot_30_En_AS1Str = function (str) {
this._Armor_Bot_30_En_AS1Str = str;
this._Armor_Bot_30_En_AS1Count = 0;
};
v2.readArmor_Bot_30_En_AS1 = function () {
if (!this._Armor_Bot_30_En_AS1Str) {
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
}
if (this._Armor_Bot_30_En_AS1Count >= this._Armor_Bot_30_En_AS1Str.length) {
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
}
var v2 = this._Armor_Bot_30_En_AS1Str.charCodeAt(this._Armor_Bot_30_En_AS1Count) & 255;
++this._Armor_Bot_30_En_AS1Count;
return v2;
};
v2.encodeArmor_Bot_30_En_AS1 = function (str) {
this.setArmor_Bot_30_En_AS1Str(str);
var v3 = '';
var v2 = new Array(3);
var v5 = 0;
var v4 = false;
for (;;) {
if (!(!v4 && v2[0] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput)) break;
v2[1] = this.readArmor_Bot_30_En_AS1();
v2[2] = this.readArmor_Bot_30_En_AS1();
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] >> 2];
if (v2[1] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) {
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] << 4 & 48 | v2[1] >> 4];
if (v2[2] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) {
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[1] << 2 & 60 | v2[2] >> 6];
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[2] & 63];
} else {
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[1] << 2 & 60];
v3 += '=';
v4 = true;
}
} else {
v3 += ab3.rankz.Armor_Bot_30_En_AS1._Chars[v2[0] << 4 & 48];
v3 += '=';
v3 += '=';
v4 = true;
}
v5 += 4;
if (v5 >= 76) {
v3 += '\n';
v5 = 0;
}
}
return v3;
};
v2.readReverseArmor_Bot_30_En_AS1 = function () {
if (!this._Armor_Bot_30_En_AS1Str) {
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
}
while (!false) {
if (this._Armor_Bot_30_En_AS1Count >= this._Armor_Bot_30_En_AS1Str.length) {
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
}
var v2 = this._Armor_Bot_30_En_AS1Str.charAt(this._Armor_Bot_30_En_AS1Count);
++this._Armor_Bot_30_En_AS1Count;
if (ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[v2]) {
return ab3.rankz.Armor_Bot_30_En_AS1._CharsReverseLookup[v2];
}
if (v2 == 'A') {
return 0;
}
}
return ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput;
};
v2.ntos = function (n) {
var v1 = n.toString(16);
if (v1.length == 1) {
v1 = '0' + v1;
}
v1 = '%' + v1;
return unescape(v1);
};
v2.decodeArmor_Bot_30_En_AS1 = function (str) {
this.setArmor_Bot_30_En_AS1Str(str);
var v3 = '';
var v2 = new Array(4);
var v4 = false;
for (;;) {
if (!(!v4 && v2[0] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput && v2[1] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput)) break;
v2[2] = this.readReverseArmor_Bot_30_En_AS1();
v2[3] = this.readReverseArmor_Bot_30_En_AS1();
v3 += this.ntos(v2[0] << 2 & 255 | v2[1] >> 4);
if (v2[2] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) {
v3 += this.ntos(v2[1] << 4 & 255 | v2[2] >> 2);
if (v2[3] != ab3.rankz.Armor_Bot_30_En_AS1._EndOfInput) {
v3 += this.ntos(v2[2] << 6 & 255 | v2[3]);
} else {
v4 = true;
}
} else {
v4 = true;
}
}
return v3;
};
v2.toHex = function (n) {
var v4 = '';
var v3 = true;
var v1 = 32;
while (v1 > 0) {
v1 -= 4;
var v2 = n >> v1 & 15;
if (!v3 || v2 != 0) {
v3 = false;
v4 += ab3.rankz.Armor_Bot_30_En_AS1._Digits[v2];
}
}
return (v4 == '') ? '0' : v4;
};
v2.pad = function (str, len, pad) {
var v2 = str;
var v1 = str.length;
while (v1 < len) {
v2 = pad + v2;
++v1;
}
return v2;
};
v2.encodeHex = function (str) {
var v4 = '';
var v2 = 0;
while (v2 < str.length) {
v4 += this.pad(this.toHex(str.charCodeAt(v2) & 255), 2, '0');
++v2;
}
return v4;
};
v2.decodeHex = function (str) {
var v5 = '';
var v3 = '';
var v2 = 0;
while (v2 < str.length) {
v3 += str.charAt(v2);
if (v3.length == 2) {
v5 += this.ntos(parseInt('0x' + v3));
v3 = '';
}
++v2;
}
return v5;
};
v1._EndOfInput = -1;
v1._Chars = new Array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/');
v1._CharsReverseLookupInited = ab3.rankz.Armor_Bot_30_En_AS1.InitReverseChars();
v1._Digits = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f');
ASSetPropFlags(ab3.rankz.Armor_Bot_30_En_AS1.prototype, null, 1);
}
#endinitclip
}
frame 2 {
play();
}
frame 35 {
track01.start(0, 0);
}
frame 36 {
stop();
}
movieClip 112 {
}
movieClip 113 {
}
movieClip 114 {
}
movieClip 116 {
frame 10 {
stop();
}
}
movieClip 117 {
frame 7 {
_parent.gotoAndStop(1);
}
}
movieClip 118 {
}
movieClip 119 {
}
movieClip 121 {
}
movieClip 122 {
}
movieClip 124 {
frame 10 {
stop();
}
}
movieClip 125 {
frame 7 {
_parent.gotoAndStop(1);
}
}
movieClip 126 {
}
movieClip 127 {
}
movieClip 129 {
}
movieClip 130 {
}
movieClip 131 {
}
movieClip 133 {
frame 10 {
stop();
}
}
movieClip 134 {
frame 7 {
_parent.gotoAndStop(1);
}
}
movieClip 135 {
}
movieClip 136 {
}
movieClip 137 {
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');
} else {}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
movieClip 138 {
instance of movieClip 119 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://supernukebros.moonfruit.com/characters', '');
}
}
instance of movieClip 119 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://supernukebros.moonfruit.com/characters', '');
}
}
instance of movieClip 127 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://supernukebros.moonfruit.com/characters', '');
}
}
instance of movieClip 136 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://supernukebros.moonfruit.com/characters', '');
}
}
instance of movieClip 136 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://www.sun-studios.net', '_blank');
}
}
instance of movieClip 127 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://rankz.armorbot.com/MarioCombat2/', '_blank');
}
}
instance of movieClip 119 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
_root.play();
}
}
frame 188 {
stop();
}
}
movieClip 144 {
frame 161 {
stop();
}
}
movieClip 147 {
frame 25 {
stop();
}
}
movieClip 150 {
}
movieClip 161 {
}
instance of movieClip 161 {
onClipEvent (load) {
var lol = 100;
}
onClipEvent (enterFrame) {
if (lol > 0) {
lol -= 0.7;
_root.track01.setVolume(lol);
}
}
}
frame 276 {
_root.track01.stop();
}
frame 277 {
_root.score = 0;
play();
}
movieClip 164 {
}
instance fire of movieClip 164 {
onClipEvent (load) {
var maxgrav = 20;
var mingrav = 8;
var grav = -10;
var speed = 10;
var xmove = _root.mario._xscale / 100;
var activeTime = 80;
var fireparticle = _root.firepart;
}
onClipEvent (enterFrame) {
if (_name == 'fire') {
_visible = false;
} else {
_visible = true;
this._rotation += 15 * xmove;
if (this._y > 1041) {
this.removeMovieClip();
}
++grav;
if (grav > maxgrav) {
grav = maxgrav;
}
_y = _y + grav;
_x = _x + speed * xmove;
if (grav > 0 && (_root.ground.groundhit.hitTest(_x, _y, true) or _root.ground.plats.hitTest(_x, _y, true))) {
if (grav < 8) {
grav = mingrav;
}
grav *= -1;
}
if (_root.ground.groundhit.hitTest(_x - _width / 2, _y - _height / 2, true) or _root.ground.groundhit.hitTest(_x + _width / 2, _y - _height / 2, true)) {
speed *= -1;
}
if (activeTime > 0) {
--activeTime;
}
if (activeTime == 0) {
this.removeMovieClip();
}
fireparticle = _root.firepart.duplicateMovieClip('firepart' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
if (fireparticle._alpha == 100) {
fireparticle._x = this._x;
fireparticle._y = this._y;
}
}
}
}
movieClip 167 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 168 {
instance of movieClip 167 {
onClipEvent (enterFrame) {
if (_quality == 'MEDIUM') {
this.gotoAndStop(1);
} else {
if (_quality == 'LOW') {
this.gotoAndStop(2);
}
}
}
}
frame 4 {
stop();
}
}
instance firepart of movieClip 168 {
onClipEvent (load) {
_alpha = 100;
var size = random(50);
this._xscale += size;
this._yscale += size;
_x = _x + random(15);
_x = _x - random(15);
_y = _y + random(15);
_y = _y - random(15);
this._rotation += random(360);
var fadeSpeed = random(30);
}
onClipEvent (enterFrame) {
if (_name == 'firepart') {
_visible = false;
} else {
this._y -= random(5);
this._alpha -= fadeSpeed;
if (fadeSpeed <= 5) {
fadeSpeed += random(10);
}
if (_xscale > 0) {
this._xscale -= 7;
this._yscale -= 7;
}
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
}
}
movieClip 170 {
}
movieClip 194 {
frame 17 {
_parent.gotoAndStop(1);
}
}
movieClip 201 {
}
movieClip 204 {
}
movieClip 205 {
frame 1 {
stop();
}
frame 2 {
play();
}
frame 30 {
gotoAndPlay(3);
}
frame 32 {
play();
}
frame 46 {
gotoAndPlay(33);
}
}
movieClip 207 {
}
movieClip 211 {
frame 11 {
stop();
}
}
movieClip 222 {
frame 1 {
_visible = false;
}
}
movieClip 285 {
frame 14 {
_parent.gotoAndStop(1);
}
frame 33 {
_parent.gotoAndStop(1);
}
frame 54 {
_parent.gotoAndStop(1);
}
frame 90 {
_parent.gotoAndStop(1);
}
}
movieClip 295 {
}
movieClip 296 {
frame 1 {
++_root.mario.powerUp;
}
}
movieClip 337 {
}
movieClip 338 {
frame 1 {
++_root.mario.powerUp;
}
}
movieClip 358 {
}
movieClip 359 {
frame 1 {
++_root.mario.powerUp;
}
}
movieClip 393 {
frame 1 {
chargetime = 50;
onEnterFrame = function () {
if (this._currentframe == 5 or this._currentframe == 41 or this._currentframe == 65) {
if (Key.isDown(_parent.attackB)) {
this.stop();
} else {
this.play();
}
--this.chargetime;
if (this.chargetime == 0) {
this.play();
}
}
};
}
frame 5 {
stop();
}
frame 37 {
_parent.gotoAndStop(1);
}
frame 41 {
stop();
}
frame 62 {
_parent.gotoAndStop(1);
}
frame 86 {
_parent.gotoAndStop(1);
}
}
movieClip 501 {
frame 44 {
_parent.gotoAndStop('jump');
}
frame 83 {
_parent.gotoAndStop('jump');
}
frame 103 {
_parent.gotoAndStop('jump');
}
frame 152 {
_parent.gotoAndStop('jump');
}
frame 174 {
_parent.gotoAndStop('jump');
}
}
movieClip 548 {
frame 22 {
stop();
}
}
movieClip 613 {
}
movieClip 710 {
frame 35 {
_parent.gotoAndStop(1);
}
frame 50 {
_parent.attacking = false;
}
frame 72 {
stop();
}
frame 112 {
_parent.gotoAndStop(1);
}
frame 167 {
_parent.gotoAndStop(1);
}
}
movieClip 774 {
frame 54 {
stop();
}
}
movieClip 779 {
frame 10 {
_parent.gotoAndStop(1);
}
}
movieClip 794 {
frame 51 {
stop();
_root.score /= 2;
_root.hud.fader.play();
}
}
movieClip 795 {
frame 1 {
stop();
attacking = false;
crouch = false;
onEdge = false;
}
instance bound of movieClip 170 {
onClipEvent (load) {
_visible = false;
}
}
frame 2 {
attacking = false;
crouch = false;
onEdge = false;
}
frame 4 {
gotoAndStop(1);
attacking = false;
crouch = false;
onEdge = false;
}
frame 5 {
stop();
attacking = false;
crouch = false;
onEdge = false;
}
instance edgegrab of movieClip 207 {
onClipEvent (load) {
this._alpha = 0;
}
}
frame 6 {
attacking = false;
onEdge = false;
}
frame 7 {
attacking = true;
crouch = false;
onEdge = false;
}
frame 8 {
attacking = true;
crouch = false;
moving = false;
onEdge = false;
}
frame 9 {
attacking = true;
crouch = false;
onEdge = false;
}
frame 10 {
moving = false;
attacking = false;
crouch = false;
onEdge = true;
}
instance edgegrab of movieClip 207 {
onClipEvent (load) {
this._alpha = 0;
}
}
frame 11 {
attacking = true;
crouch = false;
moving = false;
onEdge = false;
}
frame 12 {
attacking = true;
crouch = false;
onEdge = false;
moving = false;
}
frame 13 {
attacking = false;
crouch = false;
onEdge = false;
moving = false;
}
}
instance mario of movieClip 795 {
onClipEvent (load) {
leftB = 37;
rightB = 39;
upB = 38;
downB = 40;
attackB = 83;
specialB = 68;
jumpB = 65;
var powerUp = 0;
var life = 10;
var xSpeed = 0;
var grav = 0;
var maxSpeed = 10;
var jumpNum = 1;
var hurt = false;
var moving = false;
var onGround = true;
var crouch = false;
var attacking = false;
var onEdge = false;
var platDelay = 0;
var throughd = 0;
var throughtap = -1;
var edgeDelay = 5;
var firemc = _root.fire;
var shDelay = 0;
}
onClipEvent (enterFrame) {
if (life <= 0) {
life = 0;
grav = 0;
xSpeed = 0;
this.gotoAndStop('death');
}
if (this._currentframe != 8) {
powerUp = 0;
}
if (edgeDelay > 0) {
--edgeDelay;
}
if (throughd > 0) {
--throughd;
}
if (throughd == 0) {
throughtap = -1;
}
if (platDelay > 0) {
--platDelay;
}
if (shDelay > -1) {
--shDelay;
}
if (shDelay == 0 && !Key.isDown(jumpB)) {
grav = -10;
} else {
if (shDelay == 0 && Key.isDown(jumpB)) {
grav = -18;
}
}
++grav;
_y = _y + grav;
if (platDelay == 0) {
onGround = false;
}
if (grav < 0) {
} else {
while (_root.ground.groundhit.hitTest(_x, _y, true)) {
_y = _y - 1;
grav = 0;
onGround = true;
jumpNum = 1;
if (this._currentframe == 5) {
this.gotoAndStop(1);
}
}
if (onGround == false && Key.isDown(downB)) {
throughtap = 3;
}
if (_root.ground.groundhit.hitTest(_x, _y + 3, true)) {
onGround = true;
} else {
onGround = false;
}
}
while (_root.ground.groundhit.hitTest(_x + 40, _y - 70, true)) {
_x = _x - 1;
xSpeed = 0;
}
while (_root.ground.groundhit.hitTest(_x - 40, _y - 70, true)) {
_x = _x + 1;
xSpeed = 0;
}
if (hurt == false && life > 0) {
if (Key.isDown(leftB)) {
if (onGround == true && onEdge == false) {
if (this.attacking == false) {
if (xSpeed > -maxSpeed) {
xSpeed -= 1;
}
this._xscale = -100;
}
} else {
if (onEdge == false) {
xSpeed -= 0.5;
}
}
}
if (Key.isDown(rightB)) {
if (onGround == true && onEdge == false) {
if (this.attacking == false) {
if (xSpeed < maxSpeed) {
xSpeed += 1;
}
this._xscale = 100;
}
} else {
if (onEdge == false) {
xSpeed += 0.5;
}
}
}
if (onGround == true && this.attacking == false) {
if (Key.isDown(leftB) or Key.isDown(rightB)) {
moving = true;
} else {
moving = false;
}
}
if (onGround == false) {
if (Key.isDown(leftB) or Key.isDown(rightB)) {
moving = true;
} else {
moving = false;
}
}
if (moving == true) {
if (onGround == true) {
if (this._currentframe != 7) {
this.gotoAndPlay('run');
}
}
}
if (this.xSpeed > 0) {
this._x += xSpeed;
if (moving == false) {
if (onGround == true) {
xSpeed -= 1;
} else {
xSpeed -= 0.5;
}
}
}
if (this.xSpeed < 0) {
this._x += xSpeed;
if (moving == false) {
if (onGround == true) {
xSpeed += 1;
} else {
xSpeed += 0.5;
}
}
}
if (this._currentframe != 7) {
if (this.xSpeed > maxSpeed && this.xSpeed < maxSpeed + 2) {
this.xSpeed = maxSpeed;
}
if (this.xSpeed < -maxSpeed && this.xSpeed > -maxSpeed - 2) {
this.xSpeed = -maxSpeed;
}
}
if (this._currentframe == 11) {
if (this.special._currentframe == 72) {
if (this.xSpeed > 3) {
this.xSpeed = 3;
}
if (this.xSpeed < -3) {
this.xSpeed = -3;
}
}
}
if (this.grav > 15) {
this.grav = 15;
}
if (Key.isDown(jumpB)) {
onEdge = false;
if (edgedelay == 0) {
onEdge = false;
edgeDelay = 10;
}
if (attacking == false) {
if (onGround == true) {
this.gotoAndStop('jump');
grav = -18;
edgeDelay = 5;
shDelay = 3;
} else {
if (jumpNum > 0 && grav > -10) {
grav = -18;
this.jumpNum -= 1;
this.gotoAndStop('jump');
edgeDelay = 5;
if (this._xscale == 100 && this.xSpeed < 0) {
this.jump.gotoAndPlay('spin');
}
if (this._xscale == -100 && this.xSpeed > 0) {
this.jump.gotoAndPlay('spin');
}
if (this._xscale == 100 && this.xSpeed >= 0) {
this.jump.gotoAndPlay('spin2');
}
if (this._xscale == -100 && this.xSpeed <= 0) {
this.jump.gotoAndPlay('spin2');
}
}
}
}
}
if (onGround == false && attacking == false) {
if (this._currentframe == 1) {
this.gotoAndStop('jump');
}
}
if (onGround == false && this._currentframe == 6) {
this.gotoAndStop('jump');
}
if (onGround == true && moving == false && attacking == false) {
if (Key.isDown(downB)) {
this.gotoAndStop('crouch');
this.crouch = true;
} else {
if (this._currentframe == 6) {
this.gotoAndStop(1);
this.crouch = false;
}
}
}
if (onEdge == true) {
if (Key.isDown(downB)) {
grav += 10;
edgeDelay = 5;
onEdge = false;
this.gotoAndStop('jump');
jumpNum = 1;
}
}
if (onGround == true && crouch == false && moving == false) {
if (Key.isDown(attackB) && !Key.isDown(leftB) && !Key.isDown(rightB) && !Key.isDown(upB) && !Key.isDown(downB)) {
if (this._currentframe == 1) {
this.gotoAndStop('attack');
}
if (this.attack._currentframe == 1) {
this.attack.gotoAndPlay('s1');
}
if (this.attack._currentframe >= 10 && this.attack._currentframe <= 13) {
this.attack.gotoAndPlay('s2');
}
if (this.attack._currentframe >= 28 && this.attack._currentframe <= 32) {
this.attack.gotoAndPlay('s3');
}
}
}
if (onGround == true && crouch == false) {
if (this.xSpeed >= 10 or this.xSpeed <= -10) {
if (Key.isDown(37) or Key.isDown(39)) {
if (Key.isDown(attackB)) {
moving = false;
this.gotoAndStop('attack');
if (this.attack._currentframe == 1) {
this.attack.gotoAndPlay('s4');
if (this._xscale == 100) {
this.xSpeed = 15;
}
if (this._xscale == -100) {
this.xSpeed = -15;
}
}
}
}
}
}
if (this._currentframe == 7) {
if (this.attack._currentframe > 60) {
if (this._xscale == 100) {
this.xSpeed += 0.5;
}
if (this._xscale == -100) {
this.xSpeed -= 0.5;
}
}
}
if (this._currentframe == 7) {
if (onGround == false) {
this.gotoAndStop('jump');
if (xSpeed > maxSpeed) {
xSpeed = maxSpeed;
}
if (xSpeed < maxSpeed) {
xSpeed = -maxSpeed;
}
}
}
if (onGround == true && crouch == false) {
if (this.xSpeed > -7 && this.xSpeed < 7) {
if (this._currentframe < 5) {
if (Key.isDown(attackB) && Key.isDown(rightB)) {
if (this.smash._currentframe < 4) {
this._xscale = 100;
}
this.gotoAndStop('smash');
if (this.smash._currentframe == 1) {
this.smash.gotoAndPlay('s1');
}
}
if (Key.isDown(attackB) && Key.isDown(leftB)) {
if (this.smash._currentframe < 4) {
this._xscale = -100;
}
this.gotoAndStop('smash');
if (this.smash._currentframe == 1) {
this.smash.gotoAndPlay('s1');
}
}
}
}
}
if (onGround == true && crouch == false) {
if (this._currentframe < 5) {
if (Key.isDown(attackB) && Key.isDown(upB)) {
this.gotoAndStop('smash');
if (this.smash._currentframe == 1) {
this.smash.gotoAndPlay('s2');
}
}
}
}
if (onGround == true && this._currentframe < 7) {
if (Key.isDown(attackB) && Key.isDown(downB)) {
this.gotoAndStop('smash');
if (this.smash._currentframe == 1) {
this.smash.gotoAndPlay('s3');
}
}
}
if (this._currentframe == 5 && this.onGround == false) {
if (Key.isDown(attackB)) {
if (!Key.isDown(upB) && !Key.isDown(downB) && !Key.isDown(leftB) && !Key.isDown(rightB)) {
this.gotoAndStop('airattack');
if (this.airattack._currentframe == 1) {
this.airattack.gotoAndPlay('a1');
}
}
if (Key.isDown(upB) && !Key.isDown(downB)) {
this.gotoAndStop('airattack');
if (this.airattack._currentframe == 1) {
this.airattack.gotoAndPlay('a3');
this.grav -= 5;
}
}
if (Key.isDown(rightB) && !Key.isDown(downB) && !Key.isDown(upB)) {
if (this._xscale == 100) {
this.gotoAndStop('airattack');
if (this.airattack._currentframe == 1) {
this.airattack.gotoAndPlay('a2');
}
} else {
this.gotoAndStop('airattack');
if (this.airattack._currentframe == 1) {
this.airattack.gotoAndPlay('a5');
}
}
}
if (Key.isDown(leftB) && !Key.isDown(downB) && !Key.isDown(upB)) {
if (this._xscale == -100) {
this.gotoAndStop('airattack');
if (this.airattack._currentframe == 1) {
this.airattack.gotoAndPlay('a2');
}
} else {
this.gotoAndStop('airattack');
if (this.airattack._currentframe == 1) {
this.airattack.gotoAndPlay('a5');
}
}
}
if (Key.isDown(downB) && !Key.isDown(upB)) {
this.gotoAndStop('airattack');
if (this.airattack._currentframe == 1) {
this.airattack.gotoAndPlay('a4');
this.grav -= 2;
}
}
}
}
if (this._currentframe == 9 && onGround == true) {
this.gotoAndStop('crouch');
}
if (onEdge == false && crouch == false) {
if (this._currentframe < 6) {
if (Key.isDown(specialB) && !Key.isDown(upB) && !Key.isDown(downB)) {
this.gotoAndStop('special');
if (this.special._currentframe == 1) {
this.special.gotoAndPlay('s1');
}
}
}
if (this.special._currentframe < 36) {
moving = false;
}
if (this.special._currentframe == 14) {
firemc = _root.fire.duplicateMovieClip('fire' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
firemc._x = this._x + (this._xscale / 100) * 100;
firemc._y = this._y - 25;
if (this._xscale == 100) {
firemc._xscale = 100;
} else {
firemc._xscale = -100;
}
}
}
if (onEdge == false && crouch == false) {
if (this._currentframe < 6) {
if (Key.isDown(specialB) && Key.isDown(upB)) {
this.gotoAndStop('special');
if (this.special._currentframe == 1) {
this.special.gotoAndPlay('s2');
}
if (Key.isDown(leftB)) {
this._xscale = -100;
}
if (Key.isDown(rightB)) {
this._xscale = 100;
}
}
}
}
if (this._currentframe == 11) {
if (this.special._currentframe >= 36 && this.special._currentframe <= 43) {
grav = 0;
xSpeed = 0;
}
if (this.special._currentframe >= 44 && this.special._currentframe <= 46) {
grav = -50;
xSpeed = 0;
if (this._xscale == 100) {
this._x += 15;
}
if (this._xscale == -100) {
this._x -= 15;
}
}
if (this.special._currentframe == 47) {
grav = -15;
}
}
if (this._currentframe == 11 && onGround == true) {
if (this.special._currentframe == 72) {
this.gotoAndStop('crouch');
}
}
if (onEdge == false) {
if (this._currenframe <= 5) {
if (Key.isDown(downB) && Key.isDown(specialB)) {
this.gotoAndStop('special');
if (this.special._currentframe == 1) {
this.special.gotoAndPlay(113);
}
}
}
}
if (this.special._currentframe > 73) {
if (xSpeed > 5) {
xSpeed = 5;
}
if (xSpeed < -5) {
xSpeed = -5;
}
}
}
}
}
movieClip 799 {
}
movieClip 800 {
instance of movieClip 799 {
onClipEvent (enterFrame) {
this._xscale = (_root.mario.life / 10) * 100;
}
}
}
movieClip 804 {
frame 15 {
stop();
}
frame 30 {
if (_root.mario.life <= 0) {
_root.mario.life = 10;
_root.mario.gotoAndStop(1);
_root.prevFrame();
this.gotoAndPlay(1);
}
}
frame 46 {
_root.play();
}
}
movieClip 805 {
}
instance hud of movieClip 805 {
onClipEvent (enterFrame) {
scoreCounter = _root.score;
}
}
movieClip 807 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v3 = sX / this._width;
var v4 = sY / this._height;
_parent._x = cX - this._x * v3;
_parent._y = cY - this._y * v4;
_parent._xscale = 100 * v3;
_parent._yscale = 100 * v4;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
this.onUnload = resetStage;
}
}
instance vcam of movieClip 807 {
onClipEvent (load) {
_xscale = 140;
_yscale = 140;
}
onClipEvent (enterFrame) {
_y = _y + ((_root.mario._y - _y) / 4 - 30);
_x = _x + (_root.mario._x - _x) / 4;
_root.bg._x = this._x;
_root.bg._y = this._y;
_root.sky._x = this._x;
_root.sky._y = this._y;
_root.sky._xscale = this._xscale;
_root.sky._yscale = this._yscale;
_root.hud._x = this._x;
_root.hud._y = this._y;
_root.hud._xscale = this._xscale;
_root.hud._yscale = this._yscale;
}
}
frame 278 {
stop();
}
movieClip 810 {
}
movieClip 813 {
}
movieClip 815 {
}
movieClip 818 {
}
movieClip 821 {
}
movieClip 823 {
}
movieClip 825 {
}
movieClip 827 {
}
movieClip 829 {
}
movieClip 830 {
}
movieClip 832 {
}
instance death of movieClip 832 {
onClipEvent (enterFrame) {
_visible = false;
if (_root.mario.hitTest(this)) {
_root.mario.life = 0;
}
}
}
movieClip 834 {
}
movieClip 837 {
instance of movieClip 834 {
onClipEvent (load) {
_visible = false;
}
}
}
instance of movieClip 837 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && _root.mario.onGround && _root.mario.hurt == false) {
_visible = true;
if (Key.isDown(32)) {
_root.hud.fader.gotoAndPlay('nextLvl');
}
} else {
_visible = false;
}
}
}
movieClip 843 {
}
movieClip 847 {
frame 28 {
_parent.gotoAndStop(1);
}
}
movieClip 849 {
frame 2 {
++_root.score;
}
frame 12 {
_parent.gotoAndStop(1);
}
frame 13 {
_root.score += 3;
if (_parent.life <= 0) {
_root.score += 5;
}
}
frame 78 {
stop();
}
frame 111 {
_parent.gotoAndStop(1);
}
}
movieClip 850 {
frame 1 {
stop();
onEnterFrame = function () {
grav -= 0.5;
_y = _y - grav;
if (life > 0) {
while (_root.ground.groundhit.hitTest(this._x, _y, true)) {
_y = _y - 1;
grav = 0;
}
if (_root.ground.groundhit.hitTest(this._x, _y + 3, true)) {
onGround = true;
} else {
onGround = false;
}
while (_root.ground.groundhit.hitTest(this._x - _width / 2, _y - _height, true)) {
if (xSpeed < 0) {
xSpeed *= -1;
}
_x = _x + 1;
}
while (_root.ground.groundhit.hitTest(this._x + _width / 2, _y - _height, true)) {
if (xSpeed > 0) {
xSpeed *= -1;
}
_x = _x - 1;
}
} else {
onGround = false;
}
if (_currentframe <= 2) {
disToMario = _root.mario._x - this._x;
if (disToMario > -eyeSight && disToMario < eyeSight) {
if (_root.mario._x < this._x) {
if (xSpeed > -maxMoveSpeed) {
--xSpeed;
_xscale = -100;
}
}
if (_root.mario._x > this._x) {
if (xSpeed < maxMoveSpeed) {
++xSpeed;
_xscale = 100;
}
}
}
}
if (xSpeed > 0) {
_x = _x + xSpeed;
xSpeed -= 0.5;
} else {
if (xSpeed < 0) {
_x = _x + xSpeed;
xSpeed += 0.5;
}
}
if (_currentframe <= 2) {
if (this.hitTest(_root.mario.bound)) {
if (xSpeed > -10 && xSpeed < 10) {
if (_root.mario._x < this._x) {
xSpeed = 1;
}
if (_root.mario._x > this._x) {
xSpeed = -1;
}
if (_root.mario.life > 0) {
this.gotoAndStop(2);
}
}
}
}
if (this._y > 1000) {
this.removeMovieClip();
}
if (this.hitTest(_root.death)) {
this.removeMovieClip();
}
if (_root.mario.attack.hit1.hitTest(this)) {
this.gotoAndStop(3);
if (_root.mario._x < this._x) {
xSpeed = 2;
}
if (_root.mario._x > this._x) {
xSpeed = -2;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit1.start(0, 0);
}
if (_root.mario.attack.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 12;
}
if (_root.mario._x > this._x) {
xSpeed = -12;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit2.start(0, 0);
}
if (_root.mario.attack.hit3.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 12;
if (_root.mario._x < this._x) {
xSpeed = 8;
}
if (_root.mario._x > this._x) {
xSpeed = -8;
}
life -= 1;
_root.hit4.start(0, 0);
}
if (onGround && this._currentframe == 3 && this.hurt._currentframe >= 20) {
this.gotoAndStop(1);
}
if (_root.mario.smash.hit1.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 5 + _root.mario.powerUp / 2;
if (_root.mario._x < this._x) {
xSpeed = 10 + _root.mario.powerUp * 1.5;
}
if (_root.mario._x > this._x) {
xSpeed = -10 - _root.mario.powerUp * 1.5;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
}
if (_root.mario.smash.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 10 + _root.mario.powerUp * 1.5;
if (_root.mario._x < this._x) {
xSpeed = _root.mario.powerUp / 3;
}
if (_root.mario._x > this._x) {
xSpeed = _root.mario.powerUp / 3;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
_root.hit3.start(0, 0);
}
if (_root.mario.smash.hit3.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 6 + _root.mario.powerUp / 1.5;
if (_root.mario._x < this._x) {
xSpeed = 6 + _root.mario.powerUp;
}
if (_root.mario._x > this._x) {
xSpeed = -6 - _root.mario.powerUp;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
_root.hit2.start(0, 0);
}
if (_root.mario.airattack.hit1.hitTest(this)) {
this.gotoAndStop(3);
if (_root.mario._x < this._x) {
xSpeed = 5;
}
if (_root.mario._x > this._x) {
xSpeed = -5;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit5.start(0, 0);
}
if (_root.mario.airattack.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
if (onGround) {
grav = 20;
} else {
grav = -20;
}
if (_root.mario._x < this._x) {
xSpeed = 12;
}
if (_root.mario._x > this._x) {
xSpeed = -12;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit3.start(0, 0);
}
if (_root.mario.airattack.hit3.hitTest(this)) {
this.gotoAndStop(3);
grav = 12;
if (_root.mario._x < this._x) {
xSpeed = 5;
}
if (_root.mario._x > this._x) {
xSpeed = -5;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit1.start(0, 0);
}
if (_root.mario.airattack.hit4.hitTest(this)) {
this.gotoAndStop(3);
grav = _root.mario.grav;
xSpeed = random(10) - random(10);
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.15;
}
if (_root.mario.airattack.hit5.hitTest(this)) {
this.gotoAndStop(3);
grav = 13;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit2.start(0, 0);
}
if (this.hitTest(_root.mario.firemc)) {
_root.mario.firemc.removeMovieClip();
this.gotoAndStop(3);
grav = 13;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit2.start(0, 0);
}
if (_root.mario.special.hit1.hitTest(this)) {
this.gotoAndStop(3);
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit3.start(0, 0);
}
if (_root.mario.special.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndStop('grabbed');
_root.mario.speical.gotoAndPlay('113');
}
if (_root.mario.special.hit3.hitTest(this)) {
this.gotoAndStop(3);
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 50;
}
if (_root.mario._x > this._x) {
xSpeed = -50;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 3;
_root.hit3.start(0, 0);
}
if (_root.mario.life > 0) {
if (_root.mario.hitTest(this.attack.hit1)) {
if (_root.mario._x > this._x) {
_root.mario.xSpeed = 5 + random(10) - random(3);
} else {
if (_root.mario._x < this._x) {
_root.mario.xSpeed = -5 - random(10) + random(3);
}
}
_root.mario.gotoAndStop('hurt');
_root.hit2.start(0, 0);
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = _root.mario._x;
newBlood._y = _root.mario._y - 50;
_root.mario.life -= 0.5;
}
}
};
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
movieClip 852 {
}
instance of movieClip 852 {
onClipEvent (load) {
_visible = false;
_root.mario._x = this._x;
_root.mario._y = this._y;
}
}
frame 279 {
play();
}
frame 280 {
stop();
}
movieClip 856 {
}
movieClip 857 {
}
instance of movieClip 837 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && _root.mario.onGround && _root.mario.hurt == false) {
_visible = true;
if (Key.isDown(32)) {
_root.hud.fader.gotoAndPlay('nextLvl');
}
} else {
_visible = false;
}
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 852 {
onClipEvent (load) {
_visible = false;
_root.mario._x = this._x;
_root.mario._y = this._y;
}
}
frame 281 {
play();
}
frame 282 {
stop();
}
movieClip 860 {
}
movieClip 861 {
}
instance of movieClip 837 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && _root.mario.onGround && _root.mario.hurt == false) {
_visible = true;
if (Key.isDown(32)) {
_root.hud.fader.gotoAndPlay('nextLvl');
}
} else {
_visible = false;
}
}
}
movieClip 867 {
}
movieClip 869 {
frame 1 {
_visible = false;
}
}
movieClip 872 {
frame 28 {
_parent.gotoAndStop(1);
}
}
movieClip 874 {
frame 2 {
++_root.score;
}
frame 12 {
_parent.gotoAndStop(1);
}
frame 13 {
_root.score += 3;
if (_parent.life <= 0) {
_root.score += 5;
}
}
frame 78 {
stop();
}
frame 111 {
_parent.gotoAndStop(1);
}
}
movieClip 875 {
frame 1 {
stop();
onEnterFrame = function () {
grav -= 0.5;
_y = _y - grav;
if (life > 0) {
while (_root.ground.groundhit.hitTest(this._x, _y, true)) {
_y = _y - 1;
grav = 0;
}
if (_root.ground.groundhit.hitTest(this._x, _y + 3, true)) {
onGround = true;
} else {
onGround = false;
}
while (_root.ground.groundhit.hitTest(this._x - _width / 2, _y - _height, true)) {
if (xSpeed < 0) {
xSpeed *= -1;
}
_x = _x + 1;
}
while (_root.ground.groundhit.hitTest(this._x + _width / 2, _y - _height, true)) {
if (xSpeed > 0) {
xSpeed *= -1;
}
_x = _x - 1;
}
} else {
onGround = false;
}
if (_currentframe <= 2) {
disToMario = _root.mario._x - this._x;
if (disToMario > -eyeSight && disToMario < eyeSight) {
if (_root.mario._x < this._x) {
if (xSpeed > -maxMoveSpeed) {
--xSpeed;
_xscale = -100;
}
}
if (_root.mario._x > this._x) {
if (xSpeed < maxMoveSpeed) {
++xSpeed;
_xscale = 100;
}
}
}
}
if (xSpeed > 0) {
_x = _x + xSpeed;
xSpeed -= 0.5;
} else {
if (xSpeed < 0) {
_x = _x + xSpeed;
xSpeed += 0.5;
}
}
if (_currentframe <= 2) {
if (this.hitTest(_root.mario.bound)) {
if (_root.mario._x < this._x) {
xSpeed = 1;
}
if (_root.mario._x > this._x) {
xSpeed = -1;
}
if (_root.mario.life > 0) {
this.gotoAndStop(2);
}
}
}
if (this._y > 1000) {
this.removeMovieClip();
}
if (this.hitTest(_root.death)) {
this.removeMovieClip();
}
if (_root.mario.attack.hit1.hitTest(this)) {
this.gotoAndStop(3);
if (_root.mario._x < this._x) {
xSpeed = 2;
}
if (_root.mario._x > this._x) {
xSpeed = -2;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit1.start(0, 0);
}
if (_root.mario.attack.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 12;
}
if (_root.mario._x > this._x) {
xSpeed = -12;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit2.start(0, 0);
}
if (_root.mario.attack.hit3.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 12;
if (_root.mario._x < this._x) {
xSpeed = 8;
}
if (_root.mario._x > this._x) {
xSpeed = -8;
}
life -= 1;
_root.hit4.start(0, 0);
}
if (onGround && this._currentframe == 3 && this.hurt._currentframe >= 20) {
this.gotoAndStop(1);
}
if (_root.mario.smash.hit1.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 5 + _root.mario.powerUp / 2;
if (_root.mario._x < this._x) {
xSpeed = 10 + _root.mario.powerUp * 1.5;
}
if (_root.mario._x > this._x) {
xSpeed = -10 - _root.mario.powerUp * 1.5;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
}
if (_root.mario.smash.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 10 + _root.mario.powerUp * 1.5;
if (_root.mario._x < this._x) {
xSpeed = _root.mario.powerUp / 3;
}
if (_root.mario._x > this._x) {
xSpeed = _root.mario.powerUp / 3;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
_root.hit3.start(0, 0);
}
if (_root.mario.smash.hit3.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 6 + _root.mario.powerUp / 1.5;
if (_root.mario._x < this._x) {
xSpeed = 6 + _root.mario.powerUp;
}
if (_root.mario._x > this._x) {
xSpeed = -6 - _root.mario.powerUp;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
_root.hit2.start(0, 0);
}
if (_root.mario.airattack.hit1.hitTest(this)) {
this.gotoAndStop(3);
if (_root.mario._x < this._x) {
xSpeed = 5;
}
if (_root.mario._x > this._x) {
xSpeed = -5;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit5.start(0, 0);
}
if (_root.mario.airattack.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
if (onGround) {
grav = 20;
} else {
grav = -20;
}
if (_root.mario._x < this._x) {
xSpeed = 12;
}
if (_root.mario._x > this._x) {
xSpeed = -12;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit3.start(0, 0);
}
if (_root.mario.airattack.hit3.hitTest(this)) {
this.gotoAndStop(3);
grav = 12;
if (_root.mario._x < this._x) {
xSpeed = 5;
}
if (_root.mario._x > this._x) {
xSpeed = -5;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit1.start(0, 0);
}
if (_root.mario.airattack.hit4.hitTest(this)) {
this.gotoAndStop(3);
grav = _root.mario.grav;
xSpeed = random(10) - random(10);
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.15;
}
if (_root.mario.airattack.hit5.hitTest(this)) {
this.gotoAndStop(3);
grav = 13;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit2.start(0, 0);
}
if (this.hitTest(_root.mario.firemc)) {
_root.mario.firemc.removeMovieClip();
this.gotoAndStop(3);
grav = 13;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit2.start(0, 0);
}
if (_root.mario.special.hit1.hitTest(this)) {
this.gotoAndStop(3);
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit3.start(0, 0);
}
if (_root.mario.special.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndStop('grabbed');
_root.mario.speical.gotoAndPlay('113');
}
if (_root.mario.special.hit3.hitTest(this)) {
this.gotoAndStop(3);
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 50;
}
if (_root.mario._x > this._x) {
xSpeed = -50;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 3;
_root.hit3.start(0, 0);
}
if (_root.mario.life > 0) {
if (_root.mario.hitTest(this.attack.hit1)) {
if (_root.mario._x > this._x) {
_root.mario.xSpeed = 5 + random(10) - random(3);
} else {
if (_root.mario._x < this._x) {
_root.mario.xSpeed = -5 - random(10) + random(3);
}
}
_root.mario.gotoAndStop('hurt');
_root.hit2.start(0, 0);
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = _root.mario._x;
newBlood._y = _root.mario._y - 50;
_root.mario.life -= 0.5;
}
}
};
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 852 {
onClipEvent (load) {
_visible = false;
_root.mario._x = this._x;
_root.mario._y = this._y;
}
}
frame 283 {
play();
}
frame 284 {
stop();
}
movieClip 882 {
}
movieClip 883 {
}
instance of movieClip 837 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && _root.mario.onGround && _root.mario.hurt == false) {
_visible = true;
if (Key.isDown(32)) {
_root.hud.fader.gotoAndPlay('nextLvl');
}
} else {
_visible = false;
}
}
}
instance death of movieClip 832 {
onClipEvent (enterFrame) {
_visible = false;
if (_root.mario.hitTest(this)) {
_root.mario.life = 0;
}
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 852 {
onClipEvent (load) {
_visible = false;
_root.mario._x = this._x;
_root.mario._y = this._y;
}
}
frame 285 {
play();
}
frame 286 {
stop();
}
movieClip 886 {
}
movieClip 887 {
}
instance death of movieClip 832 {
onClipEvent (enterFrame) {
_visible = false;
if (_root.mario.hitTest(this)) {
_root.mario.life = 0;
}
}
}
instance of movieClip 837 {
onClipEvent (enterFrame) {
if (this.hitTest(_root.mario) && _root.mario.onGround && _root.mario.hurt == false) {
_visible = true;
if (Key.isDown(32)) {
_root.hud.fader.gotoAndPlay('nextLvl');
}
} else {
_visible = false;
}
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 850 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
instance of movieClip 875 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 10;
}
}
movieClip 894 {
}
movieClip 902 {
frame 28 {
_parent.gotoAndStop(1);
}
}
movieClip 911 {
frame 1 {
_root.score += 3;
if (_parent.life <= 0) {
_root.score += 5;
}
}
frame 16 {
_parent.gotoAndStop(1);
}
}
movieClip 912 {
frame 1 {
stop();
onEnterFrame = function () {
grav -= 0.5;
_y = _y - grav;
if (life > 0) {
while (_root.ground.groundhit.hitTest(this._x, _y, true)) {
_y = _y - 1;
grav = 0;
}
if (_root.ground.groundhit.hitTest(this._x, _y + 3, true)) {
onGround = true;
} else {
onGround = false;
}
while (_root.ground.groundhit.hitTest(this._x - _width / 2, _y - _height, true)) {
if (xSpeed < 0) {
xSpeed *= -1;
}
_x = _x + 1;
}
while (_root.ground.groundhit.hitTest(this._x + _width / 2, _y - _height, true)) {
if (xSpeed > 0) {
xSpeed *= -1;
}
_x = _x - 1;
}
} else {
onGround = false;
}
if (_currentframe <= 2) {
disToMario = _root.mario._x - this._x;
if (disToMario > -eyeSight && disToMario < eyeSight) {
if (_root.mario._x < this._x) {
if (xSpeed > -maxMoveSpeed) {
--xSpeed;
_xscale = -100;
}
}
if (_root.mario._x > this._x) {
if (xSpeed < maxMoveSpeed) {
++xSpeed;
_xscale = 100;
}
}
}
}
if (xSpeed > 0) {
_x = _x + xSpeed;
xSpeed -= 0.5;
} else {
if (xSpeed < 0) {
_x = _x + xSpeed;
xSpeed += 0.5;
}
}
if (_currentframe <= 2) {
if (this.hitTest(_root.mario.bound)) {
if (_root.mario._x < this._x) {
xSpeed = 1;
}
if (_root.mario._x > this._x) {
xSpeed = -1;
}
if (_root.mario.life > 0) {
this.gotoAndStop(2);
}
}
}
if (this._y > 1000) {
this.removeMovieClip();
}
if (this.hitTest(_root.death)) {
this.removeMovieClip();
}
if (_root.mario.attack.hit1.hitTest(this)) {
this.gotoAndStop(3);
if (_root.mario._x < this._x) {
xSpeed = 2;
}
if (_root.mario._x > this._x) {
xSpeed = -2;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit1.start(0, 0);
}
if (_root.mario.attack.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 12;
}
if (_root.mario._x > this._x) {
xSpeed = -12;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit2.start(0, 0);
}
if (_root.mario.attack.hit3.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 12;
if (_root.mario._x < this._x) {
xSpeed = 8;
}
if (_root.mario._x > this._x) {
xSpeed = -8;
}
life -= 1;
_root.hit4.start(0, 0);
}
if (onGround && this._currentframe == 3 && this.hurt._currentframe >= 20) {
this.gotoAndStop(1);
}
if (_root.mario.smash.hit1.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 5 + _root.mario.powerUp / 2;
if (_root.mario._x < this._x) {
xSpeed = 10 + _root.mario.powerUp * 1.5;
}
if (_root.mario._x > this._x) {
xSpeed = -10 - _root.mario.powerUp * 1.5;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
}
if (_root.mario.smash.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 10 + _root.mario.powerUp * 1.5;
if (_root.mario._x < this._x) {
xSpeed = _root.mario.powerUp / 3;
}
if (_root.mario._x > this._x) {
xSpeed = _root.mario.powerUp / 3;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
_root.hit3.start(0, 0);
}
if (_root.mario.smash.hit3.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 6 + _root.mario.powerUp / 1.5;
if (_root.mario._x < this._x) {
xSpeed = 6 + _root.mario.powerUp;
}
if (_root.mario._x > this._x) {
xSpeed = -6 - _root.mario.powerUp;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
_root.hit2.start(0, 0);
}
if (_root.mario.airattack.hit1.hitTest(this)) {
this.gotoAndStop(3);
if (_root.mario._x < this._x) {
xSpeed = 5;
}
if (_root.mario._x > this._x) {
xSpeed = -5;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit5.start(0, 0);
}
if (_root.mario.airattack.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
if (onGround) {
grav = 20;
} else {
grav = -20;
}
if (_root.mario._x < this._x) {
xSpeed = 12;
}
if (_root.mario._x > this._x) {
xSpeed = -12;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit3.start(0, 0);
}
if (_root.mario.airattack.hit3.hitTest(this)) {
this.gotoAndStop(3);
grav = 12;
if (_root.mario._x < this._x) {
xSpeed = 5;
}
if (_root.mario._x > this._x) {
xSpeed = -5;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit1.start(0, 0);
}
if (_root.mario.airattack.hit4.hitTest(this)) {
this.gotoAndStop(3);
grav = _root.mario.grav;
xSpeed = random(10) - random(10);
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.15;
}
if (_root.mario.airattack.hit5.hitTest(this)) {
this.gotoAndStop(3);
grav = 13;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit2.start(0, 0);
}
if (this.hitTest(_root.mario.firemc)) {
_root.mario.firemc.removeMovieClip();
this.gotoAndStop(3);
grav = 13;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit2.start(0, 0);
}
if (_root.mario.special.hit1.hitTest(this)) {
this.gotoAndStop(3);
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit3.start(0, 0);
}
if (_root.mario.special.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndStop('grabbed');
_root.mario.speical.gotoAndPlay('113');
}
if (_root.mario.special.hit3.hitTest(this)) {
this.gotoAndStop(3);
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 10;
}
if (_root.mario._x > this._x) {
xSpeed = -10;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 3;
_root.hit3.start(0, 0);
}
if (_root.mario.life > 0) {
if (_root.mario.hitTest(this.attack.hit1)) {
if (_root.mario._x > this._x) {
_root.mario.xSpeed = 5 + random(10) - random(3);
} else {
if (_root.mario._x < this._x) {
_root.mario.xSpeed = -5 - random(10) + random(3);
}
}
_root.mario.gotoAndStop('hurt');
_root.hit2.start(0, 0);
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = _root.mario._x;
newBlood._y = _root.mario._y - 50;
_root.mario.life -= 0.5;
}
}
};
}
}
instance toad of movieClip 912 {
onClipEvent (load) {
var grav = 0;
var xSpeed = 0;
var eyeSight = 600;
var disToMario = 0;
var maxMoveSpeed = 5;
var newBlood;
var life = 50;
}
}
instance of movieClip 852 {
onClipEvent (load) {
_visible = false;
_root.mario._x = this._x;
_root.mario._y = this._y;
}
}
frame 287 {
play();
}
frame 288 {
stop();
}
movieClip 916 {
}
movieClip 917 {
}
instance death of movieClip 832 {
onClipEvent (enterFrame) {
_visible = false;
if (_root.mario.hitTest(this)) {
_root.mario.life = 0;
}
}
}
instance of movieClip 852 {
onClipEvent (load) {
_visible = false;
_root.mario._x = this._x;
_root.mario._y = this._y;
}
}
movieClip 920 {
}
movieClip 921 {
}
movieClip 928 {
}
movieClip 935 {
}
movieClip 938 {
frame 16 {
_parent.gotoAndStop(1);
}
}
movieClip 940 {
frame 2 {
_parent.grav = _parent.jumpPower;
_parent.grav *= 2;
}
frame 11 {
_parent.grav /= 2;
}
frame 24 {
_parent.grav -= 20;
}
frame 35 {
stop();
var groundhit;
onEnterFrame = function () {
if (_root.ground.hitTest(_parent._x, _parent._y + 5, true)) {
if (this._currentframe == 35) {
groundhit = _root.groundHitOrig.duplicateMovieClip('groundHit' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
groundhit._x = _root.bowser._x;
groundhit._y = _root.bowser._y;
--_parent.jump;
}
this.gotoAndPlay(1);
}
};
}
}
movieClip 942 {
}
movieClip 944 {
}
movieClip 945 {
frame 9 {
_parent._x = 320;
_parent._y = 250;
}
frame 18 {
_parent.gotoAndStop(1);
}
}
movieClip 946 {
frame 1 {
stop();
onEnterFrame = function () {
this.grav -= 0.5;
_y = _y - grav;
if (_root.ground.hitTest(_x, _y + 2, true)) {
onGround = true;
} else {
onGround = false;
}
if (!dead) {
if (_root.ground.hitTest(_x, _y + 1, true)) {
onGround = true;
} else {
onGround = false;
}
while (_root.ground.hitTest(_x, _y, true)) {
grav = 0;
_y = _y - 1;
}
while (_root.ground.hitTest(_x - 20, _y - 20, true)) {
_x = _x + moveSpeed;
xSpeed = 0;
}
while (_root.ground.hitTest(_x + 20, _y - 20, true)) {
_x = _x - moveSpeed;
}
while (_root.ground.hitTest(_x, _y - _height, true)) {
_y = _y + 1;
}
}
if (this._currentframe < 22) {
if (xSpeed != 0) {
if (stopSliding > 0) {
--stopSliding;
} else {
if (stopSliding == 0) {
this.xSpeed = 0;
}
}
}
} else {
stopSliding = 10;
}
if (this._currentframe == 22) {
hurt = true;
} else {
hurt = false;
}
if (_root.mario.attack.hit1.hitTest(this)) {
this.gotoAndStop(3);
if (_root.mario._x < this._x) {
xSpeed = 2;
}
if (_root.mario._x > this._x) {
xSpeed = -2;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit1.start(0, 0);
}
if (_root.mario.attack.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 12;
}
if (_root.mario._x > this._x) {
xSpeed = -12;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit2.start(0, 0);
}
if (_root.mario.attack.hit3.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 12;
if (_root.mario._x < this._x) {
xSpeed = 8;
}
if (_root.mario._x > this._x) {
xSpeed = -8;
}
life -= 1;
_root.hit4.start(0, 0);
}
if (onGround && this._currentframe == 3 && this.hurt._currentframe >= 20) {
this.gotoAndStop(1);
}
if (_root.mario.smash.hit1.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 5 + _root.mario.powerUp / 2;
if (_root.mario._x < this._x) {
xSpeed = 10 + _root.mario.powerUp * 1.5;
}
if (_root.mario._x > this._x) {
xSpeed = -10 - _root.mario.powerUp * 1.5;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
}
if (_root.mario.smash.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 10 + _root.mario.powerUp * 1.5;
if (_root.mario._x < this._x) {
xSpeed = _root.mario.powerUp / 3;
}
if (_root.mario._x > this._x) {
xSpeed = _root.mario.powerUp / 3;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
_root.hit3.start(0, 0);
}
if (_root.mario.smash.hit3.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
grav = 6 + _root.mario.powerUp / 1.5;
if (_root.mario._x < this._x) {
xSpeed = 6 + _root.mario.powerUp;
}
if (_root.mario._x > this._x) {
xSpeed = -6 - _root.mario.powerUp;
}
newBlood = _root.attachMovie('splat2', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
newBlood._xscale = _root.mario._xscale;
life -= 1 + _root.mario.powerUp / 3;
_root.hit2.start(0, 0);
}
if (_root.mario.airattack.hit1.hitTest(this)) {
this.gotoAndStop(3);
if (_root.mario._x < this._x) {
xSpeed = 5;
}
if (_root.mario._x > this._x) {
xSpeed = -5;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit5.start(0, 0);
}
if (_root.mario.airattack.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndPlay('spin');
if (onGround) {
grav = 20;
} else {
grav = -20;
}
if (_root.mario._x < this._x) {
xSpeed = 12;
}
if (_root.mario._x > this._x) {
xSpeed = -12;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit3.start(0, 0);
}
if (_root.mario.airattack.hit3.hitTest(this)) {
this.gotoAndStop(3);
grav = 12;
if (_root.mario._x < this._x) {
xSpeed = 5;
}
if (_root.mario._x > this._x) {
xSpeed = -5;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit1.start(0, 0);
}
if (_root.mario.airattack.hit4.hitTest(this)) {
this.gotoAndStop(3);
grav = _root.mario.grav;
xSpeed = random(10) - random(10);
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.15;
}
if (_root.mario.airattack.hit5.hitTest(this)) {
this.gotoAndStop(3);
grav = 13;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 0.5;
_root.hit2.start(0, 0);
}
if (this.hitTest(_root.mario.firemc)) {
_root.mario.firemc.removeMovieClip();
this.gotoAndStop(3);
grav = 13;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit2.start(0, 0);
}
if (_root.mario.special.hit1.hitTest(this)) {
this.gotoAndStop(3);
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 13;
}
if (_root.mario._x > this._x) {
xSpeed = -13;
}
newBlood = _root.attachMovie('splat1', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 1;
_root.hit3.start(0, 0);
}
if (_root.mario.special.hit2.hitTest(this)) {
this.gotoAndStop(3);
this.hurt.gotoAndStop('grabbed');
_root.mario.speical.gotoAndPlay('113');
}
if (_root.mario.special.hit3.hitTest(this)) {
this.gotoAndStop(3);
grav = 8;
if (_root.mario._x < this._x) {
xSpeed = 10;
}
if (_root.mario._x > this._x) {
xSpeed = -10;
}
newBlood = _root.attachMovie('splat3', 'blood' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
newBlood._x = this._x;
newBlood._y = this._y - 50;
life -= 3;
_root.hit3.start(0, 0);
}
if (xSpeed > 0) {
if (onGround) {
xSpeed -= 1;
} else {
xSpeed -= 0.25;
}
_x = _x + xSpeed;
}
if (xSpeed < 0) {
if (onGround) {
xSpeed += 1;
} else {
xSpeed += 0.25;
}
_x = _x + xSpeed;
}
if (attack1 > 0) {
if (!hurt && this._currentframe < 22) {
if (attackSpeed > 0) {
--attackSpeed;
}
if (attackSpeed == 0) {
attackSpeed = attackSpeedDefult;
}
if (attackSpeed < attackSpeedDefult / 2) {
this.gotoAndStop('breath');
}
if (attackSpeed > attackSpeedDefult / 2) {
this.gotoAndPlay('fire');
}
}
if (life > 40) {
attackSpeedDefult = 100;
} else {
if (life > 30) {
attackSpeedDefult = 50;
} else {
if (life > 15) {
attackSpeedDefult = 20;
} else {
if (life > 0) {
attackSpeedDefult = 10;
}
}
}
}
--attack1;
}
if (attack1 == 0) {
if (this._currentframe <= 22) {
this.gotoAndStop('jump');
}
if (this._currentframe == 23 && jump > 0) {
if (this._xscale == 100) {
this.xSpeed = jumpSpeed;
} else {
this.xSpeed = -jumpSpeed;
}
}
if (jump == 0 && this._currentframe < 25) {
this.gotoAndStop('pant');
}
}
if (this._currentframe == 24) {
if (pant > 0) {
--pant;
}
if (pant == 0) {
jump = jumpOrig;
++jumpOrig;
pant = pantOrig;
attack1 = attack1Orig;
this.gotoAndStop(1);
}
}
if (!dead) {
if (this._y > 440) {
_y = 445;
this.gotoAndStop(25);
}
if (life <= 0) {
dead = true;
}
}
if (this._y > 855 && fadelol == true) {
_root.hud.fader.gotoAndPlay('nextLvl');
fadelol = false;
}
if (onGround) {
if (this._x > _root.mario._x) {
_xscale = -100;
}
if (this._x < _root.mario._x) {
_xscale = 100;
}
}
};
}
instance of movieClip 921 {
onClipEvent (enterFrame) {
if (_parent.life >= 0) {
this.bar._xscale = (_parent.life / 50) * 100;
} else {
_visible = false;
}
if (_parent._xscale == 100) {
this._xscale = 100;
} else {
this._xscale = -100;
}
}
}
frame 21 {
gotoAndStop(1);
}
frame 22 {
_root.score += 3;
if (_parent.life <= 0) {
_root.score += 5;
}
}
}
instance bowser of movieClip 946 {
onClipEvent (load) {
var attackSpeed = 100;
var attackSpeedDefult = 100;
_xscale = 100;
var grav = 0;
var xSpeed = 0;
var onGround = true;
var dead = false;
var life = 50;
var moveSpeed = 3;
var stopSliding = 10;
var attack1 = 500;
var attack1Orig = attack1;
var jump = 5;
var jumpOrig = jump;
var jumpPower = 10;
var jumpSpeed = 6;
var pant = 300;
var pantOrig = pant;
var fadelol = true;
}
}
movieClip 948 {
}
movieClip 953 {
}
movieClip 954 {
}
movieClip 958 {
frame 1 {
stop();
}
instance bound of movieClip 954 {
onClipEvent (load) {
_visible = false;
}
}
frame 15 {
this.removeMovieClip();
}
}
instance flame of movieClip 958 {
onClipEvent (load) {
var life = 300;
var fire;
var xSpeed = 0;
var ySpeed = 0;
_rotation = 270;
var Angle = _rotation - 90;
var twist = random(150);
var turnSpeed = 1;
if (_root.bowser._xscale == -100) {
var goLeft = true;
} else {
if (_root.bowser._xscale == 100) {
var goRight = true;
}
}
}
onClipEvent (enterFrame) {
if (this._name == 'flame') {
_visible = false;
if (_root.bowser.attackSpeed == 1 && _root.bowser.life > 0) {
fire = this.duplicateMovieClip('flame' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
fire._x = _root.bowser._x;
fire._y = _root.bowser._y - 150;
}
} else {
if (this._currentframe == 1) {
xSpeed = Math.cos(Angle * Math.PI / 180) * 5;
ySpeed = Math.sin(Angle * Math.PI / 180) * 5;
if (goLeft) {
_xscale = -100;
_x = _x + xSpeed;
_y = _y + ySpeed;
}
if (goRight) {
_xscale = 100;
_x = _x - xSpeed;
_y = _y - ySpeed;
}
}
++twist;
_rotation = Angle;
if (twist < 50) {
Angle += turnSpeed;
} else {
if (twist < 150) {
Angle -= turnSpeed;
}
}
if (twist >= 150) {
twist = -50;
}
if (life > 0) {
--life;
}
if (life <= 0) {
this.removeMovieClip();
}
if (this.bound.hitTest(_root.mario.bound) && _root.mario.life > 0) {
_root.mario.grav = 5;
if (_root.mario._xscale == 100) {
_root.mario.xSpeed -= 5;
} else {
_root.mario.xSpeed += 5;
}
_root.mario.life -= 0.25;
_root.mario.gotoAndStop('hurt');
this.play();
}
}
}
}
movieClip 961 {
frame 21 {
stop();
}
}
instance groundHitOrig of movieClip 961 {
onClipEvent (load) {
var effect = true;
}
onClipEvent (enterFrame) {
if (_name == 'groundHitOrig') {
_visible = false;
gotoAndStop(277);
} else {
_alpha = _alpha - 5;
if (_alpha <= 0) {
this.removeMovieClip();
}
if (effect == true) {
if (this.hitTest(_root.mario._x, _root.mario._y, true)) {
if (_root.mario.life > 0) {
_root.mario.gotoAndStop('hurt');
if (_root.mario._x < _root.bowser) {
_root.mario.xSpeed = -10;
} else {
_root.mario.xSpeed = 10;
}
_root.mario.life -= _alpha / 90;
effect = false;
}
}
}
}
}
}
frame 290 {
track01.start(0, 0);
_root.track01.setVolume(100);
}
frame 290 {
stop();
}
frame 290 {
scoreshow = _root.score;
name = 'your name here';
}
movieClip 965 {
}
movieClip 966 {
}
movieClip 969 {
}
movieClip 970 {
}
movieClip 971 {
}
movieClip 973 {
frame 10 {
stop();
}
}
movieClip 974 {
frame 7 {
_parent.gotoAndStop(1);
}
}
movieClip 975 {
}
movieClip 976 {
}
movieClip 978 {
}
movieClip 979 {
}
movieClip 980 {
}
movieClip 982 {
frame 10 {
stop();
}
}
movieClip 983 {
frame 7 {
_parent.gotoAndStop(1);
}
}
movieClip 984 {
}
movieClip 985 {
}
movieClip 986 {
instance of movieClip 976 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://supernukebros.moonfruit.com/characters', '');
}
}
instance of movieClip 136 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://supernukebros.moonfruit.com/characters', '');
}
}
instance of movieClip 985 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://supernukebros.moonfruit.com/characters', '');
}
}
frame 33 {
stop();
}
instance of movieClip 985 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
_root.gotoAndStop('mainmenu');
}
}
instance of movieClip 136 {
onClipEvent (load) {
stop();
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
getURL('http://www.sun-studios.net', '_blank');
}
}
instance of movieClip 976 {
onClipEvent (load) {
stop();
var ok = true;
}
onClipEvent (rollOver) {
gotoAndStop(2);
}
onClipEvent (rollOut) {
gotoAndStop(3);
}
onClipEvent (press) {
gotoAndStop(4);
}
onClipEvent (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + 'j%e%a%n%s');
par227.flashkey = (par227.flashkey.split('=')).join('');
par227.SU0249 = (par227.SU0249.split('=')).join('');
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad('http://rankz.armorbot.com/submit/', par228, 'POST');
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.Name;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__('MzYxOWolZSVhJW4lcw==', 'TWpaU2VPZno=', bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL('http://rankz.armorbot.com/MarioCombat2/', '_blank');
_x = _x + 1000;
}
}
}