Frame 1
function sendScore(s_name) {
strip_array = new Array();
strip_array = s_name.split(">");
s_name = strip_array[2];
strip_array = s_name.split("<");
s_name = strip_array[0];
trace(s_name);
gotoAndStop ("wait");
scoreSend.game = 26;
scoreSend.score = top_score;
scoreSend.name = s_name;
getScore();
}
var last_level_to_finish = 10;
var level_goal_1 = 5;
var level_goal_2 = 5;
var level_goal_3 = 10;
var level_goal_4 = 10;
var level_goal_5 = 15;
var level_goal_6 = 15;
var level_goal_7 = 20;
var level_goal_8 = 20;
var level_goal_9 = 25;
var level_goal_10 = 30;
var frisbee_time_bonus = 5;
var damage_total = 0;
var base_frisbee_y = 300;
var power_limit = 100;
var mouse_influence = 10;
childrenArray = new Array("child1", "child2", "child3", "child4", "child5", "child6");
createPercentages = function () {
delete frisbeeArray;
frisbeeArray = new Array();
i = 0;
while (i < frisbee_percent) {
frisbeeArray.push("frisbee_mc");
i++;
}
i = 0;
while (i < power_bonus_percent) {
frisbeeArray.push("power_bonus_mc");
i++;
}
i = 0;
while (i < flash_bonus_percent) {
frisbeeArray.push("flash_bonus_mc");
i++;
}
i = 0;
while (i < gauge_bonus_percent) {
frisbeeArray.push("gauge_bonus_mc");
i++;
}
i = 0;
while (i < power_damage_percent) {
frisbeeArray.push("power_damage_mc");
i++;
}
};
mainSound = new Sound();
soundMov.soundState = 1;
btnSound = new Sound();
btnSound.attachSound("button_ding");
var pointSound = new Sound();
pointSound.attachSound("point_sound");
var buzzSound = new Sound();
buzzSound.attachSound("buzz");
var point2Sound = new Sound();
point2Sound.attachSound("point2");
sineMotionCurve = function () {
j++;
var speed = ((Math.random() * 5) + 5);
((rand_num < 4) ? (rand_num++) : ((rand_num = 0)));
var frisbeenum = random(frisbeeArray.length);
eval (frisbeeArray[frisbeenum]).duplicateMovieClip("mc" + j, j);
var rand_child_num = int(Math.random() * 6);
eval ("mc" + j).random_chosen_child_position = eval (childrenArray[rand_child_num])._y;
eval (childrenArray[rand_child_num]).gotoAndPlay("moving");
if (rand_child_num > 2) {
eval ("mc" + j).cos_direction = -1;
Set("var" + j, 640 / speed);
eval ("mc" + j).random_chosen_child_positionx = eval (childrenArray[rand_child_num])._x - 640;
if ((frisbeenum = 3)) {
eval ("mc" + j).gotoAndPlay("backwards");
}
} else {
eval ("mc" + j).cos_direction = 1;
Set("var" + j, 0);
eval ("mc" + j).random_chosen_child_positionx = eval (childrenArray[rand_child_num])._x + 25;
}
eval ("mc" + j).temp_incr = eval ("var" + j);
eval ("mc" + j).y_incr = 0;
eval ("mc" + j).sine_strength = int(Math.random() * 100);
eval ("mc" + j).onEnterFrame = function () {
if (this.y_incr > (640 / speed)) {
delete this.onEnterFrame;
this._visible = false;
}
_root.eval(childrenArray[rand_child_num])._visible = true;
this.temp_incr = this.temp_incr + this.cos_direction;
this.y_incr++;
this._y = Math.cos(0.0628318530717959 * (this.y_incr / 2)) * this.sine_strength;
this._y = this._y - ((this.sine_strength - this.random_chosen_child_position) - 12);
this._x = (speed * this.temp_incr) + this.random_chosen_child_positionx;
if (this.hitTest(dog_pt_mc)) {
switch (this.bonus) {
case 0 :
frisbee_mc_hit();
point2Sound.start();
break;
case 1 :
power_bonus_hit();
pointSound.start();
break;
case 2 :
seconds = seconds + frisbee_time_bonus;
pointSound.start();
break;
case 3 :
gauge_bonus_hit();
pointSound.start();
break;
case 4 :
power_damage_hit();
buzzSound.start();
}
delete this.onEnterFrame;
this._visible = false;
}
};
};
dogFollowMouse = function () {
dog_pt_mc._x = dog_pt_mc._x + ((_xmouse - dog_pt_mc._x) / mouse_influence);
if (dog_pt_mc._x < 10) {
dog_pt_mc._x = 10;
}
if (dog_pt_mc._x > 630) {
dog_pt_mc._x = 630;
}
};
dogSineJump = function () {
jpower = jpower + 3;
var _local1 = Math.sin((Math.PI / (-power)) * (jpower / flash_bonus));
dog_pt_mc.dog_mc._y = _local1 * (power * power_bonus);
if (_local1 <= last_math_power) {
(dog_pt_mc.dog_mc.gotoAndStop("flyup"));// not popped
} else {
(dog_pt_mc.dog_mc.gotoAndStop("flydown"));// not popped
}
last_math_power = _local1;
};
powerBonus = function () {
power_bonus = 4.5;
power_bonus_check--;
power_bonus_meter.gotoAndStop(power_bonus_meter._currentframe + 1);
};
flashBonus = function () {
flash_bonus = 1;
flash_bonus_check--;
flash_bonus_meter.gotoAndStop(flash_bonus_meter._currentframe + 1);
};
gaugeBonus = function () {
gauge_bonus = 5;
gauge_bonus_check--;
gauge_bonus_meter.gotoAndStop(gauge_bonus_meter._currentframe + 1);
};
powerUp = function () {
power = 0;
powerup_mc._visible = true;
((power_bonus_check > 1) ? (powerBonus()) : ((power_bonus = 4)));
((flash_bonus_check > 1) ? (flashBonus()) : ((flash_bonus = 2)));
((gauge_bonus_check > 1) ? (gaugeBonus()) : ((gauge_bonus = 2)));
dog_pt_mc.onEnterFrame = function () {
((power < power_limit) ? ((power = power + gauge_bonus)) : 0);
powerGaugeEngine();
dogFollowMouse();
};
};
powerGaugeEngine = function () {
var _local2 = powerup_mc._totalframes / 40;
var _local1 = int(power * _local2);
powerup_mc.gotoAndStop(_local1);
powerup_mc._x = dog_pt_mc._x;
powerup_mc._y = dog_pt_mc._y;
};
frisbee_mc_hit = function () {
frisbee_pts++;
if (frisbee_pts == this["level_goal_" + game_level]) {
finishLevel();
}
};
power_bonus_hit = function () {
power_bonus_check = 5;
power_bonus_meter.gotoAndStop(1);
};
flash_bonus_hit = function () {
flash_bonus_check = 5;
flash_bonus_meter.gotoAndStop(1);
};
gauge_bonus_hit = function () {
gauge_bonus_check = 5;
gauge_bonus_meter.gotoAndStop(1);
};
power_damage_hit = function () {
power_bonus_check = 0;
flash_bonus_check = 0;
gauge_bonus_check = 0;
((power_bonus_meter._currentframe != power_bonus_meter._totalframes) ? (power_bonus_meter.play()) : 0);
((flash_bonus_meter._currentframe != flash_bonus_meter._totalframes) ? (flash_bonus_meter.play()) : 0);
((gauge_bonus_meter._currentframe != gauge_bonus_meter._totalframes) ? (gauge_bonus_meter.play()) : 0);
damage_total = damage_total - 3;
};
jumpShot = function () {
jpower = 0;
dog_pt_mc.dog_mc._y = -1;
powerup_mc._y = -100;
powerup_mc._visible = false;
dog_pt_mc.onEnterFrame = function () {
if (dog_pt_mc.dog_mc._y < 0) {
dogSineJump();
dogFollowMouse();
} else {
dog_pt_mc.dog_mc._y = 0;
dog_pt_mc.dog_mc.gotoAndStop("sit");
delete this.onEnterFrame;
}
};
};
resetGame = function () {
clearInterval(frisbeeinterval);
clearInterval(time_int);
delete dog_pt_mc.onPress;
delete dog_pt_mc.onRelease;
delete dog_pt_mc.onReleaseOutside;
var i = 0;
while (i < 1000) {
eval ("mc" + i).removeMovieClip();
i++;
}
};
getBonusScore = function () {
if (total_score < top_score) {
total_score++;
} else {
clearInterval(scoreRun);
if (game_lose) {
clearScore();
gotoAndStop ("game_lose_cont");
game_lose = undefined;
} else if (game_level > last_level_to_finish) {
clearScore();
gotoAndStop ("game_win");
} else {
gotoAndStop ("level_done_proceed");
}
}
};
tallyPoints = function () {
frisbees_caught = frisbee_pts * 10;
time_bonus = (minutes * 60) + seconds;
top_score = top_score + ((frisbees_caught + time_bonus) + damage_total);
};
finishLevel = function () {
game_level++;
gotoAndStop ("level_done");
};
clearScore = function () {
var _local2 = 0;
var _local1 = 0;
};
gameOver = function () {
clearInterval(time_int);
gotoAndStop ("game_lose");
};
timer = function () {
if (seconds > 59) {
minutes = 1;
seconds = 0;
}
if (seconds == 0) {
if (minutes == 0) {
gameOver();
} else {
seconds = 59;
minutes--;
}
} else {
seconds--;
}
if (seconds < 10) {
time_txt = (minutes + ":0") + seconds;
} else {
time_txt = (minutes + ":") + seconds;
}
};
var gameID = 26;
scoreSend = new LoadVars();
scoreGet = new LoadVars();
resultsSend = new LoadVars();
resultsGet = new LoadVars();
scoreGet.onLoad = function (result) {
if (result) {
trace(unescape(this));
resultsSend.game = 26;
}
};
resultsGet.onLoad = function (success) {
if (success) {
trace(unescape(this));
numScores = this.NumunderdogFetch;
trace("numScores = " + numScores);
if (numScores > 14) {
numScores == 14;
}
var _local3 = 0;
while (_local3 < numScores) {
_root["underdogFetchScore" + _local3] = this["underdogFetchScore" + _local3];
_root["underdogFetchName" + _local3] = this["underdogFetchName" + _local3];
_local3++;
}
gotoAndStop ("top_scores");
}
};
stop();
this.onEnterFrame = function () {
LB = this.getBytesLoaded();
TB = this.getBytesTotal();
PC = (LB / TB) * 100;
loaderbar.setbar(PC);
if ((TB > 4) && (PC == 100)) {
delete this.onEnterFrame;
if (_root.jump) {
loadSection(_root.jump);
} else {
this.gotoAndPlay(2);
}
}
};
_global.ipb_get_gname = function () {
var _local4 = _root._url;
var _local5 = "";
var _local3 = "";
var _local6 = _local4.lastIndexOf("\\") + 1;
if ((_local6 == -1) || (_local6 == 0)) {
_local6 = _local4.lastIndexOf("/") + 1;
}
var _local2 = _local6;
var _local7 = String(_local4).length;
while (_local2 < String(_local4).length) {
_local3 = _local4.charAt(_local2);
if (_local3 == ".") {
break;
}
_local5 = _local5 + _local3;
_local2++;
}
return(_local5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success) {
if (success) {
_global.ipb_scoreVar = this.scoreVar;
}
};
fname = ((("arcade/gamedata/" + ipb_gname) + "/") + ipb_gname) + ".txt";
xx.load(fname);
Frame 16
_root.dog_pt_mc.dog_mc.gotoAndStop("flyup");
Frame 24
_root.dog_pt_mc.dog_mc.gotoAndStop("sit");
Frame 31
stop();
var game_level = 1;
var top_score = 0;
var total_score = 0;
power_bonus_meter.gotoAndStop(power_bonus_meter._totalframes);
flash_bonus_meter.gotoAndStop(flash_bonus_meter._totalframes);
gauge_bonus_meter.gotoAndStop(gauge_bonus_meter._totalframes);
var minutes = 1;
var seconds = 0;
var minutes_txt = (minutes + " min");
var i = 0;
var j = 0;
var jpower = 0;
var rand_num = 0;
var power_bonus = 4;
var flash_bonus = 2;
var gauge_bonus = 2;
var power_bonus_check = 0;
var flash_bonus_check = 0;
var gauge_bonus_check = 0;
var frisbee_pts = 0;
var damage_total = 0;
var level_txt = ("LEVEL " + game_level);
var frisbee_goal = this["level_goal_" + game_level];
Frame 44
if (_global.clicktrack != undefined) {
gotoAndPlay(_global.clicktrack);
} else {
gotoAndStop ("splash_out");
}
Frame 62
stop();
Frame 75
if (_global.clicktrack != undefined) {
gotoAndPlay(_global.clicktrack);
} else {
gotoAndStop ("rules_out");
}
Frame 90
stop();
power_bonus_meter.gotoAndStop(power_bonus_meter._totalframes);
flash_bonus_meter.gotoAndStop(flash_bonus_meter._totalframes);
gauge_bonus_meter.gotoAndStop(gauge_bonus_meter._totalframes);
var minutes = 1;
var seconds = 0;
var minutes_txt = (minutes + " min");
var i = 0;
var j = 0;
var jpower = 0;
var rand_num = 0;
var power_bonus = 4;
var flash_bonus = 2;
var gauge_bonus = 2;
var power_bonus_check = 0;
var flash_bonus_check = 0;
var gauge_bonus_check = 0;
var frisbee_pts = 0;
var damage_total = 0;
var level_txt = ("LEVEL " + game_level);
var frisbee_goal = this["level_goal_" + game_level];
Frame 111
stop();
var frisbeeinterval = setInterval(sineMotionCurve, 1000);
var time_int = setInterval(timer, 1000);
dog_pt_mc.onPress = function () {
if (dog_pt_mc.dog_mc._y > -1) {
dog_pt_mc.dog_mc.gotoAndStop("squat");
powerUp();
}
};
dog_pt_mc.onRelease = (dog_pt_mc.onReleaseOutside = function () {
if (dog_pt_mc.dog_mc._y > -1) {
jumpShot();
}
});
switch (game_level) {
case 1 :
var frisbee_percent = 1;
var power_bonus_percent = 0;
var flash_bonus_percent = 0;
var gauge_bonus_percent = 0;
var power_damage_percent = 0;
break;
case 2 :
var frisbee_percent = 100;
var power_bonus_percent = 10;
var flash_bonus_percent = 0;
var gauge_bonus_percent = 0;
var power_damage_percent = 10;
break;
case 3 :
var frisbee_percent = 90;
var power_bonus_percent = 10;
var flash_bonus_percent = 0;
var gauge_bonus_percent = 0;
var power_damage_percent = 10;
break;
case 4 :
var frisbee_percent = 70;
var power_bonus_percent = 10;
var flash_bonus_percent = 0;
var gauge_bonus_percent = 10;
var power_damage_percent = 10;
break;
case 5 :
var frisbee_percent = 60;
var power_bonus_percent = 10;
var flash_bonus_percent = 0;
var gauge_bonus_percent = 10;
var power_damage_percent = 10;
break;
case 6 :
var frisbee_percent = 50;
var power_bonus_percent = 10;
var flash_bonus_percent = 2;
var gauge_bonus_percent = 10;
var power_damage_percent = 10;
break;
case 7 :
var frisbee_percent = 40;
var power_bonus_percent = 10;
var flash_bonus_percent = 2;
var gauge_bonus_percent = 10;
var power_damage_percent = 10;
break;
case 8 :
var frisbee_percent = 30;
var power_bonus_percent = 10;
var flash_bonus_percent = 2;
var gauge_bonus_percent = 10;
var power_damage_percent = 10;
break;
case 9 :
var frisbee_percent = 20;
var power_bonus_percent = 10;
var flash_bonus_percent = 2;
var gauge_bonus_percent = 10;
var power_damage_percent = 20;
break;
case 10 :
var frisbee_percent = 20;
var power_bonus_percent = 10;
var flash_bonus_percent = 5;
var gauge_bonus_percent = 10;
var power_damage_percent = 30;
}
createPercentages();
Frame 121
resetGame();
Frame 131
resetGame();
tallyPoints();
scoreRun = setInterval(getBonusScore, 10);
Frame 141
resetGame();
scoreTxt = "SCORE: " + top_score;
submitScoreBtn.onRelease = function () {
if ((myName != "") || (myName != undefined)) {
sendScore(myName);
}
};
submitScoreBtn.onRollOver = function () {
_root.btnSound.start();
};
Frame 165
resetGame();
tallyPoints();
scoreRun = setInterval(getBonusScore, 10);
game_lose = true;
submitScoreBtn.onRelease = function () {
if ((myName != "") || (myName != undefined)) {
sendScore(myName);
}
};
submitScoreBtn.onRollOver = function () {
_root.btnSound.start();
};
Frame 169
scoreTxt = "SCORE: " + top_score;
submitScoreBtn.onRelease = function () {
if ((myName != "") || (myName != undefined)) {
sendScore(myName);
}
};
submitScoreBtn.onRollOver = function () {
_root.btnSound.start();
};
Symbol 13 MovieClip Frame 1
function setbar(PC) {
mask._xscale = PC;
}
Symbol 19 Button
on (release) {
_parent.mainSound.setVolume(0);
soundState = 0;
nextFrame();
}
Symbol 22 Button
on (release) {
_parent.mainSound.setVolume(100);
soundState = 1;
prevFrame();
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 28 Button
on (release) {
}
Symbol 253 MovieClip Frame 1
if (yy.savescore == 1) {
if (ipb_score == undefined) {
ipb_score = eval (_global.ipb_scoreVar);
}
xx = new LoadVars();
xx.arcadegid = _root.ibpro_gameid;
xx.gscore = ipb_score;
xx.gname = _global.ipb_get_gname();
xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
stop();
}
_global.ipbSend = function (ipb_score) {
_root._visible = false;
_root.enabled = false;
xx = new LoadVars();
yy = new LoadVars();
xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
};
Symbol 59 MovieClip Frame 1
stop();
Symbol 61 Button
on (release) {
_global.clicktrack = "rules_in";
_root.play();
}
on (rollOver) {
_root.dog_pt_mc.dog_mc.gotoAndStop("look_right");
_root.btnSound.start();
}
on (rollOut) {
_root.dog_pt_mc.dog_mc.gotoAndStop("sit");
}
Symbol 62 Button
on (release) {
_global.clicktrack = "game_start";
_root.play();
}
on (rollOver) {
_root.dog_pt_mc.dog_mc.gotoAndStop("look_left");
_root.btnSound.start();
}
on (rollOut) {
_root.dog_pt_mc.dog_mc.gotoAndStop("sit");
}
Symbol 71 Button
on (release) {
_global.clicktrack = "splash_in";
_root.play();
}
on (rollOver) {
_root.dog_pt_mc.dog_mc.gotoAndStop("look_right");
_root.btnSound.start();
}
on (rollOut) {
_root.dog_pt_mc.dog_mc.gotoAndStop("sit");
}
Symbol 98 Button
on (release) {
play();
}
on (rollOver) {
_root.btnSound.start();
}
Symbol 110 MovieClip Frame 1
bonus = 3;
Symbol 113 MovieClip Frame 1
bonus = 1;
Symbol 116 MovieClip Frame 1
bonus = 2;
Symbol 122 MovieClip Frame 5
stop();
Symbol 125 MovieClip Frame 5
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
bonus = 0;
Symbol 150 MovieClip Frame 1
bonus = 4;
Symbol 150 MovieClip Frame 6
gotoAndPlay ("forward");
Symbol 150 MovieClip Frame 7
bonus = 4;
Symbol 150 MovieClip Frame 12
gotoAndPlay ("backwards");
Symbol 162 MovieClip Frame 40
stop();
Symbol 172 Button
on (release) {
gotoAndStop ("quit_confirm");
}
Symbol 181 Button
on (release) {
gotoAndPlay ("splash_in");
}
Symbol 185 Button
on (release) {
gotoAndStop ("game_play");
}
Symbol 206 Button
on (release) {
gotoAndStop ("reset");
}
on (rollOver) {
_root.btnSound.start();
}
Symbol 252 Button
on (release) {
_root.Tay = top_score;
_global.ipbSend();
stop();
}
Symbol 240 Button
on (release) {
gotoAndStop ("splash_out");
}
on (rollOver) {
_root.btnSound.start();
}