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

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

Space Laser 2375.swf

This is the info page for
Flash #47191

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


Text
FLASH

LINKAGE DUMMY

Instructions

Mission:
Defend your buildings, by
destroying the bombs that
threaten your town.

Controls:
Use the mouse to move
the crosshairs to hit the
bombs, hit multiple bombs
for more points.

defend

destroy

Instructions

<p align="left"><font face="Eccentric Std" size="18" color="#ffffff" letterSpacing="0.000000" kerning="1">Score:</font></p>

<p align="left"><font face="Trajan Pro" size="18" color="#cccccc" letterSpacing="0.000000" kerning="1">Level #</font></p>

Submit Your Score

HIGH SCORE LIST

<p align="center"><font face="Viner Hand ITC" size="18" color="#000066" letterSpacing="0.000000" kerning="1">ENTER NAME</font></p>

SEND

SEND

SENT

<p align="center"></p>

Final Score

ActionScript [AS1/AS2]

Frame 1
stage.showMenu = false; if (random(2) == 0) { NewgroundsAPI.connectMovie(798); } else { NewgroundsAPI.connectMovie(796); }
Frame 3
stop();
Frame 4
function newEnemy() { if (level >= 1) { var _local3 = 1; } if (level >= 2) { var _local3 = random(2) + 1; } if (level >= 5) { var _local3 = random(3) + 1; } if (level >= 10) { var _local3 = random(4) + 1; } if (_local3 == 1) { attachMovie("bad1", "enem" + nmbr, nmbr); _root["enem" + nmbr].id = 1; } if (_local3 == 2) { attachMovie("bad2", "enem" + nmbr, nmbr); _root["enem" + nmbr].id = 2; } if (_local3 == 3) { attachMovie("bad3", "enem" + nmbr, nmbr); _root["enem" + nmbr].id = 3; } if (_local3 == 4) { attachMovie("bad4", "enem" + nmbr, nmbr); _root["enem" + nmbr].id = 4; } var _local2 = _root["enem" + nmbr]; nmbr++; enemies.push(_local2); _local2._x = Math.random() * 600; _local2._y = -50; _local2.stop(); _local2.targ = _root["b" + (random(6) + 1)]; while ((_local2.targ._currentframe == 2) && (ending == false)) { _local2.targ = _root["b" + (random(6) + 1)]; } _local2.speed = new Vector(_local2._x - _local2.targ._x, _local2._y - _local2.targ._y); _local2.speed.norm(); if (_local2.id == 1) { _local2.speed.scale(-1 * ((Math.random() * 4) + 1)); } if (_local2.id == 2) { _local2.speed.scale(-1 * ((Math.random() * 5) + 2)); } if (_local2.id == 3) { _local2.speed.scale(-3); } if (_local2.id == 4) { _local2.speed.scale(-1 * ((Math.random() * 1) + 0.5)); } } function rumble() { if (rumbleTime > 0) { rumbleTime = rumbleTime - 1; if ((rumbleTime % speedR) == 0) { _root._x = (Math.random() - 0.5) * distanceR; _root._y = (Math.random() - 0.5) * distanceR; } } else { _root._x = 0; _root._y = 0; } } stop(); b1.stop(); b2.stop(); b3.stop(); b4.stop(); b5.stop(); b6.stop(); Mouse.hide(); s1 = new Sound(this); s2 = new Sound(this); s3 = new Sound(this); s4 = new Sound(this); s1.attachSound("b1"); s2.attachSound("b2"); s3.attachSound("b3"); s4.attachSound("b4"); enemies = new Array(); diff = 0.01; nmbr = 0; mult = 1; score = 0; ending = false; level = 1; nextlevel = 110; cursor.swapDepths(999980); timer = 60; onMouseDown = function () { if ((beam._currentframe == 1) && (!ending)) { beam.play(); beam._rotation = (Math.atan2(beam._y - _ymouse, beam._x - _xmouse) / (Math.PI/180)) - 90; } }; onMouseMove = function () { cursor._x = _xmouse; cursor._y = _ymouse; updateAfterEvent(); }; onEnterFrame = function () { rumble(); if (Math.random() < diff) { newEnemy(); } if (beam._currentframe == 1) { mult = 1; } if (ending) { timer = timer - 1; if (timer <= 0) { for (i in _root) { _root[i].removeMovieClip(); } Mouse.show(); play(); delete onMouseDown; delete onEnterFrame; delete onMouseMove; } } var i = 0; while (i < enemies.length) { if (enemies[i].id >= 1) { enemies[i]._x = enemies[i]._x + enemies[i].speed.x; enemies[i]._y = enemies[i]._y + enemies[i].speed.y; if (enemies[i].id == 3) { enemies[i].speed.scale((1 / enemies[i].speed.vLength()) * ((enemies[i].speed.vLength() + (Math.random() * 3)) - 1.5)); } if (((enemies[i].id == 2) && (random(30) == 0)) && (enemies[i]._y < 350)) { var _local2 = enemies[i]; _local2.targ = _root["b" + (random(6) + 1)]; while ((_local2.targ._currentframe == 2) && (ending == false)) { _local2.targ = _root["b" + (random(6) + 1)]; } _local2.speed = new Vector(_local2._x - _local2.targ._x, _local2._y - _local2.targ._y); _local2.speed.norm(); _local2.speed.scale(-3); } if (enemies[i].id == 4) { enemies[i].speed.scale(1.04); } if (beam.box.hitTest(enemies[i]._x, enemies[i]._y, true)) { enemies[i].gotoAndStop(2); if (enemies[i].id == 1) { s1.start(); } if (enemies[i].id == 2) { s2.start(); } if (enemies[i].id == 3) { s3.start(); } if (enemies[i].id == 4) { s4.start(); } score = score + (100 * mult); mult = mult + 1; enemies[i].id = 0; enemies[i].timer = 20; } if (enemies[i]._y > 450) { enemies[i].gotoAndStop(2); if (enemies[i].targ._currentframe == 1) { enemies[i].targ.gotoAndStop(2); if ((((((b1._currentframe == 2) && (b2._currentframe == 2)) && (b3._currentframe == 2)) && (b4._currentframe == 2)) && (b5._currentframe == 2)) && (b6._currentframe == 2)) { ending = true; diff = -100; } } enemies[i].id = 0; enemies[i].timer = 20; } } if (enemies[i].id == 0) { enemies[i].timer = enemies[i].timer - 1; if (enemies[i].timer <= 0) { removeMovieClip(enemies[i]); enemies.splice(i, 1); i--; } } i++; } if (score >= nextlevel) { level = level + 1; diff = diff + 0.005; nextlevel = nextlevel + ((((level * level) * 0.4) + 5) * 100); } scorebox.text = "Score: " + score; levelbox.text = "Level " + level; }; var rumbleTime = 0; var distanceR = 4; var speedR = 1;
Frame 5
for (i in _root) { _root[i].removeMovieClip(); } Mouse.show(); play(); delete onMouseDown; delete onEnterFrame; delete onMouseMove; function sendScore() { function __rankz_send__(par1, par2, par3, par4) { par227 = new LoadVars(); par228 = new LoadVars(); par227.flashkey = par2; par227.SU0249 = par1; par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3); par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s"); par227.flashkey = par227.flashkey.split("=").join(""); par227.SU0249 = par227.SU0249.split("=").join(""); par228.onLoad = function (success) { if (success) { trace(par228.msg); } else { trace(par228.loaded); } }; par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST"); } bXlnYW1lX25hbWVfdmFyaWFibGU = box.text; bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = score; __rankz_send__("MjU0MmolZSVhJW4lcw==", "dU1RaGZzRm4=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl); } stop(); if (nam == undefined) { nam = "Enter Name"; } sent = false;
Symbol 22 MovieClip Frame 40
stop();
Symbol 36 Button
on (press) { tellTarget (_root) { nextFrame(); }; }
Symbol 37 Button
on (press) { gotoAndStop ("end"); _root.play(); }
Instance of Symbol 12 MovieClip in Symbol 38 MovieClip Frame 1
onClipEvent (load) { _root.stop(); PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (PercentLoaded != 100) { _parent.gotoAndStop(PercentLoaded); } else { _parent.gotoAndStop("lastframe"); } } onClipEvent (enterFrame) { PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100); if (PercentLoaded != 100) { _parent.gotoAndStop(PercentLoaded); } else { _parent.gotoAndPlay("loaded"); } }
Symbol 38 MovieClip Frame 101
play();
Symbol 38 MovieClip Frame 165
stop();
Symbol 44 Button
on (release) { NewgroundsAPI.loadNewgrounds(); }
Symbol 49 Button
on (release) { NewgroundsAPI.loadNewgrounds(); }
Symbol 51 MovieClip Frame 1
function startAd(ngad_url) { trace("opening " + ngad_url); System.security.allowDomain("70.87.128.99"); System.security.allowInsecureDomain("70.87.128.99"); System.security.allowDomain("ads.shizmoo.com"); System.security.allowInsecureDomain("ads.shizmoo.com"); System.security.allowDomain("www.cpmstar.com"); System.security.allowInsecureDomain("www.cpmstar.com"); System.security.allowDomain("server.cpmstar.com"); System.security.allowInsecureDomain("server.cpmstar.com"); var ngads_redirect = new XML(); ngads_redirect.ignoreWhite = true; ngads_redirect.onLoad = function (success) { trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!"); if (success) { ng_ad.loadMovie(ngads_redirect.toString(), "GET"); } }; ngads_redirect.load(ngad_url); } if (NewgroundsAPI.getAdURL()) { startAd(NewgroundsAPI.getAdURL()); } NewgroundsAPI.onAdsApproved = function (ad_url) { startAd(ad_url); }; stop();
Symbol 176 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI { static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format; function NewgroundsAPI () { } static function connectMovie(id) { if (!id) { SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)"); } else if (!tracker_id) { SendMessage("Connecting to API gateway..."); tracker_id = id; host = _url.split("/")[2].toLowerCase(); if (host.length < 1) { host = "localhost"; } var _local2 = new Object(); SendEvent(MOVIE_VIEWS); } } static function setMovieVersion(movie_version) { if (!movie_version) { SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)"); } else { version = movie_version; } } static function debugMode() { debug = true; } static function addCustomEvent(stat_id, stat_name) { if (!stat_id) { SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else if (!stat_name) { SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)"); } else { custom_events[stat_name] = CUSTOM_STATS + stat_id; SendMessage("Created custom event: " + stat_name); } } static function addCustomLink(stat_id, stat_name) { if (!stat_id) { SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else if (!stat_name) { SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)"); } else { custom_links[stat_name] = CUSTOM_STATS + stat_id; SendMessage((("Created custom link " + stat_id) + ": ") + stat_name); } } static function loadMySite() { SendLink(AUTHOR_SITE); } static function loadNewgrounds(special) { if (special) { var _local1 = {page:special}; } SendLink(NEWGROUNDS, _local1); } static function logCustomEvent(event_name) { if (!event_name) { SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)"); } else if (!custom_events[event_name]) { SendError("Attempted to log undefined custom event: " + event_name); } else { SendEvent(custom_events[event_name]); } } static function loadCustomLink(link_name) { if (!link_name) { SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)"); } else if (!custom_links[link_name]) { SendError("Attempted to open undefined custom link: " + link_name); } else { SendLink(custom_links[link_name]); } } static function getAdURL() { return(movie_options.ad_url); } static function getMovieURL() { if (movie_options.movie_url) { return(movie_options.movie_url); } return("Newgrounds.com"); } static function getNewVersionURL() { return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION); } static function SendEvent(id) { SendStat(id, false); } static function SendLink(id, extra) { SendStat(id, true, extra); } static function ReadGatewayData(params) { for (var _local2 in params) { params[_local2] = unescape(params[_local2]); movie_options[_local2] = params[_local2]; } if (params.settings_loaded) { SendMessage("You have successfully connected to the Newgrounds API gateway!"); SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'"); if (movie_options.message) { SendMessage(movie_options.message); } if (movie_options.ad_url) { SendMessage("Your movie has been approved to run Flash Ads"); onAdsApproved(movie_options.ad_url); } if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) { SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!"); onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL()); } if (movie_options.deny_host) { SendMessage("You have blocked 'localHost' in your API settings."); SendMessage("If you wish to test your movie you will need to remove this block."); onDenyHost(host, getMovieURL(), getNewVersionURL()); } if (movie_options.request_portal_url == 1) { var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url); var _local3 = new XML(); _local3.ignoreWhite = true; _local3.load(_local4); } } else if (!movie_options.settings_loaded) { SendError("Could not establish connection to the API gateway."); } } static function SendStat(stat_id, open_in_browser, extra) { if (!tracker_id) { SendError("API calls cannot be made without a valid movie id."); SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?"); } else { var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id; for (var _local9 in extra) { _local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9])); } trace(_local7); if (debug) { _local7 = _local7 + "&debug=1"; } if (open_in_browser) { getURL (_local7, "_blank"); } else { var _local10 = new XML(); _local10.ignoreWhite = true; _local10.onLoad = function (success) { var _local6 = new Object(); var _local3 = 0; while (_local3 < this.firstChild.childNodes.length) { var _local4 = this.firstChild.childNodes[_local3]; var _local5 = _local4.nodeName; var _local2 = _local4.attributes.value; if (_local2 == Number(_local2)) { _local2 = Number(_local2); } _local6[_local5] = _local2; _local3++; } NewgroundsAPI.ReadGatewayData(_local6); }; _local10.load(_local7); } } } static function SendError(msg) { trace("[NEWGROUNDS API ERROR] :: " + msg); } static function SendMessage(msg) { trace("[NEWGROUNDS API] :: " + msg); } static function InitTextFormats() { if (!error_format) { error_format = new TextFormat(); error_format.font = "Arial Black"; error_format.size = 48; error_format.color = 16711680 /* 0xFF0000 */; } if (!header_format) { header_format = new TextFormat(); header_format.font = "Arial Black"; header_format.size = 24; header_format.color = 16777215 /* 0xFFFFFF */; } if (!normal_format) { normal_format = new TextFormat(); normal_format.font = "Arial"; normal_format.bold = true; normal_format.size = 12; normal_format.color = 16777215 /* 0xFFFFFF */; } if (!link_format) { link_format = new TextFormat(); link_format.color = 16776960 /* 0xFFFF00 */; link_format.underline = true; } } static function onNewVersionAvailable(version, movie_url, redirect_url) { InitTextFormats(); var _local2 = new Object(); _local2.x = Stage.width / 2; _local2.y = Stage.height / 2; _root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth()); _root.NGAPI_new_version_overlay.lineStyle(1, 0, 100); _root.NGAPI_new_version_overlay.beginFill(0, 70); _root.NGAPI_new_version_overlay.moveTo(-10, -10); _root.NGAPI_new_version_overlay.lineTo(-10, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, 1000); _root.NGAPI_new_version_overlay.lineTo(1000, -10); _root.NGAPI_new_version_overlay.lineTo(-10, -10); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.lineStyle(10, 0, 100); _root.NGAPI_new_version_overlay.beginFill(51); _root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120); _root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80); _root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120); _root.NGAPI_new_version_overlay.endFill(); _root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000); _root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100); _root.NGAPI_new_version_overlay.exit.beginFill(0, 50); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110); _root.NGAPI_new_version_overlay.exit.endFill(); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106); _root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94); _root.NGAPI_new_version_overlay.exit.onMouseUp = function () { if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) { _root.NGAPI_new_version_overlay.removeMovieClip(); } }; var _local3 = (("Version " + version) + " is now available at:") + newline; var _local5 = _local3.length; _local3 = _local3 + movie_url; var _local4 = _local3.length; _root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000); _root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80); _root.NGAPI_new_version_overlay.newversion.text = "New Version Available!"; _root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format); _root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40); _root.NGAPI_new_version_overlay.message.text = _local3; _root.NGAPI_new_version_overlay.message.multiline = true; _root.NGAPI_new_version_overlay.message.wordWrap = true; _root.NGAPI_new_version_overlay.message.html = true; _root.NGAPI_new_version_overlay.message.setTextFormat(normal_format); link_format.url = redirect_url; _root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format); } static function onDenyHost(hostname, movie_url, redirect_url) { InitTextFormats(); _root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth()); _root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100); _root.NGAPI_deny_host_overlay.beginFill(6684672); _root.NGAPI_deny_host_overlay.moveTo(0, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0); _root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, Stage.height); _root.NGAPI_deny_host_overlay.lineTo(0, 0); _root.NGAPI_deny_host_overlay.endFill(); var _local2 = ("This movie has not been approved for use on " + hostname) + "."; _local2 = _local2 + "\r\rFor an aproved copy, please visit:\r"; var _local4 = _local2.length; _local2 = _local2 + movie_url; var _local3 = _local2.length; _root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height); _root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200); _root.NGAPI_deny_host_overlay.error.text = "ERROR!"; _root.NGAPI_deny_host_overlay.error.setTextFormat(error_format); _root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200); _root.NGAPI_deny_host_overlay.message.text = _local2; _root.NGAPI_deny_host_overlay.message.multiline = true; _root.NGAPI_deny_host_overlay.message.wordWrap = true; _root.NGAPI_deny_host_overlay.message.html = true; _root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format); link_format.url = redirect_url; _root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format); } static function isInstalled() { return(true); } static function onAdsApproved(ad_url) { } static var movie_options = new Object(); static var custom_events = new Object(); static var custom_links = new Object(); static var MOVIE_VIEWS = 1; static var AUTHOR_SITE = 2; static var NEWGROUNDS = 3; static var NEW_VERSION = 4; static var CUSTOM_STATS = 50; static var GATEWAY_URL = "http://www.ngads.com/gateway.php"; }
Symbol 177 MovieClip [__Packages.Vector] Frame 0
class Vector { var x, y; function Vector (i, j) { x = i; y = j; } function norm() { var _local2 = vLength(); x = x / _local2; y = y / _local2; } static function add(v, v2) { return(new Vector(v2.x + v.x, v2.y + v.y)); } static function subtract(v, v2) { return(new Vector(v.x - v2.x, v.y - v2.y)); } static function dot(v, v2) { return((v2.x * v.x) + (v2.y * v.y)); } static function angle(v, v2) { return(Math.acos(dot(v, v2) / (v2.vLength() * v.vLength())) / (Math.PI/180)); } static function angle2(v, v2) { var _local1 = angle(v, v2); if (comp(v.rotateNew(_local1), v2) < 0.0001) { return(_local1); } return(-_local1); } static function comp(v, v2) { return(Math.abs((v.x / v.vLength()) - (v2.x / v2.vLength())) + Math.abs((v.y / v.vLength()) - (v2.y / v2.vLength()))); } function vLength() { return(Math.sqrt((x * x) + (y * y))); } function perpendicular() { return(new Vector(-y, x)); } function scale(val) { x = x * val; y = y * val; } function rotate(degrees) { degrees = degrees * (Math.PI/180); var _local3 = Math.sin(degrees); var _local2 = Math.cos(degrees); var _local5 = (x * _local2) - (y * _local3); var _local4 = (x * _local3) + (y * _local2); x = _local5; y = _local4; } function rotateNew(degrees) { degrees = degrees * (Math.PI/180); var _local3 = Math.sin(degrees); var _local2 = Math.cos(degrees); var _local5 = (x * _local2) - (y * _local3); var _local4 = (x * _local3) + (y * _local2); return(new Vector(_local5, _local4)); } function reflect(normal) { var _local2 = new Vector(normal.x, normal.y); _local2.norm(); _local2.scale(2 * dot(this, _local2)); return(subtract(this, _local2)); } function display(point, scale, tgt) { tgt.lineStyle(3, 16777215, 100); tgt.moveTo(point.x, point.y); tgt.lineTo(point.x + (x * scale), point.y + (y * scale)); var _local5 = new Vector(-x, -y); _local5.norm(); _local5.scale(0.5); _local5.rotate(-45); tgt.lineTo((point.x + (x * scale)) + (_local5.x * scale), (point.y + (y * scale)) + (_local5.y * scale)); tgt.moveTo(point.x + (x * scale), point.y + (y * scale)); _local5.rotate(90); tgt.lineTo((point.x + (x * scale)) + (_local5.x * scale), (point.y + (y * scale)) + (_local5.y * scale)); tgt.lineStyle(2, 0, 100); tgt.moveTo(point.x, point.y); tgt.lineTo(point.x + (x * scale), point.y + (y * scale)); var _local6 = new Vector(-x, -y); _local6.norm(); _local6.scale(0.5); _local6.rotate(-45); tgt.lineTo((point.x + (x * scale)) + (_local6.x * scale), (point.y + (y * scale)) + (_local6.y * scale)); tgt.moveTo(point.x + (x * scale), point.y + (y * scale)); _local6.rotate(90); tgt.lineTo((point.x + (x * scale)) + (_local6.x * scale), (point.y + (y * scale)) + (_local6.y * scale)); } }
Symbol 178 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object { static var _CharsReverseLookup; var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count; function Armor_Bot_30_En_AS1 () { super(); } static function Encode(str) { var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1(); return(_local1.encodeArmor_Bot_30_En_AS1(str)); } static function Decode(str) { var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1(); return(_local1.decodeArmor_Bot_30_En_AS1(str)); } static function StringReplaceAll(source, find, replacement) { return(source.split(find).join(replacement)); } static function InitReverseChars() { _CharsReverseLookup = new Array(); var _local1 = 0; while (_local1 < _Chars.length) { _CharsReverseLookup[_Chars[_local1]] = _local1; _local1++; } return(true); } static function UrlDecode(str) { str = StringReplaceAll(str, "\\", " "); str = unescape(str); return(str); } static function UrlEncode(str) { str = escape(str); str = StringReplaceAll(str, "\\", "%2B"); str = StringReplaceAll(str, "%20", "+"); return(str); } function setArmor_Bot_30_En_AS1Str(str) { _Armor_Bot_30_En_AS1Str = str; _Armor_Bot_30_En_AS1Count = 0; } function readArmor_Bot_30_En_AS1() { if (!_Armor_Bot_30_En_AS1Str) { return(_EndOfInput); } if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) { return(_EndOfInput); } var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255; _Armor_Bot_30_En_AS1Count++; return(_local2); } function encodeArmor_Bot_30_En_AS1(str) { setArmor_Bot_30_En_AS1Str(str); var _local3 = ""; var _local2 = new Array(3); var _local5 = 0; var _local4 = false; while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) { _local2[1] = readArmor_Bot_30_En_AS1(); _local2[2] = readArmor_Bot_30_En_AS1(); _local3 = _local3 + _Chars[_local2[0] >> 2]; if (_local2[1] != _EndOfInput) { _local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)]; if (_local2[2] != _EndOfInput) { _local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)]; _local3 = _local3 + _Chars[_local2[2] & 63]; } else { _local3 = _local3 + _Chars[(_local2[1] << 2) & 60]; _local3 = _local3 + "="; _local4 = true; } } else { _local3 = _local3 + _Chars[(_local2[0] << 4) & 48]; _local3 = _local3 + "="; _local3 = _local3 + "="; _local4 = true; } _local5 = _local5 + 4; if (_local5 >= 76) { _local3 = _local3 + newline; _local5 = 0; } } return(_local3); } function readReverseArmor_Bot_30_En_AS1() { if (!_Armor_Bot_30_En_AS1Str) { return(_EndOfInput); } while (true) { if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) { return(_EndOfInput); } var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count); _Armor_Bot_30_En_AS1Count++; if (_CharsReverseLookup[_local2]) { return(_CharsReverseLookup[_local2]); } if (_local2 == "A") { return(0); } } } function ntos(n) { var _local1 = n.toString(16); if (_local1.length == 1) { _local1 = "0" + _local1; } _local1 = "%" + _local1; return(unescape(_local1)); } function decodeArmor_Bot_30_En_AS1(str) { setArmor_Bot_30_En_AS1Str(str); var _local3 = ""; var _local2 = new Array(4); var _local4 = false; while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) { _local2[2] = readReverseArmor_Bot_30_En_AS1(); _local2[3] = readReverseArmor_Bot_30_En_AS1(); _local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4)); if (_local2[2] != _EndOfInput) { _local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2)); if (_local2[3] != _EndOfInput) { _local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]); } else { _local4 = true; } } else { _local4 = true; } } return(_local3); } function toHex(n) { var _local4 = ""; var _local3 = true; var _local1 = 32; while (_local1 > 0) { _local1 = _local1 - 4; var _local2 = (n >> _local1) & 15; if ((!_local3) || (_local2 != 0)) { _local3 = false; _local4 = _local4 + _Digits[_local2]; } } return(((_local4 == "") ? "0" : (_local4))); } function pad(str, len, pad) { var _local2 = str; var _local1 = str.length; while (_local1 < len) { _local2 = pad + _local2; _local1++; } return(_local2); } function encodeHex(str) { var _local4 = ""; var _local2 = 0; while (_local2 < str.length) { _local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0"); _local2++; } return(_local4); } function decodeHex(str) { var _local5 = ""; var _local3 = ""; var _local2 = 0; while (_local2 < str.length) { _local3 = _local3 + str.charAt(_local2); if (_local3.length == 2) { _local5 = _local5 + ntos(parseInt("0x" + _local3)); _local3 = ""; } _local2++; } return(_local5); } static var _EndOfInput = -1; static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/"); static var _CharsReverseLookupInited = InitReverseChars(); static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"); }
Symbol 54 Button
on (release) { _root.play(); }
Symbol 57 Button
on (release) { getURL ("http://www.newgrounds.com/game", "_blank"); }
Symbol 63 Button
on (release) { getURL ("http://darx.newgrounds.com", "_blank"); }
Symbol 66 Button
on (release) { getURL ("http://www.glaielgames.com", "_blank"); }
Symbol 87 MovieClip Frame 7
stop();
Symbol 88 MovieClip [bad1] Frame 2
_root.rumbleTime = _root.rumbleTime + 2;
Symbol 90 MovieClip [bad2] Frame 2
_root.rumbleTime = _root.rumbleTime + 2;
Symbol 92 MovieClip [bad3] Frame 2
_root.rumbleTime = _root.rumbleTime + 2;
Symbol 94 MovieClip [bad4] Frame 2
_root.rumbleTime = _root.rumbleTime + 2;
Symbol 96 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
_root.rumbleTime = _root.rumbleTime + 10;
Symbol 117 MovieClip Frame 2
_root.rumbleTime = _root.rumbleTime + 10;
Symbol 120 MovieClip Frame 2
_root.rumbleTime = _root.rumbleTime + 10;
Symbol 123 MovieClip Frame 2
_root.rumbleTime = _root.rumbleTime + 10;
Symbol 126 MovieClip Frame 2
_root.rumbleTime = _root.rumbleTime + 10;
Symbol 129 MovieClip Frame 2
_root.rumbleTime = _root.rumbleTime + 10;
Symbol 145 MovieClip Frame 1
stop();
Instance of Symbol 140 MovieClip "box" in Symbol 145 MovieClip Frame 2
onClipEvent (load) { _visible = false; }
Symbol 163 Button
on (release) { if (_root.sent == false) { _root.sendScore(); play(); } }
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 170 Button
on (release) { getURL ("http://rankz.armorbot.com/spacelaser/", "_blank"); }
Symbol 173 Button
on (release) { stopAllSounds(); gotoAndPlay (3); }

Library Items

Symbol 1 GraphicUsed by:50  Timeline
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:Timeline
Symbol 4 GraphicUsed by:5
Symbol 5 MovieClipUses:4Used by:Timeline
Symbol 6 GraphicUsed by:8
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:6 7Used by:38
Symbol 9 GraphicUsed by:38
Symbol 10 GraphicUsed by:38
Symbol 11 GraphicUsed by:38
Symbol 12 MovieClipUsed by:38
Symbol 13 GraphicUsed by:38
Symbol 14 GraphicUsed by:22
Symbol 15 GraphicUsed by:22
Symbol 16 GraphicUsed by:22
Symbol 17 GraphicUsed by:22
Symbol 18 GraphicUsed by:22
Symbol 19 GraphicUsed by:22
Symbol 20 GraphicUsed by:22
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:14 15 16 17 18 19 20 21Used by:38
Symbol 23 ShapeTweeningUsed by:38
Symbol 24 ShapeTweeningUsed by:38
Symbol 25 GraphicUsed by:38
Symbol 26 GraphicUsed by:38
Symbol 27 GraphicUsed by:38
Symbol 28 GraphicUsed by:36 37
Symbol 29 GraphicUsed by:36 37 38
Symbol 30 GraphicUsed by:36 37
Symbol 31 GraphicUsed by:36 37 38
Symbol 32 GraphicUsed by:36 37 38
Symbol 33 GraphicUsed by:35 36 37
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:33 34Used by:36 37 38
Symbol 36 ButtonUses:28 29 30 31 32 35 33Used by:38
Symbol 37 ButtonUses:28 29 30 31 32 35 33Used by:38
Symbol 38 MovieClipUses:8 9 10 11 12 13 22 23 24 25 26 27 36 37 32 29 35 31Used by:51
Symbol 39 GraphicUsed by:51
Symbol 40 GraphicUsed by:44
Symbol 41 GraphicUsed by:44
Symbol 42 GraphicUsed by:44
Symbol 43 GraphicUsed by:44
Symbol 44 ButtonUses:40 41 42 43Used by:51
Symbol 45 GraphicUsed by:51
Symbol 46 GraphicUsed by:51
Symbol 47 GraphicUsed by:49
Symbol 48 GraphicUsed by:49
Symbol 49 ButtonUses:47 48Used by:50
Symbol 50 MovieClipUses:1 49Used by:51
Symbol 51 MovieClipUses:38 39 44 45 46 50Used by:Timeline
Symbol 176 MovieClip [__Packages.NewgroundsAPI]
Symbol 177 MovieClip [__Packages.Vector]
Symbol 178 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1]
Symbol 52 GraphicUsed by:54
Symbol 53 GraphicUsed by:54
Symbol 54 ButtonUses:52 53Used by:Timeline
Symbol 55 GraphicUsed by:57
Symbol 56 GraphicUsed by:57
Symbol 57 ButtonUses:55 56Used by:Timeline
Symbol 58 GraphicUsed by:63
Symbol 59 GraphicUsed by:63
Symbol 60 FontUsed by:61
Symbol 61 TextUses:60Used by:63
Symbol 62 GraphicUsed by:63
Symbol 63 ButtonUses:58 59 61 62Used by:Timeline
Symbol 64 GraphicUsed by:66
Symbol 65 GraphicUsed by:66
Symbol 66 ButtonUses:64 65Used by:Timeline
Symbol 67 MovieClipUses:SS1Used by:Timeline
Symbol 68 GraphicUsed by:96
Symbol 69 FontUsed by:70 160 162
Symbol 70 TextUses:69Used by:96
Symbol 71 Sound [b2]Used by:96
Symbol 72 Sound [b4]Used by:96
Symbol 73 Sound [b1]Used by:96
Symbol 74 GraphicUsed by:75
Symbol 75 MovieClipUses:74Used by:80 89 91 93
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:76Used by:80 89 91 93
Symbol 78 GraphicUsed by:79
Symbol 79 MovieClipUses:78Used by:80 89 91 93
Symbol 80 MovieClipUses:75 77 79Used by:88 109
Symbol 81 GraphicUsed by:87
Symbol 82 GraphicUsed by:87
Symbol 83 GraphicUsed by:87
Symbol 84 GraphicUsed by:87
Symbol 85 GraphicUsed by:87
Symbol 86 GraphicUsed by:87
Symbol 87 MovieClipUses:81 82 83 84 85 86Used by:88 90 92 94 115 117 120 123 126 129
Symbol 88 MovieClip [bad1]Uses:80 87Used by:96
Symbol 89 MovieClipUses:75 77 79Used by:90
Symbol 90 MovieClip [bad2]Uses:89 87Used by:96
Symbol 91 MovieClipUses:75 77 79Used by:92
Symbol 92 MovieClip [bad3]Uses:91 87Used by:96
Symbol 93 MovieClipUses:75 77 79Used by:94
Symbol 94 MovieClip [bad4]Uses:93 87Used by:96
Symbol 95 Sound [b3]Used by:96
Symbol 96 MovieClipUses:68 70 71 72 73 88 90 92 94 95Used by:Timeline
Symbol 97 FontUsed by:98
Symbol 98 TextUses:97Used by:109
Symbol 99 GraphicUsed by:109
Symbol 100 FontUsed by:101 102 103 104
Symbol 101 TextUses:100Used by:109
Symbol 102 TextUses:100Used by:109
Symbol 103 TextUses:100Used by:109
Symbol 104 TextUses:100Used by:109
Symbol 105 GraphicUsed by:109 117
Symbol 106 GraphicUsed by:109
Symbol 107 FontUsed by:108
Symbol 108 TextUses:107Used by:109
Symbol 109 ButtonUses:98 99 101 102 80 103 104 105 106 108Used by:Timeline
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:Timeline
Symbol 112 GraphicUsed by:115
Symbol 113 GraphicUsed by:115
Symbol 114 SoundUsed by:115 117 120 123 126 129
Symbol 115 MovieClipUses:112 113 87 114Used by:Timeline
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:105 116 87 114Used by:Timeline
Symbol 118 GraphicUsed by:120
Symbol 119 GraphicUsed by:120
Symbol 120 MovieClipUses:118 119 87 114Used by:Timeline
Symbol 121 GraphicUsed by:123
Symbol 122 GraphicUsed by:123
Symbol 123 MovieClipUses:121 122 87 114Used by:Timeline
Symbol 124 GraphicUsed by:126
Symbol 125 GraphicUsed by:126
Symbol 126 MovieClipUses:124 125 87 114Used by:Timeline
Symbol 127 GraphicUsed by:129
Symbol 128 GraphicUsed by:129
Symbol 129 MovieClipUses:127 128 87 114Used by:Timeline
Symbol 130 SoundUsed by:131
Symbol 131 MovieClipUses:130Used by:Timeline
Symbol 132 GraphicUsed by:Timeline
Symbol 133 FontUsed by:134
Symbol 134 EditableTextUses:133Used by:Timeline
Symbol 135 GraphicUsed by:138
Symbol 136 SoundUsed by:138
Symbol 137 GraphicUsed by:138
Symbol 138 MovieClipUses:135 136 137Used by:145
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:139Used by:145
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:141Used by:145
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClipUses:143Used by:145
Symbol 145 MovieClipUses:138 140 142 144Used by:Timeline
Symbol 146 GraphicUsed by:147
Symbol 147 MovieClipUses:146Used by:148
Symbol 148 MovieClipUses:147Used by:Timeline
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClipUses:149Used by:151
Symbol 151 MovieClipUses:150Used by:Timeline
Symbol 152 FontUsed by:153
Symbol 153 EditableTextUses:152Used by:Timeline
Symbol 154 GraphicUsed by:Timeline
Symbol 155 FontUsed by:156 157 174 175
Symbol 156 TextUses:155Used by:Timeline
Symbol 157 TextUses:155Used by:Timeline
Symbol 158 FontUsed by:159 160
Symbol 159 EditableTextUses:158Used by:Timeline
Symbol 160 TextUses:158 69Used by:163
Symbol 161 GraphicUsed by:163
Symbol 162 TextUses:69Used by:163
Symbol 163 ButtonUses:160 161 162Used by:166
Symbol 164 FontUsed by:165
Symbol 165 TextUses:164Used by:166
Symbol 166 MovieClipUses:163 165Used by:Timeline
Symbol 167 GraphicUsed by:170
Symbol 168 GraphicUsed by:170
Symbol 169 GraphicUsed by:170
Symbol 170 ButtonUses:167 168 169Used by:Timeline
Symbol 171 GraphicUsed by:173
Symbol 172 GraphicUsed by:173
Symbol 173 ButtonUses:171 172Used by:Timeline
Symbol 174 EditableTextUses:155Used by:Timeline
Symbol 175 TextUses:155Used by:Timeline
Streaming Sound 1Used by:Symbol 67 MovieClip

Instance Names

"b4"Frame 4Symbol 115 MovieClip
"b5"Frame 4Symbol 117 MovieClip
"b6"Frame 4Symbol 120 MovieClip
"b3"Frame 4Symbol 123 MovieClip
"b2"Frame 4Symbol 126 MovieClip
"b1"Frame 4Symbol 129 MovieClip
"scorebox"Frame 4Symbol 134 EditableText
"beam"Frame 4Symbol 145 MovieClip
"cursor"Frame 4Symbol 151 MovieClip
"levelbox"Frame 4Symbol 153 EditableText
"box"Frame 5Symbol 159 EditableText
"ng_ad"Symbol 51 MovieClip Frame 1Symbol 50 MovieClip
"box"Symbol 145 MovieClip Frame 2Symbol 140 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 176 as "__Packages.NewgroundsAPI"
ExportAssets (56)Timeline Frame 1Symbol 177 as "__Packages.Vector"
ExportAssets (56)Timeline Frame 1Symbol 178 as "__Packages.ab3.rankz.Armor_Bot_30_En_AS1"
ExportAssets (56)Timeline Frame 3Symbol 71 as "b2"
ExportAssets (56)Timeline Frame 3Symbol 72 as "b4"
ExportAssets (56)Timeline Frame 3Symbol 73 as "b1"
ExportAssets (56)Timeline Frame 3Symbol 88 as "bad1"
ExportAssets (56)Timeline Frame 3Symbol 90 as "bad2"
ExportAssets (56)Timeline Frame 3Symbol 92 as "bad3"
ExportAssets (56)Timeline Frame 3Symbol 94 as "bad4"
ExportAssets (56)Timeline Frame 3Symbol 95 as "b3"

Labels

"loading"Symbol 38 MovieClip Frame 1
"loaded"Symbol 38 MovieClip Frame 101
"lastframe"Symbol 38 MovieClip Frame 165
"end"Symbol 38 MovieClip Frame 166

Dynamic Text Variables

namSymbol 159 EditableText"<p align="center"><font face="Viner Hand ITC" size="18" color="#000066" letterSpacing="0.000000" kerning="1">ENTER NAME</font></p>"
scoreSymbol 174 EditableText"<p align="center"></p>"




http://swfchan.com/10/47191/info.shtml
Created: 2/5 -2019 08:40:35 Last modified: 2/5 -2019 08:40:35 Server time: 22/12 -2024 20:57:02