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

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

Time Sphere - get ready for 25 puzzling levels of time freezing fun.swf

This is the info page for
Flash #90686

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


ActionScript [AS1/AS2]
Combined Code
movieClip 11 { } movieClip 15 { } movieClip 17 { } movieClip 19 { } movieClip 21 { } movieClip 23 { } movieClip 25 { } movieClip 27 { } movieClip 33 { } movieClip 35 { } movieClip 36 { frame 1 { stop(); } frame 2 { stop(); if (_root.sound == true) { my_sound = new Sound(); my_sound.attachSound('unlock'); my_sound.start(0, 1); } } } movieClip 39 { } movieClip 41 { } movieClip 43 { } movieClip 44 { } movieClip 48 { } movieClip 54 { } movieClip 56 { } movieClip 59 { } movieClip 61 { } movieClip 72 { } movieClip 76 { } movieClip 78 { } movieClip 80 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 83 { frame 9 { stop(); } } movieClip 84 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 83 { onClipEvent (enterFrame) { this._rotation += 100; } } } movieClip 88 { } movieClip 90 { frame 1 { stop(); } frame 2 { if (_root.sound == true) { my_sound2 = new Sound(); my_sound2.attachSound('springsound'); my_sound2.start(0, 1); } } instance hit of movieClip 88 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { gotoAndPlay(2); _root.char.gravity = -40; _root.char.gotoAndStop(3); } } } } movieClip 94 { } movieClip 96 { } movieClip 98 { } movieClip 102 { instance of movieClip 98 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { _root.char.gotoAndStop(4); } } } instance of movieClip 98 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { _root.char.gotoAndStop(4); } } } } movieClip 105 { } movieClip 106 { instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } } movieClip 110 { } movieClip 111 { } movieClip 112 { } movieClip 114 { } movieClip 118 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 119 { } movieClip 121 { } movieClip 123 tile-m { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); _root.onlyone = true; } frame 5 { stop(); } instance door of movieClip 36 { onClipEvent (enterFrame) { if (_root.gotkey == true) { gotoAndStop(2); } else { gotoAndStop(1); } } } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true) or _root.char.hitTest(point.x - 7, point.y, true) or _root.char.hitTest(point.x + 7, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true) or _root.char.hitTest(point.x - 7, point.y, true) or _root.char.hitTest(point.x + 7, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } instance turret of movieClip 59 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (!_root.hook.hitTest(point.x, point.y, true)) { dontshoot = false; X = _root.char._x - _parent._parent._x - _parent._x; Y = _root.char._y - _parent._parent._y - _parent._y - 10; angle = Math.atan2(Y, X); _rotation = angle * 180 / Math.PI + 90; } else { dontshoot = true; } } } } frame 14 { stop(); } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation += 1; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation += 1; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation += 1; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation += 1; } } frame 15 { stop(); } frame 16 { stop(); } instance smasher of movieClip 102 { onClipEvent (load) { bob = random(20); gotoAndPlay(bob); } onClipEvent (enterFrame) { if (_root.testing == false) { stop(); } else { play(); } } } frame 17 { stop(); } instance of movieClip 106 { onClipEvent (load) { stopper = false; } onClipEvent (enterFrame) { if (_root.testing == true and stopper != true) { _rotation = _rotation - 2; } if (stopper == true) { stopper = false; } } } frame 18 { stop(); } instance fallspikes of movieClip 112 { onClipEvent (load) { speed = 10; bobX = _x; bobY = _y; stopper = false; } onClipEvent (enterFrame) { if (_root.testing == false) { speed = 10; _x = bobX; _y = bobY; _parent.fall = false; stopper = false; } point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.ground.hitTest(point.x, point.y, true)) { speed = 0; stopper = true; } if (_root.hook.hitTest(point.x, point.y, true)) { speed = 0; } else { speed = 10; } if (_root.char.hitTest(this) and stopper == false) { _root.char.gotoAndStop(4); } } } instance of movieClip 114 { onClipEvent (load) { speed = 30; bobX = _x; bobY = _y; } onClipEvent (enterFrame) { if (_root.testing == true) { _y = _y + speed; } else { _x = bobX; _y = bobY; speed = 30; } point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.ground.hitTest(point.x, point.y, true)) { speed = 0; } if (_root.char.hitTest(this)) { _parent.fall = true; } } } frame 19 { stop(); } instance of movieClip 119 { onClipEvent (load) { active = false; point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); } onClipEvent (enterFrame) { if (_root.testing == false) { active = false; cog.gotoAndStop(1); } if (_root.char.hitTest(this) and active == false) { active = true; } if (active == true and !_root.hook.hitTest(point.x, point.y, true)) { cog._rotation += 5; cog.gotoAndStop(2); } } } frame 21 { stop(); } } frame 1 { function doSomething() { getURL('http://www.eggysgames.com/', '_blank'); } function doSomething3() { getURL('http://www.mofunzone.com/', 'blank'); } MENU.customItems.push(Functioned2); MENU = new ContextMenu(); MENU.hideBuiltInItems(); Functioned = new ContextMenuItem('Eggy', doSomething); Functioned3 = new ContextMenuItem('MofunZone', doSomething3); MENU.customItems.push(Functioned); MENU.customItems.push(Functioned3); MENU.builtInItems.quality = true; _root.menu = MENU; stop(); } movieClip 125 { } movieClip 127 { } movieClip 129 { } movieClip 131 { } movieClip 132 { } movieClip 134 { } movieClip 136 { } movieClip 138 { } movieClip 140 { } movieClip 142 { } movieClip 144 { } movieClip 145 { } movieClip 146 { } movieClip 148 { } movieClip 149 { frame 11 { _parent.gotoAndStop(2); } } movieClip 150 { } movieClip 152 { } movieClip 155 { } movieClip 157 { } movieClip 158 { } movieClip 159 { frame 1 { this.onEnterFrame = function () { bytesloaded = Math.round(_root.getBytesLoaded()); bytestotal = Math.round(_root.getBytesTotal()); percent = bytesloaded / bytestotal; barmask._xscale = percent * 100; }; } } movieClip 161 { } movieClip 166 { } // unknown tag 88 length 63 movieClip 186 { } movieClip 191 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 199 { } movieClip 201 { } movieClip 202 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 209 { } movieClip 210 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 217 { } movieClip 218 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 225 { } movieClip 226 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 233 { } movieClip 234 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 241 { } movieClip 242 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.nextFrame(); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 249 { } movieClip 250 { frame 1 { if (Math.random() > 0.5) { _xscale = -_xscale; _x = _x - _parent.shiftamt; } } frame 90 { if (_parent.isloaded) { _parent.gotoAndStop(10); } else { thenextframe = Math.ceil(Math.random() * 8) + 1; if (thenextframe == _parent._currentframe) { _parent.gotoAndStop(2); } else { _parent.gotoAndStop(thenextframe); } } } } movieClip 251 { } movieClip 256 { } movieClip 257 { frame 133 { _root.play(); } } movieClip 258 { frame 1 { stop(); _root.stop(); shiftamt = 17; isloaded = false; this.onEnterFrame = function () { bytesloaded = Math.round(_root.getBytesLoaded()); bytestotal = Math.round(_root.getBytesTotal()); percent = bytesloaded / bytestotal; if (bytesloaded == bytestotal) { isloaded = true; } }; this.onRelease = function () { getURL('http://www.mofunzone.com/', '_blank'); }; } } movieClip 262 { } frame 3 { stopAllSounds(); } frame 4 { stop(); } movieClip 265 { } movieClip 266 { } movieClip 267 { } movieClip 271 { } movieClip 273 { } movieClip 275 { frame 1 { stop(); } } movieClip 277 { frame 1 { stop(); } } movieClip 280 { } movieClip 281 { } movieClip 283 { frame 1 { stop(); } } movieClip 285 { frame 1 { stop(); } } movieClip 287 { frame 1 { stop(); } } movieClip 288 { } movieClip 290 { frame 1 { stop(); } } movieClip 292 { } movieClip 294 { frame 1 { stop(); } } movieClip 295 { } movieClip 297 { } movieClip 299 { } movieClip 300 { } movieClip 302 { } movieClip 305 { frame 1 { stop(); } } movieClip 307 { frame 1 { stop(); } } movieClip 309 { frame 1 { stop(); } } movieClip 313 { frame 1 { stop(); } } movieClip 316 { } movieClip 319 { } movieClip 322 { } movieClip 324 { } movieClip 326 { } movieClip 328 { } movieClip 330 { } movieClip 333 { } movieClip 335 { } movieClip 337 { } movieClip 344 { frame 1 { stop(); } frame 21 { stop(); } frame 22 { prevFrame(); } } movieClip 349 { } movieClip 350 { } movieClip 352 { } movieClip 354 { } movieClip 356 { } movieClip 359 { } movieClip 360 { } movieClip 361 { } movieClip 362 { } movieClip 364 { frame 1 { stop(); } } movieClip 366 { frame 1 { stop(); } } movieClip 369 { } movieClip 370 { frame 1 { stop(); } } movieClip 372 { } movieClip 374 { frame 1 { stop(); } } movieClip 377 { frame 144 { _root.nextFrame(); } } instance of movieClip 377 { onClipEvent (press) { getURL('http://www.eggysgames.com', '_blank'); } } frame 5 { function nextsong() { stopAllSounds(); my_sound = new Sound(); my_sound.attachSound('lasthope'); my_sound.start(0, 9999999); } function __com_mochibot__(swfid, mc, lv, trk) { var x; var g; var s; var fv; var sb; var u; var res; var mb; var mbc; var pv; mb = '__mochibot__'; mbc = 'mochibot.com'; g = _global ? _global : _level0._root; if (g[mb + swfid]) { return g[mb + swfid]; } s = System.security; x = mc._root.getSWFVersion; fv = x ? mc.getSWFVersion() : (_global ? 6 : 5); if (!s) { s = {}; } sb = s.sandboxType; if (sb == 'localWithFile') { return null; } x = s.allowDomain; if (x) { s.allowDomain(mbc); } x = s.allowInsecureDomain; if (x) { s.allowInsecureDomain(mbc); } pv = (fv == 5) ? /:$version : System.capabilities.version; u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : ''); lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv); g[mb + 'level'] = lv; if (fv == 5) { res = '_level' + lv; if (!eval(res)) { loadMovieNum(u, lv); } return res; } res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); return res; } stop(); i = 900; while (i < 1001) { removeMovieClip(_root['newcoin' + i]); removeMovieClip(_root['newkey' + i]); removeMovieClip(_root['newenemy' + i]); ++i; } i = 2000; while (i < 2201) { removeMovieClip(_root['newarrow' + i]); removeMovieClip(_root['newbullet' + i]); removeMovieClip(_root['newspike' + i]); ++i; } mfade.gotoAndPlay(1); _root.storage = SharedObject.getLocal('user_data'); if (_root.storage.data.playedonce != true) { _root.bbb._alpha = 50; } nextsong(); __com_mochibot__('6bd70878', this, 10301, true); } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation -= 0.5; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation -= 1; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation -= 0.5; } } movieClip 381 { } instance of movieClip 381 { onClipEvent (enterFrame) { this._rotation -= 0.5; } } instance of movieClip 381 { onClipEvent (enterFrame) { this._rotation -= 0.5; } } instance of movieClip 381 { onClipEvent (enterFrame) { this._rotation -= 0.5; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation -= 0.5; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation -= 0.5; } } // unknown tag 88 length 43 movieClip 386 { } button 388 { on (rollOver) { my_sound = new Sound(); my_sound.attachSound('blip'); my_sound.start(0, 1); } on (press) { _root.storage.data.playedonce = true; _root.levelnumber = 1; _root.storage.data.levelnumber = 1; _root.gotoAndStop(7); } } movieClip 391 { } button 393 { on (press) { _root.nextFrame(); } on (rollOver) { my_sound = new Sound(); my_sound.attachSound('blip'); my_sound.start(0, 1); } } movieClip 395 { } button 398 { on (press) { if (bbb._alpha != 50) { _root.levelnumber = _root.storage.data.levelnumber; _root.gotoAndStop(7); } } on (rollOver) { my_sound = new Sound(); my_sound.attachSound('blip'); my_sound.start(0, 1); } } button 401 { on (press) { getURL('http://www.mofunzone.com', '_blank'); } on (rollOver) { my_sound = new Sound(); my_sound.attachSound('blip'); my_sound.start(0, 1); } } // unknown tag 88 length 68 movieClip 406 { } instance of movieClip 406 { onClipEvent (press) { getURL('http://www.mofunzone.com', '_blank'); } } movieClip 410 { } movieClip 411 { instance node1 of movieClip 344 { onClipEvent (enterFrame) { if (_root.power == 4) { stopDrag(); } } onClipEvent (press) { if (_root.power != 4) { startDrag(this, false); } } onClipEvent (release) { if (_root.power != 4) { stopDrag(); } } } } instance of movieClip 411 { onClipEvent (press) { getURL('http://www.eggysgames.com', 'blank'); } } movieClip 412 { frame 11 { stop(); } } instance mfade of movieClip 412 { onClipEvent (load) { bob = 9999999999.0; this.swapDepths(bob); } } frame 6 { stop(); mfade.gotoAndPlay(1); } button 414 { on (press) { _root.levelnumber = 1; _root.nextFrame(); } on (rollOver) { my_sound = new Sound(); my_sound.attachSound('blip'); my_sound.start(0, 1); } } // unknown tag 88 length 105 instance key of movieClip 44 { onClipEvent (load) { function resethook() { if (_root.hook.thing._currentframe == 3) { _root.hook.thing.gotoAndStop(1); duplicateMovieClip(_root.key, 'newkey' + _root.dd, _root.dd); _root['newkey' + _root.dd].fasterX = _x; _root['newkey' + _root.dd].fasterY = _y; _root.dd += 1; } _root.stopallbox = true; heading = true; X = 0; Y = 0; _x = -100; _y = -100; nomore = false; _root.attack = false; onwayback = false; heading = true; _root.hookline.clear(); } _root.runit = true; if (_name != 'key') { _x = fasterX; _y = fasterY; } gravity = 0; } onClipEvent (enterFrame) { if (_name != 'key') { if (_root.hook.hitTest(hit) and !_root.char.hitTest(this) and _root.hook.nomore == false and _root.hook.grab._currentframe == 1) { _root.hook.thing.gotoAndStop(3); _root.hook.grab.gotoAndStop(2); _root.hook.onwayback = true; removeMovieClip(this); } } } } instance door of movieClip 36 { onClipEvent (enterFrame) { if (_root.gotkey == true) { gotoAndStop(2); } else { gotoAndStop(1); } } } instance of movieClip 106 { onClipEvent (load) { stopper = false; } onClipEvent (enterFrame) { if (_root.testing == true and stopper != true) { _rotation = _rotation - 2; } if (stopper == true) { stopper = false; } } } instance turret of movieClip 59 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (!_root.hook.hitTest(point.x, point.y, true)) { dontshoot = false; X = _root.char._x - _parent._parent._x - _parent._x; Y = _root.char._y - _parent._parent._y - _parent._y - 10; angle = Math.atan2(Y, X); _rotation = angle * 180 / Math.PI + 90; } else { dontshoot = true; } } } } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } movieClip 418 { } movieClip 421 { frame 1 { stop(); } frame 2 { stop(); } } button 424 { on (press) { _root.gotoAndStop(5); } on (rollOver) { my_sound = new Sound(); my_sound.attachSound('blip'); my_sound.start(0, 1); } } frame 7 { function makemap() { i = 900; while (i < 1001) { removeMovieClip(_root['newcoin' + i]); removeMovieClip(_root['newkey' + i]); removeMovieClip(_root['newenemy' + i]); ++i; } i = 2000; while (i < 2201) { removeMovieClip(_root['newarrow' + i]); removeMovieClip(_root['newbullet' + i]); removeMovieClip(_root['newspike' + i]); ++i; } i = 0; while (i < 18) { j = 0; while (j < 13) { removeMovieClip(_root.ground['tilem' + i + '_' + j]); charholder.gotoAndStop(4); collectholder.gotoAndStop(6); if (_root.map['tilem' + i + '_' + j]._currentframe == 10) { _root.map['tilem' + i + '_' + j]._visible = true; } if (_root.map['tilem' + i + '_' + j]._currentframe == 11) { _root.map['tilem' + i + '_' + j]._visible = true; } if (_root.map['tilem' + i + '_' + j]._currentframe == 14) { _root.map['tilem' + i + '_' + j]._visible = true; } if (_root.map['tilem' + i + '_' + j]._currentframe == 15) { _root.map['tilem' + i + '_' + j]._visible = true; } if (_root.map['tilem' + i + '_' + j]._currentframe == 7 and _root.map['tilem' + i + '_' + j].collect == true) { _root.map['tilem' + i + '_' + j].gotoAndStop(6); } if (_root.map['tilem' + i + '_' + j]._currentframe == 7 and _root.map['tilem' + i + '_' + j].collect2 == true) { _root.map['tilem' + i + '_' + j].gotoAndStop(8); } if (_root.map['tilem' + i + '_' + j]._currentframe == 7 and _root.map['tilem' + i + '_' + j].collect3 == true) { _root.map['tilem' + i + '_' + j].gotoAndStop(11); } if (!_root.map['tilem' + i + '_' + j]) { duplicateMovieClip(_root.map.ttt, 'tilem' + i + '_' + j, i * dimen + j * 1); _root.map['tilem' + i + '_' + j]._x = i * dimen; _root.map['tilem' + i + '_' + j]._y = j * dimen; _root.map['tilem' + i + '_' + j].gotoAndStop(thegrid[j][i]); h += 1; } ++j; } ++i; } } function loadgrid() { if (levelnumber == 1) { bob = level1; } if (levelnumber == 2) { bob = level2; } if (levelnumber == 3) { bob = level3; } if (levelnumber == 4) { bob = level4; } if (levelnumber == 5) { bob = level5; } if (levelnumber == 6) { bob = level6; } if (levelnumber == 7) { bob = level7; } if (levelnumber == 8) { bob = level8; } if (levelnumber == 9) { bob = level9; } if (levelnumber == 10) { bob = level10; } if (levelnumber == 11) { bob = level11; } if (levelnumber == 12) { bob = level12; } if (levelnumber == 13) { bob = level13; } if (levelnumber == 14) { bob = level14; } if (levelnumber == 15) { bob = level15; } if (levelnumber == 16) { bob = level16; } if (levelnumber == 17) { bob = level17; } if (levelnumber == 18) { bob = level18; } if (levelnumber == 19) { bob = level19; } if (levelnumber == 20) { bob = level20; } if (levelnumber == 21) { bob = level21; } if (levelnumber == 22) { bob = level22; } if (levelnumber == 23) { bob = level23; } if (levelnumber == 24) { bob = level24; } if (levelnumber == 25) { bob = level25; } myArr = bob.split('|'); for (i in myArr) { myArr[i] = myArr[i].split(','); } _root.thegrid = myArr; i = 0; while (i < 18) { j = 0; while (j < 13) { _root.map['tilem' + i + '_' + j].gotoAndStop(_root.thegrid[i][j]); ++j; } ++i; } } function refreshgrid() { _root.onlyone = false; i = 0; while (i < 18) { j = 0; while (j < 13) { _root.map['tilem' + i + '_' + j].gotoAndStop(thegrid[0][0] + 1); removeMovieClip(_root.ground['tilem' + i + '_' + j]); ++j; } ++i; } } function playgame() { _root.testing = true; i = 0; while (i < 18) { j = 0; while (j < 13) { if (_root.map['tilem' + i + '_' + j]._currentframe == 1) { removeMovieClip(_root.map['tilem' + i + '_' + j]); } if (_root.map['tilem' + i + '_' + j]._currentframe == 2) { posX = _root.map['tilem' + i + '_' + j]._x; posY = _root.map['tilem' + i + '_' + j]._y; duplicateMovieClip(_root.ground.insideblock, 'tilem' + i + '_' + j, i * dimen + j * 1); _root.ground['tilem' + i + '_' + j]._x = posX; _root.ground['tilem' + i + '_' + j]._y = posY; } if (_root.map['tilem' + i + '_' + j]._currentframe == 10) { posX = _root.map['tilem' + i + '_' + j]._x; posY = _root.map['tilem' + i + '_' + j]._y; duplicateMovieClip(_root.ground.insideblock, 'tilem' + i + '_' + j, i * dimen + j * 1); _root.ground['tilem' + i + '_' + j]._x = posX; _root.ground['tilem' + i + '_' + j]._y = posY; _root.ground['tilem' + i + '_' + j].gotoAndStop(2); _root.map['tilem' + i + '_' + j]._visible = false; } if (_root.map['tilem' + i + '_' + j]._currentframe == 14) { posX = _root.map['tilem' + i + '_' + j]._x; posY = _root.map['tilem' + i + '_' + j]._y; duplicateMovieClip(_root.ground.insideblock, 'tilem' + i + '_' + j, i * dimen + j * 1); _root.ground['tilem' + i + '_' + j]._x = posX; _root.ground['tilem' + i + '_' + j]._y = posY; _root.ground['tilem' + i + '_' + j].gotoAndStop(3); _root.map['tilem' + i + '_' + j]._visible = false; } if (_root.map['tilem' + i + '_' + j]._currentframe == 15) { posX = _root.map['tilem' + i + '_' + j]._x; posY = _root.map['tilem' + i + '_' + j]._y; duplicateMovieClip(_root.ground.insideblock, 'tilem' + i + '_' + j, i * dimen + j * 1); _root.ground['tilem' + i + '_' + j]._x = posX; _root.ground['tilem' + i + '_' + j]._y = posY; _root.ground['tilem' + i + '_' + j].gotoAndStop(4); _root.map['tilem' + i + '_' + j]._visible = false; } if (_root.map['tilem' + i + '_' + j]._currentframe == 4) { _root.spawnX = _root.map['tilem' + i + '_' + j]._x + _root.map._x; _root.spawnY = _root.map['tilem' + i + '_' + j]._y + _root.map._y; charholder = _root.map['tilem' + i + '_' + j]; removeMovieClip(_root.map['tilem' + i + '_' + j]); } if (_root.map['tilem' + i + '_' + j]._currentframe == 11) { _root.spawnXX = _root.map['tilem' + i + '_' + j]._x + _root.map._x; _root.spawnYY = _root.map['tilem' + i + '_' + j]._y + _root.map._y; duplicateMovieClip(enemy, 'newenemy' + dd, dd); _root['newenemy' + dd]._x = _root.spawnXX; _root['newenemy' + dd]._y = _root.spawnYY; dd += 1; _root.map['tilem' + i + '_' + j].collect3 = true; _root.map['tilem' + i + '_' + j].gotoAndStop(7); } ++j; } ++i; } } function resetgame() { _root.char.gravity = 0; _root.char.gotoAndStop(1); _root.char._x = _root.spawnX; _root.char._y = _root.spawnY; _root.char.gravity = 0; _root.char.speed2 = 0; _root.dd = 900; _root.hook._x = -200; _root.hook._y = -200; _root.aa = 2000; _root.attack = false; _root.gotkey = false; i = 0; while (i < 18) { j = 0; while (j < 13) { if (_root.map['tilem' + i + '_' + j]._currentframe == 13) { _root.map['tilem' + i + '_' + j].timer = 0; _root.map['tilem' + i + '_' + j].onearrow = false; } if (_root.map['tilem' + i + '_' + j]._currentframe == 12) { _root.map['tilem' + i + '_' + j].timer = 0; _root.map['tilem' + i + '_' + j].onearrow = false; } if (_root.map['tilem' + i + '_' + j]._currentframe == 18) { _root.map['tilem' + i + '_' + j].fall = false; } if (_root.map['tilem' + i + '_' + j]._currentframe == 21) { _root.map['tilem' + i + '_' + j].timer = 0; _root.map['tilem' + i + '_' + j].onearrow = false; } ++j; } ++i; } } stop(); mfade.gotoAndPlay(1); dimen = 30; testing = false; attack = false; onlyone = false; gotkey = false; stopallbox = false; runit = false; dd = 900; aa = 2000; playinggame = true; h = 0; _root.higherdepths = 10000; levelnumberdisplay.text = levelnumber; onEnterFrame = function () { if (levelnumber == 26) { _root.gotoAndStop(8); } }; level1 = '1,1,1,1,1,1,1,1,1,1,1,1,1|1,1,1,2,2,2,2,1,1,1,1,1,1|1,1,1,1,1,1,2,1,1,1,1,1,1|1,1,1,1,1,4,2,1,1,1,1,1,1|1,1,1,1,1,1,2,1,1,1,1,1,1|1,1,1,1,1,1,2,1,1,1,1,1,1|1,1,1,1,1,1,2,1,1,1,1,1,1|1,1,1,1,1,1,1,1,1,1,1,1,1|1,1,8,1,1,1,1,1,1,1,1,1,1|1,1,1,1,1,1,1,1,1,1,1,1,1|1,1,1,1,1,1,2,1,1,1,1,1,1|1,1,1,1,1,1,2,1,1,1,1,1,1|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5,2,1,9|1,1,1,1,2,2,2,1,1,1,1,1,9|1,1,1,2,2,2,2,1,1,1,1,1,2|16,1,1,2,2,2,16,1,1,1,1,1,15|1,1,1,14,9,2,16,1,1,1,1,1,15|1,1,1,1,9,2,16,1,1,1,1,1,15|1,1,1,1,9,2,2,1,1,1,1,1,2|1,1,1,1,1,9,2,1,1,1,1,1,12|1,1,1,1,1,9,2,1,1,1,1,1,12|1,1,1,1,1,9,2,1,1,1,1,15,2|1,1,1,1,1,1,1,1,1,1,1,1,1'; makemap(); _root.loadgrid(); playgame(); _root.char._x = _root.spawnX; _root.char._y = _root.spawnY; _root.attack = false; onMouseDown = function () { if (_root.char._currentframe != 4) { if (_root.aa > 2200) { _root.aa = 2000; } _root.hook.speed = 10; _root.mouseisdown = true; if (_root.testing == true and _root.attack == false) { _root.hookhit._x = _root._xmouse; _root.hookhit._y = _root._ymouse; _root.attack = true; _root.hook.gotoAndStop(1); _root.hook._x = _root.char._x; _root.hook._y = _root.char._y - 16; _root.hook.heading = true; } } }; onMouseUp = function () { _root.mouseisdown = false; }; } movieClip 431 { } movieClip 432 { instance ttt of movieClip 123 tile-m { onClipEvent (press) { if (_currentframe == _root.select and _root.testing == false) { if (_currentframe !== 13 and _currentframe !== 14 and _currentframe !== 18) { } } } onClipEvent (load) { timer = random(25); onearrow = false; kk = true; } onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { if (_root.testing == false and _root.mouseisdown == true) { if (_root.onlyone == true and _root.select != 4 and _currentframe == 4) { gotoAndStop(_root.select); _root.onlyone = false; } if (_root.select == 4 and _root.onlyone == false) { gotoAndStop(4); _root.onlyone = true; } if (_root.select != 4) { gotoAndStop(_root.select); } } } if (_root.testing == false) { onearrow = false; timer = random(25); } if (_currentframe == 14 and kk == true and _root.testing == false) { this.swapDepths(_root.higherdepths); _root.higherdepths += 1; kk = false; } if (_currentframe == 16 and kk == true and _root.testing == false) { this.swapDepths(_root.higherdepths); _root.higherdepths += 1; kk = false; } if (_currentframe == 17 and kk == true and _root.testing == false) { this.swapDepths(_root.higherdepths); _root.higherdepths += 1; kk = false; } if (_root.testing == true) { kk = true; if (this.hitTest(_root.char._x, _root.char._y, true) and _currentframe == 5 and _root.gotkey == true and _root.fade._currentframe == 1) { _root.fade.gotoAndPlay(2); if (_root.sound == true) { my_sound = new Sound(); my_sound.attachSound('opendoor'); my_sound.start(0, 1); } _root.playinggame = false; } if (_root.char.hit.hitTest(hit) and _currentframe == 6) { _root.score += 1; gotoAndStop(7); collect = true; } if (_root.char.hit.hitTest(hitkey) and _currentframe == 8) { gotoAndStop(7); _root.gotkey = true; collect2 = true; } if (_root.char.hit.hitTest(spikehit) and _currentframe == 9) { _root.char._x = _root.spawnX; _root.char._y = _root.spawnY; _root.char.gravity = 0; } if (_currentframe == 12) { ++timer; if (timer > 50 and onearrow == false) { duplicateMovieClip(_root.myarrow, 'newarrow' + _root.aa, _root.aa); _root['newarrow' + _root.aa]._x = _x + _root.map._x; _root['newarrow' + _root.aa]._y = _y + _root.map._y + 20; _root['newarrow' + _root.aa]._rotation = _rotation - 90; _root['newarrow' + _root.aa].holder = this; _root.aa += 1; timer = 0; onearrow = true; } } if (_currentframe == 13) { ++timer; if (timer > 50 and onearrow == false and turret.dontshoot == false) { duplicateMovieClip(_root.mybullet, 'newbullet' + _root.aa, _root.aa); _root['newbullet' + _root.aa]._x = _x + _root.map._x; _root['newbullet' + _root.aa]._y = _y + _root.map._y; _root['newbullet' + _root.aa]._rotation = turret._rotation - 90; _root['newbullet' + _root.aa].holder = this; _root.aa += 1; timer = 0; onearrow = true; } } if (_currentframe == 16) { if (_root.hook.hitTest(smasher.tt._x + _root.ground._x + _x, smasher.tt._y + _root.ground._y + _y + 50, true) or _root.hook.hitTest(smasher._x + _root.ground._x + _x, smasher._y + _root.ground._y + _y - 60, true)) { if (_root.hook._currentframe == 2) { smasher.stop(); } } else { smasher.play(); } } if (_currentframe == 18) { if (fall == true and fallspikes.stopper == false) { fallspikes._y += fallspikes.speed; } } if (_currentframe == 21) { ++timer; if (timer > 50 and onearrow == false) { duplicateMovieClip(_root.myspike, 'newspike' + _root.aa, _root.aa); _root['newspike' + _root.aa]._x = _x + _root.map._x; _root['newspike' + _root.aa]._y = _y + _root.map._y + 20; _root['newspike' + _root.aa].holder = this; _root.aa += 1; timer = 0; onearrow = true; } } } } } } movieClip 441 { frame 1 { stop(); } frame 10 { stop(); removeMovieClip(_parent); } } movieClip 444 { instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation += 1; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation += 1; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation += 1; } } instance of movieClip 61 { onClipEvent (enterFrame) { this._rotation += 1; } } } movieClip 446 { } movieClip 448 { frame 1 { stop(); } instance hit of movieClip 88 { onClipEvent (enterFrame) { if (_root.char.hitTest(this) and _parent._currentframe == 1 and nogo == false) { _root.char.gravity = -20; if (_root.sound == true) { my_sound = new Sound(); my_sound.attachSound('spring'); my_sound.start(0, 1); } _parent.gotoAndPlay(2); } } } frame 2 { if (_root.sound == true) { my_sound2 = new Sound(); my_sound2.attachSound('springsound'); my_sound2.start(0, 1); } } instance hit of movieClip 88 { onClipEvent (enterFrame) { if (_root.char.hitTest(this)) { gotoAndPlay(2); _root.char.gravity = -40; _root.char.gotoAndStop(3); } } } } movieClip 449 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } instance of movieClip 448 { onClipEvent (enterFrame) { if (_root.hook.hitTest(_x + _root.ground._x + _parent._x, _y + _root.ground._y + _parent._y, true) or _root.hook.hitTest(_x + _root.ground._x + _parent._x, _y + _root.ground._y + _parent._y - 20, true) or _root.hook.hitTest(_x + _root.ground._x + _parent._x + 20, _y + _root.ground._y + _parent._y - 20, true) or _root.hook.hitTest(_x + _root.ground._x + _parent._x - 20, _y + _root.ground._y + _parent._y - 20, true)) { if (_root.hook._currentframe == 2) { hit.nogo = true; } } else { hit.nogo = false; } } } frame 5 { stop(); } } movieClip 450 { instance insideblock of movieClip 449 { onClipEvent (load) { bob = false; timer = 0; speed = 2; dir = false; steppedon = false; myboxhit = false; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (_root.hook.hitTest(_x + _root.ground._x - 10, _y + _root.ground._y + 10, true) or _root.hook.hitTest(_x + _root.ground._x + 10, _y + _root.ground._y + 10, true) or _root.hook.hitTest(_x + _root.ground._x - 10, _y + _root.ground._y - 10, true) or _root.hook.hitTest(_x + _root.ground._x + 10, _y + _root.ground._y - 10, true)) { if (_root.hook._currentframe == 2) { myboxhit = true; } } else { myboxhit = false; } if (this.hitTest(_root.char._x + _root.char.hit._width / 2, _root.char._y + 10, true) or this.hitTest(_root.char._x - _root.char.hit._width / 2, _root.char._y + 10, true)) { if (breaking._currentframe == 1 and myboxhit == false) { breaking.gotoAndPlay(2); steppedon = true; } if (myboxhit == true and _root.hook._currentframe == 2) { breaking.stop(); } else { steppedon = true; breaking.play(); } } else { if (steppedon == true and breaking._currentframe != 10 and myboxhit == false) { breaking.play(); } } } if (_currentframe == 3) { if (dir == false) { _x = _x + speed; if (this.hitTest(_root.char._x + _root.char.hit._width / 2, _root.char._y + 10, true) or this.hitTest(_root.char._x - _root.char.hit._width / 2, _root.char._y + 10, true)) { _root.char.speed2 = speed; touched = true; } else { if (touched == true) { _root.char.speed2 = 0; touched = false; } } if (timer > 100) { timer = 0; dir = true; } } if (dir == true) { _x = _x - speed; if (this.hitTest(_root.char._x + _root.char.hit._width / 2, _root.char._y + 10, true) or this.hitTest(_root.char._x - _root.char.hit._width / 2, _root.char._y + 10, true)) { _root.char.speed2 = -speed; touched = true; } else { if (touched == true) { _root.char.speed2 = 0; touched = false; } } if (timer > 100) { timer = 0; dir = false; } } if (_root.hook.hitTest(_x + _root.ground._x - 5, _y + _root.ground._y, true) or _root.hook.hitTest(_x + _root.ground._x + 35, _y + _root.ground._y, true)) { if (_root.hook._currentframe == 2) { speed = 0; } } else { speed = 2; ++timer; } } } } } instance hook of movieClip 84 { onClipEvent (load) { heading = true; speed = 10; nomore = false; notground = false; timer = 0; } onClipEvent (enterFrame) { if (_currentframe == 2) { if (Key.isDown(32)) { _root.hook._x = -100; _root.hook._y = -100; } } if (_root.testing == true and _root.attack == true) { if (heading == true) { gotoAndStop(1); grab.gotoAndStop(1); thing.gotoAndStop(1); X = _root.hookhit._x - _x; Y = _root.hookhit._y - _y; angle = Math.atan2(Y, X); _rotation = angle * 180 / Math.PI - 180; heading = false; } _x = _x + Math.cos(angle) * speed; _y = _y + Math.sin(angle) * speed; if (_root.hookhit.hitTest(hit)) { if (_root.sound == true) { my_sound = new Sound(); my_sound.attachSound('sphere'); my_sound.start(0, 1); } gotoAndStop(2); speed = 0; _root.attack = false; } } } } movieClip 452 { } movieClip 453 { } instance coin of movieClip 453 { onClipEvent (load) { if (_name != 'coin') { _x = _root.hook._x; _y = _root.hook._y; } } onClipEvent (enterFrame) { if (_name != 'coin') { if (_root.char.hit.hitTest(hit) and _currentframe == 1) { _root.score += 1; removeMovieClip(this); } if (_root.hook.hitTest(hit) and !_root.char.hitTest(this) and _root.hook.nomore == false and _root.hook.grab._currentframe == 1) { _root.hook.thing.gotoAndStop(2); _root.hook.grab.gotoAndStop(2); _root.hook.onwayback = true; removeMovieClip(this); } } } } movieClip 455 { } movieClip 456 { instance of movieClip 455 { onClipEvent (enterFrame) { if (!_root.hook.hitTest(_x, _y, true) and _root.hook._currentframe == 2) { } else { _rotation = _rotation + 30; } } } } instance enemy of movieClip 456 { onClipEvent (load) { function checkrightwall() { if (_root.ground.hitTest(_x + hit._width / 2 + 5, _y - hit._height / 2, true) or _root.ground.hitTest(_x + hit._width / 2 + 5, _y - 3, true) or _root.ground.hitTest(_x + hit._width / 2 + 5, _y - hit._height, true)) { _x = _x - 0.1; bob = false; timer = 0; } } function checkleftwall() { if (_root.ground.hitTest(_x - hit._width / 2, _y - hit._height / 2, true) or _root.ground.hitTest(_x - hit._width / 2, _y - 3, true) or _root.ground.hitTest(_x - hit._width / 2, _y - hit._height, true)) { _x = _x + 0.1; bob = false; timer = 0; } } if (_name != 'enemy') { gravity = 0; speed = 3; jumpheight = 14; scale = _xscale; side = false; bob = 0; timer = 0; dir = false; } } onClipEvent (enterFrame) { if (_name != 'enemy') { if (_root.char.hit3.hitTest(_x, _y, true)) { _root.char.gotoAndStop(4); } if (timer > 10) { checkleftwall(); checkrightwall(); } gravity += 1; _y = _y + gravity; while (_root.ground.hitTest(_x, _y, true) or _root.ground.hitTest(_x, _y, true)) { _y = _y - 1; gravity = 0; } if (_root.ground.hitTest(_x, _y + 3, true) and side == false) { _x = _x + speed; dir = true; if (!_root.ground.hitTest(_x + 10, _y + 3, true) or _root.ground.hitTest(_x + 10, _y - 10, true)) { side = true; _xscale = -scale; } } if (_root.ground.hitTest(_x, _y + 3, true) and side == true) { _x = _x - speed; dir = false; if (!_root.ground.hitTest(_x - 10, _y + 3, true) or _root.ground.hitTest(_x - 10, _y - 10, true)) { side = false; _xscale = scale; } } if (_root.hook.hitTest(_x, _y - 12, true) and _root.hook._currentframe == 2) { speed = 0; } else { speed = 3; } } } } movieClip 457 { instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true) or _root.char.hitTest(point.x - 7, point.y, true) or _root.char.hitTest(point.x + 7, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } } instance myarrow of movieClip 457 { onClipEvent (load) { speed = 8; _x = _x + Math.cos(_rotation * Math.PI / 180) * 40; _y = _y + Math.sin(_rotation * Math.PI / 180) * 40; } onClipEvent (enterFrame) { if (_name != 'myarrow') { if (_x < -50 or _x > 800 or _y < -50 or _y > 550) { holder.onearrow = false; removeMovieClip(this); } if (_root.hook.hitTest(_x, _y, true) and _root.hook._currentframe == 2) { speed = 0; } else { speed = 8; } _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; if (_root.char.hit3.hitTest(this)) { _root.char.gotoAndStop(4); } if (_root.ground.hitTest(_x, _y, true)) { holder.onearrow = false; removeMovieClip(this); } } } } movieClip 463 { frame 4 { removeMovieClip(_parent); } } movieClip 464 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 463 { onClipEvent (enterFrame) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { stop(); } else { play(); } } } } instance mybullet of movieClip 464 { onClipEvent (load) { speed = 8; _x = _x + Math.cos(_rotation * Math.PI / 180) * 20; _y = _y + Math.sin(_rotation * Math.PI / 180) * 20; } onClipEvent (enterFrame) { if (_name != 'mybullet' and _currentframe == 1) { if (_x < -50 or _x > 800 or _y < -50 or _y > 550) { holder.onearrow = false; removeMovieClip(this); } if (_root.hook.hitTest(_x, _y, true) and _root.hook._currentframe == 2) { speed = 0; } else { speed = 8; } _x = _x + Math.cos(_rotation * Math.PI / 180) * speed; _y = _y + Math.sin(_rotation * Math.PI / 180) * speed; if (_root.char.hit3.hitTest(_x, _y, true)) { _root.char.gotoAndStop(4); } if (_root.ground.hitTest(_x, _y, true)) { holder.onearrow = false; if (_root.sound == true) { my_sound = new Sound(); my_sound.attachSound('ric3'); my_sound.start(0, 1); } gotoAndStop(2); } } } } movieClip 466 { } movieClip 468 { } movieClip 469 { instance of movieClip 48 { onClipEvent (enterFrame) { if (_root.testing == true) { point = {'x': _x, 'y': _y}; _parent.localToGlobal(point); if (_root.char.hitTest(point.x, point.y, true) or _root.char.hitTest(point.x - 7, point.y, true) or _root.char.hitTest(point.x + 7, point.y, true)) { _root.char.gotoAndStop(4); } if (_root.hook.hitTest(point.x, point.y, true) and _root.hook._currentframe == 2) { _parent.stopper = true; } else { _rotation = _rotation + 25; } } } } } instance myspike of movieClip 469 { onClipEvent (load) { speed = 8; speed2 = 0; gravity = 0; } onClipEvent (enterFrame) { if (_name != 'myspike') { if (_root.hook.hitTest(_x, _y, true) and _root.hook._currentframe == 2) { } else { _rotation = _rotation + 20; _x = _x + speed2; ++gravity; _y = _y + gravity; } if (gravity > 10) { gravity = 10; } if (_root.ground.hitTest(_x - _width / 2, _y - 5, true)) { speed2 = 5; } if (_root.ground.hitTest(_x + _width / 2, _y - 5, true)) { speed2 = -5; } if (_root.ground.hitTest(_x, _y + _height / 2, true)) { gravity = -10; if (speed2 == 0) { speed2 = 5; } } if (_root.ground.hitTest(_x, _y - _height / 2, true)) { gravity = 5; } if (_x < -50 or _x > 800 or _y < -50 or _y > 550) { holder.onearrow = false; removeMovieClip(this); } if (_root.char.hit3.hitTest(hit)) { _root.char.gotoAndStop(4); } } } } movieClip 473 { } movieClip 483 { } movieClip 485 { } movieClip 501 { frame 20 { _root.fade.gotoAndPlay(2); stop(); } } movieClip 521 { frame 20 { stop(); } } movieClip 522 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); if (_root.sound == true) { my_sound = new Sound(); my_sound.attachSound('splat'); my_sound.start(0, 1); } } } instance char of movieClip 522 { onClipEvent (load) { function checkrightwall() { while (_root.ground.hitTest(_x + hit._width / 2, _y - hit._height / 2, true) or _root.ground.hitTest(_x + hit._width / 2, _y - 3, true) or _root.ground.hitTest(_x + hit._width / 2, _y - hit._height, true)) { _x = _x - 0.1; } } function checkleftwall() { while (_root.ground.hitTest(_x - hit._width / 2, _y - hit._height / 2, true) or _root.ground.hitTest(_x - hit._width / 2, _y - 3, true) or _root.ground.hitTest(_x - hit._width / 2, _y - hit._height, true)) { _x = _x + 0.1; } } gravity = 0; speed = 5; speed2 = 0; addon = false; jumpheight = 14; scale = _xscale; myspeeder; dir = false; } onClipEvent (enterFrame) { _x = _x + speed2; if (_currentframe != 4 and _root.testing == true) { checkleftwall(); checkrightwall(); gravity += 1; _y = _y + gravity; while (_root.ground.hitTest(_x + hit._width / 2, _y, true) or _root.ground.hitTest(_x - hit._width / 2, _y, true)) { _y = _y - 1; gravity = 0; } if (Key.isDown(68) or Key.isDown(39)) { dir = false; _x = _x + speed; _xscale = scale; if (_root.ground.hitTest(_x, _y + 3, true) and _currentframe != 3) { gotoAndStop(2); } else { if (_root.ground.hitTest(_x, _y + 3, true) and !Key.isDown(87) or _root.ground.hitTest(_x + _width / 2, _y + 3, true) and !Key.isDown(87) or _root.ground.hitTest(_x - _width / 2, _y + 3, true) and !Key.isDown(87)) { if (gravity >= 0) { gotoAndStop(1); } } else { if (!_root.ground.hitTest(_x, _y + 3, true) and !Key.isDown(87) or !_root.ground.hitTest(_x + _width / 2, _y + 3, true) and !Key.isDown(87) or !_root.ground.hitTest(_x - _width / 2, _y + 3, true) and !Key.isDown(87)) { if (gravity >= 0) { gotoAndStop(3); } } } } checkrightwall(); } else { if (Key.isDown(65) or Key.isDown(37)) { dir = true; _x = _x - speed; _xscale = -scale; if (_root.ground.hitTest(_x, _y + 3, true) and _currentframe != 3) { gotoAndStop(2); } else { if (_root.ground.hitTest(_x, _y + 3, true) and !Key.isDown(87) or _root.ground.hitTest(_x + _width / 2, _y + 3, true) and !Key.isDown(87) or _root.ground.hitTest(_x - _width / 2, _y + 3, true) and !Key.isDown(87)) { if (gravity >= 0) { gotoAndStop(1); } } else { if (!_root.ground.hitTest(_x, _y + 3, true) and !Key.isDown(87) or !_root.ground.hitTest(_x + _width / 2, _y + 3, true) and !Key.isDown(87) or !_root.ground.hitTest(_x - _width / 2, _y + 3, true) and !Key.isDown(87)) { if (gravity >= 0) { gotoAndStop(3); } } } } checkleftwall(); } else { if (_root.ground.hitTest(_x, _y + 3, true) and !Key.isDown(87) or _root.ground.hitTest(_x + _width / 2, _y + 3, true) and !Key.isDown(87) or _root.ground.hitTest(_x - _width / 2, _y + 3, true) and !Key.isDown(87)) { if (gravity >= 0) { gotoAndStop(1); } } } } if (Key.isDown(87) and gravity == 0 or Key.isDown(38) and gravity == 0) { if (_root.ground.hitTest(_x + hit._width / 2, _y + 1, true) or _root.ground.hitTest(_x - hit._width / 2, _y + 1, true)) { gravity = -jumpheight; gotoAndStop(3); } } if (_root.ground.hitTest(_x + hit._width / 2, _y - hit._height - 12, true) or _root.ground.hitTest(_x - hit._width / 2, _y - hit._height, true) or _root.ground.hitTest(_x, _y - hit._height - 12, true)) { _y = _y + 2; gravity = 2; } if (_y > 550 and _root.fade._currentframe == 1) { if (_root.sound == true) { my_sound = new Sound(); my_sound.attachSound('scream'); my_sound.start(0, 1); } _root.fade.gotoAndPlay(2); } Xd = _root.char._xmouse - gun._x; Yd = _root.char._ymouse - gun._y; radAngle = Math.atan2(Yd, Xd); gun._rotation = int(radAngle * 360 / 6.283185307179586); } } } // unknown tag 88 length 64 movieClip 525 { } instance of movieClip 525 { onClipEvent (load) { beenpressed = false; bob = false; fred = false; john = false; _root.sound = true; } onClipEvent (enterFrame) { if (!Key.isDown(81)) { john = false; } if (Key.isDown(81)) { if (_root._quality == 'HIGH' and john == false) { _root._quality = 'LOW'; john = true; } else { if (_root._quality == 'LOW' and john == false) { _root._quality = 'HIGH'; john = true; } } } if (!Key.isDown(83)) { bob = false; } if (Key.isDown(83)) { if (_root.sound == true and bob == false) { _root.sound = false; stopAllSounds(); bob = true; } else { if (_root.sound == false and bob == false) { _root.sound = true; _root.nextsong(); bob = true; } } } if (Key.isDown(77)) { stopAllSounds(); _root.gotoAndStop(5); } } } movieClip 529 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } instance of movieClip 529 { onClipEvent (enterFrame) { if (_root.levelnumber == 1) { gotoAndStop(1); } else { if (_root.levelnumber == 2) { gotoAndStop(2); } else { gotoAndStop(3); } } } } movieClip 532 { } movieClip 533 { } instance of movieClip 533 { onClipEvent (press) { getURL('http://www.mofunzone.com/online_games/time_sphere.shtml', '_blank'); } } movieClip 534 { frame 1 { stop(); } frame 10 { if (_root.playinggame == true) { _root.refreshgrid(); _root.makemap(); _root.loadgrid(); _root.playgame(); _root.resetgame(); } if (_root.playinggame == false) { _root.levelnumber += 1; _root.levelnumberdisplay.text = _root.levelnumber; _root.storage.data.levelnumber = _root.levelnumber; _root.storage.flush(); _root.refreshgrid(); _root.makemap(); _root.loadgrid(); _root.playgame(); _root.playinggame = true; _root.resetgame(); } } } instance fade of movieClip 534 { onClipEvent (load) { bob = 9999999999.0; this.swapDepths(bob); } } frame 8 { stop(); i = 900; while (i < 1001) { removeMovieClip(_root['newcoin' + i]); removeMovieClip(_root['newkey' + i]); removeMovieClip(_root['newenemy' + i]); ++i; } i = 2000; while (i < 2201) { removeMovieClip(_root['newarrow' + i]); removeMovieClip(_root['newbullet' + i]); removeMovieClip(_root['newspike' + i]); ++i; } } instance of movieClip 406 { onClipEvent (press) { getURL('http://www.mofunzone.com', '_blank'); } } instance of movieClip 411 { onClipEvent (press) { getURL('http://www.eggysgames.com', 'blank'); } }




http://swfchan.com/19/90686/info.shtml
Created: 28/3 -2019 07:07:16 Last modified: 28/3 -2019 07:07:16 Server time: 05/05 -2024 09:12:51