Frame 1
play();
Frame 8
ifFrameLoaded (1) {
gotoAndPlay (10);
}
Frame 9
gotoAndPlay (1);
Frame 10
stop();
Frame 11
level = "1";
points = "0";
ballsleft = "5";
triesleft = "2";
mayputt = "0";
shotsmade = "0";
tellTarget ("/board") {
gotoAndPlay ("level");
};
setProperty("/chance", _visible , "0");
Frame 12
ballsleft = "5";
shotsmade = "0";
tellTarget ("/ballmeter") {
gotoAndStop (1);
};
a = "1";
oley = "220" - random("10");
olex = "146" + random("119");
while ("5" >= a) {
oley = (oley - "10") - random("20");
olex = "146" + random("119");
Set(("/hole" add a) add ":powerneeded", int(("220" - oley) / "10") + "2");
setProperty("/hole" add a, _y , oley);
setProperty("/hole" add a, _x , olex);
Set(("/hole" add a) add "f:worth", int((("220" - oley) / "6") + "10") + level);
setProperty(("/hole" add a) add "f", _y , oley);
setProperty(("/hole" add a) add "f", _x , olex);
a = a + "1";
}
Frame 13
mayputt = "1";
stop();
Frame 14
ballsleft = ballsleft - "1";
tellTarget ("/ballmeter") {
gotoAndStop("6" - _level0:ballsleft);
};
tellTarget ("/meter") {
gotoAndStop (1);
};
Frame 17
tellTarget ("/ball") {
gotoAndPlay ("play");
};
Frame 26
if (waitforball) {
gotoAndPlay (25);
} else if ("0" < ballsleft) {
mayputt = "1";
gotoAndPlay (13);
}
Frame 27
if ("2" < shotsmade) {
level = level + "1";
triesleft = "2";
setProperty("/chance", _visible , "0");
tellTarget ("/board") {
if (_level0:nosound) {
gotoAndPlay ("noslevel");
} else {
gotoAndPlay ("level");
}
};
gotoAndPlay (12);
} else if ((shotsmade == "2") and ("0" < triesleft)) {
triesleft = triesleft - "1";
if ("0" >= triesleft) {
setProperty("/chance", _visible , "1");
}
gotoAndPlay (12);
} else {
score = points;
gotoAndPlay (28);
}
Frame 59
_root.score = points;
_root.gameover = 1;
stop();
Symbol 84 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "garygolf";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype == 2) {
_root.is_a_challenge = 1;
} else {
_root.is_a_challenge = 0;
}
this.sessionstarted = 1;
}
if (_root.gameover == 1) {
if ((this.askpermission != 1) && (this.sessionvars.connStatus == 1)) {
this.prequestvars = new LoadVars();
this.pranswer = new LoadVars();
this.prequestvars.gametime = this.sessionvars.gametime;
this.prequestvars.fakekey = this.sessionvars.initbar;
_root.score = int(Number(_root.score));
if (_root.score == 0) {
this.prequestvars.score = -1;
} else {
this.prequestvars.score = _root.score;
}
this.prequestvars.id = this.sessionvars.lastid;
this.prequestvars.sessdo = "permrequest";
this.prequestvars.note = (this.prequestvars.id * this.prequestvars.score) * this.prequestvars.fakekey;
this.prequestvars.sendAndLoad("./arcade.php", this.pranswer, "POST");
this.askpermission = 1;
}
if ((this.pranswer.validate == 1) && (this.finalsent != 1)) {
this.burnscore = new LoadVars();
this.burnscore.microone = this.pranswer.microone;
this.burnscore.gametime = this.prequestvars.gametime;
this.burnscore.id = this.prequestvars.id;
if (_root.score == 0) {
this.burnscore.noscore = 1;
}
this.burnscore.sessdo = "burn";
this.burnscore.send("./arcade.php", "_self", "POST");
this.finalsent = 1;
}
}
Symbol 16 Button
on (release) {
gotoAndPlay (11);
loadVariablesNum ("http://www2.warnerbros.com/tracking.html?game=tnn_GaryTheRat", 0);
}
Symbol 23 Button
on (release) {
if (_level0:mayputt) {
Set("_level0:mayputt", "0");
Set("_level0:holename", _target);
call("/meter:meterpower");
tellTarget ("/") {
play();
};
}
}
on (press) {
if (_level0:mayputt) {
tellTarget ("/meter") {
play();
};
}
}
Symbol 33 MovieClip Frame 1
Set("_level0:waitforball", "0");
count = "0";
_x = "170";
_y = "265";
stop();
Symbol 33 MovieClip Frame 2
percent = "0";
rolling = "1";
Set("_level0:waitforball", "1");
proll = "0.055" + (_level0:meterpower / "500");
delta = "0.0015";
Symbol 33 MovieClip Frame 3
call("moveball");
if (((!rolling) or ("1" < percent)) or ("0" >= proll)) {
if (_level0:meterpower == "0") {
if (_level0:nosound) {
gotoAndPlay (26);
} else {
gotoAndPlay (32);
}
} else if (_level0:nosound) {
gotoAndPlay (16);
} else {
gotoAndPlay (6);
}
}
Symbol 33 MovieClip Frame 4
call("moveball");
if (rolling and ("0" < proll)) {
gotoAndPlay (3);
} else if (_level0:meterpower == "0") {
if (_level0:nosound) {
gotoAndPlay (26);
} else {
gotoAndPlay (32);
}
} else if (_level0:nosound) {
gotoAndPlay (16);
} else {
gotoAndPlay (6);
}
Symbol 33 MovieClip Frame 5
percent = percent + proll;
proll = proll - delta;
if ("1" >= percent) {
_x = ("170" - (("170" - getProperty(_level0:holename, _x)) * percent));
_y = ("265" - (("265" - getProperty(_level0:holename, _y)) * percent));
} else {
rolling = "0";
if (_level0:meterpower <> "0") {
_x = ((getProperty(_level0:holename, _x) - "8") - _level0:meterpower);
_y = ((getProperty(_level0:holename, _y) - "4") - _level0:meterpower);
}
}
Symbol 33 MovieClip Frame 15
gotoAndPlay (1);
Symbol 33 MovieClip Frame 25
gotoAndPlay (1);
Symbol 33 MovieClip Frame 31
Set("_level0:points", _level0:points + eval (_level0:holename add "f:worth"));
Set("_level0:shotsmade", _level0:shotsmade + "1");
setProperty(_level0:holename, _visible , "0");
setProperty(_level0:holename add "f", _visible , "0");
gotoAndPlay (1);
Symbol 33 MovieClip Frame 37
Set("_level0:points", _level0:points + eval (_level0:holename add "f:worth"));
Set("_level0:shotsmade", _level0:shotsmade + "1");
setProperty(_level0:holename, _visible , "0");
setProperty(_level0:holename add "f", _visible , "0");
gotoAndPlay (1);
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
stop();
Symbol 38 MovieClip Frame 3
stop();
Symbol 38 MovieClip Frame 4
stop();
Symbol 38 MovieClip Frame 5
stop();
Symbol 38 MovieClip Frame 6
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 42
gotoAndPlay (2);
Symbol 44 MovieClip Frame 43
if ("22" < getProperty("/meter", _currentframe)) {
Set("_level0:meterpower", (getProperty("/meter", _currentframe) - "21") - eval (_level0:holename add ":powerneeded"));
} else {
Set("_level0:meterpower", (getProperty("/meter", _currentframe) - "1") - eval (_level0:holename add ":powerneeded"));
}
if (_level0:level < "4") {
if ("0" < _level0:meterpower) {
Set("_level0:meterpower", (_level0:meterpower - "4") + _level0:level);
if (_level0:meterpower < "0") {
Set("_level0:meterpower", "0");
}
} else if (_level0:meterpower < "0") {
Set("_level0:meterpower", (_level0:meterpower + "4") - _level0:level);
if ("0" < _level0:meterpower) {
Set("_level0:meterpower", "0");
}
}
}
tellTarget ("/meter") {
gotoAndStop (1);
};
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
level = _level0:level;
play();
Symbol 56 MovieClip Frame 22
gotoAndStop (1);
Symbol 56 MovieClip Frame 23
level = _level0:level;
play();
Symbol 56 MovieClip Frame 43
gotoAndStop (1);
Symbol 62 Button
on (release) {
Set("_level0:nosound", "1" - _level0:nosound);
play();
}
Symbol 64 Button
on (release) {
Set("_level0:nosound", "1" - _level0:nosound);
play();
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 79 Button
on (release) {
gotoAndPlay (11);
loadVariablesNum ("http://www2.warnerbros.com/tracking.html?game=tnn_GaryTheRat", 0);
}