Frame 1
Stage.showMenu = false;
Frame 165
gotoAndStop (166);
Frame 166
_root.attachMovie("scoretable", "scoretable", 1);
setProperty(_root.scoretable, _x , 275);
setProperty(_root.scoretable, _y , 260);
setProperty(_root.scoretable, _visible , false);
stop();
Instance of Symbol 95 MovieClip in Frame 166
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.player.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.player.xMax > xMin) && (_root.player.xMin < xMax)) && (_root.player.yMax < yMin)) {
if ((_root.player.yMax - (_root.player.jump * 2)) > yMin) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
}
if (Math.round(_root.player.yMax) > Math.round(yMin)) {
if (hitTest(_root.player) && (_root.player.xmax < xmin)) {
_root.player._x = _root.player._x - _root.player.speed;
}
if (hitTest(_root.player) && (_root.player.xmin > xmax)) {
_root.player._x = _root.player._x + _root.player.speed;
}
if ((hitTest(_root.player) && (_root.player.ymin > ymax)) && (_root.player.jump > -1)) {
_root.player.jump = -1 * _root.player.jump;
}
}
if (((activated == true) && (!hitTest(_root.player))) && (_root.player.jump == undefined)) {
_root.player.jump = 0;
activated = false;
}
if (((hitTest(_root.player) && (_root.player.ymax > ymin)) && (_root.player.jump != undefined)) && (_root.player._y < _y)) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
if ((((((_root.player.ymax - _root.player.jump) > ymin) && (_root.player.xMin < xMax)) && (_root.player.xMax > xMin)) && (_root.player.jump != undefined)) && (_root.player._y < _y)) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
}
Instance of Symbol 95 MovieClip in Frame 166
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.player.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.player.xMax > xMin) && (_root.player.xMin < xMax)) && (_root.player.yMax < yMin)) {
if ((_root.player.yMax - (_root.player.jump * 2)) > yMin) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
}
if (Math.round(_root.player.yMax) > Math.round(yMin)) {
if (hitTest(_root.player) && (_root.player.xmax < xmin)) {
_root.player._x = _root.player._x - _root.player.speed;
}
if (hitTest(_root.player) && (_root.player.xmin > xmax)) {
_root.player._x = _root.player._x + _root.player.speed;
}
if ((hitTest(_root.player) && (_root.player.ymin > ymax)) && (_root.player.jump > -1)) {
_root.player.jump = -1 * _root.player.jump;
}
}
if (((activated == true) && (!hitTest(_root.player))) && (_root.player.jump == undefined)) {
_root.player.jump = 0;
activated = false;
}
if (((hitTest(_root.player) && (_root.player.ymax > ymin)) && (_root.player.jump != undefined)) && (_root.player._y < _y)) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
if ((((((_root.player.ymax - _root.player.jump) > ymin) && (_root.player.xMin < xMax)) && (_root.player.xMax > xMin)) && (_root.player.jump != undefined)) && (_root.player._y < _y)) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
}
Instance of Symbol 95 MovieClip in Frame 166
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.player.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.player.xMax > xMin) && (_root.player.xMin < xMax)) && (_root.player.yMax < yMin)) {
if ((_root.player.yMax - (_root.player.jump * 2)) > yMin) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
}
if (Math.round(_root.player.yMax) > Math.round(yMin)) {
if (hitTest(_root.player) && (_root.player.xmax < xmin)) {
_root.player._x = _root.player._x - _root.player.speed;
}
if (hitTest(_root.player) && (_root.player.xmin > xmax)) {
_root.player._x = _root.player._x + _root.player.speed;
}
if ((hitTest(_root.player) && (_root.player.ymin > ymax)) && (_root.player.jump > -1)) {
_root.player.jump = -1 * _root.player.jump;
}
}
if (((activated == true) && (!hitTest(_root.player))) && (_root.player.jump == undefined)) {
_root.player.jump = 0;
activated = false;
}
if (((hitTest(_root.player) && (_root.player.ymax > ymin)) && (_root.player.jump != undefined)) && (_root.player._y < _y)) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
if ((((((_root.player.ymax - _root.player.jump) > ymin) && (_root.player.xMin < xMax)) && (_root.player.xMax > xMin)) && (_root.player.jump != undefined)) && (_root.player._y < _y)) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
}
Instance of Symbol 95 MovieClip in Frame 166
onClipEvent (load) {
activated = false;
down = false;
}
onClipEvent (enterFrame) {
_root.report.text = (Math.round(_root.player.yMax) + " ") + Math.round(yMin);
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if (((_root.player.xMax > xMin) && (_root.player.xMin < xMax)) && (_root.player.yMax < yMin)) {
if ((_root.player.yMax - (_root.player.jump * 2)) > yMin) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
}
if (Math.round(_root.player.yMax) > Math.round(yMin)) {
if (hitTest(_root.player) && (_root.player.xmax < xmin)) {
_root.player._x = _root.player._x - _root.player.speed;
}
if (hitTest(_root.player) && (_root.player.xmin > xmax)) {
_root.player._x = _root.player._x + _root.player.speed;
}
if ((hitTest(_root.player) && (_root.player.ymin > ymax)) && (_root.player.jump > -1)) {
_root.player.jump = -1 * _root.player.jump;
}
}
if (((activated == true) && (!hitTest(_root.player))) && (_root.player.jump == undefined)) {
_root.player.jump = 0;
activated = false;
}
if (((hitTest(_root.player) && (_root.player.ymax > ymin)) && (_root.player.jump != undefined)) && (_root.player._y < _y)) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
if ((((((_root.player.ymax - _root.player.jump) > ymin) && (_root.player.xMin < xMax)) && (_root.player.xMax > xMin)) && (_root.player.jump != undefined)) && (_root.player._y < _y)) {
_root.player._y = ymin - (_root.player._height / 2);
_root.player.jump = undefined;
_root.player.fall = false;
activated = true;
}
}
Frame 167
setProperty(_root.scoretable, _visible , true);
_root.scoretable.filename = "scores/fruitmonkey.sco";
_root.scoretable.scoresize = 100;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.loadVariables("http://www.apeskateboards.com/scores.php", "GET");
stop();
Frame 168
time = 90;
lager = 2;
fruitCountBonus = 150;
fruitCountSuperBonus = 0;
fruitCountSuperMegaBonus = 0;
gameOver = 0;
score = 0;
bananCount = 0;
grapesCount = 0;
appleCount = 0;
redAppleCount = 0;
fruitCount = 0;
bananScore = 50;
appleScore = 40;
redAppleScore = 60;
grapesScore = 30;
timeAdd = 10;
bonusScore = 500;
bananas1 = 0;
bananas2 = 0;
grapes1 = 0;
grapes2 = 0;
apples1 = 0;
apples2 = 0;
redApples1 = 0;
redApples2 = 0;
clock1 = 0;
hurryUpText = 0;
attachMovie("banan", banan + lager, lager);
setProperty(_root[banan + lager], _x , random(470) + 45);
setProperty(_root[banan + lager], _y , random(340) + 25);
lager = lager + 1;
stop();
this.onEnterFrame = function () {
randomX = random(470) + 45;
randomY = random(340) + 25;
fruitCount = ((bananCount + grapesCount) + appleCount) + redAppleCount;
if (lager >= 9999) {
lager = 0;
}
lager = lager + 1;
if (time <= 0) {
gotoAndStop (169);
gameOver = 1;
}
};
Instance of Symbol 142 MovieClip "player" in Frame 168
onClipEvent (load) {
fall = false;
jump = 0;
speed = 8;
jumpheight = 17;
maxfall = -54;
}
onClipEvent (enterFrame) {
xmin = getBounds(_root).xMin;
xmax = getBounds(_root).xMax;
ymin = getBounds(_root).yMin;
ymax = getBounds(_root).yMax;
if ((Key.isDown(32) && (fall == false)) && (jump == undefined)) {
fall = true;
jump = jumpheight;
this.gotoAndPlay(10);
}
if (jump != undefined) {
if (jump > maxfall) {
jump--;
}
_y = (_y - jump);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - speed);
this.play();
setProperty(_this, _xscale , -100);
}
if (Key.isDown(39)) {
_x = (_x + speed);
this.play();
setProperty(_this, _xscale , 100);
}
if (this._x <= 25) {
_x = (_x + speed);
}
if (this._x >= 520) {
_x = (_x - speed);
}
}
Frame 169
stopAllSounds();
attachMovie("addScore", "addScore", _root.lager);
setProperty("addScore", _x , 275);
setProperty("addScore", _y , 150);
stop();
Frame 170
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.bar.gotoAndStop(percentLoaded);
Frame 171
if (_root.percentLoaded == 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (170);
}
Symbol 8 Button
on (press) {
_root.scoretable.filename = "scores/fruitmonkey.sco";
_root.scoretable.scoresize = 100;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = name;
_root.scoretable.winscore = _root.score;
_root.scoretable.loadVariables("http://www.apeskateboards.com/scores.php", "GET");
this.removeMovieClip();
}
Symbol 57 MovieClip [clock] Frame 1
this.onEnterFrame = function () {
if (_root.gameOver == 1) {
this.removeMovieClip();
}
};
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip [clock] Frame 600
onClipEvent (enterFrame) {
if (_root.gameOver == 1) {
_parent.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.lager = _root.lager + 1;
_root.time = _root.time + _root.timeAdd;
_root.attachMovie("bonusTimeText", bonusTimeText + _root.lager, _root.lager);
setProperty(_root[bonusTimeText + _root.lager], _x , 275);
setProperty(_root[bonusTimeText + _root.lager], _y , 200);
_root.lager = _root.lager + 1;
_root.attachMovie("clock", clock + _root.lager, _root.lager);
setProperty(_root[clock + _root.lager], _x , _root.randomX);
setProperty(_root[clock + _root.lager], _y , _root.randomY);
_parent.removeMovieClip();
}
}
Symbol 57 MovieClip [clock] Frame 690
_root.lager = _root.lager + 1;
_root.attachMovie("clock", clock + _root.lager, _root.lager);
setProperty(_root[clock + _root.lager], _x , _root.randomX);
setProperty(_root[clock + _root.lager], _y , _root.randomY);
_root.lager = _root.lager + 1;
this.removeMovieClip();
Symbol 60 MovieClip [superMegaBonusText] Frame 1
setProperty(this, _x , 275);
setProperty(this, _y , 200);
_root.score = _root.score * 3;
Symbol 60 MovieClip [superMegaBonusText] Frame 21
this.removeMovieClip();
Symbol 63 MovieClip [superBonusText] Frame 1
setProperty(this, _x , 275);
setProperty(this, _y , 200);
_root.score = _root.score * 2;
Symbol 63 MovieClip [superBonusText] Frame 21
this.removeMovieClip();
Symbol 66 MovieClip [bonusText] Frame 1
setProperty(this, _x , 275);
setProperty(this, _y , 200);
_root.score = _root.score + _root.bonusScore;
Symbol 66 MovieClip [bonusText] Frame 21
this.removeMovieClip();
Symbol 69 MovieClip [hurryUpText] Frame 1
setProperty(this, _x , 275);
setProperty(this, _y , 200);
Symbol 69 MovieClip [hurryUpText] Frame 21
this.removeMovieClip();
Symbol 72 MovieClip [bonusTimeText] Frame 21
this.removeMovieClip();
Instance of Symbol 74 MovieClip in Symbol 75 MovieClip [redApple] Frame 1
onClipEvent (enterFrame) {
if (_root.gameOver == 1) {
_parent.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.score = _root.score + _root.redAppleScore;
_root.lager = _root.lager + 1;
_root.redAppleCount = _root.redAppleCount + 1;
_root.attachMovie("redApple", redApple + _root.lager, _root.lager);
setProperty(_root[redApple + _root.lager], _x , _root.randomX);
setProperty(_root[redApple + _root.lager], _y , _root.randomY);
_root.sound.gotoAndPlay("fruit");
_parent.removeMovieClip();
}
}
Instance of Symbol 77 MovieClip in Symbol 78 MovieClip [grapes] Frame 1
onClipEvent (enterFrame) {
if (_root.gameOver == 1) {
_parent.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.score = _root.score + _root.grapesScore;
_root.lager = _root.lager + 1;
_root.grapesCount = _root.grapesCount + 1;
_root.attachMovie("grapes", grapes + _root.lager, _root.lager);
setProperty(_root[grapes + _root.lager], _x , _root.randomX);
setProperty(_root[grapes + _root.lager], _y , _root.randomY);
_root.sound.gotoAndPlay("fruit");
_parent.removeMovieClip();
}
}
Instance of Symbol 80 MovieClip in Symbol 81 MovieClip [banan] Frame 1
onClipEvent (enterFrame) {
if (_root.gameOver == 1) {
_parent.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.score = _root.score + _root.bananScore;
_root.lager = _root.lager + 1;
_root.bananCount = _root.bananCount + 1;
_root.attachMovie("banan", banan + _root.lager, _root.lager);
setProperty(_root[banan + _root.lager], _x , _root.randomX);
setProperty(_root[banan + _root.lager], _y , _root.randomY);
_root.sound.gotoAndPlay("fruit");
_parent.removeMovieClip();
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip [apple] Frame 1
onClipEvent (enterFrame) {
if (_root.gameOver == 1) {
_parent.removeMovieClip();
}
if (this.hitTest(_root.player)) {
_root.score = _root.score + _root.appleScore;
_root.lager = _root.lager + 1;
_root.appleCount = _root.appleCount + 1;
_root.attachMovie("apple", apple + _root.lager, _root.lager);
setProperty(_root[apple + _root.lager], _x , _root.randomX);
setProperty(_root[apple + _root.lager], _y , _root.randomY);
_root.sound.gotoAndPlay("fruit");
_parent.removeMovieClip();
}
}
Symbol 107 Button
on (press) {
gotoAndStop (168);
}
Symbol 109 Button
on (press) {
gotoAndStop (167);
}
Symbol 113 Button
on (press) {
getURL ("http://www.apeskateboards.com/games", _blank);
}
Symbol 117 Button
on (press) {
gotoAndStop (166);
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 6
gotoAndStop (1);
Symbol 143 MovieClip Frame 31
_root.time = _root.time - 1;
gotoAndPlay (1);
Symbol 144 MovieClip Frame 1
this.onEnterFrame = function () {
if ((_root.time <= 10) && (_root.hurryUpText == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("hurryUpText", hurryUpText + _root.lager, _root.lager);
_root.hurryUpText = 1;
}
if ((_root.bananCount == 10) && (_root.bananas1 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
_root.attachMovie("banan", banan + _root.lager, _root.lager);
setProperty(_root[banan + _root.lager], _x , random(505) + 45);
setProperty(_root[banan + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.bananas1 = 1;
}
if ((_root.bananCount == 20) && (_root.bananas2 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
_root.attachMovie("banan", banan + _root.lager, _root.lager);
setProperty(_root[banan + _root.lager], _x , random(505) + 45);
setProperty(_root[banan + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.bananas2 = 1;
}
if ((_root.bananCount == 25) && (_root.apples1 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
_root.attachMovie("apple", apple + _root.lager, _root.lager);
setProperty(_root[apple + _root.lager], _x , random(505) + 45);
setProperty(_root[apple + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.apples1 = 1;
}
if ((_root.fruitCount == 35) && (_root.grapes1 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
_root.attachMovie("grapes", grapes + _root.lager, _root.lager);
setProperty(_root[grapes + _root.lager], _x , random(505) + 45);
setProperty(_root[grapes + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.grapes1 = 1;
}
if ((_root.fruitCount == 20) && (_root.clock1 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("clock", clock + _root.lager, _root.lager);
setProperty(_root[clock + _root.lager], _x , random(505) + 45);
setProperty(_root[clock + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.clock1 = 1;
}
if ((_root.fruitCount == 45) && (_root.redApples1 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
_root.attachMovie("redApple", redApple + _root.lager, _root.lager);
setProperty(_root[redApple + _root.lager], _x , random(505) + 45);
setProperty(_root[redApple + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.redApples1 = 1;
}
if ((_root.fruitCount == 60) && (_root.apples2 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
_root.attachMovie("apple", apple + _root.lager, _root.lager);
setProperty(_root[apple + _root.lager], _x , random(505) + 45);
setProperty(_root[apple + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.apples2 = 1;
}
if ((_root.fruitCount == 90) && (_root.grapes2 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
_root.attachMovie("grapes", grapes + _root.lager, _root.lager);
setProperty(_root[grapes + _root.lager], _x , random(505) + 45);
setProperty(_root[grapes + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.grapes2 = 1;
}
if ((_root.fruitCount == 130) && (_root.redApples2 == 0)) {
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
_root.attachMovie("redApple", redApple + _root.lager, _root.lager);
setProperty(_root[redApple + _root.lager], _x , random(505) + 45);
setProperty(_root[redApple + _root.lager], _y , random(375) + 25);
_root.lager = _root.lager + 1;
_root.redApples2 = 1;
}
if (_root.fruitCount >= (_root.fruitCountBonus + 25)) {
_root.fruitCountBonus = _root.fruitCount;
_root.lager = _root.lager + 1;
_root.attachMovie("bonusText", bonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
}
if (_root.fruitCount >= (_root.fruitCountSuperBonus + 75)) {
_root.fruitCountSuperBonus = _root.fruitCount;
_root.lager = _root.lager + 1;
_root.attachMovie("superBonusText", superBonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
}
if (_root.fruitCount >= (_root.fruitCountSuperMegaBonus + 105)) {
_root.fruitCountSuperMegaBonus = _root.fruitCount;
_root.lager = _root.lager + 1;
_root.attachMovie("superMegaBonusText", superMegaBonusText + _root.lager, _root.lager);
_root.lager = _root.lager + 1;
}
};
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 3
gotoAndStop (1);
Symbol 152 Button
on (press) {
removeMovieClip("addScore");
gotoAndStop (166);
_root.time = 90;
}