Frame 1
Stage.showMenu = false;
Mouse.show();
shot = 1;
practice = 1;
loaded = getBytesLoaded();
total = getBytesTotal();
percent = int((100 / total) * loaded);
time = 300;
rscoring = 0;
game = 1;
arrows = 6;
timer = 0;
reticle = 0;
newf = 1;
fired = 0;
scored = new Array();
scored[1] = 0;
scored[2] = 0;
scored[3] = 0;
scored[4] = 0;
scored[5] = 0;
scored[6] = 0;
Frame 2
if (loaded < total) {
gotoAndPlay (1);
}
Frame 9
Mouse.show();
stop();
time = 300;
_root.scoretable.filename = "scores/archeryplayers.sco";
_root.scoretable.scoresize = 50;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://www.stanleydirectory.co.uk/hosted/hairybullet/scores.php", "GET");
Frame 10
Mouse.hide();
shot1 = scored[1];
if (shot1 == 0) {
shot1 = "x";
}
shot2 = scored[2];
if (shot2 == 0) {
shot2 = "x";
}
shot3 = scored[3];
if (shot3 == 0) {
shot3 = "x";
}
shot4 = scored[4];
if (shot4 == 0) {
shot4 = "x";
}
shot5 = scored[5];
if (shot5 == 0) {
shot5 = "x";
}
shot6 = scored[6];
if (shot6 == 0) {
shot6 = "x";
}
hitx = (_xmouse - 426) + wind;
hity = _ymouse - 198;
change = random(20);
if (change == 2) {
wind = wind + 1;
}
if (change == 1) {
wind = wind - 1;
}
_root.wpointer.gotoAndPlay(wind + 20);
if (newf == 1) {
_root.archer.head.gotoAndPlay((arrows - shot) + 1);
newf = 0;
}
if (wind < 0) {
direction = "westerly";
}
if (0 < wind) {
direction = "easterly";
}
if (wind == 0) {
direction = "calm";
}
if (wind < -20) {
wind = -20;
}
if (20 < wind) {
wind = 20;
}
fwind = wind;
_root.wpointer.gotoAndPlay(fwind + 20);
if (reticle == 1) {
_root.windpoint._x = _root.crosshair._x + wind;
_root.windpoint._y = _root.crosshair._y;
} else {
_root.windpoint._x = -500;
_root.windpoint._y = -500;
}
if (timer == 1) {
time = time - 1;
}
shottime = int(time);
_root.smeter._yscale = shottime;
if (shottime < 0) {
_root.archer.gotoAndPlay("release");
_root.gotoAndPlay("hittarget");
}
Instance of Symbol 73 MovieClip "crosshair" in Frame 10
onClipEvent (enterFrame) {
mx = _root._xmouse;
my = _root._ymouse;
if (mx < _x) {
dx = _x - mx;
} else {
dx = mx - _x;
}
moveSpeedx = dx / 10;
if (mx < _x) {
_x = (_x - moveSpeedx);
} else {
_x = (_x + moveSpeedx);
}
if (_x < 326) {
_x = 326;
}
if (526 < _x) {
_x = 526;
}
if (my < _y) {
dy = _y - my;
} else {
dy = my - _y;
}
moveSpeedy = dy / 10;
if (my < _y) {
_y = (_y - moveSpeedy);
} else {
_y = (_y + moveSpeedy);
}
if (_y < 98) {
_y = 98;
}
if (298 < _y) {
_y = 298;
}
}
onClipEvent (mouseDown) {
_root.archer.gotoAndPlay("release");
_root.gotoAndPlay("hittarget");
}
Frame 11
gotoAndPlay (10);
Frame 45
Mouse.show();
timebonus = int(shottime / 6);
x = (hitx * 12) + 275;
y = (hity * 12) + 200;
_root.arrow1._x = x;
_root.arrow1._y = y;
_root.arrow1.gotoAndPlay(1);
scorex = x - 275;
scorey = y - 200;
if (scorex < 0) {
scorex = -scorex;
}
if (scorey < 0) {
scorey = -scorey;
}
if (practice == 0) {
rscoring = 2;
}
if (practice == 1) {
rscoring = 0;
}
thisscore = (170 - int(scorex + scorey)) + (timebonus * rscoring);
testscore = 170 - int(scorex + scorey);
if (testscore < 0) {
thisscore = 0;
_root.arrow1._x = 1000;
}
if (thisscore < 0) {
thisscore = 0;
}
score = ((score + 170) - int(scorex + scorey)) + (timebonus * rscoring);
if (score < 0) {
score = 0;
}
if (220 < thisscore) {
_root.shoutcast.gotoAndPlay("greatshot");
}
if (thisscore < 70) {
_root.shoutcast.gotoAndPlay("drunk");
}
wind = random(20);
dir = random(10);
if (dir < 5) {
wind = -wind;
}
_root.igsb.shots[shot] = thisscore;
scored[shot] = thisscore;
shot = shot + 1;
stop();
Frame 46
if (arrows < shot) {
gotoAndPlay (47);
} else {
time = 300;
newf = 1;
gotoAndPlay (10);
}
Frame 47
if (game == 1) {
gotoAndPlay (54);
}
if (game == 2) {
gotoAndPlay (68);
}
if (game == 3) {
gotoAndPlay (82);
}
Frame 54
_root.scoretable.filename = "scores/archery.sco";
_root.scoretable.scoresize = 50;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://www.stanleydirectory.co.uk/hosted/hairybullet/scores.php", "GET");
clear = Number(_root.scoretable.SCORE29);
if (920 < clear) {
_root.scoretable.filename = "scores/archery.sco";
_root.scoretable.scoresize = 50;
_root.scoretable.action = "CLEAR";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://www.stanleydirectory.co.uk/hosted/hairybullet/scores.php", "GET");
}
Frame 67
stop();
Frame 68
_root.scoretable.filename = "scores/archerygame.sco";
_root.scoretable.scoresize = 50;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://www.stanleydirectory.co.uk/hosted/hairybullet/scores.php", "GET");
Frame 81
stop();
Frame 82
_root.scoretable.filename = "scores/goldenarrow.sco";
_root.scoretable.scoresize = 50;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = score;
_root.scoretable.loadVariables("http://www.stanleydirectory.co.uk/hosted/hairybullet/scores.php", "GET");
Frame 95
stop();
Frame 96
scored[1] = 0;
scored[2] = 0;
scored[3] = 0;
scored[4] = 0;
scored[5] = 0;
scored[6] = 0;
scorefinal = fired + arrows;
_root.scoretable.filename = "scores/archeryplayers.sco";
_root.scoretable.scoresize = 50;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = scorefinal;
_root.scoretable.loadVariables("http://www.stanleydirectory.co.uk/hosted/hairybullet/scores.php", "GET");
Frame 107
gotoAndPlay (5);
Symbol 11 MovieClip Frame 1
if (this.sessionstarted != 1) {
this.arcade = new LoadVars();
this.sessionvars = new LoadVars();
this.arcade.gamename = "archery";
this.arcade.sessdo = "sessionstart";
this.arcade.sendAndLoad("arcade.php", sessionvars, "POST");
if (this.sessionvars.sessiontype != 2) {
_root.is_a_challenge = 0;
} else {
_root.is_a_challenge = 1;
}
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 = _root.score;
} else {
this.prequestvars.score = -1;
}
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 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 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
stop();
Symbol 29 Button
on (release) {
fired = Number(_root.scoretable.SCORE0);
practice = 0;
timer = 1;
reticle = 0;
arrows = 6;
game = 2;
score = 0;
thisscore = 0;
gametype = "Competition";
gotoAndPlay (10);
}
Symbol 34 MovieClip Frame 1
stop();
Symbol 34 MovieClip Frame 20
stop();
Symbol 34 MovieClip Frame 40
stop();
Symbol 34 MovieClip Frame 59
stop();
Symbol 46 MovieClip Frame 49
stop();
Symbol 46 MovieClip Frame 70
stop();
Symbol 72 Button
on (release) {
fired = Number(_root.scoretable.SCORE0);
practice = 0;
timer = 1;
reticle = 0;
arrows = 6;
game = 2;
score = 0;
thisscore = 0;
gametype = "Competition";
gotoAndPlay (10);
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 40
stop();
Symbol 78 MovieClip Frame 81
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 2
stop();
Symbol 105 MovieClip Frame 3
stop();
Symbol 105 MovieClip Frame 4
stop();
Symbol 105 MovieClip Frame 5
stop();
Symbol 105 MovieClip Frame 6
stop();
Symbol 105 MovieClip Frame 7
stop();
Symbol 105 MovieClip Frame 8
stop();
Symbol 105 MovieClip Frame 9
stop();
Symbol 105 MovieClip Frame 10
stop();
Symbol 105 MovieClip Frame 11
stop();
Symbol 105 MovieClip Frame 12
stop();
Symbol 105 MovieClip Frame 13
stop();
Symbol 105 MovieClip Frame 14
stop();
Symbol 105 MovieClip Frame 15
stop();
Symbol 105 MovieClip Frame 16
stop();
Symbol 105 MovieClip Frame 17
stop();
Symbol 105 MovieClip Frame 18
stop();
Symbol 105 MovieClip Frame 19
stop();
Symbol 105 MovieClip Frame 20
stop();
Symbol 105 MovieClip Frame 21
stop();
Symbol 105 MovieClip Frame 22
stop();
Symbol 105 MovieClip Frame 23
stop();
Symbol 105 MovieClip Frame 24
stop();
Symbol 105 MovieClip Frame 25
stop();
Symbol 105 MovieClip Frame 26
stop();
Symbol 105 MovieClip Frame 27
stop();
Symbol 105 MovieClip Frame 28
stop();
Symbol 105 MovieClip Frame 29
stop();
Symbol 105 MovieClip Frame 30
stop();
Symbol 105 MovieClip Frame 31
stop();
Symbol 105 MovieClip Frame 32
stop();
Symbol 105 MovieClip Frame 33
stop();
Symbol 105 MovieClip Frame 34
stop();
Symbol 105 MovieClip Frame 35
stop();
Symbol 105 MovieClip Frame 36
stop();
Symbol 105 MovieClip Frame 37
stop();
Symbol 105 MovieClip Frame 38
stop();
Symbol 105 MovieClip Frame 39
stop();
Symbol 105 MovieClip Frame 40
stop();
Symbol 105 MovieClip Frame 41
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 125 Button
on (release) {
gotoAndPlay (46);
}
Symbol 130 Button
on (release) {
gotoAndPlay (46);
}
Symbol 134 Button
on (release) {
_root.gameover = 1;
}
Symbol 141 Button
on (release) {
score = 0;
shot = 1;
gotoAndPlay (96);
}
Symbol 147 Button
on (release) {
_root.gameover = 1;
}
Symbol 149 Button
on (release) {
score = 0;
shot = 1;
gotoAndPlay (96);
}