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

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

Mario Combat - an awesome online game for all Power Stars fans.swf

This is the info page for
Flash #89732

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { stop(); Stage.showMenu = false(); } movieClip 4 { } movieClip 5 { } movieClip 6 { frame 1 { stop(); } } // unknown tag 88 length 61 movieClip 9 { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndPlay('loaded'); } } frame 2 { gotoAndPlay(1); } instance of movieClip 6 { onClipEvent (rollOver) { this.gotoAndPlay(2); } onClipEvent (press) { _root.play(); } } frame 73 { stop(); } instance of movieClip 6 { onClipEvent (rollOver) { this.gotoAndPlay(2); } onClipEvent (press) { _root.play(); } } } movieClip 12 { } // unknown tag 88 length 63 movieClip 16 { frame 1 { onEnterFrame = function () { urlStart = _url.indexOf('://content.') + 3; urlEnd = _url.indexOf('/', urlStart); domain = _url.substring(urlStart, urlEnd); LastDot = domain.lastIndexOf('.') - 1; pfixEnd = domain.lastIndexOf('.', LastDot) + 1; domain = domain.substring(pfixEnd, domain.length); if (domain != '' && domain != 'funny-base.com') { _root.gotoAndStop('fukno'); } }; this._visible = false; } } movieClip 585 __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 25 { } movieClip 50 { } // unknown tag 88 length 171 movieClip 61 { } movieClip 63 { } movieClip 65 { } movieClip 67 { } movieClip 69 { } movieClip 71 { } movieClip 73 { } movieClip 75 { } movieClip 77 { } movieClip 79 { } movieClip 81 { } movieClip 82 { } movieClip 84 { } movieClip 86 { } movieClip 88 { } movieClip 91 { } movieClip 92 { frame 1 { more_btn.onRelease = function () { getURL('http://www.funny-games.biz/main.html', '_blank'); }; _root.stop(); } frame 200 { stop(); _root.play(); } } movieClip 99 { } movieClip 102 { frame 28 { stop(); } frame 45 { gotoAndStop(28); } frame 57 { stop(); } } instance of movieClip 102 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { stopAllSounds(); _root.gotoAndPlay('storyGame'); } } // unknown tag 88 length 297 // unknown tag 88 length 177 instance of movieClip 102 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { _root.gotoAndStop('instructions'); } } instance of movieClip 102 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { getURL('http://rankz.armorbot.com/MarioCombat/', '_blank'); } } frame 505 { stop(); } instance of movieClip 102 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { getURL('http://www.funny-games.biz/main.html', '_blank'); } } instance of movieClip 102 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { _root.gotoAndPlay('menuMenu'); } } // unknown tag 88 length 170 // unknown tag 88 length 170 frame 507 { play(); onEnterFrame = function () { _root.hero.activated = true; }; } frame 508 { _quality = 'LOW'; stop(); } movieClip 125 { } instance of movieClip 125 { onClipEvent (enterFrame) { this._x = _root.vcam._x; } } movieClip 127 { } instance ground of movieClip 127 { onClipEvent (load) { _visible = false; } } movieClip 143 { frame 1 { gotoAndPlay(random(30)); } } movieClip 151 { } movieClip 155 { } movieClip 156 { 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 161 { frame 1 { _visible = false; } } movieClip 164 { frame 45 { _parent.gotoAndStop(1); } } movieClip 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 167 { frame 1 { _visible = false; } } movieClip 173 { } movieClip 194 { } movieClip 204 { } movieClip 218 { frame 18 { _parent.gotoAndStop(1); } } movieClip 225 { frame 18 { _parent.gotoAndStop(1); } } movieClip 238 { frame 22 { _parent.gotoAndStop(1); } } movieClip 249 { frame 22 { _parent.gotoAndStop(1); } } movieClip 260 { frame 12 { _parent.gotoAndStop(1); } } movieClip 261 { frame 1 { stop(); } } movieClip 434 { 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 438 { } movieClip 440 { frame 45 { stop(); _root.hud.fader.gotoAndPlay('dead'); stopAllSounds(); } } movieClip 441 { frame 12 { _parent.gotoAndStop(1); } frame 38 { _parent.gotoAndStop(1); } } movieClip 442 { 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 442 { 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 444 { } movieClip 447 { instance of movieClip 444 { onClipEvent (load) { _visible = false; } } } instance of movieClip 447 { 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 449 { 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 449 { 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 451 { } movieClip 456 { instance mask_mc of movieClip 451 { onClipEvent (enterFrame) { this._xscale = (_root.hero.life / 10) * 100; } } } movieClip 459 { 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 460 { frame 1 { score = 0; } } instance hud of movieClip 460 { onClipEvent (load) { this.fader.gotoAndPlay(50); } } movieClip 462 { } instance lScroll of movieClip 462 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 462 { onClipEvent (load) { _visible = false; } } movieClip 464 { } instance spawnPoint of movieClip 464 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } instance deadZone of movieClip 462 { onClipEvent (load) { _visible = false; } } movieClip 467 { frame 196 { stop(); } } movieClip 468 { frame 1 { stop(); _visible = false; } } frame 509 { play(); } frame 510 { stop(); } movieClip 472 { } movieClip 479 { frame 1 { stop(); } frame 31 { stop(); } } instance door of movieClip 479 { onClipEvent (enterFrame) { if (this.hitTest(_root.hero)) { if (this._currentframe == 1) { this.play(); } } } } movieClip 481 { } instance ground of movieClip 481 { onClipEvent (load) { _visible = false; } } instance of movieClip 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 447 { 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 442 { 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 462 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 462 { onClipEvent (load) { _visible = false; } } instance spawnPoint of movieClip 464 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } instance deadZone of movieClip 462 { onClipEvent (load) { _visible = false; } } frame 511 { play(); } frame 512 { stop(); } movieClip 487 { } instance ground of movieClip 487 { onClipEvent (load) { _visible = false; } } instance of movieClip 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 165 { 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 447 { 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 442 { 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 462 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 462 { onClipEvent (load) { _visible = false; } } instance spawnPoint of movieClip 464 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } instance deadZone of movieClip 462 { onClipEvent (load) { _visible = false; } } frame 513 { play(); } frame 514 { stop(); } movieClip 492 { } instance BG of movieClip 492 { onClipEvent (load) { stop(); } } movieClip 495 { } movieClip 498 { frame 1 { stop(); } frame 315 { stop(); var timer = 150; onEnterFrame = function () { if (timer > 0) { --timer; } if (timer == 1) { this.nextFrame(); } }; } } instance of movieClip 165 { 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 165 { 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 165 { 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 447 { 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 165 { 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 165 { 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 442 { 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 462 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 462 { onClipEvent (load) { _visible = false; } } instance spawnPoint of movieClip 464 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } instance deadZone of movieClip 462 { onClipEvent (load) { _visible = false; } } frame 515 { play(); stopAllSounds(); } frame 516 { play(); } frame 517 { play(); } frame 518 { stop(); } movieClip 503 { } movieClip 505 { } instance ground of movieClip 505 { onClipEvent (load) { _visible = false; } } movieClip 512 { } movieClip 513 { } movieClip 521 { } movieClip 530 { frame 16 { _parent.gotoAndStop(1); } } movieClip 531 { 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 532 { } movieClip 533 { } movieClip 534 { frame 9 { _parent._x = 320; _parent._y = 250; } frame 18 { _parent.gotoAndStop(1); } } movieClip 535 { 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 513 { 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 535 { 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 556 { } movieClip 558 { instance bound of movieClip 444 { onClipEvent (load) { _visible = false; } } } instance flame of movieClip 558 { 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 561 { frame 21 { stop(); } } instance groundHitOrig of movieClip 561 { onClipEvent (load) { var effect = true; } onClipEvent (enterFrame) { if (_name == 'groundHitOrig') { _visible = false; gotoAndStop(507); } 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 442 { 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 449 { 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 462 { onClipEvent (load) { _visible = false; } } instance lScroll of movieClip 462 { onClipEvent (load) { _visible = false; } } instance rScroll of movieClip 462 { onClipEvent (load) { _visible = false; } } instance spawnPoint of movieClip 464 { onClipEvent (load) { _visible = false; _root.hero._x = this._x; _root.hero._y = this._y; } } frame 519 { nextFrame(); score = _root.hud.score; } frame 520 { stopAllSounds(); stop(); score = _root.hud.score; } movieClip 576 { } instance of movieClip 102 { 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 102 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { stopAllSounds(); _root.gotoAndPlay('menuMenu'); } } instance of movieClip 102 { onClipEvent (rollOver) { this.gotoAndPlay('over'); } onClipEvent (press) { getURL('http://www.funny-games.biz/main.html', '_blank'); } } frame 521 { stop(); getURL('http://rankz.armorbot.com/MarioCombat/', '_blank'); } frame 522 { nextFrame(); } frame 523 { stop(); } frame 524 { prevFrame(); }




http://swfchan.com/18/89732/info.shtml
Created: 10/8 -2019 22:28:47 Last modified: 10/8 -2019 22:28:47 Server time: 01/05 -2024 06:33:04