Frame 1
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
percentone = totalBytes / 100;
percent = Math.round(loadedBytes / percentone);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay (5);
}
fscommand ("allowscale", "true");
Stage.showMenu = false;
Instance of Symbol 12 MovieClip in Frame 1
onClipEvent (enterFrame) {
_xscale = (_root.percentDone * 4);
}
Frame 2
gotoAndPlay (1);
Frame 5
stop();
fscommand ("allowscale", "true");
Stage.showMenu = false;
Frame 6
stop();
fscommand ("allowscale", "true");
Stage.showMenu = false;
Frame 15
fscommand ("allowscale", "true");
Stage.showMenu = false;
s = new Sound();
s.attachSound("head");
b = new Sound();
b.attachSound("beep");
var amitavaballrotation = 4;
var miss = 0;
var point = 0;
var sco = 0;
var amitavaplay = false;
var gravity = 2;
var restitution = 0.9;
var friction = 0.25;
var borders = {width:500, height:375};
var ballVel = {x:0, y:0};
var ballPos = {x:ball._x, y:ball._y};
var ballOld = {x:ball._x, y:ball._y};
var dragging = false;
radius = ball._width / 2;
_root.onEnterFrame = function () {
if (amitavaplay == true) {
if (!dragging) {
ballVel.y = ballVel.y + gravity;
ballPos.x = ballPos.x + ballVel.x;
ballPos.y = ballPos.y + ballVel.y;
if ((ballPos.y + radius) > borders.height) {
ballPos.y = borders.height - radius;
ballVel.y = ballVel.y * (-restitution);
ballVel.x = ballVel.x * Math.abs(1 - friction);
sco = 0;
_root.hecount.pl = 1;
miss = miss + 1;
b.start();
} else {
ball._rotation = ball._rotation + amitavaballrotation;
}
if ((ballPos.x + radius) > borders.width) {
ballPos.x = borders.width - radius;
ballVel.x = ballVel.x * (-restitution);
}
if (ballPos.x < radius) {
ballPos.x = radius;
ballVel.x = ballVel.x * ((-restitution) - 0.8);
}
ball._x = ballPos.x;
ball._y = ballPos.y;
} else {
ballOld.x = ballPos.x;
ballOld.y = ballPos.y;
ballPos.x = ball._x;
ballPos.y = ball._y;
ballVel.x = (ballPos.x - ballOld.x) / 2;
ballVel.y = (ballPos.y - ballOld.y) / 2;
if (math.abs(ballVel.y) < 0.25) {
ballVel.y = 0;
}
if (math.abs(ballVel.x) < 0.25) {
ballVel.x = 0;
}
}
}
};
stop();
Instance of Symbol 115 MovieClip "sammy" in Frame 15
onClipEvent (load) {
speed = 10;
d = 0;
dir = 1;
Hedding = false;
}
onClipEvent (enterFrame) {
if (_x < 0) {
_x = 10;
}
if (_x > 500) {
_x = 490;
}
if (_root.amitavaplay == true) {
_x = _root._xmouse;
} else {
removeMovieClip(this);
}
if (Hedding == false) {
this.gotoAndStop("stand");
}
}
Instance of Symbol 118 MovieClip "circle" in Frame 15
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 123 MovieClip "stup" in Frame 15
onClipEvent (load) {
this.gotoAndPlay(2);
pl = false;
}
Instance of Symbol 129 MovieClip "hecount" in Frame 15
onClipEvent (load) {
_visible = false;
pl = 0;
}
onClipEvent (enterFrame) {
if (_root.amitavaplay == true) {
Mouse.hide();
}
if (_root.sco > _root.point) {
if (pl == 1) {
_root.hsc.play();
pl = 0;
}
_root.point = _root.sco;
}
}
Instance of Symbol 137 MovieClip "ball" in Frame 15
onClipEvent (load) {
mposx = 13;
rot = 4;
pos = 0;
}
onClipEvent (enterFrame) {
if (pos < 1) {
pos = 13;
}
pos = this._x - _root.sammy._x;
mposx = Math.round(pos);
if (_root.dragging == true) {
_root.sco = _root.sco + 1;
}
if (this._x > _root.sammy._x) {
mposx = -mposx;
} else if (this._x < _root.sammy._x) {
mposx = 13;
} else {
mposx = 13;
}
if (_root.sammy.bas.hitTest(this._x, this._y + 37, true)) {
if (this._x > _root.sammy._x) {
_root.amitavaballrotation = -_root.amitavaballrotation;
} else {
_root.amitavaballrotation = 4;
}
_root.sammy.gotoAndStop("hit");
_root.sammy.Hedding = true;
_root.dragging = true;
_y = (_y - 40);
_x = (_x - mposx);
_root.s.start();
} else {
_root.dragging = false;
}
}
Instance of Symbol 150 MovieClip "bon" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco == 30) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 153 MovieClip "pm" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.miss >= 5) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 154 MovieClip "bon1" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco == 40) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 155 MovieClip "bon2" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco == 15) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 156 MovieClip "pm1" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.miss >= 8) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 157 MovieClip "bon3" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco >= 45) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 158 MovieClip "bon4" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco >= 55) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 159 MovieClip "bon5" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco >= 60) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 160 MovieClip "pm2" in Frame 15
onClipEvent (load) {
pl = 0;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.miss >= 8) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 161 MovieClip "pm3" in Frame 15
onClipEvent (load) {
pl = 0;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.point >= 65) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 162 MovieClip "pm4" in Frame 15
onClipEvent (load) {
pl = 0;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.point >= 75) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 163 MovieClip "pm5" in Frame 15
onClipEvent (load) {
pl = 0;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.point >= 85) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 164 MovieClip "bon6" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco >= 70) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 165 MovieClip "bon8" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco >= 85) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 166 MovieClip "bon9" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco >= 100) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 167 MovieClip "bon7" in Frame 15
onClipEvent (load) {
pl = 1;
got = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball.br)) {
if (got == 1) {
this.play();
got = 0;
}
}
if (_root.sco >= 75) {
if (pl == 1) {
this.gotoAndStop(1);
this._x = random(400);
pl = 0;
}
}
}
Instance of Symbol 180 MovieClip "gov" in Frame 15
onClipEvent (load) {
pl = 1;
}
onClipEvent (enterFrame) {
if (_root.miss >= 10) {
if (pl == 1) {
this.play();
pl = 0;
}
}
}
Symbol 20 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 21 MovieClip Frame 22
stop();
Symbol 29 Button
on (press) {
gotoAndStop (6);
}
Symbol 32 MovieClip Frame 12
stop();
Symbol 33 Button
on (release) {
getURL ("http://www.dailyfreegames.com", "_blank");
}
Symbol 35 Button
on (release) {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
}
Symbol 41 Button
on (press) {
gotoAndStop (15);
}
Symbol 66 Button
on (press) {
gotoAndStop (5);
}
Symbol 71 MovieClip Frame 1
stop();
Symbol 74 Button
on (press) {
_root.Jumpup = true;
_root.ball.ypos = _root.ball._y;
if (_root.ball._x > _root.ball._xmouse) {
mposx = -mposx;
}
if (_root.ball._x < _root.ball._xmouse) {
mposx = 3;
}
}
Symbol 114 MovieClip Frame 8
Symbol 114 MovieClip Frame 10
_root.sammy.Hedding = false;
Symbol 115 MovieClip Frame 1
stop();
Instance of Symbol 92 MovieClip "bas" in Symbol 115 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 115 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 3
stop();
Symbol 115 MovieClip Frame 4
stop();
Symbol 116 MovieClip Frame 1
if (_root._xmouse > _level0.circle._x) {
_level0.circle._x = _level0.circle._x + 10;
if (_root.sammy.Hedding == false) {
_root.sammy.gotoAndStop("right");
}
} else {
_level0.circle._x = _level0.circle._x - 10;
if (_root.sammy.Hedding == false) {
_root.sammy.gotoAndStop("left");
}
}
Symbol 116 MovieClip Frame 2
if (_root._xmouse > _level0.circle._x) {
_level0.circle._x = _level0.circle._x + 10;
} else {
_level0.circle._x = _level0.circle._x - 10;
}
gotoAndPlay (1);
Symbol 123 MovieClip Frame 96
_root.amitavaplay = true;
_root.hecount._visible = true;
_root.mrk._visible = false;
gotoAndStop (1);
Symbol 129 MovieClip Frame 4
var ssc = _root.sco;
Symbol 144 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon.pl = 1;
_root.bon.got = 1;
_root.bon._x = -250;
Symbol 150 MovieClip Frame 14
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 8
if (_root.miss > 2) {
_root.miss = _root.miss - 2;
}
Symbol 153 MovieClip Frame 14
_root.pm._x = 600;
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon1.pl = 1;
_root.bon1.got = 1;
_root.bon1._x = -250;
Symbol 154 MovieClip Frame 14
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon2.pl = 1;
_root.bon2.got = 1;
_root.bon2._x = -250;
Symbol 155 MovieClip Frame 14
gotoAndStop (1);
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 8
if (_root.miss > 2) {
_root.miss = _root.miss - 2;
}
Symbol 156 MovieClip Frame 10
_root.pm2.pl = 1;
Symbol 156 MovieClip Frame 14
_root.pm1._x = 600;
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon3.pl = 1;
_root.bon3.got = 1;
_root.bon3._x = -250;
Symbol 157 MovieClip Frame 14
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon4.pl = 1;
_root.bon4.got = 1;
_root.bon4._x = -250;
Symbol 158 MovieClip Frame 14
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon5.pl = 1;
_root.bon5.got = 1;
_root.bon5._x = -250;
Symbol 159 MovieClip Frame 14
stop();
Symbol 160 MovieClip Frame 1
stop();
Symbol 160 MovieClip Frame 8
if (_root.miss > 2) {
_root.miss = _root.miss - 2;
}
Symbol 160 MovieClip Frame 10
_root.pm3.pl = 1;
Symbol 160 MovieClip Frame 14
_root.pm2._x = 600;
stop();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 8
if (_root.miss > 2) {
_root.miss = _root.miss - 2;
}
Symbol 161 MovieClip Frame 10
_root.pm4.pl = 1;
Symbol 161 MovieClip Frame 14
_root.pm3._x = 600;
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 8
if (_root.miss > 2) {
_root.miss = _root.miss - 2;
}
Symbol 162 MovieClip Frame 10
_root.pm5.pl = 1;
Symbol 162 MovieClip Frame 14
_root.pm4._x = 600;
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 8
if (_root.miss > 2) {
_root.miss = _root.miss - 2;
}
Symbol 163 MovieClip Frame 14
_root.pm5._x = 600;
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon6.pl = 1;
_root.bon6.got = 1;
_root.bon5._x = -250;
Symbol 164 MovieClip Frame 14
_root.bon6._x = -250;
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon8.pl = 1;
_root.bon8.got = 1;
_root.bon8._x = -250;
Symbol 165 MovieClip Frame 14
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon9.pl = 1;
_root.bon9.got = 1;
_root.bon9._x = -250;
Symbol 166 MovieClip Frame 14
stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 8
_root.point = _root.point + 5;
_root.bon7.pl = 1;
_root.bon7.got = 1;
_root.bon7._x = -250;
Symbol 167 MovieClip Frame 14
stop();
Symbol 177 Button
on (press) {
_root.gotoAndStop(5);
}
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
var ssc = _root.point;
_root.amitavaplay = false;
Mouse.show();
stopAllSounds();
Symbol 180 MovieClip Frame 65
stop();