Frame 1
stop();
Frame 2
stop();
score = 0;
time = 400;
acorns = 5;
j = 2;
while (j <= acorns) {
acorn.duplicateMovieClip("acorn" + j, j + 2000, acorn);
j++;
}
playsounds = new Sound(this);
playsounds.attachSound("music");
playsounds.start(0, 20000);
stop();
Instance of Symbol 28 MovieClip "squirrel" in Frame 2
onClipEvent (load) {
this._x = 250;
this._y = 315;
}
onClipEvent (enterFrame) {
_root.time--;
if (_root.time <= 0) {
_root.gotoAndPlay(10);
}
if (Key.isDown(39)) {
this._x = this._x + 25;
} else if (Key.isDown(37)) {
this._x = this._x - 25;
}
if (this._x > 550) {
this._x = 0;
} else if (this._x < 0) {
this._x = 550;
}
}
Instance of Symbol 13 MovieClip "acorn" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
rdseed = (_root.score / 500) + 4;
_local1._x = random(520) + 10;
_local1._y = -10;
acornspeed = 6 + random(rdseed);
playsounds1 = new Sound(_local1);
playsounds1.attachSound("Fireball");
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + acornspeed;
if (this._y > 400) {
reset();
_root.time = _root.time - 10;
}
if (this.hitTest(_root.squirrel)) {
playsounds1.start(0, 1);
_root.score = _root.score + 10;
reset();
}
}
Instance of Symbol 30 MovieClip in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(520) + 10;
_local1._y = -700;
lemonspeed = 6 + random(7);
playsounds2 = new Sound(_local1);
playsounds2.attachSound("Coin");
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + lemonspeed;
if (this._y > 400) {
reset();
}
if (this.hitTest(_root.squirrel)) {
_root.score = _root.score + 100;
playsounds2.start(0, 1);
reset();
}
}
Instance of Symbol 32 MovieClip "tomato" in Frame 2
onClipEvent (load) {
function reset() {
var _local1 = this;
_local1._x = random(520) + 10;
_local1._y = -300;
lemonspeed = 10 + random(7);
playsounds3 = new Sound(_local1);
playsounds3.attachSound("1up");
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + lemonspeed;
if (this._y > 400) {
reset();
}
if (this.hitTest(_root.squirrel)) {
_root.time = _root.time + 65;
playsounds3.start(0, 1);
reset();
}
}
Frame 11
stop();
_root.acorn.removeMovieClip();
_root.acorn1.removeMovieClip();
_root.acorn2.removeMovieClip();
_root.acorn3.removeMovieClip();
_root.acorn4.removeMovieClip();
_root.acorn5.removeMovieClip();
playsounds.stop();
Symbol 9 Button
on (release) {
getURL ("http://www.flashninjaclan.com", "_GET");
}
Symbol 16 Button
on (release) {
gotoAndPlay (2);
}
Symbol 19 Button
on (release) {
getURL ("http://www.java-gaming.com", "_GET");
}
Symbol 22 Button
on (release) {
getURL ("http://www.flashninjaclan.com/games/acorncatcher/topscores.php", "_GET");
}
Symbol 43 Button
on (release) {
score = _root.score;
_root.thename = _root.scorename;
loadVariablesNum ("http://www.flashninjaclan.com/games/acorncatcher/newscore.php", 0, "POST");
gotoAndPlay (1);
}