Frame 1 (34 B)
NewgroundsAPI.connectMovie(2042);
Frame 2 (673 B)
function blow_sfx() {
blow.attachSound("explode1");
blow.setVolume(my_volume);
blow.start();
}
function locked_sfx() {
locked.attachSound("locked");
locked.setVolume(my_volume);
locked.start();
}
function titlemusic_sfx() {
ttlmusic.attachSound("hard");
ttlmusic.setVolume(my_volume);
ttlmusic.start();
}
var winlevel = 11;
var my_volume = 70;
var power = 3;
var para = 8;
var blow = new Sound();
var locked = new Sound();
var ttlmusic = new Sound();
titlemusic_sfx();
_quality = "MEDIUM";
var randomizer = 1;
RSob = SharedObject.getLocal("RShighscore");
if (RSob.data.thescore != undefined) {
} else {
RSob.data.thescore = "000";
}
Frame 19 (46 B)
stop();
highscore.text = RSob.data.thescore;
Frame 71 (18 B)
gotoAndPlay (87);
Frame 72 (8 B)
stop();
Frame 87 (4.73 KiB) ●
function erase_all() {
i = 0;
while (i < 9999) {
var _local2 = "ships" + i;
_root[_local2].removeMovieClip();
i++;
}
}
function create_wave() {
var _local3 = -75;
i = wave_iteration;
while (i < total_ships) {
shipcount = shipcount + 1;
shipdepth = shipdepth + 1;
_root.attachMovie("Ships", "ships" + shipcount, shipdepth);
var _local2 = "ships" + shipcount;
_root[_local2]._x = 50 + random(325);
_root[_local2]._y = _local3;
_root[_local2].gotoAndStop(random(all_ship_types));
_local3 = _local3 - (temp_y_increment + random(75));
i++;
}
}
function blast_sfx() {
blast.attachSound("blast");
blast.setVolume(my_volume);
blast.start();
}
function blow_sfx() {
blow.attachSound("blow");
blow.setVolume(my_volume);
blow.start();
}
function beam_sfx() {
beam_sfx.attachSound("beam_sfx");
beam_sfx.setVolume(my_volume);
beam_sfx.start();
}
function parabullet_sfx() {
parablast.attachSound("parabulletsfx");
parablast.setVolume(my_volume);
parablast.start();
}
function paralyze_sfx() {
paralyzed.attachSound("paralyzesfx");
paralyzed.setVolume(my_volume);
paralyzed.start();
}
function playmusic() {
neuroblast.attachSound("neuroblast");
neuroblast.setVolume(my_volume);
neuroblast.start(0, 5);
}
function sweep_sfx() {
swept.attachSound("sweepsfx");
swept.setVolume(my_volume);
swept.start();
}
function destroyed_sfx() {
destroyed.attachSound("destroyedsfx");
destroyed.setVolume(my_volume);
destroyed.start();
}
function buzzer_sfx() {
dinger = dinger + 2;
buzzersound.attachSound("buzzer");
buzzersound.setVolume(my_volume);
buzzersound.start();
}
function alarm_sfx() {
alarming.attachSound("alarm");
alarming.setVolume(my_volume);
alarming.start(0, 999);
}
highscore.text = RSob.data.thescore;
var score = 0;
var wave_iteration = 0;
var new_wave_increment = 1;
var new_wave_counter = 0;
var total_ships = 3;
var charge = 1;
var bulletcount = 0;
var bulletdepth = 1000;
var shipcount = 0;
var shipdepth = 0;
var all_ship_types = 3;
var temp_x = 25;
var temp_x_increment = 100;
var temp_y = -75;
var temp_y_increment = 50;
var level_up = 1;
var level = 0;
var gameover = 1;
var alarm_is_sound = 1;
var yourhealth = 100;
var dinger = 2;
Mouse.hide();
crosshair.swapDepths(1000000);
crosshair.onEnterFrame = function () {
if (gameover > 0) {
crosshair._y = _ymouse;
crosshair._x = _xmouse;
} else {
crosshair._y = -50;
crosshair._x = -50;
}
};
_root.onMouseDown = function () {
if (gameover > 0) {
if (charge > 0) {
charge = 0;
blast_sfx();
var _local4 = _xmouse;
var _local3 = _ymouse;
bulletcount++;
bulletdepth++;
_root.attachMovie("fire_bullet", "bullet" + bulletcount, bulletdepth);
var _local2 = "bullet" + bulletcount;
_root[_local2]._y = _local3;
_root[_local2]._x = _local4;
}
}
};
_root.onEnterFrame = function () {
if (gameover > 0) {
if (Key.isDown(90)) {
if (charge > 0) {
charge = 0;
parabullet_sfx();
var _local5 = _xmouse;
var _local4 = _ymouse;
bulletcount++;
bulletdepth++;
_root.attachMovie("parabullet", "parabullet" + bulletcount, bulletdepth);
var _local3 = "parabullet" + bulletcount;
_root[_local3]._y = _local4;
_root[_local3]._x = _local5;
}
}
}
if (Key.isDown(88)) {
if (gameover > 0) {
if (charge > 0) {
charge = 0;
sweep_sfx();
var _local5 = _xmouse;
var _local4 = _ymouse;
bulletcount++;
bulletdepth++;
_root.attachMovie("sweepbullet", "sweepbullet" + bulletcount, bulletdepth);
var _local2 = "sweepbullet" + bulletcount;
_root[_local2]._y = _local4;
_root[_local2]._x = _local5;
}
}
}
if (Key.isDown(27)) {
gameover = gameover - 2;
gotoAndPlay ("gameoverbitch");
}
if (new_wave_counter > new_wave_increment) {
new_wave_counter = 0;
level_up++;
create_wave();
}
if (level_up > 3) {
level++;
level_up = 0;
if (total_ships > tsnw) {
total_ships = tst;
new_wave_increment = tsnw;
} else {
total_ships++;
new_wave_increment++;
}
if (all_ship_types > 10) {
all_ship_types = 11;
} else {
all_ship_types++;
}
}
if (gameover > 0) {
if (level > winlevel) {
gameover = gameover - 2;
gotoAndPlay ("youwinbitch");
}
}
if (gameover > 0) {
if (yourhealth < 1) {
yourhealth = 0;
gameover = gameover - 2;
gotoAndPlay ("gameoverbitch");
}
}
};
var blast = new Sound();
var blow = new Sound();
var parablast = new Sound();
var paralyzed = new Sound();
var neuroblast = new Sound();
var swept = new Sound();
var destroyed = new Sound();
var buzzersound = new Sound();
var alarming = new Sound();
Instance of Symbol 339 MovieClip in Frame 87 (55 B)
onClipEvent (enterFrame) {
this.swapDepths(1000002);
}
Frame 106 (29 B)
playmusic();
create_wave();
Frame 134 (8 B)
stop();
Frame 135 (28 B)
erase_all();
Mouse.show();
Frame 157 (106 B)
_root.onEnterFrame = function () {
if (score > highscore.text) {
newhigh.play();
}
};
stop();
Frame 161 (28 B)
erase_all();
Mouse.show();
Frame 183 (106 B)
_root.onEnterFrame = function () {
if (score > highscore.text) {
newhigh.play();
}
};
stop();
Symbol 22 MovieClip Frame 1 (8 B)
stop();
Symbol 22 MovieClip Frame 2 (63 B)
explodee.gotoAndPlay(1);
_parent.speed = _parent.speed - 0.5;
Symbol 22 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 35 MovieClip Frame 8 (8 B)
stop();
Symbol 37 MovieClip Frame 1 (8 B)
stop();
Symbol 37 MovieClip Frame 2 (63 B)
explodee.gotoAndPlay(1);
_parent.speed = _parent.speed - 0.5;
Symbol 37 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 43 MovieClip Frame 1 (8 B)
stop();
Symbol 43 MovieClip Frame 2 (63 B)
explodee.gotoAndPlay(1);
_parent.speed = _parent.speed - 0.4;
Symbol 43 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 49 MovieClip Frame 1 (8 B)
stop();
Symbol 49 MovieClip Frame 2 (63 B)
explodee.gotoAndPlay(1);
_parent.speed = _parent.speed - 0.3;
Symbol 49 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 65 MovieClip Frame 1 (8 B)
stop();
Symbol 65 MovieClip Frame 2 (63 B)
explodee.gotoAndPlay(1);
_parent.speed = _parent.speed - 0.5;
Symbol 65 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 72 MovieClip Frame 1 (8 B)
stop();
Symbol 72 MovieClip Frame 2 (63 B)
explodee.gotoAndPlay(1);
_parent.speed = _parent.speed - 0.4;
Symbol 72 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 87 MovieClip Frame 1 (8 B)
stop();
Symbol 87 MovieClip Frame 2 (37 B)
_parent.speed = _parent.speed - 0.3;
Symbol 87 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 91 MovieClip Frame 1 (8 B)
stop();
Symbol 91 MovieClip Frame 2 (63 B)
explodee.gotoAndPlay(1);
_parent.speed = _parent.speed - 0.2;
Symbol 91 MovieClip Frame 10 (17 B)
gotoAndStop (1);
Symbol 97 MovieClip Frame 1 (25 B)
_root._x = _root._x - 4;
Symbol 97 MovieClip Frame 3 (25 B)
_root._x = _root._x + 4;
Symbol 97 MovieClip Frame 5 (25 B)
_root._x = _root._x - 2;
Symbol 97 MovieClip Frame 7 (25 B)
_root._x = _root._x + 2;
Symbol 97 MovieClip Frame 10 (25 B)
_root._x = _root._x - 1;
Symbol 97 MovieClip Frame 13 (25 B)
_root._x = _root._x + 1;
Symbol 97 MovieClip Frame 17 (36 B)
stop();
_parent.removeMovieClip();
Symbol 98 MovieClip [Ships] Frame 1 (1.84 KiB) ●
stop();
this._xscale = this._xscale - 14;
this._yscale = this._yscale - 14;
this.onEnterFrame = function () {
this._y = this._y + speed;
if (this.speed < defaultspeed) {
this.speed = this.speed + 0.04;
} else {
this.speed = defaultspeed;
}
var _local4 = "bullet" + _root.bulletcount;
if (_root[_local4].bullet_contact.hitTest(this.currentship)) {
this.currentship.gotoAndPlay("hit");
life = life - _root.power;
if (life < 1) {
this.gotoAndStop("killed");
speed = 0;
defaultspeed = 0;
_root.destroyed_sfx();
_root.score = _root.score + killscore;
_root.new_wave_counter = _root.new_wave_counter + 1;
}
}
var _local5 = "parabullet" + _root.bulletcount;
if (_root[_local5].bullet_contact.hitTest(this.currentship)) {
this.currentship.gotoAndPlay("hit");
_root.blow_sfx();
this.speed = 0;
life = life - _root.para;
if (life < 1) {
this.gotoAndStop("killed");
speed = 0;
defaultspeed = 0;
_root.destroyed_sfx();
_root.score = _root.score + killscore;
_root.new_wave_counter = _root.new_wave_counter + 1;
}
}
var _local3 = "sweepbullet" + _root.bulletcount;
if (_root[_local3].bullet_contact.hitTest(this.currentship)) {
this.currentship.gotoAndPlay("hit");
_root.paralyze_sfx();
this.speed = -3;
life = life - _root.power;
if (life < 1) {
this.gotoAndStop("killed");
speed = 0;
defaultspeed = 0;
_root.destroyed_sfx();
_root.score = _root.score + killscore;
_root.new_wave_counter = _root.new_wave_counter + 1;
}
}
if (_root.finishline.hitTest(this.currentship)) {
_root.new_wave_counter = _root.new_wave_counter + 1;
_root.yourhealth = _root.yourhealth - damages;
_root.buzzer_sfx();
this.removeMovieClip();
}
};
var life = 8;
var killscore = 30;
var speed = 0;
var defaultspeed = 1.2;
var damages = 6;
Symbol 98 MovieClip [Ships] Frame 2 (94 B)
var life = 6;
var killscore = 25;
var speed = 0;
var defaultspeed = 1.6;
var damages = 5;
Symbol 98 MovieClip [Ships] Frame 3 (96 B)
var life = 12;
var killscore = 45;
var speed = 0;
var defaultspeed = 1.8;
var damages = 12;
Symbol 98 MovieClip [Ships] Frame 4 (95 B)
var life = 8;
var killscore = 40;
var speed = 0;
var defaultspeed = 2.8;
var damages = 10;
Symbol 98 MovieClip [Ships] Frame 5 (120 B)
var life = 10;
var killscore = 65;
var speed = 0;
var defaultspeed = 1;
var damages = 10;
currentship._alpha = 20;
Symbol 98 MovieClip [Ships] Frame 6 (96 B)
var life = 18;
var killscore = 75;
var speed = 0;
var defaultspeed = 0.8;
var damages = 16;
Symbol 98 MovieClip [Ships] Frame 7 (95 B)
var life = 5;
var killscore = 50;
var speed = 0;
var defaultspeed = 4.5;
var damages = 15;
Symbol 98 MovieClip [Ships] Frame 8 (122 B)
var life = 22;
var killscore = 85;
var speed = 0;
var defaultspeed = 0.6;
var damages = 15;
currentship._alpha = 20;
Symbol 98 MovieClip [Ships] Frame 9 (94 B)
var life = 30;
var killscore = 95;
var speed = 0;
var defaultspeed = 1;
var damages = 20;
Symbol 98 MovieClip [Ships] Frame 10 (96 B)
var life = 12;
var killscore = 45;
var speed = 0;
var defaultspeed = 1.8;
var damages = 12;
Symbol 99 MovieClip [rocket] Frame 1 (63 B)
this.onEnterFrame = function () {
this._y = this._y - 8;
};
Symbol 99 MovieClip [rocket] Frame 45 (43 B)
_root.charge = 1;
this.removeMovieClip();
Symbol 102 MovieClip [parabullet] Frame 1 (63 B)
this.onEnterFrame = function () {
this._y = this._y - 6;
};
Symbol 102 MovieClip [parabullet] Frame 13 (63 B)
this.onEnterFrame = function () {
this._y = this._y + 3;
};
Symbol 102 MovieClip [parabullet] Frame 26 (43 B)
_root.charge = 1;
this.removeMovieClip();
Symbol 104 MovieClip [sweepbullet] Frame 1 (63 B)
this.onEnterFrame = function () {
this._y = this._y - 8;
};
Symbol 104 MovieClip [sweepbullet] Frame 13 (63 B)
this.onEnterFrame = function () {
this._y = this._y + 1;
};
Symbol 104 MovieClip [sweepbullet] Frame 26 (43 B)
_root.charge = 1;
this.removeMovieClip();
Symbol 105 MovieClip [fire_bullet] Frame 1 (130 B)
this.onEnterFrame = function () {
this._y = this._y - 15;
};
this.onEnterFrame = function () {
this._y = this._y - 15;
};
Symbol 105 MovieClip [fire_bullet] Frame 5 (18 B)
_root.charge = 1;
Symbol 105 MovieClip [fire_bullet] Frame 6 (24 B)
this.removeMovieClip();
Symbol 122 MovieClip Frame 40 (8 B)
stop();
Symbol 136 Button (55 B)
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 137 Button (51 B)
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 112 MovieClip in Symbol 138 MovieClip Frame 1 (451 B)
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 138 MovieClip Frame 101 (8 B)
play();
Symbol 138 MovieClip Frame 165 (8 B)
stop();
Symbol 144 Button (49 B)
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 150 Button (49 B)
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 152 MovieClip Frame 1 (0.98 KiB)
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 358 MovieClip [__Packages.NewgroundsAPI] Frame 0 (12.42 KiB) ● ●
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 171 MovieClip Frame 7 (8 B)
stop();
Symbol 173 Button (71 B)
on (press) {
stopAllSounds();
blow_sfx();
gotoAndPlay ("fadeout");
}
Symbol 176 MovieClip Frame 7 (8 B)
stop();
Symbol 177 Button (39 B)
on (press) {
gotoAndStop ("how_to");
}
Symbol 180 MovieClip Frame 7 (8 B)
stop();
Symbol 181 Button (40 B)
on (press) {
gotoAndStop ("options");
}
Symbol 185 MovieClip Frame 19 (8 B)
stop();
Symbol 186 Button (65 B)
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 195 Button (37 B)
on (press) {
gotoAndStop ("menu");
}
Symbol 210 Button (107 B)
on (press) {
if (my_volume < 100) {
my_volume = my_volume + 10;
ttlmusic.setVolume(my_volume);
}
}
Symbol 211 Button (105 B)
on (press) {
if (my_volume > 0) {
my_volume = my_volume - 10;
ttlmusic.setVolume(my_volume);
}
}
Symbol 217 Button (99 B)
on (press) {
var winlevel = 11;
power = 3;
para = 8;
blow_sfx();
var tsnw = 5;
var tst = 6;
}
Symbol 223 Button (99 B)
on (press) {
var winlevel = 16;
power = 2;
para = 6;
blow_sfx();
var tsnw = 5;
var tst = 6;
}
Symbol 228 Button (103 B)
on (press) {
var winlevel = 21;
power = 1.5;
para = 5.5;
blow_sfx();
var tsnw = 5;
var tst = 6;
}
Symbol 233 Button (34 B)
on (press) {
_quality = "LOW";
}
Symbol 238 Button (37 B)
on (press) {
_quality = "MEDIUM";
}
Symbol 243 Button (35 B)
on (press) {
_quality = "HIGH";
}
Symbol 250 Button (48 B)
on (press) {
blow_sfx();
var randomizer = 1;
}
Symbol 256 Button (72 B)
on (press) {
blow_sfx();
var levelselected = 1;
var randomizer = 0;
}
Symbol 262 Button (72 B)
on (press) {
blow_sfx();
var levelselected = 5;
var randomizer = 0;
}
Symbol 268 Button (72 B)
on (press) {
blow_sfx();
var levelselected = 4;
var randomizer = 0;
}
Symbol 274 Button (72 B)
on (press) {
blow_sfx();
var levelselected = 3;
var randomizer = 0;
}
Symbol 280 Button (72 B)
on (press) {
blow_sfx();
var levelselected = 2;
var randomizer = 0;
}
Symbol 286 Button (72 B)
on (press) {
blow_sfx();
var levelselected = 6;
var randomizer = 0;
}
Symbol 291 Button (72 B)
on (press) {
blow_sfx();
var levelselected = 7;
var randomizer = 0;
}
Symbol 297 Button (72 B)
on (press) {
blow_sfx();
var levelselected = 8;
var randomizer = 0;
}
Symbol 316 MovieClip Frame 1 (109 B)
this.onEnterFrame = function () {
if (_root.dinger > 1) {
this.play();
} else {
stop();
}
};
Symbol 316 MovieClip Frame 13 (18 B)
_root.dinger = 0;
Symbol 333 MovieClip Frame 1 (115 B)
if (_root.randomizer > 0) {
gotoAndStop(random(9));
} else {
gotoAndStop(_root.levelselected);
}
stop();
Instance of Symbol 308 MovieClip "scoreboard" in Symbol 333 MovieClip Frame 1 (141 B)
onClipEvent (enterFrame) {
boardhighscore.text = _root.RSob.data.thescore;
boardscore = _root.score;
boardyourhealth = _root.yourhealth;
}
Instance of Symbol 308 MovieClip "scoreboard" in Symbol 333 MovieClip Frame 7 (141 B)
onClipEvent (enterFrame) {
boardhighscore.text = _root.RSob.data.thescore;
boardscore = _root.score;
boardyourhealth = _root.yourhealth;
}
Instance of Symbol 308 MovieClip "scoreboard" in Symbol 333 MovieClip Frame 8 (141 B)
onClipEvent (enterFrame) {
boardhighscore.text = _root.RSob.data.thescore;
boardscore = _root.score;
boardyourhealth = _root.yourhealth;
}
Symbol 343 Button (190 B)
on (press) {
stopAllSounds();
erase_all();
if (score > highscore.text) {
highscore.text = score;
RSob.data.thescore = highscore.text;
}
titlemusic_sfx();
gotoAndPlay ("menu");
}
Symbol 352 MovieClip Frame 1 (8 B)
stop();
Symbol 352 MovieClip Frame 2 (23 B)
_root.destroyed_sfx();
Symbol 352 MovieClip Frame 11 (17 B)
gotoAndPlay (3);
Symbol 354 Button (176 B)
on (press) {
stopAllSounds();
if (score > highscore.text) {
highscore.text = score;
RSob.data.thescore = highscore.text;
}
titlemusic_sfx();
gotoAndPlay ("menu");
}