Frame 1
play();
Frame 2
ifFrameLoaded (25) {
gotoAndPlay (5);
}
Frame 4
gotoAndPlay (1);
Frame 8
ifFrameLoaded (55) {
gotoAndPlay (15);
}
Frame 10
gotoAndPlay (6);
Frame 15
play();
Frame 25
stop();
Frame 26
PowerClick = "0";
TargetX = "230";
CrossHairLeft = "1";
power = "1";
balls = "11";
goals = "1";
tellTarget ("/BallsClip") {
gotoAndStop (11);
};
tellTarget ("/GoalsClip") {
gotoAndStop (1);
};
tellTarget ("/MissesClip") {
gotoAndStop (1);
};
setProperty("/PowerBarClip", _yscale , power);
Frame 30
tellTarget ("/BallClip") {
gotoAndStop (1);
}
Frame 31
if (PowerClick == "0") {
setProperty("/PowerBarClip", _yscale , power);
} else if (PowerClick == "1") {
power = power + "4";
if ("100" < power) {
PowerClick = "2";
power = "100";
height = "100";
}
setProperty("/PowerBarClip", _yscale , power);
} else if (PowerClick == "2") {
height = height - "4";
if (height < "0") {
PowerClick = "3";
height = "1";
}
setProperty("/PowerBarClip", _yscale , height);
} else if (PowerClick == "3") {
tellTarget ("/CocoClip") {
gotoAndPlay (2);
};
gotoAndPlay (33);
} else if ("3" < PowerClick) {
PowerClick = "0";
power = "1";
}
Frame 32
if (CrossHairLeft == "1") {
TargetX = TargetX - "15";
if (TargetX < "70") {
CrossHairLeft = "0";
}
} else {
TargetX = TargetX + "15";
if ("420" < TargetX) {
CrossHairLeft = "1";
}
}
setProperty("/CrossHairClip", _x , TargetX);
gotoAndPlay (31);
Frame 45
HippoAction = random("6");
time = "0";
BallX = "250";
BallY = "316";
BallVx = (TargetX - "250") / "5";
BallScale = "100";
Scaling = power / "6";
BallVy = (-"3") * height;
count = "0";
tellTarget ("/HippoClip") {
if (../:HippoAction == "0") {
gotoAndPlay ("NoMove");
} else if (../:HippoAction == "1") {
gotoAndPlay ("FallLeft");
} else if (../:HippoAction == "2") {
gotoAndPlay ("FallRight");
} else if (../:HippoAction == "3") {
gotoAndPlay ("JumpLeft");
} else if (../:HippoAction == "4") {
gotoAndPlay ("JumpRight");
} else if (../:HippoAction == "5") {
gotoAndStop ("JumpUp");
}
}
Frame 46
count = count + "1";
if ("10" < count) {
gotoAndPlay (48);
}
BallScale = BallScale - Scaling;
if (BallScale < "30") {
gotoAndPlay (48);
} else {
FloorY = "316" - (("100" - BallScale) * "1.95");
time = time + "0.4";
BallDy = (((time * BallVy) + (("5" * time) * time)) * BallScale) / "100";
BallX = BallX + BallVx;
BallY = FloorY + BallDy;
if (FloorY < BallY) {
BallY = FloorY;
time = "0";
}
setProperty("/BallClip", _x , BallX);
setProperty("/BallClip", _y , BallY);
setProperty("/BallClip", _xscale , BallScale);
setProperty("/BallClip", _yscale , BallScale);
if (power < "0") {
gotoAndPlay (48);
}
}
Frame 47
gotoAndPlay (46);
Frame 48
balls = balls - "1";
Goal = "0";
if (BallScale < "38") {
if (((("131" < BallX) and (BallX < "367")) and ("85" < BallY)) and (BallY < "195")) {
Goal = "1";
BallVx = "0";
BallVy = "0";
BallY = "185";
Scaling = "0";
if (((((HippoAction == "0") and ("205" < BallX)) and (BallX < "289")) and ("112" < BallY)) and (BallY < "200")) {
Goal = "0";
BallVx = "20";
BallVy = -"10";
Scaling = "5";
}
if (((((HippoAction == "1") and ("126" < BallX)) and (BallX < "250")) and ("139" < BallY)) and (BallY < "192")) {
Goal = "0";
BallVx = -"20";
BallVy = -"10";
Scaling = "5";
}
if (((((HippoAction == "2") and ("250" < BallX)) and (BallX < "376")) and ("147" < BallY)) and (BallY < "197")) {
Goal = "0";
BallVx = "20";
BallVy = -"10";
Scaling = "5";
}
if (((((HippoAction == "3") and ("126" < BallX)) and (BallX < "243")) and ("88" < BallY)) and (BallY < "200")) {
Goal = "0";
BallVx = -"20";
BallVy = -"10";
Scaling = "5";
}
if (((((HippoAction == "4") and ("259" < BallX)) and (BallX < "373")) and ("76" < BallY)) and (BallY < "200")) {
Goal = "0";
BallVx = "20";
BallVy = -"10";
Scaling = "5";
}
if (((((HippoAction == "5") and ("213" < BallX)) and (BallX < "278")) and ("76" < BallY)) and (BallY < "195")) {
Goal = "0";
BallVx = "10";
BallVy = -"20";
Scaling = "5";
}
} else if ("40" < BallScale) {
BallVx = "0";
BallVy = "0";
Scaling = "0";
} else {
if (BallX < "200") {
BallVx = -"15";
} else {
BallVx = "15";
}
BallVy = -"10";
Scaling = Scaling * "0.5";
}
}
count = "0";
trace(((((("HippoAction=" add HippoAction) add " (") add BallX) add ",") add BallY) add ")");
if (Goal == "1") {
goals = goals + "1";
} else {
tellTarget ("/CocoClip") {
gotoAndPlay ("Miss");
};
}
tellTarget ("/BallsClip") {
gotoAndStop(../:balls);
};
tellTarget ("/GoalsClip") {
gotoAndStop(../:goals);
};
tellTarget ("/MissesClip") {
gotoAndStop(("13" - ../:balls) - ../:goals);
}
Frame 49
BallX = BallX + BallVx;
if (Scaling <> "0") {
BallVy = BallVy + "1";
}
BallY = BallY + BallVy;
BallScale = BallScale + Scaling;
setProperty("/BallClip", _x , BallX);
setProperty("/BallClip", _y , BallY);
setProperty("/BallClip", _xscale , BallScale);
setProperty("/BallClip", _yscale , BallScale);
count = count + "1";
if ("15" < count) {
gotoAndPlay (51);
}
Frame 50
gotoAndPlay (49);
Frame 51
if (balls == "1") {
gotoAndPlay (52);
} else {
power = "1";
PowerClick = "0";
tellTarget ("/CocoClip") {
gotoAndStop (1);
};
tellTarget ("/HippoClip") {
gotoAndPlay (1);
};
setProperty("/BallClip", _x , "250");
setProperty("/BallClip", _y , "316");
setProperty("/BallClip", _xscale , "100");
setProperty("/BallClip", _yscale , "100");
gotoAndPlay (31);
}
Frame 55
stop();
Symbol 3 MovieClip Frame 1
play();
Symbol 3 MovieClip Frame 20
gotoAndPlay (1);
Symbol 8 MovieClip Frame 4
gotoAndPlay (2);
Symbol 18 Button
on (release) {
gotoAndPlay (26);
}
Symbol 44 Button
on (press) {
PowerClick = PowerClick + "1";
if (PowerClick == "2") {
height = power;
}
}
Symbol 49 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 12
gotoAndPlay (1);
Symbol 62 MovieClip Frame 19
stop();
Symbol 62 MovieClip Frame 24
stop();
Symbol 62 MovieClip Frame 29
stop();
Symbol 62 MovieClip Frame 39
stop();
Symbol 62 MovieClip Frame 46
stop();
Symbol 62 MovieClip Frame 53
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 46
stop();
Symbol 118 MovieClip Frame 60
stop();
Symbol 122 Button
on (release) {
tellTarget ("/CocoClip") {
gotoAndStop (1);
};
tellTarget ("/HippoClip") {
gotoAndPlay (1);
};
setProperty("/BallClip", _x , "250");
setProperty("/BallClip", _y , "316");
setProperty("/BallClip", _xscale , "100");
setProperty("/BallClip", _yscale , "100");
gotoAndPlay (26);
}