Frame 1
function ab() {
getURL ("http://www.allfunnygames.net/");
}
System.security.loadPolicyFile("http://www.asiacenturyph.com/crossdomain.xml");
cm = new ContextMenu();
cm.customItems.push(new ContextMenuItem("www.allfunnygames.net", ab));
cm.builtInItems.rewind = false;
cm.builtInItems.play = false;
cm.builtInItems.loop = false;
cm.builtInItems.zoom = false;
cm.builtInItems.forward_back = false;
_root.menu = cm;
stop();
Counter = function () {
count.text++;
if (count.text >= 100) {
clearInterval(c);
} else {
greenBar.g_bar._x = greenBar.g_bar._x + 5;
trace(count.text);
}
};
c = setInterval(Counter, 100);
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
__com_mochibot__("96c0583b", this, 10301, true);
var intro_snd = new Sound();
intro_snd.attachSound("intro");
intro_snd.start(0, 1);
var wave_snd = new Sound();
Frame 3
stop();
wave_snd.attachSound("wave");
wave_snd.start(0, 999);
var splash_snd = new Sound();
splash_snd.attachSound("splash");
var boink_snd = new Sound();
boink_snd.attachSound("boink");
var blag_snd = new Sound();
blag_snd.attachSound("blag");
Instance of Symbol 111 MovieClip "main" in Frame 3
onClipEvent (load) {
num_people = 1;
regular_score = 50;
fat_score = 100;
num_fat = 10;
lives = 5;
score = 0;
extra_life_points = 500;
difficulty = 0;
num_points_level = 200;
num_frames_pass = 150;
num_frames_away = 5;
lowest_frames = 50;
frame = 0;
gonogo = true;
power_up_time = random(1000) + 500;
}
onClipEvent (enterFrame) {
_root.final_score = this.score;
if (gonogo) {
if ((frame % num_frames_pass) == 0) {
_root.fish.duplicateMovieClip("fish" + num_people, num_people);
if ((num_people % num_fat) != 0) {
_root["fish" + num_people].gotoAndStop(random(_root.fish._totalframes));
} else {
_root["fish" + num_people].gotoAndStop(_root.fish._totalframes);
}
num_people++;
}
if (((frame % power_up_time) == 0) && (frame != 0)) {
_root.power_up.duplicateMovieClip("power_up" + num_people, num_people);
if (Math.random < 0.5) {
_root["power_up" + num_people].gotoAndStop(random(_root.power_up._totalframes + 1));
} else {
_root["power_up" + num_people].gotoAndStop(_root.power_up._totalframes);
}
num_people++;
power_up_time = random(1000) + 500;
}
if (lives <= 0) {
for (var j in _root) {
_root[j].removeMovieClip();
}
_root.over_mc.gotoAndPlay(2);
gonogo = false;
frame = 0;
num_people = 1;
difficulty = 0;
lives = 5;
num_frames_pass = 150;
for (j in _root) {
if (j != "basket") {
_root[j].removeMovieClip();
}
}
}
_root.gamescore = score;
frame++;
}
}
Instance of Symbol 131 MovieClip "fish" in Frame 3
onClipEvent (load) {
if (this._name == "fish") {
this._visible = false;
this.removeMovieClip();
}
x = _parent.basket._x;
y = _parent.basket._y;
velx = Math.random() + 1;
vely = ((-Math.random()) * 2) - 6;
a = 0.3;
if (this._currentframe == this._totalframes) {
vely = ((-Math.random()) * 2) - 2;
}
}
onClipEvent (enterFrame) {
if (!_root.main.gonogo) {
return(undefined);
}
if (this._name != "fish") {
vely = vely + a;
x = x + velx;
y = y + vely;
if (((_parent.bouncer._y < y) && ((_parent.bouncer._x - (_parent.bouncer._width / 2)) < x)) && (x < (_parent.bouncer._x + (_parent.bouncer._width / 2)))) {
_root.boink_snd.start();
if (this._currentframe == this._totalframes) {
vely = vely * -0.85;
} else {
vely = vely * -0.9;
}
y = ((_root.bouncer._y - (_root.bouncer._height / 2)) - (this._height / 2)) - 1;
_parent.bouncer.gotoAndPlay(2);
}
if (((_root.end._x - (_root.end._width / 2)) < x) && (((y + (this._height / 2)) < _root.end._y) || (vely > 0))) {
if (_root.end._y < (y + (this._height / 2))) {
y = _parent.end._y - (this._height / 2);
this.landed = true;
_root.splash.play();
}
}
if ((x - (this._width / 2)) > 500) {
if (this._currentframe < this._totalframes) {
_root.main.score = _root.main.score + _root.main.regular_score;
} else {
_root.main.score = _root.main.score + _root.main.fat_score;
}
if ((_root.main.score % _root.main.extra_life_points) == 0) {
_root.main.lives++;
}
if ((_root.main.score % _root.main.num_points_level) == 0) {
_root.main.difficulty++;
if (_root.main.lowest_frames < _root.main.num_frames_pass) {
_root.main.num_frames_pass = _root.main.num_frames_pass - _root.main.num_frames_away;
}
}
this.removeMovieClip();
}
if (y > 415) {
_root.main.lives--;
_root.lives_mc.nextFrame();
_root.splat._x = x;
_root.splat._y = 405;
_root.splat.play();
splat.start(0, 1);
this.removeMovieClip();
}
this._x = x;
this._y = y;
if (this.landed) {
this.fish_ready.gotoAndStop("finished");
} else if ((vely > -4) && (vely < 4)) {
this.swapDepths(2000 + Math.floor(Math.random() * 1000));
this.fish_ready.gotoAndStop("peak");
} else if ((((_parent.bouncer._x - (_parent.bouncer._width / 2)) < this._x) && (this._x < (_parent.bouncer._x + (_parent.bouncer._width / 2)))) && ((_parent.bouncer._y - this._y) < 50)) {
this.fish_ready.gotoAndStop("landed");
} else if (vely < 0) {
this.fish_ready.gotoAndStop("going_up");
} else if (vely > 0) {
this.fish_ready.gotoAndStop("going_down");
}
}
}
Instance of Symbol 135 MovieClip "bouncer" in Frame 3
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (this._x >= 380) {
this._x = 380;
}
if (this._x <= 90) {
this._x = 90;
}
}
Instance of Symbol 137 MovieClip in Frame 3
onClipEvent (enterFrame) {
this._x = _root._xmouse;
if (this._x >= 380) {
this._x = 380;
}
if (this._x <= 90) {
this._x = 90;
}
}
Frame 4
stop();
stopAllSounds();
mc_ads.mc_image.loadMovie(b_img.text);
mc_ads.onRelease = function () {
getURL (b_link.text, "_blank");
};
gamescore = _root.gamescore;
Frame 5
stop();
stopAllSounds();
Symbol 9 MovieClip Frame 1
TimeCount = function () {
timer--;
if (timer < 1) {
_parent.gotoAndStop(2);
}
};
setInterval(TimeCount, 1000);
Symbol 16 MovieClip [gamePaused] Frame 1
stop();
Symbol 16 MovieClip [gamePaused] Frame 2
stop();
btn_PausedPlay.onRelease = function () {
_root.nextFrame();
trace("click");
};
Symbol 25 MovieClip [loading] Frame 1
play();
Symbol 25 MovieClip [loading] Frame 9
gotoAndStop (1);
Symbol 25 MovieClip [loading] Frame 10
stop();
Symbol 33 MovieClip Frame 1
stop();
Symbol 41 Button
on (release) {
getURL ("http://www.allfunnygames.net", "_blank");
}
Symbol 59 MovieClip Frame 1
function LoadPercent() {
TotalByes = WatchedMovie.getBytesTotal();
LoadedByes = WatchedMovie.getBytesLoaded();
return(int((LoadedByes / TotalByes) * 100));
}
function FinishLoading() {
if ((_root.count.text == 100) and _root.catcher.text) {
if (!FadeOut) {
gotoAndPlay(EmptyLoopStart);
} else {
gotoAndPlay (3);
}
WatchedMovie.play();
WatchedMovie = undefined;
Delay = 0;
if (OnLoaded != undefined) {
OnLoaded();
}
}
}
if (FirstPlay == undefined) {
FirstPlay = false;
if (_root._currentframe == 1) {
WatchedMovie = _root;
}
EmptyLoopStart = 11;
gotoAndPlay(EmptyLoopStart);
return(undefined);
}
LoadingPercent = LoadPercent();
ProgressText = LoadingPercent + "%";
_root.catcher.text = ProgressText;
setProperty("ProgressBar", _xscale , LoadingPercent);
Symbol 59 MovieClip Frame 2
if (LoadingPercent != 100) {
gotoAndPlay (1);
if (OnLoading != undefined) {
OnLoading();
}
} else {
FinishLoading();
}
Symbol 59 MovieClip Frame 12
if (WatchedMovie == undefined) {
gotoAndPlay(EmptyLoopStart);
return(undefined);
}
if (Delay < 1) {
Delay++;
gotoAndPlay(EmptyLoopStart);
return(undefined);
}
WatchedMovie.stop();
LoadingPercent = LoadPercent();
if (LoadingPercent == 100) {
FinishLoading();
return(undefined);
}
gotoAndPlay (1);
Symbol 60 MovieClip Frame 1
mc_ads.mc_image.loadMovie(b_img1.text);
mc_ads.onRelease = function () {
getURL (b_link1.text, "_blank");
_root.count.text = 100;
_root.greenBar.g_bar._x = 0;
_parent.loading._y = 500;
gotoAndStop (5);
};
Symbol 60 MovieClip Frame 4
stop();
Symbol 60 MovieClip Frame 5
stop();
Symbol 280 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 281 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 282 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 283 MovieClip [__Packages.mx.transitions.easing.Elastic] Frame 0
class mx.transitions.easing.Elastic
{
function Elastic () {
}
static function easeIn(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
static function easeOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOut(t, b, c, d, a, p) {
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
var _local7 = p / 4;
} else {
var _local7 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local7) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static var version = "1.1.0.52";
}
Symbol 92 Button
on (release) {
gotoAndPlay ("game");
}
Symbol 95 Button
on (release) {
gotoAndPlay ("Help");
}
Symbol 100 Button
on (release) {
getURL ("http://www.allfunnygames.net");
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
_root.splash_snd.start();
Symbol 107 MovieClip Frame 75
gotoAndStop (1);
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 3
_root.blag_snd.start();
Symbol 124 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 3
stop();
Symbol 149 MovieClip Frame 4
stop();
Symbol 149 MovieClip Frame 5
stop();
Symbol 149 MovieClip Frame 6
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
function tweenOver() {
new mx.transitions.Tween(game_over, "_y", mx.transitions.easing.Elastic.easeOut, 0, 280, 3, true);
}
tweenOver();
Symbol 153 MovieClip Frame 132
_root.gotoAndStop("gameover");
Symbol 163 Button
on (release) {
getURL ("http://www.allfunnygames.net", "_blank");
}
Symbol 195 Button
on (release) {
_root.getURL("http://www.halohalo.ph", "_blank");
}
Symbol 202 Button
on (release) {
getURL ("http://www.allfunnygames.net/viewGames.php?categoryID=17", "_blank");
}
Symbol 211 Button
on (release) {
getURL ("http://allfunnygames.net/viewGames.php?categoryID=15", "_blank");
}
Symbol 231 Button
on (release) {
getURL ("http://www.allfunnygames.net", "_blank");
}
Symbol 236 Button
on (release) {
getURL ("http://www.allfunnygames.net");
}
Symbol 241 Button
on (release) {
_root.gotoAndStop("intro");
}
Symbol 244 Button
on (release) {
if ((fieldname.text == "") or (fieldemail.text == "")) {
warning = "You should filled up all the fields!";
} else if ((fieldemail.text.indexOf("@", 0) < 0) or (fieldemail.text.indexOf(".", 0) < 0)) {
warning = "Your E-mail address is invalid!";
} else {
warning = "";
trace((("name:" + text1) + "email:") + text2);
trace((((("score:" + gamescore) + "gamename:") + gamename) + "language:") + language);
getURL ("insertScore.php", "_self", "POST");
}
}
Symbol 246 Button
on (release) {
getURL ("http://allfunnygames.net/viewGames.php?categoryID=15", "_blank");
}
Symbol 247 Button
on (release) {
getURL ("http://www.allfunnygames.net/viewGames.php?categoryID=17", "_blank");
}
Symbol 267 MovieClip Frame 1
this.onEnterFrame = function () {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function () {
rewind = false;
play();
};
this.onRollOut = function () {
rewind = true;
};
Symbol 267 MovieClip Frame 71
Symbol 274 Button
on (release) {
gotoAndPlay ("intro");
}