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

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

Mini games 2.swf

This is the info page for
Flash #46541

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


ActionScript [AS1/AS2]
Combined Code
movieClip 2 ship { } movieClip 4 smoke { } movieClip 6 tunnel { } movieClip 14 { } movieClip 16 { } movieClip 19 { } movieClip 20 Loader Component (Black) { frame 1 { Stage.showMenu = false; _parent.stop(); this._width = 360; this._height = 37; var labelTxtV; var percentTxtV; var textLabel; onEnterFrame = function () { labelText9_mc.labelText9_txt.text = textLabel; labelText9_mc._visible = labelTxtV; percentText9_mc._visible = percentTxtV; percentLoaded = int((_parent.getBytesLoaded() / _parent.getBytesTotal()) * 100); this.gotoAndStop(percentLoaded); percentText9_mc.percentText9_txt.text = percentLoaded + '%'; updateAfterEvent(); }; } frame 100 { Stage.showMenu = false; _parent.stop(); this._width = 360; this._height = 37; var labelTxtV1; var percentTxtV; var textLabel1; onEnterFrame = function () { labelText99_mc.labelText99_txt.text = textLabel1; labelText99_mc._visible = labelTxtV1; percentText9_mc._visible = percentTxtV; if (playOrStop === 'play()') { _parent.play(); } else { if (playOrStop === 'stop()') { _parent.stop(); } } updateAfterEvent(); }; } } frame 1 { function doSomething() { _root.gotoAndPlay('menu2'); } function doSomething2() { _root.gotoAndPlay('game1start'); } function doSomething4() { _root.gotoAndPlay('game3start'); } function doSomething5() { _root.gotoAndPlay('game4start'); } function doSomething6() { _root.gotoAndPlay('game5start'); } MENU = new ContextMenu(); MENU.hideBuiltInItems(); Functioned = new ContextMenuItem('Back to Menu', doSomething); Functioned2 = new ContextMenuItem('Play cloud bounce', doSomething2); Functioned4 = new ContextMenuItem('Play diving', doSomething4); Functioned5 = new ContextMenuItem('Play racing', doSomething5); Functioned6 = new ContextMenuItem('Play tennis', doSomething6); MENU.customItems.push(Functioned); MENU.customItems.push(Functioned2); MENU.customItems.push(Functioned4); MENU.customItems.push(Functioned5); MENU.customItems.push(Functioned6); _root.menu = MENU; } frame 1 { function Lbar() { if (getBytesLoaded() >= getBytesTotal()) { play(); clearInterval(LoaderInt); } fill_MC._x = (getBytesLoaded() / getBytesTotal()) * 170 + 158; txtx.text = Math.ceil((getBytesLoaded() / getBytesTotal()) * 100) + '%'; txtxtx.text = Math.ceil(getBytesLoaded() / 1000) + 'KB/' + Math.ceil(getBytesTotal() / 1000) + 'KB loaded'; if (getBytesLoaded() / 1000 >= 150) { gamestx.text = 'Loading game 2/7'; } if (getBytesLoaded() / 1000 >= 300) { gamestx.text = 'Loading game 3/7'; } if (getBytesLoaded() / 1000 >= 450) { gamestx.text = 'Loading game 4/7'; } if (getBytesLoaded() / 1000 >= 600) { gamestx.text = 'Loading game 5/7'; } if (getBytesLoaded() / 1000 >= 750) { gamestx.text = 'Loading game 6/7'; } if (getBytesLoaded() / 1000 >= 900) { gamestx.text = 'Loading game 7/7'; } } stop(); LoaderInt = setInterval(Lbar, 10); } movieClip 25 { } movieClip 34 { frame 1 { stop(); } } instance fill_MC of movieClip 34 { onClipEvent (load) { number = Math.ceil(Math.random() * 9); if (number == 1) { this.gotoAndStop(1); } if (number == 2) { this.gotoAndStop(2); } if (number == 3) { this.gotoAndStop(3); } if (number == 4) { this.gotoAndStop(4); } if (number == 5) { this.gotoAndStop(5); } if (number == 6) { this.gotoAndStop(6); } if (number == 7) { this.gotoAndStop(7); } if (number == 8) { this.gotoAndStop(8); } if (number == 9) { this.gotoAndStop(9); } } } movieClip 42 { } movieClip 46 { frame 10 { stop(); } } movieClip 950 __Packages.mx.behaviors.DepthControl { #initclip if (!_global.mx) { _global.mx = new Object(); } if (!_global.mx.behaviors) { _global.mx.behaviors = new Object(); } if (!_global.mx.behaviors.DepthControl) { var v1 = function () { super(); }; mx.behaviors.DepthControl = v1; mx.behaviors.DepthControl extends Object; var v2 = v1.prototype; v1.sendToBack = function (target) { var v2 = false; while (v2 == false) { mx.behaviors.DepthControl.sendBackward(target); v2 = target == mx.behaviors.DepthControl.getInstanceAtLowest(target._parent); } }; v1.bringToFront = function (target) { var v2 = false; while (v2 == false) { mx.behaviors.DepthControl.bringForward(target); v2 = target == mx.behaviors.DepthControl.getInstanceAtHighest(target._parent); } }; v1.sendBackward = function (target) { var v2 = mx.behaviors.DepthControl.trackDepths(target._parent); if (target != mx.behaviors.DepthControl.getInstanceAtLowest(target._parent)) { target.swapDepths(mx.behaviors.DepthControl.getInstanceLowerThan(target)); } }; v1.bringForward = function (target) { if (target != mx.behaviors.DepthControl.getInstanceAtHighest(target._parent)) { target.swapDepths(mx.behaviors.DepthControl.getInstanceHigherThan(target)); } }; v1.trackDepths = function (mcParent) { var v4 = []; for (var v5 in mcParent) { if (typeof mcParent[v5] == 'movieclip') { v4.push({'mc': mcParent[v5], 'depth': mcParent[v5].getDepth()}); } } v4.sort(mx.behaviors.DepthControl.orderFunc); return v4; }; v1.orderFunc = function (a, b) { var v2 = Number(a.depth); var v1 = Number(b.depth); if (v2 > v1) { return -1; } else { if (v1 > v2) { return 1; } else { return 0; } } }; v1.getInstanceAtLowest = function (targetParent) { var v1 = mx.behaviors.DepthControl.trackDepths(targetParent); return v1[v1.length - 1].mc; }; v1.getInstanceAtHighest = function (targetParent) { var v1 = mx.behaviors.DepthControl.trackDepths(targetParent); return v1[0].mc; }; v1.getInstanceLowerThan = function (target) { var v2 = mx.behaviors.DepthControl.trackDepths(target._parent); var v1 = 0; while (v1 < v2.length) { if (v2[v1].mc == target) { break; } ++v1; } return v2[v1 + 1].mc; }; v1.getInstanceHigherThan = function (target) { var v2 = mx.behaviors.DepthControl.trackDepths(target._parent); var v1 = 0; while (v1 < v2.length) { if (v2[v1].mc == target) { break; } ++v1; } return v2[v1 - 1].mc; }; ASSetPropFlags(mx.behaviors.DepthControl.prototype, null, 1); } #endinitclip } frame 2 { stop(); } frame 2 { maingame = SharedObject.getLocal('mydata2'); if (maingame.data.unlocked1 == undefined) { maingame.data.unlocked1 = '0'; } if (maingame.data.unlocked2 == undefined) { maingame.data.unlocked2 = '0'; } if (maingame.data.unlocked3 == undefined) { maingame.data.unlocked3 = '0'; } } movieClip 50 { } movieClip 51 { } movieClip 52 { instance of movieClip 51 { onClipEvent (release) { getURL('http://www.fun-games.co.uk', ''); } } frame 66 { _root.play(); } } movieClip 70 { frame 1 { function camControl() { parentColor.setTransform(camColor.getTransform()); var v4 = sX / this._width; var v3 = sY / this._height; _parent._x = cX - this._x * v4; _parent._y = cY - this._y * v3; _parent._xscale = 100 * v4; _parent._yscale = 100 * v3; } function resetStage() { var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; parentColor.setTransform(v2); _parent._xscale = 100; _parent._yscale = 100; _parent._x = 0; _parent._y = 0; } this._visible = false; var oldMode = Stage.scaleMode; Stage.scaleMode = 'exactFit'; var cX = Stage.width / 2; var cY = Stage.height / 2; var sX = Stage.width; var sY = Stage.height; Stage.scaleMode = oldMode; var camColor = new Color(this); var parentColor = new Color(_parent); this.onEnterFrame = camControl; camControl(); this.onUnload = resetStage; } } frame 21 { stop(); } button 72 { on (release) { play(); } on (keyPress '<Left>') { play(); } } button 77 { on (release) { play(); } } movieClip 93 { frame 8 { gotoAndPlay(1); } frame 69 { gotoAndPlay(9); } frame 127 { gotoAndPlay(70); } } button 95 { on (release) { gotoAndStop(106); } on (rollOver) { this.tvmulti.gotoAndPlay(70); } on (rollOut) { this.tvmulti.gotoAndPlay(1); } } movieClip 113 { } movieClip 120 { } movieClip 122 { frame 8 { gotoAndPlay(1); } frame 40 { gotoAndPlay(9); } frame 91 { gotoAndPlay(41); } frame 160 { gotoAndPlay(95); } frame 199 { gotoAndPlay(161); } frame 280 { gotoAndPlay(200); } } button 124 { on (release) { gotoAndStop(109); } on (rollOver) { this.tvsingle.gotoAndPlay(9); } on (rollOut) { this.tvsingle.gotoAndPlay(1); } } button 126 { on (release) { gotoAndStop(127); } on (rollOver) { this.tvsingle.gotoAndPlay(41); } on (rollOut) { this.tvsingle.gotoAndPlay(1); } } button 128 { on (release) { gotoAndStop(171); } on (rollOver) { this.tvsingle.gotoAndPlay(95); } on (rollOut) { this.tvsingle.gotoAndPlay(1); } } button 130 { on (release) { gotoAndStop(174); } on (rollOver) { this.tvsingle.gotoAndPlay(161); } on (rollOut) { this.tvsingle.gotoAndPlay(1); } } button 134 { on (release) { gotoAndPlay(62); } on (keyPress '<Right>') { gotoAndPlay(62); } } button 139 { on (release) { play(); } } button 141 { on (release) { gotoAndStop(102); } on (rollOver) { this.tvmulti.gotoAndPlay(10); } on (rollOut) { this.tvmulti.gotoAndPlay(1); } } button 143 { on (release) { gotoAndPlay(146); } on (rollOver) { this.tvsingle.gotoAndPlay(200); } on (rollOut) { this.tvsingle.gotoAndPlay(1); } } button 145 { on (release) { gotoAndStop(176); } on (rollOver) { this.tvsingle.gotoAndStop(281); } on (rollOut) { this.tvsingle.gotoAndPlay(1); } } frame 41 { stop(); } frame 61 { gotoAndStop(20); } frame 81 { stop(); } frame 101 { gotoAndStop(20); } frame 102 { stop(); } frame 102 { handyp = 0; handyt = 0; } movieClip 165 { frame 48 { stop(); } } movieClip 167 { } instance of movieClip 167 { onClipEvent (rollOver) { _alpha = 50; } onClipEvent (rollOut) { _alpha = 100; } onClipEvent (release) { _root.phandi = Number(_root.phandi) + 1; } onClipEvent (enterFrame) { if (_root.phandi < 9) { _visible = true; } else { _visible = false; } if (_root.phandi > 9) { _root.phandi = 9; } } } instance of movieClip 167 { onClipEvent (rollOver) { _alpha = 50; } onClipEvent (rollOut) { _alpha = 100; } onClipEvent (release) { _root.phandi = Number(_root.phandi) - 1; } onClipEvent (enterFrame) { if (_root.phandi > 2) { _visible = true; } else { _visible = false; } if (_root.phandi < 2) { _root.phandi = 2; } } } instance of movieClip 167 { onClipEvent (rollOver) { _alpha = 50; } onClipEvent (rollOut) { _alpha = 100; } onClipEvent (release) { _root.thandi = Number(_root.thandi) + 1; } onClipEvent (enterFrame) { if (_root.thandi < 9) { _visible = true; } else { _visible = false; } if (_root.thandi > 9) { _root.thandi = 9; } } } instance of movieClip 167 { onClipEvent (rollOver) { _alpha = 50; } onClipEvent (rollOut) { _alpha = 100; } onClipEvent (release) { _root.thandi = Number(_root.thandi) - 1; } onClipEvent (enterFrame) { if (_root.thandi > 2) { _visible = true; } else { _visible = false; } if (_root.thandi < 2) { _root.thandi = 2; } } } button 169 { on (release) { _root.score = '0'; _root.scoret = '0'; _root.falloff = '0'; gotoAndPlay(102); } on (keyPress '<Space>') { _root.score = '0'; _root.scoret = '0'; _root.falloff = '0'; gotoAndPlay(102); } } movieClip 171 { } instance of movieClip 171 { } button 175 { on (release) { gotoAndPlay(1); } } frame 103 { _quality = 'BEST'; stop(); } frame 103 { fscommand('fullscreen', true); fscommand('allowscale', true); } frame 103 { handyp = _root.phandi; handyt = _root.thandi; this.reset.useHandCursor = false; } movieClip 184 { } movieClip 186 { frame 1 { xspeed = 0; yspeed = 0; } frame 2 { if (!this.hitTest(this._parent.divingboard)) { yspeed += 1; } else { yspeed -= 30; } this._y += yspeed; if (this.hitTest(this._parent.divingboard)) { _root.boing.gotoAndPlay(2); if (Key.isDown(38)) { } } if (Key.isDown(37)) { xspeed -= 1; } if (Key.isDown(39)) { xspeed += 1; } if (xspeed > 0) { xspeed -= 0.5; } if (xspeed < 0) { xspeed += 0.5; } this._x += xspeed; if (this.hitTest(this._parent.divingboard)) { this._parent.divingboard.play(); } if (this.hitTest(this._parent.tomato)) { if (xspeed > 0) { xspeed -= xspeed * 1.5; } if (xspeed < 0) { xspeed += xspeed * _root.handyp; } } } frame 3 { gotoAndPlay(2); } } instance ball of movieClip 186 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.coin1)) { this._parent.coin1._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin2)) { this._parent.coin2._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin3)) { this._parent.coin3._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin4)) { this._parent.coin4._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin5)) { this._parent.coin5._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin6)) { this._parent.coin6._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin7)) { this._parent.coin7._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin8)) { this._parent.coin8._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin9)) { this._parent.coin9._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin10)) { this._parent.coin10._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin11)) { this._parent.coin11._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin12)) { this._parent.coin12._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin13)) { this._parent.coin13._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin14)) { this._parent.coin14._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin15)) { this._parent.coin15._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin16)) { this._parent.coin16._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin17)) { this._parent.coin17._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin18)) { this._parent.coin18._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin19)) { this._parent.coin19._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.coin20)) { this._parent.coin20._x = 10000000; _root.score = Number(_root.score) + 1; } if (this.hitTest(this._parent.floors)) { _root.falloff = Number(_root.falloff) + 1; this._x = 1000000000; } } } movieClip 188 { } movieClip 190 { } instance of movieClip 190 { onClipEvent (enterFrame) { scoretotal = _root.score + _root.scoret; if (scoretotal > 19) { _root.play(); } } } button 194 { on (release) { _root.score = '0'; _root.scoret = '0'; _root.falloff = '0'; gotoAndPlay(102); } } movieClip 196 { frame 1 { txspeed = 0; tyspeed = 0; } frame 2 { if (!this.hitTest(this._parent.divingboard)) { tyspeed += 1; } else { tyspeed -= 30; } this._y += tyspeed; if (this.hitTest(this._parent.divingboard)) { _root.boing.gotoAndPlay(2); if (Key.isDown(87)) { } } if (Key.isDown(65)) { txspeed -= 1; } if (Key.isDown(68)) { txspeed += 1; } if (txspeed > 0) { txspeed -= 0.5; } if (txspeed < 0) { txspeed += 0.5; } this._x += txspeed; if (this.hitTest(this._parent.divingboard)) { this._parent.divingboard.play(); } if (this.hitTest(this._parent.ball)) { if (txspeed > 0) { txspeed += txspeed * 2; } if (txspeed < 0) { txspeed -= txspeed * _root.handyt; } } } frame 3 { gotoAndPlay(2); } } instance tomato of movieClip 196 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.coin1)) { this._parent.coin1._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin2)) { this._parent.coin2._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin3)) { this._parent.coin3._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin4)) { this._parent.coin4._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin5)) { this._parent.coin5._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin6)) { this._parent.coin6._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin7)) { this._parent.coin7._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin8)) { this._parent.coin8._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin9)) { this._parent.coin9._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin10)) { this._parent.coin10._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin11)) { this._parent.coin11._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin12)) { this._parent.coin12._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin13)) { this._parent.coin13._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin14)) { this._parent.coin14._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin15)) { this._parent.coin15._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin16)) { this._parent.coin16._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin17)) { this._parent.coin17._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin18)) { this._parent.coin18._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin19)) { this._parent.coin19._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.coin20)) { this._parent.coin20._x += 10000000; _root.scoret = Number(_root.scoret) + 1; } if (this.hitTest(this._parent.floors)) { _root.falloff = Number(_root.falloff) + 1; this._x = 1000000000; } } } movieClip 200 { } movieClip 206 { } instance floors of movieClip 206 { onClipEvent (enterFrame) { if (_root.falloff == '2') { _root.play(); } } } instance of movieClip 70 { onClipEvent (enterFrame) { } } frame 104 { stop(); if (score > scoret) { _root.verdict = 'Potato wins'; } if (score < scoret) { _root.verdict = 'Tomato wins'; } if (score == scoret) { _root.verdict = 'Draw!'; } } button 213 { on (release) { _root.score = '0'; _root.scoret = '0'; _root.falloff = '0'; gotoAndPlay(102); } on (keyPress '<Space>') { _root.score = '0'; _root.scoret = '0'; _root.falloff = '0'; gotoAndPlay(102); } } frame 105 { } frame 106 { stop(); } movieClip 226 { } movieClip 237 { } button 239 { on (keyPress '<Space>') { gotoAndStop(107); } } movieClip 242 { } frame 107 { stop(); } frame 107 { } movieClip 244 { } instance bullet of movieClip 244 { onClipEvent (enterFrame) { this._x += 10; if (this.hitTest(this._parent.ship1)) { this._visible = false; _root.redshipcounter = Number(_root.redshipcounter) + 1; removeMovieClip(this); } if (this._x > 550) { removeMovieClip(this); } this._rotation = this._parent.ship2._rotation; } onClipEvent (keyPress 'a') { var newdepth = this._parent.getNextHighestDepth(); var newname = 'copy' + newdepth; var prevname = 'copy' + (newdepth - 1); if (this._parent[prevname] == undefined) { this._parent[prevname] = this; } this.duplicateMovieClip(newname, newdepth); this._parent[newname]._x = 40; this._parent[newname]._y = this._parent.ship2._y + 20; mx.behaviors.DepthControl.bringForward(this); } } movieClip 245 { frame 1 { yspeed = 0; friction = 0.5; } frame 2 { if (Key.isDown(38)) { yspeed += 1; } if (Key.isDown(40)) { yspeed -= 1; } this._y -= yspeed; if (yspeed > 0) { yspeed -= friction; } if (yspeed < 0) { yspeed += friction; } if (this._y < -40) { this._y = 400; } if (this._y > 440) { this._y = -40; } } frame 3 { gotoAndPlay(2); } } instance ship1 of movieClip 245 { } movieClip 246 { frame 1 { yspeed2 = 0; friction2 = 0.5; } frame 2 { if (Key.isDown(87)) { yspeed2 += 1; } if (Key.isDown(83)) { yspeed2 -= 1; } this._y -= yspeed2; if (yspeed2 > 0) { yspeed2 -= friction2; } if (yspeed2 < 0) { yspeed2 += friction2; } if (this._y < -40) { this._y = 400; } if (this._y > 440) { this._y = -40; } } frame 3 { this.gotoAndPlay(2); } } instance bullet2 of movieClip 244 { onClipEvent (enterFrame) { this._x -= 10; if (this.hitTest(this._parent.ship2)) { this._visible = false; _root.whiteshipcounter = Number(_root.whiteshipcounter) + 1; removeMovieClip(this); } if (this._x < 0) { removeMovieClip(this); } } onClipEvent (keyPress '/') { var newdepth2 = this._parent.getNextHighestDepth(); var newname2 = 'copy2' + newdepth2; var prevname2 = 'copy2' + (newdepth2 - 1); if (this._parent[prevname2] == undefined) { this._parent[prevname2] = this; } this.duplicateMovieClip(newname2, newdepth2); this._parent[newname2]._x = 510; this._parent[newname2]._y = this._parent.ship1._y + 20; } } movieClip 252 { frame 40 { stop(); } } instance of movieClip 252 { onClipEvent (enterFrame) { if (_root.whiteshipcounter > 99) { _root.play(); } if (_root.redshipcounter > 99) { _root.play(); } } } frame 108 { if (_root.whiteshipcounter < _root.redshipcounter) { this.white._y += 1000; this.red._y = 281; } stop(); } movieClip 258 { } movieClip 260 { } button 262 { on (keyPress '<Space>') { gotoAndStop(106); } } button 268 { on (keyPress '<Space>') { gotoAndPlay('first'); } } frame 110 { stop(); } movieClip 272 { } movieClip 274 { } movieClip 276 { } movieClip 277 { frame 1 { xspeed = 0; yspeed = 0; } frame 2 { if (!this.hitTest(this._parent.divingboard)) { yspeed += 1; } else { yspeed -= 10; } this._y += yspeed; if (this.hitTest(this._parent.divingboard)) { _root.boing.gotoAndPlay(2); if (Key.isDown(38)) { yspeed -= 5; } } if (Key.isDown(37)) { xspeed -= 1; } if (Key.isDown(39)) { xspeed += 1; } if (xspeed > 0) { xspeed -= 0.5; } if (xspeed < 0) { xspeed += 0.5; } this._x += xspeed; this._rotation = xspeed * 10; if (this.hitTest(this._parent.divingboard)) { this._parent.divingboard.play(); } } frame 3 { gotoAndPlay(2); } } movieClip 282 { frame 1 { stop(); } } movieClip 285 { } instance spikes of movieClip 285 { onClipEvent (enterFrame) { this._x = this._parent.camra._x - 275; } onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball.headd)) { _root.gotoAndPlay('headspike'); } } onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball.feet)) { _root.gotoAndPlay('feetspike'); } } } movieClip 287 { } instance water of movieClip 287 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball.headd)) { _root.gotoAndPlay('dive'); } } onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball.feet)) { _root.gotoAndPlay('pencil'); } } onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball.belly)) { _root.gotoAndPlay('belly'); } } } movieClip 289 { } instance of movieClip 289 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball)) { _root.gotoAndPlay('dead'); } } } instance of movieClip 289 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball)) { _root.gotoAndPlay('dead'); } } } movieClip 291 { } instance of movieClip 291 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball)) { _root.gotoAndPlay('dead'); } } } movieClip 293 { } instance of movieClip 293 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball)) { _root.gotoAndPlay('brickwall'); } } } movieClip 296 { frame 1 { stop(); } } movieClip 299 { frame 1 { stop(); } } instance camra of movieClip 70 { onClipEvent (enterFrame) { this._x = this._parent.ball._x + 175; } } movieClip 301 { } instance of movieClip 301 { onClipEvent (enterFrame) { this._parent.backbtn._x = this._parent.ball._x + 225; } } frame 114 { stop(); } movieClip 303 { } movieClip 304 { frame 58 { _root.gotoAndPlay('first'); } } frame 115 { stop(); } movieClip 306 { } movieClip 307 { frame 75 { _root.gotoAndPlay('first'); } } frame 116 { stop(); } movieClip 309 { } movieClip 310 { frame 40 { _root.gotoAndPlay('dead'); } } frame 119 { stop(); } movieClip 313 { } button 314 { on (release) { gotoAndPlay(109); } on (keyPress '<Space>') { gotoAndPlay(109); } } frame 124 { stop(); } movieClip 318 { } movieClip 319 { frame 111 { _root.gotoAndPlay('dead'); } } instance of movieClip 289 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball)) { _root.gotoAndPlay(10); } } } instance of movieClip 289 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball)) { _root.gotoAndPlay(10); } } } instance of movieClip 291 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball)) { _root.gotoAndPlay(10); } } } movieClip 322 { frame 5 { gotoAndPlay(1); } } movieClip 324 { } frame 125 { stop(); } movieClip 327 { frame 40 { stop(); } } movieClip 330 { frame 40 { stop(); } } movieClip 331 { frame 40 { _root.gotoAndPlay('dead'); } } instance of movieClip 293 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.ball)) { _root.gotoAndPlay(16); } } } frame 126 { stop(); } movieClip 332 { } movieClip 334 { frame 1 { gotoAndPlay(35); } frame 100 { _root.gotoAndPlay('dead'); } } frame 127 { stop(); } button 340 { on (release) { this.SO.play(); } } button 351 { on (release) { gotoAndPlay(131); } } button 354 { on (release) { this.raceselect.play(); } } movieClip 358 { } instance of movieClip 358 { onClipEvent (release) { } onClipEvent (enterFrame) { if (_root.pass1 == 'PIE') { this._x += 100; } } } movieClip 361 { } button 367 { on (release) { _root.gotoAndPlay('readyset'); } } movieClip 368 { frame 10 { stop(); } } movieClip 369 { frame 1 { stop(); } frame 21 { stop(); } } instance of movieClip 358 { onClipEvent (release) { } onClipEvent (enterFrame) { if (_root.pass2 == 'SUN') { this._x += 100; maingame = SharedObject.getLocal('mydata2'); maingame.data.unlocked1 = 1; maingame.flush(); } } } button 375 { on (release) { gotoAndStop(1); gotoAndStop(1); _root.gotoAndPlay('readyset50'); } } button 378 { on (release) { gotoAndStop(1); gotoAndStop(1); _root.gotoAndPlay('readyset502'); } } button 381 { on (release) { gotoAndStop(1); gotoAndStop(1); _root.gotoAndPlay('readyset503'); } } movieClip 382 { } movieClip 383 { frame 1 { stop(); } frame 10 { stop(); } frame 11 { gotoAndPlay(10); } } frame 128 { stop(); car1.code = 'player'; totalLaps = 5; acceleration = 0.5; speedDecay = 0.96; rotationStep = 6; maxSpeed = 5; backSpeed = 5; currentCheckpoint1 = 1; currentLap1 = 0; checkpoints = 2; currentLapTXT = '1/5'; } frame 128 { function step(who) { if (_root['car' + who].code == 'player') { if (this['speed' + who] > 0.3) { this['speed' + who] *= _root.speedDecay; } else { this['speed' + who] = 0; } if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) { this['speed' + who] += _root.acceleration; } if (Key.isDown(40)) { this['speed' + who] -= _root.backSpeed; } if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } this['rotation' + who] = _root['car' + who]._rotation; this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who]; this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1; _root['car' + who]._x += this['speedx' + who]; _root['car' + who]._y += this['speedy' + who]; _root['car' + who].pointLeft = {'x': -20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointLeft); _root['car' + who].pointRight = {'x': 20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointRight); _root['car' + who].pointFront = {'x': 0, 'y': -25}; _root['car' + who].localToGlobal(_root['car' + who].pointFront); _root['car' + who].pointBack = {'x': 0, 'y': 25}; _root['car' + who].localToGlobal(_root['car' + who].pointBack); this['lpx' + who] = _root['car' + who].pointLeft.x; this['lpy' + who] = _root['car' + who].pointLeft.y; this['rpx' + who] = _root['car' + who].pointRight.x; this['rpy' + who] = _root['car' + who].pointRight.y; this['fpx' + who] = _root['car' + who].pointFront.x; this['fpy' + who] = _root['car' + who].pointFront.y; this['bpx' + who] = _root['car' + who].pointBack.x; this['bpy' + who] = _root['car' + who].pointBack.y; if (_root.terrain.hitTest(this['lpx' + who], this['lpy' + who], true)) { _root['car' + who]._rotation += 5; this['speed' + who] *= 0.85; } if (_root.terrain.hitTest(this['rpx' + who], this['rpy' + who], true)) { _root['car' + who]._rotation -= 5; this['speed' + who] *= 0.85; } if (_root.terrain.hitTest(this['fpx' + who], this['fpy' + who], true)) { this['speed' + who] = -1; } if (_root.terrain.hitTest(this['bpx' + who], this['bpy' + who], true)) { this['speed' + who] = 1; } _root['shadow' + who]._x = _root['car' + who]._x - 4; _root['shadow' + who]._y = _root['car' + who]._y + 2; _root['shadow' + who]._rotation = _root['car' + who]._rotation; if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) { if (_root['currentCheckpoint' + who] == 1) { if (_root['currentLap' + who] != 0) { _root.setBestLap(); } if (_root['currentLap' + who] == _root.totalLaps) { _root.gotoAndStop('finish'); } else { ++_root['currentLap' + who]; } _root.currentLapTXT = _root['currentLap' + who] + '/10'; } ++_root['currentCheckpoint' + who]; if (_root['currentCheckpoint' + who] > _root.checkpoints) { _root['currentCheckpoint' + who] = 1; } } } if (_root['car' + who].code == 'computer') { } } function setTimes() { timeElapsed = getTimer() - _root.initialTime; milliseconds = timeElapsed; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } function setBestLap() { bestTime = getTimer() - _root.lapTime; milliseconds = bestTime; if (oldMilliseconds > milliseconds || oldMilliseconds == null) { oldMilliseconds = milliseconds; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } _root.lapTime = getTimer(); } } movieClip 386 { } instance terrain of movieClip 386 { onClipEvent (load) { this._visible = false; } } movieClip 388 { } movieClip 390 { } movieClip 391 { } movieClip 394 { } movieClip 396 { } movieClip 398 { } instance of movieClip 398 { onClipEvent (enterFrame) { blurx = xspeed; blury = yspeed; var ship_filter = new flash.filters.BlurFilter(blurx, blury, high); this._parent.car1.filters = new Array(ship_filter); } } movieClip 404 { frame 50 { _root.soundmc.engineStart.start(0, 1); _root.soundmc.engineLoop.start(0, 9999); _root.soundmc.engineLoop.setVolume(40); _root.play(); } frame 72 { stop(); } } movieClip 411 { } instance of movieClip 411 { onClipEvent (enterFrame) { this._x = this._parent.cam._x - 315; this._y = this._parent.cam._y - 245; } } movieClip 416 { } frame 129 { stop(); initialTime = getTimer(); lapTime = initialTime; } frame 129 { onEnterFrame = function () { if (secondsTXT + minutesTXT * 60 < 60) { _root.left = 59 - secondsTXT + ' seconds'; } }; } movieClip 418 { } instance stepper of movieClip 418 { onClipEvent (load) { speed1 = 0; } onClipEvent (enterFrame) { _root.setTimes(); _root.step(1); } } frame 130 { stop(); _root.timetoto = _root.totalTimeTXT; } button 422 { on (release) { _root.gotoAndPlay('readySet'); } } button 426 { on (release) { _root.gotoAndPlay('readyset'); } } button 428 { on (release) { _root.gotoAndStop('menu'); } } movieClip 430 { frame 1 { if (_root.secondsTXT + _root.minutesTXT * 60 > 59) { this.quali.text = 'Sorry! You did not qualify'; } if (_root.secondsTXT + _root.minutesTXT * 60 < 59) { this.quali.text = 'The password for 30mph is: PIE'; } } } movieClip 431 { frame 11 { stop(); } } frame 131 { stop(); car1.code = 'player'; totalLaps = 5; acceleration = 0.5; speedDecay = 0.96; rotationStep = 6; maxSpeed = 5; backSpeed = 5; currentCheckpoint1 = 1; currentLap1 = 0; checkpoints = 2; currentLapTXT = '1/5'; } frame 131 { function step(who) { if (_root['car' + who].code == 'player') { if (this['speed' + who] > 0.3) { this['speed' + who] *= _root.speedDecay; } else { this['speed' + who] = 0; } if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) { this['speed' + who] += _root.acceleration; } if (Key.isDown(40)) { this['speed' + who] -= _root.backSpeed; } if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } this['rotation' + who] = _root['car' + who]._rotation; this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who]; this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1; _root['car' + who]._x += this['speedx' + who]; _root['car' + who]._y += this['speedy' + who]; _root['car' + who].pointLeft = {'x': -20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointLeft); _root['car' + who].pointRight = {'x': 20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointRight); _root['car' + who].pointFront = {'x': 0, 'y': -25}; _root['car' + who].localToGlobal(_root['car' + who].pointFront); _root['car' + who].pointBack = {'x': 0, 'y': 25}; _root['car' + who].localToGlobal(_root['car' + who].pointBack); this['lpx' + who] = _root['car' + who].pointLeft.x; this['lpy' + who] = _root['car' + who].pointLeft.y; this['rpx' + who] = _root['car' + who].pointRight.x; this['rpy' + who] = _root['car' + who].pointRight.y; this['fpx' + who] = _root['car' + who].pointFront.x; this['fpy' + who] = _root['car' + who].pointFront.y; this['bpx' + who] = _root['car' + who].pointBack.x; this['bpy' + who] = _root['car' + who].pointBack.y; if (_root.terrain2.hitTest(this['lpx' + who], this['lpy' + who], true)) { _root['car' + who]._rotation += 5; this['speed' + who] *= 0.85; } if (_root.terrain2.hitTest(this['rpx' + who], this['rpy' + who], true)) { _root['car' + who]._rotation -= 5; this['speed' + who] *= 0.85; } if (_root.terrain2.hitTest(this['fpx' + who], this['fpy' + who], true)) { this['speed' + who] = -1; } if (_root.terrain2.hitTest(this['bpx' + who], this['bpy' + who], true)) { this['speed' + who] = 1; } _root['shadow' + who]._x = _root['car' + who]._x - 4; _root['shadow' + who]._y = _root['car' + who]._y + 2; _root['shadow' + who]._rotation = _root['car' + who]._rotation; if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) { if (_root['currentCheckpoint' + who] == 1) { if (_root['currentLap' + who] != 0) { _root.setBestLap(); } if (_root['currentLap' + who] == _root.totalLaps) { _root.gotoAndStop('finishdu'); } else { ++_root['currentLap' + who]; } _root.currentLapTXT = _root['currentLap' + who] + '/10'; } ++_root['currentCheckpoint' + who]; if (_root['currentCheckpoint' + who] > _root.checkpoints) { _root['currentCheckpoint' + who] = 1; } } } if (_root['car' + who].code == 'computer') { } } function setTimes() { timeElapsed = getTimer() - _root.initialTime; milliseconds = timeElapsed; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } function setBestLap() { bestTime = getTimer() - _root.lapTime; milliseconds = bestTime; if (oldMilliseconds > milliseconds || oldMilliseconds == null) { oldMilliseconds = milliseconds; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } _root.lapTime = getTimer(); } } movieClip 433 { } movieClip 435 { } movieClip 438 { frame 525 { gotoAndPlay(95); } } movieClip 440 { frame 434 { gotoAndPlay(53); } frame 447 { gotoAndPlay(65); } } movieClip 442 { frame 531 { gotoAndPlay(54); } frame 550 { gotoAndPlay(63); } } frame 132 { stop(); initialTime = getTimer(); lapTime = initialTime; } instance stepper of movieClip 418 { onClipEvent (load) { speed1 = 0; } onClipEvent (enterFrame) { _root.setTimes(); _root.step(1); } } frame 133 { stop(); _root.timetoto = _root.totalTimeTXT; } movieClip 449 { frame 1 { if (_root.secondsTXT + _root.minutesTXT * 60 < 67) { this.quali.text = '1st'; this.nxtrce._x = 0; } else { if (_root.secondsTXT + _root.minutesTXT * 60 < 75) { this.quali.text = '2nd'; } else { if (_root.secondsTXT + _root.minutesTXT * 60 < 84) { this.quali.text = '3rd'; } else { if (_root.secondsTXT + _root.minutesTXT * 60 > 84) { this.quali.text = '4th'; } } } } } } movieClip 450 { frame 30 { stop(); } } movieClip 455 { frame 1 { stop(); } frame 100 { stop(); } frame 101 { gotoAndStop(100); } } instance password of movieClip 455 { onClipEvent (enterFrame) { if (this._parent.carssymbol29.finish2.quali.text == '1st') { this.play(); } } } frame 134 { stop(); car1.code = 'player'; totalLaps = 5; acceleration = 0.8; speedDecay = 0.96; rotationStep = 10; maxSpeed = 10; backSpeed = 5; currentCheckpoint1 = 1; currentLap1 = 0; checkpoints = 2; currentLapTXT = '1/5'; } frame 134 { function step(who) { if (_root['car' + who].code == 'player') { if (this['speed' + who] > 0.3) { this['speed' + who] *= _root.speedDecay; } else { this['speed' + who] = 0; } if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) { this['speed' + who] += _root.acceleration; } if (Key.isDown(40)) { this['speed' + who] -= _root.backSpeed; } if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } this['rotation' + who] = _root['car' + who]._rotation; this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who]; this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1; _root['car' + who]._x += this['speedx' + who]; _root['car' + who]._y += this['speedy' + who]; _root['car' + who].pointLeft = {'x': -20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointLeft); _root['car' + who].pointRight = {'x': 20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointRight); _root['car' + who].pointFront = {'x': 0, 'y': -25}; _root['car' + who].localToGlobal(_root['car' + who].pointFront); _root['car' + who].pointBack = {'x': 0, 'y': 25}; _root['car' + who].localToGlobal(_root['car' + who].pointBack); this['lpx' + who] = _root['car' + who].pointLeft.x; this['lpy' + who] = _root['car' + who].pointLeft.y; this['rpx' + who] = _root['car' + who].pointRight.x; this['rpy' + who] = _root['car' + who].pointRight.y; this['fpx' + who] = _root['car' + who].pointFront.x; this['fpy' + who] = _root['car' + who].pointFront.y; this['bpx' + who] = _root['car' + who].pointBack.x; this['bpy' + who] = _root['car' + who].pointBack.y; if (_root.terrain.hitTest(this['lpx' + who], this['lpy' + who], true)) { _root['car' + who]._rotation += 5; this['speed' + who] *= 0.85; } if (_root.terrain.hitTest(this['rpx' + who], this['rpy' + who], true)) { _root['car' + who]._rotation -= 5; this['speed' + who] *= 0.85; } if (_root.terrain.hitTest(this['fpx' + who], this['fpy' + who], true)) { this['speed' + who] = -1; } if (_root.terrain.hitTest(this['bpx' + who], this['bpy' + who], true)) { this['speed' + who] = 1; } _root['shadow' + who]._x = _root['car' + who]._x - 4; _root['shadow' + who]._y = _root['car' + who]._y + 2; _root['shadow' + who]._rotation = _root['car' + who]._rotation; if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) { if (_root['currentCheckpoint' + who] == 1) { if (_root['currentLap' + who] != 0) { _root.setBestLap(); } if (_root['currentLap' + who] == _root.totalLaps) { _root.gotoAndStop('finish50'); } else { ++_root['currentLap' + who]; } _root.currentLapTXT = _root['currentLap' + who] + '/10'; } ++_root['currentCheckpoint' + who]; if (_root['currentCheckpoint' + who] > _root.checkpoints) { _root['currentCheckpoint' + who] = 1; } } } if (_root['car' + who].code == 'computer') { } } function setTimes() { timeElapsed = getTimer() - _root.initialTime; milliseconds = timeElapsed; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } function setBestLap() { bestTime = getTimer() - _root.lapTime; milliseconds = bestTime; if (oldMilliseconds > milliseconds || oldMilliseconds == null) { oldMilliseconds = milliseconds; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } _root.lapTime = getTimer(); } } instance terrain of movieClip 386 { onClipEvent (load) { this._visible = false; } } instance of movieClip 411 { onClipEvent (enterFrame) { this._x = this._parent.cam._x - 315; this._y = this._parent.cam._y - 245; } } frame 135 { stop(); initialTime = getTimer(); lapTime = initialTime; } instance stepper of movieClip 418 { onClipEvent (load) { speed1 = 0; } onClipEvent (enterFrame) { _root.setTimes(); _root.step(1); } } frame 136 { stop(); _root.timetoto = _root.totalTimeTXT; } movieClip 462 { frame 1 { if (_root.secondsTXT > 40) { this.quali.text = 'Sorry! You did not qualify (time limit = 40 seconds)'; } if (_root.secondsTXT < 40) { this.quali.text = 'You win!'; } } } movieClip 463 { frame 30 { stop(); } } frame 138 { stop(); car1.code = 'player'; totalLaps = 5; acceleration = 0.8; speedDecay = 0.96; rotationStep = 10; maxSpeed = 10; backSpeed = 5; currentCheckpoint1 = 1; currentLap1 = 0; checkpoints = 2; currentLapTXT = '1/5'; } frame 138 { function step(who) { if (_root['car' + who].code == 'player') { if (this['speed' + who] > 0.3) { this['speed' + who] *= _root.speedDecay; } else { this['speed' + who] = 0; } if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) { this['speed' + who] += _root.acceleration; } if (Key.isDown(40)) { this['speed' + who] -= _root.backSpeed; } if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } this['rotation' + who] = _root['car' + who]._rotation; this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who]; this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1; _root['car' + who]._x += this['speedx' + who]; _root['car' + who]._y += this['speedy' + who]; _root['car' + who].pointLeft = {'x': -20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointLeft); _root['car' + who].pointRight = {'x': 20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointRight); _root['car' + who].pointFront = {'x': 0, 'y': -25}; _root['car' + who].localToGlobal(_root['car' + who].pointFront); _root['car' + who].pointBack = {'x': 0, 'y': 25}; _root['car' + who].localToGlobal(_root['car' + who].pointBack); this['lpx' + who] = _root['car' + who].pointLeft.x; this['lpy' + who] = _root['car' + who].pointLeft.y; this['rpx' + who] = _root['car' + who].pointRight.x; this['rpy' + who] = _root['car' + who].pointRight.y; this['fpx' + who] = _root['car' + who].pointFront.x; this['fpy' + who] = _root['car' + who].pointFront.y; this['bpx' + who] = _root['car' + who].pointBack.x; this['bpy' + who] = _root['car' + who].pointBack.y; if (_root.terrain2.hitTest(this['lpx' + who], this['lpy' + who], true)) { _root['car' + who]._rotation += 5; this['speed' + who] *= 0.85; } if (_root.terrain2.hitTest(this['rpx' + who], this['rpy' + who], true)) { _root['car' + who]._rotation -= 5; this['speed' + who] *= 0.85; } if (_root.terrain2.hitTest(this['fpx' + who], this['fpy' + who], true)) { this['speed' + who] = -1; } if (_root.terrain2.hitTest(this['bpx' + who], this['bpy' + who], true)) { this['speed' + who] = 1; } _root['shadow' + who]._x = _root['car' + who]._x - 4; _root['shadow' + who]._y = _root['car' + who]._y + 2; _root['shadow' + who]._rotation = _root['car' + who]._rotation; if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) { if (_root['currentCheckpoint' + who] == 1) { if (_root['currentLap' + who] != 0) { _root.setBestLap(); } if (_root['currentLap' + who] == _root.totalLaps) { _root.gotoAndStop('finish502'); } else { ++_root['currentLap' + who]; } _root.currentLapTXT = _root['currentLap' + who] + '/10'; } ++_root['currentCheckpoint' + who]; if (_root['currentCheckpoint' + who] > _root.checkpoints) { _root['currentCheckpoint' + who] = 1; } } } if (_root['car' + who].code == 'computer') { } } function setTimes() { timeElapsed = getTimer() - _root.initialTime; milliseconds = timeElapsed; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } function setBestLap() { bestTime = getTimer() - _root.lapTime; milliseconds = bestTime; if (oldMilliseconds > milliseconds || oldMilliseconds == null) { oldMilliseconds = milliseconds; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } _root.lapTime = getTimer(); } } frame 139 { stop(); initialTime = getTimer(); lapTime = initialTime; } instance stepper of movieClip 418 { onClipEvent (load) { speed1 = 0; } onClipEvent (enterFrame) { _root.setTimes(); _root.step(1); } } frame 140 { stop(); _root.timetoto = _root.totalTimeTXT; } frame 143 { stop(); car1.code = 'player'; totalLaps = 5; acceleration = 0.8; speedDecay = 0.96; rotationStep = 10; maxSpeed = 10; backSpeed = 5; currentCheckpoint1 = 1; currentLap1 = 0; checkpoints = 2; currentLapTXT = '1/5'; } frame 143 { function step(who) { if (_root['car' + who].code == 'player') { if (this['speed' + who] > 0.3) { this['speed' + who] *= _root.speedDecay; } else { this['speed' + who] = 0; } if (Key.isDown(38) && this['speed' + who] < _root.maxSpeed) { this['speed' + who] += _root.acceleration; } if (Key.isDown(40)) { this['speed' + who] -= _root.backSpeed; } if (Key.isDown(37) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation -= _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } if (Key.isDown(39) && Math.abs(this['speed' + who]) > 0.3) { _root['car' + who]._rotation += _root.rotationStep * (this['speed' + who] / _root.maxSpeed); } this['rotation' + who] = _root['car' + who]._rotation; this['speedx' + who] = Math.sin(this['rotation' + who] * 0.0174532925199433) * this['speed' + who]; this['speedy' + who] = Math.cos(this['rotation' + who] * 0.0174532925199433) * this['speed' + who] * -1; _root['car' + who]._x += this['speedx' + who]; _root['car' + who]._y += this['speedy' + who]; _root['car' + who].pointLeft = {'x': -20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointLeft); _root['car' + who].pointRight = {'x': 20, 'y': 0}; _root['car' + who].localToGlobal(_root['car' + who].pointRight); _root['car' + who].pointFront = {'x': 0, 'y': -25}; _root['car' + who].localToGlobal(_root['car' + who].pointFront); _root['car' + who].pointBack = {'x': 0, 'y': 25}; _root['car' + who].localToGlobal(_root['car' + who].pointBack); this['lpx' + who] = _root['car' + who].pointLeft.x; this['lpy' + who] = _root['car' + who].pointLeft.y; this['rpx' + who] = _root['car' + who].pointRight.x; this['rpy' + who] = _root['car' + who].pointRight.y; this['fpx' + who] = _root['car' + who].pointFront.x; this['fpy' + who] = _root['car' + who].pointFront.y; this['bpx' + who] = _root['car' + who].pointBack.x; this['bpy' + who] = _root['car' + who].pointBack.y; if (_root.terrain3.hitTest(this['lpx' + who], this['lpy' + who], true)) { _root['car' + who]._rotation += 5; this['speed' + who] *= 0.85; } if (_root.terrain3.hitTest(this['rpx' + who], this['rpy' + who], true)) { _root['car' + who]._rotation -= 5; this['speed' + who] *= 0.85; } if (_root.terrain3.hitTest(this['fpx' + who], this['fpy' + who], true)) { this['speed' + who] = -1; } if (_root.terrain3.hitTest(this['bpx' + who], this['bpy' + who], true)) { this['speed' + who] = 1; } _root['shadow' + who]._x = _root['car' + who]._x - 4; _root['shadow' + who]._y = _root['car' + who]._y + 2; _root['shadow' + who]._rotation = _root['car' + who]._rotation; if (_root['car' + who].hitTest(_root['checkpoint' + _root['currentCheckpoint' + who]])) { if (_root['currentCheckpoint' + who] == 1) { if (_root['currentLap' + who] != 0) { _root.setBestLap(); } if (_root['currentLap' + who] == _root.totalLaps) { _root.gotoAndStop('finish503'); } else { ++_root['currentLap' + who]; } _root.currentLapTXT = _root['currentLap' + who] + '/10'; } ++_root['currentCheckpoint' + who]; if (_root['currentCheckpoint' + who] > _root.checkpoints) { _root['currentCheckpoint' + who] = 1; } } } if (_root['car' + who].code == 'computer') { } } function setTimes() { timeElapsed = getTimer() - _root.initialTime; milliseconds = timeElapsed; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.totalTimeTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } function setBestLap() { bestTime = getTimer() - _root.lapTime; milliseconds = bestTime; if (oldMilliseconds > milliseconds || oldMilliseconds == null) { oldMilliseconds = milliseconds; seconds = Math.floor(milliseconds / 1000); minutes = Math.floor(seconds / 60); minutesTXT = minutes; secondsTXT = seconds - minutes * 60; tensTXT = Math.round((milliseconds - seconds * 1000) / 10); if (minutesTXT < 10) { minutesTXT = '0' + minutesTXT; } if (secondsTXT < 10) { secondsTXT = '0' + secondsTXT; } if (tensTXT < 10) { tensTXT = '0' + tensTXT; } _root.bestLapTXT = minutesTXT + '.' + secondsTXT + '.' + tensTXT; } _root.lapTime = getTimer(); } } movieClip 467 { } movieClip 469 { } movieClip 470 { frame 208 { gotoAndPlay(65); } } movieClip 471 { frame 231 { } frame 244 { gotoAndPlay(67); } } movieClip 472 { frame 219 { gotoAndPlay(63); } } frame 144 { stop(); initialTime = getTimer(); lapTime = initialTime; } instance stepper of movieClip 418 { onClipEvent (load) { speed1 = 0; } onClipEvent (enterFrame) { _root.setTimes(); _root.step(1); } } frame 145 { stop(); _root.timetoto = _root.totalTimeTXT; } button 480 { on (release) { _root.gotoAndPlay('readyset502'); } } movieClip 481 { frame 1 { if (_root.secondsTXT < 35) { this.quali.text = '1st'; this.nxtrce._x = 0; } else { if (_root.secondsTXT < 40) { this.quali.text = '2nd'; } else { if (_root.secondsTXT < 45) { this.quali.text = '3rd'; } else { if (_root.secondsTXT > 45) { this.quali.text = '4th'; } } } } } } movieClip 482 { frame 30 { stop(); } } frame 146 { this.robot._alpha = 100; this.goalo._x = 505; } frame 146 { gotoAndStop(170); stop(); } movieClip 485 { } movieClip 488 { frame 1 { this._parent.circle.stop(); } frame 2 { duplicateMovieClip(this._parent.circle, circlecopy, 1); } frame 100 { gotoAndPlay(2); } } instance camera of movieClip 488 { onClipEvent (enterFrame) { rx = _root.robot._x; ry = _root.robot._y; cx = _root.camera._x; cy = _root.camera._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433; _rotation = angle; } } movieClip 490 { frame 1 { stop(); } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 20; this._parent.robot.yspeed = 0; } } } movieClip 492 { } movieClip 496 { } instance goalo of movieClip 496 { onClipEvent (enterFrame) { if (this._parent.robot.hitTest(this)) { _root.gotoAndStop('youwin'); } } } movieClip 498 { } instance enemy of movieClip 498 { onClipEvent (enterFrame) { if (this._parent.robot.hitTest(this._parent.area)) { if (_root.robot._x > _x) { this._x += 3; this._rotation += 5; } if (_root.robot._x < _x) { this._x -= 3; this._rotation -= 5; } if (_root.robot._y > _y) { this._y += 3; } if (_root.robot._y < _y) { this._y -= 3; } } if (this.hitTest(this._parent.robot)) { this.play(); this._x = 505; this._y = 355; this._parent.robot._x = 130; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; this._parent.robot.xspeed = 0; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } movieClip 501 { } instance of movieClip 501 { onClipEvent (enterFrame) { blurx = this._parent.robot.uspeed - this._parent.robot.dspeed; blury = this._parent.robot.lspeed - this._parent.robot.rspeed; flash.filters.BlurFilter = new flash.filters.BlurFilter(blurx, blury, high); shipfilter = flash.filters.BlurFilter; this._parent.robot.filters = new Array(shipfilter); } } movieClip 503 { frame 1 { xspeed = 0; yspeed = 0; } frame 2 { if (Key.isDown(37)) { xspeed -= 1; } if (Key.isDown(39)) { xspeed += 1; } if (Key.isDown(38)) { yspeed -= 1; } if (Key.isDown(40)) { yspeed += 1; } this._x += xspeed; this._y += yspeed; if (xspeed > 0) { xspeed -= 0.5; } if (xspeed < 0) { xspeed += 0.5; } if (yspeed > 0) { yspeed -= 0.5; } if (yspeed < 0) { yspeed += 0.5; } _rotation = _rotation + xspeed; } frame 3 { gotoAndPlay(2); } } instance goalo2 of movieClip 496 { onClipEvent (enterFrame) { if (this._parent.robot.hitTest(this)) { _root.gotoAndStop('youwin'); } } } frame 155 { startDrag(this.restart, true); } frame 155 { this.goalo._x = 1000; } frame 156 { stop(); } movieClip 507 { } instance of movieClip 507 { onClipEvent (keyPress '<Space>') { _root.gotoAndStop('level2'); } } frame 160 { this.robot._alpha = 100; this.goalo._x = 505; } frame 160 { stop(); } instance camera of movieClip 488 { onClipEvent (enterFrame) { rx = _root.robot._x; ry = _root.robot._y; cx = _root.camera._x; cy = _root.camera._y; angle = Math.atan2(ry - cy, rx - cx) / 0.0174532925199433; _rotation = angle; } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance lwall of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance goalo of movieClip 496 { onClipEvent (enterFrame) { if (this._parent.robot.hitTest(this)) { _root.gotoAndStop('youwin'); } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { _root.gotoAndStop(20); } } } instance rwall of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } instance of movieClip 490 { } instance of movieClip 490 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; } } } movieClip 521 { } instance of movieClip 521 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } instance of movieClip 521 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.robot)) { this._parent.robot._x = 27; this._parent.robot._y = 27; this._parent.robot.yspeed = 0; } } } frame 165 { gotoAndStop(160); } frame 170 { stop(); } movieClip 524 { } movieClip 526 { } button 531 { on (keyPress '<Space>') { gotoAndStop('start'); } } frame 171 { stop(); } movieClip 534 { } instance of movieClip 534 { } button 535 { on (keyPress '<Space>') { gotoAndStop('swimfirst'); } } button 536 { on (release) { gotoAndPlay(1); tunnel_movie.removeMovieClip(); ship.removeMovieClip(); } } frame 172 { this.timer.play(); _root.times.seconds2 = 0; } frame 172 { var smoke_filter = new flash.filters.GlowFilter(16711680, 0.8, 4, 4, 2, 3, false, false); gravity = 0.1; thrust = 0.25; yspeed = 0; xspeed = 5; distance = 0; smoke_interval = 1000000000; frames_passed = 10; tunnel_height = 150; engines = false; _root.attachMovie('ship', 'ship', _root.getNextHighestDepth(), {'_x': 150, '_y': 200}); _root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth()); ship.filters = new Array(ship_filter); ship.onEnterFrame = function () { if (engines) { yspeed -= thrust; smoke_interval -= 0.25; } yspeed += gravity; this._y += yspeed; angle = Math.atan2(yspeed, xspeed); this._rotation = angle * 180 / Math.PI; ++frames_passed; distance += xspeed; if (distance > 5) { step = distance - 5; wall = tunnel_movie.attachMovie('tunnel', 'tunnel' + tunnel_movie.getNextHighestDepth(), tunnel_movie.getNextHighestDepth(), {'_x': 525 - step, '_y': tunnel_height}); wall.filters = new Array(tunnel_filter); wall.onEnterFrame = function () { this._x -= xspeed; if (this._x < -25) { this.removeMovieClip(); } }; tunnel_height += Math.floor(Math.random() * 40) - 19; distance = step; } if (frames_passed >= smoke_interval) { sm = _root.attachMovie('smoke', 'smoke' + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {'_x': this._x - 2, '_y': this._y}); sm.filters = new Array(smoke_filter); sm.onEnterFrame = function () { this._x -= xspeed; this._width += 0.2; this._height += 0.2; this._alpha -= 2; if (this._alpha <= 0) { this.removeMovieClip(); } }; frames_passed = 0; } if (tunnel_movie.hitTest(this._x + 28 * Math.cos(angle), this._y + 28 * Math.sin(angle), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle + 1.570796326794897), this._y + 8 * Math.sin(angle + 1.570796326794897), true) or tunnel_movie.hitTest(this._x + 8 * Math.cos(angle - 1.570796326794897), this._y + 8 * Math.sin(angle - 1.570796326794897), true)) { _root.gotoAndStop('fini'); this.camera._y = 185; tunnel_movie.removeMovieClip(); ship.removeMovieClip(); } }; _root.onMouseDown = function () { engines = true; smoke_interval = 10; }; _root.onMouseUp = function () { engines = false; smoke_interval = 100000; }; stop(); } movieClip 539 { } instance of movieClip 539 { onClipEvent (load) { n = 0; offset = getTimer(); } onClipEvent (enterFrame) { n += 1; time = getTimer(); _root.fpstext = 1 / ((time - offset) / 1000); _root.textfield1 = time / 1000; _root.textfield2 = n; offset = time; } onClipEvent (enterFrame) { if (_root.fpstext < 39.9) { _quality = 'LOW'; } else { _quality = 'MEDIUM'; } } onClipEvent (enterFrame) { this._parent.camra._y = this._parent.ship._y; } onClipEvent (enterFrame) { this._parent.times._y = this._parent.camra._y; } } movieClip 546 { frame 2 { _root.times.seconds2 = Number(_root.times.seconds2) + 1; } } movieClip 549 { } instance times of movieClip 549 { } frame 173 { _quality = 'HIGH'; this.timer.stop(); _root.distance = 'Your Distance: ' + _root.times.seconds2; if (_root.times.seconds2 > 999) { maingame.data.unlocked2 = '1'; } } movieClip 554 { } movieClip 555 { } button 556 { on (release) { yspeed = 0; this._y = 200; tunnel_movie.removeMovieClip(); ship.removeMovieClip(); _root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth()); gotoAndStop('swimfirst'); } on (keyPress '<Space>') { yspeed = 0; this._y = 200; tunnel_movie.removeMovieClip(); ship.removeMovieClip(); _root.createEmptyMovieClip('tunnel_movie', _root.getNextHighestDepth()); gotoAndStop('swimfirst'); } } frame 174 { if (this.info._x < 500) { stop(); } } movieClip 570 { } instance of movieClip 570 { onClipEvent (enterFrame) { if (_root.secbest > 9) { this._parent.zero._y = -100; } } } button 572 { on (keyPress '<Space>') { this.info._x = 1000; gotoAndPlay(175); } } movieClip 576 { } button 577 { on (rollOver) { Mouse.show(); } on (rollOut) { Mouse.hide(); } on (release) { gotoAndPlay(1); } } frame 175 { startDrag(this.follower, true); Mouse.hide(); stop(); } movieClip 580 { frame 50 { if (_root.seconds > 59) { _root.seconds = 0; _root.minutes = Number(_root.minutes) + 1; } _root.seconds = Number(_root.seconds) + 1; if (_root.seconds < 10) { _root.seconds2 = '0' + _root.seconds; } else { _root.seconds2 = _root.seconds; } } } instance timer of movieClip 580 { onClipEvent (enterFrame) { this._parent.robot2._x = this._parent.robot._x; this._parent.robot2._y = this._parent.robot._y; } } movieClip 589 { } movieClip 593 { frame 40 { stop(); } } movieClip 596 { frame 40 { stop(); } } button 600 { on (keyPress '<Space>') { _root.seconds = 0; _root.seconds2 = '00'; _root.minutes = 0; _root.gotoAndPlay('firstfarm'); } } movieClip 602 { frame 1 { game = SharedObject.getLocal('mydata'); if (game.data.name == undefined) { _root.minbest = 0; _root.secbest = 0; } else { _root.minbest = game.data.name; _root.secbest = game.data.surname; } stop(); } frame 41 { if (_root.seconds < 10) { time = '0'; } else { time = ''; } if (_root.minutes * 60 + _root.seconds > 29) { maingame.data.unlocked3 = '1'; } this.totaltime = 'Your time was ' + _root.minutes + ':' + time + _root.seconds; if (_root.minbest * 60 + _root.secbest < _root.minutes * 60 + _root.seconds) { game = SharedObject.getLocal('mydata'); game.data.name = _root.minutes; game.data.surname = _root.seconds; game.flush(); } stop(); } } movieClip 604 { frame 1 { rspeed = 0; lspeed = 0; dspeed = 0; uspeed = 0; } frame 2 { if (this._parent.follower._x > _x) { _x = _x + rspeed; rspeed += 1; } else { if (rspeed >= 0) { _x = _x + rspeed; rspeed -= 1; } } if (this._parent.follower._x < _x) { _x = _x - lspeed; lspeed += 1; } else { if (lspeed >= 0) { _x = _x - lspeed; lspeed -= 1; } } if (this._parent.follower._y < _y) { _y = _y - uspeed; uspeed += 1; } else { if (uspeed >= 0) { _y = _y - uspeed; uspeed -= 1; } } if (this._parent.follower._y > _y) { _y = _y + dspeed; dspeed += 1; } else { if (dspeed >= 0) { _y = _y + dspeed; dspeed -= 1; } } if (this._x < 10) { lspeed = 0; } if (this._x > 540) { rspeed = 0; } if (this._y < 10) { uspeed = 0; } if (this._y > 390) { dspeed = 0; } if (this.hitTest(this._parent.rwall)) { this._x = 0; } if (this.hitTest(this._parent.lwall)) { this._x = 500; } if (this.hitTest(this._parent.bwall)) { this._y = 0; } if (this.hitTest(this._parent.twall)) { this._y = 340; } this._rotation += rspeed; this._rotation -= lspeed; } frame 3 { gotoAndPlay(2); } } instance robot2 of movieClip 604 { onClipEvent (enterFrame) { if (this._parent.robot.lspeed - this._parent.robot.rspeed > 0) { xspee = this._parent.robot.lspeed - this._parent.robot.rspeed; } if (this._parent.robot.lspeed - this._parent.robot.rspeed < 0) { xspee = this._parent.robot.lspeed - this._parent.robot.rspeed - (this._parent.robot.lspeed - this._parent.robot.rspeed * 2); } if (this._parent.robot.uspeed - this._parent.robot.dspeed > 0) { yspee = this._parent.robot.uspeed - this._parent.robot.dspeed; } if (this._parent.robot.uspeed - this._parent.robot.dspeed < 0) { yspee = this._parent.robot.uspeed - this._parent.robot.dspeed - (this._parent.robot.uspeed - this._parent.robot.dspeed * 2); } var array_filter = new Array(); var filter = new flash.filters.BlurFilter(xspee, yspee, 3); array_filter.push(filter); this.filters = array_filter; } } instance robot of movieClip 604 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.follower)) { this._parent.follower.play(); this._x = 1000000000000.0; this.stop(); this._parent.timer.stop(); this._parent.music.setPan(this._parent.follower._x); this._parent.music.play(); } } } frame 176 { stop(); } button 610 { on (release) { gotoAndStop(177); } } button 612 { on (release) { gotoAndStop(106); } } button 616 { on (release) { _root.gotoAndStop('DK', 4); } } button 618 { on (release) { _root.gotoAndStop('DK', 6); } } button 620 { on (release) { _root.nextScene(); } } movieClip 621 { frame 1 { stop(); } } instance of movieClip 621 { onClipEvent (enterFrame) { if (Key.isDown(49)) { this.nextFrame(); } } } movieClip 623 { } movieClip 624 { frame 60 { } frame 90 { stop(); } } instance of movieClip 624 { onClipEvent (enterFrame) { this._x = this._parent.camra._x; } } frame 177 { onEnterFrame = function () { _root.timc = Math.floor(getTimer() / 1000); }; } frame 177 { go = true; } movieClip 627 { } movieClip 630 { } instance of movieClip 630 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { if (this._parent.walker._x > this._x + 17) { this._parent.walker._x -= 2; } if (this._parent.walker._x < this._x + 17) { this._parent.walker._x += 2; } this._parent.walker.xspeed = 0; this._parent.walker._alpha -= 1; if (this._parent.walker._alpha < 2) { _root.nextFrame(); } } } } movieClip 636 { frame 1 { gotoAndPlay(50); } } movieClip 640 { frame 1 { gotoAndPlay(40); } } movieClip 644 { frame 1 { gotoAndPlay(35); } } movieClip 649 { } movieClip 662 { } movieClip 672 { } movieClip 674 { } movieClip 689 { } movieClip 691 { } movieClip 693 { } movieClip 695 { } movieClip 707 { } movieClip 710 { frame 1 { stop(); } frame 25 { gotoAndPlay(1); } frame 50 { gotoAndPlay(26); } frame 52 { stop(); } } instance walker of movieClip 710 { onClipEvent (load) { gravity = 0.2; yspeed = 0; xspeed = 3; jumping = 0; } onClipEvent (enterFrame) { if (_root.go) { if (this.hitTest(this.water)) { xspeed = 1.5; gravity = 0.1; } if (!this.hitTest(this.water)) { xspeed = 3; gravity = 0.2; } if (Key.isDown(37)) { if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) { _x = _x - xspeed; this.gotoAndPlay(26); } } else { if (!Key.isDown(37) and !Key.isDown(39)) { this.gotoAndStop(51); } } if (Key.isDown(39)) { if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) { _x = _x + xspeed; this.gotoAndPlay(1); } } else { if (!Key.isDown(39) and !Key.isDown(37)) { this.gotoAndStop(51); } } } if (Key.isDown(32) and !jumping) { yspeed = -5; jumping = 1; } yspeed += gravity; while (_root.terrain.hitTest(_x, _y + _height / 2, true)) { _y = _y - 1; yspeed = 0; jumping = 0; } if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) { _y = _y + yspeed; } else { yspeed = 0; jumping = 0; } if (Key.isDown(32)) { this.gotoAndPlay(52); } if (this.hitTest(this._parent.enemy.headbar)) { this._parent.enemy._visible = false; yspeed = -5; this._parent.enemy._y += 100; } if (this.hitTest(this._parent.enemy.bodyblok)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.krool)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(_root.lava)) { go = true; walker.yspeed = 0; walker._x = -378; walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 712 { } instance of movieClip 712 { onClipEvent (release) { this._parent.walker._x = 2200; this._parent.walker._y = 200; } onClipEvent (rollOver) { this.useHandCursor = false; } } movieClip 715 { frame 1 { stop(); } } movieClip 718 { } movieClip 719 { } instance reset of movieClip 719 { onClipEvent (rollOver) { _xscale = 120; _yscale = 120; } onClipEvent (rollOut) { _xscale = 100; _yscale = 100; } onClipEvent (release) { _root.gotoAndStop(1); } } movieClip 721 { } instance menu of movieClip 721 { onClipEvent (enterFrame) { this._x = this._parent.reset._x; } } movieClip 725 { } movieClip 726 { frame 40 { stop(); } } instance of movieClip 726 { onClipEvent (enterFrame) { this._x = this._parent.walker._x - 275; } } instance camra of movieClip 70 { onClipEvent (enterFrame) { this._x = this._parent.walker._x; this._parent.reset._x = this._x + 220; this._parent.reset._rotation = this._x - 90; } } frame 178 { _root.timetot = _root.timc + ' seconds'; _root.livetot = _root.lives; stop(); } movieClip 729 { } button 734 { on (release) { nextFrame(); } } frame 179 { onEnterFrame = function () { _root.timd = Math.floor(getTimer() / 1000); }; } frame 179 { go = true; } instance of movieClip 630 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { if (this._parent.walker._x > this._x + 17) { this._parent.walker._x -= 2; } if (this._parent.walker._x < this._x + 17) { this._parent.walker._x += 2; } this._parent.walker.xspeed = 0; this._parent.walker._alpha -= 1; if (this._parent.walker._alpha < 2) { _root.nextFrame(); } } } } movieClip 746 { frame 30 { stop(); } } movieClip 751 { } movieClip 753 { } instance lavabbb of movieClip 753 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.yspeed = 0; this._parent.walker._x = -378; this._parent.walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 755 { } instance lavac of movieClip 755 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.yspeed = 0; this._parent.walker._x = -378; this._parent.walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 757 { } instance lavae of movieClip 757 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.yspeed = 0; this._parent.walker._x = -378; this._parent.walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 759 { } instance lavaa of movieClip 759 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.yspeed = 0; this._parent.walker._x = -378; this._parent.walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 761 { } instance of movieClip 761 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.yspeed = 0; this._parent.walker._x = -378; this._parent.walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 762 { } instance of movieClip 762 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.yspeed = 0; this._parent.walker._x = -378; this._parent.walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 763 { } instance of movieClip 763 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.yspeed = 0; this._parent.walker._x = -378; this._parent.walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } instance walker of movieClip 710 { onClipEvent (load) { gravity = 0.2; yspeed = 0; xspeed = 3; jumping = 0; jumpheight = -5; } onClipEvent (enterFrame) { if (_root.go) { if (Key.isDown(37)) { if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) { _x = _x - xspeed; this.gotoAndPlay(26); } } else { if (!Key.isDown(37) and !Key.isDown(39)) { this.gotoAndStop(51); } } if (Key.isDown(39)) { if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) { _x = _x + xspeed; this.gotoAndPlay(1); } } else { if (!Key.isDown(39) and !Key.isDown(37)) { this.gotoAndStop(51); } } } if (Key.isDown(32) and !jumping) { yspeed = jumpheight; jumping = 1; } yspeed += gravity; while (_root.terrain.hitTest(_x, _y + _height / 2, true)) { _y = _y - 1; yspeed = 0; jumping = 0; } if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) { _y = _y + yspeed; } else { yspeed = 0; jumping = 0; } if (Key.isDown(32)) { this.gotoAndStop(52); } if (this.hitTest(this._parent.enemy.headbar)) { this._parent.enemy._visible = false; yspeed = -5; this._parent.enemy._y += 100; } if (this.hitTest(this._parent.enemy.bodyblok)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.krool)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this.lava)) { go = true; walker.yspeed = 0; walker._x = -378; walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 777 { } movieClip 783 { } movieClip 786 { } movieClip 788 { } movieClip 789 { } movieClip 791 { } instance water of movieClip 791 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.xspeed = 1.5; this._parent.walker.gravity = 0.1; this._parent.walker.jumpheight = -3.5; } if (!this.hitTest(this._parent.walker) and !this._parent.water2.hitTest(this._parent.walker)) { this._parent.walker.xspeed = 3; this._parent.walker.gravity = 0.2; this._parent.walker.jumpheight = -5; } } } movieClip 793 { } instance water2 of movieClip 793 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.xspeed = 1.5; this._parent.walker.gravity = 0.1; this._parent.walker.jumpheight = -4; } if (!this.hitTest(this._parent.walker) and !this._parent.water.hitTest(this._parent.walker)) { this._parent.walker.xspeed = 3; this._parent.walker.gravity = 0.2; this._parent.walker.jumpheight = -5; } } } movieClip 796 { } instance of movieClip 796 { onClipEvent (release) { this._parent.walker._x = 2200; this._parent.walker._y += 200; } onClipEvent (rollOver) { this.useHandCursor = false; } } instance reset of movieClip 719 { onClipEvent (rollOver) { _xscale = 120; _yscale = 120; } onClipEvent (rollOut) { _xscale = 100; _yscale = 100; } onClipEvent (release) { _root.gotoAndStop(1); } } instance menu of movieClip 721 { onClipEvent (enterFrame) { this._x = this._parent.reset._x; } } instance camra of movieClip 70 { onClipEvent (enterFrame) { this._x = this._parent.walker._x; this._parent.reset._x = this._x + 220; this._parent.reset._rotation = this._x - 90; } } frame 180 { _root.timetot = _root.timd + ' seconds'; _root.livetot = _root.lives; stop(); } instance of movieClip 630 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.camra._x -= 2; if (this._parent.walker._x > this._x + 17) { this._parent.walker._x -= 2; } if (this._parent.walker._x < this._x + 17) { this._parent.walker._x += 2; } this._parent.walker.xspeed = 0; this._parent.walker._alpha -= 1; if (this._parent.walker._alpha < 2) { _root.play(); } } } } movieClip 805 { } instance fall of movieClip 805 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.walker.yspeed = 0; this._parent.walker._x = -403; this._parent.walker._y = 44; this._parent.black.play(); this._parent.camra._x = -400.1; _root.lives = Number(_root.lives) + 1; } } } instance walker of movieClip 710 { onClipEvent (load) { gravity = 0.2; yspeed = 0; xspeed = 3; jumping = 0; jumpheight = -5; } onClipEvent (enterFrame) { if (_root.go) { if (Key.isDown(37)) { if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) { _x = _x - xspeed; this.gotoAndPlay(26); } } else { if (!Key.isDown(37) and !Key.isDown(39)) { this.gotoAndStop(51); } } if (Key.isDown(39)) { if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) { _x = _x + xspeed; this.gotoAndPlay(1); } } else { if (!Key.isDown(39) and !Key.isDown(37)) { this.gotoAndStop(51); } } } if (Key.isDown(32) and !jumping) { yspeed = jumpheight; jumping = 1; } yspeed += gravity; while (_root.terrain.hitTest(_x, _y + _height / 2, true)) { _y = _y - 1; yspeed = 0; jumping = 0; } if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) { _y = _y + yspeed; } else { yspeed = 0; jumping = 0; } if (Key.isDown(32)) { this.gotoAndStop(52); } if (this.hitTest(this._parent.enemy.headbar)) { this._parent.enemy._visible = false; yspeed = -5; this._parent.enemy._y += 100; } if (this.hitTest(this._parent.enemy.bodyblok)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.krool)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this.lava)) { go = true; walker.yspeed = 0; walker._x = -378; walker._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 807 { } instance camra of movieClip 70 { onClipEvent (enterFrame) { this._x += 2; this._parent.reset._x = this._x + 220; this._parent.reset._rotation = this._x - 90; if (this._parent.walker._x < this._x - 300) { this._parent.walker.yspeed = 0; this._parent.walker._x = -403; this._parent.walker._y = 44; this._parent.black.play(); this._parent.camra._x = -400.1; _root.lives = Number(_root.lives) + 1; } } } movieClip 812 { } movieClip 817 { } movieClip 837 { } movieClip 843 { } movieClip 845 { } movieClip 847 { } movieClip 849 { } frame 643 { stop(); } instance of movieClip 630 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { if (this._parent.walker._x > this._x + 17) { this._parent.walker._x -= 2; } if (this._parent.walker._x < this._x + 17) { this._parent.walker._x += 2; } this._parent.walker.xspeed = 0; this._parent.walker._alpha -= 1; if (this._parent.walker._alpha < 2) { _root.nextFrame(); } } } } movieClip 855 { } movieClip 863 { } movieClip 866 { frame 1 { stop(); } frame 25 { gotoAndPlay(1); } frame 50 { gotoAndPlay(26); } frame 52 { stop(); } } instance walker of movieClip 866 { onClipEvent (load) { gravity = 0.2; yspeed = 0; xspeed = 3; jumping = 0; } onClipEvent (enterFrame) { if (this.hitTest(this.water)) { xspeed = 1.5; gravity = 0.1; } if (!this.hitTest(this.water)) { xspeed = 3; gravity = 0.2; } if (Key.isDown(37)) { if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) { _x = _x - xspeed; this.gotoAndPlay(26); } } else { if (!Key.isDown(37) and !Key.isDown(39)) { this.gotoAndStop(51); } } if (Key.isDown(39)) { if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) { _x = _x + xspeed; this.gotoAndPlay(1); } } else { if (!Key.isDown(39) and !Key.isDown(37)) { this.gotoAndStop(51); } } if (Key.isDown(32) and !jumping) { yspeed = -5; jumping = 1; } yspeed += gravity; while (_root.terrain.hitTest(_x, _y + _height / 2, true)) { _y = _y - 1; yspeed = 0; jumping = 0; } if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) { _y = _y + yspeed; } else { yspeed = 0; jumping = 0; } if (Key.isDown(32)) { this.gotoAndPlay(52); } if (this.hitTest(this._parent.enemy.headbar)) { this._parent.enemy._visible = false; yspeed = -5; this._parent.enemy._y += 100; } if (this.hitTest(this._parent.enemy.bodyblok)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.krool)) { go = true; this.yspeed = 0; this._x = 80.5; this._y = 194.4; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(_root.lava)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } } } movieClip 869 { } instance of movieClip 869 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 80.5; this._parent.walker._y = 194.4; _root.lives = Number(_root.lives) + 1; } } } movieClip 873 { frame 30 { stop(); } } instance camra of movieClip 70 { onClipEvent (enterFrame) { this._x = this._parent.walker._x; this._parent.reset._x = this._x + 220; this._parent.reset._rotation = this._x - 90; } } movieClip 876 { frame 55 { stop(); } } movieClip 880 { } movieClip 885 { } movieClip 887 { } movieClip 889 { } instance surfboard of movieClip 889 { onClipEvent (enterFrame) { } } instance walker of movieClip 866 { onClipEvent (load) { gravity = 0.2; yspeed = 0; xspeed = 3; jumping = 0; } onClipEvent (enterFrame) { if (this.hitTest(this.water)) { xspeed = 1.5; gravity = 0.1; } if (!this.hitTest(this.water)) { xspeed = 3; gravity = 0.2; } if (Key.isDown(37)) { if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) { _x = _x - xspeed; this.gotoAndPlay(26); } } else { if (!Key.isDown(37) and !Key.isDown(39)) { this.gotoAndStop(51); } } if (Key.isDown(39)) { if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) { _x = _x + xspeed; this.gotoAndPlay(1); } } else { if (!Key.isDown(39) and !Key.isDown(37)) { this.gotoAndStop(51); } } if (Key.isDown(32) and !jumping) { yspeed = -5; jumping = 1; } yspeed += gravity; while (_root.terrain.hitTest(_x, _y + _height / 2, true)) { _y = _y - 1; yspeed = 0; jumping = 0; } if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) { _y = _y + yspeed; } else { yspeed = 0; jumping = 0; } if (Key.isDown(32)) { this.gotoAndPlay(52); } if (this.hitTest(this._parent.enemy.headbar)) { this._parent.enemy._visible = false; yspeed = -5; this._parent.enemy._y += 100; } if (this.hitTest(this._parent.enemy.bodyblok)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.krool)) { go = true; this.yspeed = 0; this._x = 80.5; this._y = 194.4; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(_root.lava)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.surfboard)) { this._parent.surfboard._x = this._x - 35; this._parent.surfboard._y = this._y + 10; this._x += 10; } else { if (this._parent.surfboard._x > 170) { this._parent.surfboard._x += 2; } } if (!this.hitTest(this._parent.surfboard) and this._x > 200 and this._x < 3039 and this._y > 278) { this.yspeed = 0; this._x = 96; this._y = 192; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; this._parent.black.play(); } if (this.hitTest(this._parent.wallstart)) { this._x -= 10; } } } movieClip 891 { } movieClip 893 { } instance mine of movieClip 893 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 192; this._parent.walker._y = 94.40000000000001; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; _root.lives = Number(_root.lives) + 1; } } } instance mine3 of movieClip 893 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 192; this._parent.walker._y = 94.40000000000001; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; _root.lives = Number(_root.lives) + 1; } } } instance mine2 of movieClip 893 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 192; this._parent.walker._y = 94.40000000000001; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; _root.lives = Number(_root.lives) + 1; } } } instance mine4 of movieClip 893 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 192; this._parent.walker._y = 94.40000000000001; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; _root.lives = Number(_root.lives) + 1; } } } instance mine6 of movieClip 893 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 192; this._parent.walker._y = 94.40000000000001; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; _root.lives = Number(_root.lives) + 1; } } } instance mine7 of movieClip 893 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 192; this._parent.walker._y = 94.40000000000001; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; _root.lives = Number(_root.lives) + 1; } } } instance mine5 of movieClip 893 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 192; this._parent.walker._y = 94.40000000000001; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; _root.lives = Number(_root.lives) + 1; } } } instance mine8 of movieClip 893 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this._parent.black.play(); this._parent.walker.yspeed = 0; this._parent.walker._x = 192; this._parent.walker._y = 94.40000000000001; this._parent.surfboard._x = 167.1; this._parent.surfboard._y = 283.8; _root.lives = Number(_root.lives) + 1; } } } movieClip 897 { } movieClip 898 { } instance walker of movieClip 866 { onClipEvent (load) { gravity = 0.2; yspeed = 0; xspeed = 3; jumping = 0; } onClipEvent (enterFrame) { if (this.hitTest(this.water)) { xspeed = 1.5; gravity = 0.1; } if (!this.hitTest(this.water)) { xspeed = 3; gravity = 0.2; } if (Key.isDown(37)) { if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) { _x = _x - xspeed; this.gotoAndPlay(26); } } else { if (!Key.isDown(37) and !Key.isDown(39)) { this.gotoAndStop(51); } } if (Key.isDown(39)) { if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) { _x = _x + xspeed; this.gotoAndPlay(1); } } else { if (!Key.isDown(39) and !Key.isDown(37)) { this.gotoAndStop(51); } } if (Key.isDown(32) and !jumping) { yspeed = -5; jumping = 1; } yspeed += gravity; while (_root.terrain.hitTest(_x, _y + _height / 2, true)) { _y = _y - 1; yspeed = 0; jumping = 0; } if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) { _y = _y + yspeed; } else { yspeed = 0; jumping = 0; } if (Key.isDown(32)) { this.gotoAndPlay(52); } if (this.hitTest(this._parent.enemy.headbar)) { this._parent.enemy._visible = false; yspeed = -5; this._parent.enemy._y += 100; } if (this.hitTest(this._parent.enemy.bodyblok)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.krool)) { go = true; this.yspeed = 0; this._x = 80.5; this._y = 194.4; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(_root.lava)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.wallstart)) { this._x -= 10; } } } movieClip 900 { } movieClip 903 { } movieClip 904 { frame 77 { stop(); } } instance of movieClip 904 { onClipEvent (enterFrame) { this._x = this._parent.walker._x + 20; this._y = this._parent.walker._y - 5; } } movieClip 907 { } frame 646 { onEnterFrame = function () { _root.timc = Math.floor(getTimer() / 1000); }; } instance walker of movieClip 866 { onClipEvent (load) { gravity = 0.2; yspeed = 0; xspeed = 3; jumping = 0; } onClipEvent (enterFrame) { if (this.hitTest(this.water)) { xspeed = 1.5; gravity = 0.1; } if (!this.hitTest(this.water)) { xspeed = 3; gravity = 0.2; } if (Key.isDown(37)) { if (!_root.terrain.hitTest(_x - _width / 2, _y + _height / 4, true)) { _x = _x - xspeed; this.gotoAndPlay(26); } } else { if (!Key.isDown(37) and !Key.isDown(39)) { this.gotoAndStop(51); } } if (Key.isDown(39)) { if (!_root.terrain.hitTest(_x + _width / 2, _y + _height / 4, true)) { _x = _x + xspeed; this.gotoAndPlay(1); } } else { if (!Key.isDown(39) and !Key.isDown(37)) { this.gotoAndStop(51); } } if (Key.isDown(32) and !jumping) { yspeed = -5; jumping = 1; } yspeed += gravity; while (_root.terrain.hitTest(_x, _y + _height / 2, true)) { _y = _y - 1; yspeed = 0; jumping = 0; } if (!_root.terrain.hitTest(_x, _y + _height / 2 + 1, true) or yspeed < 0) { _y = _y + yspeed; } else { yspeed = 0; jumping = 0; } if (Key.isDown(32)) { this.gotoAndPlay(52); } if (this.hitTest(this._parent.enemy.headbar)) { this._parent.enemy._visible = false; yspeed = -5; this._parent.enemy._y += 100; } if (this.hitTest(this._parent.enemy.bodyblok)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.krool)) { go = true; this.yspeed = 0; this._x = 80.5; this._y = 302; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(_root.lava)) { go = true; this.yspeed = 0; this._x = -378; this._y = 49; this._parent.black.play(); _root.lives = Number(_root.lives) + 1; } if (this.hitTest(this._parent.wallstart)) { this._x -= 10; } } } movieClip 911 { } movieClip 914 { frame 1 { stop(); } frame 4 { _root.swing = 1; if (this._parent.dk._y < 230) { this._parent.dk._y += 10; } this.gotoAndPlay(3); } } instance of movieClip 914 { onClipEvent (enterFrame) { if (this.hitTest(this._parent.walker)) { this.play(); } } } movieClip 917 { } movieClip 918 { } instance dk of movieClip 817 { onClipEvent (enterFrame) { this._x = this._parent.dot.blackdot._x + 160; if (this._y > 220) { this._y = 232; this._parent.krool.stop(); this._parent.dot.stop(); this._parent.end.play(); } if (_root.swing == 1) { if (this._currentframe < 20) { this.gotoAndStop(10); } if (this._currentframe > 20) { this.gotoAndStop(30); } } } } button 944 { on (release) { gotoAndPlay(1); } } movieClip 949 { frame 1 { stop(); } frame 110 { _root.end.lives2 = _root.lives; } frame 130 { _root.end.timetotal = _root.timc; } frame 140 { gotoAndPlay(137); } }




http://swfchan.com/10/46541/info.shtml
Created: 3/5 -2019 11:41:32 Last modified: 3/5 -2019 11:41:32 Server time: 14/05 -2024 02:40:07