Combined Code
frame 1 {
NewgroundsAPI.connectMovie(8653);
stop();
}
frame 1 {
Stage.showMenu = false;
}
frame 1 {
stop();
}
frame 1 {
_root.musicon = true;
_root.azerty = false;
}
// unknown tag 88 length 197
movieClip 6 {
}
movieClip 10 {
}
movieClip 20 {
frame 40 {
stop();
}
}
movieClip 33 {
}
button 34 {
on (press) {
tellTarget ('_root') {
nextFrame();
}
}
}
button 35 {
on (press) {
gotoAndStop('end');
_root.play();
}
}
movieClip 36 {
instance of movieClip 10 {
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');
}
}
}
frame 101 {
play();
}
frame 165 {
stop();
}
}
button 42 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
button 48 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
movieClip 49 {
}
movieClip 50 {
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');
} else {}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
movieClip 254 __Packages.NewgroundsAPI {
#initclip
if (!_global.NewgroundsAPI) {
var v1 = function () {};
_global.NewgroundsAPI = v1;
var v2 = v1.prototype;
v1.connectMovie = function (id) {
if (!id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)');
} else {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendMessage('Connecting to API gateway...');
NewgroundsAPI.tracker_id = id;
NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase();
if (NewgroundsAPI.host.length < 1) {
NewgroundsAPI.host = 'localhost';
}
var v2 = new Object();
NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS);
}
}
};
v1.setMovieVersion = function (movie_version) {
if (!movie_version) {
NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)');
} else {
NewgroundsAPI.version = movie_version;
}
};
v1.debugMode = function () {
NewgroundsAPI.debug = true;
};
v1.addCustomEvent = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom event: ' + stat_name);
}
}
};
v1.addCustomLink = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name);
}
}
};
v1.loadMySite = function () {
NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE);
};
v1.loadNewgrounds = function (special) {
if (special) {
var v1 = {'page': special};
}
NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1);
};
v1.logCustomEvent = function (event_name) {
if (!event_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)');
} else {
if (!NewgroundsAPI.custom_events[event_name]) {
NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name);
} else {
NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]);
}
}
};
v1.loadCustomLink = function (link_name) {
if (!link_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)');
} else {
if (!NewgroundsAPI.custom_links[link_name]) {
NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name);
} else {
NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]);
}
}
};
v1.getAdURL = function () {
return NewgroundsAPI.movie_options.ad_url;
};
v1.getMovieURL = function () {
if (NewgroundsAPI.movie_options.movie_url) {
return NewgroundsAPI.movie_options.movie_url;
} else {
return 'Newgrounds.com';
}
};
v1.getNewVersionURL = function () {
return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION;
};
v1.SendEvent = function (id) {
NewgroundsAPI.SendStat(id, false);
};
v1.SendLink = function (id, extra) {
NewgroundsAPI.SendStat(id, true, extra);
};
v1.ReadGatewayData = function (params) {
for (var v2 in params) {
params[v2] = unescape(params[v2]);
NewgroundsAPI.movie_options[v2] = params[v2];
}
if (params.settings_loaded) {
NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!');
NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\'');
if (NewgroundsAPI.movie_options.message) {
NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message);
}
if (NewgroundsAPI.movie_options.ad_url) {
NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads');
NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url);
}
if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) {
NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!');
NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.deny_host) {
NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.');
NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.');
NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.request_portal_url == 1) {
var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url);
var v3 = new XML();
v3.ignoreWhite = true;
v3.load(v4);
}
} else {
if (!NewgroundsAPI.movie_options.settings_loaded) {
NewgroundsAPI.SendError('Could not establish connection to the API gateway.');
}
}
};
v1.SendStat = function (stat_id, open_in_browser, extra) {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.');
NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?');
} else {
var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id;
for (var v9 in extra) {
v7 += '&' + escape(v9) + '=' + escape(extra[v9]);
}
trace(v7);
if (NewgroundsAPI.debug) {
v7 += '&debug=1';
}
if (open_in_browser) {
getURL(v7, '_blank');
} else {
var v10 = new XML();
v10.ignoreWhite = true;
v10.onLoad = function (success) {
var v6 = new Object();
var v3 = 0;
while (v3 < this.firstChild.childNodes.length) {
var v4 = this.firstChild.childNodes[v3];
var v5 = v4.nodeName;
var v2 = v4.attributes.value;
if (v2 == Number(v2)) {
v2 = Number(v2);
}
v6[v5] = v2;
++v3;
}
NewgroundsAPI.ReadGatewayData(v6);
};
v10.load(v7);
}
}
};
v1.SendError = function (msg) {
trace('[NEWGROUNDS API ERROR] :: ' + msg);
};
v1.SendMessage = function (msg) {
trace('[NEWGROUNDS API] :: ' + msg);
};
v1.InitTextFormats = function () {
if (!NewgroundsAPI.error_format) {
NewgroundsAPI.error_format = new TextFormat();
NewgroundsAPI.error_format.font = 'Arial Black';
NewgroundsAPI.error_format.size = 48;
NewgroundsAPI.error_format.color = 16711680;
}
if (!NewgroundsAPI.header_format) {
NewgroundsAPI.header_format = new TextFormat();
NewgroundsAPI.header_format.font = 'Arial Black';
NewgroundsAPI.header_format.size = 24;
NewgroundsAPI.header_format.color = 16777215;
}
if (!NewgroundsAPI.normal_format) {
NewgroundsAPI.normal_format = new TextFormat();
NewgroundsAPI.normal_format.font = 'Arial';
NewgroundsAPI.normal_format.bold = true;
NewgroundsAPI.normal_format.size = 12;
NewgroundsAPI.normal_format.color = 16777215;
}
if (!NewgroundsAPI.link_format) {
NewgroundsAPI.link_format = new TextFormat();
NewgroundsAPI.link_format.color = 16776960;
NewgroundsAPI.link_format.underline = true;
}
};
v1.onNewVersionAvailable = function (version, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
var v2 = new Object();
v2.x = Stage.width / 2;
v2.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(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.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(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.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 v3 = 'Version ' + version + ' is now available at:' + '\n';
var v5 = v3.length;
v3 += movie_url;
var v4 = v3.length;
_root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!';
_root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.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 = v3;
_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(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format);
};
v1.onDenyHost = function (hostname, movie_url, redirect_url) {
NewgroundsAPI.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 v2 = 'This movie has not been approved for use on ' + hostname + '.';
v2 += '\r\rFor an aproved copy, please visit:\r';
var v4 = v2.length;
v2 += movie_url;
var v3 = v2.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(NewgroundsAPI.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 = v2;
_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(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format);
};
v1.isInstalled = function () {
return true;
};
v1.onAdsApproved = function (ad_url) {};
v1.movie_options = new Object();
v1.custom_events = new Object();
v1.custom_links = new Object();
v1.MOVIE_VIEWS = 1;
v1.AUTHOR_SITE = 2;
v1.NEWGROUNDS = 3;
v1.NEW_VERSION = 4;
v1.CUSTOM_STATS = 50;
v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php';
ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1);
}
#endinitclip
}
frame 2 {
_root.kongregateServices.connect();
}
frame 2 {
stop();
_root.g1paused = false;
_root.g2paused = true;
_root.g3paused = true;
_root.g4paused = true;
_root.lose = false;
_root.losearea = 1;
_root.balancelosearea = 1;
_root.avoidlosearea = 2;
_root.balancewidth = 250;
_root.ballspeed = 10;
_root.balmove = 170;
_root.g2spawn = 115;
_root.g3spawn = 60;
_root.g4spawn = 120;
_root.g4speed = 1.5;
_root.scoreplus = true;
_root.soundswitch = true;
}
movieClip 52 {
}
// unknown tag 88 length 79
// unknown tag 88 length 84
button 59 {
on (release) {
_root.gotoAndStop(4);
}
}
movieClip 60 {
}
movieClip 64 {
}
movieClip 66 {
}
button 70 {
on (release) {
_root.gotoAndStop(3);
}
}
movieClip 71 {
}
button 73 {
on (keyPress 'm') {
if (_root.soundswitch == true) {
_root.musicon = false;
}
}
}
movieClip 76 {
frame 16 {
stop();
}
}
button 79 {
on (keyPress 'm') {
if (_root.soundswitch == true) {
_root.musicon = true;
}
}
}
movieClip 84 {
frame 16 {
stop();
}
}
movieClip 85 {
frame 1 {
stop();
}
}
instance of movieClip 85 {
onClipEvent (enterFrame) {
if (_root.musicon == true) {
this.gotoAndStop(2);
}
if (_root.musicon == false) {
this.gotoAndStop(3);
}
}
}
movieClip 88 {
}
movieClip 89 {
}
button 95 {
on (release) {
if (_root.backfin == true) {
_root.backbar.gotoAndPlay(81);
}
}
}
movieClip 96 {
}
button 98 {
on (release) {
if (_root.backfin2 == true) {
_root.endgame = true;
}
}
}
movieClip 99 {
}
movieClip 100 {
frame 1 {
_root.backfin = false;
play();
}
frame 80 {
stop();
_root.backfin2 = true;
}
}
movieClip 105 {
frame 1 {
_root.finalscoredisp.gotoAndStop(1);
play();
}
instance backbar2 of movieClip 100 {
onClipEvent (load) {
_root.endgame = false;
_root.backfin2 = false;
}
onClipEvent (enterFrame) {
if (_root.endgame == true) {
this._xscale *= 1.01;
this._yscale *= 1.01;
this._alpha -= 10;
}
if (this._alpha <= 0) {
_root.coverall.lose.gotoAndPlay(90);
}
}
}
frame 15 {
_root.gotoAndStop(2);
}
frame 32 {
_root.coverall.gotoAndStop(1);
}
}
movieClip 106 {
instance of movieClip 89 {
onClipEvent (load) {
this.gotoAndStop(_root.losearea);
}
}
frame 89 {
stop();
_root.finalscoredisp.gotoAndStop(2);
}
instance backbar2 of movieClip 100 {
onClipEvent (load) {
_root.endgame = false;
_root.backfin2 = false;
}
onClipEvent (enterFrame) {
if (_root.endgame == true) {
this._xscale *= 1.01;
this._yscale *= 1.01;
this._alpha -= 10;
}
if (this._alpha <= 0) {
_root.coverall.lose.gotoAndStop(90);
}
}
}
frame 90 {
stop();
}
}
movieClip 109 {
frame 1 {
stop();
}
frame 2 {
stop();
_root.scoreplus = false;
_root.g1paused = true;
_root.g2paused = true;
_root.g3paused = true;
_root.g4paused = true;
_root.soundswitch = false;
}
}
movieClip 111 {
frame 1 {
stop();
}
frame 2 {
stop();
_root.kongregateStats.submit('HighScore', _root.score);
}
}
movieClip 115 {
frame 16 {
stop();
}
}
button 117 {
on (keyPress 'q') {
if (_root.azerty == false) {
_quality = 'low';
_root.qctrl.gotoAndStop(2);
}
}
on (keyPress 'Q') {
if (_root.azerty == false) {
_quality = 'low';
_root.qctrl.gotoAndStop(2);
}
}
}
movieClip 121 {
frame 15 {
stop();
}
}
button 122 {
on (keyPress 'q') {
if (_root.azerty == false) {
_quality = 'medium';
_root.qctrl.gotoAndStop(3);
}
}
on (keyPress 'Q') {
if (_root.azerty == false) {
_quality = 'medium';
_root.qctrl.gotoAndStop(3);
}
}
}
movieClip 126 {
frame 16 {
stop();
}
}
button 127 {
on (keyPress 'q') {
if (_root.azerty == false) {
_quality = 'best';
_root.qctrl.gotoAndStop(1);
}
}
on (keyPress 'Q') {
if (_root.azerty == false) {
_quality = 'best';
_root.qctrl.gotoAndStop(1);
}
}
}
movieClip 128 {
frame 1 {
stop();
}
}
button 131 {
on (keyPress '<Space>') {
_root.azertykeyboard.gotoAndStop(2);
}
}
button 133 {
on (keyPress '<Space>') {
_root.azertykeyboard.gotoAndStop(1);
}
}
movieClip 134 {
frame 1 {
stop();
_root.azerty = false;
}
frame 2 {
stop();
_root.azerty = true;
}
}
movieClip 136 {
frame 30 {
stop();
}
frame 90 {
stop();
_root.gotoAndStop(2);
}
}
movieClip 138 {
frame 30 {
stop();
}
frame 90 {
stop();
}
}
movieClip 141 {
frame 50 {
stop();
}
frame 81 {
stop();
}
}
movieClip 142 {
frame 1 {
_root.backfin = false;
play();
}
frame 80 {
stop();
_root.backfin = true;
}
frame 81 {
_root.helptext.gotoAndPlay(51);
_root.playmove.gotoAndPlay(31);
_root.helpmove.gotoAndPlay(31);
_root.backfin = false;
play();
}
frame 100 {
stop();
}
}
movieClip 145 {
frame 1 {
stop();
}
frame 11 {
_root.gotoAndStop(5);
}
}
movieClip 146 {
frame 1 {
}
frame 40 {
stop();
_root.bgchange.gotoAndPlay(2);
}
}
frame 5 {
stop();
}
movieClip 148 {
}
instance of movieClip 148 {
onClipEvent (load) {
this._alpha = 0;
t = 0;
}
onClipEvent (enterFrame) {
++t;
if (t >= 10) {
this._alpha += 4;
if (this._alpha >= 100) {
this._alpha = 100;
}
}
}
}
movieClip 150 {
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = true;
s = 10.4;
t = 0;
}
onClipEvent (enterFrame) {
++t;
if (t >= 23) {
_root.g1._y -= s;
s -= 0.2;
if (s <= 0) {
s = 0;
}
}
}
}
movieClip 152 {
}
movieClip 153 {
}
movieClip 154 {
frame 1 {
s;
}
instance ball of movieClip 152 {
onClipEvent (load) {
_root.playing1 = true;
movement = 0;
fall = 0;
}
onClipEvent (enterFrame) {
if (_root.g1paused == false) {
this._x += movement;
if (this._x > -(_root.balancewidth / 2 + 5) && this._x < _root.balancewidth / 2 + 7) {
movement = _root.g1._rotation / _root.ballspeed;
}
if (this._x > _root.balancewidth / 2 + 5) {
this._y += fall;
fall += 0.4;
movement *= 1.03;
_root.playing1 = false;
this._alpha -= 10;
}
if (this._x < -(_root.balancewidth / 2 + 5)) {
this._y += fall;
fall += 0.4;
movement *= 1.03;
_root.playing1 = false;
this._alpha -= 10;
}
if (this._alpha < 50) {
_root.losearea = _root.balancelosearea;
_root.coverall.gotoAndStop(2);
}
}
}
}
instance bar of movieClip 153 {
onClipEvent (enterFrame) {
this._width = _root.balancewidth;
}
}
}
instance g1 of movieClip 154 {
onClipEvent (load) {
rspeed = 0;
}
onClipEvent (enterFrame) {
if (_root.g1paused == false) {
if (_root.playing1 == true) {
_root.g1rotation = this._rotation;
this._rotation += rspeed;
if (Key.isDown(39)) {
rspeed += 0.2;
}
if (Key.isDown(37)) {
rspeed -= 0.2;
}
if (rspeed > 2) {
rspeed = 2;
}
if (rspeed < -2) {
rspeed = -2;
}
if (!Key.isDown(37) && !Key.isDown(39)) {
rspeed /= 1.1;
}
this._rotation += this.ball._x / _root.balmove;
}
if (rspeed < 1 && rspeed >= 0) {
rspeed += 0.001;
}
if (rspeed > -1 && rspeed < 0) {
rspeed -= 0.001;
}
}
if (this._rotation > 50) {
this._rotation = 50;
}
if (this._rotation < -50) {
this._rotation = -50;
}
}
}
movieClip 159 {
}
movieClip 160 {
frame 100 {
stop();
}
instance of movieClip 159 {
onClipEvent (keyDown) {
_root.gotoAndStop(6);
}
}
}
// unknown tag 88 length 86
movieClip 163 {
}
instance of movieClip 163 {
onClipEvent (load) {
_root.rawscore = 0;
}
onClipEvent (enterFrame) {
_root.rawscore += 0;
_root.score = Math.floor(_root.rawscore);
}
}
movieClip 168 {
frame 10 {
stop();
}
}
movieClip 170 {
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 0;
}
onClipEvent (enterFrame) {
_root.score = Math.floor(rawscore);
}
}
movieClip 171 {
frame 1 {
stop();
}
}
instance of movieClip 171 {
onClipEvent (enterFrame) {
if (_root.musicon == true) {
this.gotoAndStop(2);
}
if (_root.musicon == false) {
this.gotoAndStop(3);
}
}
}
frame 6 {
stop();
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = false;
}
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 0;
}
onClipEvent (enterFrame) {
if (_root.scoreplus == true) {
rawscore += 0.03333;
}
_root.score = Math.floor(rawscore);
if (_root.score >= 15) {
_root.gotoAndStop(7);
}
}
}
movieClip 174 {
}
frame 7 {
stop();
}
movieClip 180 {
frame 48 {
stop();
}
}
movieClip 182 {
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = true;
s = 10.9;
_root.avoidlosearea = 3;
}
onClipEvent (enterFrame) {
_root.g2._x -= s;
s -= 0.24;
if (s <= 0) {
s = 0;
}
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = true;
s = 8.550000000000001;
_root.balancelosearea = 2;
}
onClipEvent (enterFrame) {
_root.g1._x -= s;
s -= 0.2;
if (s <= 0) {
s = 0;
}
}
}
movieClip 184 {
}
movieClip 188 {
frame 1 {
stop();
}
frame 31 {
stop();
}
}
movieClip 190 {
instance g2square of movieClip 184 {
onClipEvent (load) {
speed = 28.5;
u = 0;
d = 0;
}
onClipEvent (enterFrame) {
if (_root.g2paused == false) {
if (Key.isDown(38) && this._y > -55) {
++u;
if (u == 1) {
this._y -= speed;
}
if (u >= 15) {
this._y -= speed;
}
} else {
u = 0;
}
if (Key.isDown(40) && this._y < 55) {
++d;
if (d == 1) {
this._y += speed;
}
if (d >= 17) {
this._y += speed;
}
} else {
d = 0;
}
}
}
}
instance g2en of movieClip 188 {
onClipEvent (load) {
this._x = -435;
this._alpha = 0;
speed = Math.random() * 3 + 4;
pos = random(5);
this._y = -57 + pos * 28.2;
}
onClipEvent (enterFrame) {
if (_root.g2paused == false) {
if (this._alpha < 100 && this._x <= 114) {
this._alpha += 8;
}
this._x += speed;
if (this._x > 114) {
this._alpha -= 10;
}
if (this._alpha < 0) {
this._alpha = 0;
}
}
if (this.hitTest(_root.g2.g2square)) {
_root.coverall.gotoAndStop(2);
_root.losearea = _root.avoidlosearea;
}
}
}
instance g2entwo of movieClip 188 {
onClipEvent (load) {
this._alpha = 0;
this._x = 430;
speed = Math.random() * 3 + 4;
pos = random(5);
this._y = -57 + pos * 28.2;
}
onClipEvent (enterFrame) {
if (_root.g2paused == false) {
if (_root.en2go == true) {
if (this._alpha < 100 && this._x >= -115) {
this._alpha += 8;
}
this._x -= speed;
if (this._x < -115) {
this._alpha -= 10;
}
if (this._alpha < 0) {
this._alpha = 0;
}
}
}
if (this.hitTest(_root.g2.g2square)) {
_root.coverall.gotoAndStop(2);
_root.losearea = _root.avoidlosearea;
}
}
}
}
instance g2 of movieClip 190 {
onClipEvent (load) {
timeone = 0;
numone = 1;
timetwo = -200;
numtwo = 1;
intone = 150;
inttwo = 150;
}
onClipEvent (enterFrame) {
if (_root.g2paused == false) {
if (timetwo >= -100 && timetwo < -1) {
_root.en2go = true;
timetwo = 0;
}
++timeone;
if (timeone >= intone) {
++numone;
intone = random(_root.g2spawn / 2) + _root.g2spawn;
duplicateMovieClip(this.g2en, 'g2enemy' + numone, numone);
timeone = 0;
}
++timetwo;
if (timetwo >= inttwo) {
++numtwo;
duplicateMovieClip(this.g2entwo, 'g2enemytwo' + numtwo, numtwo + 1000);
timetwo = 0;
_root.en2go = true;
inttwo = random(_root.g2spawn / 2) + _root.g2spawn;
}
}
}
}
movieClip 193 {
frame 73 {
stop();
}
instance of movieClip 159 {
onClipEvent (keyDown) {
_root.gotoAndStop(8);
}
}
}
frame 8 {
stop();
}
movieClip 194 {
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = false;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = false;
}
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 15;
}
onClipEvent (enterFrame) {
if (_root.scoreplus == true) {
rawscore += 0.03333;
}
_root.score = Math.floor(rawscore);
if (_root.score >= 40) {
_root.gotoAndStop(9);
}
}
}
frame 9 {
stop();
}
movieClip 201 {
frame 50 {
stop();
}
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = true;
s = 7.1;
_root.avoidlosearea = 5;
}
onClipEvent (enterFrame) {
_root.g2._y -= s;
s -= 0.2;
if (s <= 0) {
s = 0;
}
}
}
movieClip 203 {
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = true;
s = 8;
t = 0;
}
onClipEvent (enterFrame) {
++t;
if (t >= 10) {
_root.g3._y -= s;
s -= 0.22;
if (s <= 0) {
s = 0;
}
}
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = true;
s = 0;
}
}
movieClip 215 {
}
movieClip 216 {
}
movieClip 218 {
}
movieClip 219 {
instance space of movieClip 216 {
onClipEvent (load) {
t = 0;
a = 0;
this._xscale = 100;
this._yscale = 100;
dissapear = false;
this._alpha = 0;
this._x = random(300) - 145;
this._y = random(190) - 90;
}
onClipEvent (enterFrame) {
if (_root.g3paused == false) {
if (dissapear == false) {
++t;
}
if (a == 0) {
this._alpha = 100;
}
if (this._alpha <= 100 && dissapear == false) {
this._alpha += 5;
}
if (this.hitTest(_root.g3.player)) {
++a;
t = 0;
dissapear = true;
}
if (t >= 200 && t < 210) {
this._alpha = 20;
}
if (t >= 210 && t < 220) {
this._alpha = 100;
}
if (t >= 220 && t < 230) {
this._alpha = 20;
}
if (t >= 230 && t < 240) {
this._alpha = 100;
}
if (t >= 240 && t < 250) {
this._alpha = 20;
}
if (t >= 250 && t < 260) {
this._alpha = 100;
}
if (t >= 260 && t < 270) {
this._alpha = 20;
}
if (t >= 270 && t < 280) {
this._alpha = 100;
}
if (t >= 280 && t < 290) {
this._alpha = 20;
}
if (t >= 290 && t < 300) {
this._alpha = 100;
}
if (t >= 300) {
this._xscale -= 5;
this._yscale -= 5;
}
if (this._xscale <= 0) {
_root.losearea = 7;
_root.coverall.gotoAndStop(2);
this._xscale = 0;
this._yscale = 0;
}
if (this._alpha < 0) {
this._xscale = 100;
this._yscale = 100;
this._alpha = 0;
this._x = 10000;
}
}
if (dissapear == true) {
this._xscale += 2;
this._yscale += 2;
this._alpha -= 8;
}
this.countdown.gotoAndStop(t);
}
}
instance player of movieClip 218 {
onClipEvent (enterFrame) {
if (_root.g3paused == false) {
if (_root.azerty == false) {
if (Key.isDown(87) && this._y >= -103) {
this._y -= 4;
}
if (Key.isDown(65) && this._x >= -162) {
this._x -= 4;
}
if (Key.isDown(83) && this._y <= 111) {
this._y += 4;
}
if (Key.isDown(68) && this._x <= 173) {
this._x += 4;
}
}
if (_root.azerty == true) {
if (Key.isDown(90) && this._y >= -103) {
this._y -= 4;
}
if (Key.isDown(81) && this._x >= -162) {
this._x -= 4;
}
if (Key.isDown(83) && this._y <= 111) {
this._y += 4;
}
if (Key.isDown(68) && this._x <= 173) {
this._x += 4;
}
}
}
}
}
}
instance g3 of movieClip 219 {
onClipEvent (load) {
t = 0;
n = 0;
interval = 130;
}
onClipEvent (enterFrame) {
if (_root.g3paused == false) {
++t;
if (t >= interval) {
++n;
duplicateMovieClip(this.space, 'space' + n, n + 3000);
t = 0;
interval = random(_root.g3spawn / 2.5) + _root.g3spawn;
}
}
}
}
movieClip 223 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 224 {
instance of movieClip 223 {
onClipEvent (load) {
if (_root.azerty == true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
}
frame 73 {
stop();
}
instance of movieClip 159 {
onClipEvent (keyDown) {
_root.gotoAndStop(10);
}
}
}
frame 10 {
stop();
}
movieClip 226 {
frame 1 {
stop();
}
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = false;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = false;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = false;
}
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 40;
}
onClipEvent (enterFrame) {
if (_root.scoreplus == true) {
rawscore += 0.03333;
}
_root.score = Math.floor(rawscore);
if (_root.score >= 80) {
_root.gotoAndStop(11);
}
}
}
frame 11 {
stop();
}
movieClip 233 {
frame 51 {
stop();
}
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = true;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = true;
}
}
movieClip 235 {
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = true;
s = 8;
t = 0;
}
onClipEvent (enterFrame) {
++t;
if (t >= 10) {
_root.g4._y -= s;
s -= 0.22;
if (s <= 0) {
s = 0;
}
}
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = true;
s = 7.1;
_root.balancelosearea = 4;
}
onClipEvent (enterFrame) {
_root.g1._y -= s;
s -= 0.2;
if (s <= 0) {
s = 0;
}
}
}
movieClip 236 {
}
movieClip 237 {
}
movieClip 239 {
}
movieClip 240 {
instance obs of movieClip 236 {
onClipEvent (load) {
this._alpha = 0;
this._x = 280;
speed = _root.g4speed;
pos = random(18);
if (pos < 9) {
this._y = 89 - pos * 22;
}
if (pos >= 9 && pos <= 14) {
this._y = 89;
}
if (pos > 14 && pos <= 17) {
this._y = -87;
}
}
onClipEvent (enterFrame) {
if (_root.g4paused == false) {
if (this._alpha < 100 && this._x >= -50) {
this._alpha += 4;
}
this._x -= speed;
if (this._x < -50) {
this._alpha -= 10;
}
if (this._alpha < 0) {
this._alpha = 0;
}
}
if (this.hitTest(_root.g4.ship.hit)) {
_root.losearea = 6;
_root.coverall.gotoAndStop(2);
}
}
}
instance ship of movieClip 239 {
onClipEvent (load) {
s = 0;
}
onClipEvent (enterFrame) {
if (_root.g4paused == false) {
this._y -= s;
if (Key.isDown(32)) {
s += 0.25;
this._rotation -= 0.6;
} else {
s -= 0.25;
this._rotation += 0.6;
}
if (s >= 4) {
s = 4;
}
if (s <= -4) {
s = -4;
}
if (this._rotation >= 9) {
this._rotation = 9;
}
if (this._rotation <= -9) {
this._rotation = -9;
}
if (this._y > 110) {
this._y = 110;
s = 0;
}
if (this._y < -110) {
this._y = -110;
s = 0;
}
}
}
}
}
instance g4 of movieClip 240 {
onClipEvent (load) {
t = 0;
n = 0;
interval = 180;
}
onClipEvent (enterFrame) {
if (_root.g4paused == false) {
++t;
if (t >= interval) {
++n;
duplicateMovieClip(this.obs, 'obs' + n, n + 2000);
t = 0;
interval = random(_root.g4spawn / 2) + _root.g4spawn;
}
}
}
}
movieClip 243 {
frame 75 {
stop();
}
instance of movieClip 159 {
onClipEvent (keyDown) {
_root.gotoAndStop(12);
}
}
}
frame 12 {
stop();
}
movieClip 244 {
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = false;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = false;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = false;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = false;
}
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 80;
}
onClipEvent (enterFrame) {
if (_root.scoreplus == true) {
rawscore += 0.03333;
}
_root.score = Math.floor(rawscore);
if (_root.score >= 120) {
_root.gotoAndStop(13);
}
}
}
frame 13 {
stop();
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = true;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = true;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = true;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = true;
}
}
movieClip 247 {
frame 20 {
stop();
}
instance of movieClip 159 {
onClipEvent (keyDown) {
_root.gotoAndStop(14);
}
}
}
frame 14 {
stop();
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = false;
_root.g2spawn = 95;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = false;
_root.g3spawn = 45;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = false;
_root.g4spawn = 100;
_root.g4speed = 1.8;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = false;
_root.balancewidth = 250;
_root.ballspeed = 10;
_root.balmove = 150;
}
onClipEvent (enterFrame) {
_root.balancewidth -= 0.5;
if (_root.balancewidth < 220) {
_root.balancewidth = 220;
}
}
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 120;
}
onClipEvent (enterFrame) {
if (_root.scoreplus == true) {
rawscore += 0.03333;
}
_root.score = Math.floor(rawscore);
if (_root.score >= 180) {
_root.gotoAndStop(15);
}
}
}
frame 15 {
stop();
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = true;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = true;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = true;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = true;
}
}
movieClip 249 {
frame 20 {
stop();
}
instance of movieClip 159 {
onClipEvent (keyDown) {
_root.gotoAndStop(16);
}
}
}
frame 16 {
stop();
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = false;
_root.g2spawn = 80;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = false;
_root.g3spawn = 35;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = false;
_root.g4spawn = 80;
_root.g4speed = 2.1;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = false;
_root.balancewidth = 220;
_root.ballspeed = 10;
_root.balmove = 130;
}
onClipEvent (enterFrame) {
_root.balancewidth -= 0.5;
if (_root.balancewidth < 190) {
_root.balancewidth = 190;
}
}
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 180;
}
onClipEvent (enterFrame) {
if (_root.scoreplus == true) {
rawscore += 0.03333;
}
_root.score = Math.floor(rawscore);
if (_root.score >= 250) {
_root.gotoAndStop(17);
}
}
}
frame 17 {
stop();
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = true;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = true;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = true;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = true;
}
}
movieClip 251 {
frame 20 {
stop();
}
instance of movieClip 159 {
onClipEvent (keyDown) {
_root.gotoAndStop(18);
}
}
}
frame 18 {
stop();
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = false;
_root.g2spawn = 60;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = false;
_root.g3spawn = 25;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = false;
_root.g4spawn = 60;
_root.g4speed = 2.4;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = false;
_root.balancewidth = 190;
_root.ballspeed = 10;
_root.balmove = 130;
}
onClipEvent (enterFrame) {
_root.balancewidth -= 0.5;
if (_root.balancewidth < 160) {
_root.balancewidth = 160;
}
}
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 250;
}
onClipEvent (enterFrame) {
if (_root.scoreplus == true) {
rawscore += 0.03333;
}
_root.score = Math.floor(rawscore);
if (_root.score >= 400) {
_root.gotoAndStop(19);
}
}
}
frame 19 {
stop();
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = true;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = true;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = true;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = true;
}
}
movieClip 253 {
frame 20 {
stop();
}
instance of movieClip 159 {
onClipEvent (keyDown) {
_root.gotoAndStop(20);
}
}
}
frame 20 {
stop();
}
instance of movieClip 182 {
onClipEvent (load) {
_root.g2paused = false;
_root.g2spawn = 40;
}
}
instance of movieClip 203 {
onClipEvent (load) {
_root.g3paused = false;
_root.g3spawn = 15;
}
}
instance of movieClip 235 {
onClipEvent (load) {
_root.g4paused = false;
_root.g4spawn = 40;
_root.g4speed = 2.7;
}
}
instance of movieClip 150 {
onClipEvent (load) {
_root.g1paused = false;
_root.balancewidth = 160;
_root.ballspeed = 10;
_root.balmove = 110;
}
onClipEvent (enterFrame) {
_root.balancewidth -= 0.5;
if (_root.balancewidth < 130) {
_root.balancewidth = 130;
}
}
}
instance of movieClip 170 {
onClipEvent (load) {
rawscore = 400;
}
onClipEvent (enterFrame) {
if (_root.scoreplus == true) {
rawscore += 0.03333;
}
_root.score = Math.floor(rawscore);
}
}