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

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

Mascot Kombat.swf

This is the info page for
Flash #25657

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { function doMenu(d) { if (d == 1) { gotoAndStop(11); } else { gotoAndStop(10); } } } frame 1 { function doLink() { urllink = 'http://www.protrade.com?hrf=http://www.mascotkombat.com'; getURL(urllink, 'linkwin'); } ifFrameLoaded (3) { gotoAndPlay('open'); } } frame 2 { gotoAndPlay('firstload'); _root.enterscore = false; } frame 3 { ifFrameLoaded (6) { _root.playbut.gotoAndStop(2); } if (fader._currentframe == 1) { play(); } else { stop(); } } button 10 { on (press) { _root.doLink(); } } movieClip 12 { } movieClip 15 { } movieClip 16 { instance of movieClip 15 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _parent.masker.nextFrame(); } else { _parent.masker.prevFrame(); } } } } movieClip 23 { } movieClip 26 { } movieClip 30 { } movieClip 31 { instance of movieClip 30 { onClipEvent (enterFrame) { if (this.hitTest(_root._xmouse, _root._ymouse, true)) { _parent.masker.nextFrame(); } else { _parent.masker.prevFrame(); } } } } button 38 { on (release) { _root.enterscore = false; _root.fader.dest = 'select'; _root.dif_level = 'easy'; _root.fader.play(); } } button 39 { on (release) { _root.enterscore = true; _root.fader.dest = 'select'; _root.dif_level = 'hard'; _root.fader.play(); } } movieClip 43 { frame 1 { stop(); } instance of movieClip 26 { onClipEvent (enterFrame) { loadedbytes = _root.getBytesLoaded(); totalbytes = _root.getBytesTotal(); loadedkbytes = Math.ceil(loadedbytes / 1000); totalkbytes = Math.ceil(totalbytes / 1000); _root.frame = int(loadedbytes / (totalbytes / 100)); if (_root.frame > 100) { _root.frame = 100; } this.gotoAndStop(_root.frame); } } frame 2 { stop(); } } instance playbut of movieClip 43 { onClipEvent (enterFrame) { this.disp = _root.frame + '%'; } } movieClip 45 { } button 47 { on (press) { _root.enterscore = false; _root.fader.dest = 'highscores'; _root.dif_level = 'easy'; _root.doMenu(2); } } movieClip 50 { } button 51 { on (press) { _root.fader.dest = 'SendFriend'; _root.dif_level = 'easy'; _root.doMenu(1); } } button 53 { on (release) { form.loadVariables('email.asp', 'POST'); } } movieClip 56 { frame 1 { body_txt.onSetFocus = function () { if (sendTo == 'enter email here' or sendTo == 'SENT! Enter another email.') { sendTo = ''; } }; stop(); } } movieClip 57 { frame 1 { stop(); } instance form of movieClip 56 { onClipEvent (data) { this.sendTo = 'SENT! Enter another email.'; } } } movieClip 58 { frame 41 { stop(); } } movieClip 68 { frame 1 { stop(); } frame 35 { if (crowdfix == true) { stopAllSounds(); } if (dest == 'game' & _root._currentframe == 5) { stopAllSounds(); } } frame 41 { _root.gotoAndStop(dest); } } movieClip 70 { frame 1 { stopAllSounds(); } frame 12 { stop(); } } frame 4 { gotoAndPlay('open'); } frame 5 { stop(); _quality = 'high'; } frame 5 { pc1 = random(1000) / 100; pc2 = random(1000) / 100; pc3 = random(1000) / 100; pc4 = random(1000) / 100; mps1 = random(10000) / 100; mps2 = random(10000) / 100; mps3 = random(10000) / 100; mps4 = random(10000) / 100; } movieClip 76 { frame 1 { stop(); } } instance of movieClip 76 { onClipEvent (enterFrame) { if (_root.player_charnum == 2) { this.nextFrame(); } else { this.prevFrame(); } } } movieClip 81 { } instance of movieClip 81 { onClipEvent (enterFrame) { if (_root.player_charnum == 4) { this.nextFrame(); } else { this.prevFrame(); } } } movieClip 86 { } instance of movieClip 86 { onClipEvent (enterFrame) { if (_root.player_charnum == 3) { this.nextFrame(); } else { this.prevFrame(); } } } movieClip 91 { } instance of movieClip 91 { onClipEvent (enterFrame) { if (_root.player_charnum == 1) { this.nextFrame(); } else { this.prevFrame(); } } } button 93 { on (rollOver) { if (_root.menusel._currentframe == 1) { _root.player_charnum = 2; _root.menusel.mascotname = 'Chief Stereotype'; _root.menusel.marketprice = _root.mps2; _root.menusel.pricechange = '+' + _root.pc2; _root.menusel.graph.gotoAndStop(2); _root.menusel.hl1 = 'Chief Stereotype to Open New Casino'; _root.menusel.hl2 = 'Redmen Skin the Cowboys'; _root.menusel.hl3 = '20-17, HT (Hatchet Throws): 5'; } } on (press) { _root.fader.dest = 'game'; _root.fader.play(); } } button 94 { on (rollOver) { if (_root.menusel._currentframe == 1) { _root.player_charnum = 4; _root.menusel.mascotname = 'Capital Eagle'; _root.menusel.marketprice = _root.mps4; _root.menusel.pricechange = '+' + _root.pc4; _root.menusel.graph.gotoAndStop(4); _root.menusel.hl1 = 'Capital Eagle Funds Linked to Abramoff'; _root.menusel.hl2 = 'Eagles Declare War on Michigan'; _root.menusel.hl3 = '13-10, RS (Rifle Shots):7'; } } on (press) { _root.fader.dest = 'game'; _root.fader.play(); } } button 95 { on (rollOver) { if (_root.menusel._currentframe == 1) { _root.player_charnum = 3; _root.menusel.mascotname = 'Viking Death'; _root.menusel.marketprice = _root.mps3; _root.menusel.pricechange = '+' + _root.pc3; _root.menusel.graph.gotoAndStop(3); _root.menusel.hl1 = 'Viking Death Accidentally Eats Cheerleader'; _root.menusel.hl2 = 'Vikings Invade New York'; _root.menusel.hl3 = '4-2, IB (Ice Blasts): 5'; } } on (press) { _root.fader.dest = 'game'; _root.fader.play(); } } movieClip 98 { } button 100 { on (rollOver) { if (_root.menusel._currentframe == 1) { _root.player_charnum = 1; _root.menusel.mascotname = 'Furball'; _root.menusel.marketprice = _root.mps1; _root.menusel.pricechange = '+' + _root.pc1; _root.menusel.graph.gotoAndStop(1); _root.menusel.hl1 = 'Catnip Testing Reveals Furball Drug Scandal'; _root.menusel.hl2 = 'Cheetahs Trounce the Bulldogs'; _root.menusel.hl3 = '14-3, EY (Exploding Yarnballs): 3'; } } on (press) { _root.fader.dest = 'game'; _root.fader.play(); } } movieClip 121 { frame 1 { stop(); } } movieClip 147 { frame 21 { gotoAndPlay('stanceloop'); } } movieClip 172 { frame 1 { } frame 26 { gotoAndPlay('stanceloop'); } } movieClip 201 { frame 20 { gotoAndPlay('stanceloop'); } } movieClip 228 { frame 22 { gotoAndPlay('stanceloop'); } } movieClip 229 { frame 1 { stop(); } } movieClip 230 { instance of movieClip 229 { onClipEvent (enterFrame) { this.gotoAndStop(_root.player_charnum); } } } button 238 { on (press) { doLink(); } } frame 6 { if (autoplay == undefined) { action = 'setcharacters'; } else { action = 'setcharacters'; } } frame 6 { function throwballs(me, xspeed) { ++ybc; duplicateMovieClip('_root.back.yarnball', 'yb' + ybc, 12500 + ybc); _root.back['yb' + ybc]._x = _root.back[me]._x; _root.back['yb' + ybc]._y = _root.back[me]._y - 300; _root.back['yb' + ybc].countdown = 0; if (_root.back[me]._xscale == 100) { _root.back['yb' + ybc].xspeed = xspeed; } else { _root.back['yb' + ybc].xspeed = -xspeed; } _root.back['yb' + ybc].yspeed = -20; if (me == 'player') { _root.back['yb' + ybc].tar = 'enemy'; } else { _root.back['yb' + ybc].tar = 'player'; } trace('---' + _root.back['yb' + ybc].tar); } function yarnball(name) { name._x += name.xspeed; name._rotation += name.xspeed; name.yspeed += 2; name.xspeed *= 0.96; ++name.countdown; if (name.countdown > 80 & name.bounce == true & name._currentframe == 1) { name.gotoAndStop(2); } if (name._y + name.yspeed < 425) { name._y += name.yspeed; } else { name.bounce = true; name.yspeed = -name.yspeed * 0.6; } if (name.hit.hitTest(_root.back[name.tar].body.hit) or name.hit.hitTest(_root.back[name.tar].body.block)) { name.xspeed = -name.xspeed; } if (name.hurt.hitTest(_root.back[name.tar].body.hit)) { trace('hittttt'); if (_root.back[name.tar].action != 'block') { _root.snd.scream.play(); damage(20, name.tar); _root[name.tar + '_yspeed'] = -40; if (_root.back[name.tar]._xscale == 100) { _root[name.tar + '_xspeed'] = 20; } else { _root[name.tar + '_xspeed'] = -20; } _root[name.tar + '_action'] = 'fall'; } } } function sparkball(name) { if (name.defined == undefined) { name.yspeed = -random(30); name.xspeed = random(50) - 25; name.defined = true; } name._alpha -= 3; name._xscale -= 2; name._yscale -= 2; name._y += name.yspeed; name._x += name.xspeed; name.xspeed *= 0.96; name.yspeed += 2; } function dove(me, you) { _root[me + '_dovegrab'] = false; _root[me + '_grabbite'] = 0; _root[me + '_grabtime'] = 0; if (me == 'player') { var v3 = 9000; } else { var v3 = 9050; } md = 1; while (md <= 12) { doveserial = md; duplicateMovieClip(back.dove, 'dove' + doveserial, md + v3); back['dove' + doveserial].serial = doveserial; back['dove' + doveserial].wait = doveserial * 2; back['dove' + doveserial]._x = back[me]._x; back['dove' + doveserial]._y = back[me]._y - 250; back['dove' + doveserial].action = 'wait'; if (me == 'player') { back['dove' + doveserial].me = 'player'; back['dove' + doveserial].you = 'enemy'; } else { back['dove' + doveserial].me = 'enemy'; back['dove' + doveserial].you = 'player'; } ++md; } } function dove_fly(name, me, you) { if (name._name == 'dove1') { } if (name._x > _root.back[you]._x) { name._xscale = 100; } else { name._xscale = -100; } if (name.action == 'fly') { name.dove_xdif = (name._x - _root.back[you]._x - _root.back[you].body['b' + name.serial]._x) / 7; name.dove_ydif = (name._y - _root.back[you]._y - _root.back[you].body['b' + name.serial]._y) / 7; if (_root[me + '_dovegrab'] == true) { name._x -= name.dove_xdif; name._y -= name.dove_ydif; } else { name.yspeed -= 2; name._x += name.xspeed; name._y += name.yspeed; } if (Math.abs(name.dove_xdif) < 4 & Math.abs(name.dove_ydif) < 4) { ++_root[me + '_dovebite']; name.action = 'grab'; } if (name._y < -500) { name.removeMovieClip(); } } else { if (name.action == 'grab') { if (name.oncestop == undefined) { _root[you + '_xspeed'] = 0; } if (name._y < -500) { name.removeMovieClip(); } name.nextFrame(); name._x = _root.back[you]._x - _root.back[you].body['b' + name.serial]._x; name._y = _root.back[you]._y + _root.back[you].body['b' + name.serial]._y; if (_root[me + '_dovebite'] >= 8 & _root[me + '_dovegrab'] == true) { if (name._name == 'dove1') { ++_root[me + '_grabtime']; if (_root[me + '_grabtime'] < 6) { _root.back[you].body.gotoAndPlay('up'); if (_root[you + '_yspeed'] > -2) { _root[you + '_yspeed'] = -4; } _root[you + '_yspeed'] += -0.03 - gravity; } else { _root[you + '_yspeed'] = -gravity / 2; } } if (back[you]._x < back[me]._x) { _root[you + '_xspeed'] += dis / 100000; } else { _root[you + '_xspeed'] -= dis / 100000; } } if (_root[me + '_grabtime'] > 150) { _root[you + '_action'] = 'stand'; name.ranx = random(80) - 40; _root.back['dove' + name.serial].action = 'flyaway'; } if (_root[you + '_action'] != 'doved') { name.ranx = random(80) - 40; _root.back['dove' + name.serial].action = 'flyaway'; } } else { if (name.action == 'flyaway') { name.gotoAndStop('in'); name._y -= 10; name._x += name.ranx; if (name._y < -1000) { name.removeMovieClip(); } } else { if (name.action == 'wait') { --name.wait; name.yspeed = random(10) + 20; if (_root.back[me]._x < _root.back[you]._x) { name.xspeed = 33; } else { name.xspeed = -33; } if (name.wait <= 0) { name.play(); name.action = 'fly'; } } } } } } function damage(pain, victem) { energy_offset = 150 - difficulty; if (energy_offset > 100 or energy_offset < 50) { if (dif_level == 'easy') { energy_offset = 133; } else { if (dif_level == 'hard') { energy_offset = 100; } } } if (player_life > 0 & enemy_life > 0) { if (victem == 'player') { _root[victem + '_life'] -= int(pain * 1.75); } else { if (victem == 'enemy') { _root[victem + '_life'] -= int(pain * 1.75 * (energy_offset / 100)); } } } } function blood(drops, distance, attacker, victem) { bd = 0; while (bd < drops) { ++bdn; ++totaldrops; duplicateMovieClip(back.blooddrop, 'blood' + bdn, bdn + 500); back['blood' + bdn]._x = back[victem]._x; back['blood' + bdn]._y = back[victem]._y + back[attacker].body.hurt._y + back[attacker]._y - bot; var v2 = random(distance); back['blood' + bdn].xspeed = random(v2) - v2 / 2; back['blood' + bdn].yspeed = -random(distance) * 2; if (victem == 'player') { if (player_charnum == 1) { whichcolor = random(2) + 1; col1 = 'red'; col2 = 'white'; } else { if (player_charnum == 2) { whichcolor = random(2) + 1; col1 = 'red'; col2 = 'brown'; } else { if (player_charnum == 3) { whichcolor = random(2) + 1; col1 = 'green'; col2 = 'brown'; } else { if (player_charnum == 4) { whichcolor = random(3) + 1; col1 = 'blue'; col2 = 'white'; col3 = 'red'; } } } } } else { if (victem == 'enemy') { if (enemy_charnum == 1) { whichcolor = random(2) + 1; col1 = 'red'; col2 = 'white'; } else { if (enemy_charnum == 2) { whichcolor = random(2) + 1; col1 = 'red'; col2 = 'brown'; } else { if (enemy_charnum == 3) { whichcolor = random(2) + 1; col1 = 'green'; col2 = 'brown'; } else { if (enemy_charnum == 4) { whichcolor = random(3) + 1; col1 = 'blue'; col2 = 'white'; col3 = 'red'; } } } } } } pickcolor = _root['col' + whichcolor]; back['blood' + bdn].bc = pickcolor; back['blood' + bdn].gotoAndStop(pickcolor); ++bd; } } function bloodmovement(name) { if (name._name != 'blooddrop' & name.defined == undefined) { name.botvar = random(25); name.fadecount = 0; name.fadeout = false; name.defined = 'defined'; } name.xx = name._x + name.xspeed; name.yy = name._y + name.yspeed; name.yspeed += gravity; name._x += name.xspeed; if (name.yy < bot + name.botvar) { name._y += name.yspeed; name.x2 = name.xspeed; name.y2 = name.yspeed; if (name.x2 > 0) { name.baseangle = -90; name._xscale = 100; } else { if (x2 < 0) { name.baseangle = 90; name._xscale = -100; } } if (name.x2 > 0) { name.angleperc = name.y2 / name.x2; if (name.angleperc > 2) { name.angleperc = 2; } else { if (name.angleperc < -2) { name.angleperc = -2; } else {} } name._rotation = name.angleperc * 45 - 90; } else { if (name.x2 < 0) { name.x2 = -name.x2; name.angleperc = name.y2 / name.x2; if (name.angleperc > 2) { name.angleperc = 2; } else { if (name.angleperc < -2) { name.angleperc = -2; } else {} } name._rotation = name.angleperc * -45 + 90; } } } else { if (name._alpha > 80) { name._alpha = 80; } name.gotoAndStop(name.bc + '_s'); name.yspeed = 0; name.xspeed = 0; name._rotation = 0; name.fadeout = true; } if (name.fadeout == true) { ++name.fadecount; if (name.fadecount > 20 or totaldrops > 30) { if (name._alpha > 0) { name._alpha -= 2; } } if (name._alpha < 60) { --totaldrops; name.removeMovieClip(); } } } ybc = 0; if (dif_level == undefined) { dif_level = 'hard'; } bdn = 0; } frame 6 { var jkcount = 0; } frame 6 { function moveback() { if (player_yy < 300 & back._y - player_yspeed > 0) { back._y -= player_yspeed; } else { back._y = 0; } if (back._x > 0) { back._x = 0; } else { if (back._x < -1200) { back._x = -1200; } } llim = 75; rlim = 725; bw = -1200; px = back.player._x + back._x; ex = back.enemy._x + back._x; pxx = px + player_xspeed; exx = ex + enemy_xspeed; if (ex > rlim) { back.enemy._x = -back._x + rlim - 40; } if (pxx > llim & pxx < rlim) { back.player._x += player_xspeed; } else { if (pxx <= llim & back._x - player_xspeed < 0) { if (ex - player_xspeed <= rlim) { back.player._x = -back._x + llim; back._x -= player_xspeed; } else { if (ex - player_xspeed > rlim) { frac = ex - rlim; back._x -= frac; back.player._x = -back._x + llim; } } } else { if (pxx >= rlim & back._x - player_xspeed > bw) { if (ex - player_xspeed >= llim) { back.player._x = -back._x + rlim; back._x -= player_xspeed; } else { if (ex - player_xspeed < llim) { frac = ex - llim; back._x -= frac; back.player._x = -back._x + rlim; } } } } } if (exx > llim & exx < rlim) { back.enemy._x += enemy_xspeed; } else { if (exx <= llim) { if (back._x - enemy_xspeed < 0 & px - enemy_xspeed <= rlim) { back.enemy._x = -back._x + llim; back._x -= enemy_xspeed; back.player._x -= enemy_xspeed; } } else { if (exx >= rlim) { if (back._x - enemy_xspeed > bw & px - enemy_xspeed >= llim) { back.enemy._x = -back._x + rlim; back._x -= enemy_xspeed; back.player._x -= enemy_xspeed; } } else {} } } } function unloader(name) { if (name.lastframe == undefined) { name.lastframe = back._currentframe; } if (name.lastframe != back._currentframe) { name.removeMovieClip(); } else { name.lastframe = back._currentframe; } } _quality = 'low'; stop(); maxlife = 500; score = 0; wins = 0; player_roundswon = 0; enemy_roundswon = 0; if (arena == undefined) { arena = 1; } roundnum = 1; enemy_charnum = player_charnum + 1; onEnterFrame = function () { if (enemy_charnum > 4) { enemy_charnum = 1; } if (_root.arena > 3) { _root.arena = 1; } _root.back.gotoAndStop(arena); if (player_charnum == enemy_charnum) { enemycol = new Color(back.enemy); enemycol.setTransform({'ra': 100, 'rb': 50, 'ga': 100, 'gb': 20, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}); } else { enemycol = new Color(back.enemy); enemycol.setTransform({'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}); } if (action == 'fight') { moveback(); character('player', 'enemy'); character('enemy', 'player'); } else { if (action == 'setcharacters') { if (player_charnum == undefined) { player_charnum = 1; } player_life = maxlife; enemy_life = maxlife; playerbar.life._width = maxlife; enemybar.life._width = maxlife; back.attachMovie(['fighter' + _root.player_charnum], 'player', 1); back.player._x = 750; back.player._y = bot; back.attachMovie(['fighter' + _root.enemy_charnum], 'enemy', 2); back.enemy._x = 1250; back.enemy._y = bot; back.enemy._xscale = -100; action = 'ready'; } else { if (action == 'ready') { if (ready._currentframe == 1) { ready.gotoAndPlay(2); } if (ready._currentframe == ready._totalframes) { action = 'setmatch'; } } else { if (action == 'setmatch') { player_action = 'stand'; enemy_action = 'stand'; action = 'fight'; } else { if (action == 'roundover') { if (enemy_life <= 0) { ++player_roundswon; youwonlost.gotoAndPlay('win'); } else { ++enemy_roundswon; youwonlost.gotoAndPlay('lose'); } action = 'whatsnext'; } else { if (action == 'whatsnext') { if (youwonlost.completed == true) { if (player_roundswon >= 2) { _root.fader.crowdfix = true; _root.fader.dest = 'game'; _root.fader.play(); if (fader._currentframe >= 42) { _root.difficulty += 15; removeMovieClip(back.player); removeMovieClip(back.enemy); _root.roundnum = 1; ++_root.arena; ++_root.wins; ++_root.enemy_charnum; _root.back._x = -600; player_roundswon = 0; enemy_roundswon = 0; ready.gotoAndStop(1); youwonlost.gotoAndStop(1); action = 'setcharacters'; } } else { if (enemy_roundswon >= 2) { if (_root.youwonlost._currentframe == 431) { if (_root.dif_level == 'easy') { _root.youwonlost.gotoAndStop('gameover_easy'); } else { if (_root.dif_level == 'hard') { _root.youwonlost.gotoAndStop('gameover_hard'); } } } } else { _root.fader.crowdfix = false; _root.fader.dest = 'game'; _root.fader.play(); if (fader._currentframe >= 42) { ++_root.roundnum; removeMovieClip(back.player); removeMovieClip(back.enemy); _root.back._x = -600; ready.gotoAndStop(1); youwonlost.gotoAndStop(1); action = 'setcharacters'; } } } } } } } } } } }; fix = 0; upper = 0; } frame 6 { function ai(name) { if (player_life <= 0) { aia = 0; } if (player_life > 0 & enemy_action != 'death' & enemy_action != 'smallflinch' & enemy_action != 'bigflinch' & enemy_action != 'fall' & enemy_action != 'freeze' & enemy_action != 'doved') { dovereaction(name); harpoonreaction(name); enemydefense(name); enemyreactstogettinghit(name); checkforfall(); enemyface(name); if (aia == 0) { if (dis < 350) { enemy_action = 'uppercut'; } else { aia = random(15); } shottry = 0; fixlunge = false; enemy_fixjump = false; } else { if (aia == -1) { if (player_action != 'fall') { aia = 0; } enemyreactstofall(name); } else { if (aia == -2) { if (unblock == true) { --blockercounter; } if (unblock == false or blockercounter > 0) { if (unblock == false) { blockercounter = 9; } enemy_action = 'block'; name.body.nextFrame(); } else { name.body.prevFrame(); if (name.body._currentframe == 1) { enemy_action = 'stand'; aia = 0; } } } else { if (aia == -3) { if (player_lunge != true) { aia = 0; } } else { if (aia == -4) { if (player_action != 'doved') { aia = 0; } } else { if (aia == -5) { if (player_action != 'freeze') { aia = 0; } } else { if (aia == 1 or aia == 2) { timeout(); if (dis > 275) { movedelay = random(base_enemy_delay - difficulty); moveforward(name); } else { if (movedelay <= 0) { enemy_xspeed = 0; enemy_action = 'short'; } else { enemy_xspeed = 0; --movedelay; } } } else { if (aia == 3 or aia == 4) { timeout(); if (dis > 200) { movedelay = random(base_enemy_delay - difficulty); moveforward(name); } else { if (movedelay <= 0) { enemy_xspeed = 0; enemy_action = 'kick'; } else { enemy_xspeed = 0; --movedelay; } } if (player_action == 'bigflinch' or player_action == 'fall') { aia = 0; } } else { if (aia == 5 or aia == 6) { timeout(); if (dis >= 400) { enemy_action = 'hard'; if (name._x < back.player._x) { enemy_xspeed = 80; fixlunge = true; } else { if (back.enemy._x > back.player._x) { enemy_xspeed = -80; fixlunge = true; } } } else { if (dis < 400 & dis > 250) { if (fixlunge == false) { moveforward(name); } } else { enemy_action = 'hard'; } } if (player_action == 'bigflinch' or player_action == 'fall') { aia = 0; } } else { if (aia == 7) { timeout(); if (dis > 275) { movedelay = random(base_enemy_delay - difficulty); movebackard(name); } else { if (movedelay <= 0) { enemy_xspeed = 0; enemy_action = 'short'; } else { enemy_xspeed = 0; --movedelay; } } if (shorttry == undefined) { shorttry = 0; } } else { if (aia == 8) { timeout(); if (dis > 250) { movedelay = random(base_enemy_delay - difficulty); moveforward(name); } else { if (movedelay <= 0) { enemy_xspeed = 0; enemy_action = 'kick'; } else { enemy_xspeed = 0; --movedelay; } } if (player_action == 'bigflinch' or player_action == 'fall') { aia = 0; } } else { if (aia == 9) { timeout(); if (shottry < 50) { shottry = 50; } if (dis > 300) { moveforward(name); } else { enemy_xspeed = 0; enemy_action = 'hard'; } if (player_action == 'bigflinch' or player_action == 'fall') { aia = 0; } } else { if (aia == 10 or aia == 11) { enemy_xspeed = -maxspeed * 2; if (enemy_action == 'stand' & enemy_fixjump == false) { enemy_action = 'jump'; enemy_fixjump = true; } if (dis < 250 & enemy_jump == 'jumping') { enemy_action = 'jumpkick'; } if (enemy_action != 'jump' & enemy_action != 'jumpkick') { enemy_jump = 'notjumping'; enemy_fixjump = false; aia = 0; } } else { if (aia == 12) { enemy_xspeed = maxspeed * 2; if (enemy_action == 'stand' & enemy_fixjump == false) { enemy_action = 'jump'; enemy_fixjump = true; } if (dis < 250 & enemy_jump == 'jumping') { enemy_action = 'jumpkick'; } if (enemy_action != 'jump' & enemy_action != 'jumpkick') { enemy_jump = 'notjumping'; enemy_fixjump = false; aia = 0; } } else { if (aia >= 13) { if (back.enemy.body._currentframe == back.enemy.body._totalframes & enemy_action == 'fireball') { aia = 0; } else { if (dis > 300 & back.enemy_fireball._currentframe == 1) { enemy_action = 'fireball'; } else { movebackward(name); } } } } } } } } } } } } } } } } } } else { aia = 0; } if (enemy_action == 'duck') { enemy_action = 'stand'; } } function dovereaction(name) { if (player_action == 'doved') { aia = -4; if (dis > 200) { moveforward(name); } else { enemy_action = 'uppercut'; } } } function harpoonreaction(name) { if (player_action == 'freeze' & back.player.body._currentframe > 5) { aia = -5; if (dis > 200) { moveforward(name); } else { enemy_action = 'uppercut'; } } } function checkforfall() { if (player_action == 'fall' & aia != -1) { fallreaction = random(3); aia = -1; } } function enemyreactstofall(name) { if (fallreaction == 0) { enemy_action = 'jump'; back.enemy.gotoAndStop('jump'); if (dis < 500) { if (name._x <= back.player._x) { enemy_xspeed = -maxspeed * 2; } else { if (name._x > back.player._x) { enemy_xspeed = maxspeed * 2; } } } else { fallreaction = 10; } } else { if (fallreaction == 1) { if (dis < 500) { movebackward(name); } else { fallreaction = 10; } } else { if (fallreaction == 2) { if (dis < 100) { movebackward(name); } else { fallreaction = 10; } } } } } function moveforward(name) { if (name._x < back.player._x) { name._xscale = 100; enemy_xspeed = 7; } else { if (back.enemy._x > back.player._x) { name._xscale = -100; enemy_xspeed = -7; } } } function movebackward(name) { if (dis < 500 & back.enemy._x + enemy_xspeed > 90 & back.enemy._x + enemy_xspeed < 1910) { if (walkoffset <= 0) { if (name._x < back.player._x) { name._xscale = 100; enemy_xspeed = -7; } else { if (back.enemy._x > back.player._x) { name._xscale = -100; enemy_xspeed = 7; } } } else { --walkoffset; } } else { enemy_xspeed = 0; walkoffset = 20; } } function timeout() { ++shottry; if (shottry > 100) { shottry = 0; aia = 0; } } function enemyreactstogettinghit(name) { if (enemy_action == 'bigflinch' & name.body._currentframe > 33) { bigreaction = 0; if (bigreaction == 0) { enemy_action = 'stand'; enemy_fixjump = false; aia = 12; } } } function enemydefense(name) { blockdifficulty = 10 + difficulty; blockfireball = difficulty + fireballhit; if (player_life <= 0 or enemy_life <= 0) { fireballhit = 0; } if (enemy_action != 'fall' & enemy_action != 'jump' & enemy_action != 'bigflinch' & enemy_action != 'smallflinch' & enemy_action != 'doved') { if (enemy_action == 'stand' or enemy_action == 'block') { if (player_lunge == true) { lungedefend = random(290); if (lungedefend < blockdifficulty) { counterlunge = true; } if (player_charnum == 4) { setdis = 450; } else { setdis = 360; } if (dis < setdis & counterlunge == true) { enemy_action = 'uppercut'; aia = -3; } else { enemy_action = 'block'; aia = -2; } } else { counterlunge = false; } } } if (dis < 300) { if (player_action == 'short' or player_action == 'kick' or player_action == 'jumpkick') { if (enemy_action != 'fall' & enemy_action != 'jump' & enemy_action != 'bigflinch' & enemy_action != 'smallflinch' & enemy_action != 'doved') { if (enemy_action == 'stand' or enemy_action == 'block') { if (enemy_action != 'block') { unblock = false; blockit = random(100); } if (blockit < blockdifficulty) { unblock = false; enemy_action = 'block'; aia = -2; } } else { if (player_action == 'hard') { if (enemy_action != 'block') { unblock = false; blockit = random(100); } if (blockit < blockdifficulty) { unblock = false; enemy_action = 'block'; aia = -2; } } else { if (enemy_action == 'block' & back.enemy._currentframe != 1) { unblock = true; enemy_action = 'stand'; aia = 0; } } } } } } else { if (player_action == 'fireball') { if (enemy_action != 'fall' & enemy_action != 'jump' & enemy_action != 'bigflinch' & enemy_action != 'smallflinch' & enemy_action != 'doved') { if (enemy_action != 'block' & enemy_jump != 'jumping') { unblock = false; blockit = random(100); } if (blockit < blockfireball & player_charnum != 1) { unblock = false; enemy_action = 'block'; aia = -2; } } } else { if (player_action == 'uppercut' & dis < 400) { if (enemy_action == 'stand' or enemy_action == 'block') { unblock = false; enemy_action = 'block'; back.enemy.gotoAndStop('block'); aia = -2; } } else { if (unblock == false & back.enemy._currentframe != 1) { unblock = true; } } } } } function enemyface(name) { if (enemy_action == 'stand' or enemy_action == 'block') { if (name._x < back.player._x) { name._xscale = 100; } else { if (name._x > back.player._x) { name._xscale = -100; } } } } difficulty = 10; aia = 0; blockercounter = 0; if (dif_level == 'easy') { base_enemy_delay = 100; } else { if (dif_level == 'hard') { base_enemy_delay = 60; } } enemy_fixjump = false; shorttry = 0; fireballhit = 0; } frame 6 { function character(me, you) { dis = Math.abs(back.player._x - back.enemy._x); _root[me + '_lunge'] = false; if (_root[me + '_life'] <= 0 & _root[me + '_action'] != 'death') { _root[me + '_action'] = 'fall'; } back[me].gotoAndStop(_root[me + '_action']); if (me == 'enemy') { if (enemy_action != 'death' or enemy_action != 'fall' or enemy_action != 'smallflinch' or enemy_action != 'bigflinch') { ai(back.enemy); } } else {} if (_root[me + '_shorthitcounter'] > 0) { --_root[me + '_shorthitrundown']; if (_root[me + '_shorthitrundown'] <= 0) { _root[me + '_shorthitcounter'] = 0; } } _root[me + '_yy'] = back[me]._y + int(_root[me + '_yspeed']); if (_root[me + '_yy'] <= bot) { back[me]._y += _root[me + '_yspeed']; } else { if ([me + '_yspeed'] != 0) { back[me]._y = bot; _root[me + '_yspeed'] = 0; if (_root[me + '_jump'] == 'jumping') { _root[me + '_jump'] = 'notjumping'; back[me].body.walkdir = ''; if (_root[me + '_action'] != 'doved') { _root[me + '_action'] = 'stand'; } } } } _root[me + '_yspeed'] += gravity; if (D_delay > 0 & Key.isDown(68)) { --D_delay; } else { if (Key.isDown(68) == false) { D_delay = 0; } } if (_root[me + '_action'] == 'stand') { if (_root[me + '_oncereset'] == false) { back[me].gotoAndStop('stand'); back[me].body.walkdir = ''; _root[me + '_oncereset'] = true; } _root[me + '_jumpedyet'] = false; if (_root[me + '_xspeed'] > maxspeed) { _root[me + '_xspeed'] = maxspeed; } else { if (_root[me + '_xspeed'] < -maxspeed) { _root[me + '_xspeed'] = -maxspeed; } } if (back[me].body.walkdir == 'b') { back[me].body.prevFrame(); } else { if (back[me].body.walkdir == 'f') { back[me].body.nextFrame(); } } if (me == 'player') { if (back[me]._x < back[you]._x) { back[me]._xscale = 100; } else { if (back[me]._x > back[you]._x) { back[me]._xscale = -100; } } if (Key.isDown(40)) { back[me].body.walkdir = ''; _root[me + '_xspeed'] = 0; _root[me + '_action'] = 'duck'; } else { if (Key.isDown(38) & player_yy + gravity >= bot) { back[me].gotoAndStop('jump'); _root[me + '_action'] = 'jump'; } else { if (Key.isDown(83)) { _root[me + '_action'] = 'hard'; } else { if (fb_seq == true & back[me + '_fireball']._currentframe == 1 & _root[you + '_action'] != 'harpooned') { _root[me + '_action'] = 'fireball'; } else { if (Key.isDown(68) & D_delay <= 0) { _root[me + '_action'] = 'short'; } else { if (Key.isDown(65)) { _root[me + '_action'] = 'kick'; } else { if (Key.isDown(32)) { _root[me + '_action'] = 'block'; } else { if (Key.isDown(37)) { _root[me + '_xspeed'] -= 1; } else { if (Key.isDown(39)) { _root[me + '_xspeed'] += 1; } else { _root[me + '_xspeed'] *= 0.7; if (Math.abs(_root[me + '_xspeed']) < 1) { _root[me + '_xspeed'] = 0; } } } } } } } } } } } else { if (me == 'enemy') { if (back.enemy.body.walkdir == 'b') { back.enemy.body.prevFrame(); } else { if (back.enemy.body.walkdir == 'f') { back.enemy.body.nextFrame(); } } if (enemy_xspeed <= -1) { if (back.enemy.body._currentframe == 1) { back.enemy.body.gotoAndStop('set'); } if (back.enemy._xscale == 100) { back.enemy.body.walkdir = 'b'; } else { if (back.enemy._xscale == -100) { back.enemy.body.walkdir = 'f'; } } } else { if (enemy_xspeed >= 1) { if (back.enemy.body._currentframe == 1) { back.enemy.body.gotoAndStop('set'); } if (back.enemy._xscale == 100) { back.enemy.body.walkdir = 'f'; } else { if (back.enemy._xscale == -100) { back.enemy.body.walkdir = 'b'; } } } else { if (back.enemy.body.walkdir != '') { back.enemy.body.gotoAndPlay('backtostance'); } back.enemy.body.walkdir = ''; } } } } if (_root[me + '_xspeed'] < -1) { if (back[me].body._currentframe == 1) { back[me].body.gotoAndStop('set'); } if (back[me]._xscale == 100) { back[me].body.walkdir = 'b'; } else { if (back[me]._xscale == -100) { back[me].body.walkdir = 'f'; } } } else { if (_root[me + '_xspeed'] > 1) { if (back[me].body._currentframe == 1) { back[me].body.gotoAndStop('set'); } if (back[me]._xscale == 100) { back[me].body.walkdir = 'f'; } else { if (back[me]._xscale == -100) { back[me].body.walkdir = 'b'; } } } else { if (back[me].body.walkdir != '') { back[me].body.gotoAndPlay('backtostance'); } back[me].body.walkdir = ''; } } } else { if (_root[me + '_action'] == 'jump') { back[me].body.walkdir = ''; if (_root[me + '_jumpedyet'] != true) { _root[me + '_yspeed'] -= jump; _root[me + '_jump'] = 'jumping'; _root[me + '_jumpedyet'] = true; if (back[me]._xscale == 100) { if (_root[me + '_xspeed'] >= 0) { back[me].body.gotoAndPlay('for'); } else { if (_root[me + '_xspeed'] < 0) { back[me].body.gotoAndPlay('back'); } } } else { if (back[me]._xscale == -100) { if (_root[me + '_xspeed'] <= 0) { back[me].body.gotoAndPlay('for'); } else { if (_root[me + '_xspeed'] > 0) { back[me].body.gotoAndPlay('back'); } } } } } if (Key.isDown(83) or Key.isDown(68) or Key.isDown(65)) { _root[me + '_action'] = 'jumpkick'; } if (me == 'player') { if (Key.isDown(37)) { _root[me + '_xspeed'] = -maxspeed * 2; } else { if (Key.isDown(39)) { _root[me + '_xspeed'] = maxspeed * 2; } } } } else { if (_root[me + '_action'] == 'jumpkick') { ++jkcount; if (back[me].body.hurt.hitTest(back[you].body.hit) & _root[you + '_action'] != 'blocking') { if (Math.abs(_root[me + '_xspeed']) > 13) { damage(30, you); blood(8, 40, me, you); _root.snd.genhit.play(); _root[you + '_action'] = 'fall'; _root[you + '_yspeed'] = -15; if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -_root[me + '_xspeed']; } else { _root[you + '_xspeed'] = _root[me + '_xspeed']; } } else { damage(20, you); blood(8, 10, me, you); _root[you + '_action'] = 'smallflinch'; if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -50; } else { _root[you + '_xspeed'] = 50; } } } else { if (back[me].body.hurt.hitTest(back[you].body.block)) { _root.snd.block.play(); _root[me + '_xspeed'] = 0; if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -20; } else { _root[you + '_xspeed'] = 20; } } } } else { if (_root[me + '_action'] == 'duck') { _root[me + '_oncereset'] = false; _root[me + '_xspeed'] = 0; if (me == 'player') { if (Key.isDown(83)) { _root[me + '_action'] = 'uppercut'; } else { if (Key.isDown(65)) { _root[me + '_action'] = 'uppercut'; } else { if (Key.isDown(68)) { _root[me + '_action'] = 'uppercut'; } else { if (Key.isDown(40)) { _root[me + '_action'] = 'duck'; back[me].body.nextFrame(); } else { back[me].body.prevFrame(); if (back[me].body._currentframe == 1) { _root[me + '_action'] = 'stand'; } } } } } } } else { if (_root[me + '_action'] == 'uppercut') { if (back[me].body.hurt.hitTest(back[you].body.hit)) { _root.snd.hard.play(); _root.snd[you + '_scream'].cont.play(); _root.snd.scream.cont.play(); _root[you + '_yspeed'] = -60; if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -6; } else { _root[you + '_xspeed'] = 6; } damage(30, you); blood(40, 30, me, you); _root[you + '_action'] = 'fall'; } else { if (back[me].body.hurt.hitTest(back[you].body.block)) { _root.snd.block.play(); if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -20; _root[me + '_xspeed'] = 20; } else { _root[you + '_xspeed'] = 20; _root[me + '_xspeed'] = -20; } } } if (back[me].body._currentframe == back[me].body._totalframes) { _root[me + '_action'] = 'duck'; } } else { if (_root[me + '_action'] == 'kick') { if (_root[me + '_oncereset'] == true) { _root[me + '_xspeed'] = 0; _root[me + '_oncereset'] = false; } _root[me + '_xspeed'] *= 0.7; if (back[me].body.hurt.hitTest(back[you].body.hit) & _root[you + '_action'] != 'fall') { _root[you + '_action'] = 'smallflinch'; _root.snd.genhit.play(); damage(30, you); blood(8, 32, me, you); kick1 = true; } else { if (back[me].body.hurt2.hitTest(back[you].body.hit) & _root[you + '_action'] != 'fall') { _root.snd.genhit.play(); if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -60; } else { _root[you + '_xspeed'] = 60; } _root[you + '_action'] = 'bigflinch'; damage(30, you); blood(8, 32, me, you); } else { if (back[me].body.hurt.hitTest(back[you].body.block)) { _root.snd.block.play(); if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -20; _root[me + '_xspeed'] = 20; } else { _root[you + '_xspeed'] = 20; _root[me + '_xspeed'] = -20; } } } } if (back[me].body._currentframe == back[me].body._totalframes) { _root[me + '_action'] = 'stand'; } } else { if (_root[me + '_action'] == 'short') { if (_root[me + '_oncereset'] == true) { _root[me + '_xspeed'] = 0; _root[me + '_oncereset'] = false; } D_delay = 3; _root[me + '_xspeed'] *= 0.7; if (back[me].body.punch == 'done') { _root[me + '_action'] = 'stand'; } if (back[me].body.hurt.hitTest(back[you].body.hit) & _root[you + '_action'] != 'smallflinch' & _root[you + '_action'] != 'bigflinch' & _root[you + '_action'] != 'fall') { damage(30, you); blood(8, 20, me, you); _root.snd.soft.play(); if (_root[me + '_shorthitcounter'] < 5) { _root[you + '_action'] = 'smallflinch'; ++_root[me + '_shorthitcounter']; _root[me + '_shorthitrundown'] = 90; } else { _root[me + 'shorthitcounter'] = 0; _root[me + '_shorthitrundown'] = 0; _root[you + '_action'] = 'fall'; } } else { if (back[me].body.hurt.hitTest(back[you].body.block)) { _root.snd.block.play(); if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -20; _root[me + '_xspeed'] = 20; } else { _root[you + '_xspeed'] = 20; _root[me + '_xspeed'] = -20; } } } } else { if (_root[me + '_action'] == 'hard') { _root[me + '_oncereset'] = false; if (me == 'player') { if (Key.isDown(39) & back.player._xscale == 100 & player_xspeed < 20) { player_xspeed = 20; player_lunge = true; } else { if (Key.isDown(37) & back.player._xscale == -100 & player_xspeed > -20) { player_xspeed = -20; player_lunge = true; } } } _root[me + '_xspeed'] *= 0.9; if (back[me].body._currentframe == back[me].body._totalframes) { player_lunge = false; _root[me + '_action'] = 'stand'; } if (back[me].body.hurt.hitTest(back[you].body.hit) & _root[you + '_action'] != 'smallflinch' & _root[you + '_action'] != 'bigflinch' & _root[you + '_action'] != 'fall') { _root.snd.hard.play(); _root.snd[you + '_scream'].cont.play(); _root.snd.scream.cont.play(); if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -60; } else { _root[you + '_xspeed'] = 60; } _root[you + '_action'] = 'bigflinch'; damage(50, you); blood(16, 30, me, you); } else { if (back[me].body.hurt.hitTest(back[you].body.block)) { _root.snd.block.play(); if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -20; _root[me + '_xspeed'] = 10; } else { _root[you + '_xspeed'] = 20; _root[me + '_xspeed'] = -10; } } } } else { if (_root[me + '_action'] == 'fireball') { if (_root[me + '_oncereset'] == true) { _root[me + '_oncereset'] = false; } if (back[me + '_fireball']._currentframe == 1 & back[me].body._currentframe == 2) { _root[me + 'fireballonce'] = false; back[me + '_fireball'].gotoAndStop(_root[me + '_charnum'] + 1); back[me + '_fireball']._xscale = back[me]._xscale; back[me + '_fireball']._x = back[me]._x; back[me + '_fireball']._y = back[me]._y; back[me + '_fireball'].gotoAndStop(_root[me + '_charnum'] + 1); } else {} _root[me + '_xspeed'] = 0; if (back[me].body._currentframe == back[me].body._totalframes) { _root[me + '_action'] = 'stand'; } if (_root.back[me + '_fireball'].en.fb.hit.hitTest(back[you].body.hit) & _root[you + '_action'] != 'smallflinch' & _root[you + '_action'] != 'bigflinch' & _root[you + '_action'] != 'fall') { _root.back[me + '_fireball'].en.fb.gotoAndPlay('dead'); _root.snd[you + '_scream'].cont.play(); _root.snd.scream.cont.play(); _root.snd.hard.play(); _root.back[me + '_fireball'].en.stop(); if (me == 'player') { blockfireball += 1; } else {} if (_root[me + '_charnum'] != 3) { _root[you + '_action'] = 'bigflinch'; if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -30; } else { _root[you + '_xspeed'] = 30; } damage(50, you); blood(16, 30, me, you); } else { _root[you + '_action'] = 'freeze'; _root[you + '_xspeed'] = 0; } if (me == 'player') { fireballhit += 7; } } else { if (_root.back[me + '_fireball'].en.fb.hit.hitTest(back[you].body.block)) { _root.snd.block.play(); _root.back[me + '_fireball'].en.fb.action = 'bounce'; _root.back[me + '_fireball'].en.fb.gotoAndPlay('dead'); _root.back[me + '_fireball'].en.stop(); if (back[you]._xscale == 100) { _root[you + '_xspeed'] = -30; } else { _root[you + '_xspeed'] = 30; } } } } else { if (_root[me + '_action'] == 'smallflinch') { if (_root[me + '_oncereset'] == true) { back[me].gotoAndStop('smallflinch'); _root[me + '_oncereset'] = false; } if (_root[me + '_jump'] == 'jumping') { _root[me + '_action'] = 'fall'; } if (me == 'player') { if (Key.isDown(38) & player_yy + gravity >= bot) { back[me].gotoAndStop('jump'); _root[me + '_action'] = 'jump'; } else { if (Key.isDown(32)) { _root[me + '_action'] = 'block'; } } } _root[me + '_xspeed'] *= 0.7; if (Math.abs(_root[me + '_xspeed']) < 1) { _root[me + '_xspeed'] = 0; } if (back[me].body._currentframe == back[me].body._totalframes) { _root[me + '_action'] = 'stand'; } } else { if (_root[me + '_action'] == 'bigflinch') { if (_root[me + '_oncereset'] == true) { back[me].gotoAndStop('smallflinch'); _root[me + '_oncereset'] = false; } if (_root[me + '_jump'] == 'jumping') { _root[me + '_action'] = 'fall'; } if (me == 'player') { if (Key.isDown(38) & player_yy + gravity >= bot & player.body._currentframe >= 33) { back[me].gotoAndStop('jump'); _root[me + '_action'] = 'jump'; } } _root[me + '_xspeed'] *= 0.7; if (Math.abs(_root[me + '_xspeed']) < 1) { _root[me + '_xspeed'] = 0; } if (back[me].body._currentframe == back[me].body._totalframes) { _root[me + '_action'] = 'stand'; } } else { if (_root[me + '_action'] == 'fall' or _root[me + '_action'] == 'death') { _root[me + '_jump'] = 'notjumping'; if (_root[you + '_roundswon'] >= 1 & _root[me + '_life'] <= 0) { _root[me + '_action'] = 'death'; back[me].gotoAndStop('death'); } if (back[me].body.fallstatus == undefined) { if (_root[me + '_yy'] >= bot) { _root[me + '_xspeed'] = 0; back[me].body.fallstatus = 'ground'; } } else { if (_root[you + '_roundswon'] >= 1 & _root[me + '_life'] <= 0) { _root[me + '_action'] = 'death'; back[me].gotoAndStop('death'); if (_root[you + '_action'] == 'stand' or _root[you + '_action'] == 'duck') { _root[you + '_action'] = 'dance'; back[you].gotoAndStop('dance'); action = 'roundover'; } } else { if (back[me].body.fallstatus == 'deathtest' & _root[me + '_life'] <= 0) { back[me].body.stop(); if (_root[you + '_action'] == 'stand' or _root[you + '_action'] == 'duck') { _root[you + '_action'] = 'dance'; back[you].gotoAndStop('dance'); action = 'roundover'; } } else { if (back[me].body._currentframe == back[me].body._totalframes) { back[me].body.fallstatus = undefined; _root[me + '_action'] = 'stand'; } } } } } else { if (_root[me + '_action'] == 'block') { if (_root[me + '_oncereset'] == true) { _root[me + '_xspeed'] = 0; _root[me + '_oncereset'] = false; } if (back[me]._x < back[you]._x) { back[me]._xscale = 100; } else { if (back[me]._x > back[you]._x) { back[me]._xscale = -100; } } _root[me + '_xspeed'] *= 0.9; if (me == 'player') { if (Key.isDown(32)) { _root[me + '_action'] = 'block'; back[me].body.nextFrame(); } else { back[me].body.prevFrame(); if (back[me].body._currentframe == 1) { _root[me + '_action'] = 'stand'; } } } } else { if (_root[me + '_action'] == 'harpooned') { _root[me + '_xspeed'] = 0; back[me].gotoAndStop('harpooned'); if (_root[you + '_action'] != 'fireball') { back[me].body.play(); } else { back[me].body.gotoAndStop(1); } if (back[me].body._currentframe == back[me].body._totalframes) { _root[me + '_action'] = 'stand'; } } else { if (_root[me + '_action'] == 'freeze') { _root[me + '_xspeed'] = 0; back[me].gotoAndStop('freeze'); if (back[me].body._currentframe == back[me].body._totalframes) { _root[me + '_action'] = 'stand'; } } } } } } } } } } } } } } } } } if (set_up_variables == undefined) { gravity = 2.4; maxspeed = 12; walkspeed = 1; player_xspeed = 0; player_yspeed = 0; enemy_xspeed = 0; enemy_yspeed = 0; jump = 36; bot = 425; set_up_variables = 'defined'; D_delay = 0; player_oncereset = true; enemy_oncereset = true; player_shorthitcounter = 0; enemy_shorthitcounter = 0; player_shorthitrundown = 0; enemy_shorthitrundown = 0; } } movieClip 241 { frame 1 { stop(); } } instance of movieClip 241 { onClipEvent (enterFrame) { this.gotoAndPlay(_root.arena); } } movieClip 244 { } movieClip 251 { frame 1 { stop(); } } movieClip 260 { frame 3 { gotoAndStop(_currentframe + 1 + random(2)); } } movieClip 262 { frame 1 { stop(); } instance of movieClip 251 { onClipEvent (load) { this.gotoAndStop(random(4)); } } frame 3 { gotoAndStop(_currentframe - 1); } frame 4 { stop(); } instance of movieClip 251 { onClipEvent (load) { this.gotoAndStop(random(4)); } } frame 6 { gotoAndStop(_currentframe - 1); } frame 7 { stop(); } instance of movieClip 251 { onClipEvent (load) { this.gotoAndStop(random(4)); } } frame 9 { gotoAndStop(_currentframe - 1); } frame 10 { stop(); } instance of movieClip 251 { onClipEvent (load) { this.gotoAndStop(random(4)); } } frame 12 { gotoAndStop(_currentframe - 1); } frame 13 { stop(); } instance of movieClip 251 { onClipEvent (load) { this.gotoAndStop(random(4)); } } frame 15 { gotoAndStop(_currentframe - 1); } } movieClip 264 { frame 1 { } frame 5 { _root.throwballs(me, 10); } frame 15 { _root.throwballs(me, 20); } frame 25 { _root.throwballs(me, 30); } frame 96 { stop(); _parent.gotoAndStop(1); } } movieClip 268 { } movieClip 270 { } movieClip 271 { frame 1 { stop(); } frame 2 { play(); this._rotation = 0; } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } frame 33 { _parent._parent.gotoAndStop(1); } } movieClip 272 { frame 3 { } frame 31 { stop(); _parent.gotoAndStop(1); } instance fb of movieClip 271 { } } movieClip 275 { } movieClip 276 { frame 1 { stop(); } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } frame 34 { stop(); _parent._parent.gotoAndStop(1); } } movieClip 278 { instance fb of movieClip 276 { } frame 28 { stop(); _parent.gotoAndStop(1); } } movieClip 281 { frame 1 { stop(); } frame 2 { play(); this._rotation = 0; } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } instance of movieClip 270 { onClipEvent (enterFrame) { _root.sparkball(this); } } frame 33 { _parent._parent.gotoAndStop(1); } } movieClip 283 { frame 34 { stop(); _parent.gotoAndStop(1); } } movieClip 284 { frame 35 { stop(); _parent.gotoAndStop(1); } } movieClip 285 { frame 1 { stop(); } frame 2 { } } movieClip 287 { } movieClip 290 { frame 90 { stop(); } } movieClip 309 { } movieClip 310 { frame 1 { stop(); } instance ball of movieClip 290 { onClipEvent (enterFrame) { _root.yarnball(this); } } frame 2 { play(); } frame 23 { stop(); removeMovieClip(this); } } movieClip 316 { } movieClip 318 { } movieClip 323 { } movieClip 324 { frame 1 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { if (walkdir == 'b') { gotoAndStop('walkback'); } else { if (walkdir == 'f') { gotoAndStop('walkfor'); } } } frame 8 { if (walkdir == 'b') { gotoAndStop('loop2'); } } frame 50 { if (walkdir == 'f') { gotoAndStop('loop'); } } frame 54 { play(); } frame 57 { walkdir = ''; gotoAndStop(1); } } movieClip 330 { frame 31 { gotoAndPlay('loop'); } frame 64 { gotoAndPlay('loop2'); } } movieClip 331 { } movieClip 336 { frame 1 { play(); } } movieClip 337 { frame 7 { stop(); } } movieClip 338 { frame 1 { } frame 3 { _root.snd.woom.play(); } frame 26 { stop(); } } movieClip 340 { frame 1 { play(); } frame 12 { if (fallstatus == 'ground') { play(); } else { gotoAndPlay(_currentframe - 1); } } frame 24 { fallstatus = 'deathtest'; } frame 66 { fallstatus = 'up'; stop(); } frame 66 { play(); } } movieClip 341 { frame 1 { play(); } frame 14 { play(); } } movieClip 342 { frame 1 { play(); } frame 44 { stop(); } } movieClip 345 { frame 5 { _root.snd.woom.play(); } frame 14 { stop(); punch = 'done'; } } movieClip 346 { frame 3 { _root.snd.woom.play(); } frame 11 { _root.snd.woom.play(); } frame 25 { stop(); } } movieClip 347 { } movieClip 348 { frame 9 { _root.snd.woom.play(); } instance of movieClip 347 { onClipEvent (enterFrame) { if (_root.dis < 300) { if (Key.isDown(37) or Key.isDown(39)) { _parent.gotoAndPlay('hit'); } } } } frame 39 { stop(); } } movieClip 349 { instance of movieClip 347 { onClipEvent (enterFrame) { if (_root.dis < 300) { if (Key.isDown(37) or Key.isDown(39)) { _parent.gotoAndPlay('hit'); } } } } frame 39 { stop(); } } movieClip 351 { } movieClip 352 { frame 150 { stop(); } } movieClip 356 { frame 1 { play(); } frame 12 { if (fallstatus == 'ground') { play(); } else { gotoAndPlay(_currentframe - 1); } } frame 24 { fallstatus = 'deathtest'; } frame 51 { stop(); } } movieClip 357 { } movieClip 358 fighter1 { frame 1 { stop(); } frame 1 { stop(); } } movieClip 359 { } movieClip 360 { frame 1 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { if (walkdir == 'b') { gotoAndStop('walkback'); } else { if (walkdir == 'f') { gotoAndStop('walkfor'); } } } frame 8 { if (walkdir == 'b') { gotoAndStop('loop2'); } } frame 50 { if (walkdir == 'f') { gotoAndStop('loop'); } } frame 54 { play(); } frame 57 { walkdir = ''; gotoAndStop(1); } } movieClip 363 { frame 31 { gotoAndPlay('loop'); } frame 64 { gotoAndPlay('loop2'); } } movieClip 364 { } movieClip 367 { frame 1 { play(); } } movieClip 368 { frame 7 { stop(); } } movieClip 370 { frame 4 { _root.snd.woom.play(); } } movieClip 371 { } movieClip 375 { frame 1 { play(); } frame 2 { } frame 12 { if (fallstatus == 'ground') { play(); } else { gotoAndPlay(_currentframe - 1); } } frame 24 { fallstatus = 'deathtest'; } frame 65 { fallstatus = 'up'; stop(); } } movieClip 376 { frame 1 { play(); } frame 14 { stop(); } } movieClip 377 { frame 1 { play(); } frame 44 { stop(); } } movieClip 378 { frame 4 { _root.snd.woom.play(); } frame 17 { stop(); punch = 'done'; } } movieClip 379 { frame 3 { _root.snd.woom.play(); } frame 11 { _root.snd.woom.play(); } frame 25 { stop(); } } movieClip 380 { frame 4 { if (_parent._name == 'player') { if (Key.isDown(37) or Key.isDown(39)) { } else { _root.player_yspeed = -20; if (_root.back.player._xscale == 100) { _root.player_xspeed = 40; } else { if (_root.back.player._xscale == -100) { _root.player_xspeed = -40; } } gotoAndPlay('jump2'); } } else { if (_parent._name == 'enemy') { if (_root.enemy_xspeed == 0) { gotoAndPlay('jump'); } } } } instance of movieClip 347 { onClipEvent (enterFrame) { if (_root.dis < 200) { _parent.gotoAndPlay('jump'); } } } frame 26 { if (_parent._name == 'player') { _root.player_yspeed = -30; if (_root.player_xspeed > 0) { _root.player_xspeed = 40; } else { if (_root.player_xspeed < 0) { _root.player_xspeed = -40; } } } else { if (_parent._name == 'enemy') { _root.enemy_yspeed = -30; if (_root.enemy_xspeed > 0) { _root.enemy_xspeed = 40; } else { if (_root.enemy_xspeed < 0) { _root.enemy_xspeed = -40; } } } } } frame 27 { _root.snd.woom.play(); } instance of movieClip 347 { onClipEvent (enterFrame) { if (_parent._parent._name == 'player') { _root.player_yspeed += 2; } else { if (_parent._parent._name == 'enemy') { _root.enemy_yspeed += 2; } } } } } movieClip 381 { frame 35 { stop(); } } movieClip 382 { } movieClip 383 { } movieClip 386 { frame 1 { play(); } frame 2 { } frame 12 { if (fallstatus == 'ground') { play(); } else { gotoAndPlay(_currentframe - 1); } } frame 24 { fallstatus = 'deathtest'; } frame 52 { stop(); } } movieClip 387 { } movieClip 388 { } movieClip 389 fighter2 { frame 1 { stop(); } frame 1 { stop(); } } movieClip 390 { } movieClip 391 { frame 1 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { if (walkdir == 'b') { gotoAndStop('walkback'); } else { if (walkdir == 'f') { gotoAndStop('walkfor'); } } } frame 8 { if (walkdir == 'b') { gotoAndStop('loop2'); } } frame 50 { if (walkdir == 'f') { gotoAndStop('loop'); } } frame 54 { play(); } frame 57 { walkdir = ''; gotoAndStop(1); } } movieClip 392 { frame 31 { gotoAndPlay('loop'); } frame 64 { gotoAndPlay('loop2'); } } movieClip 393 { } movieClip 395 { frame 1 { play(); } } movieClip 396 { frame 7 { stop(); } } movieClip 397 { frame 1 { } frame 3 { _root.snd.woom.play(); } frame 26 { } } movieClip 398 { frame 12 { if (fallstatus == 'ground') { play(); } else { gotoAndPlay(_currentframe - 1); } } frame 24 { fallstatus = 'deathtest'; } frame 66 { fallstatus = 'up'; stop(); } } movieClip 399 { } movieClip 400 { frame 44 { stop(); } } movieClip 403 { frame 2 { _root.snd.woom.play(); } frame 18 { stop(); punch = 'done'; } } movieClip 404 { frame 2 { _root.snd.woom.play(); } } movieClip 405 { frame 10 { _root.snd.woom.play(); } instance of movieClip 347 { onClipEvent (enterFrame) { if (_root.dis < 300) { if (Key.isDown(37) or Key.isDown(39)) { _parent.gotoAndPlay('hit'); } } } } } movieClip 406 { } movieClip 407 { } movieClip 408 { frame 150 { stop(); } } movieClip 411 { frame 12 { trace('---' + fallstatus); if (fallstatus == 'ground') { play(); } else { gotoAndPlay(_currentframe - 1); } } frame 54 { stop(); } } movieClip 412 { frame 39 { gotoAndPlay('loop'); } } movieClip 413 fighter3 { frame 1 { stop(); } frame 1 { stop(); } } movieClip 414 { } movieClip 415 { frame 1 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { if (walkdir == 'b') { gotoAndStop('walkback'); } else { if (walkdir == 'f') { gotoAndStop('walkfor'); } } } frame 8 { if (walkdir == 'b') { gotoAndStop('loop2'); } } frame 50 { if (walkdir == 'f') { gotoAndStop('loop'); } } frame 54 { play(); } frame 57 { walkdir = ''; gotoAndStop(1); } } movieClip 418 { frame 31 { gotoAndPlay('loop'); } frame 64 { gotoAndPlay('loop2'); } } movieClip 419 { } movieClip 421 { frame 1 { play(); } } movieClip 422 { frame 7 { stop(); } } movieClip 423 { frame 1 { stop(); } frame 1 { play(); } frame 4 { _root.snd.woom.play(); } frame 23 { stop(); } } movieClip 424 { frame 12 { if (fallstatus == 'ground') { play(); } else { gotoAndPlay(_currentframe - 1); } } frame 24 { fallstatus = 'deathtest'; } frame 65 { fallstatus = 'up'; stop(); } } movieClip 425 { } movieClip 428 { frame 44 { stop(); } } movieClip 429 { frame 7 { _root.snd.woom.play(); } frame 15 { stop(); punch = 'done'; } } movieClip 430 { frame 3 { _root.snd.woom.play(); } frame 11 { _root.snd.woom.play(); } frame 25 { stop(); } } movieClip 431 { frame 10 { _root.snd.woom.play(); if (_parent._name == 'player') { if (_root.back.player._xscale == 100) { if (Key.isDown(39)) { _root.player_xspeed = 35; } else { gotoAndPlay('jump'); } } else { if (_root.back.player._xscale == -100) { if (Key.isDown(37)) { _root.player_xspeed = -35; } else { gotoAndPlay('jump'); } } } } else { if (_parent._name == 'enemy') { if (_root.back.enemy._xscale == 100) { _root.enemy_xspeed = 50; } else { if (_root.back.enemy._xscale == -100) { _root.enemy_xspeed = -50; } } } } } instance of movieClip 347 { onClipEvent (enterFrame) { if (_root.dis < 200) { trace('ass'); _parent.gotoAndPlay('jump'); } } } frame 29 { if (_parent._name == 'enemy') { _root.enemy_yspeed = -40; } else { if (_parent._name == 'player') { _root.player_yspeed = -40; } } if (_root.back.player._xscale == 100) { if (Key.isDown(39)) { _root.player_xspeed = 35; } } else { if (_root.back.player._xscale == -100) { if (Key.isDown(37)) { _root.player_xspeed = -35; } } } } frame 40 { _root.snd.woom.play(); } instance of movieClip 347 { onClipEvent (enterFrame) { if (_parent._parent._name == 'player') { _root.player_yspeed += 2; } else { if (_parent._parent._name == 'enemy') { _root.enemy_yspeed += 2; } } } } } movieClip 435 { frame 23 { stop(); } } movieClip 436 { } movieClip 437 { frame 150 { stop(); } } movieClip 441 { frame 12 { if (fallstatus == 'ground') { play(); } else { gotoAndPlay(_currentframe - 1); } } frame 24 { fallstatus = 'deathtest'; } frame 51 { stop(); } } movieClip 442 { frame 127 { stop(); } } movieClip 443 fighter4 { frame 1 { stop(); } frame 1 { stop(); } } movieClip 444 { frame 1 { stop(); } instance of movieClip 244 { onClipEvent (enterFrame) { this._x = _parent.player._x; this._y = _root.bot; } } instance of movieClip 244 { onClipEvent (enterFrame) { this._x = _parent.enemy._x; this._y = _root.bot; } } instance blooddrop of movieClip 262 { onClipEvent (enterFrame) { _root.bloodmovement(this); } } instance player_fireball of movieClip 285 { onClipEvent (enterFrame) { this.en.you = 'enemy'; this.en.me = 'player'; } } instance enemy_fireball of movieClip 285 { onClipEvent (enterFrame) { this.en.you = 'player'; this.en.me = 'enemy'; } } instance yarnball of movieClip 310 { onClipEvent (enterFrame) { _root.yarnball(this); } } frame 2 { _root.crowd.crowd.setVolume(5); } instance of movieClip 316 { onClipEvent (load) { this.swapDepths(10001); } onClipEvent (enterFrame) { _root.unloader(this); } } instance of movieClip 318 { onClipEvent (load) { this.swapDepths(10002); } onClipEvent (enterFrame) { _root.unloader(this); } } frame 3 { _root.crowd.crowd.setVolume(50); } instance of movieClip 443 fighter4 { onClipEvent (enterFrame) { if (_root.ropeframe >= 18) { _root.ropeframe = 1; } else { ++_root.ropeframe; } } } } button 446 { on (release) { _root.fader.play(); _root.fader.dest = 'open'; _root.fader.crowdfix = true; } } movieClip 456 { } movieClip 457 { } movieClip 458 { } instance playerbar of movieClip 458 { onClipEvent (enterFrame) { curlife = _root.player_life; curlife2 = curlife * 356 / _root.maxlife; if (curlife2 <= 0 & curlife != undefined) { this.life._width = 0; } if (this.life._width > curlife2) { dif = this.life._width - curlife2; this.life._width -= dif / 25; if (dif < 0.2) { this.life._width = curlife2; } } } } instance enemybar of movieClip 458 { onClipEvent (enterFrame) { curlife = _root.enemy_life; curlife2 = curlife * 356 / _root.maxlife; if (curlife2 <= 0 & curlife != undefined) { this.life._width = 0; } if (this.life._width > curlife2) { dif = this.life._width - curlife2; this.life._width -= dif / 25; if (dif < 0.2) { this.life._width = curlife2; } } } } movieClip 462 { } instance of movieClip 462 { onClipEvent (enterFrame) { total_time = getTimer(); cur_time = total_time - mark_time; if (cur_time > 1000) { mark_time = total_time; this.fp = this._currentframe; a = 45; if ((fp / a) * 100 < 100) { this.afps = (fp / a) * 100; } else { this.afps = 100; } this.gotoAndPlay(1); } _root.gamespeed = int(this.afps); } onClipEvent (load) { mark_time = getTimer(); } } movieClip 467 { frame 1 { stop(); } } instance of movieClip 467 { onClipEvent (enterFrame) { this.gotoAndStop(_root.player_charnum); } } movieClip 472 { frame 1 { stop(); } } instance of movieClip 472 { onClipEvent (enterFrame) { this.gotoAndStop(_root.enemy_charnum); } } movieClip 479 { frame 1 { stop(); } } instance of movieClip 479 { onClipEvent (enterFrame) { this.gotoAndStop(_root.roundnum); } } movieClip 482 { } movieClip 483 { frame 1 { stop(); } } instance of movieClip 483 { onClipEvent (enterFrame) { this.gotoAndPlay(_root.player_roundswon + 1); } } instance of movieClip 483 { onClipEvent (enterFrame) { this.gotoAndPlay(_root.enemy_roundswon + 1); } } movieClip 486 { frame 1 { stop(); } } instance of movieClip 486 { onClipEvent (enterFrame) { if (_root.back.player._x < _root.back.enemy._x) { if (Key.isDown(39)) { this.play(); if (firstkeyup == true) { secondkeyup = true; } else { secondkeyup = false; } } if (Key.isDown(68) & secondkeyup == true & this._currentframe > 1) { _root.fb_seq = true; trace('fb'); secondkeyup = false; firstkeyup = false; } if (this._currentframe > 1) { if (Key.isDown(39) == false) { firstkeyup = true; } } else { _root.fb_seq = false; secondkeyup = false; firstkeyup = false; } } else { if (Key.isDown(37)) { this.play(); if (firstkeyup == true) { secondkeyup = true; } else { secondkeyup = false; } } if (Key.isDown(68) & secondkeyup == true & this._currentframe > 1) { _root.fb_seq = true; trace('fb'); secondkeyup = false; firstkeyup = false; } if (this._currentframe > 1) { if (Key.isDown(37) == false) { firstkeyup = true; } } else { _root.fb_seq = false; secondkeyup = false; firstkeyup = false; } } } } button 488 { on (keyPress '2') { _root.back.gotoAndStop(2); } on (keyPress '3') { _root.back.gotoAndStop(3); } } movieClip 491 { frame 1 { stop(); } } movieClip 493 { frame 1 { stop(); } } movieClip 495 { frame 1 { stop(); } } movieClip 497 { frame 1 { stop(); } } movieClip 499 { frame 1 { stop(); } } movieClip 504 { frame 1 { stop(); } frame 2 { gotoAndPlay('davey'); } frame 3 { gotoAndPlay('geoff'); } frame 4 { gotoAndPlay('fatmike'); } frame 5 { gotoAndPlay('spencer'); } frame 8 { gotoAndStop(1); } frame 11 { gotoAndStop(1); } frame 14 { gotoAndStop(1); } frame 17 { gotoAndStop(1); } } movieClip 507 { frame 1 { stop(); } } movieClip 511 { frame 1 { stop(); } frame 3 { stop(); } } movieClip 513 { frame 1 { stop(); } } movieClip 515 { frame 1 { stop(); } } movieClip 516 { frame 1 { stop(); } } movieClip 518 { frame 1 { stop(); } } movieClip 519 { frame 1 { stop(); } instance enemy_scream of movieClip 516 { onClipEvent (enterFrame) { this.gotoAndStop(_root.enemy_charnum); } } instance player_scream of movieClip 516 { onClipEvent (enterFrame) { this.gotoAndStop(_root.player_charnum); } } } instance snd of movieClip 519 { } movieClip 524 { frame 1 { stop(); } frame 133 { stop(); } } movieClip 530 { } movieClip 533 { frame 26 { stop(); } } button 538 { on (release) { _root.fader.dest = 'open'; _root.fader.play(); } } button 541 { on (release) { _root.doMenu(1); } } button 544 { on (press) { _root.doLink(); } } button 545 { on (press) { _root.doLink(); } } movieClip 550 { } button 552 { on (release) { if (_root.score > 0) { _root.doMenu(2); } } } movieClip 554 { } movieClip 555 { frame 1 { stop(); completed = false; } frame 109 { if (_root.player_life > _root.enemy_life) { winner = _root.player_charnum + 1; } else { winner = _root.enemy_charnum + 1; } _root.snd.winner.gotoAndStop(winner); } frame 135 { lifebonus = _root.player_life * 100; if (_root.player_life == 500) { _root.score += 750000; } else { _root.score += lifebonus; } bonus_display = 'BONUS: ' + lifebonus; } instance of movieClip 530 { onClipEvent (load) { if (_root.player_life == 500) { this._alpha = 100; } else { this._alpha = 0; } } } frame 246 { stop(); completed = true; } frame 341 { if (_root.player_life > _root.enemy_life) { winner = _root.player_charnum + 1; } else { winner = _root.enemy_charnum + 1; } _root.snd.winner.gotoAndStop(winner); } frame 431 { stop(); completed = true; } frame 432 { bonus_display = 'Final Score - ' + _root.score; } frame 433 { bonus_display = 'Final Score - ' + _root.score; } instance read of movieClip 554 { onClipEvent (enterFrame) { if (_root.score == 0) { this._visible = false; } } } } movieClip 557 { } frame 10 { this._quality = 'BEST'; } movieClip 558 { } movieClip 559 { } button 570 { on (press) { _parent.addInitial('A'); } } button 571 { on (press) { _parent.addInitial('B'); } } button 572 { on (press) { _parent.addInitial('C'); } } button 573 { on (press) { _parent.addInitial('D'); } } button 574 { on (press) { _parent.addInitial('E'); } } button 575 { on (press) { _parent.addInitial('F'); } } button 576 { on (press) { _parent.addInitial('G'); } } button 577 { on (press) { _parent.addInitial('H'); } } button 578 { on (press) { _parent.addInitial('I'); } } button 579 { on (press) { _parent.addInitial('J'); } } button 580 { on (press) { _parent.addInitial('K'); } } button 581 { on (press) { _parent.addInitial('L'); } } button 582 { on (press) { _parent.addInitial('M'); } } button 583 { on (press) { _parent.addInitial('N'); } } button 584 { on (press) { _parent.addInitial('O'); } } button 585 { on (press) { _parent.addInitial('P'); } } button 586 { on (press) { _parent.addInitial('Q'); } } button 587 { on (press) { _parent.addInitial('R'); } } button 588 { on (press) { _parent.addInitial('S'); } } button 589 { on (press) { _parent.addInitial('T'); } } button 590 { on (press) { _parent.addInitial('U'); } } button 591 { on (press) { _parent.addInitial('V'); } } button 592 { on (press) { _parent.addInitial('W'); } } button 593 { on (press) { _parent.addInitial('X'); } } button 594 { on (press) { _parent.addInitial('Y'); } } button 595 { on (press) { _parent.addInitial('Z'); } } button 596 { on (press) { _parent.deleteInitial(); } } movieClip 598 { } movieClip 625 { } movieClip 626 { } movieClip 627 { frame 1 { function addInitial(l) { initials += l; if (initials.length > 2) { gotoAndPlay('HighScores'); } } function deleteInitial() { cutlength = initials.length - 1; if (cutlength < 1) { initials = ''; } else { initials = initials.substring(0, cutlength); } } initials = ''; ichar = 0; gScore = _root.score; if (_root.enterscore != true) { gotoAndPlay('HighScores'); } } frame 10 { stop(); } frame 13 { eof = 0; loadVariables('highscores.asp', this, 'POST'); } frame 30 { if (eof == 0) { gotoAndPlay(_currentframe - 1); } } frame 63 { stop(); } } movieClip 630 { } button 633 { on (press) { doLink(); } } button 634 { on (release) { _root.fader.play(); _root.fader.dest = 'open'; _root.fader.crowdfix = true; } } frame 11 { this._quality = 'BEST'; } movieClip 635 { } movieClip 636 { } movieClip 637 { frame 1 { function fDupPaper() { ++vDupNum; duplicateMovieClip(mPaper1, 'mPaper' + vDupNum, vDupNum); vColor = Math.round(Math.random() * 2); if (vColor == 1) { var v1 = new Color('mPaper' + vDupNum); v1.setRGB(16777062); } } vTotal = 700; vWidth = 4; vQty = 150; vStageWidth = 800; vStageHeight = 440; vDupNum = 1; while (vDupNum <= vQty) { fDupPaper(); ++vDupNum; } mPaper1.vLanded = 1; stop(); } instance mPaper1 of movieClip 636 { onClipEvent (enterFrame) { if (vRestart != 1 && _parent.vStopPaper != 1) { vRestart = 1; this._x = Math.round(Math.random() * _parent.vStageWidth); vScale = Math.round(Math.random() * 40) + 80; this._xscale = vScale; this._yscale = vScale; this._alpha = vScale - 20; vCount = 0; vDegrees = 0; vStart = Math.round(Math.random() * 50); vSpeed = Math.round(vScale / 100 + 0.5) * 2; vSway = Math.round(Math.random() * 20); vCenter = this._x - Math.round(Math.random() * 20); vStick = _parent.vStageHeight - Math.round(Math.random() * 40); vRotate = Math.round(Math.random() * -5) - 3; if (Math.round(Math.random() * 2) == 1) { vRotate *= -1; } vSpinSpeed = Math.round(Math.random() * 2) + 1; if (vSpinSpeed == 1) { vSpinSpeed = 0.5; } else { if (vSpinSpeed == 2) { vSpinSpeed = 1; } else { vSpinSpeed = 1.5; } } } if (vCount != vStart) { ++vCount; } else { if (vLanded != 1) { vAngle = vDegrees * 0.0174532925199433; vDegrees += vSpeed; vPosX = vSway * Math.cos(vAngle); xPosZ = vSway * Math.sin(vAngle); this._x = vPosX + vCenter; this._y += vSpeed; this._rotation += vRotate; if (vSpin != 1) { this.mPiece._width += vSpinSpeed; } else { this.mPiece._width -= vSpinSpeed; } if (this.mPiece._width < 1) { vSpin = 0; } else { if (this.mPiece._width > _parent.vWidth) { vSpin = 1; } } if (this._y > vStick && this._xscale < 100) { vLanded = 1; this._alpha -= 10; this.mPiece._width = Math.round(Math.random() * 2) + 1; this._rotation = Math.random() * 20 + 260; if (_parent.vDupNum < _parent.vTotal) { _parent.fDupPaper(); } } if (this._y >= _parent.vStageHeight + 10) { vRestart = 0; } } } } } frame 5 { stop(); } } movieClip 638 { } button 656 { on (press) { if (checkSendForm() == true) { gotoAndPlay('FoldPaper'); } } } button 674 { on (press) { friendname = ''; friendemail = ''; gotoAndStop(1); } } movieClip 675 { frame 1 { function isValidEmail(e) { l = e.indexOf('@'); d = e.indexOf('.', l); if (l > 1 && d > 1 && e.length > 5) { return true; } else { return false; } } function checkSendForm() { out = ''; if (isValidEmail(friendemail) == false) { out = 'Please Enter Friend\'s E-Mail'; } if (friendname.length < 2) { out = 'Please Enter Friend\'s Name'; } if (isValidEmail(youremail) == false) { out = 'Please Enter Your E-Mail Address'; } if (yourname.length < 2) { out = 'Please Enter Your Name'; } if (out == '') { return true; } else { return false; } } stop(); } instance of movieClip 443 fighter4 { onClipEvent (enterFrame) { if (_root.ropeframe >= 18) { _root.ropeframe = 1; } else { ++_root.ropeframe; } } } frame 60 { stop(); } frame 82 { function capString(str) { wordlist = str.split(' '); res = ''; a = 0; while (a < wordlist.length) { spacer = a < wordlist.length - 1 ? ' ' : ''; res = res + capWord(wordlist[a]) + spacer; ++a; } return res; } function capWord(w) { w = w.toLowerCase(); startword = (w.substr(0, 1)).toUpperCase(); endword = w.substr(1, length(w)); return startword + endword; } function sumbitsendToFriend(sender, senderemail, fname, email) { thisURL = 'sendmessage.asp'; var v7 = sender; var v1 = email; var v3 = sender; var v4 = senderemail; var v5 = 1; var v6 = 8; trace('sendEmail: ' + v1); trace('userName: ' + sender); sendDoc = new XML(); sendSource = '<message><version>' + v5 + '</version><projectID>' + v6 + '</projectID><senderEmail>' + v4 + '</senderEmail><senderFullName>' + v3 + '</senderFullName><recipientEmail>' + v1 + '</recipientEmail></message>'; sendDoc.parseXML(sendSource); confirmDoc = new XML(); confirmDoc.ignoreWhite = true; confirmDoc.onLoad = function (success) { trace('recieved: ' + success); trace(confirmDoc.toString()); gotoAndPlay('sent'); }; sendDoc.sendAndLoad(thisURL, confirmDoc); } eof = 0; yourname = capString(yourname); friendname = capString(friendname); loadVariables('email.asp', this, 'POST'); } frame 118 { if (eof == 0) { gotoAndPlay(_currentframe - 1); } } frame 135 { stop(); } } frame 12 { this._quality = 'BEST'; } button 676 { on (release) { _root.fader.dest = 'open'; _root.fader.crowdfix = true; _root.gotoAndStop('Game', 3); } } frame 16 { stop(); } frame 17 { this._quality = 'BEST'; } frame 21 { stop(); }




http://swfchan.com/6/25657/info.shtml
Created: 23/5 -2019 11:52:05 Last modified: 23/5 -2019 11:52:05 Server time: 10/05 -2024 14:02:22