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/86060634?noj=FRM86060634-14DC" width="1" height="1"></div>

Cells.swf

This is the info page for
Flash #47760

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


Text
CELLS

Instructions

Avoid these cells at all costs, colliding with one will
cause you to lose a life. Losing all your lives will mean
game over.

Collect these to help you.

PLAY

PLAY

Collect these cells, to earn points and help your cell to
grow. Once you get to a certain size, your cell with
divide creating a new cell to help  fight with yours.

Use the W A S D or Arrow keys to move your cell
around and shoot the other cells using your mouse.

Select Controls

WASD

WASD

WASD

Arrows

Arrows

Arrows

Quality

Sounds on

Sounds on

Sounds off

Sounds off

A game by Eren Kilich

H

H

M

M

L

L

+

Lives remaining:

5

Back

Back

Shots taken

Accuracy

Number of spawn created

SCORE:

Cells collected

Insert name:

1000

Proceed to Highscores

Proceed to Highscores

Enemies destroyed

100

100

100

100

100

%

ActionScript [AS1/AS2]

Frame 1
MochiAd.showPreGameAd({id:"8ccf8e67ba77f707", res:"600x500"}); mochi.MochiServices.connect("8ccf8e67ba77f707");
Frame 2
stop(); stop(); _root.kongregateServices.connect(); _lockroot = true; 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) ? (getVersion()) : (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); } } else { res = mc.createEmptyMovieClip(mb + swfid, lv); res.loadMovie(u); } return(res); } __com_mochibot__("15212952", this, 10301, true);
Instance of Symbol 60 MovieClip in Frame 2
onClipEvent (enterFrame) { if (_root.soundson == false) { _root.beep.stop(); _root.shot.stop(); _root.spawned.stop(); _root.exploded.stop(); } }
Frame 3
_root.numberofshotstaken = 0; _root.numberofdots = 0; _root.numberofspawn = 0; _root.enemieskilled = 0; _root.shotsontarget = 0; _root.points = 0; _root.exploded = new Sound(); _root.exploded.attachSound("exploded"); _root.shot = new Sound(); _root.shot.attachSound("shot"); _root.beep = new Sound(); _root.beep.attachSound("beep"); function randRange(min, max) { var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min; return(_local1); } function explosion(originX, originY) { var _local5 = randRange(explosion.minFragments, explosion.maxFragments); var _local2; var _local4 = this.getNextHighestDepth(); var _local3 = 0; while (_local3 < _local5) { _local2 = attachMovie("Fragment", "fragment" + _local4, _local4); _local2._x = originX; _local2._y = originY; _local2._width = (_local2._height = randRange(explosion.minSize, explosion.maxSize)); while (!_local2.speedX) { _local2.speedX = randRange(-explosion.maxSpeed, explosion.maxSpeed); } while (!_local2.speedY) { _local2.speedY = randRange(-explosion.maxSpeed, explosion.maxSpeed); } _local2._alpha = randRange(10, 100); _local2.cacheAsBitmap = true; _local2.onEnterFrame = function () { this._x = this._x + this.speedX; this._y = this._y + this.speedY; if ((((this._x < gLEFT) || (this._x > gRIGHT)) || (this._y < gTOP)) || (this._y > gBOTTOM)) { this.removeMovieClip(); } }; _local3++; _local4++; } } function pexplosion(originX, originY) { var _local5 = randRange(pexplosion.minFragments, pexplosion.maxFragments); var _local2; var _local4 = this.getNextHighestDepth(); var _local3 = 0; while (_local3 < _local5) { _local2 = attachMovie("pFragment", "pfragment" + _local4, _local4); _local2._x = originX; _local2._y = originY; _local2._width = (_local2._height = randRange(pexplosion.minSize, pexplosion.maxSize)); while (!_local2.speedX) { _local2.speedX = randRange(-pexplosion.maxSpeed, pexplosion.maxSpeed); } while (!_local2.speedY) { _local2.speedY = randRange(-pexplosion.maxSpeed, pexplosion.maxSpeed); } _local2._alpha = randRange(10, 100); _local2.cacheAsBitmap = true; _local2.onEnterFrame = function () { this._x = this._x + this.speedX; this._y = this._y + this.speedY; if ((((this._x < gLEFT) || (this._x > gRIGHT)) || (this._y < gTOP)) || (this._y > gBOTTOM)) { this.removeMovieClip(); } }; _local3++; _local4++; } } function cexplosion(originX, originY) { var _local5 = randRange(cexplosion.minFragments, cexplosion.maxFragments); var _local2; var _local4 = this.getNextHighestDepth(); var _local3 = 0; while (_local3 < _local5) { _local2 = attachMovie("cFragment", "cfragment" + _local4, _local4); _local2._x = originX; _local2._y = originY; _local2._width = (_local2._height = randRange(cexplosion.minSize, cexplosion.maxSize)); while (!_local2.speedX) { _local2.speedX = randRange(-cexplosion.maxSpeed, cexplosion.maxSpeed); } while (!_local2.speedY) { _local2.speedY = randRange(-cexplosion.maxSpeed, cexplosion.maxSpeed); } _local2._alpha = randRange(10, 100); _local2.cacheAsBitmap = true; _local2.onEnterFrame = function () { this._x = this._x + this.speedX; this._y = this._y + this.speedY; if ((((this._x < gLEFT) || (this._x > gRIGHT)) || (this._y < gTOP)) || (this._y > gBOTTOM)) { this.removeMovieClip(); } }; _local3++; _local4++; } } function csexplosion(originX, originY) { var _local5 = randRange(csexplosion.minFragments, csexplosion.maxFragments); var _local2; var _local4 = this.getNextHighestDepth(); var _local3 = 0; while (_local3 < _local5) { _local2 = attachMovie("csFragment", "csfragment" + _local4, _local4); _local2._x = originX; _local2._y = originY; _local2._width = (_local2._height = randRange(csexplosion.minSize, csexplosion.maxSize)); while (!_local2.speedX) { _local2.speedX = randRange(-csexplosion.maxSpeed, csexplosion.maxSpeed); } while (!_local2.speedY) { _local2.speedY = randRange(-csexplosion.maxSpeed, csexplosion.maxSpeed); } _local2._alpha = randRange(10, 100); _local2.cacheAsBitmap = true; _local2.onEnterFrame = function () { this._x = this._x + this.speedX; this._y = this._y + this.speedY; if ((((this._x < gLEFT) || (this._x > gRIGHT)) || (this._y < gTOP)) || (this._y > gBOTTOM)) { this.removeMovieClip(); } }; _local3++; _local4++; } } function sexplosion(originX, originY) { var _local5 = randRange(sexplosion.minFragments, sexplosion.maxFragments); var _local2; var _local4 = this.getNextHighestDepth(); var _local3 = 0; while (_local3 < _local5) { _local2 = attachMovie("sFragment", "sfragment" + _local4, _local4); _local2._x = originX; _local2._y = originY; _local2._width = (_local2._height = randRange(sexplosion.minSize, sexplosion.maxSize)); while (!_local2.speedX) { _local2.speedX = randRange(-sexplosion.maxSpeed, sexplosion.maxSpeed); } while (!_local2.speedY) { _local2.speedY = randRange(-sexplosion.maxSpeed, sexplosion.maxSpeed); } _local2._alpha = randRange(10, 100); _local2.cacheAsBitmap = true; _local2.onEnterFrame = function () { this._x = this._x + this.speedX; this._y = this._y + this.speedY; if ((((this._x < gLEFT) || (this._x > gRIGHT)) || (this._y < gTOP)) || (this._y > gBOTTOM)) { this.removeMovieClip(); } }; _local3++; _local4++; } } stop(); _root.rednumb = 80; _root.purplenumb = 120; _root.crimsonnumb = 190; _root.health = 5; timer = 0; _root.purpley = false; _root.bulletCounter = 80; _root.spawnbulletCounter = 150; _root.l = 500; _root.i = 0; _root.s = 200; _root.j = 300; _root.k = 400; _root.cs = 450; onEnterFrame = function () { if (_root.rednumb < 10) { _root.rednumb = 10; } if (_root.purplenumb < 20) { _root.purplenumb = 20; } if (_root.crimsonnumb < 30) { _root.crimsonnumb = 30; } timer++; if (timer > 1000) { _root.purpley = true; _root.purp = true; } if (timer > 3000) { _root.crimsony = true; } _root.score = int((((_root.points * 2) + (_root.numberofspawn * 5)) + (_root.numberofdots * 5)) + (_root.accuracy * 15)); _root.accuracy = _root.ko * 100; _root.ko = _root.shotsontarget / _root.numberofshotstaken; if (_root.health < 1) { _root.char.removeMovieClip(); _root.health = 0; i = 0; while (i < 50) { _root["dot" + i].removeMovieClip(); i++; } i = 300; while (i < 330) { _root["red" + i].removeMovieClip(); i++; } i = 400; while (i < 430) { _root["purple" + i].removeMovieClip(); i++; } i = 500; while (i < 530) { _root["crimson" + i].removeMovieClip(); i++; } i = 450; while (i < 480) { _root["crimsonspawn" + i].removeMovieClip(); i++; } i = 200; while (i < 230) { _root["spawn" + i].removeMovieClip(); i++; } i = 750; while (i < 780) { _root["addspawn" + i].removeMovieClip(); i++; } i = 900; while (i < 950) { _root["health" + i].removeMovieClip(); i++; } i = 700; while (i < 750) { _root["speed" + i].removeMovieClip(); i++; } _root.gotoAndStop("end"); } if (_root.i > 49) { _root.i = 0; } if (_root.j > 329) { _root.j = 300; } if (_root.k > 429) { _root.k = 400; } if (_root.l > 529) { _root.l = 500; } if (_root.cs > 479) { _root.cs = 450; } _root.bullet._y = -1000; if (_root.bulletCounter > 100) { _root.bulletCounter = 80; } if (_root.spawnbulletCounter > 180) { _root.spawnbulletCounter = 150; } _root.shooter._x = _root.char._x; _root.shooter._y = _root.char._y; _root.spawn.speed = 0; _root.spawn._rotation = 90; _root.spawn._x = 1000; _root.spawn._y = 1000; _root.purple._y = -1000; _root.purple.speed = 0; _root.dot.speed = 0; _root.dot._x = -100; _root.red._y = -1000; _root.red.speed = 0; _root.spawnBullet._y = -1000; _root.crimson._x = 1000; _root.crimson.speed = 0; _root.crimsonspawn.speed = 0; _root.crimsonspawn._rotation = 90; _root.crimsonspawn._x = 1000; if (random(50) == 1) { _root.dot.duplicateMovieClip("dot" + _root.i, _root.i); _root.i++; } if (random(_root.rednumb) == 1) { _root.red.duplicateMovieClip("red" + _root.j, _root.j); _root.j++; } if (((random(_root.purplenumb) == 1) && (_root.purpley)) && (_root.purp)) { _root.purple.duplicateMovieClip("purple" + _root.k, _root.k); _root.k++; } if ((random(_root.crimsonnumb) == 1) && (_root.crimsony)) { _root.crimson.duplicateMovieClip("crimson" + _root.l, _root.l); _root.l++; } r = 300; while (r < 330) { if (_root["red" + r].dead == true) { explosion(_root["red" + r]._x, _root["red" + r]._y); } r++; } r = 400; while (r < 430) { if (_root["purple" + r].dead == true) { pexplosion(_root["purple" + r]._x, _root["purple" + r]._y); } r++; } r = 500; while (r < 530) { if (_root["crimson" + r].dead == true) { cexplosion(_root["crimson" + r]._x, _root["crimson" + r]._y); } r++; } r = 450; while (r < 480) { if (_root["crimsonspawn" + r].dead == true) { csexplosion(_root["crimsonspawn" + r]._x, _root["crimsonspawn" + r]._y); } r++; } r = 200; while (r < 250) { if (_root["spawn" + r].dead == true) { sexplosion(_root["spawn" + r]._x, _root["spawn" + r]._y); } r++; } }; _global.gLEFT = 0; _global.gTOP = 90; _global.gRIGHT = Stage.width; _global.gBOTTOM = Stage.height; var maxSpeed = 25; var minSize = 4; var maxSize = 8; var minFragments = 50; var maxFragments = 150; explosion.maxSpeed = 30; explosion.minSize = 5; explosion.maxSize = 9; explosion.minFragments = 10; explosion.maxFragments = 50; pexplosion.maxSpeed = 30; pexplosion.minSize = 5; pexplosion.maxSize = 9; pexplosion.minFragments = 10; pexplosion.maxFragments = 50; cexplosion.maxSpeed = 30; cexplosion.minSize = 5; cexplosion.maxSize = 9; cexplosion.minFragments = 10; cexplosion.maxFragments = 50; csexplosion.maxSpeed = 30; csexplosion.minSize = 5; csexplosion.maxSize = 9; csexplosion.minFragments = 10; csexplosion.maxFragments = 50; sexplosion.maxSpeed = 30; sexplosion.minSize = 5; sexplosion.maxSize = 9; sexplosion.minFragments = 10; sexplosion.maxFragments = 50;
Instance of Symbol 78 MovieClip "dot" in Frame 3
onClipEvent (load) { o = 0; hit = false; hx = random(10) + 5; setProperty(this, _height , hx); if (random(5) < 2) { _x = 600; } else { _x = 0; } y = random(410) + 90; setProperty(this, _width , hx); speed = random(2) + 2; } onClipEvent (enterFrame) { timer++; if (timer >= timerMax) { speed = random(2) + 2; xx = random(600); yy = random(410) + 90; timerMax = 15; timer = 0; } if (_x > xx) { _x = (_x - speed); } if (_x < xx) { _x = (_x + speed); } if (_y > yy) { _y = (_y - speed); } if (_y < yy) { _y = (_y + speed); } } onClipEvent (enterFrame) { _x = (_x - xspeed); o++; if (o > 2) { hit = false; } if (hit == true) { _x = (_x + xspeed); _y = (_y + yspeed); } a = 0; while (a < 50) { if (_root["dot" + a].hitTest(this)) { hit = true; o = 0; ax = _root["dot" + a]._x - _x; ay = _root["dot" + a]._y - _y; angle = Math.atan2(ay, ax); _root["dot" + a].xspeed = 2 * Math.cos(angle); _root["dot" + a].yspeed = 2 * Math.sin(angle); } a++; } } onClipEvent (enterFrame) { if (this._x < 0) { this._x = 0; this.xspeed = this.xspeed * -1; } else if (this._x > 600) { this._x = 600; this.xspeed = this.xspeed * -1; } if (this._y < 90) { this._y = 90; this.yspeed = this.yspeed * -1; } else if (this._y > 500) { this._y = 500; this.yspeed = this.yspeed * -1; } } onClipEvent (enterFrame) { if (_root.cellwall.hitTest(_x, _y, true)) { speed = speed * -0.9; sign_y = sign_y * -1; hit = true; o = 0; sign_x = sign_x * -1; ax = _x - _root.cellwall._x; ay = _y - _root.cellwall._y; angle = Math.atan2(ay, ax); xspeed = -5 * Math.cos(angle); yspeed = -5 * Math.sin(angle); } }
Instance of Symbol 80 MovieClip "spawn" in Frame 3
onClipEvent (load) { o = 20; hit = false; hx = 20; _root.spawned = new Sound(); _root.spawned.attachSound("spawned"); _root.sshooter.duplicateMovieClip("sshooter" + _root.s, _root.s); _root.s++; speed = random(2) + 2; setProperty(this, _height , hx); setProperty(this, _width , _height); this._x = _root.spawnpointx; this._y = _root.spawnpointy; } onClipEvent (enterFrame) { if (this._currentframe == 3) { this.removeMovieClip(); } timer++; if (timer >= timerMax) { speed = random(2) + 2; xx = random(600); yy = random(410) + 90; timerMax = 15; timer = 0; } if (_x > xx) { _x = (_x - speed); } if (_x < xx) { _x = (_x + speed); } if (_y > yy) { _y = (_y - speed); } if (_y < yy) { _y = (_y + speed); } } onClipEvent (enterFrame) { _root.spawn.gotoAndStop(4); this._x = this._x - xspeed; gh = getProperty(this, _height); gw = getProperty(this, _width); o++; if (o > 20) { hit = false; xspeed = 0; yspeed = 0; } if (hit == true) { ug = false; _x = (_x + xspeed); _y = (_y + yspeed); } a = 0; while (a < 50) { if (_root["dot" + a].hitTest(this)) { neww = gw + (getProperty(_root["dot" + a], _width) / 2); newh = gh + (getProperty(_root["dot" + a], _height) / 2); if (getProperty(_root["dot" + a], _height) < getProperty(this, _height)) { setProperty(this, _height , newh); setProperty(this, _width , _height); _root["dot" + a].removeMovieClip(); if (_root.soundson) { _root.beep.start(); } } ax = _root["dot" + a]._x - _x; ay = _root["dot" + a]._y - _y; angle = Math.atan2(ay, ax); _root["dot" + a].xspeed = 2 * Math.cos(angle); _root["dot" + a].yspeed = 2 * Math.sin(angle); } a++; } a = 200; while (a < _root.s) { if (_root["spawn" + a].hitTest(this)) { hit = true; o = 0; ax = _root["spawn" + a]._x - _x; ay = _root["spawn" + a]._y - _y; sangle = Math.atan2(ay, ax); _root["spawn" + a].xspeed = 2 * Math.cos(sangle); _root["spawn" + a].yspeed = 2 * Math.sin(sangle); } a++; } if (_root.char.hitTest(this)) { hit = true; o = 0; ax = _x - _root.char._x; ay = _y - _root.char._y; gangle = Math.atan2(ay, ax); xspeed = 2 * Math.cos(gangle); yspeed = 2 * Math.sin(gangle); } } onClipEvent (enterFrame) { if (this._x < 0) { this._x = 0; sign_x = sign_x * -1; sign_y = sign_y * -1; dx = dx * -1; } if (this._x > 600) { this._x = 600; sign_x = sign_x * -1; sign_y = sign_y * -1; dx = dx * -1; } if (this._y < 90) { this._y = 90; sign_y = sign_y * -1; sign_x = sign_x * -1; dy = dy * -1; } if (this._y > 500) { this._y = 500; sign_y = sign_y * -1; sign_x = sign_x * -1; dy = dy * -1; } } onClipEvent (enterFrame) { if (gh > 50) { split = true; } if (gh <= 50) { split = false; } if (split) { split = false; if (_root.soundson) { _root.spawned.start(); } _root.spawn.duplicateMovieClip("spawn" + _root.s, _root.s); _root.s++; setProperty(this, _height , 25); gh = 25; _root.numberofspawn = _root.numberofspawn + 1; setProperty(this, _width , _height); _root.spawnpointx = _x; _root.spawnpointy = _y; } } onClipEvent (enterFrame) { l++; distance = 100; if (rx < (_x - 70)) { this._x = this._x - 5; } if (rx > (_x + 70)) { this._x = this._x + 5; } if (ry < (_y - 70)) { this._y = this._y - 5; } if (ry > (_y + 70)) { this._y = this._y + 5; } } onClipEvent (load) { distance = 0; searchRadius = 0; xDist = 0; yDist = 0; } onClipEvent (enterFrame) { searchRadius = 1000; i = 300; while (i < 330) { xDist = _x - _root["red" + i]._x; yDist = _y - _root["red" + i]._y; distance = Math.sqrt(Math.pow(xDist, 2) + Math.pow(yDist, 2)); if (distance < searchRadius) { searchRadius = distance; Xd = _root["red" + i]._x - _x; Yd = _root["red" + i]._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); _root.spawn._rotation = 90; } i++; } u = 400; while (u < 430) { xpDist = _x - _root["purple" + u]._x; ypDist = _y - _root["purple" + u]._y; pdistance = Math.sqrt(Math.pow(xpDist, 2) + Math.pow(ypDist, 2)); if (pdistance < searchRadius) { searchRadius = pdistance; Xpd = _root["purple" + u]._x - _x; Ypd = _root["purple" + u]._y - _y; radAngle = Math.atan2(Ypd, Xpd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); _root.spawn._rotation = 90; } u++; } f = 500; while (f < 530) { xcDist = _x - _root["crimson" + f]._x; ycDist = _y - _root["crimson" + f]._y; cdistance = Math.sqrt(Math.pow(xcDist, 2) + Math.pow(ycDist, 2)); if (cdistance < searchRadius) { searchRadius = cdistance; Xcd = _root["crimson" + f]._x - _x; Ycd = _root["crimson" + f]._y - _y; radAngle = Math.atan2(Ycd, Xcd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); _root.spawn._rotation = 90; } f++; } q = 450; while (q < 480) { xqDist = _x - _root["crimsonspawn" + q]._x; yqDist = _y - _root["crimsonspawn" + q]._y; qdistance = Math.sqrt(Math.pow(xqDist, 2) + Math.pow(yqDist, 2)); if (qdistance < searchRadius) { searchRadius = qdistance; Xqd = _root["crimsonspawn" + q]._x - _x; Yqd = _root["crimsonspawn" + q]._y - _y; radAngle = Math.atan2(Yqd, Xqd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); _root.spawn._rotation = 90; } q++; } } onClipEvent (enterFrame) { if (this._currentframe == 1) { if (random(40) == 1) { _root.spawnbulletCounter++; _root.spawnbullet.duplicateMovieClip("spawnbullet" + _root.spawnbulletCounter, _root.spawnbulletCounter); if (_root.soundson) { _root.shot.start(); } _root["spawnbullet" + _root.spawnbulletCounter]._x = _x; _root["spawnbullet" + _root.spawnbulletCounter]._y = _y; _root["spawnbullet" + _root.spawnbulletCounter]._rotation = _rotation; _root["spawnbullet" + _root.spawnbulletCounter].speed = 25; _root["spawnbullet" + _root.spawnbulletCounter].x = Math.sin(_rotation * (Math.PI/180)) * _root["spawnbullet" + _root.spawnbulletCounter].speed; _root["spawnbullet" + _root.spawnbulletCounter].y = (Math.cos(_rotation * (Math.PI/180)) * _root["spawnbullet" + _root.spawnbulletCounter].speed) * -1; } } }
Instance of Symbol 84 MovieClip "char" in Frame 3
onClipEvent (load) { o = 0; this.swapDepths(1000); setProperty(this, _height , gh); setProperty(this, _width , gh); horizspeed = 0; verticalspeed = 0; addspeed = 1; decay = 0.8; maxSpeed = 10; isright = 1; isdown = 0; } onClipEvent (enterFrame) { gh = getProperty(this, _height); gw = getProperty(this, _width); gh = gw; gw = gh; if (_root.wasd == false) { if (Key.isDown(39)) { if (isright == 1) { if (horizspeed < maxSpeed) { horizspeed = horizspeed + addspeed; } } else { _xscale = (-_xscale); isright = 1; } } else if (Key.isDown(37)) { if (isright == 0) { if (horizspeed > (-maxSpeed)) { horizspeed = horizspeed - addspeed; } } else { _xscale = (-_xscale); isright = 0; } } else { horizspeed = horizspeed * decay; } if (Key.isDown(38)) { isdown = 0; if (verticalspeed > (-maxSpeed)) { verticalspeed = verticalspeed - addspeed; } } else if (Key.isDown(40)) { isdown = 1; if (verticalspeed < maxSpeed) { verticalspeed = verticalspeed + addspeed; } } else { verticalspeed = verticalspeed * decay; } if (isdown == 0) { this._y = this._y + verticalspeed; } if (isdown == 1) { this._y = this._y + verticalspeed; } this._x = this._x + horizspeed; } if (_root.wasd) { if (Key.isDown(68)) { if (isright == 1) { if (horizspeed < maxSpeed) { horizspeed = horizspeed + addspeed; } } else { _xscale = (-_xscale); isright = 1; } } else if (Key.isDown(65)) { if (isright == 0) { if (horizspeed > (-maxSpeed)) { horizspeed = horizspeed - addspeed; } } else { _xscale = (-_xscale); isright = 0; } } else { horizspeed = horizspeed * decay; } if (Key.isDown(87)) { isdown = 0; if (verticalspeed > (-maxSpeed)) { verticalspeed = verticalspeed - addspeed; } } else if (Key.isDown(83)) { isdown = 1; if (verticalspeed < maxSpeed) { verticalspeed = verticalspeed + addspeed; } } else { verticalspeed = verticalspeed * decay; } if (isdown == 0) { this._y = this._y + verticalspeed; } if (isdown == 1) { this._y = this._y + verticalspeed; } this._x = this._x + horizspeed; } } onClipEvent (enterFrame) { o++; if (o > 2) { hit = false; } if (hit == true) { _x = (_x + xspeed); _y = (_y + yspeed); } a = 0; while (a < 50) { if (_root["dot" + a].hitTest(this)) { hit = true; o = 0; neww = gh + (getProperty(_root["dot" + a], _width) / 2); newh = gh + (getProperty(_root["dot" + a], _height) / 2); if (getProperty(_root["dot" + a], _height) < getProperty(this, _height)) { setProperty(this, _height , newh); setProperty(this, _width , newh); _root.numberofdots = _root.numberofdots + 1; if (_root.soundson) { _root.beep.start(); } _root["dot" + a].removeMovieClip(); } ax = _root["dot" + a]._x - _x; ay = _root["dot" + a]._y - _y; angle = Math.atan2(ay, ax); _root["dot" + a].xspeed = 2 * Math.cos(angle); _root["dot" + a].yspeed = 2 * Math.sin(angle); } a++; } } onClipEvent (enterFrame) { if (this._x < 0) { this._x = 0; this.xspeed = this.xspeed * -1; } else if (this._x > 2500) { this._x = 2500; this.xspeed = this.xspeed * -1; } if (this._y < 0) { this._y = 0; this.yspeed = this.yspeed * -1; } else if (this._y > 2500) { this._y = 2500; this.yspeed = this.yspeed * -1; } } onClipEvent (enterFrame) { if (gh > 50) { split = true; } if (gh <= 50) { split = false; } if (split) { split = false; if (_root.soundson) { _root.spawned.start(); } _root.spawn.duplicateMovieClip("spawn" + _root.s, _root.s); _root.s++; setProperty(this, _height , 25); _root.numberofspawn = _root.numberofspawn + 1; setProperty(this, _width , _height); _root.spawnpointx = _x; _root.spawnpointy = _y; } } onClipEvent (enterFrame) { if (this._x < 0) { this._x = 0; this.xspeed = this.xspeed * -1; } else if (this._x > 600) { this._x = 600; this.xspeed = this.xspeed * -1; } if (this._y < 90) { this._y = 90; this.yspeed = this.yspeed * -1; } else if (this._y > 500) { this._y = 500; this.yspeed = this.yspeed * -1; } }
Instance of Symbol 86 MovieClip "bullet" in Frame 3
onClipEvent (load) { _x = _root.shooter._x; _y = _root.shooter._y; _rotation = _root.shooter._rotation; speed = 25; x = Math.sin(_root.shooter._rotation * (Math.PI/180)) * speed; y = (Math.cos(_root.shooter._rotation * (Math.PI/180)) * speed) * -1; } onClipEvent (enterFrame) { _x = (_x + x); _y = (_y + y); i = 300; while (i < 330) { if (_root["red" + i].hitTest(this)) { _root["red" + i].dead = true; _root["red" + i].health = _root["red" + i].health - 9; _root.shotsontarget = _root.shotsontarget + 1; ax = _root["red" + i]._x - _x; ay = _root["red" + i]._y - _y; angle = Math.atan2(ay, ax); _root["red" + i].speed = 0; _root["red" + i].o = 0; _root["red" + i].hit = true; _root["red" + i].xspeed = 4 * Math.cos(angle); _root["red" + i].yspeed = 4 * Math.sin(angle); _root["red" + i].gotoAndPlay(2); this.removeMovieClip(); } i++; } h = 400; while (h < 430) { if (_root["purple" + h].hitTest(this)) { _root["purple" + h].dead = true; _root.shotsontarget = _root.shotsontarget + 1; ax = _root["purple" + h]._x - _x; ay = _root["purple" + h]._y - _y; angle = Math.atan2(ay, ax); _root["purple" + h].speed = 0; _root["purple" + h].o = 0; _root["purple" + h].hit = true; _root["purple" + h].xspeed = 4 * Math.cos(angle); _root["purple" + h].yspeed = 4 * Math.sin(angle); _root["purple" + h].gotoAndPlay(2); this.removeMovieClip(); } h++; } i = 500; while (i < _root.l) { if (_root["crimson" + i].hitTest(this)) { if (_root["crimson" + i].splitted == false) { _root.shotsontarget = _root.shotsontarget + 1; ax = _root["crimson" + i]._x - _x; ay = _root["crimson" + i]._y - _y; angle = Math.atan2(ay, ax); _root["crimson" + i].speed = 0; _root["crimson" + i].o = 0; _root["crimson" + i].hit = true; _root["crimson" + i].xspeed = 4 * Math.cos(angle); _root["crimson" + i].yspeed = 4 * Math.sin(angle); _root["crimson" + i].split = true; this.removeMovieClip(); } else { _root.shotsontarget = _root.shotsontarget + 1; ax = _root["crimson" + i]._x - _x; ay = _root["crimson" + i]._y - _y; angle = Math.atan2(ay, ax); _root["crimson" + i].speed = 0; _root["crimson" + i].o = 0; _root["crimson" + i].hit = true; _root["crimson" + i].xspeed = 4 * Math.cos(angle); _root["crimson" + i].yspeed = 4 * Math.sin(angle); _root["crimson" + i].gotoAndPlay(2); _root["crimson" + i].dead = true; this.removeMovieClip(); } } p = 450; while (p < _root.cs) { if (_root["crimsonspawn" + p].hitTest(this)) { _root["crimsonspawn" + p].dead = true; _root.shotsontarget = _root.shotsontarget + 1; ax = _root["crimsonspawn" + p]._x - _x; ay = _root["crimsonspawn" + p]._y - _y; angle = Math.atan2(ay, ax); _root["crimsonspawn" + p].speed = 0; _root["crimsonspawn" + p].o = 0; _root["crimsonspawn" + p].hit = true; _root["crimsonspawn" + p].xspeed = 4 * Math.cos(angle); _root["crimsonspawn" + p].yspeed = 4 * Math.sin(angle); _root["crimsonspawn" + p].gotoAndPlay(2); this.removeMovieClip(); } p++; } i++; } if (this._x > 600) { this.removeMovieClip(); } if (this._x < 0) { this.removeMovieClip(); } if (this._y > 500) { this.removeMovieClip(); } if (this._y < 90) { this.removeMovieClip(); } }
Instance of Symbol 88 MovieClip "shooter" in Frame 3
onClipEvent (enterFrame) { Xd = _root._xmouse - _x; Yd = _root._ymouse - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); } onClipEvent (enterFrame) { if (mouse) { this.play(); } } onClipEvent (mouseDown) { mouse = true; } onClipEvent (mouseUp) { mouse = false; }
Instance of Symbol 90 MovieClip "red" in Frame 3
onClipEvent (load) { o = 0; hit = false; hx = random(25) + 15; u = 0; setProperty(this, _height , hx); if (random(5) < 2) { _x = 600; } else { _x = 0; } _y = (random(410) + 90); setProperty(this, _width , hx); speed = random(2) + 2; } onClipEvent (enterFrame) { if (dead) { u++; } if (u > 10) { dead = false; } if (this._currentframe == 3) { this.removeMovieClip(); } if (this.hitTest(_root.char)) { this.dead = true; _root.health = _root.health - 1; this.gotoAndPlay(2); } b = 200; while (b < 230) { if (this.hitTest(_root["spawn" + b])) { _root["spawn" + b].gotoAndPlay(2); _root["spawn" + b].dead = true; this.gotoAndPlay(2); this.dead = true; } b++; } _x = (_x - xspeed); timer++; if (timer >= timerMax) { speed = random(2) + 2; xx = random(600); yy = random(410) + 90; timerMax = 15; timer = 0; } if (_x > xx) { _x = (_x - speed); } if (_x < xx) { _x = (_x + speed); } if (_y > yy) { _y = (_y - speed); } if (_y < yy) { _y = (_y + speed); } } onClipEvent (enterFrame) { o++; if (o > 20) { hit = false; } if (hit == true) { speed = 0; _x = (_x + xspeed); _y = (_y + yspeed); } a = 0; while (a < 50) { if (_root["red" + a].hitTest(this)) { hit = true; o = 0; ax = _root["red" + a]._x - _x; ay = _root["red" + a]._y - _y; angle = Math.atan2(ay, ax); _root["red" + a].xspeed = 2 * Math.cos(angle); _root["red" + a].yspeed = 2 * Math.sin(angle); } a = 80; while (a < 100) { if (_root["bullet" + a].hitTest(this)) { hit = true; o = -100; ax = _root["bullet" + a]._x - _x; ay = _root["bullet" + a]._y - _y; angle = Math.atan2(ay, ax); this.xspeed = 3 * Math.cos(angle); this.yspeed = 3 * Math.sin(angle); } a++; } a++; } } onClipEvent (enterFrame) { if (this._x < 0) { this._x = 0; this.xspeed = this.xspeed * -1; } else if (this._x > 600) { this._x = 600; this.xspeed = this.xspeed * -1; } if (this._y < 90) { this._y = 90; this.yspeed = this.yspeed * -1; } else if (this._y > 500) { this._y = 500; this.yspeed = this.yspeed * -1; } } onClipEvent (enterFrame) { if (_root.cellwall.hitTest(_x, _y, true)) { speed = speed * -0.9; sign_y = sign_y * -1; hit = true; o = 0; sign_x = sign_x * -1; ax = _x - _root.cellwall._x; ay = _y - _root.cellwall._y; angle = Math.atan2(ay, ax); xspeed = -5 * Math.cos(angle); yspeed = -5 * Math.sin(angle); } }
Instance of Symbol 91 MovieClip "spawnbullet" in Frame 3
onClipEvent (load) { k = 0; } onClipEvent (enterFrame) { _x = (_x + x); k++; _y = (_y + y); if (k > 100) { this.removeMovieClip(); } i = 300; while (i < 330) { if (_root["red" + i].hitTest(this)) { _root["red" + i].dead = true; _root["red" + i].health = _root["red" + i].health - 9; ax = _root["red" + i]._x - _x; ay = _root["red" + i]._y - _y; angle = Math.atan2(ay, ax); _root["red" + i].speed = 0; _root["red" + i].o = 0; _root["red" + i].hit = true; _root["red" + i].xspeed = 4 * Math.cos(angle); _root["red" + i].yspeed = 4 * Math.sin(angle); _root["red" + i].gotoAndPlay(2); this.removeMovieClip(); } i++; } i = 400; while (i < 430) { if (_root["purple" + i].hitTest(this)) { _root["purple" + i].dead = true; ax = _root["purple" + i]._x - _x; ay = _root["purple" + i]._y - _y; angle = Math.atan2(ay, ax); _root["purple" + i].speed = 0; _root["purple" + i].o = 0; _root["purple" + i].hit = true; _root["purple" + i].xspeed = 4 * Math.cos(angle); _root["purple" + i].yspeed = 4 * Math.sin(angle); _root["purple" + i].gotoAndPlay(2); this.removeMovieClip(); } i++; } i = 500; while (i < _root.l) { if (_root["crimson" + i].hitTest(this)) { if (_root["crimson" + i].splitted == false) { ax = _root["crimson" + i]._x - _x; ay = _root["crimson" + i]._y - _y; angle = Math.atan2(ay, ax); _root["crimson" + i].speed = 0; _root["crimson" + i].o = 0; _root["crimson" + i].hit = true; _root["crimson" + i].xspeed = 4 * Math.cos(angle); _root["crimson" + i].yspeed = 4 * Math.sin(angle); _root["crimson" + i].split = true; this.removeMovieClip(); } else { ax = _root["crimson" + i]._x - _x; ay = _root["crimson" + i]._y - _y; angle = Math.atan2(ay, ax); _root["crimson" + i].speed = 0; _root["crimson" + i].o = 0; _root["crimson" + i].hit = true; _root["crimson" + i].xspeed = 4 * Math.cos(angle); _root["crimson" + i].yspeed = 4 * Math.sin(angle); _root["crimson" + i].gotoAndPlay(2); _root["crimson" + i].dead = true; this.removeMovieClip(); } } p = 450; while (p < _root.cs) { if (_root["crimsonspawn" + p].hitTest(this)) { ax = _root["crimsonspawn" + p]._x - _x; ay = _root["crimsonspawn" + p]._y - _y; angle = Math.atan2(ay, ax); _root["crimsonspawn" + p].speed = 0; _root["crimsonspawn" + p].o = 0; _root["crimsonspawn" + p].hit = true; _root["crimsonspawn" + p].xspeed = 4 * Math.cos(angle); _root["crimsonspawn" + p].yspeed = 4 * Math.sin(angle); _root["crimsonspawn" + p].gotoAndPlay(2); _root["crimsonspawn" + p].dead = true; this.removeMovieClip(); } p++; } i++; } if (this._x > 600) { this.removeMovieClip(); } if (this._x < 0) { this.removeMovieClip(); } if (this._y > 500) { this.removeMovieClip(); } if (this._y < 90) { this.removeMovieClip(); } }
Instance of Symbol 93 MovieClip "purple" in Frame 3
onClipEvent (load) { o = 0; hit = false; hx = random(25) + 15; setProperty(this, _height , hx); if (random(5) < 2) { _x = 600; } else { _x = 0; } _y = (random(410) + 90); setProperty(this, _width , _height); } onClipEvent (enterFrame) { _root.purple._x = 90; if (this._currentframe == 3) { this.removeMovieClip(); } if (this.hitTest(_root.char)) { this.gotoAndPlay(2); this.dead = true; _root.health = _root.health - 1; } b = 200; while (b < 230) { if (this.hitTest(_root["spawn" + b])) { _root["spawn" + b].gotoAndPlay(2); _root["spawn" + b].dead = true; this.gotoAndPlay(2); this.dead = true; } b++; } _x = (_x - xspeed); } onClipEvent (load) { distance = 0; searchRadius = 0; xDist = 0; yDist = 0; } onClipEvent (enterFrame) { searchRadius = 10000; i = 200; while (i < 230) { xDist = _x - _root["spawn" + i]._x; yDist = _y - _root["spawn" + i]._y; distance = Math.sqrt(Math.pow(xDist, 2) + Math.pow(yDist, 2)); chardis = Math.sqrt(Math.pow(_x - _root.char._x, 2) + Math.pow(_y - _root.char._y, 2)); if (distance < searchRadius) { searchRadius = distance; Xd = _root["spawn" + i]._x - _x; Yd = _root["spawn" + i]._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); x = Math.sin(_rotation * (Math.PI/180)) * (random(6) + 3); y = (Math.cos(_rotation * (Math.PI/180)) * (random(6) + 3)) * -1; } if (chardis < searchRadius) { searchRadius = chardis; Xd = _root.char._x - _x; Yd = _root.char._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(((radAngle * 360) / (Math.PI*2)) + 90); x = Math.sin(_rotation * (Math.PI/180)) * (random(6) + 3); y = (Math.cos(_rotation * (Math.PI/180)) * (random(6) + 3)) * -1; } i++; } } onClipEvent (enterFrame) { _x = (_x + x); _y = (_y + y); } onClipEvent (enterFrame) { o++; if (o > 20) { hit = false; } if (hit == true) { speed = 0; _x = (_x + xspeed); _y = (_y + yspeed); } a = 0; while (a < 50) { if (_root["purple" + a].hitTest(this)) { hit = true; o = 0; ax = _root["purple" + a]._x - _x; ay = _root["purple" + a]._y - _y; angle = Math.atan2(ay, ax); _root["purple" + a].xspeed = 2 * Math.cos(angle); _root["purple" + a].yspeed = 2 * Math.sin(angle); } a = 80; while (a < 100) { if (_root["bullet" + a].hitTest(this)) { hit = true; o = -100; ax = _root["bullet" + a]._x - _x; ay = _root["bullet" + a]._y - _y; angle = Math.atan2(ay, ax); this.xspeed = 3 * Math.cos(angle); this.yspeed = 3 * Math.sin(angle); } a++; } a++; } }
Instance of Symbol 95 MovieClip "crimson" in Frame 3
onClipEvent (load) { o = 0; hit = false; hx = random(50) + 30; splitted = false; setProperty(this, _height , hx); if (random(5) < 2) { _x = 600; } else { _x = 0; } _y = (random(410) + 90); setProperty(this, _width , hx); speed = random(2) + 2; } onClipEvent (enterFrame) { if (this._currentframe == 3) { this.removeMovieClip(); } if (this.hitTest(_root.char)) { _root.health = _root.health - 1; this.gotoAndPlay(2); this.dead = true; } b = 200; while (b < 230) { if (this.hitTest(_root["spawn" + b])) { _root["spawn" + b].gotoAndPlay(2); _root["spawn" + b].dead = true; this.gotoAndPlay(2); this.dead = true; } b++; } _x = (_x - xspeed); timer++; if (timer >= timerMax) { speed = random(2) + 2; xx = random(600); yy = random(410) + 90; timerMax = 15; timer = 0; } if (_x > xx) { _x = (_x - speed); } if (_x < xx) { _x = (_x + speed); } if (_y > yy) { _y = (_y - speed); } if (_y < yy) { _y = (_y + speed); } } onClipEvent (enterFrame) { o++; if (o > 20) { hit = false; } if (hit == true) { speed = 0; _x = (_x + xspeed); _y = (_y + yspeed); } a = 0; while (a < 50) { if (_root["red" + a].hitTest(this)) { hit = true; o = 0; ax = _root["red" + a]._x - _x; ay = _root["red" + a]._y - _y; angle = Math.atan2(ay, ax); _root["red" + a].xspeed = 2 * Math.cos(angle); _root["red" + a].yspeed = 2 * Math.sin(angle); } a = 80; while (a < 100) { if (_root["bullet" + a].hitTest(this)) { hit = true; o = -100; ax = _root["bullet" + a]._x - _x; ay = _root["bullet" + a]._y - _y; angle = Math.atan2(ay, ax); this.xspeed = 3 * Math.cos(angle); this.yspeed = 3 * Math.sin(angle); } a++; } a++; } } onClipEvent (enterFrame) { if (this._x < 0) { this._x = 0; this.xspeed = this.xspeed * -1; } else if (this._x > 600) { this._x = 600; this.xspeed = this.xspeed * -1; } if (this._y < 90) { this._y = 90; this.yspeed = this.yspeed * -1; } else if (this._y > 500) { this._y = 500; this.yspeed = this.yspeed * -1; } } onClipEvent (enterFrame) { if (_root.cellwall.hitTest(_x, _y, true)) { speed = speed * -0.9; sign_y = sign_y * -1; hit = true; o = 0; sign_x = sign_x * -1; ax = _x - _root.cellwall._x; ay = _y - _root.cellwall._y; angle = Math.atan2(ay, ax); xspeed = -5 * Math.cos(angle); yspeed = -5 * Math.sin(angle); } } onClipEvent (enterFrame) { if (split) { _root.crimsonspawn.duplicateMovieClip("crimsonspawn" + _root.cs, _root.cs); _root.cs++; setProperty(this, _height , 25); setProperty(this, _width , 25); _root.crimsonspawnpointx = _x; _root.crimsonspawnpointy = _y; split = false; splitted = true; } }
Instance of Symbol 96 MovieClip "crimsonspawn" in Frame 3
onClipEvent (load) { o = 0; hit = false; hx = 25; setProperty(this, _height , hx); _x = _root.crimsonspawnpointx; setProperty(this, _width , _height); _y = _root.crimsonspawnpointy; speed = random(2) + 2; } onClipEvent (enterFrame) { if (this._currentframe == 3) { this.removeMovieClip(); } if (this.hitTest(_root.char)) { _root.health = _root.health - 1; this.gotoAndPlay(2); this.dead = true; } b = 200; while (b < 230) { if (this.hitTest(_root["spawn" + b])) { _root["spawn" + b].gotoAndPlay(2); _root["spawn" + b].dead = true; this.gotoAndPlay(2); this.dead = true; } b++; } _x = (_x - xspeed); timer++; if (timer >= timerMax) { speed = random(2) + 2; xx = random(600); yy = random(410) + 90; timerMax = 15; timer = 0; } if (_x > xx) { _x = (_x - speed); } if (_x < xx) { _x = (_x + speed); } if (_y > yy) { _y = (_y - speed); } if (_y < yy) { _y = (_y + speed); } } onClipEvent (enterFrame) { o++; if (o > 20) { hit = false; } if (hit == true) { speed = 0; _x = (_x + xspeed); _y = (_y + yspeed); } a = 0; while (a < 50) { if (_root["red" + a].hitTest(this)) { hit = true; o = 0; ax = _root["red" + a]._x - _x; ay = _root["red" + a]._y - _y; angle = Math.atan2(ay, ax); _root["red" + a].xspeed = 2 * Math.cos(angle); _root["red" + a].yspeed = 2 * Math.sin(angle); } a = 80; while (a < 100) { if (_root["bullet" + a].hitTest(this)) { hit = true; o = -100; ax = _root["bullet" + a]._x - _x; ay = _root["bullet" + a]._y - _y; angle = Math.atan2(ay, ax); this.xspeed = 3 * Math.cos(angle); this.yspeed = 3 * Math.sin(angle); } a++; } a++; } } onClipEvent (enterFrame) { if (this._x < 0) { this._x = 0; this.xspeed = this.xspeed * -1; } else if (this._x > 600) { this._x = 600; this.xspeed = this.xspeed * -1; } if (this._y < 90) { this._y = 90; this.yspeed = this.yspeed * -1; } else if (this._y > 500) { this._y = 500; this.yspeed = this.yspeed * -1; } } onClipEvent (enterFrame) { if (_root.cellwall.hitTest(_x, _y, true)) { speed = speed * -0.9; sign_y = sign_y * -1; hit = true; o = 0; sign_x = sign_x * -1; ax = _x - _root.cellwall._x; ay = _y - _root.cellwall._y; angle = Math.atan2(ay, ax); xspeed = -5 * Math.cos(angle); yspeed = -5 * Math.sin(angle); } }
Instance of Symbol 100 MovieClip "healthup" in Frame 3
onClipEvent (load) { e = 900; _x = (random(580) + 10); _y = (random(400) + 90); } onClipEvent (enterFrame) { _root.healthup._x = -1000; if (random(3000) == 1) { this.duplicateMovieClip("health" + e, e); e++; } if (_root.char.hitTest(this)) { if (_root.soundson) { _root.beep.start(); } _root.health = _root.health + 1; this.removeMovieClip(); } }
Instance of Symbol 114 MovieClip "speedup" in Frame 3
onClipEvent (load) { e = 700; _x = (random(580) + 10); _y = (random(400) + 90); } onClipEvent (enterFrame) { _root.speedup._x = -1000; if (random(3500) == 1) { this.duplicateMovieClip("speed" + e, e); e++; } if (_root.char.hitTest(this)) { if (_root.soundson) { _root.beep.start(); } i = 500; while (i < _root.l) { _root["crimson" + i].dead = true; _root["crimson" + i].gotoAndPlay(2); i++; } i = 450; while (i < 480) { _root["crimsonspawn" + i].dead = true; _root["crimsonspawn" + i].gotoAndPlay(2); i++; } i = 300; while (i < 330) { _root["red" + i].dead = true; _root["red" + i].gotoAndPlay(2); i++; } i = 400; while (i < 430) { _root["purple" + i].dead = true; _root["purple" + i].gotoAndPlay(2); i++; } this.removeMovieClip(); } }
Instance of Symbol 118 MovieClip "addspawn" in Frame 3
onClipEvent (load) { e = 750; _x = (random(580) + 10); _y = (random(400) + 90); } onClipEvent (enterFrame) { _root.addspawn._x = -1000; if (random(3000) == 1) { this.duplicateMovieClip("addspawn" + e, e); e++; } if (_root.char.hitTest(this)) { if (_root.soundson) { _root.beep.start(); } _root.spawn.duplicateMovieClip("spawn" + _root.s, _root.s); _root.s++; _root.spawnpointx = _x; _root.spawnpointy = _y; this.removeMovieClip(); } }
Instance of Symbol 60 MovieClip in Frame 3
onClipEvent (enterFrame) { if (_root.soundson == false) { _root.beep.stop(); _root.shot.stop(); _root.spawned.stop(); _root.exploded.stop(); } }
Instance of Symbol 125 MovieClip in Frame 3
onClipEvent (load) { this.swapDepths(2000); this.gotoAndPlay(2); }
Frame 4
MochiAd.showInterLevelAd({id:"8ccf8e67ba77f707", res:"600x500"}); _root.health = 5;
Frame 5
_root.HPScoreService.postScore(_root.score, ""); _root.kongregateScores.submit(_root.score); ScoreAPI = new LocalConnection(); ScoreAPI.send(_root.com_mindjolt_api, "submitScore", _root.score); stop(); _root.score = int((((_root.points * 2) + (_root.numberofspawn * 5)) + (_root.numberofdots * 5)) + (_root.accuracy * 15));
Instance of Symbol 60 MovieClip in Frame 5
onClipEvent (enterFrame) { if (_root.soundson == false) { _root.beep.stop(); _root.shot.stop(); _root.spawned.stop(); _root.exploded.stop(); } }
Frame 6
mochi.MochiScores.showLeaderboard({boardID:"b36b7eb52703bbf9", score:_root.score, name:playername}); stop();
Frame 7
_root.gotoAndStop("menu");
Symbol 149 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices { static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel; function MochiServices () { } static function get id() { return(_id); } static function get clip() { return(_container); } static function get childClip() { return(_clip); } static function getVersion() { return("1.32"); } static function allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function get isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function set comChannelName(val) { if (val != undefined) { if (val.length > 3) { _sendChannelName = val + "_fromgame"; _rcvChannelName = val; initComChannels(); } } //return(__get__comChannelName()); } static function get connected() { return(_connected); } static function connect(id, clip, onError) { if ((!_connected) && (_clip == undefined)) { trace("MochiServices Connecting..."); _connecting = true; init(id, clip); } if (onError != undefined) { mochi.MochiServices.onError = onError; } else if (mochi.MochiServices.onError == undefined) { mochi.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } static function disconnect() { if (_connected || (_connecting)) { _connecting = (_connected = false); flush(true); if (_clip != undefined) { _clip.removeMovieClip(); delete _clip; } _listenChannel.close(); _rcvChannel.close(); } } static function init(id, clip) { _id = id; if (clip != undefined) { _container = clip; } else { _container = _root; } loadCommunicator(id, _container); } static function loadCommunicator(id, clip) { var _local2 = "_mochiservices_com_" + id; if (_clip != null) { return(_clip); } if (!isNetworkAvailable) { return(null); } allowDomains(_gatewayURL); _clip = clip.createEmptyMovieClip(_local2, 10336, false); _loader = new MovieClipLoader(); if (_loaderListener.waitInterval != null) { clearInterval(_loaderListener.waitInterval); } _loaderListener = {}; _loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { trace("MochiServices could not load."); mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, [errorCode]); }; _loaderListener.onLoadStart = function (target_mc) { this.isLoading = true; }; _loaderListener.startTime = getTimer(); _loaderListener.wait = function () { if ((getTimer() - this.startTime) > 10000) { if (!this.isLoading) { mochi.MochiServices.disconnect(); mochi.MochiServices.onError.apply(null, ["IOError"]); } clearInterval(this.waitInterval); } }; _loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000); _loader.addListener(_loaderListener); _loader.loadClip(_gatewayURL, _clip); _sendChannel = new LocalConnection(); _sendChannel._queue = []; _rcvChannel = new LocalConnection(); _rcvChannel.allowDomain = function (d) { return(true); }; _rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain; _rcvChannel._nextcallbackID = 0; _rcvChannel._callbacks = {}; listen(); return(_clip); } static function onStatus(infoObject) { if (!(infoObject.level === "error")) { } else { _connected = false; _listenChannel.connect(_listenChannelName); } } static function listen() { _listenChannel = new LocalConnection(); _listenChannel.handshake = function (args) { mochi.MochiServices.__set__comChannelName(args.newChannel); }; _listenChannel.allowDomain = function (d) { return(true); }; _listenChannel.allowInsecureDomain = _listenChannel.allowDomain; _listenChannel.connect(_listenChannelName); trace("Waiting for MochiAds services to connect..."); } static function initComChannels() { if (!_connected) { _sendChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()}); _rcvChannel.onStatus = function (infoObject) { mochi.MochiServices.onStatus(infoObject); }; _rcvChannel.onReceive = function (pkg) { var _local5 = pkg.callbackID; var _local4 = this._callbacks[_local5]; if (!_local4) { return(undefined); } var _local2 = _local4.callbackMethod; var _local3 = _local4.callbackObject; if (_local3 && (typeof(_local2) == "string")) { _local2 = _local3[_local2]; } if (_local2 != undefined) { _local2.apply(_local3, pkg.args); } delete this._callbacks[_local5]; }; _rcvChannel.onError = function () { mochi.MochiServices.onError.apply(null, ["IOError"]); }; _rcvChannel.connect(_rcvChannelName); trace("connected!"); _connecting = false; _connected = true; _listenChannel.close(); while (_sendChannel._queue.length > 0) { _sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift()); } } } static function flush(error) { var _local1; var _local2; while (_sendChannel._queue.length > 0) { _local1 = _sendChannel._queue.shift(); if (_local1.callbackID != null) { _local2 = _rcvChannel._callbacks[_local1.callbackID]; } delete _rcvChannel._callbacks[_local1.callbackID]; if (error) { handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod); } } } static function handleError(args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ["NotConnected"]); } if ((args.options != null) && (args.options.onError != null)) { args.options.onError.apply(null, ["NotConnected"]); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = "NotConnected"; if ((callbackObject != null) && (typeof(callbackMethod) == "string")) { callbackObject[callbackMethod](args); } else if (callbackMethod != null) { callbackMethod.apply(args); } } } static function send(methodName, args, callbackObject, callbackMethod) { if (_connected) { _sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } else { if ((_clip == undefined) || (!_connecting)) { onError.apply(null, ["NotConnected"]); handleError(args, callbackObject, callbackMethod); flush(true); return(undefined); } _sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID}); } _rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod}; _rcvChannel._nextcallbackID++; } static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf"; static var _listenChannelName = "__mochiservices"; static var _connecting = false; static var _connected = false; }
Symbol 150 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("2.5"); } static function showPreGameAd(options) { var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }, ad_skipped:function () { }, ad_progress:function (percent) { }}; options = _parseOptions(options, _local26); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") { options.ad_started(); options.ad_finished(); return(undefined); } var clip = options.clip; var _local22 = 11000; var _local25 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local14 = _getRes(options); var _local4 = _local14[0]; var _local13 = _local14[1]; mc._x = _local4 * 0.5; mc._y = _local13 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = _local4 * -0.5; chk._y = _local13 * -0.5; var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4); if (options.no_progress_bar) { _local6._visible = false; delete options.no_progress_bar; } else { _local6._x = 10; _local6._y = _local13 - 20; } var _local21 = options.color; delete options.color; var _local19 = options.background; delete options.background; var _local23 = options.outline; delete options.outline; var _local5 = _local6.createEmptyMovieClip("_outline", 1); _local5.beginFill(_local19); _local5.moveTo(0, 0); _local5.lineTo(_local4 - 20, 0); _local5.lineTo(_local4 - 20, 10); _local5.lineTo(0, 10); _local5.lineTo(0, 0); _local5.endFill(); var _local3 = _local6.createEmptyMovieClip("_inside", 2); _local3.beginFill(_local21); _local3.moveTo(0, 0); _local3.lineTo(_local4 - 20, 0); _local3.lineTo(_local4 - 20, 10); _local3.lineTo(0, 10); _local3.lineTo(0, 0); _local3.endFill(); _local3._xscale = 0; var _local7 = _local6.createEmptyMovieClip("_outline", 3); _local7.lineStyle(0, _local23, 100); _local7.moveTo(0, 0); _local7.lineTo(_local4 - 20, 0); _local7.lineTo(_local4 - 20, 10); _local7.lineTo(0, 10); _local7.lineTo(0, 0); chk.ad_msec = _local22; chk.ad_timeout = _local25; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; chk.onEnterFrame = function () { var _local6 = this._parent._parent; var _local11 = this._parent._mochiad_ctr; var _local5 = getTimer() - this.started; var _local3 = false; var _local4 = _local6.getBytesTotal(); var _local8 = _local6.getBytesLoaded(); var _local2 = (100 * _local8) / _local4; var _local10 = (100 * _local5) / chk.ad_msec; var _local9 = this._mochiad_bar._inside; var _local13 = Math.min(100, Math.min(_local2 || 0, _local10)); _local13 = Math.max(this.last_pcnt, _local13); this.last_pcnt = _local13; _local9._xscale = _local13; options.ad_progress(_local13); if (sendHostProgress) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2}); if (_local2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var _local7 = _local11.getBytesTotal(); if ((_local7 > 0) || (typeof(_local7) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) { options.ad_failed(); _local3 = true; } } if (_local5 > chk.ad_msec) { _local3 = true; } if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showClickAwayAd(options) { var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () { }, ad_finished:function () { }, ad_loaded:function (width, height) { }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function () { }}; options = _parseOptions(options, _local9); var clip = options.clip; var _local8 = options.ad_timeout; delete options.ad_timeout; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local4 = _getRes(options); var _local10 = _local4[0]; var _local7 = _local4[1]; mc._x = _local10 * 0.5; mc._y = _local7 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_timeout = _local8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; var _local20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { _local2 = true; chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local2) { delete this.onEnterFrame; } }; } static function showInterLevelAd(options) { var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }, ad_skipped:function () { }}; options = _parseOptions(options, _local13); var clip = options.clip; var _local10 = 11000; var _local12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local5 = _getRes(options); var _local14 = _local5[0]; var _local11 = _local5[1]; mc._x = _local14 * 0.5; mc._y = _local11 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = _local10; chk.ad_timeout = _local12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace("[MOCHIAD rpcTestFn] " + s); return(s); }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local4 > chk.ad_msec) { _local2 = true; } if (_local2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function showPreloaderAd(options) { trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); showPreGameAd(options); } static function showTimedAd(options) { trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); showInterLevelAd(options); } static function _allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function load(options) { var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, _local13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local9 = options.clip; if (!_isNetworkAvailable()) { return(null); } if (_local9._mochiad_loaded) { return(null); } var _local12 = options.depth; delete options.depth; var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12); var _local11 = _getRes(options); options.res = (_local11[0] + "x") + _local11[1]; options.server = options.server + options.id; delete options.id; _local9._mochiad_loaded = true; var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1); for (var _local7 in options) { _local4[_local7] = options[_local7]; } var _local10 = _local4.server; delete _local4.server; var _local14 = _allowDomains(_local10); _local6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var _local5 = new LocalConnection(); var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local5.mc = _local6; _local5.name = _local8; _local5.hostname = _local14; _local5.allowDomain = function (d) { return(true); }; _local5.allowInsecureDomain = _local5.allowDomain; _local5.connect(_local8); _local6.lc = _local5; _local4.lc = _local8; _local4.st = getTimer(); _local4.loadMovie(_local10 + ".swf", "POST"); return(_local6); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } if (clip._mochiad._containerLCName != undefined) { clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"}); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(options) { var _local3 = options.clip.getBounds(); var _local2 = 0; var _local1 = 0; if (typeof(options.res) != "undefined") { var _local4 = options.res.split("x"); _local2 = parseFloat(_local4[0]); _local1 = parseFloat(_local4[1]); } else { _local2 = _local3.xMax - _local3.xMin; _local1 = _local3.yMax - _local3.yMin; } if ((_local2 == 0) || (_local1 == 0)) { _local2 = Stage.width; _local1 = Stage.height; } return([_local2, _local1]); } static function _parseOptions(options, defaults) { var _local4 = {}; for (var _local8 in defaults) { _local4[_local8] = defaults[_local8]; } if (options) { for (var _local8 in options) { _local4[_local8] = options[_local8]; } } if (_root.mochiad_options) { var _local5 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local5.length) { var _local3 = _local5[_local2].split("="); _local4[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } if (_local4.id == "test") { trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); } return(_local4); } static function rpc(clip, callbackID, arg) { switch (arg.id) { case "setValue" : setValue(clip, arg.objectName, arg.value); break; case "getValue" : var _local4 = getValue(clip, arg.objectName); clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4); break; case "runMethod" : var _local3 = runMethod(clip, arg.method, arg.args); clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3); break; default : trace("[mochiads rpc] unknown rpc id: " + arg.id); } } static function setValue(base, objectName, value) { var _local2 = objectName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } base[_local2[_local1]] = value; } static function getValue(base, objectName) { var _local2 = objectName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } return(base[_local2[_local1]]); } static function runMethod(base, methodName, argsArray) { var _local2 = methodName.split("."); var _local1; _local1 = 0; while (_local1 < (_local2.length - 1)) { if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) { return(undefined); } base = base[_local2[_local1]]; _local1++; } if (typeof(base[_local2[_local1]]) == "function") { return(base[_local2[_local1]].apply(base, argsArray)); } return(undefined); } }
Symbol 151 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores { static var boardID, onClose, onError; function MochiScores () { } static function setBoardID(boardID) { mochi.MochiScores.boardID = boardID; mochi.MochiServices.send("scores_setBoardID", {boardID:boardID}); } static function showLeaderboard(options) { if (options.clip != null) { if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) { mochi.MochiServices.disconnect(); mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip); } delete options.clip; } if (options.name != null) { if (typeof(options.name) == "object") { if (options.name.text != undefined) { options.name = options.name.text; } } } if (options.score != null) { if (typeof(options.score) == "object") { if (options.score.text != undefined) { options.score = options.score.text; } } } if (options.onDisplay != null) { options.onDisplay(); } else { mochi.MochiServices.__get__clip().stop(); } if (options.onClose != null) { onClose = options.onClose; } else { onClose = function () { mochi.MochiServices.__get__clip().play(); }; } if (options.onError != null) { onError = options.onError; } else { onError = onClose; } if (options.boardID == null) { if (boardID != null) { options.boardID = boardID; } } mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose); } static function closeLeaderboard() { mochi.MochiServices.send("scores_closeLeaderboard"); } static function getPlayerInfo(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod); } static function submit(score, name, callbackObj, callbackMethod) { mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod); } static function requestList(callbackObj, callbackMethod) { mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod); } static function scoresArrayToObjects(scores) { var _local5 = {}; var _local1; var _local4; var _local2; var _local6; for (var _local8 in scores) { if (typeof(scores[_local8]) == "object") { if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) { _local5[_local8] = []; _local2 = scores[_local8]; _local4 = 0; while (_local4 < _local2.rows.length) { _local6 = {}; _local1 = 0; while (_local1 < _local2.cols.length) { _local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1]; _local1++; } _local5[_local8].push(_local6); _local4++; } } else { _local5[_local8] = {}; for (var _local7 in scores[_local8]) { _local5[_local8][_local7] = scores[_local8][_local7]; } } } else { _local5[_local8] = scores[_local8]; } } return(_local5); } static function doClose(args) { if (args.error == true) { if (args.errorCode == undefined) { args.errorCode = "IOError"; } onError.apply(null, [args.errorCode]); } else { onClose.apply(); } } }
Symbol 32 Button
on (release) { _root.gotoAndStop("game"); }
Symbol 43 Button
on (release) { _root.wasdmov.gotoAndStop(1); _root.arrowmov.gotoAndStop(1); }
Symbol 44 MovieClip Frame 1
stop(); _root.wasd = true;
Symbol 44 MovieClip Frame 2
stop(); _root.wasd = false;
Symbol 47 Button
on (release) { _root.wasdmov.gotoAndStop(2); _root.arrowmov.gotoAndStop(2); }
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
stop();
Symbol 54 Button
on (release) { _root.soundsonmov.gotoAndStop(2); }
Symbol 57 Button
on (release) { _root.soundsonmov.gotoAndStop(1); }
Symbol 58 MovieClip Frame 1
stop(); _root.soundson = true;
Symbol 58 MovieClip Frame 2
stop(); _root.soundson = false;
Symbol 66 Button
on (release) { _quality = "HIGH"; }
Symbol 69 Button
on (release) { _quality = "MEDIUM"; }
Symbol 72 Button
on (release) { _quality = "LOW"; }
Symbol 76 MovieClip Frame 1
stop(); stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
if (_root.soundson) { _root.exploded.start(); }
Symbol 80 MovieClip Frame 3
stop();
Symbol 80 MovieClip Frame 4
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
_root.bulletCounter++; _root.bullet.duplicateMovieClip("bullet" + _root.bulletCounter, _root.bulletCounter); _root.numberofshotstaken = _root.numberofshotstaken + 1; if (_root.soundson) { _root.shot.start(); }
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 2
_root.enemieskilled = _root.enemieskilled + 1; _root.points = _root.points + 10; if (_root.soundson) { _root.exploded.start(); }
Symbol 90 MovieClip Frame 3
stop(); _parent.dead = false;
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
_root.enemieskilled = _root.enemieskilled + 1; _root.points = _root.points + 15; if (_root.soundson) { _root.exploded.start(); }
Symbol 93 MovieClip Frame 3
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
_root.enemieskilled = _root.enemieskilled + 1; _root.points = _root.points + 20; if (_root.soundson) { _root.exploded.start(); }
Symbol 95 MovieClip Frame 3
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
_root.enemieskilled = _root.enemieskilled + 1; _root.points = _root.points + 20; if (_root.soundson) { _root.exploded.start(); }
Symbol 96 MovieClip Frame 3
stop();
Symbol 100 MovieClip Frame 501
_parent.removeMovieClip();
Symbol 108 MovieClip Frame 70
_root.rednumb = _root.rednumb - 2;
Symbol 110 MovieClip Frame 78
_root.purplenumb = _root.purplenumb - 2;
Symbol 112 MovieClip Frame 113
_root.crimsonnumb = _root.crimsonnumb - 2;
Symbol 114 MovieClip Frame 500
_parent.removeMovieClip();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
_root.char.maxSpeed = _root.char.maxSpeed + 10; _root.char.addSpeed = _root.char.addSpeed + 2;
Symbol 116 MovieClip Frame 375
_root.char.maxSpeed = _root.char.maxSpeed - 10; _root.char.addSpeed = _root.char.addSpeed - 2;
Symbol 118 MovieClip Frame 500
_parent.removeMovieClip();
Symbol 122 Button
on (release) { _root.char.removeMovieClip(); i = 0; while (i < 50) { _root["dot" + i].removeMovieClip(); i++; } i = 300; while (i < 330) { _root["red" + i].removeMovieClip(); i++; } i = 400; while (i < 430) { _root["purple" + i].removeMovieClip(); i++; } i = 500; while (i < 530) { _root["crimson" + i].removeMovieClip(); i++; } i = 450; while (i < 480) { _root["crimsonspawn" + i].removeMovieClip(); i++; } i = 200; while (i < 230) { _root["spawn" + i].removeMovieClip(); i++; } i = 750; while (i < 780) { _root["addspawn" + i].removeMovieClip(); i++; } i = 900; while (i < 950) { _root["health" + i].removeMovieClip(); i++; } i = 700; while (i < 750) { _root["speed" + i].removeMovieClip(); i++; } _root.gotoAndStop("menu"); }
Symbol 125 MovieClip Frame 30
stop();
Symbol 139 Button
on (release) { gotoAndStop ("highscores"); }
Symbol 147 Button
on (release) { _root.health = 5; _root.char.removeMovieClip(); i = 0; while (i < 50) { _root["dot" + i].removeMovieClip(); i++; } i = 300; while (i < 330) { _root["red" + i].removeMovieClip(); i++; } i = 400; while (i < 430) { _root["purple" + i].removeMovieClip(); i++; } i = 500; while (i < 530) { _root["crimson" + i].removeMovieClip(); i++; } i = 450; while (i < 480) { _root["crimsonspawn" + i].removeMovieClip(); i++; } i = 200; while (i < 230) { _root["spawn" + i].removeMovieClip(); i++; } _root.gotoAndStop("menu"); }

Library Items

Symbol 1 Sound [shotl]
Symbol 2 Sound [exploded]
Symbol 3 Sound [spawned]
Symbol 4 Sound [beep]
Symbol 5 Sound [shot]
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClip [p]Uses:6
Symbol 8 GraphicUsed by:9
Symbol 9 MovieClip [sFragment]Uses:8Used by:Timeline
Symbol 10 GraphicUsed by:11 12
Symbol 11 MovieClip [csFragment]Uses:10Used by:Timeline
Symbol 12 MovieClip [cFragment]Uses:10Used by:Timeline
Symbol 13 GraphicUsed by:14
Symbol 14 MovieClip [pFragment]Uses:13Used by:Timeline
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClip [Fragment]Uses:15Used by:Timeline
Symbol 149 MovieClip [__Packages.mochi.MochiServices]
Symbol 150 MovieClip [__Packages.MochiAd]
Symbol 151 MovieClip [__Packages.mochi.MochiScores]
Symbol 17 BitmapUsed by:18
Symbol 18 GraphicUses:17Used by:19
Symbol 19 MovieClipUses:18Used by:76  Timeline
Symbol 20 GraphicUsed by:21
Symbol 21 MovieClipUses:20Used by:Timeline
Symbol 22 FontUsed by:23 39 40 41 45 46 48 106
Symbol 23 TextUses:22Used by:Timeline
Symbol 24 FontUsed by:25 26 27 34 35 38 50 63 64 67 68 70 71
Symbol 25 TextUses:24Used by:Timeline
Symbol 26 TextUses:24Used by:Timeline
Symbol 27 TextUses:24Used by:Timeline
Symbol 28 FontUsed by:29 30
Symbol 29 TextUses:28Used by:32
Symbol 30 TextUses:28Used by:32
Symbol 31 GraphicUsed by:32
Symbol 32 ButtonUses:29 30 31Used by:Timeline
Symbol 33 GraphicUsed by:Timeline
Symbol 34 TextUses:24Used by:Timeline
Symbol 35 TextUses:24Used by:Timeline
Symbol 36 GraphicUsed by:37
Symbol 37 MovieClipUses:36Used by:Timeline
Symbol 38 TextUses:24Used by:Timeline
Symbol 39 TextUses:22Used by:44
Symbol 40 TextUses:22Used by:43
Symbol 41 TextUses:22Used by:43
Symbol 42 GraphicUsed by:43 47 54 57 69 122 147
Symbol 43 ButtonUses:40 41 42Used by:44
Symbol 44 MovieClipUses:39 43Used by:Timeline
Symbol 45 TextUses:22Used by:47
Symbol 46 TextUses:22Used by:47
Symbol 47 ButtonUses:45 46 42Used by:49
Symbol 48 TextUses:22Used by:49
Symbol 49 MovieClipUses:47 48Used by:Timeline
Symbol 50 TextUses:24Used by:Timeline
Symbol 51 FontUsed by:52 53 55 56
Symbol 52 TextUses:51Used by:54
Symbol 53 TextUses:51Used by:54
Symbol 54 ButtonUses:52 53 42Used by:58
Symbol 55 TextUses:51Used by:57
Symbol 56 TextUses:51Used by:57
Symbol 57 ButtonUses:55 56 42Used by:58
Symbol 58 MovieClipUses:54 57Used by:Timeline
Symbol 59 GraphicUsed by:60
Symbol 60 MovieClipUses:59Used by:Timeline
Symbol 61 FontUsed by:62 133 141 142 143 144 145 146
Symbol 62 TextUses:61Used by:Timeline
Symbol 63 TextUses:24Used by:66
Symbol 64 TextUses:24Used by:66
Symbol 65 GraphicUsed by:66 72
Symbol 66 ButtonUses:63 64 65Used by:Timeline
Symbol 67 TextUses:24Used by:69
Symbol 68 TextUses:24Used by:69
Symbol 69 ButtonUses:67 68 42Used by:Timeline
Symbol 70 TextUses:24Used by:72
Symbol 71 TextUses:24Used by:72
Symbol 72 ButtonUses:70 65 71Used by:Timeline
Symbol 73 GraphicUsed by:Timeline
Symbol 74 GraphicUsed by:76
Symbol 75 GraphicUsed by:76
Symbol 76 MovieClipUses:74 19 75Used by:Timeline
Symbol 77 GraphicUsed by:78
Symbol 78 MovieClipUses:77Used by:Timeline
Symbol 79 GraphicUsed by:80
Symbol 80 MovieClipUses:79Used by:Timeline
Symbol 81 GraphicUsed by:82
Symbol 82 MovieClipUses:81Used by:Timeline
Symbol 83 GraphicUsed by:84
Symbol 84 MovieClipUses:83Used by:Timeline
Symbol 85 GraphicUsed by:86 91
Symbol 86 MovieClipUses:85Used by:Timeline
Symbol 87 GraphicUsed by:88
Symbol 88 MovieClipUses:87Used by:Timeline
Symbol 89 GraphicUsed by:90
Symbol 90 MovieClipUses:89Used by:Timeline
Symbol 91 MovieClipUses:85Used by:Timeline
Symbol 92 GraphicUsed by:93
Symbol 93 MovieClipUses:92Used by:Timeline
Symbol 94 GraphicUsed by:95 96
Symbol 95 MovieClipUses:94Used by:Timeline
Symbol 96 MovieClipUses:94Used by:Timeline
Symbol 97 GraphicUsed by:100
Symbol 98 FontUsed by:99
Symbol 99 TextUses:98Used by:100
Symbol 100 MovieClipUses:97 99Used by:Timeline
Symbol 101 GraphicUsed by:105
Symbol 102 FontUsed by:103 127 128 129 132 134 137 138 140 148
Symbol 103 TextUses:102Used by:105
Symbol 104 GraphicUsed by:105
Symbol 105 MovieClipUses:101 103 104Used by:Timeline
Symbol 106 EditableTextUses:22Used by:Timeline
Symbol 107 GraphicUsed by:108
Symbol 108 MovieClipUses:107Used by:Timeline
Symbol 109 GraphicUsed by:110
Symbol 110 MovieClipUses:109Used by:Timeline
Symbol 111 GraphicUsed by:112
Symbol 112 MovieClipUses:111Used by:Timeline
Symbol 113 GraphicUsed by:114
Symbol 114 MovieClipUses:113Used by:Timeline
Symbol 115 GraphicUsed by:116
Symbol 116 MovieClipUses:115Used by:Timeline
Symbol 117 GraphicUsed by:118
Symbol 118 MovieClipUses:117Used by:Timeline
Symbol 119 FontUsed by:120 121
Symbol 120 TextUses:119Used by:122 147
Symbol 121 TextUses:119Used by:122 147
Symbol 122 ButtonUses:120 121 42Used by:Timeline
Symbol 123 GraphicUsed by:Timeline
Symbol 124 GraphicUsed by:125
Symbol 125 MovieClipUses:124Used by:Timeline
Symbol 126 GraphicUsed by:Timeline
Symbol 127 TextUses:102Used by:Timeline
Symbol 128 TextUses:102Used by:Timeline
Symbol 129 TextUses:102Used by:Timeline
Symbol 130 FontUsed by:131 135
Symbol 131 TextUses:130Used by:Timeline
Symbol 132 TextUses:102Used by:Timeline
Symbol 133 TextUses:61Used by:Timeline
Symbol 134 EditableTextUses:102Used by:Timeline
Symbol 135 EditableTextUses:130Used by:Timeline
Symbol 136 GraphicUsed by:139
Symbol 137 TextUses:102Used by:139
Symbol 138 TextUses:102Used by:139
Symbol 139 ButtonUses:136 137 138Used by:Timeline
Symbol 140 TextUses:102Used by:Timeline
Symbol 141 EditableTextUses:61Used by:Timeline
Symbol 142 EditableTextUses:61Used by:Timeline
Symbol 143 EditableTextUses:61Used by:Timeline
Symbol 144 EditableTextUses:61Used by:Timeline
Symbol 145 EditableTextUses:61Used by:Timeline
Symbol 146 TextUses:61Used by:Timeline
Symbol 147 ButtonUses:120 121 42Used by:Timeline
Symbol 148 EditableTextUses:102Used by:Timeline

Instance Names

"wasdmov"Frame 2Symbol 44 MovieClip
"arrowmov"Frame 2Symbol 49 MovieClip
"soundsonmov"Frame 2Symbol 58 MovieClip
"dot"Frame 3Symbol 78 MovieClip
"spawn"Frame 3Symbol 80 MovieClip
"cellwall"Frame 3Symbol 82 MovieClip
"char"Frame 3Symbol 84 MovieClip
"bullet"Frame 3Symbol 86 MovieClip
"shooter"Frame 3Symbol 88 MovieClip
"red"Frame 3Symbol 90 MovieClip
"spawnbullet"Frame 3Symbol 91 MovieClip
"purple"Frame 3Symbol 93 MovieClip
"crimson"Frame 3Symbol 95 MovieClip
"crimsonspawn"Frame 3Symbol 96 MovieClip
"healthup"Frame 3Symbol 100 MovieClip
"speedup"Frame 3Symbol 114 MovieClip
"speedy"Frame 3Symbol 116 MovieClip
"addspawn"Frame 3Symbol 118 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "shotl"
ExportAssets (56)Timeline Frame 1Symbol 2 as "exploded"
ExportAssets (56)Timeline Frame 1Symbol 3 as "spawned"
ExportAssets (56)Timeline Frame 1Symbol 4 as "beep"
ExportAssets (56)Timeline Frame 1Symbol 5 as "shot"
ExportAssets (56)Timeline Frame 1Symbol 7 as "p"
ExportAssets (56)Timeline Frame 1Symbol 9 as "sFragment"
ExportAssets (56)Timeline Frame 1Symbol 11 as "csFragment"
ExportAssets (56)Timeline Frame 1Symbol 12 as "cFragment"
ExportAssets (56)Timeline Frame 1Symbol 14 as "pFragment"
ExportAssets (56)Timeline Frame 1Symbol 16 as "Fragment"
ExportAssets (56)Timeline Frame 1Symbol 149 as "__Packages.mochi.MochiServices"
ExportAssets (56)Timeline Frame 1Symbol 150 as "__Packages.MochiAd"
ExportAssets (56)Timeline Frame 1Symbol 151 as "__Packages.mochi.MochiScores"

Labels

"menu"Frame 2
"game"Frame 3
"end"Frame 4
"highscores"Frame 6

Dynamic Text Variables

healthSymbol 106 EditableText"5"
nameSymbol 134 EditableText""
scoreSymbol 135 EditableText"1000"
enemieskilledSymbol 141 EditableText"100"
numberofdotsSymbol 142 EditableText"100"
numberofshotstakenSymbol 143 EditableText"100"
numberofspawnSymbol 144 EditableText"100"
accuracySymbol 145 EditableText"100"
nameSymbol 148 EditableText""




http://swfchan.com/10/47760/info.shtml
Created: 1/5 -2019 05:10:34 Last modified: 1/5 -2019 05:10:34 Server time: 14/05 -2024 06:25:22