Frame 1
stop();
Instance of Symbol 61 MovieClip "loadBar" in Frame 1
onClipEvent (enterFrame) {
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
this._width = getPercent * 100;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(2);
}
}
Frame 3
targetscore = 100;
Time = 25;
spawnTime = 30;
function New_Level() {
TotalTime = Time;
screenX = System.capabilities.screenResolutionX;
screenY = System.capabilities.screenResolutionY;
score = 0;
mc = 0;
spawnVariation = 0;
spawnElapse = spawnTime + random(spawnVariation);
TotalTime = TotalTime * 32;
timeElapse = TotalTime;
increase = 128;
increasespeed = increase;
speed = -3;
meter = 0;
currentframe = _currentframe;
sc = score;
goalscore = targetscore;
starttime = true;
_root.displaylevel = _root._currentframe - 2;
}
function Create_Mc() {
count++;
attachMovie("item1", "item1" + count, count);
_root["item1" + count].Type = "item1";
_root["item1" + count]._x = -50;
_root["item1" + count]._y = 60 + random(350);
_root["item1" + count]._width = _root["item1" + count]._width * 0.3;
_root["item1" + count]._height = _root["item1" + count]._height * 0.3;
}
function t2() {
count++;
attachMovie("t2", "t2" + count, count);
_root["t2" + count]._x = -50;
_root["t2" + count]._y = 60 + random(350);
_root["t2" + count]._width = _root["t2" + count]._width * 0.2;
_root["t2" + count]._height = _root["t2" + count]._height * 0.2;
}
function telline() {
count++;
attachMovie("telline", "telline" + count, count);
_root["telline" + count]._x = 700;
_root["telline" + count]._y = 400;
}
function bomb() {
count++;
attachMovie("blimb", "blimb" + count, count);
_root["blimb" + count]._x = 1000;
_root["blimb" + count]._y = 40;
}
function bird() {
count++;
attachMovie("bird", "bird" + count, count);
_root["bird" + count]._x = 950;
_root["bird" + count]._y = 150;
}
stop();
count = 150;
_root.New_Level();
onEnterFrame = function () {
if (currentframe == _currentframe) {
increasespeed--;
meter = (increasespeed * 0.01) + meter;
meters = Math.round(meter);
if (increasespeed == 0) {
speed = speed - 1;
increasespeed = increase;
}
timeElapse--;
time_txt.text = Math.floor(timeElapse / 32);
spawnElapse--;
if (spawnElapse == 0) {
if (timeElapse > 0) {
spawnElapse = spawnTime + random(spawnVariation);
spawnType = random(100) + 1;
if ((spawnType > 0) && (spawnType < 80)) {
spawnAmount = 0.5;
var _local2 = 0;
while (_local2 <= spawnAmount) {
Create_Mc();
_local2++;
}
} else if ((spawnType > 80) && (spawnType < 100)) {
t2();
} else if ((spawnType > 40) && (spawnType < 50)) {
bomb();
} else if ((spawnType > 50) && (spawnType < 60)) {
lowblimb();
} else if ((spawnType > 60) && (spawnType < 80)) {
bird();
}
}
}
if (timeElapse == 0) {
if (sc >= targetscore) {
totalscore = totalscore + score;
displayscore = totalscore;
nextFrame();
attachMovie("startscreen", "startscreen" + count, count);
_root["startscreen" + count].Type = "startscreen";
_root["startscreen" + count]._x = 0;
_root["startscreen" + count]._y = 0;
} else {
attachMovie("endscreen", "endscreen" + count, count);
_root["endscreen" + count].Type = "endscreen";
_root["endscreen" + count]._x = -50;
_root["endscreen" + count]._y = 0;
currentframe = currentframe + 1;
starttime = false;
timeleft = 0;
}
}
if (starttime == true) {
TotalTime--;
timeleft = TotalTime;
}
}
};
va = 0.5;
jump = 3.07 * va;
fall = 1 * va;
Instance of Symbol 92 MovieClip "dog3" in Frame 3
onClipEvent (load) {
number = 3;
starty = _y;
fall = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.powerbar3._currentframe == 1) {
_root.powerbar3.gotoAndPlay(2);
}
}
}
onClipEvent (mouseUp) {
if (fall == false) {
if (_root.powerbar3._currentframe > 1) {
power = _root.powerbar3._currentframe;
_root.powerbar3.gotoAndStop(power);
ySpeed = power * _root.jump;
inc = _root.fall;
fall = true;
this.gotoAndStop(2);
_root.bark.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
ySpeed = ySpeed - inc;
_y = (_y - ySpeed);
if (fall == true) {
if (starty < _y) {
ySpeed = 0;
inc = 0;
_y = starty;
_root.powerbar3.gotoAndStop(1);
fall = false;
this.gotoAndStop(1);
gotoAndStop (3);
}
}
}
onClipEvent (mouseUp) {
if (_root.powerbar3._currentframe > 1) {
if (_root.tut._currentframe == 30) {
_root.tut.gotoAndPlay(31);
_root.tut.tut = false;
}
}
}
Instance of Symbol 105 MovieClip "tut" in Frame 3
onClipEvent (load) {
tut = true;
}
Instance of Symbol 129 MovieClip in Frame 3
on (press) {
if (soundOn == true) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Frame 4
targetscore = 150;
Time = 20;
spawnTime = 20;
Instance of Symbol 92 MovieClip "dog3" in Frame 4
onClipEvent (load) {
number = 3;
starty = _y;
fall = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.powerbar3._currentframe == 1) {
_root.powerbar3.gotoAndPlay(2);
}
}
}
onClipEvent (mouseUp) {
if (fall == false) {
if (_root.powerbar3._currentframe > 1) {
power = _root.powerbar3._currentframe;
_root.powerbar3.gotoAndStop(power);
ySpeed = power * _root.jump;
inc = _root.fall;
fall = true;
this.gotoAndStop(2);
_root.bark.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
ySpeed = ySpeed - inc;
_y = (_y - ySpeed);
if (fall == true) {
if (starty < _y) {
ySpeed = 0;
inc = 0;
_y = starty;
_root.powerbar3.gotoAndStop(1);
fall = false;
this.gotoAndStop(1);
gotoAndStop (3);
}
}
}
Frame 5
targetscore = 500;
Time = 40;
spawnTime = 15;
Instance of Symbol 92 MovieClip "dog2" in Frame 5
onClipEvent (load) {
number = 2;
starty = _y;
fall = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.powerbar2._currentframe == 1) {
_root.powerbar2.gotoAndPlay(2);
}
}
}
onClipEvent (mouseUp) {
if (fall == false) {
if (_root.powerbar2._currentframe > 1) {
power = _root.powerbar2._currentframe;
_root.powerbar2.gotoAndStop(power);
ySpeed = power * _root.jump;
inc = _root.fall;
fall = true;
this.gotoAndStop(2);
_root.bark.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
ySpeed = ySpeed - inc;
_y = (_y - ySpeed);
if (fall == true) {
if (starty < _y) {
ySpeed = 0;
inc = 0;
_y = starty;
_root.powerbar2.gotoAndStop(1);
fall = false;
this.gotoAndStop(1);
gotoAndStop (3);
}
}
}
Frame 6
targetscore = 500;
Time = 40;
spawnTime = 15;
Instance of Symbol 92 MovieClip "dog" in Frame 6
onClipEvent (load) {
number = 2;
starty = _y;
fall = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.powerbar._currentframe == 1) {
_root.powerbar.gotoAndPlay(2);
}
}
}
onClipEvent (mouseUp) {
if (fall == false) {
if (_root.powerbar._currentframe > 1) {
power = _root.powerbar._currentframe;
_root.powerbar.gotoAndStop(power);
ySpeed = power * _root.jump;
inc = _root.fall;
fall = true;
gotoAndStop (2);
_root.bark.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
ySpeed = ySpeed - inc;
_y = (_y - ySpeed);
if (fall == true) {
if (starty < _y) {
ySpeed = 0;
inc = 0;
_y = starty;
_root.powerbar.gotoAndStop(1);
fall = false;
this.gotoAndStop(1);
}
}
}
Frame 7
targetscore = 500;
Time = 40;
spawnTime = 16;
Instance of Symbol 92 MovieClip "dog3" in Frame 7
onClipEvent (load) {
number = 3;
starty = _y;
fall = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.powerbar3._currentframe == 1) {
_root.powerbar3.gotoAndPlay(2);
}
}
}
onClipEvent (mouseUp) {
if (fall == false) {
if (_root.powerbar3._currentframe > 1) {
power = _root.powerbar3._currentframe;
_root.powerbar3.gotoAndStop(power);
ySpeed = power * _root.jump;
inc = _root.fall;
fall = true;
this.gotoAndStop(2);
_root.bark.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
ySpeed = ySpeed - inc;
_y = (_y - ySpeed);
if (fall == true) {
if (starty < _y) {
ySpeed = 0;
inc = 0;
_y = starty;
_root.powerbar3.gotoAndStop(1);
fall = false;
this.gotoAndStop(1);
gotoAndStop (3);
}
}
}
Frame 8
targetscore = 800;
Time = 40;
spawnTime = 11;
Frame 9
targetscore = 610;
Time = 40;
spawnTime = 15;
Frame 10
targetscore = 550;
Time = 40;
spawnTime = 15;
Frame 11
targetscore = 500;
Time = 40;
function New_Level() {
TotalTime = Time;
screenX = System.capabilities.screenResolutionX;
screenY = System.capabilities.screenResolutionY;
score = 0;
mc = 0;
spawnVariation = 0;
spawnElapse = spawnTime + random(spawnVariation);
TotalTime = TotalTime * 32;
timeElapse = TotalTime;
increase = 128;
increasespeed = increase;
speed = -3;
meter = 0;
currentframe = _currentframe;
sc = score;
goalscore = targetscore;
starttime = true;
}
function Create_Mc() {
count++;
attachMovie("item1", "item1" + count, count);
_root["item1" + count].Type = "item1";
_root["item1" + count]._x = -50;
_root["item1" + count]._y = 60 + random(350);
_root["item1" + count]._width = _root["item1" + count]._width * 0.3;
_root["item1" + count]._height = _root["item1" + count]._height * 0.3;
}
function t2() {
count++;
attachMovie("t2", "t2" + count, count);
_root["t2" + count]._x = -50;
_root["t2" + count]._y = 60 + random(350);
_root["t2" + count]._width = _root["t2" + count]._width * 0.2;
_root["t2" + count]._height = _root["t2" + count]._height * 0.2;
}
function telline() {
count++;
attachMovie("telline", "telline" + count, count);
_root["telline" + count]._x = 700;
_root["telline" + count]._y = 400;
}
function bomb() {
count++;
attachMovie("blimb", "blimb" + count, count);
_root["blimb" + count]._x = 1000;
_root["blimb" + count]._y = 40;
}
function bird() {
count++;
attachMovie("bird", "bird" + count, count);
_root["bird" + count]._x = 950;
_root["bird" + count]._y = 150;
}
stop();
count = 150;
onEnterFrame = function () {
if (currentframe == _currentframe) {
increasespeed--;
meter = (increasespeed * 0.01) + meter;
meters = Math.round(meter);
if (increasespeed == 0) {
speed = speed - 1;
increasespeed = increase;
}
timeElapse--;
time_txt.text = Math.floor(timeElapse / 32);
spawnElapse--;
if (spawnElapse == 0) {
if (timeElapse > 0) {
spawnElapse = spawnTime + random(spawnVariation);
spawnType = random(100) + 1;
if ((spawnType > 0) && (spawnType < 80)) {
spawnAmount = 0.5;
var _local2 = 0;
while (_local2 <= spawnAmount) {
Create_Mc();
_local2++;
}
} else if ((spawnType > 80) && (spawnType < 100)) {
t2();
} else if ((spawnType > 40) && (spawnType < 50)) {
bomb();
} else if ((spawnType > 50) && (spawnType < 60)) {
lowblimb();
} else if ((spawnType > 60) && (spawnType < 80)) {
bird();
}
}
}
if (timeElapse == 0) {
if (sc >= targetscore) {
totalscore = totalscore + score;
nextFrame();
} else {
attachMovie("endscreen", "endscreen" + count, count);
_root["endscreen" + count].Type = "endscreen";
_root["endscreen" + count]._x = -50;
_root["endscreen" + count]._y = 0;
currentframe = currentframe + 1;
starttime = false;
timeleft = 0;
}
}
if (starttime == true) {
TotalTime--;
timeleft = TotalTime;
}
}
};
Instance of Symbol 92 MovieClip "dog3" in Frame 11
onClipEvent (load) {
number = 3;
starty = _y;
fall = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (_root.powerbar3._currentframe == 1) {
_root.powerbar3.gotoAndPlay(2);
}
}
}
onClipEvent (mouseUp) {
if (fall == false) {
if (_root.powerbar3._currentframe > 1) {
power = _root.powerbar3._currentframe;
_root.powerbar3.gotoAndStop(power);
ySpeed = power * _root.jump;
inc = _root.fall;
fall = true;
this.gotoAndStop(2);
_root.bark.gotoAndPlay(2);
}
}
}
onClipEvent (enterFrame) {
ySpeed = ySpeed - inc;
_y = (_y - ySpeed);
if (fall == true) {
if (starty < _y) {
ySpeed = 0;
inc = 0;
_y = starty;
_root.powerbar3.gotoAndStop(1);
fall = false;
this.gotoAndStop(1);
gotoAndStop (3);
}
}
}
Frame 12
function send_score() {
result_ta.text = "sending";
var _local3 = new LoadVars();
_local3.onLoad = function (success) {
if (success) {
result_ta.text = "Score Sent";
getURL ("http://www.slingshotgames.com/Games/dog/view_score.php", "_blank");
submitBN._visible = false;
} else {
result_ta.text = "Error connecting to server, visit www.slingshotgames.com.";
}
};
var _local2 = new LoadVars();
_local2.Name = name_input.text;
_local2.Email = email_input.text;
_local2.Score = _root.displayscore;
trace(((((_local2.Name + newline) + _local2.Email) + newline) + _local2.Score) + newline);
_local2.sendAndLoad("http://www.slingshotgames.com/Games/dog/php_files/send_score.php", _local3, "POST");
}
score_txt.text = _root.totalscore;
name_input.text = "";
email_input.text = "";
System.security.loadPolicyFile("http://www.slingshotgames.com/Games/crossdomain.xml");
Symbol 6 MovieClip [t2] Frame 1
onEnterFrame = function () {
_x = (_x + 7);
if (((_x < -151) || (_x > 800)) || (_root.currentframe != _root._currentframe)) {
removeMovieClip(this);
}
if ((this.hitTest(_root.dog) || (this.hitTest(_root.dog2))) || (this.hitTest(_root.dog3))) {
_root.count++;
_root.collect2.gotoAndStop(_root.collect2._currentFrame + 1);
_parent.attachMovie("t2score", "t2score" + _root.count, _root.count);
_root["t2score" + _root.count].Type = "t2score";
_root["t2score" + _root.count]._x = _x;
_root["t2score" + _root.count]._y = _y;
_root.score = _root.score + 20;
_root.sc = _root.score;
removeMovieClip(this);
}
};
Symbol 12 MovieClip [item1] Frame 1
onEnterFrame = function () {
_x = (_x + 7);
if (((_x < -151) || (_x > 800)) || (_root.currentframe != _root._currentframe)) {
removeMovieClip(this);
}
if ((this.hitTest(_root.dog) || (this.hitTest(_root.dog2))) || (this.hitTest(_root.dog3))) {
_root.count++;
_parent.attachMovie("tscore", "tscore" + _root.count, _root.count);
_root["tscore" + _root.count].Type = "tscore";
_root["tscore" + _root.count]._x = _x;
_root["tscore" + _root.count]._y = _y;
_root.score = _root.score + 10;
_root.sc = _root.score;
_root.collect.gotoAndStop(_root.collect._currentFrame + 1);
removeMovieClip(this);
}
};
Symbol 18 MovieClip [t2score] Frame 40
removeMovieClip(this);
Symbol 19 MovieClip [tscore] Frame 40
removeMovieClip(this);
Symbol 29 Button
on (press) {
_root.New_Level();
_root.mov.gotoAndPlay(2);
_root.starttime = true;
removeMovieClip(this);
cf = _root._currentframe;
gotoAndStop(cf + 101);
gotoAndStop(cf);
}
Instance of Symbol 24 MovieClip in Symbol 36 MovieClip [startscreen] Frame 1
onClipEvent (load) {
_parent.goalscore = _root.targetscore;
}
Symbol 36 MovieClip [startscreen] Frame 30
stop();
Instance of Symbol 31 MovieClip in Symbol 36 MovieClip [startscreen] Frame 30
onClipEvent (load) {
_parent.cf = _root._currentframe - 2;
}
Symbol 44 Button
on (press) {
getURL ("http://www.slingshotgames.com");
}
Symbol 46 Button
on (press) {
currentframe = currentframe - 1;
_root.New_Level();
_root.starttime = true;
removeMovieClip(this);
}
Symbol 49 MovieClip [endscreen] Frame 76
stop();
Symbol 55 Button
on (press) {
getURL ("http://www.slingshotgames.com");
}
Symbol 67 Button
on (press) {
_root.totalscore = 0;
displayscore = 0;
stopAllSounds();
nextFrame();
_root.New_Level();
_root.starttime = true;
}
Symbol 92 MovieClip Frame 1
stop();
Instance of Symbol 78 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 78 MovieClip in Symbol 92 MovieClip Frame 3
onClipEvent (load) {
_alpha = 0;
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 12
stop();
stop();
Symbol 105 MovieClip Frame 30
stop();
Symbol 105 MovieClip Frame 211
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
stop();
Symbol 114 MovieClip Frame 4
stop();
Symbol 114 MovieClip Frame 5
gotoAndStop (2);
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 3
stop();
Symbol 119 MovieClip Frame 4
stop();
Symbol 119 MovieClip Frame 5
stop();
Symbol 119 MovieClip Frame 6
gotoAndStop (2);
Symbol 129 MovieClip Frame 1
stopAllSounds();
soundOn = true;
Symbol 129 MovieClip Frame 2
stop();
soundOn = false;
Symbol 138 Button
on (press) {
gotoAndStop (2);
}
Symbol 144 Button
on (press) {
getURL ("http://www.slingshotgames.com/Games/dog/view_score.php", "_blank");
}
Symbol 148 Button
on (press) {
if ((name_input.text == "") || (name_input.text == undefined)) {
result_ta.text = "Please enter your name!";
} else {
send_score();
}
}