Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function soundy(nam, vol, xxasda) {
if ((!_root.soundoff) or xxasda) {
if (nam == "wrong") {
if (sold < 0) {
sold = 8;
} else {
vol = 0;
}
}
if (vol == undefined) {
vol = 100;
}
if (vol > 0) {
v0 = _root.sz.length;
_root.szz++;
_root.sz[v0] = _root.attachMovie("soundz", "sz" + _root.szz, _root.szz + 2000000000);
_root.sz[v0].nam = nam;
_root.sz[v0].s = new Sound(_root.sz[v0]);
_root.sz[v0].s.attachSound(nam);
_root.sz[v0].s.setVolume(vol);
_root.sz[v0].s.setPan(pan);
if (nam == "power2") {
_root.sz[v0].s.start(0, 99999);
} else {
_root.sz[v0].s.start(0, 0);
}
return(_root.szz);
}
}
}
NewgroundsAPI.connectMovie(2812);
__com_mochibot__("80041e4c", this, 10301, true);
_root.mus = 0;
_root.sz = [];
_root.szz = 0;
sold = 0;
Frame 3
gotoAndStop ("jayisgames");
Frame 5
stop();
choice = 0;
so = SharedObject.getLocal("so");
if (so.data.l == undefined) {
_root.buts.block2.anim.gotoAndStop(2);
}
so.flush();
Instance of Symbol 232 MovieClip "bt2" in Frame 5
onClipEvent (load) {
if (_root.so.data.l == undefined) {
unloadMovie (this);
}
}
Frame 6
winlevel = 0;
Instance of Symbol 271 MovieClip in Frame 6
onClipEvent (load) {
gotoAndStop(_root.lev);
}
onClipEvent (enterFrame) {
if (this.cacheAsBitmap == false) {
this.cacheAsBitmap = true;
}
}
Frame 7
choice = 0;
if (winlevel == 1) {
so = SharedObject.getLocal("so");
so.data.l = _root.lev + 1;
so.data["s" + _root.lev] = _root.sco;
_root.scc = 0;
e = 1;
while (e < (_root.lev + 1)) {
v1 = so.data["s" + e];
if (v1 == undefined) {
v1 = 0;
}
_root["sc" + e] = v1;
_root.scoretable["sc" + e] = v1;
_root.scc = _root.scc + v1;
e++;
}
_root.scoretable.scc = scc;
so.flush();
_root.lev++;
}
Frame 8
choice = 0;
Frame 12
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
NewgroundsAPI.logCustomEvent("game complete");
__com_mochibot__("c7de6f5b", this, 10301, true);
Frame 27
gotoAndStop ("game");
Symbol 7 MovieClip Frame 1
ftw = _parent.ftw;
Symbol 8 MovieClip [scoreshow] Frame 54
removeMovieClip(this);
stop();
Symbol 25 MovieClip [ring6] Frame 19
removeMovieClip(this);
Symbol 26 MovieClip Frame 1
gotoAndStop(_parent.s);
Symbol 530 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 45 MovieClip Frame 40
stop();
Symbol 59 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 60 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 35 MovieClip in Symbol 61 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 61 MovieClip Frame 101
play();
Symbol 61 MovieClip Frame 165
stop();
Symbol 67 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 73 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 75 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 81 MovieClip [0] Frame 27
done = true;
Symbol 85 MovieClip [1] Frame 27
done = true;
Symbol 89 MovieClip [2] Frame 27
done = true;
Symbol 93 MovieClip [3] Frame 27
done = true;
Symbol 97 MovieClip [4] Frame 27
done = true;
Symbol 101 MovieClip [5] Frame 27
done = true;
Symbol 105 MovieClip [6] Frame 27
done = true;
Symbol 106 MovieClip Frame 1
d.gotoAndStop(_parent._parent.s);
Symbol 107 MovieClip [bubbledis] Frame 1
bl = 1;
xsc = 100;
ck = 0;
dp = 2010000 /* 0x1EAB90 */;
while (_parent._parent[_parent._parent.getInstanceAtDepth(dp)].getDepth() != undefined) {
dp++;
}
_parent._parent.attachMovie("bloops", "rng" + dp, dp, {_x:_parent._x, _y:_parent._y, s:_parent.s});
gotoAndPlay (2);
Symbol 107 MovieClip [bubbledis] Frame 2
xsc = xsc - 5;
bally._xscale = xsc;
bally._yscale = xsc;
ck++;
if (xsc == 0) {
removeMovieClip(this);
}
Symbol 107 MovieClip [bubbledis] Frame 3
gotoAndPlay (2);
Symbol 110 MovieClip [ring1] Frame 19
removeMovieClip(this);
Symbol 113 MovieClip [ring2] Frame 19
removeMovieClip(this);
Symbol 116 MovieClip [ring3] Frame 19
removeMovieClip(this);
Symbol 119 MovieClip [ring4] Frame 19
removeMovieClip(this);
Symbol 122 MovieClip [ring5] Frame 19
removeMovieClip(this);
Symbol 125 MovieClip [ring7] Frame 19
removeMovieClip(this);
Symbol 128 MovieClip Frame 21
unloadMovie (this);
Symbol 129 MovieClip [bubbleappear] Frame 1
bl = 1;
xsc = 0;
ck = 0;
this.attachMovie("ring" + _parent.s, "rng", 1);
gotoAndPlay (2);
Symbol 129 MovieClip [bubbleappear] Frame 2
xsc = xsc + 10;
bally._xscale = xsc;
bally._yscale = xsc;
ck++;
if (xsc == 100) {
gotoAndPlay (4);
}
Symbol 129 MovieClip [bubbleappear] Frame 3
gotoAndPlay (2);
Symbol 129 MovieClip [bubbleappear] Frame 4
ck++;
if (ck > 19) {
_parent.gotoAndStop(1);
removeMovieClip(this);
}
Symbol 129 MovieClip [bubbleappear] Frame 5
gotoAndPlay (4);
Symbol 137 MovieClip Frame 1
_xscale = (random(60) + 60);
_yscale = _xscale;
gotoAndStop(_parent._parent.s);
this.cacheAsBitmap = true;
Symbol 137 MovieClip Frame 2
this.cacheAsBitmap = true;
Symbol 137 MovieClip Frame 3
this.cacheAsBitmap = true;
Symbol 137 MovieClip Frame 4
this.cacheAsBitmap = true;
Symbol 137 MovieClip Frame 5
this.cacheAsBitmap = true;
Symbol 137 MovieClip Frame 6
this.cacheAsBitmap = true;
Symbol 137 MovieClip Frame 7
this.cacheAsBitmap = true;
Symbol 138 MovieClip Frame 1
ys = random(4) + 3;
_rotation = random(360);
gotoAndPlay (2);
Symbol 138 MovieClip Frame 2
if (ys > 0.5) {
ys = ys - 0.2;
}
blow._y = blow._y + ys;
if (ys < 3) {
_alpha = (_alpha - 10);
ys = ys - 0.3;
blow._xscale = blow._xscale - 5;
blow._yscale = blow._yscale - 5;
if (_alpha < 5) {
unloadMovie (this);
}
}
Symbol 138 MovieClip Frame 3
gotoAndPlay (2);
Symbol 139 MovieClip [bloops] Frame 1
ck = 0;
Symbol 139 MovieClip [bloops] Frame 3
ck++;
if (ck > 100) {
removeMovieClip(this);
}
Symbol 139 MovieClip [bloops] Frame 4
gotoAndPlay (3);
Symbol 142 MovieClip [ring2d] Frame 19
removeMovieClip(this);
Symbol 145 MovieClip [ring3d] Frame 19
removeMovieClip(this);
Symbol 148 MovieClip [ring4d] Frame 19
removeMovieClip(this);
Symbol 151 MovieClip [ring5d] Frame 19
removeMovieClip(this);
Symbol 154 MovieClip [ring6d] Frame 19
removeMovieClip(this);
Symbol 157 MovieClip [ring7d] Frame 19
removeMovieClip(this);
Symbol 159 MovieClip Frame 1
lev = "Level " + _root.lev;
Symbol 160 MovieClip [levelsh] Frame 15
stop();
Symbol 160 MovieClip [levelsh] Frame 49
_root.a.wtfz = true;
removeMovieClip(this);
Symbol 163 MovieClip [levelcp] Frame 31
removeMovieClip(this);
stop();
Symbol 166 MovieClip [ring1d] Frame 16
removeMovieClip(this);
Symbol 185 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 60
stop();
Symbol 199 MovieClip Frame 60
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
ck = 0;
stop();
Symbol 229 MovieClip Frame 2
ck++;
this["block" + opt]._x = this["block" + opt]._x + (15 - (ck / 10));
_root["bt" + opt]._x = _root["bt" + opt]._x + (15 - (ck / 10));
if (ck > 15) {
if (opt == 1) {
_root.lev = 1;
_root.gotoAndStop("game");
}
if (opt == 2) {
v1 = _root.so.data.l;
if (v1 > 20) {
_root.gotoAndStop("win");
} else {
_root.lev = v1;
_root.gotoAndStop("game");
}
}
if (opt == 3) {
_root.gotoAndStop("credits");
}
}
Symbol 229 MovieClip Frame 3
gotoAndPlay (2);
Symbol 231 Button
on (release) {
if ((_root.choice != 1) and (_root.so.data.l != undefined)) {
_root.choice = 1;
_root.buts.gotoAndPlay(2);
_root.buts.opt = 2;
_root.bt1.gotoAndStop(3);
_root.bt3.gotoAndStop(3);
_root.bt4.gotoAndStop(3);
_root.bt5.gotoAndStop(3);
_root.soundy("coolbutton");
}
}
Symbol 232 MovieClip Frame 1
stop();
Symbol 233 Button
on (release) {
_root.soundy("coolbutton");
if (_root.choice != 1) {
_root.choice = 1;
_root.buts.gotoAndPlay(2);
_root.buts.opt = 1;
gotoAndStop (2);
_root.bt2.gotoAndStop(3);
_root.bt3.gotoAndStop(3);
_root.bt4.gotoAndStop(3);
_root.bt5.gotoAndStop(3);
}
}
Symbol 234 MovieClip Frame 1
stop();
Symbol 235 Button
on (release) {
_root.soundy("coolbutton");
if (_root.choice != 1) {
_root.choice = 1;
_root.buts.gotoAndPlay(2);
_root.buts.opt = 3;
_root.bt1.gotoAndStop(3);
_root.bt2.gotoAndStop(3);
_root.bt3.gotoAndStop(3);
_root.bt5.gotoAndStop(3);
gotoAndStop (2);
}
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 237 Button
on (release) {
_root.soundy("coolbutton");
if (_root.choice != 1) {
getURL ("http://www.jayisgames.com", "_blank");
}
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 242 Button
on (release) {
getURL ("http://www.gamebalance.com", "_blank");
}
Symbol 245 Button
on (release) {
getURL ("http://www.komix-games.com", "_blank");
}
Symbol 265 Button
on (release) {
getURL ("http://www.jayisgames.com/", "_blank");
}
Symbol 303 MovieClip Frame 1
_root.bucks++;
trg = _root.a.m.attachMovie("bucket", "b" + _root.bucks, _root.bucks);
trg._x = _x;
trg._y = _y;
trg._rotation = _rotation;
trg._xscale = _xscale;
trg._yscale = _yscale;
this.swapDepths(_root.bucks + 1000000);
gof = _root.bucks;
goz = -4;
gotoAndPlay ("wait");
_name = ("buck" + _root.bucks);
Symbol 303 MovieClip Frame 2
gotoAndStop(gof + 2);
Symbol 303 MovieClip Frame 14
if (goz < gof) {
goz++;
gotoAndPlay ("wait");
} else {
gotoAndPlay("a" + gof);
}
if (_root.a.levelsh._currentframe >= 15) {
_root.a.levelsh.gotoAndPlay(16);
}
Symbol 303 MovieClip Frame 36
gotoAndStop (2);
Symbol 303 MovieClip Frame 58
gotoAndStop (2);
Symbol 303 MovieClip Frame 80
gotoAndStop (2);
Symbol 303 MovieClip Frame 102
gotoAndStop (2);
Symbol 303 MovieClip Frame 124
gotoAndStop (2);
Symbol 303 MovieClip Frame 146
gotoAndStop (2);
Symbol 303 MovieClip Frame 168
gotoAndStop (2);
Symbol 303 MovieClip Frame 190
stop();
Symbol 303 MovieClip Frame 212
stop();
Symbol 303 MovieClip Frame 234
stop();
Symbol 303 MovieClip Frame 256
stop();
Symbol 303 MovieClip Frame 278
stop();
Symbol 303 MovieClip Frame 300
stop();
Symbol 303 MovieClip Frame 322
stop();
Symbol 342 MovieClip Frame 1
_root.bucks++;
trg = _root.a.m.attachMovie("bucket", "b" + _root.bucks, _root.bucks);
trg._x = _x;
trg._y = _y;
trg._rotation = _rotation;
trg._xscale = _xscale;
trg._yscale = _yscale;
this.swapDepths(_root.bucks + 1000000);
gof = _root.bucks;
goz = -4;
gotoAndPlay ("wait");
_name = ("buck" + _root.bucks);
Instance of Symbol 277 MovieClip in Symbol 342 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent._rotation = _parent._rotation + 1.5;
_parent.trg._rotation = _parent.trg._rotation + 1.5;
}
Symbol 342 MovieClip Frame 2
gotoAndStop(gof + 1);
Instance of Symbol 290 MovieClip in Symbol 342 MovieClip Frame 5
onClipEvent (enterFrame) {
_parent._rotation = _parent._rotation + 1.5;
_parent.trg._rotation = _parent.trg._rotation + 1.5;
}
Symbol 342 MovieClip Frame 12
if (goz < gof) {
goz++;
gotoAndPlay ("wait");
} else {
gotoAndPlay("a" + gof);
}
if (_root.a.levelsh._currentframe >= 15) {
_root.a.levelsh.gotoAndPlay(16);
}
Symbol 342 MovieClip Frame 34
gotoAndStop (2);
Symbol 342 MovieClip Frame 55
nextFrame();
gotoAndStop;
Symbol 342 MovieClip Frame 77
gotoAndStop (2);
Symbol 342 MovieClip Frame 99
stop();
Symbol 379 MovieClip Frame 1
function create(f1, f2, f3, f4, f5, f6, f7) {
ballz++;
namer = "b" + ballz;
f0 = ball.length;
if (f0 == 0) {
ball[f0] = attachMovie("ball", namer, ballz + 20000);
} else {
ball[f0] = attachMovie("ball", namer, ballz + 10000);
}
ball[f0].xp = f1;
ball[f0].yp = f2;
ball[f0].rp = f3;
ball[f0].xbew = (f4 * Math.random()) * 0.001;
ball[f0].ybew = (f5 * Math.random()) * 0.001;
ball[f0].rbew = f6;
ball[f0].s = f7;
ball[f0].e = f0;
ball[f0].gotoAndStop(2);
ball[f0].spark = 0;
ball[f0].attachMovie("bubbleappear", "bbbap", 1);
ball[f0].gh = -50000;
ball[f0].ibk = 0;
if (!(f7 === 8)) {
}
ball[f0].x1 = (ball[f0].x2 = 0);
}
function parc(f1, f2, f3, f4) {
if (parz > 2000) {
parz = 0;
}
parz++;
namer = "p" + parz;
f0 = par.length;
par[f0] = attachMovie(f1, namer, parz + 5000);
par[f0]._x = f2;
par[f0]._y = f3;
par[f0].stop();
par[f0]._rotation = f4;
}
function rotc(f0) {
if ((Math.abs(f0) > 200) && false) {
return(f0 * 0.1);
}
return(f0 * 0.5);
}
function t3d(f1, f2) {
f2 = f2 + f1._rotation;
f2 = f2 + 45;
while (f2 > 360) {
f2 = f2 - 360;
}
while (f2 < 0) {
f2 = f2 + 360;
}
f1.gotoAndStop(Math.round((f2 / 360) * 72) + 1);
}
function bhs(f1) {
if (f1 > 0.8) {
f1 = f1 * 1.3;
f1 = f1 + 2;
if (f1 > 12) {
if (f1 > 18) {
f1 = 18;
}
_root.soundy("bh3", f1 * 10);
} else if (f1 > 7) {
_root.soundy("bh2", f1 * 10);
} else if (f1 > 4) {
_root.soundy("bh1", f1 * 10);
}
}
}
function soundstopi() {
for (z in _root.sz) {
trg = _root.sz[z];
_root.sz[z].s.stop();
trg.swapDepths(100);
removeMovieClip(trg);
}
_root.sz = [];
}
function musicdown() {
for (z in _root.sz) {
trg = _root.sz[e];
if (trg.nam == music[_root.mus]) {
trg.s.setVolume(0);
}
}
}
function mhit(f1, f2) {
return(m.hitTest(f1 + _x, f2 + _y, true));
}
function pull(f1, f2, f3, f4, f5) {
if (f1 == 0) {
v = 0.8;
} else {
v = 1.2;
}
v = 1;
f1 = ball[f1];
f2 = ball[f2];
f5 = leg[f5];
f5._x = f1._x;
f5._y = f1._y;
xenf = f1._x - f2._x;
yenf = f1._y - f2._y;
f5._rotation = ((Math.atan((-xenf) / yenf) / Math.PI) * 180) + 90;
if (yenf >= 0) {
f5._rotation = f5._rotation + 180;
}
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
f5._xscale = enf;
f5._yscale = 50;
xenf = ((f1._x + f1.xbew) - f2._x) - f2.xbew;
yenf = ((f1._y + f1.ybew) - f2._y) - f2.ybew;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (enf != 0) {
enf = (f3 - enf) / enf;
xenf = xenf * (enf * f4);
yenf = yenf * (enf * f4);
f1.xbew = f1.xbew + (xenf * v);
f1.ybew = f1.ybew + (yenf * v);
f2.xbew = f2.xbew - (xenf / v);
f2.ybew = f2.ybew - (yenf / v);
}
}
function scog(f1) {
return(Math.round(((450 + (_root.lev * 50)) / 10) / Math.max(1, tries[f1])) * 10);
}
function onEnterFrame() {
if (!zarg) {
zarg = true;
_root.soundy("level-start", 80);
}
_root.sold--;
v1 = (v2 = false);
ftw = 0;
for (e in _root.sz) {
trg = _root.sz[e];
if (trg.nam == music[_root.mus]) {
v3 = trg.s.position / trg.s.duration;
v1 = true;
if ((musicvol * 0.8) != trg.s.getVolume()) {
trg.s.setVolume(Math.max(Math.round(musicvol * 0.8), 0));
}
if (((_root.mus == 3) or (_root.mus == 7)) && (v3 > 0.8)) {
ftw = true;
musicvol = musicvol - 3.5;
if (musicvol < -100) {
v2 = true;
}
}
pos = trg.s.position;
} else if ((trg.nam == "power1") or (trg.nam == "power2")) {
if ((!mc) or (!arr)) {
v2 = true;
}
}
if ((trg.s.duration == trg.s.position) or v2) {
if ((mc && (arr)) && (trg.nam == "power1")) {
_root.soundy("power2", 100);
if (!musicoff) {
musicvol = 100;
}
}
v2 = false;
trg.s.stop();
_root.sz.splice(e, 1);
trg.swapDepths(100);
removeMovieClip(trg);
}
}
if (musicoff) {
musicvol = musicvol - 6;
} else {
musicvol = musicvol + 3;
}
if (wtfz && (!ftw)) {
musicvol = Math.max(Math.min(musicvol, 100), 0);
}
if (((!v1) && (!musicoff)) && (gameover == undefined)) {
_root.mus++;
if (_root.mus >= music.length) {
_root.mus = 0;
}
_root.soundy(music[_root.mus], musicvol, true);
}
if (se < _root.bucks) {
v1 = 7;
if (((fra / v1) == Math.round(fra / v1)) && (fra > 15)) {
comp = -30;
create(sf1 + ((((_root.bucks / 2) - se) - 0.5) * sf3), sf2, 0, 0, 0, 0, se + 1);
se++;
tries[tries.length] = 0;
_root.soundy("ballsappear" + random(2), 80);
}
}
for (e in drawer) {
drawer[e].clear();
}
if (!Key.isDown(80)) {
unspace = true;
}
if (!unpause) {
_root.p.prevFrame();
if (Key.isDown(80) && (unspace)) {
unpause = true;
unspace = false;
}
} else {
fra++;
_root.p.nextFrame();
if (Key.isDown(80) && (unspace)) {
unpause = false;
unspace = false;
}
topz(1);
for (e in par) {
trg = par[e];
if (trg.done) {
removeMovieClip(par[e]);
par.splice(e, 1);
} else {
trg.nextFrame();
}
}
a = 1;
while (a < (_root.bucks + 1)) {
trg = this["buck" + a];
trg.upy = 400;
a++;
}
for (e in ball) {
trg = ball[e];
trg.ibk = trg.ibk * 0.98;
a = 1;
while (a < (_root.bucks + 1)) {
trg2 = this["buck" + a];
if (trg2.hitTest(trg.xp, trg.yp, true)) {
trg.ibk = trg.ibk + 0.7;
if (trg2.gof != trg.s) {
trg2.upy = Math.min(trg2.upy, trg.yp);
}
}
a++;
}
}
for (e in ball) {
comp--;
trg = ball[e];
if (!(trg.s === 1)) {
}
trg.inbuck = false;
a = 1;
while (a < (_root.bucks + 1)) {
trg2 = this["buck" + a];
if (trg2.hitTest(trg.xp, trg.yp, true)) {
trg.inbuck = true;
if (trg.gh > 15) {
if (trg2.gof != trg.s) {
if (((fra - trg.lf) >= 10) && (trg2.upy >= trg.yp)) {
v12 = true;
if (trg.lb == a) {
trg.ll++;
if (trg.ll > 0) {
v12 = false;
}
} else {
trg.lb = a;
trg.ll = 0;
}
(trg.xp = trg.xp * 0.7);
(trg.yp = trg.yp * 0.7);
(trg.xp = trg.xp + (trg2._x * 0.3));
(trg.yp = trg.yp + (trg2._y * 0.3));
v1 = (trg2._rotation / 180) * Math.PI;
trg.xbew = trg.xbew * 0.9;
trg.ybew = trg.ybew * 0.9;
if (v12 or (!((_root.lev != 19) or (trg2._currentframe != 4)))) {
trg.xbew = Math.sin(v1) * 15.4;
trg.ybew = (-Math.cos(v1)) * 15.4;
} else {
if (Math.random() > 0.5) {
v2 = 1;
} else {
v2 = -1;
}
v2 = Math.random() - 0.5;
trg.xbew = (Math.sin(v1) * 15.5) + ((Math.cos(v1) * 2) * v2);
trg.ybew = ((-Math.cos(v1)) * 15.5) + ((Math.sin(v1) * 2) * v2);
}
_root.soundy("wrong", 150);
trg.lf = fra;
trg.gh = -100;
trg.ibk = 0;
}
} else {
comp++;
if (trg.ftw == undefined) {
trg.ftw = 1;
_root.soundy("correct", 115);
argz++;
v1 = scog(e);
levelcp = this.attachMovie("scoreshow", "levelcomplete" + argz, 2100000000 + argz, {_x:trg.xp, _y:trg.yp, ftw:v1});
}
}
}
}
a++;
}
}
comp = comp * 0.9;
if (comp > -3) {
if ((gameover == undefined) && (ball.length > 0)) {
gameover = -5;
_root.soundy("level-win");
levelcp = this.attachMovie("levelcp", "levelcomplete", 2100000, {_x:275, _y:180});
_root.winlevel = 1;
}
}
v12 = (_root.bucks * 10) + 40;
if (gameover != undefined) {
gameover++;
gameover = Math.round(gameover);
if ((gameover % 10) == 0) {
e = Math.round(gameover / 10) - 1;
trg = this["buck" + e];
trg.gotoAndPlay("d" + trg.gof);
}
if ((gameover % 10) == 5) {
e = Math.round(gameover / 10);
trg = ball[e - 1];
trg.gotoAndStop(2);
trg.attachMovie("bubbledis", "bl", 1);
if (trg.s > 0) {
_root.soundy("balldis", 70);
}
}
if ((gameover < v12) && (levelcp._currentframe >= 15)) {
levelcp.gotoAndPlay(16);
}
musicoff = true;
}
if (gameover > (v12 + 20)) {
_root.sco = 0;
for (e in tries) {
_root.sco = _root.sco + scog(e);
}
_root.gotoAndStop("comp");
}
v1 = -1;
v2 = 70;
arr = false;
if (gameover == undefined) {
for (e in ball) {
trg = ball[e];
if ((trg.gh > 10) && (!trg.inbuck)) {
xenf = _xmouse - trg.xp;
yenf = _ymouse - trg.yp;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (((enf < v2) or (sf14 == e)) && (sf14 != v1)) {
v2 = enf;
v1 = e;
}
}
}
if (v1 > -1) {
trg = ball[v1];
xenf = _xmouse - trg.xp;
yenf = _ymouse - trg.yp;
enf = Math.sqrt((xenf * xenf) + (yenf * yenf));
if (md) {
tries[v1]++;
trg.lb = -1;
v1 = (ar._currentframe - 2) / (ar._totalframes - 2);
enf = (17 * Math.sqrt(Math.max(0.01, v1))) / enf;
trg.xbew = trg.xbew + (xenf * enf);
trg.ybew = trg.ybew + (yenf * enf);
trg.rbew = trg.rbew + ((xenf * enf) * 1.5);
trg.gh = 0;
if (v1 < 0.33) {
_root.soundy("launch01", 65);
} else if (v1 < 0.66) {
_root.soundy("launch02", 65);
} else {
_root.soundy("launch03", 65);
}
} else {
ar._x = trg.xp;
ar._y = trg.yp;
ar._rotation = (Math.atan((-xenf) / yenf) / Math.PI) * 180;
if (yenf >= 0) {
ar._rotation = ar._rotation + 180;
}
arr = true;
}
}
}
if (!arr) {
ar.gotoAndStop(1);
ar._x = 10000;
} else if (mc) {
if (ar._currentframe == 1) {
_root.soundy("power1", 100);
}
ar.nextFrame();
sf14 = v1;
}
if (!mc) {
sf14 = undefined;
}
md = false;
for (e in ball) {
trg = ball[e];
if (trg.d.done) {
removeMovieClip(ball[e]);
ball.splice(e, 1);
}
}
for (e in ball) {
if (trg._currentframe == 1) {
trg = ball[e];
trg.rbew = trg.rbew * 0.98;
trg.ybew = trg.ybew + 0.5;
trg.rp = trg.rp + trg.rbew;
trg.xp = trg.xp + trg.xbew;
trg.yp = trg.yp + trg.ybew;
}
}
e = 0;
while (e < ball.length) {
trg = ball[e];
trg.x1 = trg.x1 * 0.8;
trg.x2 = trg.x2 * 0.8;
trg.x1 = trg.x1 + trg.xbew;
trg.x2 = trg.x2 + (trg.ybew - 0.4);
enf = Math.sqrt((trg.x1 * trg.x1) + (trg.x2 * trg.x2));
trg.gh = trg.gh * 0.95;
trg.gh = trg.gh + (1.5 - enf);
trg.gh = trg.gh + (trg.ibk * 0.15);
trg.gh = Math.max(0, trg.gh);
enf = Math.sqrt((trg.xbew * trg.xbew) + (trg.ybew * trg.ybew));
f2 = 1E-5;
trg.spark = trg.spark * 0.98;
trg.spark = trg.spark + enf;
if (gameover == undefined) {
v3 = Math.round(trg.spark / 10);
v4 = 0;
while (v3 > v4) {
v5 = (Math.atan((-trg.xbew) / trg.ybew) / Math.PI) * 180;
if (trg.ybew >= 0) {
v5 = v5 + 180;
}
parc(e, trg.xp - (trg.xbew * (v4 / v3)), trg.yp - (trg.ybew * (v4 / v3)), v5 + 90);
trg.spark = trg.spark - 10;
v4++;
}
}
v1 = 1 / (1.01 + (enf * f2));
trg.xbew = trg.xbew * v1;
trg.ybew = trg.ybew * v1;
enf = enf * (v1 * v1);
f1 = 17;
if (enf > f1) {
enf = f1 / enf;
trg.xbew = trg.xbew * enf;
trg.ybew = trg.ybew * enf;
}
e++;
}
topz(0);
e = 0;
while (e < ball.length) {
trg = ball[e];
a = e;
while (a < ball.length) {
trg2 = ball[a];
xenf = trg2.xp - trg.xp;
siz = sizes[trg.s] + sizes[trg2.s];
if (Math.abs(xenf) < siz) {
yenf = trg2.yp - trg.yp;
if (Math.abs(xenf) < siz) {
enf = (xenf * xenf) + (yenf * yenf);
if ((enf > 0) && (enf < (siz * siz))) {
v = masses[trg.s] / (masses[trg.s] + masses[trg2.s]);
vv = 1 - v;
enf = Math.sqrt(enf);
f1 = (siz - enf) / enf;
trg.xp = trg.xp - ((xenf * vv) * f1);
trg.yp = trg.yp - ((yenf * vv) * f1);
trg2.xp = trg2.xp + ((xenf * v) * f1);
trg2.yp = trg2.yp + ((yenf * v) * f1);
xbewenf = trg2.xbew - trg.xbew;
ybewenf = trg2.ybew - trg.ybew;
bewenf = (xbewenf * xbewenf) + (ybewenf * ybewenf);
if (bewenf > 0) {
bewenf = Math.sqrt(bewenf);
} else {
bewenf = 0;
}
enf = bewenf / enf;
bhs(bewenf);
trg.gh = Math.max(trg.gh, 0);
trg2.gh = Math.max(trg2.gh, 0);
xenf = xenf * enf;
yenf = yenf * enf;
trg.xbew = trg.xbew - (xenf * vv);
trg.ybew = trg.ybew - (yenf * vv);
trg2.xbew = trg2.xbew + (xenf * v);
trg2.ybew = trg2.ybew + (yenf * v);
xbewenf1 = trg2.xbew + trg.xbew;
ybewenf1 = trg2.ybew + trg.ybew;
enf = (xenf * xenf) + (yenf * yenf);
enf = Math.sqrt(enf);
if (enf > 0) {
xenf = xenf / enf;
yenf = yenf / enf;
}
roty = ((sizes[trg2.s] + sizes[trg.s]) * Math.PI) / 180;
f8 = (yenf * xbewenf) - (xenf * ybewenf);
f9 = (((-trg2.rbew) - trg.rbew) * roty) - f8;
f10 = (((-trg2.rbew) - trg.rbew) * roty) - (f8 * 2);
f9 = rotc(f9);
f10 = rotc(f10);
trg2.rbew = trg2.rbew + ((f10 / roty) * v);
trg2.xbew = trg2.xbew + ((yenf * f9) * v);
trg2.ybew = trg2.ybew - ((xenf * f9) * v);
trg.rbew = trg.rbew + ((f10 / roty) * vv);
trg.xbew = trg.xbew - ((yenf * f9) * vv);
trg.ybew = trg.ybew + ((xenf * f9) * vv);
v1 = 1.1;
trg.xbew = trg.xbew * v1;
trg.ybew = trg.ybew * v1;
trg2.xbew = trg2.xbew * v1;
trg2.ybew = trg2.ybew * v1;
}
}
}
a++;
}
f1 = trg.xp;
f2 = trg.yp;
f5 = (f6 = 0);
siz = sizes[trg.s] + 2;
v1 = trg.s;
for (i in hardx[v1]) {
if (mhit(f1 + hardx[v1][i], f2 + hardy[v1][i])) {
f5 = f5 + hardx[v1][i];
f6 = f6 + hardy[v1][i];
}
}
if ((Math.abs(f5) > 0) && (Math.abs(f6) > 0)) {
roty = (sizes[trg.s] * Math.PI) / 180;
f7 = Math.sqrt((f5 * f5) + (f6 * f6));
f5 = f5 / f7;
f6 = f6 / f7;
if (trg.rotn != undefined) {
trg.roty = (Math.atan((-f5) / f6) / Math.PI) * 180;
if (f6 >= 0) {
trg.roty = trg.roty + 180;
}
trg.rotn = 3;
}
f8 = ((-f5) * trg.xbew) - (f6 * trg.ybew);
if (f8 < 0.5) {
f9 = f8 * 1.8;
trg.xbew = trg.xbew + (f5 * f9);
trg.ybew = trg.ybew + (f6 * f9);
siz = Math.sqrt((trg.xbew * trg.xbew) + (trg.ybew * trg.ybew));
bhs(siz);
trg.gh = Math.max(trg.gh, 0);
if ((siz > 0) && (f8 < 0)) {
f1 = trg.xp;
f2 = trg.yp;
v2 = sizes[trg.s] - 10;
while ((!mhit(f1 + (f5 * v2), f2 + (f6 * v2))) && (v2 < (sizes[trg.s] + 10))) {
v2 = v2 + 2;
}
v2 = v2 - 2;
while ((!mhit(f1 + (f5 * v2), f2 + (f6 * v2))) && (v2 < (sizes[trg.s] + 10))) {
v2 = v2 + 0.5;
}
v2 = v2 - sizes[trg.s];
v2 = v2 * 0.6;
if (v2 > 0) {
v2 = v2 * 0.2;
}
trg.xp = trg.xp + (f5 * v2);
trg.yp = trg.yp + (f6 * v2);
f8 = (-f8) / siz;
f8 = 0.9 - (f8 * 0.5);
trg.xbew = trg.xbew * f8;
trg.ybew = trg.ybew * f8;
f8 = ((-f6) * trg.xbew) + (f5 * trg.ybew);
f9 = trg.rbew * roty;
f9 = f9 + f8;
f9 = rotc(f9 * 4) / 4;
trg.rbew = trg.rbew - (f9 / roty);
trg.xbew = trg.xbew + (f6 * f9);
trg.ybew = trg.ybew - (f5 * f9);
}
}
}
e++;
}
tip(0);
e = 0;
while (e < ball.length) {
trg = ball[e];
trg._x = Math.round(trg.xp * 10) / 10;
trg._y = Math.round(trg.yp * 10) / 10;
trg.d._rotation = Math.round(trg.rp * 10) / 10;
trg.web = [];
trg.webz = 1;
e++;
}
v = 0.7;
bg._x = (-_x) * v;
bg._y = (-_y) * v;
tip(1);
}
}
music = ["bgm01", "bgm01", "bgm01", "bgm01", "bgm02", "bgm02", "bgm02", "bgm02"];
gotoAndStop(_root.lev);
_root.bucks = 0;
_root.g.gotoAndPlay(60);
timer = [];
alltimer = [0, 0, 0, 0, 0, 0, 0, 0, 0];
topz = function (cap) {
timer[cap] = getTimer();
};
tip = function (cap) {
alltimer[cap] = alltimer[cap] + ((getTimer() - timer[cap]) / 50);
};
m.swapDepths(200000);
m1.swapDepths(200001);
m.cacheAsBitmap = true;
m1.cacheAsBitmap = true;
levelsh = this.attachMovie("levelsh", "levelstart", 2000000, {_x:275, _y:180});
ballz = 0;
ball = [];
sizes = [5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10];
masses = [0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5];
v1 = 0.3;
hard = [(Math.PI/2), v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1, v1];
wb = [];
argz = 0;
hardx = [];
hardy = [];
for (e in hard) {
v1 = hard[e];
siz = sizes[e];
hardx[e] = [];
hardy[e] = [];
a = 0;
while (a < (Math.PI*2)) {
hardx[e][hardx[e].length] = Math.sin(a) * siz;
hardy[e][hardy[e].length] = Math.cos(a) * siz;
a = a + v1;
}
}
parz = 0;
par = [];
if (_root.sz == undefined) {
_root.sz = [];
_root.szz = 0;
}
sold = 0;
switch (_root.lev) {
case 1 :
sf1 = 400;
sf2 = 370;
sf3 = 30;
break;
case 2 :
sf1 = 275;
sf2 = 370;
sf3 = 100;
break;
case 3 :
sf1 = 275;
sf2 = 370;
sf3 = 100;
break;
case 4 :
sf1 = 400;
sf2 = 370;
sf3 = 50;
break;
case 5 :
sf1 = 275;
sf2 = 370;
sf3 = 100;
break;
case 6 :
sf1 = 300;
sf2 = 370;
sf3 = 100;
break;
case 7 :
sf1 = 320;
sf2 = 300;
sf3 = 100;
break;
case 8 :
sf1 = 120;
sf2 = 370;
sf3 = 60;
break;
case 9 :
sf1 = 275;
sf2 = 370;
sf3 = 100;
break;
case 10 :
sf1 = 275;
sf2 = 370;
sf3 = 100;
break;
case 11 :
sf1 = 275;
sf2 = 370;
sf3 = 100;
break;
case 12 :
sf1 = 150;
sf2 = 370;
sf3 = 30;
break;
case 13 :
sf1 = 350;
sf2 = 200;
sf3 = 40;
break;
case 14 :
sf1 = 400;
sf2 = 370;
sf3 = 30;
break;
case 15 :
sf1 = 275;
sf2 = 275;
sf3 = 75;
break;
case 16 :
sf1 = 400;
sf2 = 370;
sf3 = 50;
break;
case 17 :
sf1 = 400;
sf2 = 280;
sf3 = 40;
break;
case 18 :
sf1 = 100;
sf2 = 360;
sf3 = 30;
break;
case 19 :
sf1 = 200;
sf2 = 200;
sf3 = 100;
break;
case 20 :
sf1 = 150;
sf2 = 370;
sf3 = 50;
}
Mouse.removeListener();
mouseListener = new Object();
mouseListener.onMouseDown = function () {
mc = true;
};
mouseListener.onMouseUp = function () {
md = true;
mc = false;
};
Mouse.addListener(mouseListener);
unpause = true;
_root.pinfo = 2;
drawer = [];
e = 0;
while (e < 100) {
drawer[e] = createEmptyMovieClip("drawer" + e, 9999 - e);
e++;
}
fra = 0;
comp = -10;
_root.p.gotoAndStop(_root.p._totalframes);
se = 0;
tries = [];
_root.a.musicvol = -100;
if (_root.musicoff) {
_root.a.musicoff = true;
} else {
_root.a.musicoff = false;
}
Symbol 390 Button
on (release) {
_root.a.unpause = true;
}
Symbol 394 Button
on (release) {
_root.a.soundstopi();
_root.gotoAndStop("menu");
}
Symbol 397 Button
on (release) {
_root.a.musicdown();
_root.gotoAndStop("again");
}
Symbol 400 Button
on (release) {
_root.soundoff = true;
nextFrame();
}
Symbol 403 Button
on (release) {
_root.soundoff = false;
prevFrame();
}
Symbol 404 MovieClip Frame 1
if (_root.musicoff) {
nextFrame();
} else {
stop();
}
Symbol 407 Button
on (release) {
_root.a.musicoff = (_root.musicoff = true);
nextFrame();
}
Symbol 410 Button
on (release) {
_root.a.musicoff = (_root.musicoff = false);
prevFrame();
}
Symbol 411 MovieClip Frame 1
if (_root.musicoff) {
nextFrame();
} else {
stop();
}
Symbol 415 Button
on (release) {
_root.a.unpause = false;
}
Symbol 419 Button
on (release) {
_root.a.musicdown();
_root.gotoAndStop("again");
}
Symbol 424 Button
on (release) {
_root.soundoff = !_root.soundoff;
}
Symbol 427 Button
on (release) {
_root.musicoff = (_root.a.musicoff = !_root.musicoff);
}
Symbol 431 MovieClip Frame 1
lev = "Level " + _root.lev;
if (_root.lev == 20) {
lev = "Final Level";
}
Symbol 436 MovieClip Frame 1
ck = 0;
stop();
Symbol 436 MovieClip Frame 2
ck++;
this.back._x = this.back._x + (15 - (ck / 10));
_root.bt5._x = _root.bt5._x + (15 - (ck / 10));
if (ck > 15) {
if (_root.winlevel == 1) {
if (_root.lev <= 20) {
_root.gotoAndStop("game");
} else {
_root.gotoAndStop("win");
}
_root.winlevel = 0;
} else {
_root.gotoAndStop("menu");
}
}
Symbol 436 MovieClip Frame 3
gotoAndPlay (2);
Symbol 437 Button
on (release) {
_root.soundy("coolbutton");
if (_root.choice != 1) {
_root.choice = 1;
_root.buts.gotoAndPlay(2);
gotoAndStop (2);
}
}
Symbol 438 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 1
ck = 0;
stop();
Symbol 485 MovieClip Frame 2
ck++;
this.back._x = this.back._x + (15 - (ck / 10));
_root.bt5._x = _root.bt5._x + (15 - (ck / 10));
if (ck > 15) {
_root.gotoAndStop("menu");
}
Symbol 485 MovieClip Frame 3
gotoAndPlay (2);
Symbol 491 Button
on (release) {
getURL ("http://www.gamebalance.com", "_blank");
}
Symbol 497 Button
on (release) {
getURL ("http://www.komix-games.com", "_blank");
}
Symbol 500 MovieClip Frame 109
_parent.gotoAndStop("gamebalance");
Symbol 509 MovieClip Frame 134
_parent.gotoAndStop("komix");
Symbol 512 MovieClip Frame 109
_parent.gotoAndStop("menu");
Symbol 523 MovieClip Frame 1
function topz(cap) {
timer[cap] = getTimer();
}
function tip(cap) {
alltimer[cap] = alltimer[cap] + (getTimer() - timer[cap]);
atz[cap]++;
}
function tiptop() {
for (e in alltimer) {
if (atz[e] > 0) {
_root.tex = _root.tex + (" - " + (Math.round((alltimer[e] / atz[e]) * 1000) / 1000));
if (atz[e] > 10) {
alltimer[e] = alltimer[e] * ((atz[e] - 1) / atz[e]);
atz[e]--;
}
}
}
}
function create(f7, f1, f2, f3, f4, f5, f6, f8) {
ballz++;
f0 = ball.length;
ball[f0] = attachMovie("ballze", "ball" + ballz, ballz, {xp:f1, yp:f2, zp:f3, xbew:f4, ybew:f5, zbew:f6, s:f7, sca:f8});
ball[f0].gotoAndStop(f7);
ball[f0].ro = (Math.random() * Math.PI) * 2;
ball[f0].rob = (Math.random() * 0.05) + 0.03;
ball[f0].xbew = (-Math.random()) * 0.5;
ball[f0].sc = ball[f0].sca;
ball[f0].col = new Color(ball[f0]);
ball[f0].pal = new Object();
return(f0);
}
function rand(v0) {
v0 = v0 * ((Math.random() - 0.5) * 2);
return(v0);
}
function crand(v0) {
if (!cr) {
cr = true;
cr1 = Math.random() * 6.28;
if (v00 == undefined) {
v00 = 0;
}
cr2 = v0;
return(Math.sin(cr1) * cr2);
}
cr = false;
return(Math.cos(cr1) * cr2);
}
function r(roundz) {
return(Math.round(100 * roundz) / 100);
}
function planetc(f0, f1, f2, f3, f4, f5, f6, f7) {
v2 = (f0 * 3) + 3;
e = 0;
while (e < f0) {
enf = [rand(1), rand(1), rand(1)];
v1 = Math.sqrt(((enf[0] * enf[0]) + (enf[1] * enf[1])) + (enf[2] * enf[2]));
v1 = v2 / v1;
enf[0] = enf[0] * v1;
enf[1] = enf[1] * v1;
enf[2] = enf[2] * v1;
create(1, enf[0] + f1, enf[1] + f2, enf[2] + f3, (enf[1] * f7) + f4, (enf[2] * f7) + f5, (enf[0] * f7) + f6, 1.5);
e++;
}
}
function flatc(f0, f1, f2, f3, f4, f5, f6, f10, f8, f9) {
e = 0;
while (e < f0) {
v2 = (Math.random() * f8) + f9;
enf = [rand(1), rand(1), 0];
v1 = Math.sqrt((enf[0] * enf[0]) + (enf[1] * enf[1]));
f7 = f10 / v1;
v1 = v2 / v1;
enf[0] = enf[0] * v1;
enf[1] = enf[1] * v1;
enf[2] = enf[2] * v1;
create(1, enf[0] + f1, enf[1] + f2, f3, (enf[1] * f7) + f4, ((-enf[0]) * f7) + f5, f6, 1.5);
e++;
}
}
function soundy(nam, rep, trge, vol) {
if (vol == undefined) {
vol = 0;
}
v0 = sz.length;
szz++;
sz[v0] = attachMovie("soundz", "sz" + szz, szz + 2000000000);
sz[v0].trge = trge;
sz[v0].nam = nam;
sz[v0].vol = vol;
sz[v0].rep = rep;
sz[v0].s = new Sound(sz[v0]);
if (trge != undefined) {
vol = ((vol * ((ball[trge].far * 5) - 100)) / 100) + (vol * 0.25);
pan = (ball[trge]._x / 2.75) - 100;
} else {
pan = 0;
}
sz[v0]._x = 275 + (pan * 2.75);
sz[v0]._y = vol * 4;
sz[v0].s.attachSound(nam);
sz[v0].s.setVolume(vol);
sz[v0].s.setPan(pan);
sz[v0].s.start(0, rep);
return(szz);
}
function soundstopi() {
for (z in sz) {
trg = sz[z];
sz[z].s.stop();
trg.swapDepths(100);
removeMovieClip(trg);
}
sz = [];
}
function onEnterFrame() {
cam[0] = 0.0001;
cama[0] = 0.0001;
fra++;
for (e in sz) {
trg = sz[e];
if (trg.s.duration == trg.s.position) {
trg.s.stop();
sz.splice(e, 1);
trg.swapDepths(100);
removeMovieClip(trg);
} else if (sz[e].trge != undefined) {
vol = ((Math.min(200, (ball[sz[e].trge].far * 5) - 100) * trg.vol) / 100) + (trg.vol * 0.25);
pan = (ball[sz[e].trge]._x / 2.75) - 100;
pan = pan * 2;
sz[e]._x = 275 + (pan * 2.75);
sz[e]._y = vol * 4;
sz[e].s.attachSound(nam);
vol = vol * 0.35;
vol = vol + (sz[e].s.getVolume() * 0.65);
pan = pan * 0.35;
pan = pan + (sz[e].s.getPan() * 0.65);
sz[e].s.setVolume(vol);
sz[e].s.setPan(pan);
}
}
if (paus) {
if (Key.isDown(80)) {
if (pa) {
pa = false;
paus = false;
}
} else {
pa = true;
}
} else {
if (Key.isDown(80)) {
if (pa) {
pa = false;
paus = true;
}
} else {
pa = true;
}
for (e in ball) {
trg = ball[e];
if (trg.d.done or trg.done) {
for (i in ball) {
if (ball[i].trg2 > e) {
ball[i].trg2--;
}
if (ball[i].trg3 > e) {
ball[i].trg3--;
}
if (ball[i].s == 9) {
for (z in ball[i].v4) {
if (ball[i].v4[z] > e) {
ball[i].v4[z]--;
}
}
}
}
ball.splice(e, 1);
trg.swapDepths(100);
removeMovieClip(trg);
for (i in sz) {
trg = sz[i];
if (trg.trge == e) {
if (trg.rep > 0) {
trg.s.stop();
sz.splice(i, 1);
trg.swapDepths(100);
removeMovieClip(trg);
} else {
trg.trge = undefined;
}
} else if (trg.trge > e) {
trg.trge--;
}
}
}
}
topz(0);
if (Key.isDown(37)) {
xenf--;
}
if (Key.isDown(39)) {
xenf++;
}
if (Key.isDown(38)) {
yenf = yenf + 1.5;
}
if (Key.isDown(40)) {
yenf = yenf - 1.5;
}
yenf = yenf - 0.3;
v1 = 1.5;
v2 = 1;
xenf = xenf / (1 + (Math.abs(yenf) * 0.1));
yenf = yenf / (1 + (Math.abs(xenf) * 0.05));
rel--;
yenf = yenf * 0.8;
xenf = xenf * 0.8;
power = power * 0.8;
camb = [cam[0], cam[1], cam[2]];
v1 = 0;
camb = [(cam[1] * cama[2]) - (cam[2] * cama[1]), (cam[2] * cama[0]) - (cam[0] * cama[2]), (cam[0] * cama[1]) - (cam[1] * cama[0])];
cama[0] = cama[0] - ((camb[0] * yenf) * v1);
cama[1] = cama[1] - ((camb[1] * yenf) * v1);
cama[2] = cama[2] - ((camb[2] * yenf) * v1);
cam[0] = cam[0] + ((camb[0] * xenf) * v1);
cam[1] = cam[1] + ((camb[1] * xenf) * v1);
cam[2] = cam[2] + ((camb[2] * xenf) * v1);
v1 = Math.sqrt(((cam[0] * cam[0]) + (cam[1] * cam[1])) + (cam[2] * cam[2]));
cam[0] = cam[0] / v1;
cam[1] = cam[1] / v1;
cam[2] = cam[2] / v1;
v1 = Math.sqrt(((cama[0] * cama[0]) + (cama[1] * cama[1])) + (cama[2] * cama[2]));
cama[0] = cama[0] / v1;
cama[1] = cama[1] / v1;
cama[2] = cama[2] / v1;
enf = [cam[0] - cama[0], cam[1] - cama[1], cam[2] - cama[2]];
v1 = Math.sqrt(((enf[0] * enf[0]) + (enf[1] * enf[1])) + (enf[2] * enf[2]));
v1 = 1 - (s2 / v1);
cam[0] = cam[0] - (enf[0] * v1);
cam[1] = cam[1] - (enf[1] * v1);
cam[2] = cam[2] - (enf[2] * v1);
cama[0] = cama[0] + (enf[0] * v1);
cama[1] = cama[1] + (enf[1] * v1);
cama[2] = cama[2] + (enf[2] * v1);
v1 = 0.01;
camb = [(cam[1] * cama[2]) - (cam[2] * cama[1]), (cam[2] * cama[0]) - (cam[0] * cama[2]), (cam[0] * cama[1]) - (cam[1] * cama[0])];
v1 = Math.sqrt(((cam[0] * cam[0]) + (cam[1] * cam[1])) + (cam[2] * cam[2]));
cam[0] = cam[0] / v1;
cam[1] = cam[1] / v1;
cam[2] = cam[2] / v1;
v1 = Math.sqrt(((cama[0] * cama[0]) + (cama[1] * cama[1])) + (cama[2] * cama[2]));
cama[0] = cama[0] / v1;
cama[1] = cama[1] / v1;
cama[2] = cama[2] / v1;
enf = [cam[0] - cama[0], cam[1] - cama[1], cam[2] - cama[2]];
v1 = Math.sqrt(((enf[0] * enf[0]) + (enf[1] * enf[1])) + (enf[2] * enf[2]));
v1 = 1 - (s2 / v1);
cam[0] = cam[0] - (enf[0] * v1);
cam[1] = cam[1] - (enf[1] * v1);
cam[2] = cam[2] - (enf[2] * v1);
cama[0] = cama[0] + (enf[0] * v1);
cama[1] = cama[1] + (enf[1] * v1);
cama[2] = cama[2] + (enf[2] * v1);
v1 = fra * 0.05;
v3 = fra * 0.025;
v2 = 40;
e = 4;
while (e < ball.length) {
v1 = v1 + 0.897597901025655;
trg = ball[e];
trg.xp = (Math.cos(v3) * v2) * Math.sin(v1);
trg.yp = (Math.sin(v1) * v2) * Math.sin(v3);
trg.zp = Math.cos(v1) * v2;
e++;
}
wormnew = true;
for (e in ball) {
trg = ball[e];
}
v2 = 0;
ball0.xp = ball0.xp * v2;
ball0.yp = ball0.yp * v2;
ball0.zp = ball0.zp * v2;
v2 = 1 - v2;
v1 = 300;
v3 = (v4 = (v5 = 0));
_root.tex = ((((r(v3) + " ") + r(v4)) + " ") + r(v5)) + " ";
(v3 = v3 / (ball.length - 4));
(v4 = v4 / (ball.length - 4));
(v5 = v5 / (ball.length - 4));
ball0.xp = ball0.xp + ((v3 - (camb[0] * v1)) * v2);
ball0.yp = ball0.yp + ((v4 - (camb[1] * v1)) * v2);
ball0.zp = ball0.zp + ((v5 - (camb[2] * v1)) * v2);
vd = cam[0];
ve = cam[1];
vf = cam[2];
vg = cama[0];
vh = cama[1];
vi = cama[2];
v1 = 1;
va = ball0.xp + (camb[0] * v1);
vb = ball0.yp + (camb[1] * v1);
vc = ball0.zp + (camb[2] * v1);
ax = 0;
ay = 0;
topz(1);
trg3 = ball1;
trg2 = ball2;
trg = ball3;
v1 = (camb[0] * camb[0]) + (camb[1] * camb[1]);
if (v1 > 0) {
v2 = (Math.atan((-camb[0]) / camb[1]) / Math.PI) - 0.5;
if (camb[1] < 0) {
v2 = v2 + 1;
}
while (v2 > 0) {
v2 = v2 - 2;
}
while (v2 < -2) {
v2 = v2 + 2;
}
trg.d._x = (-v2) * 1974;
trg.xp = ball0.xp + ((sunenf * camb[0]) / v1);
trg.yp = ball0.yp + ((sunenf * camb[1]) / v1);
trg.zp = 0;
trg2.xp = trg.xp;
trg2.yp = trg.yp;
trg2.zp = trg.zp + (sunenf / 10);
sunangle = 0.5;
}
for (e in ball) {
if (e != 0) {
trg = ball[e];
vj = trg.xp;
vk = trg.yp;
vl = trg.zp;
vm = trg.xp - ball0.xp;
vn = trg.yp - ball0.yp;
vo = trg.zp - ball0.zp;
vz = ((vd * ((vh * vo) - (vi * vn))) + (ve * ((vi * vm) - (vg * vo)))) + (vf * ((vg * vn) - (vh * vm)));
if (e == 1) {
if (vz > 0) {
sunsee = true;
sunr = 180;
sunf = 0;
} else {
sunsee = false;
sunr = 0;
sunf = 200;
vz = -vz;
}
}
if (vz > 0) {
trg._visible = true;
enf = Math.sqrt(((vm * vm) + (vn * vn)) + (vo * vo));
vm = vm / enf;
vn = vn / enf;
vo = vo / enf;
vz = ((vd * ((vh * vo) - (vi * vn))) + (ve * ((vi * vm) - (vg * vo)))) + (vf * ((vg * vn) - (vh * vm)));
vx = (-((((((va * ((vh * vo) - (vi * vn))) + (vb * ((vi * vm) - (vg * vo)))) + (vc * ((vg * vn) - (vh * vm)))) + (vg * ((vk * vo) - (vl * vn)))) + (vh * ((vl * vm) - (vj * vo)))) + (vi * ((vj * vn) - (vk * vm))))) / vz;
vy = ((((((va * ((ve * vo) - (vf * vn))) + (vb * ((vf * vm) - (vd * vo)))) + (vc * ((vd * vn) - (ve * vm)))) + (vd * ((vk * vo) - (vl * vn)))) + (ve * ((vl * vm) - (vj * vo)))) + (vf * ((vj * vn) - (vk * vm)))) / vz;
enf = ((((((va * ((ve * vi) - (vf * vh))) + (vb * ((vf * vg) - (vd * vi)))) + (vc * ((vd * vh) - (ve * vg)))) + (vd * ((vi * vk) - (vh * vl)))) + (ve * ((vg * vl) - (vi * vj)))) + (vf * ((vh * vj) - (vg * vk)))) / vz;
v1 = (-7000 / enf) * (1 + (Math.abs(vx) * 0.111));
ay = vy;
trg._x = (-vx) * 700;
trg._y = vy * 700;
trg.swapDepths(Math.max(e, Math.round(((v1 * 10000) + (dep[trg.s] * 1000)) + 100000000)));
trg.far = v1;
trg._xscale = v1 * trg.sca;
trg._yscale = v1 * trg.sca;
v1 = (v1 * 12) - 270;
trg.pal = {ra:100, rb:v1, ga:100, gb:v1, ba:100, bb:v1, aa:"100", ab:"0"};
trg.col.setTransform(trg.pal);
if (e == 1) {
v1 = trg._x;
v2 = trg._y;
sunro = ((Math.atan((-v1) / v2) / Math.PI) * 180) + sunr;
if (v2 < 0) {
sunro = sunro + 180;
}
enf = Math.sqrt((v1 * v1) + (v2 * v2));
v1 = (enf / sunenf) * 700;
v1 = (Math.atan(v1) / Math.PI) * 400;
v1 = 200 - v1;
sunfr = Math.round(Math.max(1, Math.min(200, v1))) + sunf;
v1 = ((Math.atan((-enf[0]) / enf[1]) / Math.PI) * 180) + sunr;
if (enf[1] < 0) {
v1 = v1 + 180;
}
trg.sh._rotation = v1;
} else {
trg.sh.gotoAndStop(sunfr);
trg.sh._rotation = sunro;
trg.sh2._rotation = sunro;
trg.sh2.gotoAndStop(sunfr);
}
} else {
trg._visible = false;
}
}
}
enf = [ball3._x - ball2._x, ball3._y - ball2._y];
v1 = (Math.atan((-enf[0]) / enf[1]) / Math.PI) * 180;
if (enf[1] < 0) {
v1 = v1 + 180;
}
ball3._rotation = v1;
tip(1);
if (!sunsee) {
ball1._visible = false;
}
tip(0);
v1 = 0.8;
fps = fps * v1;
v2 = getTimer();
fps = fps + ((v2 - fpstimer) * (1 - v1));
fpss = r(1000 / fps);
qua = Math.max(0, Math.min(3, 3 - ((30 - fpss) / 4)));
fpstimer = v2;
if ((fpss < 26) && (_quality != "MEDIUM")) {
fpst1++;
if (fpst1 > fpsc) {
_quality = "MEDIUM";
fpsc = fpsc + 10;
}
} else {
fpst1 = 0;
}
if ((fpss > 28) && (_quality != "HIGH")) {
fpst2++;
if (fpst2 > fpsc) {
fpsc = fpsc + 10;
_quality = "HIGH";
}
} else {
fpst2 = 0;
}
if ((fpss < 17) && (_quality != "LOW")) {
fpst1++;
if (fpst1 > fpsc) {
fpsc = fpsc + 10;
_quality = "LOW";
}
} else {
fpst1 = 0;
}
trg = ball3;
trg.d._xscale = (trg.d._yscale = (trg._xscale = (trg._yscale = 100)));
v1 = Math.sqrt((trg._x * trg._x) + (trg._y * trg._y));
if (v1 > 0) {
v1 = (v1 / (1 + ((v1 * v1) * 0))) / v1;
trg._x = trg._x * v1;
trg._y = trg._y * v1;
}
}
}
powerup = [[0, 12], [0, 13], [0, 14], [0, 15], [0, 16]];
alltimer = [0, 0, 0, 0, 0, 0, 0];
timer = [];
atz = [0, 0, 0, 0, 0, 0, 0];
ball = [];
ballz = 0;
ball[0] = attachMovie("ballze", "ball0", ballz, {xp:0, yp:0, zp:0, xbew:0, ybew:0, zbew:0, _x:-100, _y:-100});
ball[0]._y = 100000 /* 0x0186A0 */;
dep = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
pbew = (prot = (prot2 = (protbew2 = (protbew = 0))));
cr = false;
v5 = 200;
v6 = 200;
whe = (v7 = 20);
sunenf = 100000 /* 0x0186A0 */;
v2 = 54.7;
create(4, sunenf / 3.5, 0, 0, 0, 0, 0, 500);
create(3, sunenf, sunenf / 10, 0, 0, 0, 0, 500);
create(2, sunenf, 0, 0, 0, 0, 0, 500);
tubelong = 100;
e = 0;
while (e < 7) {
v1 = (e - 3) / 7;
create(6 + e, (v1 * tubelong) * 1.25, 0, 0, 0, 0, 0, 1);
e++;
}
yenf = (xenf = 0);
cam = [0.001, 0.001, 1];
cama = [0.001, 1, 0.001];
s2 = Math.SQRT2;
power = 0;
zoo = 550;
rel = 0;
dif = 1;
fpst1 = (fpst2 = (fps = (fpstimer = 0)));
fpsc = 30;
qua = 3;
gameover = 0;
jump = (jumpb = 0);
_root.mines = (_root.jumps = (_root.rockets = 0));
paus = false;
powz = 0;
sz = [];
szz = 0;
soundy("start", 1, undefined, 100);
fra = 0;