Frame 1
function changefront(level) {
switch (level) {
case 2 :
_global.speed = 1;
break;
case 3 :
Popup._x = 94;
popuptemp = Math.random() * popuplist.length;
popuptemp = Math.round(popuptemp) - 1;
Popup.PopupText.text = popuplist[popuptemp];
break;
case 4 :
_global.hesit = 15;
break;
case 8 :
SkipButton._alpha = 100;
break;
case 9 :
_root.Hammer._visible = true;
Mouse.hide();
_root.Puppy.onEnterFrame = function () {
_root.Hammer._x = _root._xmouse;
_root.Hammer._y = _root._ymouse;
};
break;
case 10 :
_global.speed = 0.6;
_root.Blackout._alpha = 100;
_root.Blackout.swapDepths(1000);
Mouse.hide();
break;
case 14 :
_global.speed = 0.8;
}
}
function changeback(level) {
switch (level) {
case 2 :
_global.speed = 1;
break;
case 3 :
Popup._visible = false;
break;
case 4 :
_global.speed = 0.8;
_global.hesit = 5;
if (_global.level == 4) {
Sign._visible = false;
SufferSign._visible = true;
}
break;
case 5 :
SufferSign._visible = false;
Sign._visible = true;
_global.speed = 0.8;
break;
case 7 :
Puppy._y = 239.7;
Puppy._height = Puppy._height * 0.5;
Puppy._width = Puppy._width * 0.5;
_global.speed = 0.5;
break;
case 8 :
Puppy._y = 227.7;
Puppy._height = Puppy._height * 2;
Puppy._width = Puppy._width * 2;
SkipButton._alpha = 0;
_global.speed = 0.8;
Nail._alpha = 100;
break;
case 9 :
Hammer._visible = false;
Mouse.show();
Nail._alpha = 0;
break;
case 10 :
_global.speed = 0.8;
_root.Blackout._alpha = 0;
_root.Blackout.swapDepths(0);
Mouse.show();
GunMain._x = 500.4;
break;
case 11 :
GunMain._x = 309.4;
break;
case 15 :
_global.level = 16;
_global.timespent = Math.floor((getTimer() - _global.startTimer) / 1000);
gotoAndStop ("end");
}
}
stop();
if (_global.highscore == undefined) {
_global.highscore = 0;
}
_root.Sign.gotoAndPlay("happy");
_root.DreamPuppy._alpha = 0;
_global.startTimer = getTimer();
_global.dream = 0;
_global.shooting = 0;
_global.counter = 0;
_global.speed = 2;
_global.level = 1;
_global.hesit = 5;
_global.asleep = 0;
_global.donedist = -30;
_root.Blackout._alpha = 0;
SufferSign._visible = false;
Hammer._visible = false;
Countdown._visible = false;
popuplist = ["It rubs the lotion on its skin, or else it gets the hose again.", "Refer 100,000 friends and get a free iPod.", "Wasting your time with style.", "Secret bonus for players with over 100 on our 'Click Once a Minute' Game!", "Now with more 'R's and less trans fat!", "Have you found the key that works?"];
Instance of Symbol 103 MovieClip "Puppy" in Frame 1
onClipEvent (load) {
function killswitch() {
clearInterval(_global.pupstarttime);
clearInterval(_global.countdowntime);
Countdown._visible = false;
if (_global.counter == 1) {
if (_global.shooting == 0) {
_root.GunMain.gotoAndPlay("shoot");
_global.shooting = 1;
}
if (_x < 275) {
_global.counter = 2;
clearInterval(_global.pupstoptime);
clearInterval(_global.pupslowtime);
clearInterval(_global.pupsleeptime);
clearInterval(_global.countdowntime);
clearInterval(_global.markonetime);
gotoAndPlay ("die");
_root.SleepyZ.stop();
_root.SleepyZ._alpha = 0;
_root.DreamPuppy.stop();
_root.DreamPuppy._x = 127;
_root.DreamPuppy._alpha = 0;
_root.DreamPuppy2.stop();
_root.DreamPuppy2._x = 530;
_root.Countdown._alpha = 0;
_root.Sign.gotoAndStop("sad");
_global.timespent = Math.floor((getTimer() - _global.startTimer) / 1000);
}
}
}
keyListener = new Object();
keyListener.onKeyDown = function () {
killswitch();
};
Key.addListener(keyListener);
mouseListener = new Object();
mouseListener.onMouseMove = function () {
killswitch();
};
mouseListener.onMouseDown = function () {
killswitch();
};
Mouse.addListener(mouseListener);
}
on (keyPress "<Right>") {
killswitch();
}
Instance of Symbol 155 MovieClip "Popup" in Frame 1
on (release) {
getURL ("http://www.rrrrthats5rs.com", "_blank");
}
Frame 2
stop();
_root.Blackout._alpha = 0;
minutes = Math.floor(_global.timespent / 60);
seconds = Math.floor(_global.timespent - (minutes * 60));
_global.level = _global.level - 1;
if (_global.level > _global.highscore) {
_global.highscore = _global.level;
}
if (_global.level == 15) {
_root.TitleText.text = "Congratulations! You Won.";
Sign.gotoAndStop("happy");
} else {
_root.TitleText.text = "You lost.";
Sign.gotoAndStop("sad");
}
_root.LastLevelText.text = "Last Level Completed: " + _global.level;
_root.HighestLevelText.text = "Your Highest Level Completed: " + _global.highscore;
_root.TimeSpentText.text = ((("Time Spent Not Shooting the Puppy: " + minutes) + " min ") + seconds) + " sec";
Symbol 103 MovieClip Frame 1
function explode() {
var _local1 = 0;
while (_local1 < 35) {
duplicateMovieClip (PuppyPiece, "pp" + _local1, _local1);
rdm = random(10);
temp = (10 * rdm) + (random(25) * random(8));
setProperty("pp" + _local1, _x , -1 * temp);
setProperty("pp" + _local1, _y , 20 - (random(4) * random(temp * 0.65)));
setProperty("pp" + _local1, _rotation , 36 * rdm);
setProperty("pp" + _local1, _xscale , 10 + random(150));
setProperty("pp" + _local1, _yscale , 10 + random(150));
setProperty("pp" + _local1, _alpha , 0);
_local1++;
}
var _local3 = _local1 + 1;
while (_local3 < (_local1 + 101)) {
var _local2 = PuppyDirt.duplicateMovieClip("pd" + _local3, _local3);
temp = random(50) + (random(25) * random(10));
_local2._x = _local2._x - temp;
_local2._y = 20 - (random(4) * random(temp));
_local2._rotation = random(360);
_local2._xscale = 10 + random(140);
_local2._yscale = 10 + random(140);
_local2._alpha = 0;
_local3++;
}
flip = 0;
_local3 = _local1 + 101;
while (_local3 < (_local1 + 200)) {
var _local2 = PuppyDirt.duplicateMovieClip("pd" + _local3, _local3);
tempx = random(12) + (random(10) * random(5));
tempy = random(25) + (random(10) * random(5));
if (flip == 0) {
tempx = tempx * -1;
flip = 1;
} else {
flip = 0;
}
_local2._x = tempx;
_local2._y = 20 - random(tempy);
_local2._rotation = random(360);
_local2._xscale = 60 + random(40);
_local2._yscale = 60 + random(40);
_local2._alpha = 0;
_local3++;
}
}
stop();
var c = 0;
var d = 0;
explode();
Symbol 103 MovieClip Frame 2
function pupstop() {
clearInterval(_global.pupstoptime);
if (_global.dream == 0) {
play();
} else {
gotoAndPlay ("dreamdone");
}
}
stop();
_global.pupstoptime = setInterval(pupstop, 1000);
Symbol 103 MovieClip Frame 3
stop();
if (_global.counter == 1) {
_root.changeback(_global.level);
_global.level = _global.level + 1;
} else {
_root.gotoAndStop("end");
}
this._x = 227.3;
_root.GunMain.gotoAndStop("stop");
_root.Sign.gotoAndStop("happy");
_global.counter = 0;
_root.LevelText.text = "Level " + _global.level;
_root.StartButton._visible = true;
Symbol 103 MovieClip Frame 4
stop();
_root.SleepyZ.stop();
_root.SleepyZ._alpha = 0;
_root.DreamPuppy.stop();
_root.DreamPuppy._x = 127;
_root.DreamPuppy._alpha = 0;
_root.DreamPuppy2._x = 530;
_root.Puppy.gotoAndPlay("done2");
Symbol 103 MovieClip Frame 6
this._x = this._x - (1.5 * _global.speed);
Symbol 103 MovieClip Frame 7
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 8
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 9
this._x = this._x - (1.5 * _global.speed);
Symbol 103 MovieClip Frame 10
if (random(_global.hesit) > 5) {
gotoAndStop ("hesit1");
}
Symbol 103 MovieClip Frame 11
this._x = this._x - (1.5 * _global.speed);
Symbol 103 MovieClip Frame 12
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 13
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 14
this._x = this._x - (1.5 * _global.speed);
if (_global.asleep == 1) {
gotoAndPlay ("asleep");
}
Symbol 103 MovieClip Frame 15
if (this._x > _global.donedist) {
gotoAndPlay ("restartwalk");
} else {
gotoAndStop ("done");
}
Symbol 103 MovieClip Frame 17
function explode() {
var c = 0;
while (c < 35) {
eval ("pp" + c)._alpha = 80;
c++;
}
var d = (c + 1);
while (d < (c + 101)) {
eval ("pd" + d)._alpha = 70;
d++;
}
var d = (c + 101);
while (d < (c + 200)) {
eval ("pd" + d)._alpha = 100;
d++;
}
}
var c = 0;
var d = 0;
explode();
Symbol 103 MovieClip Frame 18
function explode() {
var c = 0;
while (c < 35) {
eval ("pp" + c)._x = eval ("pp" + c)._x * 2;
eval ("pp" + c)._y = eval ("pp" + c)._y * 2;
eval ("pp" + c)._alpha = eval ("pp" + c)._alpha - 40;
c++;
}
var d = (c + 1);
while (d < (c + 200)) {
eval ("pd" + d)._x = eval ("pd" + d)._x * 2;
eval ("pd" + d)._y = eval ("pd" + d)._y * 2;
eval ("pd" + d)._alpha = eval ("pd" + d)._alpha - 30;
d++;
}
}
var c = 0;
var d = 0;
explode();
Symbol 103 MovieClip Frame 19
function explode() {
var c = 0;
while (c < 35) {
eval ("pp" + c)._x = eval ("pp" + c)._x * 1.6;
eval ("pp" + c)._y = eval ("pp" + c)._y * 1.6;
eval ("pp" + c)._alpha = eval ("pp" + c)._alpha - 35;
c++;
}
var d = (c + 1);
while (d < (c + 200)) {
eval ("pd" + d)._x = eval ("pd" + d)._x * 1.6;
eval ("pd" + d)._y = eval ("pd" + d)._y * 1.6;
eval ("pd" + d)._alpha = eval ("pd" + d)._alpha - 25;
d++;
}
}
var c = 0;
var d = 0;
explode();
Symbol 103 MovieClip Frame 20
function explode() {
var c = 0;
while (c < 35) {
eval ("pp" + c)._x = eval ("pp" + c)._x * 0.3125;
eval ("pp" + c)._y = eval ("pp" + c)._y * 0.3125;
eval ("pp" + c)._alpha = 0;
c++;
}
var d = (c + 1);
while (d < (c + 200)) {
eval ("pd" + d)._x = eval ("pd" + d)._x * 0.3125;
eval ("pd" + d)._y = eval ("pd" + d)._y * 0.3125;
eval ("pd" + d)._alpha = 0;
d++;
}
}
var c = 0;
var d = 0;
explode();
Symbol 103 MovieClip Frame 22
function pupstop() {
clearInterval(pupstoptime);
play();
}
stop();
pupstoptime = setInterval(pupstop, 1000);
Symbol 103 MovieClip Frame 23
gotoAndPlay ("done2");
Symbol 103 MovieClip Frame 24
function puphesit() {
clearInterval(puphesittime);
gotoAndPlay ("hesit2");
}
wait = 1000 * Math.round(random(2));
puphesittime = setInterval(puphesit, wait);
Symbol 103 MovieClip Frame 25
this._x = this._x - (1.5 * _global.speed);
Symbol 103 MovieClip Frame 26
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 27
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 28
this._x = this._x - (1.5 * _global.speed);
Symbol 103 MovieClip Frame 29
Symbol 103 MovieClip Frame 30
this._x = this._x - (1.5 * _global.speed);
Symbol 103 MovieClip Frame 31
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 32
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 33
this._x = this._x - (1.5 * _global.speed);
Symbol 103 MovieClip Frame 38
function pupstop() {
clearInterval(_global.pupstoptime);
play();
}
stop();
_global.pupstoptime = setInterval(pupstop, 1500);
Symbol 103 MovieClip Frame 42
function pupstop() {
clearInterval(_global.pupstoptime);
play();
}
stop();
_global.pupstoptime = setInterval(pupstop, 800);
Symbol 103 MovieClip Frame 56
this._x = this._x - (0.98 * _global.speed);
Symbol 103 MovieClip Frame 57
this._x = this._x - (1.3 * _global.speed);
Symbol 103 MovieClip Frame 58
this._x = this._x - (1.3 * _global.speed);
Symbol 103 MovieClip Frame 59
this._x = this._x - (0.98 * _global.speed);
Symbol 103 MovieClip Frame 60
Symbol 103 MovieClip Frame 61
this._x = this._x - (0.98 * _global.speed);
Symbol 103 MovieClip Frame 62
this._x = this._x - (1.3 * _global.speed);
Symbol 103 MovieClip Frame 63
this._x = this._x - (1.3 * _global.speed);
Symbol 103 MovieClip Frame 64
this._x = this._x - (0.98 * _global.speed);
Symbol 103 MovieClip Frame 65
if (this._x > _global.donedist) {
gotoAndPlay ("startwalkball");
} else {
gotoAndStop ("doneball");
}
Symbol 103 MovieClip Frame 66
function pupstop() {
clearInterval(_global.pupstoptime);
gotoAndPlay ("done2");
}
stop();
_global.pupstoptime = setInterval(pupstop, 1000);
Symbol 103 MovieClip Frame 72
gotoAndPlay ("startwalkover2");
Symbol 103 MovieClip Frame 74
this._x = this._x + (4 * _global.speed);
Symbol 103 MovieClip Frame 75
this._x = this._x + (4 * _global.speed);
Symbol 103 MovieClip Frame 76
this._x = this._x + (4 * _global.speed);
Symbol 103 MovieClip Frame 77
this._x = this._x + (3 * _global.speed);
Symbol 103 MovieClip Frame 78
this._x = this._x + _global.speed;
Symbol 103 MovieClip Frame 79
this._x = this._x + (3 * _global.speed);
Symbol 103 MovieClip Frame 80
this._x = this._x + (4 * _global.speed);
Symbol 103 MovieClip Frame 81
this._x = this._x + (4 * _global.speed);
Symbol 103 MovieClip Frame 82
this._x = this._x + (3 * _global.speed);
Symbol 103 MovieClip Frame 83
if (this._x < 518) {
gotoAndPlay ("startwalkover");
} else {
gotoAndPlay ("startwalkball");
}
Symbol 103 MovieClip Frame 84
this._x = this._x - (1.5 * _global.speed);
Symbol 103 MovieClip Frame 85
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 86
this._x = this._x - (2 * _global.speed);
Symbol 103 MovieClip Frame 87
this._x = this._x - (1.3 * _global.speed);
Symbol 103 MovieClip Frame 88
this._x = this._x - (0.7 * _global.speed);
Symbol 103 MovieClip Frame 89
_root.SleepyZ.gotoAndPlay("z1");
_root.SleepyZ._alpha = 100;
_global.asleep = 0;
this._x = this._x - (0.3 * _global.speed);
Symbol 103 MovieClip Frame 101
_root.DreamPuppy._alpha = 33;
Symbol 103 MovieClip Frame 102
_root.DreamPuppy._alpha = 67;
Symbol 103 MovieClip Frame 103
_root.DreamPuppy._alpha = 100;
Symbol 103 MovieClip Frame 104
function markone() {
if (_root.DreamPuppy._x < 70) {
_root.DreamPuppy.stop();
_root.DreamPuppy2.gotoAndPlay("startwalk");
_global.dream = 1;
clearInterval(_global.markonetime);
}
}
stop();
_root.DreamPuppy.gotoAndPlay("startwalk");
_global.markonetime = setInterval(markone, 500);
Symbol 109 MovieClip Frame 16
gotoAndPlay ("z2");
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
if (_root.Blackout._alpha == 100) {
_root.Blackout._alpha = 70;
}
Symbol 142 MovieClip Frame 4
if (_root.Blackout._alpha == 70) {
_root.Blackout._alpha = 90;
}
Symbol 142 MovieClip Frame 5
if (_root.Blackout._alpha == 90) {
_root.Blackout._alpha = 100;
}
Symbol 142 MovieClip Frame 7
_global.shooting = 0;
stop();
Symbol 145 Button
on (release) {
function pupstop() {
clearInterval(_global.pupstoptime);
_root.Puppy.gotoAndPlay("startwalk");
StartButton._visible = false;
}
function countdown() {
_global.sec = _global.sec - 1;
Countdown.text = _global.sec;
if (_global.sec == 0) {
Countdown._visible = false;
clearInterval(_global.countdowntime);
_root.Puppy.gotoAndPlay("startwalk");
StartButton._visible = false;
}
}
function pupslow() {
if (_root.Puppy._x < 30) {
clearInterval(_global.pupslowtime);
_global.speed = 0.8;
} else {
_global.speed = _root.Puppy._x / 600;
}
}
function pupsleep() {
clearInterval(_global.pupsleeptime);
_global.asleep = 1;
}
if (_global.counter == 0) {
_root.changefront(_global.level);
switch (_global.level) {
case 6 :
_root.Puppy.gotoAndPlay("startball");
break;
case 7 :
_root.Puppy.gotoAndPlay("startballover");
break;
case 9 :
_global.pupstoptime = setInterval(pupstop, 10000);
break;
case 12 :
_global.pupstoptime = setInterval(pupstop, 7000);
break;
case 13 :
var time = new Date();
_global.sec = time.getSeconds();
if (_global.sec == 0) {
_root.Puppy.gotoAndPlay("startwalk");
StartButton._visible = false;
} else {
Countdown._visible = true;
Countdown.text = _global.sec;
_global.countdowntime = setInterval(countdown, 500);
}
break;
case 14 :
_global.pupsleeptime = setInterval(pupsleep, 1500);
_root.Puppy.gotoAndPlay("startwalk");
break;
case 15 :
_global.pupslowtime = setInterval(pupslow, 500);
_root.Puppy.gotoAndPlay("startwalk");
break;
default :
_root.Puppy.gotoAndPlay("startwalk");
}
_global.counter = 1;
if (_global.level != 12) {
StartButton._visible = false;
}
}
}
Symbol 166 MovieClip Frame 7
gotoAndPlay ("begin");
Symbol 173 Button
on (release) {
getURL ("http://www.rrrrthats5rs.com", "_blank");
}
Symbol 178 Button
on (release) {
gotoAndPlay ("start");
}