STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228073
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/71388393?noj=FRM71388393-29DC" width="1" height="1"></div>

471144_MarioCombat.swf

This is the info page for
Flash #47350

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { stop(); NewgroundsAPI.connectMovie(4222); Stage.showMenu = false(); } movieClip 4 { } movieClip 8 { } movieClip 18 { frame 40 { stop(); } } movieClip 31 { } button 32 { on (press) { tellTarget ('_root') { nextFrame(); } } } button 33 { on (press) { gotoAndStop('end'); _root.play(); } } movieClip 34 { instance of movieClip 8 { 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 40 { on (release) { NewgroundsAPI.loadNewgrounds(); } } button 45 { on (release) { NewgroundsAPI.loadNewgrounds(); } } movieClip 46 { } movieClip 47 { 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 581 __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 582 __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 } movieClip 56 { } movieClip 81 { } // unknown tag 88 length 171 movieClip 95 { } movieClip 99 { frame 28 { stop(); } frame 45 { gotoAndStop(28); } frame 57 { stop(); } } instance of movieClip 99 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { stopAllSounds(); _root.gotoAndPlay('storyGame'); } } // unknown tag 88 length 297 // unknown tag 88 length 177 movieClip 107 { 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(); } } instance of movieClip 99 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { _root.gotoAndStop('instructions'); } } instance of movieClip 99 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { getURL('http://rankz.armorbot.com/MarioCombat/', '_blank'); } } frame 483 { stop(); } instance of movieClip 99 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { NewgroundsAPI.loadMySite(); } } instance of movieClip 99 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { _root.gotoAndPlay('menuMenu'); } } // unknown tag 88 length 170 // unknown tag 88 length 170 frame 485 { play(); onEnterFrame = function () { _root.hero.activated = true; }; } frame 486 { _quality = 'LOW'; stop(); } movieClip 123 { } instance of movieClip 123 { onClipEvent (enterFrame) { this._x = _root.vcam._x; } } movieClip 125 { } instance ground of movieClip 125 { onClipEvent (load) { _visible = false; } } movieClip 141 { frame 1 { gotoAndPlay(random(30)); } } movieClip 149 { } movieClip 153 { } movieClip 154 { frame 15 { _parent.gotoAndStop(1); } frame 32 { _parent.gotoAndStop(1); } frame 68 { _parent.gotoAndStop(1); } frame 82 { this.gotoAndPlay('hurt5'); } frame 107 { _parent.gotoAndStop(1); } } movieClip 159 { frame 1 { _visible = false; } } movieClip 162 { frame 45 { _parent.gotoAndStop(1); } } movieClip 163 { frame 1 { stop(); onEnterFrame = function () { grav -= 0.5; this._y -= grav; 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 - _height / 2, true)) { _x = _x + moveSpeed; } while (_root.ground.hitTest(_x + 20, _y - _height / 2, true)) { _x = _x - moveSpeed; } while (_root.ground.hitTest(_x, _y - _height, true)) { _y = _y + 1; grav = -4; } } xdist = _root.hero._x - this._x; ydist = _root.hero._y - this._y; if (xdist > 0) { _xscale = 100; } if (xdist < 0) { _xscale = -100; } if (!dead) { if (!hurt) { if (this.hitTest(_root.hero) == false) { if (ydist < eyeSight && -ydist > -eyeSight) { if (xdist > -eyeSight && _xscale == -100) { _x = _x - moveSpeed; if (this._currentframe == 1) { } } if (xdist < eyeSight && _xscale == 100) { _x = _x + moveSpeed; if (this._currentframe == 1) { } } } } } } if (xSpeed > 0) { _x = _x + xSpeed; if (onGround) { xSpeed -= 0.5; } else { xSpeed -= 0.05; } } if (xSpeed < 0) { _x = _x + xSpeed; if (onGround) { xSpeed += 0.5; } else { xSpeed += 0.05; } } if (!dead) { if (!hurt) { if (onGround) { if (_root.ground.hitTest(_x + 21, _y, true) && _xscale == 100) { this.grav = jumpHeight; } if (_root.ground.hitTest(_x - 21, _y, true) && _xscale == 100) { this.grav = jumpHeight; } } if (onGround) { if (_root.ground.hitTest(_x + 20, _y + 100, true) == false && _xscale == 100) { this.grav = jumpHeight * 2; xSpeed = 4; } if (_root.ground.hitTest(_x - 20, _y + 100, true) == false && _xscale == -100) { this.grav = jumpHeight * 2; xSpeed = -4; } } } } if (this._currentframe == 2) { hurt = true; } else { hurt = false; } if (this.hitTest(_root.hero.attack.hit1)) { life -= 1; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt1'); _root.hero.attack.hitEffect.gotoAndStop(2); _root.hero.attack.hitEffect.hit1.gotoAndPlay(1); if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + 1; } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - 1; } if (!onGround) { grav -= 2; _root.hud.score += 3; } else { _root.hud.score += 1; } } if (this.hitTest(_root.hero.attack.hit2)) { life -= 2; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt1'); this.grav = 3; _root.hero.attack.hitEffect.gotoAndStop(3); if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + 1.5; } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - 1.5; } if (!onGround) { _root.hud.score += 4; } else { _root.hud.score += 2; } } if (this.hitTest(_root.hero.attack.hit3)) { _root.hero.attack.hitEffect.gotoAndStop(4); life -= 3; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt3'); this.grav = 4; if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + 6; } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - 6; } if (!onGround) { _root.hud.score += 5; } else { _root.hud.score += 3; } } if (this.hitTest(_root.hero.attack.hit4)) { _root.hero.attack.hitEffect.gotoAndStop(5); life -= 4; this.grav = 4; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt4'); if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + 15; } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - 15; } if (!onGround) { _root.hud.score += 6; } else { _root.hud.score += 4; } } if (this.hitTest(_root.hero.attack.hit5)) { _root.hero.attack.hitEffect.gotoAndStop(6); life -= 1; this.grav = 20; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt5'); if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + random(7); } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - random(7); } if (!onGround) { _root.hud.score += 7; } else { _root.hud.score += 5; } } if (this.hitTest(_root.hero.attack.hit6)) { _root.hero.attack.hitEffect.gotoAndStop(5); if (!onGround) { this.grav = -20; life -= 3; } else { this.grav = 7; life -= 1; } this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt5'); if (_root.hero._xscale == 100) { if (!onGround) { this.xSpeed = _root.hero.xSpeed + 5; } else { this.xSpeed = _root.hero.xSpeed + 1; } } if (_root.hero._xscale == -100) { if (!onGround) { this.xSpeed = _root.hero.xSpeed - 5; } else { this.xSpeed = _root.hero.xSpeed - 1; } } if (!onGround) { _root.hud.score += 8; } else { _root.hud.score += 6; } } if (!dead) { if (hurt) { if (_root.ground.hitTest(_x - 23, _y - 20, true)) { this.xSpeed = (xSpeed + 1) * -1; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt1'); } if (_root.ground.hitTest(_x + 23, _y - 20, true)) { this.xSpeed = (xSpeed + 1) * -1; this.hurt_mc.gotoAndPlay('hurt1'); } if (grav < 0) { if (_root.ground.hitTest(_x, _y + 3, true)) { if (this.hurt_mc._currentframe >= 69 && this.hurt_mc._currentframe <= 82) { this.grav = (grav / 2) * -1; this.hurt_mc.gotoAndPlay('hurt6'); } } } } } if (_root.hero.life > 0) { if (onGround && this._currentframe == 1) { if (this.hitTest(_root.hero.bound)) { this.gotoAndStop('attack'); xSpeed = 0; } } if (this.attack.hit1.hitTest(_root.hero.bound)) { if (this._xscale == 100) { _root.hero.xSpeed = 6; } if (this._xscale == -100) { _root.hero.xSpeed = -6; } _root.hero.hurt = true; _root.hero.gotoAndStop('hurt'); _root.hero.life -= 0.5; } if (this.attack.hit2.hitTest(_root.hero.bound)) { if (this._xscale == 100) { _root.hero.xSpeed = 10; } if (this._xscale == -100) { _root.hero.xSpeed = -10; } grav = 4; _root.hero.grav = 10; _root.hero.hurt = true; _root.hero.gotoAndStop('hurt'); _root.hero.hurt_mc.gotoAndPlay('hurt2'); _root.hero.life -= 0.5; } } if (hurt) { this.gotoAndStop(2); } if (!dead) { if (this._currentframe == 1) { if (onGround) { if (this.hitTest(_root.hero)) { this.walk.gotoAndStop(1); } else { this.walk.play(); } } else { this.walk.gotoAndStop(10); } } } if (life <= 0) { dead = true; if (this._currentframe == 1) { this.gotoAndStop('hurt'); this.hurt_mc.gotoAndStop('dead'); } } else { if (life > 0) { dead = false; } } if (dead) { if (deathBounce == true) { grav = 7; deathBounce = false; } } }; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; var attacking = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } movieClip 165 { frame 1 { _visible = false; } } movieClip 171 { } movieClip 192 { } movieClip 202 { } movieClip 216 { frame 18 { _parent.gotoAndStop(1); } } movieClip 223 { frame 18 { _parent.gotoAndStop(1); } } movieClip 236 { frame 22 { _parent.gotoAndStop(1); } } movieClip 247 { frame 22 { _parent.gotoAndStop(1); } } movieClip 258 { frame 12 { _parent.gotoAndStop(1); } } movieClip 259 { frame 1 { stop(); } } movieClip 432 { frame 1 { onEnterFrame = function () { if (_parent.pressingAttack == false) { if (Key.isDown(_parent.Punch) && Key.isDown(_parent.Left) == false && Key.isDown(_parent.Right) == false) { if (this._currentframe > 9 && this._currentframe < 23) { this.gotoAndPlay('attack4'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 79 && this._currentframe < 88) { this.gotoAndPlay('attack3'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 85 && this._currentframe < 94) { this.gotoAndPlay('attack5'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 35 && this._currentframe < 44) { this.gotoAndPlay('attack5'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 106 && this._currentframe < 132) { this.gotoAndPlay('attack6'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 185 && this._currentframe < 191) { this.gotoAndPlay('attack3'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 187 && this._currentframe < 203) { this.gotoAndPlay('attack5'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 240 && this._currentframe < 247) { this.gotoAndPlay('attack4'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 209 && this._currentframe < 219) { this.gotoAndPlay('attack4'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } } if (Key.isDown(_parent.Punch) && (Key.isDown(_parent.Left) or Key.isDown(_parent.Right))) { if (this._currentframe > 185 && this._currentframe < 191) { this.gotoAndPlay('attack8'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 187 && this._currentframe < 203) { this.gotoAndPlay('attack9'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 77 && this._currentframe < 87) { this.gotoAndPlay('attack10'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 209 && this._currentframe < 219) { this.gotoAndPlay('attack105'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } } if (Key.isDown(_parent.Punch)) { if (this._currentframe > 234 && this._currentframe < 244) { this.gotoAndPlay('attack6'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 249 && this._currentframe < 259) { this.gotoAndPlay('attack102'); } if (this._currentframe > 264 && this._currentframe < 274) { this.gotoAndPlay('attack103'); } if (this._currentframe > 279 && this._currentframe < 288) { this.gotoAndPlay('attack104'); } if (this._currentframe > 294 && this._currentframe < 304) { this.gotoAndPlay('attack105'); } if (this._currentframe > 7 && this._currentframe < 12) { this.gotoAndPlay('attack2'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } if (this._currentframe > 30 && this._currentframe < 38) { this.gotoAndPlay('attack3'); if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } } } }; } frame 4 { if (_parent._xscale == 100) { _parent.xSpeed += 5; } if (_parent._xscale == -100) { _parent.xSpeed -= 5; } } frame 26 { _parent.gotoAndStop(1); } frame 27 { if (_parent._xscale == 100 && Key.isDown(_parent.Left)) { _parent._xscale = -100; } else { if (_parent._xscale == -100 && Key.isDown(_parent.Right)) { _parent._xscale = 100; } } } frame 30 { if (_parent._xscale == 100) { _parent.xSpeed += 5; } if (_parent._xscale == -100) { _parent.xSpeed -= 5; } } frame 48 { _parent.gotoAndStop(1); } frame 53 { if (_parent._xscale == 100) { _parent.xSpeed += 7; } if (_parent._xscale == -100) { _parent.xSpeed -= 7; } } frame 75 { _parent.gotoAndStop(1); } frame 78 { if (_parent._xscale == 100) { _parent.xSpeed += 5; } if (_parent._xscale == -100) { _parent.xSpeed -= 5; } } frame 99 { _parent.gotoAndStop(1); } frame 102 { if (_parent._xscale == 100) { _parent.xSpeed += 5; } if (_parent._xscale == -100) { _parent.xSpeed -= 5; } } frame 111 { if (_parent._xscale == 100) { _parent.xSpeed += 5; } if (_parent._xscale == -100) { _parent.xSpeed -= 5; } } frame 132 { _parent.gotoAndStop(1); } frame 134 { if (_parent._xscale == 100) { _parent.xSpeed -= 5; } if (_parent._xscale == -100) { _parent.xSpeed += 5; } } frame 146 { if (_parent._xscale == 100) { _parent.xSpeed += 10; } if (_parent._xscale == -100) { _parent.xSpeed -= 10; } } frame 177 { _parent.gotoAndStop(1); } frame 182 { if (_parent._xscale == 100) { _parent.xSpeed += 10; } if (_parent._xscale == -100) { _parent.xSpeed -= 10; } } frame 205 { _parent.gotoAndStop(1); } frame 208 { if (_parent._xscale == 100) { _parent.xSpeed += 5; } if (_parent._xscale == -100) { _parent.xSpeed -= 5; } } frame 219 { _parent.gotoAndStop(1); } frame 223 { if (_parent._xscale == 100) { _parent.xSpeed += 10; } if (_parent._xscale == -100) { _parent.xSpeed -= 10; } } frame 247 { _parent.gotoAndStop(1); } frame 248 { if (_parent._xscale == 100) { _parent.xSpeed += 7; } if (_parent._xscale == -100) { _parent.xSpeed -= 7; } } frame 262 { _parent.gotoAndStop(1); } frame 263 { if (_parent._xscale == 100) { _parent.xSpeed = 7; } if (_parent._xscale == -100) { _parent.xSpeed = -7; } } frame 277 { _parent.gotoAndStop(1); } frame 278 { if (_parent._xscale == 100) { _parent.xSpeed = 7; } if (_parent._xscale == -100) { _parent.xSpeed = -7; } } frame 292 { _parent.gotoAndStop(1); } frame 293 { if (_parent._xscale == 100) { _parent.xSpeed = 7; } if (_parent._xscale == -100) { _parent.xSpeed = -7; } } frame 307 { _parent.gotoAndStop(1); } frame 315 { if (_parent._xscale == 100) { _parent.xSpeed += 7; } if (_parent._xscale == -100) { _parent.xSpeed -= 7; } } frame 339 { _parent.gotoAndStop(1); } frame 340 { if (_parent.xSpeed < 0) { _parent.xSpeed -= 7; } if (xSpeed > 0) { _parent.xSpeed += 7; } } frame 374 { _parent.gotoAndStop(1); } frame 410 { _parent.gotoAndStop('jump'); } } movieClip 436 { } movieClip 438 { frame 45 { stop(); _root.hud.fader.gotoAndPlay('dead'); stopAllSounds(); } } movieClip 439 { frame 12 { _parent.gotoAndStop(1); } frame 38 { _parent.gotoAndStop(1); } } movieClip 440 { frame 1 { this.onEnterFrame = function () { this.grav -= 0.5; _y = _y - grav; if (_root.ground.hitTest(_x, _y + 2, true)) { onGround = true; } else { onGround = false; } if (_root.ground.hitTest(_x - 22, _y - 20, true)) { onLeftWall = true; } else { onLeftWall = false; } if (_root.ground.hitTest(_x + 22, _y - 20, true)) { onRightWall = true; } else { onRightWall = false; } while (_root.ground.hitTest(_x, _y - 1, true)) { grav = 0; _y = _y - 1; } while (_root.ground.hitTest(_x - 20, _y - 20, true)) { _x = _x + 1; if (onGround) { xSpeed = 0; } else { if (fighting) { xSpeed = 0; } } } while (_root.ground.hitTest(_x + 20, _y - 20, true)) { _x = _x - 1; if (onGround) { xSpeed = 0; } else { if (fighting) { xSpeed = 0; } } } while (_root.ground.hitTest(_x, _y - 80, true)) { grav = -2; _y = _y + 1; } if (activated && life > 0) { if (!walling && !fighting && !hurt) { if (Key.isDown(Left)) { if (onGround) { if (xSpeed > -maxMoveSpeed) { xSpeed -= 2; _xscale = -100; if (!skiding) { if (xSpeed <= -maxMoveSpeed) { this.gotoAndPlay('run'); } else { this.gotoAndPlay('walk'); } } } } else { if (xSpeed > -maxAirMoveSpeed) { xSpeed -= 0.5; } } } if (Key.isDown(Right)) { if (onGround) { if (xSpeed < maxMoveSpeed) { xSpeed += 2; _xscale = 100; if (!skiding) { if (xSpeed >= maxMoveSpeed) { this.gotoAndPlay('run'); } else { this.gotoAndPlay('walk'); } } } } else { if (xSpeed < maxAirMoveSpeed) { xSpeed += 0.5; } } } } } 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; } while (this._x - 22 < _root.lScroll._x) { ++this._x; xSpeed = 0; } while (this._x + 22 > _root.rScroll._x) { --this._x; xSpeed = 0; } if (this._currentframe == 1) { if (xSpeed != 0) { if (stopSliding > 0) { --stopSliding; } else { if (stopSliding == 0) { this.xSpeed = 0; } } } } else { stopSliding = 10; } if (activated) { if (Key.isDown(Jump) && onGround && !hurt) { grav = jump; jumpAnimThres = 5; if (this._currentframe == 18 && this.attack._currentframe >= 340) { this.gotoAndStop('jump'); } shortHop = 5; } if (shortHop > 0) { --shortHop; } if (shortHop > 0 && shortHop < 5 && !onGround && Key.isDown(Jump) == false && !hurt) { grav = 7; } if (jumpAnimThres > 0) { --jumpAnimThres; } if (onGround && this._currentframe == 9) { if (jumpAnimThres == 0) { this.gotoAndStop('idle'); } } if (!onGround && !hurt && !fighting) { if (!walling) { this.gotoAndStop('jump'); } } } if (!onGround && !hurt) { if (onLeftWall) { _x = _x - 5; } if (onRightWall) { _x = _x + 5; } if (xSpeed < -3 && onLeftWall) { xSpeed = 0; grav = 2; walling = true; this.gotoAndStop('wall'); _xscale = 100; } if (xSpeed > 3 && onRightWall) { xSpeed = 0; grav = 2; walling = true; this.gotoAndStop('wall'); _xscale = -100; } if (walling) { if (!onLeftWall && !onRightWall) { gotoAndStop('jump'); walling = false; } if (onLeftWall) { grav += 0.25; _x = _x - 1; } if (onRightWall) { grav += 0.25; _x = _x + 1; } if (Key.isDown(Jump)) { grav = 10; if (_xscale == 100) { xSpeed = 10; } if (_xscale == -100) { xSpeed = -10; } } } } if (onGround && walling) { gotoAndStop('idle'); } if (this._currentframe != 17) { walling = false; } if (onGround && !fighting && !hurt && life > 0) { if (xSpeed > 3 && Key.isDown(Left)) { skiding = true; this.gotoAndStop('skid'); } if (xSpeed < -3 && Key.isDown(Right)) { skiding = true; this.gotoAndStop('skid'); } if (xSpeed == 0) { if (skiding) { skiding = false; this.gotoAndStop(1); } } if (xSpeed > 0 && Key.isDown(Right)) { if (skiding) { skiding = false; this.gotoAndPlay('walk'); } } if (xSpeed < 0 && Key.isDown(Left)) { if (skiding) { skiding = false; this.gotoAndPlay('walk'); } } } if (activated) { if (this._currentframe == 18) { fighting = true; } else { fighting = false; } if (onGround && !pressingAttack) { if (!hurt) { if (Key.isDown(Punch) && Key.isDown(Left) == false && Key.isDown(Right) == false) { if (this._currentframe == 1) { this.gotoAndStop('attack'); } } if (!fighting) { if (Key.isDown(Punch) && (Key.isDown(Right) or Key.isDown(Left))) { this.gotoAndStop('attack'); this.attack.gotoAndPlay('attack7'); } } if (Key.isDown(Punch) && Key.isDown(Down)) { this.gotoAndStop('attack'); if (this.attack._currentframe < 340) { this.attack.gotoAndPlay('attack11'); } } } } if (!onGround && !pressingAttack && this._currentframe == 9) { if (Key.isDown(Punch)) { fighting = true; this.gotoAndStop('attack'); this.attack.gotoAndPlay('attack12'); } } if (onGround && this._currentframe == 18) { if (this.attack._currentframe > 374 && this.attack._currentframe < 410) { this.gotoAndStop(1); } } if (this.attack._currentframe > 374 && this.attack._currentframe < 410) { if (this._xscale == 100 && Key.isDown(Right)) { if (xSpeed < maxMoveSpeed) { xSpeed += 0.5; } } if (this._xscale == -100 && Key.isDown(Left)) { if (xSpeed > -maxMoveSpeed) { xSpeed -= 0.5; } } } if (Key.isDown(Punch)) { pressingAttack = true; } else { pressingAttack = false; } } if (!onGround && fighting) { if (onLeftWall or onRightWall) { gotoAndStop('jump'); xSpeed = 0; } if (_root.ground.hitTest(_x + 30, _y - 20, true) or _root.ground.hitTest(_x - 30, _y - 20, true)) { gotoAndStop('jump'); xSpeed = 0; } } if (this._currentframe == 19) { hurt = true; } else { hurt = false; } if (this._y > _root.deadZone._y) { this._x = _root.spawnPoint._x; this._y = _root.spawnPoint._y; grav = 2; } if (life <= 0) { activated = false; this.gotoAndStop('hurt'); if (onGround) { this.hurt_mc.gotoAndStop('die2'); } else { this.hurt_mc.gotoAndStop('die1'); } } }; } frame 2 { play(); } frame 7 { gotoAndStop(1); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { play(); } frame 16 { gotoAndStop(1); } frame 17 { stop(); } frame 18 { fighting = true; stop(); } frame 19 { stop(); } } instance hero of movieClip 440 { onClipEvent (load) { var xSpeed = 0; var maxMoveSpeed = 10; var maxAirMoveSpeed = 10; var grav = 0; var jump = 14; var jumpAnimThres = 0; var stopSliding = 10; var shortHop = 0; var pressingAttack = false; var life = 10; var activated = false; Left = 37; Right = 39; Jump = 38; Down = 40; Punch = 65; var onGround = false; var onLeftWall = false; var onRightWall = false; var skiding = false; var hurt = false; var walling = false; var fighting = false; } } movieClip 442 { } movieClip 445 { instance of movieClip 442 { onClipEvent (load) { _visible = false; } } } instance of movieClip 445 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero) && _root.hero.onGround && _root.hero.hurt == false) { _visible = true; if (Key.isDown(32)) { _root.hero.activated = false; _root.hud.fader.gotoAndPlay('nextLvl'); } } else { _visible = false; } } } movieClip 447 { frame 1 { function camControl() { rp.x = _x; rp.y = _y; var v5 = camH * (_yscale * 0.01); var v6 = camW * (_xscale * 0.01); var v3 = sH / v5; var v4 = sW / v6; _x2 = (v6 / 2) * v4; _y2 = (v5 / 2) * v3; _xscale2 = v4 * 100; _yscale2 = v3 * 100; _rotation2 = -_rotation; _parent.filters = this.filters; _parent.transform.colorTransform = this.transform.colorTransform; } function reset() { _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; _parent._rotation = 0; _parent._visible = true; } function set_x2(value) { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); _parent._x += value - v2.x; } function get_x2() { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); return v2.x; } function set_y2(value) { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); _parent._y += value - v2.y; } function get_y2() { var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); return v2.y; } function get_xscale2() { return _parent._xscale; } function set_xscale2(value) { setProperty2('_xscale', value); } function get_yscale2() { return _parent._yscale; } function set_yscale2(value) { setProperty2('_yscale', value); } function get_rotation2() { return parent.rotation; } function set_rotation2(value) { setProperty2('_rotation', value); } function setProperty2(prop, n) { var v3 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v3); _parent[prop] = n; var v2 = {'x': rp.x, 'y': rp.y}; _parent.localToGlobal(v2); _parent._x -= v2.x - v3.x; _parent._y -= v2.y - v3.y; } _visible = false; addProperty('_x2', get_x2, set_x2); addProperty('_y2', get_y2, set_y2); addProperty('_xscale2', get_xscale2, set_xscale2); addProperty('_yscale2', get_yscale2, set_yscale2); addProperty('_rotation2', get_rotation2, set_rotation2); var oldScaleMode = stage.scaleMode; stage.scaleMode = 'exactFit'; var sW = Stage.width; var sH = Stage.height; stage.scaleMode = oldScaleMode; var bounds_obj = this.getBounds(this); var camH = Math.abs(bounds_obj.yMax - bounds_obj.yMin); var camW = Math.abs(bounds_obj.xMax - bounds_obj.xMin); var rp = {'x': this._x, 'y': this._y}; onEnterFrame = function () { camControl(); }; this.onUnload = reset; } } instance vcam of movieClip 447 { onClipEvent (load) { _xscale = 100; var moveSpeed = 0; var onHero = true; } onClipEvent (enterFrame) { while (this._x - _width / 2 < _root.lScroll._x) { _x = _x + 1; } while (this._x + _width / 2 > _root.rScroll._x) { _x = _x - 1; } if (onHero == true) { this._x += (_root.hero._x - _x) / 4; moveSpeed = this._x; } this._y += (_root.hero._y - _y) / 4 - 20; if (_root.hero.onGround == false) { if (_root.hero.grav > 0) { if (_xscale < 150) { _xscale = _xscale + 2; _yscale = _yscale + 2; } } if (_root.hero.grav < 0) { if (_xscale > 100) { _xscale = _xscale - 1; _yscale = _yscale - 1; } } } else { if (_xscale > 100) { _xscale = _xscale - 1; _yscale = _yscale - 1; } } _root.BG._x = this._x; _root.BG._y = this._y; _root.BG._xscale = this._xscale; _root.BG._yscale = this._yscale; _root.hud._x = this._x; _root.hud._y = this._y; _root.hud._xscale = this._xscale; _root.hud._yscale = this._yscale; } } movieClip 449 { } movieClip 454 { instance mask_mc of movieClip 449 { onClipEvent (enterFrame) { this._xscale = (_root.hero.life / 10) * 100; } } } movieClip 457 { frame 2 { stop(); } frame 42 { _root.nextFrame(); } frame 96 { _root.hero.activated = true; gotoAndStop(2); } frame 170 { _root.music.track1.gotoAndPlay(1); _parent.score = 0; _root.prevFrame(); gotoAndPlay(50); } } movieClip 458 { frame 1 { score = 0; } } instance hud of movieClip 458 { onClipEvent (load) { this.fader.gotoAndPlay(50); } } movieClip 460 { } instance lScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } movieClip 462 { } instance spawnPoint of movieClip 462 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } instance deadZone of movieClip 460 { onClipEvent (load) { _visible = false; } } movieClip 465 { frame 196 { stop(); } } movieClip 466 { frame 1 { stop(); _visible = false; } } frame 487 { play(); } frame 488 { stop(); } movieClip 469 { } movieClip 476 { frame 1 { stop(); } frame 31 { stop(); } } instance door of movieClip 476 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero)) { if (this._currentframe == 1) { this.play(); } } } } movieClip 478 { } instance ground of movieClip 478 { onClipEvent (load) { _visible = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 445 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero) && _root.hero.onGround && _root.hero.hurt == false) { _visible = true; if (Key.isDown(32)) { _root.hero.activated = false; _root.hud.fader.gotoAndPlay('nextLvl'); } } else { _visible = false; } } } instance hero of movieClip 440 { onClipEvent (load) { var xSpeed = 0; var maxMoveSpeed = 10; var maxAirMoveSpeed = 10; var grav = 0; var jump = 14; var jumpAnimThres = 0; var stopSliding = 10; var shortHop = 0; var pressingAttack = false; var life = 10; var activated = false; Left = 37; Right = 39; Jump = 38; Down = 40; Punch = 65; var onGround = false; var onLeftWall = false; var onRightWall = false; var skiding = false; var hurt = false; var walling = false; var fighting = false; } } instance lScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance spawnPoint of movieClip 462 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } instance deadZone of movieClip 460 { onClipEvent (load) { _visible = false; } } frame 489 { play(); } frame 490 { stop(); } movieClip 484 { } instance ground of movieClip 484 { onClipEvent (load) { _visible = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 445 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero) && _root.hero.onGround && _root.hero.hurt == false) { _visible = true; if (Key.isDown(32)) { _root.hero.activated = false; _root.hud.fader.gotoAndPlay('nextLvl'); } } else { _visible = false; } } } instance hero of movieClip 440 { onClipEvent (load) { var xSpeed = 0; var maxMoveSpeed = 10; var maxAirMoveSpeed = 10; var grav = 0; var jump = 14; var jumpAnimThres = 0; var stopSliding = 10; var shortHop = 0; var pressingAttack = false; var life = 10; var activated = false; Left = 37; Right = 39; Jump = 38; Down = 40; Punch = 65; var onGround = false; var onLeftWall = false; var onRightWall = false; var skiding = false; var hurt = false; var walling = false; var fighting = false; } } instance lScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance spawnPoint of movieClip 462 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } instance deadZone of movieClip 460 { onClipEvent (load) { _visible = false; } } frame 491 { play(); } frame 492 { stop(); } movieClip 489 { } instance BG of movieClip 489 { onClipEvent (load) { stop(); } } movieClip 492 { } movieClip 495 { frame 1 { stop(); } frame 315 { stop(); var timer = 150; onEnterFrame = function () { if (timer > 0) { --timer; } if (timer == 1) { this.nextFrame(); } }; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance of movieClip 445 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero)) { _visible = true; if (Key.isDown(32)) { _root.ground.play(); _root.BG.play(); _root.lScroll._x = 1541.25; _root.rScroll._x = 2273.5; this._x += 1000; } } else { _visible = false; } } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } onClipEvent (enterFrame) { if (this._y > -110) { _root.hud.fader.play(); } } } instance of movieClip 163 { onClipEvent (load) { _xscale = -100; var life = 10; var xSpeed = 0; var moveSpeed = 1.5; var grav = 0; var eyeSight = 500; var xdist = 0; var ydist = 0; var jumpHeight = 8; var deathBounce = true; var onGround = false; var hurt = false; var dead = false; } } instance hero of movieClip 440 { onClipEvent (load) { var xSpeed = 0; var maxMoveSpeed = 10; var maxAirMoveSpeed = 10; var grav = 0; var jump = 14; var jumpAnimThres = 0; var stopSliding = 10; var shortHop = 0; var pressingAttack = false; var life = 10; var activated = false; var dieAnimFix = 0; Left = 37; Right = 39; Jump = 38; Down = 40; Punch = 65; var onGround = false; var onLeftWall = false; var onRightWall = false; var skiding = false; var hurt = false; var walling = false; var fighting = false; } } instance lScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance spawnPoint of movieClip 462 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } instance deadZone of movieClip 460 { onClipEvent (load) { _visible = false; } } frame 493 { play(); stopAllSounds(); } frame 494 { play(); } frame 495 { play(); } frame 496 { stop(); } movieClip 500 { } movieClip 502 { } instance ground of movieClip 502 { onClipEvent (load) { _visible = false; } } movieClip 509 { } movieClip 510 { } movieClip 518 { } movieClip 527 { frame 16 { _parent.gotoAndStop(1); } } movieClip 528 { 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 529 { } movieClip 530 { } movieClip 531 { frame 9 { _parent._x = 320; _parent._y = 250; } frame 18 { _parent.gotoAndStop(1); } } movieClip 532 { 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 (this.hitTest(_root.hero.attack.hit1)) { life -= 1; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt1'); _root.hero.attack.hitEffect.gotoAndStop(2); _root.hero.attack.hitEffect.hit1.gotoAndPlay(1); if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + 1; } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - 1; } if (!onGround) { grav -= 2; _root.hud.score += 2; } else { _root.hud.score += 1; } } if (this.hitTest(_root.hero.attack.hit2)) { life -= 2; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt1'); this.grav = 3; _root.hero.attack.hitEffect.gotoAndStop(3); if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + 1.5; } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - 1.5; } if (!onGround) { grav -= 2; _root.hud.score += 3; } else { _root.hud.score += 2; } } if (this.hitTest(_root.hero.attack.hit3)) { _root.hero.attack.hitEffect.gotoAndStop(4); life -= 3; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt3'); this.grav = 4; if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + 2.5; } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - 2.5; } if (!onGround) { grav -= 2; _root.hud.score += 4; } else { _root.hud.score += 3; } } if (this.hitTest(_root.hero.attack.hit4)) { _root.hero.attack.hitEffect.gotoAndStop(5); life -= 4; this.grav = 4; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt4'); if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + 4.5; } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - 4.5; } if (!onGround) { grav -= 2; _root.hud.score += 5; } else { _root.hud.score += 4; } } if (this.hitTest(_root.hero.attack.hit5)) { _root.hero.attack.hitEffect.gotoAndStop(6); life -= 1; this.grav = 7; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt5'); if (_root.hero._xscale == 100) { this.xSpeed = _root.hero.xSpeed + random(7); } if (_root.hero._xscale == -100) { this.xSpeed = _root.hero.xSpeed - random(7); } if (!onGround) { grav -= 2; _root.hud.score += 6; } else { _root.hud.score += 5; } } if (this.hitTest(_root.hero.attack.hit6)) { _root.hero.attack.hitEffect.gotoAndStop(5); if (!onGround) { this.grav = -20; life -= 3; } else { this.grav = 7; life -= 1; } this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt5'); if (_root.hero._xscale == 100) { if (!onGround) { this.xSpeed = _root.hero.xSpeed + 5; } else { this.xSpeed = _root.hero.xSpeed + 1; } } if (_root.hero._xscale == -100) { if (!onGround) { this.xSpeed = _root.hero.xSpeed - 5; } else { this.xSpeed = _root.hero.xSpeed - 1; } } if (!onGround) { grav -= 2; _root.hud.score += 7; } else { _root.hud.score += 6; } } if (!dead) { if (hurt) { if (_root.ground.hitTest(_x - 23, _y - 20, true)) { this.xSpeed = (xSpeed + 1) * -1; this.gotoAndStop('hurt'); this.hurt_mc.gotoAndPlay('hurt1'); } if (_root.ground.hitTest(_x + 23, _y - 20, true)) { this.xSpeed = (xSpeed + 1) * -1; this.hurt_mc.gotoAndPlay('hurt1'); } if (grav < 0) { if (_root.ground.hitTest(_x, _y + 3, true)) { if (this.hurt_mc._currentframe >= 69 && this.hurt_mc._currentframe <= 82) { this.grav = (grav / 2) * -1; this.hurt_mc.gotoAndPlay('hurt6'); } } } } } 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 > 70) { attackSpeedDefult = 100; } else { if (life > 50) { attackSpeedDefult = 50; } else { if (life > 20) { 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 (this._x > _root.hero._x) { _xscale = -100; } if (this._x < _root.hero._x) { _xscale = 100; } }; } instance of movieClip 510 { onClipEvent (enterFrame) { if (_parent.life >= 0) { this.bar._xscale = (_parent.life / 100) * 100; } else { _visible = false; } if (_parent._xscale == 100) { this._xscale = 100; } else { this._xscale = -100; } } } frame 21 { gotoAndStop(1); } } instance bowser of movieClip 532 { onClipEvent (load) { var attackSpeed = 100; var attackSpeedDefult = 100; _xscale = 100; var grav = 0; var xSpeed = 0; var onGround = true; var dead = false; var life = 100; 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 553 { } movieClip 555 { instance bound of movieClip 442 { onClipEvent (load) { _visible = false; } } } instance flame of movieClip 555 { 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) { fire = this.duplicateMovieClip('flame' + _root.getNextHighestDepth(), _root.getNextHighestDepth()); fire._x = _root.bowser._x; fire._y = _root.bowser._y - 70; } } else { 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.hero.bound) && _root.hero.life > 0) { _root.hero.grav = 5; if (_root.hero._xscale == 100) { _root.hero.xSpeed -= 5; } else { _root.hero.xSpeed += 5; } _root.hero.life -= 0.25; _root.hero.hurt = true; _root.hero.gotoAndStop('hurt'); this.removeMovieClip(); } } } } movieClip 558 { frame 21 { stop(); } } instance groundHitOrig of movieClip 558 { onClipEvent (load) { var effect = true; } onClipEvent (enterFrame) { if (_name == 'groundHitOrig') { _visible = false; gotoAndStop(664); } else { _alpha = _alpha - 5; if (_alpha <= 0) { this.removeMovieClip(); } if (effect == true) { if (this.hitTest(_root.hero._x, _root.hero._y, true)) { _root.hero.gotoAndStop('hurt'); if (_root.hero._x < _root.bowser) { _root.hero.xSpeed = -10; } else { _root.hero.xSpeed = 10; } _root.hero.life -= _alpha / 90; effect = false; } } } } } instance hero of movieClip 440 { onClipEvent (load) { var xSpeed = 0; var maxMoveSpeed = 10; var maxAirMoveSpeed = 10; var grav = 0; var jump = 14; var jumpAnimThres = 0; var stopSliding = 10; var shortHop = 0; var pressingAttack = false; var life = 10; var activated = false; var dieAnimFix = 0; Left = 37; Right = 39; Jump = 38; Down = 40; Punch = 65; var onGround = false; var onLeftWall = false; var onRightWall = false; var skiding = false; var hurt = false; var walling = false; var fighting = false; } } instance vcam of movieClip 447 { onClipEvent (load) { _xscale = 100; var moveSpeed = 0; var onHero = true; } onClipEvent (enterFrame) { while (this._x - _width / 2 < _root.lScroll._x) { _x = _x + 1; } while (this._x + _width / 2 > _root.rScroll._x) { _x = _x - 1; } if (onHero == true) { this._x += (_root.hero._x - _x) / 4; moveSpeed = this._x; } this._y += (_root.hero._y - _y) / 4 - 20; if (_root.hero.onGround == false) { if (_root.hero.grav > 0) { if (_xscale < 300) { _xscale = _xscale + 2; _yscale = _yscale + 2; } } if (_root.hero.grav < 0) { if (_xscale > 200) { _xscale = _xscale - 1; _yscale = _yscale - 1; } } } else { if (_xscale > 200) { _xscale = _xscale - 1; _yscale = _yscale - 1; } } _root.BG._x = this._x; _root.BG._y = this._y; _root.BG._xscale = this._xscale; _root.BG._yscale = this._yscale; _root.hud._x = this._x; _root.hud._y = this._y; _root.hud._xscale = this._xscale; _root.hud._yscale = this._yscale; } } instance deadZone of movieClip 460 { onClipEvent (load) { _visible = false; } } instance lScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 460 { onClipEvent (load) { _visible = false; } } instance spawnPoint of movieClip 462 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } frame 497 { nextFrame(); score = _root.hud.score; } frame 498 { stopAllSounds(); stop(); score = _root.hud.score; } movieClip 573 { } instance of movieClip 99 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { 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__('MzExM2olZSVhJW4lcw==', 'b1pnUmZHSW4=', bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl); _root.nextFrame(); } } instance of movieClip 99 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { stopAllSounds(); _root.gotoAndPlay('menuMenu'); } } instance of movieClip 99 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { NewgroundsAPI.loadMySite(); } } frame 499 { stop(); getURL('http://rankz.armorbot.com/MarioCombat/', '_blank'); }




http://swfchan.com/10/47350/info.shtml
Created: 2/5 -2019 00:49:30 Last modified: 2/5 -2019 00:49:30 Server time: 29/04 -2024 15:56:37