Frame 1
var MochiAd = {getVersion:function () {
return("2.3");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {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();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
bar._x = 10;
bar._y = h - 20;
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
_local2 = Math.max(_local1.last_pcnt, _local2);
_local1.last_pcnt = _local2;
_inside._xscale = _local2;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, _allowDomains:function (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);
}, _loadCommunicator:function (options) {
var _local2 = options;
var _local3 = arguments;
var DEFAULTS = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
_local2 = MochiAd._parseOptions(_local2, DEFAULTS);
_local2.swfv = _local2.clip.getSWFVersion() || 6;
_local2.mav = MochiAd.getVersion();
var clip = _local2.clip;
var clipname = ("_mochiad_com_" + _local2.id);
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip[clipname]) {
return(clip[clipname].lc);
}
var server = (_local2.com_server + _local2.id);
MochiAd._allowDomains(server);
delete _local2.id;
delete _local2.com_server;
var depth = _local2.depth;
delete _local2.depth;
var mc = clip.createEmptyMovieClip(clipname, depth);
var lv = mc.createEmptyMovieClip("_mochiad_com", 1);
for (var k in _local2) {
lv[k] = _local2[k];
}
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lc._id = 0;
lc._queue = [];
lc.rpcResult = function (cb_arg) {
var cb = parseInt(cb_arg);
var _local2 = this._callbacks[cb];
if (!_local2) {
} else {
delete this._callbacks[cb];
var _local3 = [];
var _local1 = 2;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
_local1 = 1;
while (_local1 < arguments.length) {
_local3.push(arguments[_local1]);
_local1++;
}
var method = _local2[1];
var obj = _local2[0];
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method) {
method.apply(obj, _local3);
}
}
};
lc._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local3 = this._queue;
delete this._queue;
var ds = this.doSend;
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1];
ds.apply(this, _local2);
_local1++;
}
};
lc.doSend = function (args, cbobj, cbfn) {
var _local2 = arguments;
if (this._endpoint == null) {
var _local3 = [];
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(_local2[_local1]);
_local1++;
}
this._queue.push(_local3);
} else {
this._id = this._id + 1;
var id = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[id] = [cbobj, cbfn];
var slc = new LocalConnection();
var ss = slc.send(this._endpoint, "rpc", id, args);
}
};
lc._callbacks = {};
lc._callbacks[0] = [lc, "_didConnect"];
lv.st = getTimer();
lv.loadMovie(server + ".swf", "POST");
return(lc);
}, fetchHighScores:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["fetchHighScores", _local2];
_local1.doSend(["fetchHighScores", _local2], callbackObj, callbackMethod);
return(true);
}, sendHighScore:function (options, callbackObj, callbackMethod) {
var _local2 = options;
var _local1 = MochiAd._loadCommunicator({id:_local2.id});
if (!_local1) {
return(false);
}
var fncall = ["sendHighScore", _local2];
_local1.doSend(["sendHighScore", _local2], callbackObj, callbackMethod);
return(true);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[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]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, _:null};
MochiAd.showPreGameAd({id:"d8bdb0310f641600", res:"500x550"});
stop();
Instance of Symbol 23 MovieClip "melding" in Frame 1
onClipEvent (enterFrame) {
this.stop();
}
Instance of Symbol 27 MovieClip "echt" in Frame 1
onClipEvent (enterFrame) {
this.stop();
}
Frame 2
_root.new_player = 0;
stop();
Instance of Symbol 83 MovieClip "preloader" in Frame 2
onClipEvent (load) {
_root.counter = 0;
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int((loaded / total) * 100);
text = percent + "%";
if (loaded == total) {
_root.preloader.pre_txt._visible = false;
_root.preloader.text = "";
_root.preloader.cirkel._visible = false;
_root.counter++;
if (_root.counter == 30) {
_root.preloader.play();
}
}
}
Frame 3
function init() {
var _local1 = _root;
getal = 0;
_local1.ballstoplay = 10;
_local1.score = 0;
_local1.speel_echt = 0;
_local1.melding._visible = true;
_local1.echt._visible = false;
_local1.melding.inside.oefentekst = "";
_local1.echt.inside.tekst = "";
_local1.oefenballen = 5;
_local1.ballen = 10;
nummertekst = Number(_local1.oefenballen);
echttekst = Number(_local1.ballen);
if (_local1.oefenballen >= 2) {
_local1.melding.inside.oefentekst = ("Je hebt nog " + nummertekst) + " oefenballen!";
} else {
_local1.melding.inside.oefentekst = ("Je hebt nog " + nummertekst) + " oefenbal!";
}
if (_local1.ballen >= 2) {
_local1.echt.inside.tekst = ("Nog " + echttekst) + " ballen te gaan!";
} else {
_local1.echt.inside.tekst = "Dit is je laatste bal!";
}
}
function check_ballen() {
var _local1 = _root;
_local1.oefenknop._visible = true;
_local1.oefenballen = _local1.oefenballen - 1;
if (_local1.oefenballen <= 0) {
_local1.oefenknop._visible = false;
_local1.speel_echt = 1;
_local1.oefenballen = 0;
_local1.ballen = _local1.ballen - 1;
_local1.ballstoplay = _local1.ballen;
ballen_ani.play();
_local1.melding._visible = false;
_local1.echt._visible = true;
}
}
function check_score() {
var _local1 = _root;
if (_local1.speel_echt == 1) {
_local1.score = _local1.score + 250;
}
}
function check_visible() {
var _local1 = _root;
if (_local1.speel_echt == 1) {
_local1.oefenknop._visible = false;
} else {
_local1.oefenknop._visible = true;
}
}
init();
buttonclick = new Sound(this);
buttonclick.attachSound("buttonclick");
ga_echt = new Sound(this);
ga_echt.attachSound("ga_echt");
var putsinarow = 0;
var bestsofar = 0;
_root.prestart = 1;
user = new LoadVars();
userlogin = new LoadVars();
userlogin.onLoad = function () {
var _local1 = _root;
var _local2 = this;
trace("not Found hee");
trace(_local2.toString());
if (_local2.success) {
_local1.success = _local2.success;
if (_local2.success == 1) {
_local1.new_player = 1;
_local1.gotoAndStop("uitleg");
}
if (_local2.success == 2) {
_local1.new_player = 0;
_local1.gotoAndStop("uitleg");
}
if (_local2.success == 3) {
trace("succes 3");
msgnum = _local2.msg;
if (_local1.msgnum == 1) {
_local1.errormsg = "Geen e-mailadres ingevuld";
} else if (_local1.msgnum == 2) {
_local1.errormsg = "Ongeldig e-mailadres ingevuld";
} else if (_local1.msgnum == 3) {
_local1.errormsg = "Geen gebruikersnaam ingevuld";
} else if (_local1.msgnum == 4) {
_local1.errormsg = "Meerdere spelers met dit e-mailadres gevonden";
} else if (_local1.msgnum == 5) {
_local1.errormsg = "Onvoldoende speelcredits, nodig een vriend(in) uit";
_local1.new_player = 1;
vriebut._visible = true;
} else if (_local1.msgnum == 6) {
_local1.errormsg = "Fout tijdens aanmelden";
}
}
} else {
_local1.success = _local2.toString();
}
};
_root.f_email = "";
_root.f_naam = "";
label_01 = "vul hier je naam in";
if ((_root.gebruikersnaam == "") || (_root.gebruikersnaam == undefined)) {
_root.gebruikersnaam = label_01;
}
label_02 = "vul hier je e-mailadres in";
if ((_root.email == "") || (_root.email == undefined)) {
_root.email = label_02;
} else {
trace(_root.email);
}
this.onEnterFrame = function () {
var _local1 = _root;
var _local2 = this;
_local2.hiertypen1.onSetFocus = function () {
if (_root.gebruikersnaam == label_01) {
_root.gebruikersnaam = "";
}
};
_local2.hiertypen1.onKillFocus = function () {
if (_root.gebruikersnaam == "") {
_root.gebruikersnaam = label_01;
}
};
_local2.hiertypen2.onSetFocus = function () {
if (_root.email == label_02) {
_root.email = "";
}
};
_local2.hiertypen2.onKillFocus = function () {
if (_root.email == "") {
_root.email = label_02;
}
};
};
trace(new_player);
if (_root.new_player == 0) {
vriebut._visible = false;
}
stop();
Frame 4
stop();
Frame 21
var theslope;
var direction;
var power;
var speed = 6;
var hole;
var slope;
var slope_ran;
var ypos = 318.5;
var xpos;
var ballxsize = 40;
var ballysize = 40;
var oldy;
var oldx;
var falling = "no";
if (_root.ballen == 0) {
gotoAndStop ("submitscore");
}
Frame 22
ypos = 50 - _root.ball._y;
falling = "no";
slope_ran = Math.random();
if (slope_ran < 0.5) {
slope = Math.round((Math.random() - 1) * 350) / 100;
_root.slopearrow.gotoAndStop("left");
theslope = -2 * slope;
}
if (slope_ran >= 0.5) {
slope = Math.round(Math.random() * 350) / 100;
_root.slopearrow.gotoAndStop("right");
theslope = 2 * slope;
}
_root.grass._rotation = slope;
stop();
Instance of Symbol 23 MovieClip "melding" in Frame 22
onClipEvent (load) {
if (_root.oefenballen <= 0) {
this._visible = false;
}
}
Instance of Symbol 27 MovieClip "echt" in Frame 22
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.oefenballen <= 0) {
this._visible = true;
}
}
Frame 23
_root.melding.gotoAndStop(71);
_root.echt.gotoAndStop(71);
_root.ball._y = _root.ball._y - speed;
if (0 < speed) {
speed = speed - 0.058;
} else {
speed = 0;
gotoAndPlay (33);
}
ypos = 450 - _root.ball._y;
xpos = _root.ball._x;
if (_root.ball._y == oldy) {
_root.ball.gotoAndStop("stopped");
} else {
if (falling == "no") {
_root.ball._x = (250 + ((ypos * direction) / 236)) + slope;
}
if (falling == "yes") {
_root.ball._x = 250;
}
}
slope = slope + (slope / (15 + ((1 - (speed / 5)) * 14)));
if (_root.ball._y < oldy) {
_root.ball._xscale = ballxsize - 1;
_root.ball._yscale = ballysize - 1;
ballxsize = ((_root.ball._y / 450) * 40) - 2;
ballysize = ((_root.ball._y / 450) * 40) - 2;
}
Frame 24
oldy = _root.ball._y;
gotoAndPlay (23);
Frame 27
_root.check_visible();
Frame 32
stop();
Frame 37
_root.check_visible();
_root.slopearrow.gotoAndStop("none");
if (bestsofar < putsinarow) {
bestsofar = putsinarow;
}
putsinarow = 0;
stop();
Frame 38
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 2
stop();
Symbol 17 MovieClip Frame 3
stop();
Symbol 17 MovieClip Frame 4
stop();
Symbol 17 MovieClip Frame 5
stop();
Symbol 17 MovieClip Frame 6
stop();
Symbol 17 MovieClip Frame 7
stop();
Symbol 17 MovieClip Frame 8
stop();
Symbol 17 MovieClip Frame 9
stop();
Symbol 17 MovieClip Frame 10
stop();
Symbol 23 MovieClip Frame 1
if (_root.oefenballen >= 2) {
_root.melding.inside.oefentekst = ("You have " + _root.nummertekst) + " practice golfballs!";
} else {
_root.melding.inside.oefentekst = ("You have " + _root.nummertekst) + " practice golfball!";
}
Symbol 23 MovieClip Frame 71
stop();
Symbol 27 MovieClip Frame 1
if (_root.ballen >= 2) {
_root.echt.inside.tekst = ("You have " + _root.echttekst) + " golfballs left!";
} else {
_root.echt.inside.tekst = "This is your last golfball!";
}
Symbol 27 MovieClip Frame 71
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 61 Button
on (release) {
buttonclick.start(0, 1);
getURL ("http://www.ashagames.nl", "_blank");
}
Symbol 68 MovieClip Frame 1
var i = 1;
while (i < 80) {
duplicateMovieClip ("circle", "circle" + i, i);
setProperty("circle" + i, _rotation , i * 4.5);
setProperty("circle" + i, _alpha , 80 - i);
i++;
}
this.onEnterFrame = function () {
this._rotation = this._rotation - 17;
};
Symbol 76 Button
on (press) {
getURL ("http://www.ashagames.nl", "_blank");
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 72
_root.play();
Symbol 90 Button
on (release) {
buttonclick.start(0, 1);
getURL ("http://www.ashagames.nl", "_blank");
}
Symbol 94 Button
on (press) {
buttonclick.start(0, 1);
_root.init();
gotoAndPlay (21);
}
Symbol 101 Button
on (press) {
buttonclick.start(0, 1);
gotoAndPlay (21);
}
Symbol 105 Button
on (press) {
buttonclick.start(0, 1);
gotoAndPlay ("uitleg");
}
Symbol 112 MovieClip Frame 1
if (this.hitTest("_root.ball.ballhit")) {
_root.falling = "yes";
_parent.gotoAndPlay("fall");
_root.ball._y = this._y - 5;
_root.ball.gotoAndPlay("falling");
gotoAndPlay (3);
}
Symbol 112 MovieClip Frame 2
gotoAndPlay (1);
Symbol 112 MovieClip Frame 3
_root.check_score();
Symbol 112 MovieClip Frame 15
gotoAndPlay (1);
Symbol 119 MovieClip Frame 1
getal = Number(random(50)) + 5;
if (_root.speel_echt == 1) {
_root.score = _root.score + getal;
}
Symbol 119 MovieClip Frame 2
stop();
Symbol 120 MovieClip Frame 29
stop();
Symbol 121 MovieClip Frame 1
if (this.hitTest("_root.ball.ballhit")) {
this.gotoAndStop(3);
trace("hit");
}
Symbol 121 MovieClip Frame 2
gotoAndPlay (1);
Symbol 121 MovieClip Frame 3
starhit = new Sound(this);
starhit.attachSound("starhit");
starhit.start(0, 1);
stop();
Symbol 122 MovieClip Frame 1
felt = Number(random(4)) + 1;
gotoAndStop(felt);
Symbol 130 MovieClip Frame 1
stop();
Symbol 133 Button
on (release) {
slag = new Sound(this);
slag.attachSound("slag");
slag.start(0, 1);
_root.direction = _root.arrow_dir.tag._x;
_root.ball.gotoAndPlay("rolling");
_parent.gotoAndPlay("roll");
}
Symbol 138 MovieClip Frame 99
gotoAndPlay (1);
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 2
stop();
Symbol 146 MovieClip Frame 3
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 19
gotoAndPlay (2);
Symbol 191 MovieClip Frame 22
stop();
Symbol 199 Button
on (release) {
buttonclick.start(0, 1);
_root.check_ballen();
nummertekst = Number(_root.oefenballen);
if (_root.oefenballen >= 1) {
_root.melding.gotoAndPlay(1);
}
echttekst = Number(_root.ballen);
if (_root.ballen >= 1) {
_root.echt.gotoAndPlay(1);
}
gotoAndPlay (21);
}
Symbol 206 Button
on (release) {
ga_echt.start(0, 1);
_root.oefenballen = 0;
_root.check_ballen();
nummertekst = Number(_root.oefenballen);
if (_root.oefenballen >= 1) {
_root.melding.gotoAndPlay(1);
}
echttekst = Number(_root.ballen);
if (_root.ballen >= 1) {
_root.echt.gotoAndPlay(1);
}
gotoAndPlay (21);
}
Symbol 224 Button
on (press) {
buttonclick.start(0, 1);
gotoAndPlay (1);
}