Frame 1
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
this.menu = my_cm;
MochiAd.showPreloaderAd({id:"0b3edca27afc5576", res:"550x400"});
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndStop ("loading");
}
Frame 5
stop();
Instance of Symbol 68 MovieClip in Frame 5
//component parameters
onClipEvent (construct) {
_game_name = "golf_drive";
score_var = "";
}
Frame 7
this.attachMovie("background", "background", 98);
this.background.cacheAsBitmap = true;
this.attachMovie("water", "water", 99);
this.background.cacheAsBitmap = true;
this.attachMovie("froundpage", "froundpage", 101);
stop();
Symbol 5 MovieClip Frame 1
onEnterFrame = function () {
var _local4 = _root.getBytesLoaded();
var _local3 = _root.getBytesTotal();
var _local5 = int((_local4 / _local3) * 100);
num_txt.text = _local5 + "%";
if (_local4 == _local3) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Symbol 8 MovieClip Frame 1
this._visible = false;
Symbol 8 MovieClip Frame 2
this._visible = true;
Symbol 8 MovieClip Frame 39
stop();
Instance of Symbol 2 MovieClip in Symbol 8 MovieClip Frame 39
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 364 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 365 MovieClip [__Packages.CarExample] Frame 0
class CarExample
{
var main, clip, mapbusy, centerx, centery, carw, angDefault, lastp, lasthit, par, scor, mypar, degree, engine, keySpeed, kicked, keyup, pmove, carscale, power, stoptime, map, bsd, di, levelary, level, wheelA, bounds, wheelB, p1, p2, pm, ang3, ang2, ang, rotation, p_b;
function CarExample (mc) {
mc.createEmptyMovieClip("back", 0);
mc.createEmptyMovieClip("middle", 1);
mc.createEmptyMovieClip("fround", 2);
mc.back.attachMovie("ground", "ground", 1);
main = mc;
clip = mc.middle;
mapbusy = false;
centerx = 225;
centery = 200;
carw = 60;
angDefault = 0;
lastp = new org.cove.flade.util.Vector();
lasthit = new org.cove.flade.util.Vector();
par = new Array(3, 3, 5, 6, 5, 6, 4, 5, 4, 4, 3, 5, 3, 6, 4, 8, 8, 8);
scor = new Array(800, 500, 200, 100, 50, 25, 5);
mypar = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
degree = new Array("Albatros!", "Eagle!", "Birdie!", "Par!", "Bogey!", "Double Bogey!", "Triple bogey!");
engine = new org.cove.flade.DynamicsEngine(clip);
engine.setDamping(1);
engine.setGravity(0, 0.9);
engine.setSurfaceBounce(0.1);
engine.setSurfaceFriction(0.05);
mapping(0);
}
function mapping(num) {
mapbusy = true;
engine.removePrimitives();
engine.removeSurfaces();
engine.removeConstraints();
keySpeed = 2;
kicked = false;
keyup = false;
pmove = false;
carscale = 1;
power = 0;
stoptime = 0;
map = false;
bsd = 50;
di = 0.01;
for (var _local3 in clip) {
removeMovieClip(clip[_local3]);
}
levelary = setlevel(num);
level = num;
var _local2 = 0;
while (_local2 < levelary.length) {
engine.addSurface(levelary[_local2]);
_local2++;
}
creatcar(30, 50);
if ((((level == 9) || (level == 11)) || (level == 14)) || (level == 15)) {
carmode(-1);
}
main._x = centerx - wheelA.curr.x;
main._y = centery - wheelA.curr.y;
main.back.ground.gotoAndStop(num + 1);
if (level < 6) {
main._parent.background.gotoAndStop(1);
main._parent.water.gotoAndStop(1);
} else if (level > 11) {
main._parent.background.gotoAndStop(3);
main._parent.water.gotoAndStop(3);
} else {
main._parent.background.gotoAndStop(2);
main._parent.water.gotoAndStop(2);
}
bounds = main.back.ground.getBounds(main.back);
main._parent.froundpage.gotoAndStop(6);
main._parent.froundpage.hole_num.text = "HOLE: " + (level + 1);
main._parent.froundpage.hits.text = (("HITS: " + mypar[level]) + "/") + par[level];
main._parent.froundpage.gamethis = this;
main._parent.froundpage.map.onPress = function () {
this._parent.gamethis.map = true;
};
main._parent.froundpage.map.onRelease = function () {
this._parent.gamethis.map = false;
};
main._parent.froundpage.cheat.onPress = function () {
if ((!this._parent.gamethis.pmove) && (this._parent.gamethis.kicked)) {
this._parent.gamethis.resetcar(this._parent.gamethis.p_b.curr.x, this._parent.gamethis.p_b.curr.y);
this._parent.gamethis.lvad();
}
};
main.back.ground.cacheAsBitmap = true;
mapbusy = false;
}
function creatcar(x, y) {
var _local5 = x + carw;
var _local3 = x + (carw / 2);
wheelA = new org.cove.flade.primitives.Wheel(x, y, 25);
wheelA.name = "wa";
engine.addPrimitive(wheelA);
wheelB = new org.cove.flade.primitives.Wheel(_local5, y, 25);
wheelB.name = "wb";
engine.addPrimitive(wheelB);
p1 = new org.cove.flade.primitives.CircleParticle(x + 50, y - 50, 10);
engine.addPrimitive(p1);
p2 = new org.cove.flade.primitives.CircleParticle(x + 25, y - 25, 10);
engine.addPrimitive(p2);
pm = new org.cove.flade.primitives.CircleParticle(_local3, y, 5);
engine.addPrimitive(pm);
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(wheelB, pm));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(wheelA, pm));
var _local7 = new org.cove.flade.constraints.SpringConstraint(p2, wheelA);
engine.addConstraint(_local7);
_local7.setRestLength(30);
var _local6 = new org.cove.flade.constraints.SpringConstraint(p2, p1);
engine.addConstraint(_local6);
_local6.setRestLength(30);
ang3 = new org.cove.flade.constraints.AngularConstraint(wheelA, pm, wheelB);
engine.addConstraint(ang3);
ang2 = new org.cove.flade.constraints.AngularConstraint(p2, wheelA, pm);
engine.addConstraint(ang2);
ang = new org.cove.flade.constraints.AngularConstraint(wheelA, p2, p1);
engine.addConstraint(ang);
if (main.fround.wheelA == undefined) {
main.fround.attachMovie("wheel", "wheelA", 10, {_x:x, _y:y});
main.fround.attachMovie("wheel", "wheelB", 11, {_x:_local5, _y:y});
main.fround.attachMovie("body", "body", 9, {_x:_local3, _y:y});
main.fround.attachMovie("gan", "gan_1", 5, {_x:_local3, _y:y});
main.fround.attachMovie("gan", "gan_2", 6, {_x:_local3, _y:y});
main.fround.attachMovie("ball", "p_b", 60, {_visible:false});
}
main.fround.p_b._visible = false;
main.fround.gan_2.gotoAndStop(3);
}
function resetcar(x, y) {
var _local3 = x + carw;
var _local7 = x + (carw / 2);
wheelA.setPos(x, y);
wheelB.setPos(_local3, y);
pm.setPos(_local7, y);
if (carscale > 0) {
p1.setPos(x + 60, y - 60);
p2.setPos(x + 30, y - 30);
} else {
p1.setPos(_local3 - 60, y - 60);
p2.setPos(_local3 - 30, y - 30);
}
pm.setPos(_local7, y);
engine.removeConstraints();
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(wheelB, pm));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(wheelA, pm));
var _local5 = new org.cove.flade.constraints.SpringConstraint(p2, p1);
engine.addConstraint(_local5);
_local5.setRestLength(30);
ang3 = new org.cove.flade.constraints.AngularConstraint(wheelA, pm, wheelB);
if (carscale > 0) {
var _local6 = new org.cove.flade.constraints.SpringConstraint(p2, wheelA);
ang2 = new org.cove.flade.constraints.AngularConstraint(p2, wheelA, pm);
ang = new org.cove.flade.constraints.AngularConstraint(wheelA, p2, p1);
} else {
var _local6 = new org.cove.flade.constraints.SpringConstraint(p2, wheelB);
ang2 = new org.cove.flade.constraints.AngularConstraint(p2, wheelB, pm);
ang = new org.cove.flade.constraints.AngularConstraint(wheelB, p2, p1);
}
engine.addConstraint(_local6);
_local6.setRestLength(30);
engine.addConstraint(ang3);
engine.addConstraint(ang2);
engine.addConstraint(ang);
}
function carmode(n) {
if (carscale != n) {
carscale = n;
var _local11 = ang.targetTheta;
var _local10 = ang2.targetTheta;
var _local3 = wheelA.curr.x;
var _local2 = wheelA.curr.y;
var _local4 = _local3 + carw;
var _local12 = _local3 + (carw / 2);
if (n > 0) {
p1.setPos(_local3 + 60, _local2 - 60);
p2.setPos(_local3 + 30, _local2 - 30);
} else {
p1.setPos(_local4 - 60, _local2 - 60);
p2.setPos(_local4 - 30, _local2 - 30);
}
pm.setPos(_local12, _local2);
engine.removeConstraints();
var _local6 = new org.cove.flade.constraints.SpringConstraint(wheelB, pm);
var _local5 = new org.cove.flade.constraints.SpringConstraint(wheelA, pm);
_local6.setRestLength(30);
_local5.setRestLength(30);
engine.addConstraint(_local6);
engine.addConstraint(_local5);
var _local8 = new org.cove.flade.constraints.SpringConstraint(p2, p1);
engine.addConstraint(_local8);
_local8.setRestLength(30);
ang3 = new org.cove.flade.constraints.AngularConstraint(wheelA, pm, wheelB);
if (n > 0) {
var _local9 = new org.cove.flade.constraints.SpringConstraint(p2, wheelA);
ang2 = new org.cove.flade.constraints.AngularConstraint(p2, wheelA, pm);
ang = new org.cove.flade.constraints.AngularConstraint(wheelA, p2, p1);
} else {
var _local9 = new org.cove.flade.constraints.SpringConstraint(p2, wheelB);
ang2 = new org.cove.flade.constraints.AngularConstraint(p2, wheelB, pm);
ang = new org.cove.flade.constraints.AngularConstraint(wheelB, p2, p1);
}
engine.addConstraint(_local9);
_local9.setRestLength(30);
ang2.targetTheta = -_local10;
ang.targetTheta = -_local11;
engine.addConstraint(ang3);
engine.addConstraint(ang2);
engine.addConstraint(ang);
}
}
function run() {
if (Key.isDown(77) || (map)) {
if (((bounds.xMax - bounds.xMin) / (bounds.yMax - bounds.yMin)) > 1.375) {
main._yscale = (main._xscale = 55000 / ((bounds.xMax - bounds.xMin) + 200));
main._x = ((100 - bounds.xMin) * main._xscale) / 100;
main._y = centery - (((bounds.yMax + bounds.yMin) * main._xscale) / 200);
} else {
main._xscale = (main._yscale = 40000 / ((bounds.yMax - bounds.yMin) + 200));
main._x = centerx - (((bounds.xMax + bounds.xMin) * main._xscale) / 200);
main._y = ((100 - bounds.yMin) * main._xscale) / 100;
}
} else {
if (main._xscale != 100) {
main._xscale = 100;
main._yscale = 100;
}
if (!mapbusy) {
if (Key.isDown(38)) {
if (carscale > 0) {
if (ang2.targetTheta < -1) {
ang2.targetTheta = ang2.targetTheta + di;
}
} else if (ang2.targetTheta > 1) {
ang2.targetTheta = ang2.targetTheta - di;
}
((di < 0.1) ? ((di = di + 0.01)) : false);
} else if (Key.isDown(40)) {
if (carscale > 0) {
if (ang2.targetTheta > -2.5) {
ang2.targetTheta = ang2.targetTheta - di;
}
} else if (ang2.targetTheta < 2.5) {
ang2.targetTheta = ang2.targetTheta + di;
}
((di < 0.1) ? ((di = di + 0.01)) : false);
} else {
di = 0.01;
}
if (main._parent.froundpage.dragging) {
ang.targetTheta = (-carscale) * (main._parent.froundpage.level / 40);
keyup = true;
} else {
if (((power == 0) && (keyup)) && (!kicked)) {
power = Math.abs(ang.targetTheta) * 16;
if (carscale > 0) {
rotation = ang2.targetTheta - Math.atan2(wheelA.curr.y - wheelB.curr.y, wheelA.curr.x - wheelB.curr.x);
} else {
rotation = ang2.targetTheta - Math.atan2(wheelB.curr.y - wheelA.curr.y, wheelB.curr.x - wheelA.curr.x);
}
}
if (ang.targetTheta != angDefault) {
ang.targetTheta = ang.targetTheta + ((angDefault - ang.targetTheta) * 0.5);
if (Math.abs(ang.targetTheta) < 0.05) {
ang.targetTheta = 0;
}
}
if (keyup) {
if (!kicked) {
if (Math.abs(ang.targetTheta - angDefault) < 0.1) {
main._parent.froundpage.shrow.start();
lvad();
lasthit.copy(wheelA.curr);
p_b = new org.cove.flade.primitives.Wheel(p1.curr.x, p1.curr.y, 8);
p_b.name = "ball";
p_b.prev.setTo(p1.curr.x - (power * Math.cos(rotation)), p1.curr.y + (power * Math.sin(rotation)));
engine.addPrimitive(p_b);
p_b.rp.vs = power * ((carscale > 0) ? 0.2 : -0.2);
main.fround.p_b._visible = true;
main.fround.gan_2.gotoAndStop(2);
kicked = true;
pmove = true;
keyup = false;
}
}
}
}
if (kicked && (!pmove)) {
if (Key.isDown(37)) {
wheelA.rp.vs = -keySpeed;
wheelB.rp.vs = -keySpeed;
wheelB.prev.minus(wheelA.curr.minusNew(wheelB.curr).vertical(-2));
} else if (Key.isDown(39)) {
wheelA.rp.vs = keySpeed;
wheelB.rp.vs = keySpeed;
} else {
wheelA.rp.vs = 0;
wheelB.rp.vs = 0;
}
if ((wheelA.curr.y > (bounds.yMax - 100)) && (wheelB.curr.y > (bounds.yMax - 100))) {
resetcar(lasthit.x, lasthit.y);
lvad();
}
if (Key.isDown(67)) {
resetcar(p_b.curr.x, p_b.curr.y);
lvad();
}
if ((p_b.curr.distance(wheelA.curr) + p_b.curr.distance(wheelB.curr)) < 100) {
main._parent.froundpage.getball.start();
var _local6 = engine.primitives.pop();
resetcar(wheelA.prev.x, p_b.curr.y - 17);
removeMovieClip(_local6.dmc);
main.fround.p_b._visible = false;
main.fround.gan_2.gotoAndStop(3);
kicked = false;
keyup = false;
power = 0;
}
wheelB.statement = (wheelA.statement = 0);
} else {
if (Key.isDown(37)) {
carmode(-1);
} else if (Key.isDown(39)) {
carmode(1);
}
wheelA.rp.vs = 0;
wheelB.rp.vs = 0;
if (wheelA.statement != 0) {
wheelA.curr.copy(wheelA.prev);
}
if (wheelB.statement != 0) {
wheelB.curr.copy(wheelB.prev);
}
}
if (pmove) {
var _local8 = p_b.mtd.x;
var _local7 = p_b.mtd.y;
}
engine.timeStep();
p_b.rp.vs = 0;
carskin();
if (pmove) {
main._x = main._x + Math.floor(((centerx - p_b.curr.x) - main._x) * 0.5);
main._y = main._y + Math.floor(((centery - p_b.curr.y) - main._y) * 0.5);
var _local3 = Math.max(Math.abs(p_b.mtd.y) - Math.abs(_local7), Math.abs(p_b.mtd.x) - Math.abs(_local8));
if (_local3 > 0.9) {
if (main._parent.froundpage.hit.getVolume() != 0) {
main._parent.froundpage.hit.setVolume(Math.max(Math.abs(p_b.mtd.y) + 10, Math.abs(p_b.mtd.x) + 10));
}
main._parent.froundpage.hit.start();
}
if (p_b.curr.y > (bounds.yMax - 100)) {
var _local6 = engine.primitives.pop();
removeMovieClip(_local6.dmc);
main.fround.p_b._visible = false;
main.fround.gan_2.gotoAndStop(3);
kicked = false;
keyup = false;
power = 0;
pmove = false;
}
if (lastp.distance(p_b.curr) < 0.5) {
stoptime++;
if (stoptime > 30) {
pmove = false;
stoptime = 0;
if (p_b.statement == 2) {
main._parent.froundpage.gotoAndStop(10);
var _local2 = 0;
while (_local2 < 18) {
main._parent.froundpage["p" + (_local2 + 1)].text = par[_local2];
if (_local2 <= level) {
main._parent.froundpage["mp" + (_local2 + 1)].text = mypar[_local2];
if (par[_local2] > mypar[_local2]) {
main._parent.froundpage["mp" + (_local2 + 1)].textColor = 65280;
} else if (par[_local2] < mypar[_local2]) {
main._parent.froundpage["mp" + (_local2 + 1)].textColor = 16711680 /* 0xFF0000 */;
}
} else {
main._parent.froundpage["mp" + (_local2 + 1)].text = "";
}
_local2++;
}
var _local5 = (mypar[level] - par[level]) + 3;
if (_local5 < 0) {
main._parent.froundpage.say.text = degree[0];
} else if (_local5 >= degree.length) {
main._parent.froundpage.say.text = ("Bogey " + (mypar[level] - par[level])) + " !";
} else {
main._parent.froundpage.say.text = degree[_local5];
}
var _local4 = 0;
_local2 = 0;
while (_local2 < (level + 1)) {
_local3 = (mypar[_local2] - par[_local2]) + 3;
if (_local3 < 0) {
_local4 = _local4 + scor[0];
} else if (_local3 >= degree.length) {
} else {
_local4 = _local4 + scor[_local3];
}
_local2++;
}
main._parent.froundpage.score = _local4;
if (main._parent.froundpage.score < 0) {
main._parent.froundpage.score = 0;
}
main._parent.froundpage.sco.text = "SCORE: " + main._parent.froundpage.score;
main._parent.froundpage.nt.game = this;
if (level < 17) {
main._parent.froundpage.ntword.gotoAndStop(1);
main._parent.froundpage.nt.onPress = function () {
this.game.mapping(this.game.level + 1);
};
} else {
main._parent.froundpage.ntword.gotoAndStop(2);
main._parent.froundpage.nt.onPress = function () {
this.game.mapping(0);
};
}
}
}
} else {
stoptime = 0;
}
lastp.copy(p_b.curr);
} else {
p_b.curr.copy(lastp);
main._x = main._x + Math.floor(((centerx - wheelA.curr.x) - main._x) * 0.5);
main._y = main._y + Math.floor(((centery - wheelA.curr.y) - main._y) * 0.5);
}
main._parent.water._x = Math.round((main._x * 1000) / ((bounds.xMax - bounds.xMin) + 4000));
}
}
}
function lvad() {
mypar[level]++;
main._parent.froundpage.hits.text = (("HITS: " + mypar[level]) + "/") + par[level];
}
function carskin() {
main.fround.wheelA._x = wheelA.curr.x;
main.fround.wheelA._y = wheelA.curr.y;
main.fround.wheelA._rotation = wheelA.ro;
main.fround.wheelB._x = wheelB.curr.x;
main.fround.wheelB._y = wheelB.curr.y;
main.fround.wheelB._rotation = wheelB.ro;
main.fround.body._x = (wheelA.curr.x + wheelB.curr.x) / 2;
main.fround.body._y = (wheelA.curr.y + wheelB.curr.y) / 2;
main.fround.body._rotation = Math.atan2(wheelB.curr.y - wheelA.curr.y, wheelB.curr.x - wheelA.curr.x) * 57.115;
main.fround.gan_1._x = p2.curr.x;
main.fround.gan_1._y = p2.curr.y;
main.fround.gan_2._x = p2.curr.x;
main.fround.gan_2._y = p2.curr.y;
main.fround.gan_2._rotation = Math.atan2(p1.curr.y - p2.curr.y, p1.curr.x - p2.curr.x) * 57.115;
if (carscale > 0) {
main.fround.gan_2._yscale = 100;
main.fround.gan_1._rotation = Math.atan2(wheelA.curr.y - p2.curr.y, wheelA.curr.x - p2.curr.x) * 57.115;
} else {
main.fround.gan_2._yscale = -100;
main.fround.gan_1._rotation = Math.atan2(wheelB.curr.y - p2.curr.y, wheelB.curr.x - p2.curr.x) * 57.115;
}
if (main.fround.p_b._visible) {
main.fround.p_b._x = p_b.curr.x;
main.fround.p_b._y = p_b.curr.y;
main.fround.p_b._rotation = p_b.ro;
main.fround.p_b.d._rotation = -main.fround.p_b._rotation;
main.fround.p_b.d.dt.text = Math.round(p_b.curr.distance(lasthit) / 4) + " m";
if (pmove) {
main.fround.attachMovie("ballsd", "ballsd" + bsd, bsd, {_x:p_b.prev.x, _y:p_b.prev.y, _rotation:(bsd - 30) * 18});
((bsd < 30) ? ((bsd = 50)) : (bsd--));
} else {
bsd = 50;
}
}
main.fround.body.rp._rotation = -main.fround.body._rotation;
main.fround.body.rp.p.text = Math.round(main._parent.froundpage.level) + " %";
main.fround.body.rp.r.text = (Math.round(ang2.targetTheta * 57.115) + (carscale * 180)) + "\u00B0";
}
static function enter(mc) {
delete c;
var c = new CarExample(mc);
mc.onEnterFrame = function () {
c.run();
};
}
function setlevel(num) {
var _local1 = new Array();
_local1[0] = new Array();
_local1[0][0] = new org.cove.flade.surfaces.RectangleTile(1139, 229, 50, 90);
_local1[0][0].name = "hole";
_local1[0][0].t = 0;
_local1[0][1] = new org.cove.flade.surfaces.RectangleTile(1222, 227, 132, 186);
_local1[0][2] = new org.cove.flade.surfaces.LineSurface(726, 156, 771, 142);
_local1[0][3] = new org.cove.flade.surfaces.LineSurface(673, 163, 726, 156);
_local1[0][4] = new org.cove.flade.surfaces.LineSurface(619, 163, 673, 163);
_local1[0][5] = new org.cove.flade.surfaces.LineSurface(565, 156, 619, 163);
_local1[0][6] = new org.cove.flade.surfaces.LineSurface(520, 142, 565, 156);
_local1[0][7] = new org.cove.flade.surfaces.RectangleTile(957, 231, 338, 194);
_local1[0][8] = new org.cove.flade.surfaces.RectangleTile(254, 254, 500, 240);
_local1[0][9] = new org.cove.flade.surfaces.CircleTile(1320, 138, 49);
_local1[0][10] = new org.cove.flade.surfaces.CircleTile(1288, 158, 24);
_local1[0][11] = new org.cove.flade.surfaces.CircleTile(788, 158, 24);
_local1[0][12] = new org.cove.flade.surfaces.CircleTile(504, 158, 24);
_local1[0][13] = new org.cove.flade.surfaces.CircleTile(4, 158, 24);
_local1[1] = new Array();
_local1[1][0] = new org.cove.flade.surfaces.LineSurface(1136, 178, 1172, 148);
_local1[1][1] = new org.cove.flade.surfaces.LineSurface(1092, 211, 1136, 178);
_local1[1][2] = new org.cove.flade.surfaces.LineSurface(1047, 237, 1092, 211);
_local1[1][3] = new org.cove.flade.surfaces.LineSurface(998, 256, 1047, 237);
_local1[1][4] = new org.cove.flade.surfaces.LineSurface(956, 267, 998, 256);
_local1[1][5] = new org.cove.flade.surfaces.RectangleTile(1829, 226, 64, 82);
_local1[1][5].name = "hole";
_local1[1][5].t = 0;
_local1[1][6] = new org.cove.flade.surfaces.RectangleTile(1916, 181, 144, 92);
_local1[1][7] = new org.cove.flade.surfaces.RectangleTile(1502, 181, 626, 92);
_local1[1][8] = new org.cove.flade.surfaces.CircleTile(1989, 159, 24);
_local1[1][9] = new org.cove.flade.surfaces.CircleTile(1189, 159, 24);
_local1[1][10] = new org.cove.flade.surfaces.RectangleTile(847, 342, 200, 158);
_local1[1][11] = new org.cove.flade.surfaces.RectangleTile(254, 183, 500, 96);
_local1[1][12] = new org.cove.flade.surfaces.CircleTile(947, 287, 24);
_local1[1][13] = new org.cove.flade.surfaces.CircleTile(848, -100, 149);
_local1[1][14] = new org.cove.flade.surfaces.CircleTile(747, 287, 24);
_local1[1][15] = new org.cove.flade.surfaces.CircleTile(504, 159, 24);
_local1[1][16] = new org.cove.flade.surfaces.CircleTile(4, 159, 24);
_local1[2] = new Array();
_local1[2][0] = new org.cove.flade.surfaces.CircleTile(1760, 645, 99);
_local1[2][1] = new org.cove.flade.surfaces.RectangleTile(3991, 701, 512, 162);
_local1[2][2] = new org.cove.flade.surfaces.RectangleTile(3730, 708, 96, 76);
_local1[2][2].name = "hole";
_local1[2][2].t = 0;
_local1[2][3] = new org.cove.flade.surfaces.CircleTile(4247, 644, 24);
_local1[2][4] = new org.cove.flade.surfaces.RectangleTile(3607, 706, 194, 172);
_local1[2][5] = new org.cove.flade.surfaces.CircleTile(3355, 525, 124);
_local1[2][6] = new org.cove.flade.surfaces.CircleTile(3146, 400, 198);
_local1[2][7] = new org.cove.flade.surfaces.LineSurface(2365, 624, 3026, 242);
_local1[2][8] = new org.cove.flade.surfaces.CircleTile(2364, 644, 24);
_local1[2][9] = new org.cove.flade.surfaces.RectangleTile(2014, 714, 700, 188);
_local1[2][10] = new org.cove.flade.surfaces.CircleTile(3460, 659, 148);
_local1[2][11] = new org.cove.flade.surfaces.CircleTile(1660, 545, 99);
_local1[2][12] = new org.cove.flade.surfaces.LineSurface(1016, 68, 1676, 449);
_local1[2][13] = new org.cove.flade.surfaces.RectangleTile(176, 186, 350, 90);
_local1[2][14] = new org.cove.flade.surfaces.LineSurface(350, 165, 662, -15);
_local1[2][15] = new org.cove.flade.surfaces.CircleTile(890, 180, 169);
_local1[2][16] = new org.cove.flade.surfaces.CircleTile(735, 50, 99);
_local1[2][17] = new org.cove.flade.surfaces.CircleTile(350, 165, 24);
_local1[2][18] = new org.cove.flade.surfaces.CircleTile(0, 165, 24);
_local1[3] = new Array();
_local1[3][0] = new org.cove.flade.surfaces.CircleTile(845, 725, 24);
_local1[3][0].name = "tan_xy";
_local1[3][0].t = 0.5;
_local1[3][1] = new org.cove.flade.surfaces.RectangleTile(550, 846, 100, 112);
_local1[3][1].name = "hole";
_local1[3][1].t = 0;
_local1[3][2] = new org.cove.flade.surfaces.RectangleTile(464, 832, 140, 184);
_local1[3][3] = new org.cove.flade.surfaces.RectangleTile(829, 834, 530, 188);
_local1[3][4] = new org.cove.flade.surfaces.RectangleTile(1664, 825, 600, 170);
_local1[3][5] = new org.cove.flade.surfaces.LineSurface(1306, 757, 1351, 743);
_local1[3][6] = new org.cove.flade.surfaces.LineSurface(1253, 764, 1306, 757);
_local1[3][7] = new org.cove.flade.surfaces.LineSurface(1199, 764, 1253, 764);
_local1[3][8] = new org.cove.flade.surfaces.LineSurface(1145, 757, 1199, 764);
_local1[3][9] = new org.cove.flade.surfaces.LineSurface(1100, 743, 1145, 757);
_local1[3][10] = new org.cove.flade.surfaces.CircleTile(394, 764, 24);
_local1[3][11] = new org.cove.flade.surfaces.CircleTile(1094, 764, 24);
_local1[3][12] = new org.cove.flade.surfaces.CircleTile(1364, 764, 24);
_local1[3][13] = new org.cove.flade.surfaces.CircleTile(1964, 764, 24);
_local1[3][14] = new org.cove.flade.surfaces.RectangleTile(954, 204, 500, 128);
_local1[3][15] = new org.cove.flade.surfaces.RectangleTile(274, 204, 700, 128);
_local1[3][16] = new org.cove.flade.surfaces.CircleTile(1200, 320, 199);
_local1[3][17] = new org.cove.flade.surfaces.CircleTile(665, 230, 99);
_local1[3][18] = new org.cove.flade.surfaces.CircleTile(-76, 164, 24);
_local1[3][19] = new org.cove.flade.surfaces.CircleTile(614, -326, 24);
_local1[3][20] = new org.cove.flade.surfaces.CircleTile(714, -326, 24);
_local1[3][21] = new org.cove.flade.surfaces.RectangleTile(664, -176, 100, 348);
_local1[4] = new Array();
_local1[4][0] = new org.cove.flade.surfaces.CircleTile(605, 955, 24);
_local1[4][0].name = "hole";
_local1[4][0].t = 0.5;
_local1[4][1] = new org.cove.flade.surfaces.CircleTile(1056, 55, 24);
_local1[4][1].name = "tan_y";
_local1[4][1].t = 5;
_local1[4][2] = new org.cove.flade.surfaces.CircleTile(994, 398, 24);
_local1[4][2].name = "tan_y";
_local1[4][2].t = 5;
_local1[4][3] = new org.cove.flade.surfaces.CircleTile(914, 985, 24);
_local1[4][3].name = "tan_y";
_local1[4][3].t = 5;
_local1[4][4] = new org.cove.flade.surfaces.CircleTile(1099, 994, 24);
_local1[4][5] = new org.cove.flade.surfaces.RectangleTile(764, 1054, 58, 68);
_local1[4][5].name = "hole";
_local1[4][5].t = 0;
_local1[4][6] = new org.cove.flade.surfaces.RectangleTile(937, 1046, 324, 152);
_local1[4][7] = new org.cove.flade.surfaces.RectangleTile(644, 1042, 200, 144);
_local1[4][8] = new org.cove.flade.surfaces.RectangleTile(499, 852, 200, 304);
_local1[4][9] = new org.cove.flade.surfaces.RectangleTile(874, 447, 300, 128);
_local1[4][10] = new org.cove.flade.surfaces.CircleTile(1024, 407, 24);
_local1[4][11] = new org.cove.flade.surfaces.RectangleTile(989, 103, 200, 128);
_local1[4][12] = new org.cove.flade.surfaces.CircleTile(703, 23, 24);
_local1[4][12].name = "tan_xy";
_local1[4][12].t = 0.5;
_local1[4][13] = new org.cove.flade.surfaces.CircleTile(1089, 63, 24);
_local1[4][14] = new org.cove.flade.surfaces.CircleTile(599, 724, 24);
_local1[4][15] = new org.cove.flade.surfaces.LineSurface(399, 318, 399, 724);
_local1[4][16] = new org.cove.flade.surfaces.LineSurface(655, 153, 392, 306);
_local1[4][17] = new org.cove.flade.surfaces.LineSurface(397, 188, 632, 52);
_local1[4][18] = new org.cove.flade.surfaces.RectangleTile(199, 220, 400, 100);
_local1[4][19] = new org.cove.flade.surfaces.RectangleTile(711, 103, 150, 128);
_local1[4][20] = new org.cove.flade.surfaces.CircleTile(888, 63, 24);
_local1[4][21] = new org.cove.flade.surfaces.CircleTile(786, 63, 24);
_local1[4][22] = new org.cove.flade.surfaces.CircleTile(636, 64, 24);
_local1[4][23] = new org.cove.flade.surfaces.CircleTile(399, 194, 24);
_local1[4][24] = new org.cove.flade.surfaces.CircleTile(-1, 194, 24);
_local1[4][25] = new org.cove.flade.surfaces.CircleTile(414, 685, 24);
_local1[4][25].name = "tan_xy";
_local1[4][25].t = 0.5;
_local1[4][26] = new org.cove.flade.surfaces.CircleTile(650, 451, 99);
_local1[5] = new Array();
_local1[5][0] = new org.cove.flade.surfaces.RectangleTile(398, 1001, 66, 66);
_local1[5][0].name = "hole";
_local1[5][0].t = 0;
_local1[5][1] = new org.cove.flade.surfaces.RectangleTile(474, 970, 116, 104);
_local1[5][2] = new org.cove.flade.surfaces.RectangleTile(361, 238, 702, 126);
_local1[5][3] = new org.cove.flade.surfaces.RectangleTile(676, 701, 700, 124);
_local1[5][4] = new org.cove.flade.surfaces.RectangleTile(264, 972, 240, 108);
_local1[5][5] = new org.cove.flade.surfaces.CircleTile(166, 835, 24);
_local1[5][5].name = "tan_xy";
_local1[5][5].t = 0.5;
_local1[5][6] = new org.cove.flade.surfaces.CircleTile(171, 923, 74);
_local1[5][7] = new org.cove.flade.surfaces.CircleTile(65, 841, 99);
_local1[5][8] = new org.cove.flade.surfaces.CircleTile(532, 942, 24);
_local1[5][9] = new org.cove.flade.surfaces.CircleTile(1300, 431, 24);
_local1[5][9].name = "tan_xy";
_local1[5][9].t = 0.5;
_local1[5][10] = new org.cove.flade.surfaces.CircleTile(1075, 650, 149);
_local1[5][11] = new org.cove.flade.surfaces.CircleTile(1312, 595, 149);
_local1[5][12] = new org.cove.flade.surfaces.CircleTile(644, 675, 75);
_local1[5][13] = new org.cove.flade.surfaces.CircleTile(326, 663, 24);
_local1[5][14] = new org.cove.flade.surfaces.CircleTile(536, 160, 24);
_local1[5][14].name = "tan_xy";
_local1[5][14].t = 0.5;
_local1[5][15] = new org.cove.flade.surfaces.CircleTile(980, 129, 99);
_local1[5][16] = new org.cove.flade.surfaces.CircleTile(819, 234, 149);
_local1[5][17] = new org.cove.flade.surfaces.CircleTile(10, 199, 24);
_local1[5][18] = new org.cove.flade.surfaces.CircleTile(454, 187, 74);
_local1[5][19] = new org.cove.flade.surfaces.CircleTile(513, -71, 99);
_local1[6] = new Array();
_local1[6][0] = new org.cove.flade.surfaces.CircleTile(2325, 145, 24);
_local1[6][0].name = "tan_y";
_local1[6][0].t = 8;
_local1[6][1] = new org.cove.flade.surfaces.RectangleTile(2255, 196, 218, 132);
_local1[6][2] = new org.cove.flade.surfaces.RectangleTile(2131, 217, 80, 74);
_local1[6][2].name = "hole";
_local1[6][2].t = 0;
_local1[6][3] = new org.cove.flade.surfaces.RectangleTile(2040, 190, 152, 120);
_local1[6][4] = new org.cove.flade.surfaces.RectangleTile(1179, 239, 1566, 146);
_local1[6][4].name = "t_xy";
_local1[6][4].t = -0.5;
_local1[6][5] = new org.cove.flade.surfaces.CircleTile(1964, 154, 24);
_local1[6][6] = new org.cove.flade.surfaces.CircleTile(2364, 154, 24);
_local1[6][7] = new org.cove.flade.surfaces.CircleTile(911, -333, 24);
_local1[6][7].name = "tan_xy";
_local1[6][7].t = 0.5;
_local1[6][8] = new org.cove.flade.surfaces.CircleTile(1211, 181, 149);
_local1[6][9] = new org.cove.flade.surfaces.CircleTile(1571, -230, 199);
_local1[6][10] = new org.cove.flade.surfaces.CircleTile(820, -210, 149);
_local1[6][11] = new org.cove.flade.surfaces.CircleTile(399, 154, 24);
_local1[6][12] = new org.cove.flade.surfaces.CircleTile(-1, 154, 24);
_local1[6][13] = new org.cove.flade.surfaces.RectangleTile(199, 189, 400, 118);
_local1[7] = new Array();
_local1[7][0] = new org.cove.flade.surfaces.CircleTile(1916, 84, 149);
_local1[7][1] = new org.cove.flade.surfaces.RectangleTile(1804, 681, 400, 162);
_local1[7][2] = new org.cove.flade.surfaces.CircleTile(2004, 624, 24);
_local1[7][3] = new org.cove.flade.surfaces.CircleTile(1604, 624, 24);
_local1[7][4] = new org.cove.flade.surfaces.RectangleTile(997, 717, 1244, 152);
_local1[7][4].name = "t_xy";
_local1[7][4].t = -0.5;
_local1[7][5] = new org.cove.flade.surfaces.RectangleTile(323, 684, 184, 160);
_local1[7][6] = new org.cove.flade.surfaces.RectangleTile(217, 699, 72, 90);
_local1[7][6].name = "hole";
_local1[7][6].t = 0;
_local1[7][7] = new org.cove.flade.surfaces.RectangleTile(108, 646, 186, 84);
_local1[7][8] = new org.cove.flade.surfaces.CircleTile(1093, 621, 24);
_local1[7][8].name = "tan_xy";
_local1[7][8].t = 0.5;
_local1[7][9] = new org.cove.flade.surfaces.CircleTile(1014, 180, 49);
_local1[7][10] = new org.cove.flade.surfaces.CircleTile(1084, 180, 49);
_local1[7][11] = new org.cove.flade.surfaces.CircleTile(1156, 180, 49);
_local1[7][12] = new org.cove.flade.surfaces.CircleTile(1227, 180, 49);
_local1[7][13] = new org.cove.flade.surfaces.CircleTile(1307, 180, 49);
_local1[7][14] = new org.cove.flade.surfaces.CircleTile(1377, 180, 49);
_local1[7][15] = new org.cove.flade.surfaces.CircleTile(1449, 180, 49);
_local1[7][16] = new org.cove.flade.surfaces.CircleTile(1546, 165, 74);
_local1[7][17] = new org.cove.flade.surfaces.RectangleTile(199, 202, 400, 144);
_local1[7][18] = new org.cove.flade.surfaces.CircleTile(415, 628, 24);
_local1[7][19] = new org.cove.flade.surfaces.CircleTile(15, 628, 24);
_local1[7][20] = new org.cove.flade.surfaces.CircleTile(55, 588, 24);
_local1[7][20].name = "tan_xy";
_local1[7][20].t = 0.5;
_local1[7][21] = new org.cove.flade.surfaces.CircleTile(653, 621, 24);
_local1[7][21].name = "tan_xy";
_local1[7][21].t = 0.5;
_local1[7][22] = new org.cove.flade.surfaces.CircleTile(941, 179, 49);
_local1[7][23] = new org.cove.flade.surfaces.CircleTile(870, 179, 49);
_local1[7][24] = new org.cove.flade.surfaces.CircleTile(798, 179, 49);
_local1[7][25] = new org.cove.flade.surfaces.CircleTile(728, 179, 49);
_local1[7][26] = new org.cove.flade.surfaces.CircleTile(660, 180, 49);
_local1[7][27] = new org.cove.flade.surfaces.CircleTile(589, 180, 49);
_local1[7][28] = new org.cove.flade.surfaces.CircleTile(517, 180, 49);
_local1[7][29] = new org.cove.flade.surfaces.CircleTile(447, 180, 49);
_local1[7][30] = new org.cove.flade.surfaces.CircleTile(399, 154, 24);
_local1[7][31] = new org.cove.flade.surfaces.CircleTile(-1, 154, 24);
_local1[8] = new Array();
_local1[8][0] = new org.cove.flade.surfaces.CircleTile(1474, 74, 24);
_local1[8][1] = new org.cove.flade.surfaces.RectangleTile(1486, 100, 46, 100);
_local1[8][2] = new org.cove.flade.surfaces.RectangleTile(1524, 123, 100, 48);
_local1[8][2].name = "hole";
_local1[8][2].t = 0;
_local1[8][3] = new org.cove.flade.surfaces.RectangleTile(1556, 99, 34, 98);
_local1[8][4] = new org.cove.flade.surfaces.CircleTile(1279, 95, 74);
_local1[8][5] = new org.cove.flade.surfaces.CircleTile(1194, 70, 40);
_local1[8][6] = new org.cove.flade.surfaces.CircleTile(800, -300, 199);
_local1[8][7] = new org.cove.flade.surfaces.RectangleTile(49, 239, 100, 218);
_local1[8][8] = new org.cove.flade.surfaces.CircleTile(99, 154, 24);
_local1[8][9] = new org.cove.flade.surfaces.CircleTile(-1, 154, 24);
_local1[8][10] = new org.cove.flade.surfaces.CircleTile(190, 150, 50);
_local1[8][11] = new org.cove.flade.surfaces.CircleTile(275, 116, 25);
_local1[8][12] = new org.cove.flade.surfaces.CircleTile(362, 141, 49);
_local1[8][13] = new org.cove.flade.surfaces.CircleTile(499, 135, 74);
_local1[8][14] = new org.cove.flade.surfaces.CircleTile(1414, 92, 49);
_local1[8][15] = new org.cove.flade.surfaces.CircleTile(1574, 74, 24);
_local1[8][16] = new org.cove.flade.surfaces.CircleTile(1675, 20, 74);
_local1[8][17] = new org.cove.flade.surfaces.CircleTile(1124, 82, 59);
_local1[8][18] = new org.cove.flade.surfaces.CircleTile(958, 131, 99);
_local1[8][19] = new org.cove.flade.surfaces.CircleTile(688, 160, 99);
_local1[8][20] = new org.cove.flade.surfaces.CircleTile(811, 135, 74);
_local1[9] = new Array();
_local1[9][0] = new org.cove.flade.surfaces.RectangleTile(-603, 948, 86, 74);
_local1[9][1] = new org.cove.flade.surfaces.RectangleTile(-659, 992, 78, 62);
_local1[9][1].name = "hole";
_local1[9][1].t = 0;
_local1[9][2] = new org.cove.flade.surfaces.LineSurface(-810, 900, -768, 911);
_local1[9][3] = new org.cove.flade.surfaces.LineSurface(-859, 881, -810, 900);
_local1[9][4] = new org.cove.flade.surfaces.LineSurface(-904, 855, -859, 881);
_local1[9][5] = new org.cove.flade.surfaces.LineSurface(-948, 822, -904, 855);
_local1[9][6] = new org.cove.flade.surfaces.LineSurface(-984, 792, -948, 822);
_local1[9][7] = new org.cove.flade.surfaces.RectangleTile(-718, 957, 82, 92);
_local1[9][8] = new org.cove.flade.surfaces.CircleTile(-761, 935, 24);
_local1[9][9] = new org.cove.flade.surfaces.CircleTile(-561, 935, 24);
_local1[9][10] = new org.cove.flade.surfaces.CircleTile(-575, 895, 24);
_local1[9][10].name = "tan_xy";
_local1[9][10].t = 0.5;
_local1[9][11] = new org.cove.flade.surfaces.CircleTile(-1185, 809, 74);
_local1[9][12] = new org.cove.flade.surfaces.CircleTile(-1100, 824, 59);
_local1[9][13] = new org.cove.flade.surfaces.CircleTile(-1018, 810, 39);
_local1[9][14] = new org.cove.flade.surfaces.CircleTile(-910, 570, 89);
_local1[9][15] = new org.cove.flade.surfaces.RectangleTile(49, 176, 100, 92);
_local1[9][16] = new org.cove.flade.surfaces.CircleTile(99, 154, 24);
_local1[9][17] = new org.cove.flade.surfaces.CircleTile(-1, 154, 24);
_local1[9][18] = new org.cove.flade.surfaces.CircleTile(-820, 590, 49);
_local1[9][19] = new org.cove.flade.surfaces.CircleTile(-740, 590, 49);
_local1[9][20] = new org.cove.flade.surfaces.CircleTile(-655, 575, 74);
_local1[9][21] = new org.cove.flade.surfaces.CircleTile(-480, 496, 99);
_local1[9][22] = new org.cove.flade.surfaces.CircleTile(-291, 475, 124);
_local1[9][23] = new org.cove.flade.surfaces.CircleTile(-190, 270, 49);
_local1[9][24] = new org.cove.flade.surfaces.CircleTile(-80, 200, 59);
_local1[10] = new Array();
_local1[10][0] = new org.cove.flade.surfaces.CircleTile(1829, -66, 24);
_local1[10][1] = new org.cove.flade.surfaces.RectangleTile(2109, -24, 238, 132);
_local1[10][2] = new org.cove.flade.surfaces.RectangleTile(1979, 0, 126, 86);
_local1[10][2].name = "hole";
_local1[10][2].t = 0;
_local1[10][3] = new org.cove.flade.surfaces.RectangleTile(1893, -32, 138, 116);
_local1[10][4] = new org.cove.flade.surfaces.RectangleTile(317, 233, 470, 134);
_local1[10][5] = new org.cove.flade.surfaces.CircleTile(2228, -66, 24);
_local1[10][6] = new org.cove.flade.surfaces.CircleTile(2195, -106, 24);
_local1[10][7] = new org.cove.flade.surfaces.CircleTile(1662, 132, 249);
_local1[10][8] = new org.cove.flade.surfaces.CircleTile(1445, 43, 90);
_local1[10][9] = new org.cove.flade.surfaces.CircleTile(1150, -15, 28);
_local1[10][9].name = "tan_xy";
_local1[10][9].t = 0.5;
_local1[10][10] = new org.cove.flade.surfaces.CircleTile(1085, -15, 28);
_local1[10][10].name = "tan_xy";
_local1[10][10].t = 0.5;
_local1[10][11] = new org.cove.flade.surfaces.LineSurface(1321, 5, 1389, -27);
_local1[10][12] = new org.cove.flade.surfaces.LineSurface(1244, 9, 1321, 5);
_local1[10][13] = new org.cove.flade.surfaces.LineSurface(1174, -26, 1244, 9);
_local1[10][14] = new org.cove.flade.surfaces.LineSurface(995, 8, 1060, -26);
_local1[10][15] = new org.cove.flade.surfaces.LineSurface(915, 8, 995, 8);
_local1[10][16] = new org.cove.flade.surfaces.LineSurface(841, -31, 915, 8);
_local1[10][17] = new org.cove.flade.surfaces.LineSurface(664, 94, 705, 17);
_local1[10][18] = new org.cove.flade.surfaces.LineSurface(607, 144, 664, 94);
_local1[10][19] = new org.cove.flade.surfaces.LineSurface(543, 168, 607, 144);
_local1[10][20] = new org.cove.flade.surfaces.CircleTile(790, 42, 89);
_local1[10][21] = new org.cove.flade.surfaces.CircleTile(420, -120, 99);
_local1[10][22] = new org.cove.flade.surfaces.CircleTile(-1, 154, 24);
_local1[10][23] = new org.cove.flade.surfaces.CircleTile(99, 154, 24);
_local1[10][24] = new org.cove.flade.surfaces.RectangleTile(49, 218, 100, 176);
_local1[11] = new Array();
_local1[11][0] = new org.cove.flade.surfaces.CircleTile(-1036, 155, 24);
_local1[11][0].name = "tan_xy";
_local1[11][0].t = 0.5;
_local1[11][1] = new org.cove.flade.surfaces.RectangleTile(49, 246, 100, 232);
_local1[11][2] = new org.cove.flade.surfaces.CircleTile(99, 154, 24);
_local1[11][3] = new org.cove.flade.surfaces.CircleTile(-1, 154, 24);
_local1[11][4] = new org.cove.flade.surfaces.RectangleTile(-630, 148, 126, 100);
_local1[11][5] = new org.cove.flade.surfaces.LineSurface(-448, 154, -387, 177);
_local1[11][6] = new org.cove.flade.surfaces.LineSurface(-485, 125, -448, 154);
_local1[11][7] = new org.cove.flade.surfaces.LineSurface(-521, 82, -485, 125);
_local1[11][8] = new org.cove.flade.surfaces.LineSurface(-549, 17, -521, 82);
_local1[11][9] = new org.cove.flade.surfaces.LineSurface(-738, 8, -674, -23);
_local1[11][10] = new org.cove.flade.surfaces.LineSurface(-797, 20, -738, 8);
_local1[11][11] = new org.cove.flade.surfaces.LineSurface(-855, 9, -797, 20);
_local1[11][12] = new org.cove.flade.surfaces.LineSurface(-900, -18, -855, 9);
_local1[11][13] = new org.cove.flade.surfaces.CircleTile(-629, 49, 88);
_local1[11][14] = new org.cove.flade.surfaces.CircleTile(-924, -2, 31);
_local1[11][14].name = "tan_xy";
_local1[11][14].t = 0.5;
_local1[11][15] = new org.cove.flade.surfaces.CircleTile(-933, 95, 99);
_local1[11][16] = new org.cove.flade.surfaces.CircleTile(-1220, -20, 49);
_local1[11][17] = new org.cove.flade.surfaces.CircleTile(-1350, -40, 49);
_local1[11][18] = new org.cove.flade.surfaces.CircleTile(-1509, -9, 49);
_local1[11][19] = new org.cove.flade.surfaces.CircleTile(-1720, -15, 49);
_local1[11][20] = new org.cove.flade.surfaces.CircleTile(-1874, -67, 49);
_local1[11][21] = new org.cove.flade.surfaces.RectangleTile(-1204, 257, 2436, 172);
_local1[11][21].name = "t_xy";
_local1[11][21].t = -0.5;
_local1[11][22] = new org.cove.flade.surfaces.RectangleTile(-2495, 190, 238, 112);
_local1[11][23] = new org.cove.flade.surfaces.RectangleTile(-2627, 225, 78, 86);
_local1[11][23].name = "hole";
_local1[11][23].t = 0;
_local1[11][24] = new org.cove.flade.surfaces.RectangleTile(-2709, 183, 132, 98);
_local1[11][25] = new org.cove.flade.surfaces.CircleTile(-2026, -82, 49);
_local1[11][26] = new org.cove.flade.surfaces.CircleTile(-2776, 158, 24);
_local1[11][27] = new org.cove.flade.surfaces.CircleTile(-2376, 158, 24);
_local1[11][28] = new org.cove.flade.surfaces.CircleTile(-2325, 155, 24);
_local1[11][28].name = "tan_xy";
_local1[11][28].t = 0.5;
_local1[11][29] = new org.cove.flade.surfaces.CircleTile(-2180, -40, 49);
_local1[11][30] = new org.cove.flade.surfaces.CircleTile(-2830, 150, 99);
_local1[12] = new Array();
_local1[12][0] = new org.cove.flade.surfaces.CircleTile(3140, 346, 24);
_local1[12][1] = new org.cove.flade.surfaces.LineSurface(2572, 419, 2742, 322);
_local1[12][2] = new org.cove.flade.surfaces.RectangleTile(3024, 377, 232, 110);
_local1[12][3] = new org.cove.flade.surfaces.RectangleTile(2894, 402, 66, 60);
_local1[12][3].name = "hole";
_local1[12][3].t = 0;
_local1[12][4] = new org.cove.flade.surfaces.RectangleTile(2809, 378, 136, 112);
_local1[12][5] = new org.cove.flade.surfaces.RectangleTile(2482, 414, 300, 68);
_local1[12][6] = new org.cove.flade.surfaces.RectangleTile(2182, 204, 300, 68);
_local1[12][7] = new org.cove.flade.surfaces.LineSurface(1034, 199, 1356, 38);
_local1[12][8] = new org.cove.flade.surfaces.CircleTile(1811, 189, 148);
_local1[12][9] = new org.cove.flade.surfaces.CircleTile(1414, 175, 148);
_local1[12][10] = new org.cove.flade.surfaces.RectangleTile(560, 202, 1102, 64);
_local1[13] = new Array();
_local1[13][0] = new org.cove.flade.surfaces.CircleTile(2257, 98, 24);
_local1[13][0].name = "tan_xy";
_local1[13][0].t = 0.5;
_local1[13][1] = new org.cove.flade.surfaces.CircleTile(2155, 45, 99);
_local1[13][2] = new org.cove.flade.surfaces.CircleTile(386, 1006, 24);
_local1[13][3] = new org.cove.flade.surfaces.RectangleTile(724, 1029, 242, 94);
_local1[13][4] = new org.cove.flade.surfaces.RectangleTile(586, 1064, 74, 64);
_local1[13][4].name = "hole";
_local1[13][4].t = 0;
_local1[13][5] = new org.cove.flade.surfaces.RectangleTile(480, 1031, 188, 98);
_local1[13][6] = new org.cove.flade.surfaces.RectangleTile(1553, 769, 1086, 68);
_local1[13][7] = new org.cove.flade.surfaces.CircleTile(1002, 884, 148);
_local1[13][8] = new org.cove.flade.surfaces.CircleTile(855, 988, 71);
_local1[13][9] = new org.cove.flade.surfaces.LineSurface(2015, 777, 2188, 676);
_local1[13][10] = new org.cove.flade.surfaces.RectangleTile(2385, 725, 396, 100);
_local1[13][11] = new org.cove.flade.surfaces.CircleTile(2649, 729, 148);
_local1[13][12] = new org.cove.flade.surfaces.RectangleTile(1886, 81, 128, 68);
_local1[13][13] = new org.cove.flade.surfaces.CircleTile(2182, -65, 29);
_local1[13][13].name = "tan_xy";
_local1[13][13].t = 0.5;
_local1[13][14] = new org.cove.flade.surfaces.RectangleTile(1965, 175, 700, 124);
_local1[13][15] = new org.cove.flade.surfaces.CircleTile(2314, 137, 24);
_local1[13][16] = new org.cove.flade.surfaces.CircleTile(1888, -14, 88);
_local1[13][17] = new org.cove.flade.surfaces.LineSurface(2039, -41, 2095, -45);
_local1[13][18] = new org.cove.flade.surfaces.LineSurface(2095, -45, 2157, -79);
_local1[13][19] = new org.cove.flade.surfaces.LineSurface(1989, -56, 2039, -41);
_local1[13][20] = new org.cove.flade.surfaces.LineSurface(1941, -84, 1989, -56);
_local1[13][21] = new org.cove.flade.surfaces.LineSurface(1777, 18, 1803, -37);
_local1[13][22] = new org.cove.flade.surfaces.LineSurface(1746, 60, 1777, 18);
_local1[13][23] = new org.cove.flade.surfaces.LineSurface(1702, 93, 1746, 60);
_local1[13][24] = new org.cove.flade.surfaces.LineSurface(1645, 113, 1702, 93);
_local1[13][25] = new org.cove.flade.surfaces.LineSurface(1454, 205, 1615, 113);
_local1[13][26] = new org.cove.flade.surfaces.RectangleTile(966, 206, 1108, 68);
_local1[13][27] = new org.cove.flade.surfaces.LineSurface(339, 113, 521, 219);
_local1[13][28] = new org.cove.flade.surfaces.RectangleTile(-11, 161, 700, 96);
_local1[13][29] = new org.cove.flade.surfaces.CircleTile(-361, 137, 24);
_local1[13][30] = new org.cove.flade.surfaces.CircleTile(271, 131, 99);
_local1[14] = new Array();
_local1[14][0] = new org.cove.flade.surfaces.CircleTile(-55, 287, 24);
_local1[14][0].name = "tan_xy";
_local1[14][0].t = 0.5;
_local1[14][1] = new org.cove.flade.surfaces.CircleTile(-1015, 593, 24);
_local1[14][1].name = "tan_xy";
_local1[14][1].t = 0.5;
_local1[14][2] = new org.cove.flade.surfaces.CircleTile(70, 849, 24);
_local1[14][2].name = "tan_xy";
_local1[14][2].t = 0.5;
_local1[14][3] = new org.cove.flade.surfaces.CircleTile(-134, 1378, 24);
_local1[14][3].name = "tan_xy";
_local1[14][3].t = 0.5;
_local1[14][4] = new org.cove.flade.surfaces.CircleTile(-1207, 1499, 24);
_local1[14][4].name = "tan_xy";
_local1[14][4].t = 0.5;
_local1[14][5] = new org.cove.flade.surfaces.CircleTile(-596, 1428, 51);
_local1[14][6] = new org.cove.flade.surfaces.RectangleTile(-95, 1445, 218, 102);
_local1[14][7] = new org.cove.flade.surfaces.RectangleTile(-218, 1471, 60, 56);
_local1[14][7].name = "hole";
_local1[14][7].t = 0;
_local1[14][8] = new org.cove.flade.surfaces.RectangleTile(-309, 1434, 152, 80);
_local1[14][9] = new org.cove.flade.surfaces.CircleTile(15, 1418, 24);
_local1[14][10] = new org.cove.flade.surfaces.CircleTile(-385, 1418, 24);
_local1[14][11] = new org.cove.flade.surfaces.LineSurface(-863, 1543, -617, 1383);
_local1[14][12] = new org.cove.flade.surfaces.RectangleTile(-1037, 1548, 502, 68);
_local1[14][13] = new org.cove.flade.surfaces.CircleTile(-1296, 1492, 71);
_local1[14][14] = new org.cove.flade.surfaces.CircleTile(-574, 642, 71);
_local1[14][15] = new org.cove.flade.surfaces.RectangleTile(-823, 642, 446, 68);
_local1[14][16] = new org.cove.flade.surfaces.RectangleTile(-1066, 492, 68, 368);
_local1[14][17] = new org.cove.flade.surfaces.RectangleTile(-156, 898, 506, 68);
_local1[14][18] = new org.cove.flade.surfaces.RectangleTile(125, 682, 68, 498);
_local1[14][19] = new org.cove.flade.surfaces.CircleTile(116, 147, 24);
_local1[14][20] = new org.cove.flade.surfaces.CircleTile(16, 147, 24);
_local1[14][21] = new org.cove.flade.surfaces.RectangleTile(66, 165, 102, 84);
_local1[14][22] = new org.cove.flade.surfaces.RectangleTile(-282, 336, 510, 68);
_local1[14][23] = new org.cove.flade.surfaces.RectangleTile(-3, 270, 68, 200);
_local1[15] = new Array();
_local1[15][0] = new org.cove.flade.surfaces.CircleTile(-1815, 1285, 24);
_local1[15][0].name = "tan_xy";
_local1[15][0].t = 0.5;
_local1[15][1] = new org.cove.flade.surfaces.CircleTile(-75, 885, 24);
_local1[15][1].name = "tan_xy";
_local1[15][1].t = 0.5;
_local1[15][2] = new org.cove.flade.surfaces.CircleTile(-2015, 485, 24);
_local1[15][2].name = "tan_xy";
_local1[15][2].t = 0.5;
_local1[15][3] = new org.cove.flade.surfaces.CircleTile(-2130, 490, 99);
_local1[15][4] = new org.cove.flade.surfaces.RectangleTile(-298, 1361, 66, 62);
_local1[15][4].name = "hole";
_local1[15][4].t = 0;
_local1[15][5] = new org.cove.flade.surfaces.CircleTile(-106, 1304, 24);
_local1[15][6] = new org.cove.flade.surfaces.CircleTile(-506, 1304, 24);
_local1[15][7] = new org.cove.flade.surfaces.CircleTile(-1930, 1290, 99);
_local1[15][8] = new org.cove.flade.surfaces.CircleTile(-979, 1076, 43);
_local1[15][8].name = "tan_xy";
_local1[15][8].t = 0.5;
_local1[15][9] = new org.cove.flade.surfaces.CircleTile(40, 890, 99);
_local1[15][10] = new org.cove.flade.surfaces.RectangleTile(-1182, 1334, 1384, 68);
_local1[15][11] = new org.cove.flade.surfaces.CircleTile(-977, 674, 44);
_local1[15][11].name = "tan_xy";
_local1[15][11].t = 0.5;
_local1[15][12] = new org.cove.flade.surfaces.CircleTile(-977, 274, 44);
_local1[15][12].name = "tan_xy";
_local1[15][12].t = 0.5;
_local1[15][13] = new org.cove.flade.surfaces.CircleTile(-979, -105, 42);
_local1[15][13].name = "tan_xy";
_local1[15][13].t = 0.5;
_local1[15][14] = new org.cove.flade.surfaces.RectangleTile(-195, 1330, 180, 100);
_local1[15][15] = new org.cove.flade.surfaces.RectangleTile(-410, 1331, 192, 102);
_local1[15][16] = new org.cove.flade.surfaces.RectangleTile(-1206, 534, 1812, 68);
_local1[15][17] = new org.cove.flade.surfaces.RectangleTile(-782, 934, 1638, 68);
_local1[15][18] = new org.cove.flade.surfaces.RectangleTile(-800, 134, 2002, 68);
_local1[16] = new Array();
_local1[16][0] = new org.cove.flade.surfaces.CircleTile(3124, 1624, 24);
_local1[16][1] = new org.cove.flade.surfaces.CircleTile(2724, 1624, 24);
_local1[16][2] = new org.cove.flade.surfaces.RectangleTile(3036, 1662, 182, 124);
_local1[16][3] = new org.cove.flade.surfaces.RectangleTile(2940, 1701, 122, 102);
_local1[16][3].name = "hole";
_local1[16][3].t = 0;
_local1[16][4] = new org.cove.flade.surfaces.RectangleTile(2820, 1668, 192, 136);
_local1[16][5] = new org.cove.flade.surfaces.CircleTile(2480, 840, 149);
_local1[16][6] = new org.cove.flade.surfaces.RectangleTile(2200, 1234, 400, 68);
_local1[16][7] = new org.cove.flade.surfaces.CircleTile(1780, 440, 149);
_local1[16][8] = new org.cove.flade.surfaces.RectangleTile(1500, 834, 400, 68);
_local1[16][9] = new org.cove.flade.surfaces.CircleTile(1080, 60, 149);
_local1[16][10] = new org.cove.flade.surfaces.RectangleTile(799, 434, 400, 68);
_local1[16][11] = new org.cove.flade.surfaces.RectangleTile(100, 134, 400, 68);
_local1[17] = new Array();
_local1[17][0] = new org.cove.flade.surfaces.RectangleTile(1383, 1257, 100, 94);
_local1[17][0].name = "hole";
_local1[17][0].t = 0;
_local1[17][1] = new org.cove.flade.surfaces.RectangleTile(1484, 1202, 178, 84);
_local1[17][2] = new org.cove.flade.surfaces.RectangleTile(1269, 1214, 190, 108);
_local1[17][3] = new org.cove.flade.surfaces.CircleTile(1574, 1184, 24);
_local1[17][4] = new org.cove.flade.surfaces.CircleTile(1174, 1184, 24);
_local1[17][5] = new org.cove.flade.surfaces.CircleTile(790, 900, 50);
_local1[17][6] = new org.cove.flade.surfaces.CircleTile(720, 930, 50);
_local1[17][7] = new org.cove.flade.surfaces.CircleTile(650, 954, 50);
_local1[17][8] = new org.cove.flade.surfaces.CircleTile(580, 970, 50);
_local1[17][9] = new org.cove.flade.surfaces.CircleTile(510, 970, 50);
_local1[17][10] = new org.cove.flade.surfaces.CircleTile(440, 954, 50);
_local1[17][11] = new org.cove.flade.surfaces.CircleTile(370, 930, 50);
_local1[17][12] = new org.cove.flade.surfaces.CircleTile(300, 900, 50);
_local1[17][13] = new org.cove.flade.surfaces.CircleTile(1610, 500, 50);
_local1[17][14] = new org.cove.flade.surfaces.CircleTile(1540, 530, 50);
_local1[17][15] = new org.cove.flade.surfaces.CircleTile(1470, 554, 50);
_local1[17][16] = new org.cove.flade.surfaces.CircleTile(1400, 570, 50);
_local1[17][17] = new org.cove.flade.surfaces.CircleTile(1330, 570, 50);
_local1[17][18] = new org.cove.flade.surfaces.CircleTile(1260, 554, 50);
_local1[17][19] = new org.cove.flade.surfaces.CircleTile(1190, 530, 50);
_local1[17][20] = new org.cove.flade.surfaces.CircleTile(1120, 501, 50);
_local1[17][21] = new org.cove.flade.surfaces.CircleTile(790, 100, 50);
_local1[17][22] = new org.cove.flade.surfaces.CircleTile(720, 130, 50);
_local1[17][23] = new org.cove.flade.surfaces.CircleTile(650, 154, 50);
_local1[17][24] = new org.cove.flade.surfaces.CircleTile(580, 170, 50);
_local1[17][25] = new org.cove.flade.surfaces.CircleTile(510, 170, 50);
_local1[17][26] = new org.cove.flade.surfaces.CircleTile(440, 154, 50);
_local1[17][27] = new org.cove.flade.surfaces.CircleTile(370, 130, 50);
_local1[17][28] = new org.cove.flade.surfaces.CircleTile(300, 100, 50);
_local1[17][29] = new org.cove.flade.surfaces.RectangleTile(101, 134, 402, 68);
return(_local1[num]);
}
}
Symbol 366 MovieClip [__Packages.org.cove.flade.DynamicsEngine] Frame 0
class org.cove.flade.DynamicsEngine
{
static var clip;
var primitives, surfaces, constraints, gravity, coeffRest, coeffFric, coeffDamp;
function DynamicsEngine (mc) {
clip = mc;
primitives = new Array();
surfaces = new Array();
constraints = new Array();
gravity = new org.cove.flade.util.Vector(0, 1);
coeffRest = 1.5;
coeffFric = 0.01;
coeffDamp = 0.99;
}
function addPrimitive(p) {
primitives.push(p);
}
function addSurface(s) {
surfaces.push(s);
}
function addConstraint(c) {
constraints.push(c);
}
function paintSurfaces() {
var _local2 = 0;
while (_local2 < surfaces.length) {
surfaces[_local2].paint();
_local2++;
}
}
function paintPrimitives() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].paint();
_local2++;
}
}
function paintConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].paint();
_local2++;
}
}
function timeStep() {
verlet();
satisfyConstraints();
checkCollisions();
}
function setSurfaceBounce(kfr) {
coeffRest = 1 + kfr;
}
function setSurfaceFriction(f) {
coeffFric = f;
}
function setDamping(d) {
coeffDamp = d;
}
function setGravity(gx, gy) {
gravity.x = gx;
gravity.y = gy;
}
function removeSurfaces() {
var _local2 = 0;
while (_local2 < surfaces.length) {
surfaces[_local2].remove();
_local2++;
}
surfaces.splice(0);
}
function removeConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].remove();
_local2++;
}
constraints.splice(0);
}
function removePrimitives() {
primitives.splice(0);
}
function verlet() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].verlet(this);
_local2++;
}
}
function satisfyConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].resolve();
_local2++;
}
}
function checkCollisions() {
var _local4 = 0;
while (_local4 < surfaces.length) {
var _local3 = surfaces[_local4];
if (_local3.getActiveState()) {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].checkCollision(_local3, this);
_local2++;
}
}
_local4++;
}
}
}
Symbol 367 MovieClip [__Packages.org.cove.flade.util.Vector] Frame 0
class org.cove.flade.util.Vector
{
var x, y;
function Vector (px, py) {
x = px;
y = py;
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function plusNew(v) {
return(new org.cove.flade.util.Vector(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new org.cove.flade.util.Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new org.cove.flade.util.Vector(x * s, y * s));
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
function vertical(n) {
if (n > 0) {
var _local2 = new org.cove.flade.util.Vector(-y, x);
} else {
var _local2 = new org.cove.flade.util.Vector(y, -x);
}
return(_local2.normalize().mult(Math.abs(n)));
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function project(b) {
var _local5 = dot(b);
var _local4 = (b.x * b.x) + (b.y * b.y);
var _local3 = new org.cove.flade.util.Vector(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
}
Symbol 368 MovieClip [__Packages.org.cove.flade.primitives.Particle] Frame 0
class org.cove.flade.primitives.Particle
{
var statement, init, curr, prev, temp, extents, bmin, bmax, mtd, isVisible, dmc;
function Particle (posX, posY) {
statement = 0;
init = new org.cove.flade.util.Vector(posX, posY);
curr = new org.cove.flade.util.Vector(posX, posY);
prev = new org.cove.flade.util.Vector(posX, posY);
temp = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(0, 0);
bmin = 0;
bmax = 0;
mtd = new org.cove.flade.util.Vector(0, 0);
isVisible = true;
initializeContainer();
}
function initializeContainer() {
var _local2 = org.cove.flade.DynamicsEngine.clip.getNextHighestDepth();
var _local3 = "_" + _local2;
dmc = org.cove.flade.DynamicsEngine.clip.createEmptyMovieClip(_local3, _local2);
}
function setVisible(v) {
isVisible = v;
}
function verlet(sysObj) {
temp.x = curr.x;
temp.y = curr.y;
curr.x = curr.x + ((sysObj.coeffDamp * (curr.x - prev.x)) + sysObj.gravity.x);
curr.y = curr.y + ((sysObj.coeffDamp * (curr.y - prev.y)) + sysObj.gravity.y);
prev.x = temp.x;
prev.y = temp.y;
}
function pin() {
curr.x = init.x;
curr.y = init.y;
prev.x = init.x;
prev.y = init.y;
}
function setPos(px, py) {
curr.x = px;
curr.y = py;
prev.x = px;
prev.y = py;
}
function getCardXProjection() {
bmin = curr.x - extents.x;
bmax = curr.x + extents.x;
}
function getCardYProjection() {
bmin = curr.y - extents.y;
bmax = curr.y + extents.y;
}
function getAxisProjection(axis) {
var _local5 = new org.cove.flade.util.Vector(Math.abs(axis.x), Math.abs(axis.y));
var _local2 = curr.dot(axis);
var _local3 = extents.dot(_local5);
bmin = _local2 - _local3;
bmax = _local2 + _local3;
}
function setMTD(depthX, depthY, depthN, surfNormal) {
var _local4 = Math.abs(depthX);
var _local3 = Math.abs(depthY);
var _local2 = Math.abs(depthN);
if ((_local4 < _local3) && (_local4 < _local2)) {
mtd.setTo(depthX, 0);
} else if ((_local3 < _local4) && (_local3 < _local2)) {
mtd.setTo(0, depthY);
} else if ((_local2 < _local4) && (_local2 < _local3)) {
mtd = surfNormal.multNew(depthN);
}
}
function setXYMTD(depthX, depthY) {
var _local3 = Math.abs(depthX);
var _local2 = Math.abs(depthY);
if (_local3 < _local2) {
mtd.setTo(depthX, 0);
} else {
mtd.setTo(0, depthY);
}
}
function resolveCollision(normal, sysObj) {
var _local2 = curr.minusNew(prev);
var _local3 = normal.dot(_local2);
var _local8 = _local2.minusNew(normal.multNew(_local3));
var _local4 = _local8.multNew(sysObj.coeffFric);
var _local5 = normal.multNew(_local3 * sysObj.coeffRest);
var _local6 = _local5.plusNew(_local4);
var _local7 = _local2.minusNew(_local6);
curr.plus(mtd);
prev = curr.minusNew(_local7);
}
function paint() {
}
function remove() {
removeMovieClip(dmc);
}
function checkCollision(surface, sysObj) {
}
}
Symbol 369 MovieClip [__Packages.org.cove.flade.surfaces.Surface] Frame 0
interface org.cove.flade.surfaces.Surface
{
}
Symbol 370 MovieClip [__Packages.org.cove.flade.primitives.CircleParticle] Frame 0
class org.cove.flade.primitives.CircleParticle extends org.cove.flade.primitives.Particle
{
var radius, contactRadius, extents, closestPoint, isVisible, dmc, curr;
function CircleParticle (px, py, r) {
super(px, py);
radius = r;
contactRadius = r;
extents = new org.cove.flade.util.Vector(r, r);
closestPoint = new org.cove.flade.util.Vector(0, 0);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 6710886, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, curr.x, curr.y, radius);
}
}
function checkCollision(surface, sysObj) {
surface.resolveCircleCollision(this, sysObj);
}
}
Symbol 371 MovieClip [__Packages.org.cove.flade.graphics.Graphics] Frame 0
class org.cove.flade.graphics.Graphics
{
function Graphics () {
}
static function paintLine(dmc, x0, y0, x1, y1) {
dmc.moveTo(x0, y0);
dmc.lineTo(x1, y1);
}
static function paintCircle(dmc, x, y, r) {
var mtp8r = (0.414213562373095 * r);
var msp4r = (0.707106781186547 * r);
with (dmc) {
moveTo(x + r, y);
curveTo(r + x, mtp8r + y, msp4r + x, msp4r + y);
curveTo(mtp8r + x, r + y, x, r + y);
curveTo((-mtp8r) + x, r + y, (-msp4r) + x, msp4r + y);
curveTo((-r) + x, mtp8r + y, (-r) + x, y);
curveTo((-r) + x, (-mtp8r) + y, (-msp4r) + x, (-msp4r) + y);
curveTo((-mtp8r) + x, (-r) + y, x, (-r) + y);
curveTo(mtp8r + x, (-r) + y, msp4r + x, (-msp4r) + y);
curveTo(r + x, (-mtp8r) + y, r + x, y);
}
}
static function paintRectangle(dmc, x, y, w, h) {
var w2 = (w / 2);
var h2 = (h / 2);
with (dmc) {
moveTo(x - w2, y - h2);
lineTo(x + w2, y - h2);
lineTo(x + w2, y + h2);
lineTo(x - w2, y + h2);
lineTo(x - w2, y - h2);
}
}
}
Symbol 372 MovieClip [__Packages.org.cove.flade.primitives.RectangleParticle] Frame 0
class org.cove.flade.primitives.RectangleParticle extends org.cove.flade.primitives.Particle
{
var width, height, vertex, extents, isVisible, dmc, curr;
function RectangleParticle (px, py, w, h) {
super(px, py);
width = w;
height = h;
vertex = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(w / 2, h / 2);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 6710886, 100);
org.cove.flade.graphics.Graphics.paintRectangle(dmc, curr.x, curr.y, width, height);
}
}
function checkCollision(surface, sysObj) {
surface.resolveRectangleCollision(this, sysObj);
}
}
Symbol 373 MovieClip [__Packages.org.cove.flade.constraints.Constraint] Frame 0
interface org.cove.flade.constraints.Constraint
{
}
Symbol 374 MovieClip [__Packages.org.cove.flade.constraints.AngularConstraint] Frame 0
class org.cove.flade.constraints.AngularConstraint implements org.cove.flade.constraints.Constraint
{
var pA, pB, pC, lineA, lineB, pD, lineC, targetTheta, stiffness;
function AngularConstraint (p1, p2, p3) {
pA = p1.curr;
pB = p2.curr;
pC = p3.curr;
lineA = new org.cove.flade.util.Line(pA, pB);
lineB = new org.cove.flade.util.Line(pB, pC);
pD = new org.cove.flade.util.Vector(pB.x + 0, pB.y - 1);
lineC = new org.cove.flade.util.Line(pB, pD);
targetTheta = calcTheta(pA, pB, pC);
stiffness = 1;
}
function resolve() {
var _local6 = getCentroid();
lineC.p2.x = lineC.p1.x + 0;
lineC.p2.y = lineC.p1.y - 1;
var _local10 = pA.distance(pB);
var _local9 = pB.distance(pC);
var _local2 = calcTheta(pA, pB, pC);
var _local13 = calcTheta(pA, pB, pD);
var _local12 = calcTheta(pC, pB, pD);
if ((Math.abs(targetTheta) > 1.6) && ((targetTheta * _local2) < 0)) {
var _local7 = (targetTheta + _local2) / 2;
} else {
var _local7 = (targetTheta - _local2) / 2;
}
var _local11 = _local13 + (_local7 * stiffness);
var _local5 = _local12 - (_local7 * stiffness);
pA.x = (_local10 * Math.sin(_local11)) + pB.x;
pA.y = (_local10 * Math.cos(_local11)) + pB.y;
pC.x = (_local9 * Math.sin(_local5)) + pB.x;
pC.y = (_local9 * Math.cos(_local5)) + pB.y;
var _local8 = getCentroid();
var _local4 = _local8.x - _local6.x;
var _local3 = _local8.y - _local6.y;
pA.x = pA.x - _local4;
pA.y = pA.y - _local3;
pB.x = pB.x - _local4;
pB.y = pB.y - _local3;
pC.x = pC.x - _local4;
pC.y = pC.y - _local3;
}
function paint() {
}
function remove() {
}
function setStiffness(s) {
stiffness = s;
}
function calcTheta(pa, pb, pc) {
var _local2 = new org.cove.flade.util.Vector(pb.x - pa.x, pb.y - pa.y);
var _local3 = new org.cove.flade.util.Vector(pc.x - pb.x, pc.y - pb.y);
var _local4 = _local2.dot(_local3);
var _local5 = _local2.cross(_local3);
return(Math.atan2(_local5, _local4));
}
function getCentroid() {
var _local3 = ((pA.x + pB.x) + pC.x) / 3;
var _local2 = ((pA.y + pB.y) + pC.y) / 3;
return(new org.cove.flade.util.Vector(_local3, _local2));
}
}
Symbol 375 MovieClip [__Packages.org.cove.flade.util.Line] Frame 0
class org.cove.flade.util.Line
{
var p1, p2;
function Line (p1, p2) {
this.p1 = p1;
this.p2 = p2;
}
}
Symbol 376 MovieClip [__Packages.org.cove.flade.primitives.Wheel] Frame 0
class org.cove.flade.primitives.Wheel extends org.cove.flade.primitives.CircleParticle
{
var rp, coeffSlip, ro, isVisible, curr, dmc, radius, prev;
function Wheel (x, y, r) {
super(x, y, r);
rp = new org.cove.flade.primitives.RimParticle(r, 2);
coeffSlip = 0;
}
function verlet(sysObj) {
var _local4 = rp.curr.x;
var _local3 = rp.curr.y;
ro = Math.atan2(_local3, _local4) * 57;
rp.verlet(sysObj);
super.verlet(sysObj);
}
function resolveCollision(normal, sysObj) {
super.resolveCollision(normal, sysObj);
resolve(normal);
}
function paint() {
if (isVisible) {
var _local5 = rp.curr.x;
var _local4 = rp.curr.y;
var _local3 = curr.x;
var _local2 = curr.y;
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, _local3, _local2, radius);
dmc.lineStyle(0, 10066329, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, _local5 + _local3, _local4 + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, (-_local5) + _local3, (-_local4) + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, (-_local4) + _local3, _local5 + _local2, _local3, _local2);
org.cove.flade.graphics.Graphics.paintLine(dmc, _local4 + _local3, (-_local5) + _local2, _local3, _local2);
}
}
function setTraction(t) {
coeffSlip = t;
}
function resolve(n) {
var _local3 = -rp.curr.y;
var _local2 = rp.curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
var _local13 = _local3 * rp.speed;
var _local11 = _local2 * rp.speed;
var _local12 = curr.x - prev.x;
var _local10 = curr.y - prev.y;
var _local9 = _local12 + _local13;
var _local8 = _local10 + _local11;
var _local6 = ((-n.y) * _local9) + (n.x * _local8);
rp.prev.x = rp.curr.x - (_local6 * _local3);
rp.prev.y = rp.curr.y - (_local6 * _local2);
var _local7 = 1 - coeffSlip;
curr.x = curr.x + ((_local7 * rp.speed) * (-n.y));
curr.y = curr.y + ((_local7 * rp.speed) * n.x);
rp.speed = rp.speed * coeffSlip;
}
}
Symbol 377 MovieClip [__Packages.org.cove.flade.primitives.RimParticle] Frame 0
class org.cove.flade.primitives.RimParticle
{
var curr, prev, vs, speed, maxTorque, wr;
function RimParticle (r, mt) {
curr = new org.cove.flade.util.Vector(r, 0);
prev = new org.cove.flade.util.Vector(0, 0);
vs = 0;
speed = 0;
maxTorque = mt;
wr = r;
}
function verlet(sysObj) {
speed = Math.max(-maxTorque, Math.min(maxTorque, speed + vs));
var _local3 = -curr.y;
var _local2 = curr.x;
var _local4 = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
_local3 = _local3 / _local4;
_local2 = _local2 / _local4;
curr.x = curr.x + (speed * _local3);
curr.y = curr.y + (speed * _local2);
var _local10 = prev.x;
var _local9 = prev.y;
var _local8 = (prev.x = curr.x);
var _local7 = (prev.y = curr.y);
curr.x = curr.x + (sysObj.coeffDamp * (_local8 - _local10));
curr.y = curr.y + (sysObj.coeffDamp * (_local7 - _local9));
var _local6 = Math.sqrt((curr.x * curr.x) + (curr.y * curr.y));
var _local5 = (_local6 - wr) / _local6;
curr.x = curr.x - (curr.x * _local5);
curr.y = curr.y - (curr.y * _local5);
}
}
Symbol 378 MovieClip [__Packages.org.cove.flade.composites.SpringBox] Frame 0
class org.cove.flade.composites.SpringBox
{
var p0, p1, p2, p3, engine, width, height;
function SpringBox (px, py, w, h, e) {
p0 = new org.cove.flade.primitives.RectangleParticle(px - (w / 2), py - (h / 2), 1, 1);
p1 = new org.cove.flade.primitives.RectangleParticle(px + (w / 2), py - (h / 2), 1, 1);
p2 = new org.cove.flade.primitives.RectangleParticle(px + (w / 2), py + (h / 2), 1, 1);
p3 = new org.cove.flade.primitives.RectangleParticle(px - (w / 2), py + (h / 2), 1, 1);
engine = e;
width = w;
height = h;
engine.addPrimitive(p0);
engine.addPrimitive(p1);
engine.addPrimitive(p2);
engine.addPrimitive(p3);
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p1));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p2, p3));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p3, p0));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p3));
}
function reset(px, py) {
p0.setPos(px - (width / 2), py - (height / 2));
p1.setPos(px + (width / 2), py - (height / 2));
p2.setPos(px + (width / 2), py + (height / 2));
p3.setPos(px - (width / 2), py + (height / 2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p1));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p2, p3));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p3, p0));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p3));
}
}
Symbol 379 MovieClip [__Packages.org.cove.flade.constraints.SpringConstraint] Frame 0
class org.cove.flade.constraints.SpringConstraint implements org.cove.flade.constraints.Constraint
{
var p1, p2, restLength, stiffness, color, isVisible, dmc;
function SpringConstraint (p1, p2) {
this.p1 = p1;
this.p2 = p2;
restLength = p1.curr.distance(p2.curr);
stiffness = 0.5;
color = 10053171 /* 0x996633 */;
initializeContainer();
isVisible = true;
}
function initializeContainer() {
var _local2 = org.cove.flade.DynamicsEngine.clip.getNextHighestDepth();
var _local3 = "_" + _local2;
dmc = org.cove.flade.DynamicsEngine.clip.createEmptyMovieClip(_local3, _local2);
}
function resolve() {
var _local5 = p1.curr.minusNew(p2.curr);
var _local3 = p1.curr.distance(p2.curr);
var _local4 = (_local3 - restLength) / _local3;
var _local2 = _local5.mult(_local4 * stiffness);
p1.curr.minus(_local2);
p2.curr.plus(_local2);
}
function setRestLength(r) {
restLength = r;
}
function setStiffness(s) {
stiffness = s;
}
function setVisible(v) {
isVisible = v;
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, color, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.curr.x, p1.curr.y, p2.curr.x, p2.curr.y);
}
}
function remove() {
removeMovieClip(dmc);
}
}
Symbol 380 MovieClip [__Packages.org.cove.flade.surfaces.AbstractTile] Frame 0
class org.cove.flade.surfaces.AbstractTile
{
var t, center, verts, normal, isVisible, isActivated, dmc, minX, maxX, minY, maxY;
function AbstractTile (cx, cy) {
t = 0;
center = new org.cove.flade.util.Vector(cx, cy);
verts = new Array();
normal = new org.cove.flade.util.Vector(0, 0);
isVisible = true;
isActivated = true;
initializeContainer();
}
function initializeContainer() {
var _local2 = org.cove.flade.DynamicsEngine.clip.getNextHighestDepth();
var _local3 = "_" + _local2;
dmc = org.cove.flade.DynamicsEngine.clip.createEmptyMovieClip(_local3, _local2);
}
function setVisible(v) {
isVisible = v;
}
function setActiveState(a) {
isActivated = a;
}
function getActiveState() {
return(isActivated);
}
function createBoundingRect(rw, rh) {
var _local2 = center.y - (rh / 2);
var _local3 = center.y + (rh / 2);
var _local5 = center.x - (rw / 2);
var _local4 = center.x + (rw / 2);
verts.push(new org.cove.flade.util.Vector(_local4, _local3));
verts.push(new org.cove.flade.util.Vector(_local4, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local3));
setCardProjections();
}
function testIntervals(boxMin, boxMax, tileMin, tileMax) {
if (boxMax < tileMin) {
return(0);
}
if (tileMax < boxMin) {
return(0);
}
var _local2 = tileMax - boxMin;
var _local1 = tileMin - boxMax;
if (Math.abs(_local2) < Math.abs(_local1)) {
return(_local2);
}
return(_local1);
}
function setCardProjections() {
getCardXProjection();
getCardYProjection();
}
function getCardXProjection() {
minX = verts[0].x;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x < minX) {
minX = verts[_local2].x;
}
_local2++;
}
maxX = verts[0].x;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x > maxX) {
maxX = verts[_local2].x;
}
_local2++;
}
}
function getCardYProjection() {
minY = verts[0].y;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y < minY) {
minY = verts[_local2].y;
}
_local2++;
}
maxY = verts[0].y;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y > maxY) {
maxY = verts[_local2].y;
}
_local2++;
}
}
function remove() {
removeMovieClip(dmc);
}
function onContact() {
}
function balltg(p, b) {
if ((p.name == "wa") || (p.name == "wb")) {
return(1);
}
if (p.name == "ball") {
if (b == "hole") {
return(2);
}
if (b == "tan_x") {
p.prev.x = p.prev.x + t;
} else if (b == "tan_y") {
p.prev.y = p.prev.y + t;
} else if (b == "tan_xy") {
p.prev.x = p.prev.x + ((center.x - p.prev.x) * t);
p.prev.y = p.prev.y + ((center.y - p.prev.y) * t);
} else if (b == "t_x") {
p.prev.x = p.prev.x + ((p.prev.x - p.curr.x) * t);
} else if (b == "t_y") {
p.prev.y = p.prev.y + ((p.prev.y - p.curr.y) * t);
} else if (b == "t_xy") {
p.prev.x = p.prev.x + ((p.prev.x - p.curr.x) * t);
p.prev.y = p.prev.y + ((p.prev.y - p.curr.y) * t);
}
if (b.charAt(0) == "t") {
}
return(1);
}
}
}
Symbol 381 MovieClip [__Packages.org.cove.flade.surfaces.RectangleTile] Frame 0
class org.cove.flade.surfaces.RectangleTile extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var rectWidth, rectHeight, createBoundingRect, isVisible, dmc, center, normal, balltg, name, onContact, testIntervals, minX, maxX, minY, maxY;
function RectangleTile (cx, cy, rw, rh) {
super(cx, cy);
rectWidth = rw;
rectHeight = rh;
createBoundingRect(rw, rh);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintRectangle(dmc, center.x, center.y, rectWidth, rectHeight);
}
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
p.resolveCollision(normal, sysObj);
p.statement = balltg(p, name);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function isCircleColliding(p) {
p.getCardXProjection();
var _local6 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local6 == 0) {
return(false);
}
p.getCardYProjection();
var _local5 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local5 == 0) {
return(false);
}
var _local11 = Math.abs(_local6) < p.radius;
var _local12 = Math.abs(_local5) < p.radius;
if (_local11 && (_local12)) {
var _local10 = center.x + (sign(p.curr.x - center.x) * (rectWidth / 2));
var _local9 = center.y + (sign(p.curr.y - center.y) * (rectHeight / 2));
var _local4 = p.curr.x - _local10;
var _local3 = p.curr.y - _local9;
var _local8 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local7 = p.radius - _local8;
if (_local7 > 0) {
_local4 = _local4 / _local8;
_local3 = _local3 / _local8;
p.mtd.setTo(_local4 * _local7, _local3 * _local7);
normal.setTo(_local4, _local3);
return(true);
}
return(false);
}
p.setXYMTD(_local6, _local5);
normal.setTo(p.mtd.x / Math.abs(_local6), p.mtd.y / Math.abs(_local5));
return(true);
}
function isRectangleColliding(p) {
p.getCardXProjection();
var _local4 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local4 == 0) {
return(false);
}
p.getCardYProjection();
var _local3 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local3 == 0) {
return(false);
}
p.setXYMTD(_local4, _local3);
normal.setTo(p.mtd.x / Math.abs(_local4), p.mtd.y / Math.abs(_local3));
return(true);
}
function sign(val) {
if (val < 0) {
return(-1);
}
if (val > 0) {
return(1);
}
}
}
Symbol 382 MovieClip [__Packages.org.cove.flade.surfaces.LineSurface] Frame 0
class org.cove.flade.surfaces.LineSurface extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var p1, p2, collNormal, isVisible, dmc, faceNormal, balltg, name, onContact, collisionDepth, testIntervals, minY, maxY, minX, maxX, sideNormal, minS, maxS, minF, maxF, rise, run, sign, slope, invB, setCardProjections, p3, p4, verts;
function LineSurface (p1x, p1y, p2x, p2y) {
super(0, 0);
p1 = new org.cove.flade.util.Vector(p1x, p1y);
p2 = new org.cove.flade.util.Vector(p2x, p2y);
calcFaceNormal();
collNormal = new org.cove.flade.util.Vector(0, 0);
setCollisionDepth(50);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.x, p1.y, p2.x, p2.y);
}
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
p.resolveCollision(faceNormal, sysObj);
p.statement = balltg(p, name);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(collNormal, sysObj);
}
}
function setCollisionDepth(d) {
collisionDepth = d;
precalculate();
}
function isCircleColliding(p) {
findClosestPoint(p.curr, p.closestPoint);
var _local3 = p.closestPoint.minusNew(p.curr);
_local3.normalize();
if (inequality(p.curr)) {
var _local5 = Math.abs(_local3.x);
_local3.x = ((faceNormal.x < 0) ? (_local5) : (-_local5));
_local3.y = Math.abs(_local3.y);
}
var _local4 = p.curr.plusNew(_local3.mult(p.radius));
if (segmentInequality(_local4)) {
if (_local4.distance(p.closestPoint) > collisionDepth) {
return(false);
}
var _local7 = _local4.x - p.closestPoint.x;
var _local6 = _local4.y - p.closestPoint.y;
p.mtd.setTo(-_local7, -_local6);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
p.getCardXProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local8 == 0) {
return(false);
}
p.getAxisProjection(sideNormal);
var _local10 = testIntervals(p.bmin, p.bmax, minS, maxS);
if (_local10 == 0) {
return(false);
}
p.getAxisProjection(faceNormal);
var _local9 = testIntervals(p.bmin, p.bmax, minF, maxF);
if (_local9 == 0) {
return(false);
}
var _local4 = Math.abs(_local8);
var _local3 = Math.abs(_local7);
var _local6 = Math.abs(_local10);
var _local5 = Math.abs(_local9);
if (((_local4 <= _local3) && (_local4 <= _local6)) && (_local4 <= _local5)) {
p.mtd.setTo(_local8, 0);
collNormal.setTo(p.mtd.x / _local4, 0);
} else if (((_local3 <= _local4) && (_local3 <= _local6)) && (_local3 <= _local5)) {
p.mtd.setTo(0, _local7);
collNormal.setTo(0, p.mtd.y / _local3);
} else if (((_local5 <= _local4) && (_local5 <= _local3)) && (_local5 <= _local6)) {
p.mtd = faceNormal.multNew(_local9);
collNormal.copy(faceNormal);
} else if (((_local6 <= _local4) && (_local6 <= _local3)) && (_local6 <= _local5)) {
p.mtd = sideNormal.multNew(_local10);
collNormal.copy(sideNormal);
}
return(true);
}
function precalculate() {
rise = p2.y - p1.y;
run = p2.x - p1.x;
sign = ((run >= 0) ? 1 : -1);
slope = rise / run;
invB = 1 / ((run * run) + (rise * rise));
createRectangle();
calcSideNormal();
setCardProjections();
setAxisProjections();
}
function calcFaceNormal() {
faceNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p2.x - p1.x;
var _local2 = p2.y - p1.y;
faceNormal.setTo(_local2, -_local3);
faceNormal.normalize();
}
function segmentInequality(toPoint) {
var _local2 = findU(toPoint);
var _local3 = inequality(toPoint);
return(((_local2 >= 0) && (_local2 <= 1)) && (_local3));
}
function inequality(toPoint) {
var _local2 = ((slope * (toPoint.x - p1.x)) + (p1.y - toPoint.y)) * sign;
return(_local2 <= 0);
}
function findClosestPoint(toPoint, returnVect) {
var _local2 = findU(toPoint);
if (_local2 <= 0) {
returnVect.copy(p1);
return(undefined);
}
if (_local2 >= 1) {
returnVect.copy(p2);
return(undefined);
}
var _local5 = p1.x + (_local2 * (p2.x - p1.x));
var _local4 = p1.y + (_local2 * (p2.y - p1.y));
returnVect.setTo(_local5, _local4);
}
function findU(p) {
var _local2 = ((p.x - p1.x) * run) + ((p.y - p1.y) * rise);
return(_local2 * invB);
}
function createRectangle() {
var _local5 = p2.x + ((-faceNormal.x) * collisionDepth);
var _local3 = p2.y + ((-faceNormal.y) * collisionDepth);
var _local4 = p1.x + ((-faceNormal.x) * collisionDepth);
var _local2 = p1.y + ((-faceNormal.y) * collisionDepth);
p3 = new org.cove.flade.util.Vector(_local5, _local3);
p4 = new org.cove.flade.util.Vector(_local4, _local2);
verts.push(p1);
verts.push(p2);
verts.push(p3);
verts.push(p4);
}
function setAxisProjections() {
var _local2;
minF = p2.dot(faceNormal);
maxF = p3.dot(faceNormal);
if (minF > maxF) {
_local2 = minF;
minF = maxF;
maxF = _local2;
}
minS = p1.dot(sideNormal);
maxS = p2.dot(sideNormal);
if (minS > maxS) {
_local2 = minS;
minS = maxS;
maxS = _local2;
}
}
function calcSideNormal() {
sideNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p3.x - p2.x;
var _local2 = p3.y - p2.y;
sideNormal.setTo(_local2, -_local3);
sideNormal.normalize();
}
}
Symbol 383 MovieClip [__Packages.org.cove.flade.surfaces.CircleTile] Frame 0
class org.cove.flade.surfaces.CircleTile extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var createBoundingRect, radius, isVisible, dmc, center, normal, balltg, name, onContact, testIntervals, minX, maxX, minY, maxY;
function CircleTile (cx, cy, r) {
super(cx, cy);
createBoundingRect(r * 2, r * 2);
radius = r;
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, center.x, center.y, radius);
}
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
p.resolveCollision(normal, sysObj);
p.statement = balltg(p, name);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function isCircleColliding(p) {
p.getCardXProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local8 == 0) {
return(false);
}
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
var _local4 = center.x - p.curr.x;
var _local3 = center.y - p.curr.y;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local6 = (p.radius + radius) - _local5;
if (_local6 > 0) {
_local4 = _local4 / _local5;
_local3 = _local3 / _local5;
p.mtd.setTo((-_local4) * _local6, (-_local3) * _local6);
normal.setTo(-_local4, -_local3);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardXProjection();
var _local6 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local6 == 0) {
return(false);
}
p.getCardYProjection();
var _local5 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local5 == 0) {
return(false);
}
var _local11 = Math.abs(_local6) < radius;
var _local12 = Math.abs(_local5) < radius;
if (_local11 && (_local12)) {
var _local10 = p.curr.x + (sign(center.x - p.curr.x) * (p.width / 2));
var _local9 = p.curr.y + (sign(center.y - p.curr.y) * (p.height / 2));
p.vertex.setTo(_local10, _local9);
var _local4 = p.vertex.x - center.x;
var _local3 = p.vertex.y - center.y;
var _local8 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local7 = radius - _local8;
if (_local7 > 0) {
_local4 = _local4 / _local8;
_local3 = _local3 / _local8;
p.mtd.setTo(_local4 * _local7, _local3 * _local7);
normal.setTo(_local4, _local3);
return(true);
}
return(false);
}
p.setXYMTD(_local6, _local5);
normal.setTo(p.mtd.x / Math.abs(_local6), p.mtd.y / Math.abs(_local5));
return(true);
}
function sign(val) {
if (val < 0) {
return(-1);
}
if (val > 0) {
return(1);
}
}
}
Symbol 41 MovieClip Frame 146
_root.nextFrame();
Symbol 46 Button
on (press) {
gotoAndStop ("submit");
}
Symbol 67 Button
on (release) {
viewHighscore();
}
Symbol 68 MovieClip Frame 1
stop();
_global.game_name = _game_name;
var highscore = eval (score_var);
_global.viewHighscore = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + game_name, "_blank");
};
if (highscore == 0) {
this._visible = false;
}
trace(game_name);
trace(highscore);
trace("http://www.freeworldgroup.com/score/index.asp?game=" + game_name);
Symbol 68 MovieClip Frame 3
function sendData() {
send_var.game = game_name;
send_var.score = highscore;
send_var.name = name_txt.text;
if (send_var.name == "") {
send_var.name = "guest" + int(Math.random() * 1000);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
gotoAndStop ("sending");
}
stop();
gold_txt.text = highscore;
gold_txt.backgroundColor = 16777215 /* 0xFFFFFF */;
name_txt.backgroundColor = 16777215 /* 0xFFFFFF */;
send_var = new LoadVars();
load_var = new LoadVars();
ok_btn.onRelease = sendData;
load_var.onLoad = function () {
gotoAndStop ("done");
};
Instance of Symbol 53 MovieClip in Symbol 68 MovieClip Frame 3
on (press) {
_parent.gotoAndStop(2);
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 76 MovieClip [water] Frame 1
stop();
Symbol 78 MovieClip [ballsd] Frame 15
removeMovieClip(this);
Symbol 79 Button
on (press) {
gotoAndStop (5);
}
Symbol 80 Button
on (press) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 81 Button
on (press) {
getURL ("http://www.ifungames.com", "_blank");
}
Symbol 82 Button
on (press) {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
}
Symbol 83 Button
on (press) {
viewHighscore();
}
Symbol 94 MovieClip Frame 116
stop();
Symbol 100 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 103 Button
on (release) {
gotoAndStop (3);
}
Symbol 105 Button
on (release) {
gotoAndStop (2);
}
Symbol 107 Button
on (press) {
gotoAndStop (1);
}
Symbol 130 MovieClip Frame 1
back._visible = false;
Symbol 139 MovieClip Frame 1
function time() {
if ((!down) && (scrollBar._y < scrollBar._bottom)) {
scrollBar._y = scrollBar._y + 0.3;
}
}
var _maskY = int(scrollMask._y);
var _maskH = int(scrollMask._height);
var _barH = int(scrollBar._height);
var _upH = int(scrollUp._height);
var _downH = int(scrollDown._height);
var top = (_maskY + _upH);
var bottom = (((_maskY + _maskH) - _barH) - _downH);
var id = setInterval(this, "time", 100);
scrollBar._top = top;
scrollBar._bottom = bottom;
scrollBar._y = _maskY + _upH;
scrollBar._x = Math.floor(scrollMask._width + (scrollUp._width / 2)) - Math.floor(scrollBar._width / 2);
left = int(scrollBar._x);
scrollLine._x = Math.floor(scrollMask._width + (scrollUp._width / 2));
scrollLine._y = _maskY;
scrollLine._height = _maskH;
scrollUp._x = scrollMask._width;
scrollUp._y = _maskY;
scrollDown._x = scrollMask._width;
scrollDown._y = (_maskY + _maskH) - _downH;
var speed = 6;
var nSpeedLow = 1;
var nSpeedHigh = 3;
dis = ((scrollContent._height - _maskH) + 10) / (bottom - top);
contentStartY = scrollContent._y;
var down = false;
scrollContent._y = bottom;
scrollBar.onPress = function () {
scrollBar.startDrag(0, left, top, left, bottom);
down = true;
};
scrollBar.onRelease = (scrollBar.onReleaseOutside = function () {
scrollBar.stopDrag();
down = false;
});
this.onEnterFrame = function () {
disMove = (scrollBar._y - top) * dis;
scrollContent.yMove = contentStartY - disMove;
scrollContent._y = scrollContent._y + ((scrollContent.yMove - scrollContent._y) / speed);
};
scrollBar.onEnterFrame = function () {
if (this.d && (this._y < this._bottom)) {
this._y = this._y + this.s;
} else if (this.u && (this._y > this._top)) {
this._y = this._y - this.s;
}
};
scrollDown.onRollOver = function () {
scrollBar.d = true;
scrollBar.s = nSpeedLow;
down = true;
};
scrollDown.onPress = function () {
scrollBar.d = true;
scrollBar.s = nSpeedHigh;
down = true;
};
scrollDown.onRelease = function () {
scrollBar.d = true;
scrollBar.s = nSpeedLow;
down = true;
};
scrollDown.onRollOut = function () {
scrollBar.d = false;
scrollBar.s = 0;
down = false;
};
scrollDown.onReleaseOutside = function () {
scrollBar.d = false;
scrollBar.s = 0;
down = false;
};
scrollUp.onRollOver = function () {
scrollBar.u = true;
scrollBar.s = nSpeedLow;
down = true;
};
scrollUp.onPress = function () {
scrollBar.u = true;
scrollBar.s = nSpeedHigh;
down = true;
};
scrollUp.onRelease = function () {
scrollBar.u = true;
scrollBar.s = nSpeedLow;
down = true;
};
scrollUp.onRollOut = function () {
scrollBar.u = false;
scrollBar.s = 0;
down = false;
};
scrollUp.onReleaseOutside = function () {
scrollBar.u = false;
scrollBar.s = 0;
down = false;
};
Symbol 143 Button
on (release) {
if (!qt._visible) {
qt._visible = true;
} else {
qt._visible = false;
}
}
Symbol 144 Button
on (press) {
if (this.hit.getVolume() == 0) {
this.hit.setVolume(100);
ss._visible = false;
} else {
this.hit.setVolume(0);
ss._visible = true;
}
}
Symbol 145 Button
on (press) {
if (this._parent.background.sd.getVolume() == 0) {
this._parent.background.sd.setVolume(100);
ms._visible = false;
} else {
this._parent.background.sd.setVolume(0);
ms._visible = true;
}
}
Symbol 146 Button
on (release) {
if (!menu._visible) {
menu._visible = true;
} else {
menu._visible = false;
}
}
Symbol 153 Button
on (press) {
_root._quality = "BEST";
_visible = false;
}
Symbol 154 Button
on (press) {
_root._quality = "HIGH";
_visible = false;
}
Symbol 157 Button
on (press) {
_root._quality = "MEDIUM";
_visible = false;
}
Symbol 159 Button
on (press) {
_root._quality = "LOW";
_visible = false;
}
Symbol 161 MovieClip Frame 1
_visible = false;
Symbol 162 Button
on (release) {
_visible = false;
}
Symbol 163 Button
on (release) {
_parent.gotoAndStop(1);
}
Symbol 166 MovieClip Frame 1
_visible = false;
Symbol 173 MovieClip Frame 1
top = vol._y;
left = vol._x;
right = vol._x;
bottom = vol._y + 100;
_parent.level = 100;
_parent.dragging = false;
vol.onPress = function () {
startDrag ("vol", false, left, top, right, bottom);
_parent.dragging = true;
};
_root.onMouseUp = function () {
stopDrag();
_parent.dragging = false;
};
this.onEnterFrame = function () {
if (_parent.dragging) {
_parent.level = 100 - (vol._y - top);
} else if (_parent.level > 100) {
_parent.level = 100;
} else if (_parent.level < 0) {
_parent.level = 0;
} else {
vol._y = ((-_parent.level) + 100) + top;
}
value.text = Math.round(_parent.level) + " %";
};
Symbol 181 Button
on (release) {
gotoAndStop (1);
}
Symbol 222 MovieClip Frame 1
stop();
Symbol 224 MovieClip [froundpage] Frame 1
var hit = new Sound(this);
hit.attachSound("hit");
var shrow = new Sound(this);
shrow.attachSound("shrow");
var getball = new Sound(this);
getball.attachSound("getball");
removeMovieClip(_parent.game);
_alpha = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
} else {
_alpha = 100;
}
};
stop();
Instance of Symbol 2 MovieClip in Symbol 224 MovieClip [froundpage] Frame 1
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 224 MovieClip [froundpage] Frame 2
_alpha = 0;
Symbol 224 MovieClip [froundpage] Frame 3
_alpha = 0;
Instance of Symbol 2 MovieClip in Symbol 224 MovieClip [froundpage] Frame 3
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Symbol 224 MovieClip [froundpage] Frame 5
_parent.createEmptyMovieClip("game", 100);
CarExample.enter(_parent.game);
Instance of Symbol 2 MovieClip in Symbol 224 MovieClip [froundpage] Frame 5
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}
Instance of Symbol 175 MovieClip "ms" in Symbol 224 MovieClip [froundpage] Frame 5
onClipEvent (load) {
if (_parent._parent.background.sd.getVolume() == 0) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 175 MovieClip "ss" in Symbol 224 MovieClip [froundpage] Frame 5
onClipEvent (load) {
if (_parent.hit.getVolume() == 0) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 68 MovieClip in Symbol 224 MovieClip [froundpage] Frame 10
//component parameters
onClipEvent (construct) {
_game_name = "golf_drive";
score_var = "_parent.score";
}
Symbol 232 MovieClip [background] Frame 1
sd.stop();
var sd = new Sound(this);
sd.attachSound("back");
sd.start(0, 1000);
stop();
Symbol 240 MovieClip Frame 1
_rotation = (Math.random() * 360);
Symbol 253 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 1
stop();
Symbol 273 MovieClip [ground] Frame 1
cacheAsBitmap = true;
stop();
Symbol 278 MovieClip [gan] Frame 1
stop();
Symbol 286 MovieClip Frame 1
_visible = false;
stop();
Symbol 362 MovieClip Frame 85
_root.nextFrame();
Symbol 363 Button
on (release) {
getURL ("http://www.freeworldgroup.com/", "_blank");
}