Combined Code
frame 1 {
_quality = 'MEDIUM';
totalbytes = this.getBytesTotal();
currentbytes = this.getBytesLoaded();
percentage = (currentbytes / totalbytes) * 100;
if (int(percentage) == 100) {
gotoAndPlay(3);
}
}
movieClip 6 {
}
movieClip 10 {
}
movieClip 12 {
}
instance black of movieClip 12 {
onClipEvent (load) {
this.swapDepths(100000);
}
}
frame 2 {
gotoAndPlay(1);
}
frame 3 {
fpscheck1 = new Date();
}
movieClip 17 {
}
frame 33 {
fpscheck2 = new Date();
timediff = fpscheck2.getTime() - fpscheck1.getTime();
timediff /= 1000;
if (1.5 < timediff) {
slow = true;
}
}
movieClip 22 {
}
frame 51 {
loadMovieNum('/flash/music.swf', 500);
}
movieClip 24 {
}
movieClip 27 {
}
movieClip 29 {
frame 8 {
stop();
}
}
button 34 {
on (release) {
gotoAndPlay(192);
}
}
button 39 {
on (release) {
gotoAndPlay(141);
}
}
frame 140 {
stop();
}
movieClip 44 {
}
frame 190 {
gotoAndPlay(242);
}
frame 241 {
gotoAndPlay(746);
}
button 50 {
on (release) {
gotoAndPlay(1);
}
}
movieClip 53 {
}
instance black of movieClip 12 {
onClipEvent (load) {
this.swapDepths(100000);
}
}
movieClip 57 {
}
instance line of movieClip 57 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.4;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
instance line of movieClip 57 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.4;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
movieClip 61 {
}
instance line of movieClip 57 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.4;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
instance line of movieClip 57 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.4;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
movieClip 69 {
}
movieClip 70 {
}
instance line of movieClip 70 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
_parent.mover = true;
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
movieClip 74 {
}
instance line of movieClip 74 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.2;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
instance line of movieClip 74 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.2;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
instance line of movieClip 70 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
_parent.mover = true;
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
movieClip 79 {
}
instance line of movieClip 79 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
instance line of movieClip 79 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
movieClip 82 {
}
instance line of movieClip 79 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
movieClip 85 {
}
movieClip 86 {
instance line of movieClip 74 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.2;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
}
instance boulder of movieClip 86 {
onClipEvent (load) {
if (_name eq 'boulder') {
_visible = false;
} else {
_x = Internal_x;
_y = Internal_y;
}
if (_name eq 'boulder0') {
mover = true;
Horiz = false;
Up = true;
MoveAmount = 200;
movercounter = 150;
moveforwards = true;
MoveSpeed = 4;
}
if (_name eq 'boulder4') {
mover = true;
movercounter = 0;
moveforwards = true;
Horiz = true;
Up = false;
MoveAmount = 200;
MoveSpeed = 4;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'boulder') && _root.man0.robbieactive) {
_x = Internal_X + _root.man0.offsetX;
_y = Internal_Y + _root.man0.offsetY;
if (mover) {
Internal_X += VelX;
Internal_Y += VelY;
++movercounter;
if (MoveAmount < movercounter && !moveforwards) {
moveforwards = true;
movercounter = 0;
if (Up) {
VelY = MoveSpeed;
} else {
VelX = MoveSpeed;
}
} else {
if (MoveAmount < movercounter && moveforwards) {
moveforwards = false;
movercounter = 0;
if (Up) {
VelY = -MoveSpeed;
} else {
VelX = -MoveSpeed;
}
}
}
}
}
}
}
movieClip 89 {
}
movieClip 91 {
instance line of movieClip 79 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
}
movieClip 94 {
}
movieClip 97 {
}
movieClip 100 {
}
movieClip 103 {
}
movieClip 106 {
}
movieClip 109 {
}
movieClip 112 {
}
button 114 {
on (release) {
gotoAndPlay(696);
}
}
movieClip 128 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(2);
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
frame 694 {
stop();
}
frame 745 {
gotoAndPlay(746);
}
frame 746 {
function goto() {
gotoAndPlay(746);
}
function CreateArrows() {
i = 0;
while (i < ArrowArray.length) {
duplicateMovieClip('_root.arrow', 'arrow' + i, i + 24500);
_root['arrow' + i].Internal_X = ArrowArray[i][0];
_root['arrow' + i].Internal_Y = ArrowArray[i][1];
_root['arrow' + i]._rotation = ArrowArray[i][2];
++i;
}
}
function CreateGirls() {
i = 0;
while (i < GirlArray.length) {
duplicateMovieClip('_root.girl', 'girl' + i, i + 700);
_root['girl' + i].Internal_X = GirlArray[i][0];
_root['girl' + i].Internal_Y = GirlArray[i][1];
++i;
}
}
function CreateBoulders() {
i = 0;
while (i < BoulderArray.length) {
duplicateMovieClip('_root.Boulder', 'boulder' + i, i + 1100);
_root['boulder' + i].Internal_x = BoulderArray[i][0];
_root['boulder' + i].Internal_y = BoulderArray[i][1];
++i;
}
}
function CreateBoulders2() {
i = 0;
while (i < BoulderArray2.length) {
duplicateMovieClip('_root.Bouldercopy', 'bouldernew' + i, i + 1400);
_root['bouldernew' + i].Internal_x = BoulderArray2[i][0];
_root['bouldernew' + i].Internal_y = BoulderArray2[i][1];
duplicateMovieClip('_root.Bouldercopy', 'bouldernew' + i + 50, i + 1400 + 50);
_root['bouldernew' + i + 50].Internal_x = BoulderArray2[i][0] - 80;
_root['bouldernew' + i + 50].Internal_y = BoulderArray2[i][1];
++i;
}
}
function FillTreeArray(FinalPos) {
i = 0;
while (i < FinalPos) {
TreeArray[i] = [i * 100 + random(100), 75];
++i;
}
}
function CreateTrees(FinalPos) {
i = 0;
while (i < FinalPos) {
duplicateMovieClip('_root.Tree', 'Tree' + i, i + 100);
_root['Tree' + i].Internal_X = TreeArray[i][0];
_root['Tree' + i]._Y = TreeArray[i][1];
_root['Tree' + i]._z = random(20) + 75;
++i;
}
}
function CreateFloor() {
i = 0;
while (i < 10) {
duplicateMovieClip('_root.floor', 'floor1' + i, i + 600);
_root['Floor1' + i].Internal_X = i * 800;
_root['Floor1' + i].Internal_Y = 220;
_root['Floor1' + i].swapDepths(600 + i);
duplicateMovieClip('_root.BigFloor', 'BigFloor' + i, i + 400);
_root['BigFloor' + i].Internal_X = i * 550;
_root['BigFloor' + i].Internal_Y = 220;
_root['BigFloor' + i].swapDepths(400 + i);
++i;
}
}
TreeArray = new Array();
BoulderArray = new Array();
GirlArray = new Array();
ArrowArray = new Array();
BoulderArray[0] = [600, 100];
BoulderArray[1] = [800, 50];
BoulderArray[2] = [1600, 150];
BoulderArray[3] = [1800, 150];
BoulderArray[4] = [2000, 150];
BoulderArray[5] = [1700, 50];
BoulderArray[6] = [1900, 50];
BoulderArray[7] = [1800, -50];
BoulderArray[8] = [2450, 150];
BoulderArray[9] = [2300, 50];
BoulderArray[10] = [2600, 50];
BoulderArray[11] = [2800, 0];
BoulderArray[12] = [3400, 125];
BoulderArray[13] = [4200, 50];
BoulderArray[14] = [4200, 125];
GirlArray[0] = [400, 150];
GirlArray[1] = [900, -75];
GirlArray[2] = [1800, -125];
GirlArray[3] = [3000, -75];
GirlArray[4] = [3800, -75];
ArrowArray[0] = [150, 150, 90];
ArrowArray[1] = [920, 100, 0];
ArrowArray[2] = [3010, 100, 0];
ArrowArray[3] = [3800, 100, 0];
ArrowArray[4] = [1800, 50, 0];
}
movieClip 131 {
}
instance blackey of movieClip 131 {
onClipEvent (load) {
this.swapDepths(10000000);
}
}
movieClip 133 {
frame 50 {
_root.StartTimer = new date();
if (_root.slow) {
_quality = 'LOW';
}
_root.man0.RobbieActive = true;
removeMovieClip(this);
stop();
}
}
instance of movieClip 133 {
onClipEvent (load) {
this.swapDepths(999999);
}
}
frame 747 {
kissgirl = new sound();
kissgirl.attachSound('robbiekissgirl');
landsound = new sound();
landsound.attachSound('robbieland');
clap = new sound();
clap.attachSound('clap');
boo = new sound();
boo.attachSound('boo');
CreateBoulders();
CreateGirls();
CreateArrows();
CreateFloor();
_root.loading._visible = false;
_root.score.girls = 0;
stop();
}
movieClip 135 {
}
movieClip 136 {
}
instance bigfloor of movieClip 136 {
onClipEvent (load) {
if (_name eq 'bigfloor') {
_visible = false;
} else {
_x = Internal_X;
_y = Internal_Y;
alive = true;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'floor') && alive && _root.man0.active) {
if (!_root.slow) {
currentx = Internal_X + _root.man0.offsetX / 5;
}
currenty = Internal_Y + _root.man0.offsetY / 15;
if (currentx < 1000 && -500 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 137 {
instance line of movieClip 57 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.4;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
}
instance boulder of movieClip 137 {
onClipEvent (load) {
if (_name eq 'boulder') {
_visible = false;
} else {
_x = Internal_x;
_y = Internal_y;
onscreen = true;
alive = true;
}
if (_name eq 'boulder13') {
mover = true;
movercounter = 0;
moveforwards = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'boulder') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
if (mover) {
Internal_X += VelX;
Internal_Y += VelY;
++movercounter;
if (200 < movercounter && !moveforwards) {
moveforwards = true;
movercounter = 0;
VelX = 4;
} else {
if (200 < movercounter && moveforwards) {
moveforwards = false;
movercounter = 0;
VelX = -4;
}
}
}
}
}
}
movieClip 138 {
}
instance floor of movieClip 138 {
onClipEvent (load) {
if (_name eq 'floor') {
_visible = false;
} else {
_y = Internal_Y;
_x = Internal_X;
onscreen = true;
alive = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'floor') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 1000 && -500 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 139 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(2);
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 140 {
}
movieClip 141 {
frame 1 {
stop();
}
frame 10 {
gotoAndPlay(2);
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 142 {
frame 1 {
_parent.right = true;
stop();
}
instance right of movieClip 139 {
onClipEvent (enterFrame) {
if (!_parent.GameFinish) {
if (_parent.jumping && 0 < _parent.VelY) {
running = false;
gotoAndStop(12);
} else {
if (_parent.jumping && _parent.VelY < 0) {
running = false;
gotoAndStop(11);
} else {
if (_parent.stopped || !_parent.RobbieActive) {
running = false;
gotoAndStop(1);
} else {
if (!_parent.stopped && !running) {
gotoAndPlay(2);
running = true;
}
}
}
}
} else {
stop();
}
}
}
frame 2 {
_parent.left = true;
stop();
}
instance left of movieClip 141 {
onClipEvent (enterFrame) {
if (!_parent.GameFinish) {
if (_parent.jumping && 0 < _parent.VelY) {
running = false;
gotoAndStop(12);
} else {
if (_parent.jumping && _parent.VelY < 0) {
running = false;
gotoAndStop(11);
} else {
if (_parent.stopped || !_parent.RobbieActive) {
running = false;
gotoAndStop(1);
} else {
if (!_parent.stopped && !running) {
gotoAndPlay(2);
running = true;
}
}
}
}
} else {
stop();
}
}
}
}
instance man0 of movieClip 142 {
onClipEvent (load) {
space = false;
active = true;
WorldOffSetX = 0;
GameFinish = false;
_root.Girls = 0;
Xoffset = 0;
this.swapDepths(20000);
Ground = 150;
VelY = 0;
VelX = 0;
MoveSpeed = 2;
Gravity = 2;
Friction = 0.85;
Jumping = false;
JumpSpeed = -22;
platform = false;
Internal_x = 250;
Internal_y = 150;
_x = Internal_X;
_y = Internal_Y;
Cap = false;
StartY = Internal_y;
StartX = Internal_x;
_root.Score.Girls = 0;
_root.Score.Timer = 60;
time = 0;
GameFinish = false;
RobbieActive = false;
stopped = true;
}
onClipEvent (enterFrame) {
if (!GameFinish) {
if (RobbieActive) {
CurrentTimer = new date();
time = CurrentTimer - _root.StartTimer;
time /= 1000;
time = int(time);
time = 60 - time;
_root.Score.Timer = time;
if (time == 0 || _root.Score.Girls == 5) {
GameFinish = true;
}
offsetX = StartX - Internal_X;
offsetY = (StartY - Internal_y) / 1.2;
VelOffSetX = VelX * -1;
VelOffSetY = VelY * -1;
Internal_x += VelX;
VelX *= Friction;
if (!platform) {
Internal_y += VelY;
}
if (15 < VelY) {
VelY = 15;
}
if (-1 < VelX && VelX < 1) {
stopped = true;
} else {
stopped = false;
}
if (Internal_y < Ground && !platform) {
VelY += Gravity;
Jumping = true;
} else {
VelY = 0;
Jumping = false;
}
if (Key.isDown(Key.RIGHT) && active && -4100 < offsetx) {
if (Jumping) {
Velx += MoveSpeed / 2;
} else {
Velx += MoveSpeed;
}
this.gotoAndStop(1);
}
if (Key.isDown(Key.LEFT) && active && 0 >= offsetx) {
if (Jumping) {
Velx += MoveSpeed * -1 / 2;
} else {
Velx += MoveSpeed * -1;
}
this.gotoAndStop(2);
}
if (Key.isDown(Key.SPACE) && !space) {
if (!Jumping) {
VelY = JumpSpeed;
Jumping = true;
platform = false;
space = true;
} else {
MoveJump = false;
}
}
}
} else {
_root.CurrentTimer = _root.Score.Timer;
_root.CurrentGirls = _root.Score.Girls;
active = false;
_root.loading._visible = true;
_root.loading.play();
_quality = 'MEDIUM';
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
space = false;
}
}
}
movieClip 149 {
}
instance score of movieClip 149 {
onClipEvent (load) {
this.swapDepths(90000);
}
}
movieClip 151 {
}
instance arrow of movieClip 151 {
onClipEvent (load) {
if (_name eq 'arrow') {
_visible = false;
} else {
_x = Internal_X;
_y = Internal_Y;
alive = true;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'arrow') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 153 {
}
movieClip 155 {
}
movieClip 159 {
}
instance girl of movieClip 159 {
onClipEvent (load) {
if (_name eq 'girl') {
_visible = false;
} else {
alive = true;
_x = Internal_X;
_y = Internal_Y;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'girl') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
if (this.hitTest(_root.man0)) {
_root.kissgirl.start();
_visible = false;
++_root.Score.Girls;
alive = false;
removeMovieClip(this);
}
}
}
}
}
movieClip 162 {
}
movieClip 165 {
}
movieClip 166 {
}
movieClip 172 {
}
movieClip 173 {
frame 1 {
stop();
}
frame 2 {
girlscollected = _root.currentgirls;
if (girlscollected < 5) {
_root.failed = true;
} else {
_root.failed = false;
}
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
} else {
levelcomplete._visible = true;
timeup._visible = false;
}
}
frame 63 {
_root.play();
}
frame 80 {
if (_root.slow) {
_quality = 'LOW';
}
_root.loading2._visible = true;
_root.loading2.play();
removeMovieClip(this);
}
}
instance loading of movieClip 173 {
onClipEvent (load) {
this.swapDepths(100001);
_visible = false;
}
}
frame 748 {
i = 0;
while (i < ArrowArray.length) {
removeMovieClip('arrow' + i);
++i;
}
i = 0;
while (i < GirlArray.length) {
removeMovieClip('girl' + i);
++i;
}
i = 0;
while (i < BoulderArray.length) {
removeMovieClip('boulder' + i);
++i;
}
i = 0;
while (i < 10) {
removeMovieClip('Tree' + i);
++i;
}
i = 0;
while (i < 10) {
removeMovieClip('floor1' + i);
removeMovieClip('BigFloor' + i);
++i;
}
_root.score._visible = false;
removeMovieClip('Man0');
removeMovieClip('Tree');
}
movieClip 174 {
}
movieClip 177 {
}
movieClip 181 {
}
movieClip 185 {
}
movieClip 189 {
}
button 194 {
on (release) {
play();
}
}
movieClip 195 {
frame 1 {
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
} else {
levelcomplete._visible = true;
timeup._visible = false;
}
stop();
}
frame 2 {
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
_root.boo.start();
} else {
levelcomplete._visible = true;
timeup._visible = false;
_root.clap.start();
}
timebonus = 1000 * _root.currenttimer;
girlscollected = _root.currentgirls;
totalscore += _root.currentgirls * timebonus;
_root.totalscore = totalscore;
_root.currentgirls = 0;
}
frame 12 {
stop();
}
frame 127 {
_root.currentgirls = 0;
_root.Score.Girls = 0;
_root.StartTimer = new date();
_root.man0.RobbieActive = true;
_root.man0.active = true;
removeMovieClip(this);
}
}
instance loading2 of movieClip 195 {
onClipEvent (load) {
this.swapDepths(100004);
_x = 249.5;
_y = 140.6;
_visible = false;
}
}
frame 749 {
TreeArray = new Array();
BoulderArray = new Array();
BoulderArray2 = new Array();
GirlArray = new Array();
ArrowArray = new Array();
BoulderArray[0] = [600, 200];
BoulderArray[1] = [800, -500];
BoulderArray[2] = [1000, -475];
BoulderArray[3] = [1200, -350];
BoulderArray[4] = [1800, -300];
BoulderArray[5] = [1200, 150];
BoulderArray[6] = [1400, 100];
BoulderArray2[0] = [800, -300];
BoulderArray2[1] = [2000, -100];
BoulderArray2[2] = [1800, -100];
BoulderArray2[3] = [1600, -100];
BoulderArray2[4] = [1400, -100];
BoulderArray2[5] = [1300, -100];
GirlArray[0] = [800, -400];
GirlArray[1] = [1000, -600];
GirlArray[2] = [2000, -350];
GirlArray[3] = [1100, -150];
GirlArray[4] = [2200, 100];
ArrowArray[0] = [500, 150, 0];
ArrowArray[1] = [700, -300, 90];
ArrowArray[2] = [675, -350, 0];
ArrowArray[3] = [1200, -500, 180];
ArrowArray[4] = [1400, -400, 90];
ArrowArray[5] = [2000, -200, 180];
ArrowArray[6] = [1200, 100, 0];
CreateBoulders();
CreateBoulders2();
CreateFloor();
CreateGirls();
CreateArrows();
_root.loading._visible = false;
_root.score.girls = 0;
stop();
}
movieClip 196 {
}
instance bigfloor of movieClip 196 {
onClipEvent (load) {
if (_name eq 'bigfloor') {
_visible = false;
} else {
_x = Internal_X;
_y = Internal_Y;
alive = true;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'floor') && alive && _root.man0.active) {
if (!_root.slow) {
currentx = Internal_X + _root.man0.offsetX / 5;
}
currenty = Internal_Y + _root.man0.offsetY / 15;
if (currentx < 1000 && -500 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 197 {
instance line of movieClip 74 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY * 1.2;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
}
instance boulder of movieClip 197 {
onClipEvent (load) {
if (_name eq 'boulder') {
_visible = false;
} else {
_x = Internal_x;
_y = Internal_y;
onscreen = true;
alive = true;
}
if (_name eq 'boulder0') {
mover = true;
Horiz = false;
Up = true;
MoveAmount = 200;
movercounter = 100;
moveforwards = true;
MoveSpeed = 4;
}
if (_name eq 'boulder4') {
mover = true;
movercounter = 0;
moveforwards = true;
Horiz = true;
Up = false;
MoveAmount = 180;
MoveSpeed = 6;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'boulder') && _root.man0.robbieactive) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
if (mover) {
Internal_X += VelX;
Internal_Y += VelY;
++movercounter;
if (MoveAmount < movercounter && !moveforwards) {
moveforwards = true;
movercounter = 0;
if (Up) {
VelY = MoveSpeed;
} else {
VelX = MoveSpeed;
}
} else {
if (MoveAmount < movercounter && moveforwards) {
moveforwards = false;
movercounter = 0;
if (Up) {
VelY = -MoveSpeed;
} else {
VelX = -MoveSpeed;
}
}
}
}
}
}
}
movieClip 198 {
}
instance floor of movieClip 198 {
onClipEvent (load) {
if (_name eq 'floor') {
_visible = false;
} else {
_y = Internal_Y;
_x = Internal_X;
onscreen = true;
alive = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'floor') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 1000 && -500 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 200 {
}
instance cloud0 of movieClip 200 {
onClipEvent (enterFrame) {
_x = _x + _root.man0.VelX * -0.008;
}
}
movieClip 201 {
}
instance Tree of movieClip 201 {
onClipEvent (load) {
if (!(_name eq 'Tree') && _root.man0.active) {
this.swapDepths(100 - _z);
_xscale = 100 - _z;
_yscale = 100 - _z;
offset = int(_z * 1.1) - 40;
_y = _y + offset;
_x = Internal_X;
} else {
_visible = false;
}
}
onClipEvent (enterFrame) {
this.swapDepths(100 - _z);
if (!(_name eq 'Tree') && _root.man0.active) {
_x = Internal_x + (_root.man0.OffSetX / _z) * 1.5;
}
}
}
movieClip 202 {
frame 1 {
_parent.right = true;
stop();
}
instance right of movieClip 139 {
onClipEvent (enterFrame) {
if (!_parent.GameFinish) {
if (_parent.jumping && 0 < _parent.VelY) {
running = false;
gotoAndStop(12);
} else {
if (_parent.jumping && _parent.VelY < 0) {
running = false;
gotoAndStop(11);
} else {
if (_parent.stopped || !_parent.RobbieActive) {
running = false;
gotoAndStop(1);
} else {
if (!_parent.stopped && !running) {
gotoAndPlay(2);
running = true;
}
}
}
}
} else {
stop();
}
}
}
frame 2 {
_parent.left = true;
stop();
}
instance left of movieClip 141 {
onClipEvent (enterFrame) {
if (!_parent.GameFinish) {
if (_parent.jumping && 0 < _parent.VelY) {
running = false;
gotoAndStop(12);
} else {
if (_parent.jumping && _parent.VelY < 0) {
running = false;
gotoAndStop(11);
} else {
if (_parent.stopped || !_parent.RobbieActive) {
running = false;
gotoAndStop(1);
} else {
if (!_parent.stopped && !running) {
gotoAndPlay(2);
running = true;
}
}
}
}
} else {
stop();
}
}
}
}
instance man0 of movieClip 202 {
onClipEvent (load) {
space = false;
active = false;
WorldOffSetX = 0;
GameFinish = false;
_root.Girls = 0;
Xoffset = 0;
this.swapDepths(20000);
Ground = 150;
VelY = 0;
VelX = 0;
MoveSpeed = 2;
Gravity = 2;
Friction = 0.85;
Jumping = false;
JumpSpeed = -22;
platform = false;
Internal_x = 250;
Internal_y = 150;
_x = Internal_X;
_y = Internal_Y;
Cap = false;
StartY = Internal_y;
StartX = Internal_x;
_root.Score.Girls = 0;
_root.Score.Timer = 60;
time = 60;
GameFinish = false;
RobbieActive = false;
stopped = true;
}
onClipEvent (enterFrame) {
if (!GameFinish) {
if (RobbieActive) {
CurrentTimer = new date();
time = CurrentTimer - _root.StartTimer;
time /= 1000;
time = int(time);
time = 60 - time;
_root.Score.Timer = time;
if (time == 0 || _root.Score.Girls == 5) {
GameFinish = true;
}
offsetX = StartX - Internal_X;
offsetY = (StartY - Internal_y) / 1.2;
VelOffSetX = VelX * -1;
VelOffSetY = VelY * -1;
Internal_x += VelX;
VelX *= Friction;
if (!platform) {
Internal_y += VelY;
}
if (15 < VelY) {
VelY = 15;
}
if (-1 < VelX && VelX < 1) {
stopped = true;
} else {
stopped = false;
}
if (Internal_y < Ground && !platform) {
VelY += Gravity;
Jumping = true;
} else {
VelY = 0;
Jumping = false;
}
if (Key.isDown(Key.RIGHT) && active && -4100 < offsetx) {
if (Jumping) {
Velx += MoveSpeed / 2;
} else {
Velx += MoveSpeed;
}
this.gotoAndStop(1);
}
if (Key.isDown(Key.LEFT) && active && 0 >= offsetx) {
if (Jumping) {
Velx += MoveSpeed * -1 / 2;
} else {
Velx += MoveSpeed * -1;
}
this.gotoAndStop(2);
}
if (Key.isDown(Key.SPACE) && !space) {
if (!Jumping) {
VelY = JumpSpeed;
Jumping = true;
platform = false;
space = true;
} else {
MoveJump = false;
}
}
}
} else {
_root.TotalTimer += _root.Score.Timer;
_root.TotalGirls += _root.Score.Girls;
_root.CurrentTimer = _root.Score.Timer;
_root.CurrentGirls = _root.Score.Girls;
active = false;
RobbieActive = false;
_root.loading._visible = true;
_root.loading.play();
_quality = 'MEDIUM';
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
space = false;
}
}
}
movieClip 204 {
instance line of movieClip 70 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
_parent.mover = true;
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
}
instance bouldercopy of movieClip 204 {
onClipEvent (load) {
if (_name eq 'bouldercopy') {
_visible = false;
} else {
_x = Internal_x;
_y = Internal_y;
hitcounter = 0;
MoveSpeed = 1;
onscreen = true;
alive = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'bouldercopy') && _root.man0.robbieactive && alive) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
if (mover) {
Internal_X += VelX;
Internal_Y += VelY;
++hitcounter;
if (10 < hitcounter) {
VelY += MoveSpeed;
}
}
}
}
}
movieClip 205 {
}
instance score of movieClip 205 {
onClipEvent (load) {
this.swapDepths(90000);
}
}
movieClip 206 {
}
instance arrow of movieClip 206 {
onClipEvent (load) {
if (_name eq 'arrow') {
_visible = false;
} else {
_x = Internal_X;
_y = Internal_Y;
alive = true;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'arrow') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 208 {
}
instance girl of movieClip 208 {
onClipEvent (load) {
if (_name eq 'girl') {
_visible = false;
} else {
alive = true;
_x = Internal_X;
_y = Internal_Y;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'girl') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
if (this.hitTest(_root.man0)) {
_root.kissgirl.start();
_visible = false;
++_root.Score.Girls;
alive = false;
removeMovieClip(this);
}
}
}
}
}
movieClip 209 {
frame 1 {
stop();
}
frame 2 {
girlscollected = _root.currentgirls;
if (girlscollected < 5) {
_root.failed = true;
} else {
_root.failed = false;
}
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
} else {
levelcomplete._visible = true;
timeup._visible = false;
}
}
frame 63 {
_root.play();
}
frame 80 {
if (_root.slow) {
_quality = 'LOW';
}
_root.loading2._visible = true;
_root.loading2.play();
removeMovieClip(this);
}
}
instance loading of movieClip 209 {
onClipEvent (load) {
this.swapDepths(100003);
_visible = false;
}
}
frame 750 {
i = 0;
while (i < ArrowArray.length) {
removeMovieClip('arrow' + i);
++i;
}
i = 0;
while (i < GirlArray.length) {
removeMovieClip('girl' + i);
++i;
}
i = 0;
while (i < BoulderArray.length) {
removeMovieClip('boulder' + i);
++i;
}
i = 0;
while (i < BoulderArray2.length) {
removeMovieClip('bouldernew' + i + 50);
removeMovieClip('bouldernew' + i);
++i;
}
i = 0;
while (i < 10) {
removeMovieClip('Tree' + i);
++i;
}
i = 0;
while (i < 10) {
removeMovieClip('floor1' + i);
removeMovieClip('BigFloor' + i);
++i;
}
_root.score._visible = false;
removeMovieClip('Man0');
}
movieClip 212 {
}
movieClip 213 {
frame 1 {
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
} else {
levelcomplete._visible = true;
timeup._visible = false;
}
stop();
}
frame 2 {
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
_root.boo.start();
} else {
levelcomplete._visible = true;
timeup._visible = false;
_root.clap.start();
}
timebonus = 1000 * _root.currenttimer;
girlscollected = _root.currentgirls;
totalscore = _root.currentgirls * timebonus + _root.totalscore;
_root.totalscore = totalscore;
_root.currentgirls = 0;
}
frame 12 {
stop();
}
frame 127 {
_root.currentgirls = 0;
_root.Score.Girls = 0;
_root.StartTimer = new date();
_root.man0.RobbieActive = true;
_root.man0.active = true;
removeMovieClip(this);
}
}
instance loading2 of movieClip 213 {
onClipEvent (load) {
this.swapDepths(1000004);
_x = 249.5;
_y = 140.6;
_visible = false;
}
}
frame 751 {
StartTimer = new date();
TreeArray = new Array();
BoulderArray = new Array();
GirlArray = new Array();
ArrowArray = new Array();
BoulderArray[0] = [600, 150];
BoulderArray[1] = [800, 100];
BoulderArray[2] = [1000, 0];
BoulderArray[3] = [1200, -100];
BoulderArray[4] = [1200, -200];
BoulderArray[5] = [1000, -300];
BoulderArray[6] = [800, -400];
BoulderArray[7] = [600, -500];
BoulderArray[8] = [1400, -100];
BoulderArray[9] = [1600, 0];
BoulderArray[10] = [1800, 100];
BoulderArray[11] = [2000, 150];
BoulderArray[12] = [1400, -200];
BoulderArray[13] = [1600, -300];
BoulderArray[14] = [1800, -400];
BoulderArray[15] = [2000, -500];
BoulderArray[16] = [1300, -400];
BoulderArray[17] = [1300, -500];
BoulderArray[18] = [1100, -600];
BoulderArray[19] = [900, -700];
BoulderArray[20] = [1500, -600];
BoulderArray[21] = [1700, -700];
GirlArray[0] = [600, -600];
GirlArray[1] = [2000, -600];
GirlArray[2] = [900, -800];
GirlArray[3] = [1700, -800];
GirlArray[4] = [1200, 100];
CreateBoulders();
CreateFloor();
CreateGirls();
_root.loading._visible = false;
stop();
}
movieClip 214 {
}
instance bigfloor of movieClip 214 {
onClipEvent (load) {
if (_name eq 'bigfloor') {
_visible = false;
} else {
_x = Internal_X;
_y = Internal_Y;
alive = true;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'floor') && alive && _root.man0.active) {
if (!_root.slow) {
currentx = Internal_X + _root.man0.offsetX / 5;
}
currenty = Internal_Y + _root.man0.offsetY / 15;
if (currentx < 1000 && -500 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 216 {
instance line of movieClip 79 {
onClipEvent (load) {
function Init() {
Flagged = true;
}
Init();
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.man0.collideline) && -1 < _root.man0.VelY && Flagged) {
Flagged = false;
_root.man0.VelY = 0;
_root.man0.platform = true;
_root.man0.jumping = false;
_root.landsound.start();
} else {
if (this.hitTest(_root.man0.collideline) && _root.man0.platform) {
if (_parent.mover) {
_root.man0.Internal_x += _parent.VelX;
_root.man0.Internal_y += _parent.VelY;
}
} else {
if (!this.hitTest(_root.collideline) && !Flagged) {
_root.man0.platform = false;
Init();
}
}
}
}
}
}
instance boulder of movieClip 216 {
onClipEvent (load) {
if (_name eq 'boulder') {
_visible = false;
} else {
_x = Internal_x;
_y = Internal_y;
onscreen = true;
alive = true;
}
if (_name eq 'boulder13') {
mover = true;
movercounter = 0;
moveforwards = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'boulder') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 217 {
}
instance floor of movieClip 217 {
onClipEvent (load) {
if (_name eq 'floor') {
_visible = false;
} else {
_y = Internal_Y;
_x = Internal_X;
onscreen = true;
alive = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'floor') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 1000 && -500 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 218 {
frame 1 {
_parent.right = true;
stop();
}
instance right of movieClip 139 {
onClipEvent (enterFrame) {
if (!_parent.GameFinish) {
if (_parent.jumping && 0 < _parent.VelY) {
running = false;
gotoAndStop(12);
} else {
if (_parent.jumping && _parent.VelY < 0) {
running = false;
gotoAndStop(11);
} else {
if (_parent.stopped || !_parent.RobbieActive) {
running = false;
gotoAndStop(1);
} else {
if (!_parent.stopped && !running) {
gotoAndPlay(2);
running = true;
}
}
}
}
} else {
stop();
}
}
}
frame 2 {
_parent.left = true;
stop();
}
instance left of movieClip 141 {
onClipEvent (enterFrame) {
if (!_parent.GameFinish) {
if (_parent.jumping && 0 < _parent.VelY) {
running = false;
gotoAndStop(12);
} else {
if (_parent.jumping && _parent.VelY < 0) {
running = false;
gotoAndStop(11);
} else {
if (_parent.stopped || !_parent.RobbieActive) {
running = false;
gotoAndStop(1);
} else {
if (!_parent.stopped && !running) {
gotoAndPlay(2);
running = true;
}
}
}
}
} else {
stop();
}
}
}
}
instance man0 of movieClip 218 {
onClipEvent (load) {
space = false;
active = false;
WorldOffSetX = 0;
GameFinish = false;
_root.Girls = 0;
Xoffset = 0;
this.swapDepths(20000);
Ground = 150;
VelY = 0;
VelX = 0;
MoveSpeed = 1;
Gravity = 2;
Friction = 0.95;
Jumping = false;
JumpSpeed = -22;
platform = false;
Internal_x = 250;
Internal_y = 150;
_x = Internal_X;
_y = Internal_Y;
Cap = false;
StartY = Internal_y;
StartX = Internal_x;
_root.Score.Girls = 0;
_root.Score.Timer = 60;
GameFinish = false;
RobbieActive = false;
stopped = true;
}
onClipEvent (enterFrame) {
if (!GameFinish) {
if (RobbieActive) {
if (0 < offsetx && Velx < 0) {
friction = 0.5;
} else {
if (offsetx < -2500 && 0 < Velx) {
friction = 0.5;
} else {
friction = 0.95;
}
}
CurrentTimer = new date();
time = CurrentTimer - _root.StartTimer;
time /= 1000;
time = int(time);
time = 60 - time;
_root.Score.Timer = time;
if (time == 0 || _root.Score.Girls == 5) {
GameFinish = true;
}
offsetX = StartX - Internal_X;
offsetY = (StartY - Internal_y) / 1.2;
VelOffSetX = VelX * -1;
VelOffSetY = VelY * -1;
Internal_x += VelX;
VelX *= Friction;
if (!platform) {
Internal_y += VelY;
}
if (15 < VelY) {
VelY = 15;
}
if (-1 < VelX && VelX < 1) {
stopped = true;
} else {
stopped = false;
}
if (Internal_y < Ground && !platform) {
VelY += Gravity;
Jumping = true;
} else {
VelY = 0;
Jumping = false;
}
if (Key.isDown(Key.RIGHT) && active && -4100 < offsetx) {
if (Jumping) {
Velx += MoveSpeed / 2;
} else {
Velx += MoveSpeed;
}
this.gotoAndStop(1);
}
if (Key.isDown(Key.LEFT) && active && 0 >= offsetx) {
if (Jumping) {
Velx += MoveSpeed * -1 / 2;
} else {
Velx += MoveSpeed * -1;
}
this.gotoAndStop(2);
}
if (Key.isDown(Key.SPACE) && !space) {
if (!Jumping) {
VelY = JumpSpeed;
Jumping = true;
platform = false;
space = true;
} else {
MoveJump = false;
}
}
}
} else {
_root.TotalTimer += _root.Score.Timer;
_root.TotalGirls += _root.Score.Girls;
_root.CurrentTimer = _root.Score.Timer;
_root.CurrentGirls = _root.Score.Girls;
active = false;
RobbieActive = false;
_root.loading._visible = true;
_root.loading.play();
_quality = 'MEDIUM';
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
space = false;
}
}
}
movieClip 219 {
}
instance score of movieClip 219 {
onClipEvent (load) {
this.swapDepths(90000);
}
}
instance arrow of movieClip 151 {
onClipEvent (load) {
if (_name eq 'arrow') {
_visible = false;
} else {
_x = Internal_X;
_y = Internal_Y;
alive = true;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'arrow') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
}
}
}
}
movieClip 220 {
}
movieClip 222 {
}
instance girl of movieClip 222 {
onClipEvent (load) {
if (_name eq 'girl') {
_visible = false;
} else {
alive = true;
_x = Internal_X;
_y = Internal_Y;
onscreen = true;
}
}
onClipEvent (enterFrame) {
if (!(_name eq 'girl') && alive && _root.man0.active) {
currentx = Internal_X + _root.man0.offsetX;
currenty = Internal_Y + _root.man0.offsetY;
if (currentx < 600 && -100 < currentx && -100 < currenty && currenty < 400) {
onscreen = true;
} else {
onscreen = false;
_visible = false;
}
if (onscreen) {
_visible = true;
_x = currentx;
_y = currenty;
if (this.hitTest(_root.man0)) {
_root.kissgirl.start();
_visible = false;
++_root.Score.Girls;
alive = false;
removeMovieClip(this);
}
}
}
}
}
movieClip 223 {
frame 1 {
stop();
}
frame 2 {
girlscollected = _root.currentgirls;
if (girlscollected < 5) {
_root.failed = true;
} else {
_root.failed = false;
}
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
} else {
levelcomplete._visible = true;
timeup._visible = false;
}
}
frame 63 {
_root.play();
}
frame 80 {
if (_root.slow) {
_quality = 'LOW';
}
_root.loading2._visible = true;
_root.loading2.play();
removeMovieClip(this);
}
}
instance loading of movieClip 223 {
onClipEvent (load) {
this.swapDepths(100005);
_visible = false;
}
}
frame 752 {
i = 0;
while (i < ArrowArray.length) {
removeMovieClip('arrow' + i);
++i;
}
i = 0;
while (i < GirlArray.length) {
removeMovieClip('girl' + i);
++i;
}
i = 0;
while (i < BoulderArray.length) {
removeMovieClip('boulder' + i);
++i;
}
i = 0;
while (i < BoulderArray2.length) {
removeMovieClip('bouldernew' + i + 50);
removeMovieClip('bouldernew' + i);
++i;
}
i = 0;
while (i < 10) {
removeMovieClip('Tree' + i);
++i;
}
i = 0;
while (i < 10) {
removeMovieClip('floor1' + i);
removeMovieClip('BigFloor' + i);
++i;
}
_root.score.girls = 0;
_root.score._visible = false;
removeMovieClip('Man0');
stop();
}
button 226 {
on (release) {
play();
}
}
movieClip 227 {
}
movieClip 232 {
}
movieClip 237 {
frame 1 {
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
} else {
levelcomplete._visible = true;
timeup._visible = false;
}
stop();
}
frame 2 {
if (_root.failed) {
levelcomplete._visible = false;
timeup._visible = true;
_root.boo.start();
} else {
levelcomplete._visible = true;
timeup._visible = false;
_root.clap.start();
}
timebonus = 1000 * _root.currenttimer;
girlscollected = _root.currentgirls;
totalscore = _root.currentgirls * timebonus + _root.totalscore;
_root.totalscore = totalscore;
_root.currentgirls = 0;
}
frame 12 {
stop();
}
frame 64 {
_root.clap.start();
}
frame 143 {
_root.play();
}
frame 198 {
removeMovieClip(this);
}
}
instance loading2 of movieClip 237 {
onClipEvent (load) {
this.swapDepths(1000006);
_x = 249.5;
_y = 140.6;
_visible = false;
}
}
frame 753 {
_quality = 'MEDIUM';
_root.score._visible = false;
stop();
}
movieClip 239 {
}
button 242 {
on (release) {
_root.goto();
}
}
movieClip 244 {
}
movieClip 247 {
}
movieClip 250 {
}
button 254 {
on (release) {
gotoAndPlay(13);
}
}
movieClip 257 {
}
movieClip 260 {
}
button 261 {
on (release, keyPress '<Enter>') {
if (0 < NewPlayerName.length && 0 < NewPlayerEmail.length) {
i = PlayerCounter;
while (numscores >= i) {
eval('newplayer' + i) = eval('player' + i);
eval('newscore' + i) = eval('score' + i);
++i;
}
eval('player' + playercounter) = NewPlayerName;
eval('score' + playercounter) = NewPlayerScore;
i = PlayerCounter + 1;
while (numscores >= i) {
eval('player' + i) = eval('newplayer' + (i - 1));
eval('score' + i) = eval('newscore' + (i - 1));
++i;
}
gotoAndPlay(9);
}
}
}
movieClip 264 {
}
movieClip 267 {
}
movieClip 273 {
}
movieClip 277 {
}
movieClip 280 {
}
movieClip 283 {
}
movieClip 285 {
}
movieClip 287 {
}
movieClip 289 {
}
movieClip 292 {
}
button 295 {
on (press) {
if (_parent.JumpTo eq 'False') {
ScrollUp = true;
}
}
on (release, releaseOutside, dragOut) {
if (_parent.JumpTo eq 'False') {
ScrollUp = false;
}
}
}
movieClip 296 {
}
button 297 {
on (press) {
if (_parent.JumpTo eq 'False') {
ScrollDown = true;
}
}
on (release, releaseOutside, dragOut) {
if (_parent.JumpTo eq 'False') {
ScrollDown = false;
}
}
}
movieClip 298 {
}
movieClip 301 {
}
movieClip 302 {
frame 1 {
Loaded = 'False';
Saved = 'False';
counter = 0;
action = 'get';
Hack = 'False';
ScrollCounter = 0;
scorebox = _root.totalscore;
}
instance loader of movieClip 244 {
onClipEvent (load) {
function post() {
action = 'send';
password = 'highscore';
NewPlayerName = _parent.NewPlayerName;
NewPlayerEmail = _parent.NewPlayerEmail;
NewPlayerScore = _parent.scorebox;
loadVariables('/cgi-bin/hiscore.pl', '_parent', 'GET');
}
}
}
frame 2 {
loadVariables('/cgi-bin/hiscore.pl', '', 'GET');
}
frame 3 {
if (Loaded eq 'True') {
gotoAndPlay(5);
}
if (countermax < counter || Hack eq 'True') {
gotoAndStop(6);
}
}
frame 4 {
++counter;
gotoAndPlay(3);
}
frame 5 {
i = 1;
playercounter = numscores + 1;
while (numscores >= i) {
currentscore = int(eval('score' + i));
if (scorebox >= currentscore && 0 < scorebox) {
playercounter -= 1;
HighScore = true;
NewPlayerScore = scorebox;
}
++i;
}
if (HighScore) {
gotoAndPlay(8);
} else {
gotoAndPlay(7);
}
}
frame 7 {
jumpto = 'False';
stop();
}
frame 8 {
back._visible = false;
stop();
}
frame 9 {
back._visible = true;
counter = 0;
action = 'send';
_root.highscore.loader.post();
}
frame 10 {
if (Saved eq 'True') {
gotoAndPlay(13);
}
if (countermax < counter || Hack eq 'True') {
gotoAndStop(12);
}
}
frame 11 {
++counter;
gotoAndPlay(10);
}
frame 13 {
i = 1;
while (numscores >= i) {
if (i != playercounter) {
duplicateMovieClip(this.box, 'pbox' + i, i);
this['pbox' + i]._x = playerboxx;
this['pbox' + i]._y = playerboxy + yoffset * i;
duplicateMovieClip(this.box, 'sbox' + i, i + numscores);
this['sbox' + i]._x = scoreboxx;
this['sbox' + i]._y = scoreboxy + yoffset * i;
this['pbox' + i].text = eval('player' + i);
this['sbox' + i].text = eval('score' + i);
} else {
duplicateMovieClip(this.box2, 'pbox' + i, i);
this['pbox' + i]._x = playerboxx;
this['pbox' + i]._y = playerboxy + yoffset * i;
duplicateMovieClip(this.box2, 'sbox' + i, i + numscores);
this['sbox' + i]._x = scoreboxx;
this['sbox' + i]._y = scoreboxy + yoffset * i;
this['pbox' + i].text = eval('player' + i);
this['sbox' + i].text = eval('score' + i);
}
++i;
}
if (scrollto eq 'True') {
this.scroll1._visible = true;
this.scroll2._visible = true;
} else {
this.scroll1._visible = false;
this.scroll2._visible = false;
}
}
instance box of movieClip 285 {
onClipEvent (load) {
if (_name eq 'box') {
_visible = false;
}
}
}
instance of movieClip 289 {
onClipEvent (load) {
this.swapDepths(1005);
}
}
instance of movieClip 292 {
onClipEvent (load) {
this.swapDepths(1006);
}
}
instance scroll1 of movieClip 296 {
onClipEvent (load) {
ScrollUp = false;
}
onClipEvent (enterFrame) {
if (ScrollUP) {
if (_parent.pbox1._y < _parent.BottomLimit) {
i = 1;
while (_parent.numscores >= i) {
_parent['pbox' + i]._y += _parent.UpSpeed;
_parent['sbox' + i]._y += _parent.UpSpeed;
++i;
}
}
} else {
if (_parent.JumpTo eq 'True') {
if (_parent.TopLimit < _parent['pbox' + _parent.numscores]._y) {
i = 1;
while (_parent.numscores >= i) {
_parent['pbox' + i]._y += _parent.JumpSpeed;
_parent['sbox' + i]._y += _parent.JumpSpeed;
++i;
}
_parent.JumpSpeed *= _parent.Friction;
}
if (_parent['pbox' + _parent.playercounter]._y < _parent.BottomLimit / _parent.Friction) {
_parent.JumpTo = 'False';
}
}
}
}
}
instance scroll2 of movieClip 298 {
onClipEvent (load) {
ScrollDown = false;
}
onClipEvent (enterFrame) {
if (ScrollDown) {
if (_parent.toplimit < _parent['pbox' + _parent.numscores]._y) {
i = 1;
while (_parent.numscores >= i) {
_parent['pbox' + i]._y += _parent.DownSpeed;
_parent['sbox' + i]._y += _parent.DownSpeed;
++i;
}
}
}
}
}
frame 14 {
stop();
}
}
instance highscore of movieClip 302 {
onClipEvent (load) {
password = 'highscore';
JumpSpeed = -10;
aspPath = 'http://www.robbiewilliams.co.uk/cgi-bin/';
aspName = 'hiscore.pl';
jumpto = 'True';
scrollto = 'True';
numScores = 50;
Friction = 1;
scoreBox = '_root.highscore.totalscores';
TopLimit = 30;
BottomLimit = -140;
UpSpeed = 20;
DownSpeed = -20;
countermax = 250;
yOffSet = 30;
playerboxx = 0;
playerboxy = -180;
scoreboxx = 300;
scoreboxy = -180;
}
}