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

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

Undo the End - cartoon reverse time game.swf

This is the info page for
Flash #130249

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { stop(); } // unknown tag 88 length 69 movieClip 6 { } movieClip 8 { } movieClip 11 { } button 12 { on (release) { _root.gotoAndStop('splash'); } } movieClip 15 { } movieClip 17 { } instance of movieClip 17 { onClipEvent (load) { totalFileSize = _root.getBytesTotal(); this._alpha = 0; } onClipEvent (enterFrame) { bytesLoaded = _root.getBytesLoaded(); amountLoaded = bytesLoaded / totalFileSize; percentLoaded = Math.floor(100 * amountLoaded); this._alpha = percentLoaded; _root.loadingMessage = percentLoaded + '%'; _root.loadingBytes = Math.floor(bytesLoaded / 1000) + ' kb / ' + Math.floor(totalFileSize / 1000) + ' kb'; if (amountLoaded >= 1) { _root.play_btn._x = 360; 45; _root.play_btn._y = 402; 70; _root.wait._x = -105; } } } instance of movieClip 17 { onClipEvent (load) { totalFileSize = _root.getBytesTotal(); this._alpha = 0; } onClipEvent (enterFrame) { bytesLoaded = _root.getBytesLoaded(); amountLoaded = bytesLoaded / totalFileSize; percentLoaded = Math.floor(100 * amountLoaded); this._alpha = percentLoaded; _root.loadingMessage = percentLoaded + '%'; _root.loadingBytes = Math.floor(bytesLoaded / 1000) + ' kb / ' + Math.floor(totalFileSize / 1000) + ' kb'; if (amountLoaded >= 1) { _root.play_btn._x = 360; 45; _root.play_btn._y = 402; 70; _root.wait._x = -105; } } } instance of movieClip 17 { onClipEvent (load) { totalFileSize = _root.getBytesTotal(); this._alpha = 0; } onClipEvent (enterFrame) { bytesLoaded = _root.getBytesLoaded(); amountLoaded = bytesLoaded / totalFileSize; percentLoaded = Math.floor(100 * amountLoaded); this._alpha = percentLoaded; _root.loadingMessage = percentLoaded + '%'; _root.loadingBytes = Math.floor(bytesLoaded / 1000) + ' kb / ' + Math.floor(totalFileSize / 1000) + ' kb'; if (amountLoaded >= 1) { _root.play_btn._x = 360; 45; _root.play_btn._y = 402; 70; _root.wait._x = -105; } } } movieClip 19 { } movieClip 21 { } movieClip 22 { } movieClip 25 { } movieClip 26 { } movieClip 29 { } movieClip 31 { } movieClip 33 { } movieClip 36 { } movieClip 44 { } movieClip 46 { } movieClip 48 { } movieClip 50 { } movieClip 51 { frame 93 { _root.splashes.nextFrame(); } } movieClip 76 { frame 60 { _root.gotoAndStop('menu'); } } movieClip 77 { frame 1 { stop(); } instance of movieClip 51 { onClipEvent (press) { getURL('http://www.addictinggames.com', '_blank'); } } } frame 3 { function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } __com_mochibot__('ab8acf94', this, 10301, true); } frame 3 { stopAllSounds(); rb = 0; } frame 3 { currentRespawnPoint = 0; gameSharedObject = SharedObject.getLocal('YZXGameStats'); if (gameSharedObject.data.currentRespawnPoint != undefined) { trace('ШаредОбджект уже есть, берём из него данные...'); currentRespawnPoint = gameSharedObject.data.currentRespawnPoint; } else { trace('ШаредОбджекта пока нет, записываем в него изначальные, нулевые данные...'); gameSharedObject.data.currentRespawnPoint = currentRespawnPoint; } } movieClip 79 { } movieClip 81 { } movieClip 82 { } movieClip 83 { frame 205 { gotoAndPlay(45); } } movieClip 86 { } button 91 { on (release) { _root.play_splash.play(); _root.play_btn.nextFrame(); } on (rollOver) { _root.expl.play(); _root.plane.play(); } } movieClip 93 { frame 1 { stop(); } } movieClip 96 { } button 97 { on (release) { _root.play_splash.play(); } } movieClip 100 { } button 101 { on (release) { if (_root.currentRespawnPoint == 1) { _root.gotoAndStop('l1'); } } on (release) { if (_root.currentRespawnPoint == 2) { _root.gotoAndStop('l2'); } } on (release) { if (_root.currentRespawnPoint == 3) { _root.gotoAndStop('l3'); } } on (release) { if (_root.currentRespawnPoint == 4) { _root.gotoAndStop('l4'); } } on (release) { if (_root.currentRespawnPoint == 5) { _root.gotoAndStop('l5'); } } on (release) { if (_root.currentRespawnPoint == 6) { _root.gotoAndStop('l6'); } } on (release) { if (_root.currentRespawnPoint == 7) { _root.gotoAndStop('l7'); } } on (release) { if (_root.currentRespawnPoint == 8) { _root.gotoAndStop('l8'); } } on (release) { if (_root.currentRespawnPoint == 9) { _root.gotoAndStop('l9'); } } on (release) { if (_root.currentRespawnPoint == 10) { _root.gotoAndStop('l10'); } } } movieClip 104 { } button 105 { on (release) { _root.credits.play(); } } button 122 { on (press) { getURL('http://www.addictinggames.com', '_blank'); } } movieClip 123 { } button 124 { on (press) { getURL('http://www.addictinggames.com', '_blank'); } } // unknown tag 88 length 112 movieClip 131 { } movieClip 137 { frame 1 { stop(); } instance of movieClip 131 { onClipEvent (press) { getURL('http://discofish.ru', '_blank'); } } frame 13 { stop(); } } movieClip 139 { } movieClip 140 { frame 1 { stop(); } } instance red of movieClip 140 { onClipEvent (enterFrame) { if (_root.currentRespawnPoint > 0) { this.nextFrame(); } } } movieClip 144 { frame 1 { stop(); } frame 60 { _root.gotoAndStop('scene1'); } } movieClip 156 { frame 1 { stop(); } } instance of movieClip 156 { onClipEvent (press) { _root.mute.play(); } onClipEvent (rollOver) { this.play(); } } movieClip 159 { frame 1 { stop(); } } instance of movieClip 159 { onClipEvent (rollOver) { this.play(); } onClipEvent (press) { if (_root.rb == 1) { _root.gotoAndStop('rl1'); } } onClipEvent (press) { if (_root.rb == 2) { _root.gotoAndStop('rl2'); } } onClipEvent (press) { if (_root.rb == 3) { _root.gotoAndStop('rl3'); } } onClipEvent (press) { if (_root.rb == 4) { _root.gotoAndStop('rl4'); } } onClipEvent (press) { if (_root.rb == 5) { _root.gotoAndStop('rl5'); } } onClipEvent (press) { if (_root.rb == 6) { _root.gotoAndStop('rl6'); } } } movieClip 164 { frame 1 { stop(); } } instance of movieClip 164 { onClipEvent (rollOver) { this.play(); } onClipEvent (press) { _root.gotoAndStop('menu'); _root.credits.gotoAndStop(1); } } movieClip 167 { frame 1 { globalcontrol = new Sound(); globalcontrol.setVolume(100); } frame 1 { stop(); } frame 3 { globalcontrol = new Sound(); globalcontrol.setVolume(75); } frame 6 { globalcontrol = new Sound(); globalcontrol.setVolume(50); } frame 10 { globalcontrol = new Sound(); globalcontrol.setVolume(25); } frame 14 { globalcontrol = new Sound(); globalcontrol.setVolume(0); } frame 14 { stop(); } frame 15 { globalcontrol = new Sound(); globalcontrol.setVolume(25); } frame 17 { globalcontrol = new Sound(); globalcontrol.setVolume(50); } frame 20 { globalcontrol = new Sound(); globalcontrol.setVolume(75); } frame 24 { globalcontrol = new Sound(); globalcontrol.setVolume(90); } } instance mute of movieClip 167 { onClipEvent (enterFrame) { if (Key.isDown(77)) { this.play(); } } } frame 9 { rb = 1; score = 1; } movieClip 170 { } movieClip 175 { } movieClip 177 { } movieClip 179 { } movieClip 181 { } movieClip 182 { frame 1 { _parent.addBox(this); } } movieClip 184 { } movieClip 195 { } movieClip 198 { } movieClip 202 { } movieClip 250 { } movieClip 259 { frame 290 { _root.portaleffect.play(); } frame 299 { _root.gotoAndStop('l1'); } } movieClip 272 { frame 1 { stop(); } frame 10 { gotoAndStop(1); } frame 18 { gotoAndStop(1); } } movieClip 275 { } movieClip 278 { frame 1 { stop(); } frame 15 { gotoAndPlay(2); } } movieClip 281 { frame 1 { stop(); } } frame 10 { rb = 1; } frame 10 { gameSharedObject.data.currentRespawnPoint = 1; } movieClip 287 { } movieClip 292 { frame 1 { _root.l1.mscene2_score2 = 0; } frame 1 { stop(); } frame 44 { _root.l1.mscene2_score2 = 1; } frame 45 { stop(); } } movieClip 300 { } movieClip 302 { } movieClip 316 { frame 1 { stop(); } frame 17 { stop(); } } movieClip 318 { frame 1 { _parent.addBox(this); } } movieClip 320 { } movieClip 323 { } movieClip 324 { frame 14 { stop(); } frame 20 { stop(); } } movieClip 326 { } movieClip 327 { frame 13 { stop(); } frame 18 { stop(); } } movieClip 364 { } movieClip 365 { frame 1 { stop(); } frame 10 { stop(); } frame 15 { stop(); } } movieClip 378 { } movieClip 380 { frame 1 { _visible = false; } } movieClip 405 { } movieClip 427 { frame 16 { gotoAndPlay(7); } } movieClip 460 { frame 1 { _root.dead_effect.gotoAndStop(2); } frame 29 { stop(); _root.l1.gotoAndPlay(3); _root.l2.gotoAndPlay(3); _root.l5.gotoAndPlay(3); } } movieClip 479 { frame 90 { stop(); _root.gotoAndStop('scene3_'); } } movieClip 486 { frame 1 { _root.dead_effect.gotoAndStop(2); } frame 2 { _root.l7.speedX = 0; _root.l7.jumpSpeed = 0; _root.l9.speedX = 0; _root.l9.jumpSpeed = 0; } frame 29 { stop(); _root.l6.gotoAndPlay(2); _root.l7.gotoAndPlay(3); _root.l9.gotoAndPlay(3); } } movieClip 514 { frame 13 { stop(); } } movieClip 515 { } movieClip 518 { } movieClip 522 { frame 1 { _visible = false; stop(); } frame 2 { _root.l1.speedX = 0; _root.l1.jumpSpeed = 0; _root.l1.hero.gotoAndStop(4); _root.l2.speedX = 0; _root.l2.jumpSpeed = 0; _root.l2.hero.gotoAndStop(4); _root.l5.speedX = 0; _root.l5.jumpSpeed = 0; _root.l5.hero.gotoAndStop(4); } frame 4 { _root.l6.speedX = 0; _root.l6.jumpSpeed = 0; } } movieClip 531 { instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { this.nextFrame(); } } onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { this.nextFrame(); } } onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { this.nextFrame(); } } } } movieClip 534 { } movieClip 536 { instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.gotoAndPlay(3); } } } } movieClip 537 { frame 1 { stop(); } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 536 { onClipEvent (enterFrame) { this._x -= 5; } } } movieClip 552 { frame 17 { stop(); } } movieClip 567 { frame 1 { _root.l1.mscene1_score = 0; } frame 1 { stop(); } frame 25 { stop(); _root.l1.mscene1_score = 1; } } movieClip 589 { frame 1 { stop(); } frame 2 { _root.dropdown_score = 0; } frame 18 { _root.dropdown_score = 1; } frame 18 { stop(); } } movieClip 593 { } movieClip 595 { } movieClip 597 { } movieClip 599 { } movieClip 601 { } movieClip 604 { frame 39 { _root.l1.gotoAndStop(1); _root.l2.gotoAndStop(1); _root.l4.gotoAndStop(1); _root.l5.gotoAndStop(1); _root.l7.gotoAndStop(1); _root.portaleffect.gotoAndPlay('portal2'); } } movieClip 606 { frame 1 { _parent.addBox(this); } } movieClip 607 { frame 1 { _parent.addBox(this); } } movieClip 611 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -3500; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); _root.cliptime.gotoAndStop(1); _root.laser.gotoAndStop(1); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance mscene2 of movieClip 292 { onClipEvent (enterFrame) { if (_root.l1.mscene2_score2 == 1) { this.gotoAndStop(45); _root.l1.hit2.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.tank.nextFrame(); _root.tank_sound.nextFrame(); this.gotoAndStop(3); _root.cliptime.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.laser.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.laser.gotoAndStop(1); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance hit1 of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.mscene1.play(); this.gotoAndStop(3); } } } instance hit2 of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.mscene2.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.exp1.play(); this.gotoAndStop(3); } } } instance hit4 of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.man_dropdown.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.tuts_1.play(); _root.l1.tuts_2.play(); this.gotoAndStop(3); lets_call_it_cookie = SharedObject.getLocal('YZX'); if (lets_call_it_cookie.data.score < score) { lets_call_it_cookie.data.score = score; } } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.space_tuts.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.space_tuts.play(); this.gotoAndStop(3); } } } instance mscene1 of movieClip 567 { onClipEvent (enterFrame) { if (_root.l1.mscene1_score == 1) { this.gotoAndStop(25); _root.l1.hit1.gotoAndStop(3); } } } instance man_dropdown of movieClip 589 { onClipEvent (enterFrame) { if (_root.dropdown_score == 1) { this.gotoAndStop(18); _root.l1.hit4.gotoAndStop(3); } } } frame 2 { _root.laser.gotoAndStop(1); _root.cliptime.gotoAndStop(2); } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l1.hero)) { _root.l1.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } frame 3 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 10 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); _root.dropdown_score = 0; } } movieClip 614 { frame 1 { stop(); } } movieClip 634 { frame 1 { stop(); } frame 37 { _root.l1.gotoAndStop(1); _root.l2.gotoAndStop(1); _root.l4.gotoAndStop(1); _root.l5.gotoAndStop(1); _root.l7.gotoAndStop(1); _root.portaleffect.gotoAndPlay('portal2'); } frame 38 { gotoAndStop(1); } } button 636 { on (keyPress '<Space>') { _root.l1.gotoAndStop(2); _root.l2.gotoAndStop(2); _root.l4.gotoAndStop(2); _root.l5.gotoAndStop(2); _root.l7.gotoAndStop(2); _root.l8.gotoAndStop(2); _root.l9.gotoAndStop(2); _root.timerr.play(); _root.timerr_2.play(); _root.portaleffect.play(); _root.portaleffect_2.play(); } } button 637 { on (keyPress '<Space>') { _root.gotoAndStop('scene2'); _root.portaleffect.play(); } } movieClip 638 { frame 1 { stop(); } } frame 11 { stopAllSounds(); } movieClip 729 { instance of movieClip 536 { onClipEvent (enterFrame) { this._x -= 5; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 405 { onClipEvent (enterFrame) { this._x += 8; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } instance of movieClip 534 { onClipEvent (enterFrame) { this._rotation -= 6; } } frame 114 { stopAllSounds(); } frame 115 { _root.gotoAndStop('l2'); stopAllSounds(); } } frame 12 { rb = 2; } frame 12 { gameSharedObject.data.currentRespawnPoint = 2; } movieClip 748 { frame 1 { stop(); } frame 2 { _root.tank_score = 0; } frame 14 { stop(); _root.tank_score = 1; } } movieClip 764 { frame 25 { stop(); } } movieClip 765 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 14 { _root.l2.speedX = 0; _root.l2.jumpSpeed = 0; _root.l2.hero.gotoAndStop(5); } frame 50 { stop(); } } movieClip 767 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -3500; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); _root.cliptime.gotoAndStop(1); _root.laser.gotoAndStop(1); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance tank_down of movieClip 748 { onClipEvent (enterFrame) { if (_root.tank_score == 1) { this.gotoAndStop(25); _root.l2.hit.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.l2.mscene3.play(); _root.cliptime.gotoAndStop(2); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.laser.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.laser.gotoAndStop(1); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.laser.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.laser.gotoAndStop(1); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.l2.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.l2.tank_down.play(); this.gotoAndStop(3); } } } frame 2 { _root.laser.gotoAndStop(1); _root.cliptime.gotoAndStop(2); } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.l2.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } frame 3 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 10 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); _root.tank_score = 0; } } frame 13 { rb = 3; } button 771 { on (keyPress '<Space>') { _root.scene3.scene3_score += 1; } } movieClip 774 { } movieClip 798 { frame 7 { stop(); scene3_score = 0; } instance of movieClip 774 { onClipEvent (enterFrame) { if (_root.scene3.scene3_score > 15) { _root.scene3.play(); } } } frame 105 { _root.gotoAndStop('l3'); } } movieClip 800 { frame 2 { stop(); } } frame 14 { gameSharedObject.data.currentRespawnPoint = 3; } movieClip 802 { } movieClip 807 { frame 44 { stop(); } } movieClip 808 { frame 1 { stop(); } instance of movieClip 807 { onClipEvent (enterFrame) { if (_root.l1.mscene2_score2 == 1) { this.gotoAndStop(45); _root.l1.hit2.gotoAndStop(3); } } } } movieClip 819 { } movieClip 832 { } movieClip 843 { frame 16 { gotoAndPlay(7); } } movieClip 852 { frame 1 { _root.l4.speedX = 0; _root.l4.jumpSpeed = 0; _root.dead_effect.gotoAndStop(2); } frame 25 { stop(); _root.l4.gotoAndPlay(2); } } movieClip 853 { } movieClip 856 { } movieClip 858 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -4500; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l3.hero)) { _root.l3.gotoAndPlay(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l3.hero)) { _root.l3.mscene4.nextFrame(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l3.hero)) { _root.gotoAndStop('scene4'); this.gotoAndStop(3); } } } frame 2 { _root.dead_effect.gotoAndStop(2); } frame 10 { gotoAndStop(1); _root.l3.hero._x = 2840; 8; _root.l3.hero._y = 213; } frame 10 { _root.dead_effect.gotoAndStop(1); } } movieClip 924 { frame 1 { stop(); } instance hero of movieClip 832 { onClipEvent (enterFrame) { this._x += 6; } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.scene_4.hero)) { _root.scene_4.play(); this.gotoAndStop(3); } } } frame 105 { _root.gotoAndStop('l4'); } } frame 16 { rb = 4; } frame 16 { gameSharedObject.data.currentRespawnPoint = 4; } movieClip 928 { } movieClip 930 { } movieClip 933 { } movieClip 935 { frame 1 { stop(); } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } frame 50 { gotoAndPlay(2); } } movieClip 936 { frame 1 { stop(); } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } frame 45 { gotoAndPlay(2); } } movieClip 937 { frame 1 { stop(); } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } instance of movieClip 933 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.hero.gotoAndStop(6); } } } frame 40 { gotoAndPlay(2); } } movieClip 955 { frame 1 { _root.l4.mscene1_score = 0; } frame 38 { _root.l4.mscene1_score = 1; } frame 39 { stop(); } } movieClip 957 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -2000; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); _root.cliptime.gotoAndStop(2); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.gotoAndStop('scene5'); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.gas1.play(); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.gas1.gotoAndStop(51); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.gas2.play(); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.gas2.gotoAndStop(46); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.gas3.play(); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.gas3.gotoAndStop(41); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l4.hero)) { _root.l4.gas1.stop(); _root.l4.gas2.stop(); _root.l4.gas3.stop(); } } } instance ohno of movieClip 955 { onClipEvent (enterFrame) { if (_root.l4.mscene1_score == 1) { this.gotoAndStop(38); } } } frame 2 { _root.dead_effect.gotoAndStop(2); } frame 10 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); } } button 1003 { on (keyPress '<Space>') { _root.scene_5.scene5_score += 1; } } movieClip 1006 { } movieClip 1033 { frame 1 { scene5_score = 0; } frame 1 { stopAllSounds(); } instance of movieClip 1006 { onClipEvent (enterFrame) { if (_root.scene_5.scene5_score > 20) { _root.scene_5.gotoAndPlay('run'); } } } frame 90 { gotoAndPlay(84); } frame 140 { _root.gotoAndStop('scene6'); } } movieClip 1064 { instance of movieClip 832 { onClipEvent (enterFrame) { this._x += 7; } } frame 140 { _root.gotoAndStop('l5'); } } frame 19 { rb = 5; } frame 19 { gameSharedObject.data.currentRespawnPoint = 5; } movieClip 1076 { frame 1 { stop(); } frame 44 { _root.l1.mscene2_score2 = 1; } frame 45 { stop(); } } movieClip 1081 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -3500; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); _root.cliptime.gotoAndStop(1); _root.laser.gotoAndStop(1); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.l5.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance hit2 of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.l5.mscene2.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.l5.exp1.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.laser.gotoAndStop(1); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.laser.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l2.hero)) { _root.laser.gotoAndStop(1); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.l5.exp2.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.l5.exp3.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.laser.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.gotoAndStop('scene7'); this.gotoAndStop(3); } } } instance mscene2 of movieClip 1076 { onClipEvent (enterFrame) { if (_root.l1.mscene2_score2 == 1) { this.gotoAndStop(45); _root.l1.hit2.gotoAndStop(3); } } } frame 2 { _root.laser.gotoAndStop(1); _root.cliptime.gotoAndStop(2); } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.l5.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } frame 3 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 10 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); } } movieClip 1144 { frame 1 { stopAllSounds(); } frame 175 { _root.gotoAndStop('scene8'); } } frame 21 { rb = 6; } movieClip 1147 { } movieClip 1149 { frame 1 { _parent.addBox(this); } } movieClip 1233 { frame 330 { _root.gotoAndStop('l6'); } } frame 22 { gameSharedObject.data.currentRespawnPoint = 6; } movieClip 1237 { } movieClip 1238 { frame 31 { stop(); } } movieClip 1263 { } movieClip 1286 { instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l6.hero)) { _root.l6.hero.gotoAndStop(6); this.gotoAndStop(4); } } } frame 15 { gotoAndPlay('walk'); } } movieClip 1332 { frame 1 { stop(); } frame 120 { _root.l6.speedX = 7; _root.l6.jumpSpeed = -11.9; } instance of movieClip 1286 { onClipEvent (enterFrame) { this._x += 3; } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l6.hero)) { _root.l6.hero.gotoAndStop(6); this.gotoAndStop(4); } } } instance of movieClip 1286 { onClipEvent (enterFrame) { this._x += 4; } } instance of movieClip 1286 { onClipEvent (enterFrame) { this._x += 5; } } instance of movieClip 1286 { onClipEvent (enterFrame) { this._x += 6; } } instance of movieClip 1286 { onClipEvent (enterFrame) { this._x += 7; } } frame 441 { _root.l6.speedX = 0; _root.l6.jumpSpeed = 0; } frame 641 { _root.l6.hero.gotoAndStop(7); } frame 661 { _root.goend.play(); stop(); } } movieClip 1339 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -3400; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); _root.cliptime.gotoAndStop(1); _root.laser.gotoAndStop(1); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l6.hero)) { _root.l6.monster.play(); this.gotoAndStop(4); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l6.hero)) { _root.l6.gotoAndPlay('dead1'); } } } frame 2 { _root.dead_effect.gotoAndStop(2); stopAllSounds(); } frame 10 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); _root.l6.hero._x = 3912; 65; _root.l6.hero._y = 290; } frame 12 { _root.dead_effect.gotoAndStop(2); } frame 19 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); } } movieClip 1345 { frame 1 { stop(); } frame 2 { stopAllSounds(); } frame 23 { _root.gotoAndStop('scene9'); } } button 1346 { on (keyPress '<Space>') { _root.clicks.play(); } } movieClip 1348 { frame 1 { stop(); } frame 15 { gotoAndStop(1); } } frame 23 { gotoAndStop(36); } instance of movieClip 156 { onClipEvent (press) { _root.mute.play(); } onClipEvent (rollOver) { this.play(); } } instance of movieClip 159 { onClipEvent (rollOver) { this.play(); } onClipEvent (press) { if (_root.rb == 1) { _root.gotoAndStop('rl1'); } } onClipEvent (press) { if (_root.rb == 2) { _root.gotoAndStop('rl2'); } } onClipEvent (press) { if (_root.rb == 3) { _root.gotoAndStop('rl3'); } } onClipEvent (press) { if (_root.rb == 4) { _root.gotoAndStop('rl4'); } } onClipEvent (press) { if (_root.rb == 5) { _root.gotoAndStop('rl5'); } } onClipEvent (press) { if (_root.rb == 6) { _root.gotoAndStop('rl6'); } } } instance of movieClip 164 { onClipEvent (rollOver) { this.play(); } onClipEvent (press) { _root.gotoAndStop('menu'); _root.credits.gotoAndStop(1); } } instance mute of movieClip 167 { onClipEvent (enterFrame) { if (Key.isDown(77)) { this.play(); } } } frame 30 { stopAllSounds(); _root.gotoAndStop('l1'); _root.dropdown_score = 0; } frame 31 { stopAllSounds(); _root.gotoAndStop('l2'); _root.tank_score = 0; } frame 32 { stopAllSounds(); _root.gotoAndStop('l3'); } frame 33 { stopAllSounds(); _root.gotoAndStop('l4'); } frame 34 { stopAllSounds(); _root.gotoAndStop('l5'); } frame 35 { stopAllSounds(); _root.gotoAndStop('l6'); } frame 36 { gotogotoAndStop('scene9'); } instance of movieClip 156 { onClipEvent (press) { _root.mute.play(); } onClipEvent (rollOver) { this.play(); } } instance of movieClip 159 { onClipEvent (rollOver) { this.play(); } onClipEvent (press) { if (_root.rb == 1) { _root.gotoAndStop('rl1'); } } onClipEvent (press) { if (_root.rb == 2) { _root.gotoAndStop('rl2'); } } onClipEvent (press) { if (_root.rb == 3) { _root.gotoAndStop('rl3'); } } onClipEvent (press) { if (_root.rb == 4) { _root.gotoAndStop('rl4'); } } onClipEvent (press) { if (_root.rb == 5) { _root.gotoAndStop('rl5'); } } onClipEvent (press) { if (_root.rb == 6) { _root.gotoAndStop('rl6'); } } onClipEvent (press) { if (_root.rb == 7) { _root.gotoAndStop('rl7'); } } onClipEvent (press) { if (_root.rb == 8) { _root.gotoAndStop('rl8'); } } onClipEvent (press) { if (_root.rb == 9) { _root.gotoAndStop('rl9'); } } onClipEvent (press) { if (_root.rb == 10) { _root.gotoAndStop('rl10'); } } } instance of movieClip 164 { onClipEvent (rollOver) { this.play(); } onClipEvent (press) { _root.gotoAndStop('menu'); } } instance mute of movieClip 167 { onClipEvent (enterFrame) { if (Key.isDown(77)) { this.play(); } } } frame 40 { gameSharedObject.data.currentRespawnPoint = 7; rb = 7; } movieClip 1360 { frame 298 { _root.gotoAndStop('l7'); } } movieClip 1363 { frame 2 { stop(); } } movieClip 1368 { } movieClip 1370 { } movieClip 1372 { frame 1 { _parent.addBox(this); } } movieClip 1388 { frame 1 { stop(); } frame 13 { stop(); _root.build = 1; } } movieClip 1408 { frame 1 { stop(); } frame 23 { stop(); } } movieClip 1419 { } movieClip 1420 { frame 1 { stop(); } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.hero.gotoAndStop(6); _root.cliptime.gotoAndStop(2); } } onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { _root.l9.hero.gotoAndStop(6); _root.cliptime.gotoAndStop(2); } } } } movieClip 1433 { } movieClip 1438 { } movieClip 1445 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -5430; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); _root.cliptime.gotoAndStop(1); _root.laser.gotoAndStop(1); _root.zombie_trigger = 0; _root.dead_effect.gotoAndStop(1); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7.5; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance build of movieClip 1388 { onClipEvent (enterFrame) { if (_root.build == 1) { this.gotoAndStop(13); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } onClipEvent (enterFrame) { if (this.hitTest(_root.l7.zombie)) { loadMovie('', _root.l7.zombie); } } onClipEvent (enterFrame) { if (this.hitTest(_root.l7.zombie_2)) { loadMovie('', _root.l7.zombie_2); } } onClipEvent (enterFrame) { if (this.hitTest(_root.l7.zombie_3)) { loadMovie('', _root.l7.zombie_3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.gotoAndPlay('check1'); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.build.play(); } } onClipEvent (enterFrame) { if (_root.build == 1) { this.gotoAndStop(3); } else { this.gotoAndStop(1); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.man)) { loadMovie('', _root.l7.man); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.car.play(); _root.cliptime.gotoAndStop(2); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.gotoAndStop('scene10'); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.gotoAndPlay('check2'); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.gotoAndPlay('check3'); _root.cliptime.gotoAndStop(2); } } } instance zombie of movieClip 1420 { onClipEvent (enterFrame) { this._x += 7; } onClipEvent (enterFrame) { if (this.hitTest(_root.l7.zomboe_down)) { this._y += 9; this._x -= 3; } } onClipEvent (enterFrame) { if (_root.zombie_trigger == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance zombie_2 of movieClip 1420 { onClipEvent (enterFrame) { this._x += 8; } onClipEvent (enterFrame) { if (this.hitTest(_root.l7.zomboe_down)) { this._y += 9; this._x -= 3; } } onClipEvent (enterFrame) { if (_root.zombie_trigger == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance zombie_3 of movieClip 1420 { onClipEvent (enterFrame) { this._x += 7.2; } onClipEvent (enterFrame) { if (this.hitTest(_root.l7.zomboe_down)) { this._y += 9; this._x -= 3; } } onClipEvent (enterFrame) { if (_root.zombie_trigger == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance man of movieClip 1433 { onClipEvent (enterFrame) { this._x += 9.5; } } frame 2 { _root.laser.gotoAndStop(1); _root.cliptime.gotoAndStop(2); _root.zombie_trigger = 1; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.gotoAndPlay('check3'); _root.cliptime.gotoAndStop(2); } } } frame 3 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 24 { _root.dead_effect.gotoAndStop(1); _root.build = 0; } frame 25 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); } frame 27 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 47 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); _root.l7.hero._x = 1635; 95; _root.l7.hero._y = 212; 20; } frame 49 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 68 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); _root.l7.hero._x = 4187; 85; _root.l7.hero._y = 263; 30; } frame 69 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); _root.l7.hero._x = 4187; 85; _root.l7.hero._y = 263; 30; } frame 76 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 95 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); _root.l7.hero._x = 3174; 9; _root.l7.hero._y = 290; } frame 96 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); _root.l7.hero._x = 3174; 9; _root.l7.hero._y = 290; } } movieClip 1451 { } movieClip 1453 { } movieClip 1454 { } movieClip 1455 { } movieClip 1456 { } movieClip 1473 { frame 105 { stop(); } } movieClip 1478 { frame 2 { stop(); } } movieClip 1486 { } movieClip 1493 { } movieClip 1494 { } movieClip 1496 { } movieClip 1497 { } movieClip 1508 { frame 563 { stop(); _root.scene_10.gotoAndPlay('crash'); } } movieClip 1606 { frame 10 { gotoAndPlay(1); } instance of movieClip 405 { onClipEvent (enterFrame) { this._x += 8; } } frame 235 { _root.gotoAndStop('l8'); } } frame 43 { gameSharedObject.data.currentRespawnPoint = 8; rb = 8; } movieClip 1616 { frame 1 { _parent.addBox(this); _visible = false; } } movieClip 1662 { frame 46 { gotoAndPlay(11); } frame 52 { stop(); } } movieClip 1667 { frame 1 { _parent.addBox(this); _visible = false; } } movieClip 1669 { frame 1 { _parent.addBox(this); } } movieClip 1673 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -3750; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); _root.cliptime.gotoAndStop(1); _root.laser.gotoAndStop(1); _root.zombie_trigger = 0; _root.dead_effect.gotoAndStop(1); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7.5; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.l5.exp3.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l8.hero)) { _root.l8.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l8.hero)) { _root.l8.tuts.gotoAndPlay(47); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l8.hero)) { _root.gotoAndStop('l9'); this.gotoAndStop(3); } } } frame 2 { _root.laser.gotoAndStop(1); _root.cliptime.gotoAndStop(2); _root.zombie_trigger = 1; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l8.hero)) { _root.l8.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l8.hero)) { _root.gotoAndStop('l9'); this.gotoAndStop(3); } } } frame 3 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 9 { _root.dead_effect.gotoAndStop(1); _root.build = 0; } frame 10 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); } } movieClip 1674 { frame 1 { stop(); } frame 10 { gotoAndStop(1); } frame 11 { gotoAndStop(1); } frame 20 { gotoAndStop(1); } } movieClip 1675 { frame 1 { stop(); } frame 2 { _root.cliptime.gotoAndStop(2); } frame 71 { _root.l1.gotoAndStop(1); _root.l2.gotoAndStop(1); _root.l4.gotoAndStop(1); _root.l5.gotoAndStop(1); _root.l7.gotoAndStop(1); _root.l8.gotoAndStop(1); _root.l9.gotoAndStop(1); _root.portaleffect_2.gotoAndPlay('portal2'); _root.cliptime.gotoAndStop(1); } frame 72 { gotoAndStop(1); } } frame 44 { gameSharedObject.data.currentRespawnPoint = 9; rb = 9; } movieClip 1680 { frame 2 { stop(); } } movieClip 1684 { frame 1 { stop(); } } movieClip 1688 { } movieClip 1690 { } movieClip 1700 { } movieClip 1705 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -3750; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } function brighten(t, d, r) { t.d = d; t.r = r; if (t.n != undefined) { t.n = t.n; } else { t.n = 0; } t.n; t.onEnterFrame = function () { (new Color(t)).setTransform({'rb': t.n, 'bb': t.n, 'gb': t.n}); (t.n == t.d) ? delete t.onEnterFrame : t.n; t.r > 1 ? t.r-- : 1; }; } stop(); _root.cliptime.gotoAndStop(1); _root.laser.gotoAndStop(1); _root.zombie_trigger = 0; _root.dead_effect.gotoAndStop(1); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 1; var jumpSpeed = -11.9; var speedX = 7.5; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; hero.onEnterFrame = function () { brighten(this, -70, 10); }; } instance zombie of movieClip 1420 { onClipEvent (enterFrame) { this._x -= 12; } onClipEvent (enterFrame) { if (_root.zombie_trigger == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l5.hero)) { _root.l5.exp3.play(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { _root.l9.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l8.hero)) { _root.l8.tuts.gotoAndPlay(47); this.gotoAndStop(3); } } } instance ztrigger of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.zombie)) { _root.l9.zombie._x += 20; } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { loadMovie('', _root.l9.ztrigger); _root.zombie_scream.nextFrame(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { _root.gotoAndStop('scene11'); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { _root.l9.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { _root.l9.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { _root.l9.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } frame 2 { _root.laser.gotoAndStop(1); _root.cliptime.gotoAndStop(2); _root.zombie_trigger = 1; hero.onEnterFrame = function () { brighten(this, 0, 10); }; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l7.hero)) { _root.l7.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l8.hero)) { _root.l8.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } instance ztrigger of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.zombie)) { _root.l9.zombie._x += 20; } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { loadMovie('', _root.l9.ztrigger); _root.zombie_scream.nextFrame(); this.gotoAndStop(3); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { _root.gotoAndStop('scene11'); this.gotoAndStop(3); } } } frame 3 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 9 { _root.dead_effect.gotoAndStop(1); _root.build = 0; _root.zombie_trigger = 0; _root.zombie_scream.prevFrame(); } frame 10 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); } } movieClip 1817 { } movieClip 1924 { frame 555 { _root.gotoAndStop('scene12'); } } movieClip 1927 { } movieClip 1974 { } movieClip 1976 { } movieClip 1978 { } movieClip 2000 { frame 800 { _root.gotoAndStop('l10'); } } frame 47 { _root.portaleffect_2.play(); } frame 47 { gameSharedObject.data.currentRespawnPoint = 10; rb = 10; } movieClip 2008 { } movieClip 2021 { } movieClip 2046 { frame 24 { gotoAndPlay(10); } } movieClip 2047 { } movieClip 2050 { } movieClip 2054 { } movieClip 2056 { frame 1 { function addBox(obj) { boxes.push(obj); } function initLift(obj, sp, dist) { obj.y0 = obj._y; obj.y9 = obj.y0 - dist; obj._y = obj.y0 - Math.random() * dist; obj.speed = sp; obj.step = function () { this._y += this.speed * 0.5; if (this._y > this.y0 || this._y < this.y9) { this.speed *= -1; } }; lifts.push(obj); } function addBonus(obj) { bonuses.push(obj); } function initEnemy(obj, dist) { obj.stop(); obj.x0 = obj._x; obj.x9 = obj.x0 + dist; obj._x = obj.x0 + Math.random() * dist; obj.speed = 3; if (Math.random() < 0.5) { obj.speed *= -1; obj._xscale *= -1; } obj.step = function () { if (this._currentframe == 1) { this._x += this.speed; if (this._x < this.x0 || this._x > this.x9) { obj.speed *= -1; obj._xscale *= -1; if (this._x < this.x0) { this._x = this.x0; } else { this._x = this.x9; } } var v2 = this._x - hero._x; var v3 = this._y - hero._y; if (Math.abs(v2) < 70 && Math.abs(v3) < 30) { this.gotoAndStop(2); if (v2 < 0) { this._xscale = 100; this.speed = Math.abs(this.speed); } else { this._xscale = -100; this.speed = -Math.abs(this.speed); } } } }; enemies.push(obj); } function checkEnemyHit(tgt) { if (hero.man.body.hitTest(tgt)) { shoot = false; hero.gotoAndStop(4); } } function stepHero() { if (!shoot) { if (Key.isDown(37)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(39)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } if (!shoot) { if (Key.isDown(65)) { hero._xscale = -100; hero._x -= jump ? speedX * 0.8 : speedX; } else { if (Key.isDown(68)) { hero._xscale = 100; hero._x += jump ? speedX * 0.8 : speedX; } } } speedY += grav; speedY = speedY > maxSpeedY ? maxSpeedY : speedY; hero._y += speedY; checkHitPlatform(); jump = (speedY < 5 && speedY > 1) ? true : jump; if (!shoot && hero._currentframe < 4) { if (jump) { hero.gotoAndStop(3); } else { if (oldX != hero._x) { hero.gotoAndStop(2); } else { if (hero._currentframe < 4) { hero.gotoAndStop(1); } } } } oldX = hero._x; } function checkHitPlatform() { var v2 = boxes.length; while (v2--) { var v1 = boxes[v2]; if (v1.hitTest(hero.p1)) { if (hero._xscale > 0) { hero._x = v1._x - v1._width / 2 - hhx; } else { hero._x = v1._x + v1._width / 2 + hhx; } } else { if (v1.hitTest(hero.p2)) { jump = false; speedY = 0; hero._y = v1._y - v1._height / 2 - hhy; } else { if (v1.hitTest(hero.p3)) { if (hero._xscale > 0) { hero._x = v1._x + v1._width / 2 + hhx; } else { hero._x = v1._x - v1._width / 2 - hhx; } } else { if (v1.hitTest(hero.p4)) { speedY = 0; hero._y = v1._y + v1._height / 2 + hhy; if (v1.speed > 0) { hero._y += v1.speed; } } } } } } } function checkHeroHit(tgt) { var v2 = enemies.length; while (v2--) { var v1 = enemies[v2]; if (v1.man.head.hitTest(tgt)) { v1.gotoAndStop(3); } } } function updateCamera() { var v2 = -1; var v4 = -3750; var v1 = 135; var v3 = 73; var v5 = 363.3333333333333; var v6 = 200; _x = -hero._x + v5; _y = -hero._y + v6; _x = _x > v2 ? v2 : (_x < v4 ? v4 : _x); _y = _y > v1 ? v1 : (_y < v3 ? v3 : _y); } stop(); _root.cliptime.gotoAndStop(1); _root.laser.gotoAndStop(1); _root.zombie_trigger = 0; _root.dead_effect.gotoAndStop(1); var boxes = []; var lifts = []; var bonuses = []; var enemies = []; var grav = 0.1; var jumpSpeed = -5; var speedX = 5; var speedY = 0; var maxSpeedY = 14; var hhx = (hero.p1._x - hero.p3._x + hero.p1._width / 2 + hero.p3._width / 2) / 2; var hhy = (hero.p2._y - hero.p4._y + hero.p2._height / 2 + hero.p4._height / 2) / 2; var jump = false; var shoot = false; Key.addListener(this); onKeyDown = function () { if (Key.isDown(38) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown(87) && !jump && !shoot) { jump = true; speedY = jumpSpeed; } if (Key.isDown() && !jump && !shoot) { shoot = true; hero.gotoAndStop(1); hero.man.body.gotoAndPlay(2); } }; onEnterFrame = function () { var v2 = lifts.length; while (v2--) { var v5 = lifts[v2]; v5.step(); } v2 = enemies.length; while (v2--) { var v6 = enemies[v2]; v6.step(); } stepHero(); v2 = bonuses.length; while (v2--) { var v1 = bonuses[v2]; var v4 = hero._x - v1._x; var v3 = hero._y - v1._y; if (Math.abs(v4) < 40 && Math.abs(v3) < 40) { bonuses.splice(v2, 1); v1.play(); } } updateCamera(); }; } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l10.hero)) { _root.gotoAndStop('scene13'); } } } instance of movieClip 522 { onClipEvent (enterFrame) { if (this.hitTest(_root.l9.hero)) { _root.l9.gotoAndPlay(3); _root.cliptime.gotoAndStop(2); } } } frame 2 { _root.l1.mscene1_score = 0; _root.l1.mscene2_score2 = 0; _root.dead_effect.gotoAndStop(2); } frame 8 { _root.dead_effect.gotoAndStop(1); _root.build = 0; _root.zombie_trigger = 0; _root.zombie_scream.prevFrame(); } frame 9 { gotoAndStop(1); _root.dead_effect.gotoAndStop(1); } } frame 48 { stopAllSounds(); } movieClip 2093 { } movieClip 2094 { } movieClip 2095 { } movieClip 2118 { frame 200 { _root.gotoAndStop('end'); } } frame 49 { gameSharedObject.data.currentRespawnPoint = 0; } movieClip 2128 { } movieClip 2144 { } movieClip 2149 { } movieClip 2150 { instance of movieClip 2149 { onClipEvent (press) { getURL('http://discofish.ru', '_blank'); } } } movieClip 2152 { } frame 55 { stopAllSounds(); _root.gotoAndStop('l7'); } frame 56 { stopAllSounds(); _root.gotoAndStop('l8'); } frame 57 { stopAllSounds(); _root.gotoAndStop('l9'); } frame 58 { stopAllSounds(); _root.gotoAndStop('l10'); }




http://swfchan.com/27/130249/info.shtml
Created: 22/2 -2019 10:04:30 Last modified: 22/2 -2019 10:04:30 Server time: 04/05 -2024 04:28:13