Frame 1
stop();
this.onEnterFrame = function () {
seasloaded = _root.getBytesLoaded();
seastotalloaded = _root.getBytesTotal();
seaspersenloaded = Math.floor((seasloaded / seastotalloaded) * 100);
_root.preloader.allProgress.barLoad._xscale = seaspersenloaded;
_root.preloader.allProgress.textLoad = seaspersenloaded;
if (seasloaded == seastotalloaded) {
_root.preloader.allProgress.gotoAndStop(2);
delete this.onEnterFrame;
}
};
Frame 2
function PlayGame() {
clearInterval(interval);
gotoAndPlay (10);
}
stop();
var interval = setInterval(PlayGame, 5000);
Frame 5
function PlayGame() {
clearInterval(interval);
gotoAndPlay (10);
}
stop();
var interval = setInterval(PlayGame, 5000);
Frame 10
function onEnterFrame() {
if (levelNumber == 11) {
return(undefined);
}
t1 = getTimer();
dT = t1 - t0;
t0 = t1;
dT = dT / 100;
if (transitioning) {
transition._alpha = transition._alpha + 5;
if (transition._alpha >= 100) {
levelNumber++;
level.nextFrame();
Reset();
transitioning = false;
transition._alpha = 0;
if (levelNumber == 11) {
clearInterval(tipsInterval);
gotoAndPlay (15);
}
}
} else {
if (Key.isDown(32)) {
Reset();
}
if ((greenThinger._x < -30) || (greenThinger._x > 478)) {
Reset();
}
if ((greenThinger._y < -30) || (greenThinger._y > 542)) {
Reset();
}
if (aiming) {
arrow._x = greenThinger._x;
arrow._y = greenThinger._y;
mouseX = _xmouse - arrow._x;
mouseY = (_ymouse - arrow._y) * -1;
var _local4 = Math.atan(mouseY / mouseX) / (Math.PI/180);
if (mouseX < 0) {
_local4 = _local4 + 180;
}
if ((mouseX >= 0) && (mouseY < 0)) {
_local4 = _local4 + 360;
}
var _local3 = Math.sqrt((mouseX * mouseX) + (mouseY * mouseY)) * 2;
if (_local3 > 255) {
_local3 = 255;
}
if (_local3 < 64) {
_local3 = 64;
}
arrow.power = _local3;
arrow._rotation = _local4 * -1;
if (Key.isDown(65) || (Key.isDown(37))) {
greenThinger._x = greenThinger._x - 64;
}
if (Key.isDown(68) || (Key.isDown(39))) {
greenThinger._x = greenThinger._x + 64;
}
if (greenThinger._x < 96) {
greenThinger._x = 96;
}
if (greenThinger._x > 352) {
greenThinger._x = 352;
}
} else {
greenThinger._x = greenThinger._x + (greenThinger.velocityX * dT);
greenThinger._y = greenThinger._y + (greenThinger.velocityY * dT);
if (level.pinkThinger.hitTest(greenThinger)) {
heart._x = level.pinkThinger._x;
heart._y = level.pinkThinger._y - 16;
heart._visible = true;
greenThinger._x = level.pinkThinger._x - 16;
greenThinger._y = level.pinkThinger._y;
greenThinger.velocityX = 0;
greenThinger.velocityY = 0;
greenThinger._rotation = 0;
level.pinkThinger._x = level.pinkThinger._x + 16;
transitioning = true;
var _local5 = new Sound(this);
_local5.attachSound("SoundKiss");
_local5.start(0, 1);
} else {
var _local2 = false;
if ((level.hitTest(greenThinger._x + 6, greenThinger._y, true) || (level.hitTest(greenThinger._x + 6, greenThinger._y - 2, true))) || (level.hitTest(greenThinger._x + 6, greenThinger._y + 2, true))) {
trace("Collision on the right");
greenThinger._x = greenThinger._x - 6;
greenThinger.velocityX = greenThinger.velocityX * -1;
_local2 = true;
}
if ((level.hitTest(greenThinger._x - 6, greenThinger._y, true) || (level.hitTest(greenThinger._x - 6, greenThinger._y - 2, true))) || (level.hitTest(greenThinger._x - 6, greenThinger._y + 2, true))) {
trace("Collision on the left");
greenThinger._x = greenThinger._x + 6;
greenThinger.velocityX = greenThinger.velocityX * -1;
_local2 = true;
}
if ((level.hitTest(greenThinger._x, greenThinger._y + 6, true) || (level.hitTest(greenThinger._x - 2, greenThinger._y + 6, true))) || (level.hitTest(greenThinger._x + 2, greenThinger._y + 6, true))) {
trace("Collision on the bottom");
greenThinger._y = greenThinger._y - 6;
greenThinger.velocityY = greenThinger.velocityY * -1;
_local2 = true;
}
if ((level.hitTest(greenThinger._x, greenThinger._y - 6, true) || (level.hitTest(greenThinger._x - 2, greenThinger._y - 6, true))) || (level.hitTest(greenThinger._x + 2, greenThinger._y - 6, true))) {
trace("Collision on the top");
greenThinger._y = greenThinger._y + 6;
greenThinger.velocityY = greenThinger.velocityY * -1;
_local2 = true;
}
if (_local2) {
var _local6 = new Sound(this);
_local6.attachSound("SoundBoing");
_local6.start(0, 1);
bounces--;
}
}
if (bounces <= 0) {
Reset();
noMoreBounces.reset();
}
}
}
bouncesText.text = bounces.toString();
}
function onMouseUp() {
if (aiming && (levelNumber != 11)) {
var _local2 = arrow._rotation - 1;
greenThinger.velocityX = (Math.cos((_local2 * Math.PI) / 180) * arrow.power) / 8;
greenThinger.velocityY = (Math.sin((_local2 * Math.PI) / 180) * arrow.power) / 8;
aiming = false;
arrow._visible = false;
trace(greenThinger.velocityX);
var _local3 = new Sound(this);
_local3.attachSound("SoundWhoosh");
_local3.start(0, 1);
}
}
function Reset() {
if (levelNumber != 11) {
greenThinger._x = 224;
greenThinger._y = 470;
greenThinger.velocityX = 0;
greenThinger.velocityY = 0;
greenThinger._rotation = 0;
aiming = true;
arrow._visible = true;
heart._visible = false;
bounces = 10;
}
}
function ShowTips() {
trace("Show Tips");
tips._alpha = tips._alpha - 1;
if (tips._alpha < 80) {
tips._alpha = tips._alpha - 4;
}
if (tips._alpha <= 0) {
clearInterval(tipsInterval);
}
}
stop();
stage.addEventListener(MouseEvent.MOUSE_UP, MouseUp);
stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyDown);
greenThinger.velocityX = 0;
greenThinger.velocityY = 0;
var t0 = getTimer();
var t1 = 0;
var dT = 0;
var aiming = true;
var transitioning = false;
heart._visible = false;
transition._alpha = 0;
transition._x = 0;
transition._y = 0;
var levelNumber = 1;
var tipsInterval = setInterval(ShowTips, 200);
var bounces = 10;
noMoreBounces._visible = false;
Frame 15
stop();
Symbol 6 MovieClip [NoMoreBounces] Frame 1
function reset() {
_visible = true;
frames = 0;
}
function onEnterFrame() {
frames++;
if (frames >= 80) {
_visible = false;
}
}
var frames = 0;
Symbol 15 MovieClip [GreenThinger] Frame 1
function onEnterFrame() {
_rotation = (_rotation + (velocityX / 5));
}
stop();
var velocityX = 0;
var velocityY = 0;
Symbol 18 MovieClip [Arrow] Frame 1
stop();
Symbol 21 MovieClip [HorizontalTile] Frame 1
function onEnterFrame() {
t1 = getTimer();
dT = t1 - t0;
t0 = t1;
dT = dT / 100;
if (left) {
_x = (_x - (6 * dT));
if (_x < leftBound) {
left = false;
}
} else {
_x = (_x + (6 * dT));
if (_x > rightBound) {
left = true;
}
}
}
stop();
var left = true;
var leftBound = (_x - 64);
var rightBound = (_x + 64);
var t0 = getTimer();
var t1 = 0;
var dT = 0;
Symbol 23 MovieClip [VerticalPlatform] Frame 1
function onEnterFrame() {
t1 = getTimer();
dT = t1 - t0;
t0 = t1;
dT = dT / 100;
if (up) {
_y = (_y - (6 * dT));
if (_y < upperBound) {
up = false;
}
} else {
_y = (_y + (6 * dT));
if (_y > lowerBound) {
up = true;
}
}
}
stop();
var up = true;
var upperBound = (_y - 64);
var lowerBound = (_y + 64);
var t0 = getTimer();
var t1 = 0;
var dT = 0;
Symbol 25 MovieClip [HorizontalPlatform] Frame 1
function onEnterFrame() {
t1 = getTimer();
dT = t1 - t0;
t0 = t1;
dT = dT / 100;
if (left) {
_x = (_x - (6 * dT));
if (_x < leftBound) {
left = false;
}
} else {
_x = (_x + (6 * dT));
if (_x > rightBound) {
left = true;
}
}
}
stop();
var left = true;
var leftBound = (_x - 64);
var rightBound = (_x + 64);
var t0 = getTimer();
var t1 = 0;
var dT = 0;
Symbol 42 MovieClip [Level] Frame 1
stop();
var LevelWidth = 448;
var LevelHeight = 512;
pinkThinger._x = LevelWidth / 2;
pinkThinger._y = 96;
Symbol 42 MovieClip [Level] Frame 2
stop();
pinkThinger._x = 352;
pinkThinger._y = 64;
Symbol 42 MovieClip [Level] Frame 3
stop();
pinkThinger._x = 228;
pinkThinger._y = 256;
Symbol 42 MovieClip [Level] Frame 4
stop();
pinkThinger._x = 96;
pinkThinger._y = 112;
Symbol 42 MovieClip [Level] Frame 5
stop();
pinkThinger._x = 224;
pinkThinger._y = 256;
Symbol 42 MovieClip [Level] Frame 6
stop();
pinkThinger._x = 224;
pinkThinger._y = 96;
Symbol 42 MovieClip [Level] Frame 7
stop();
Symbol 42 MovieClip [Level] Frame 8
stop();
pinkThinger._x = 64;
pinkThinger._y = 64;
Symbol 42 MovieClip [Level] Frame 9
stop();
pinkThinger._x = 352;
pinkThinger._y = 224;
Symbol 42 MovieClip [Level] Frame 10
stop();
pinkThinger._x = 224;
pinkThinger._y = 64;
Symbol 45 MovieClip [Cloud] Frame 1
function onEnterFrame() {
t1 = getTimer();
dT = t1 - t0;
t0 = t1;
dT = dT / 100;
_x = (_x + (-4 * dT));
if (_x < -115) {
_x = 563;
}
}
var t0 = getTimer();
var t1 = 0;
var dT = 0;
Symbol 48 MovieClip [Heart] Frame 1
function onEnterFrame() {
if (shrinking) {
_xscale = (_xscale - 2);
_yscale = (_yscale - 2);
if (_xscale < 32) {
shrinking = false;
}
} else {
_xscale = (_xscale + 2);
_yscale = (_yscale + 2);
if (_xscale > 85) {
shrinking = true;
}
}
}
var shrinking = true;
_xscale = 85;
_yscale = 85;
Symbol 50 Button
on (release) {
getURL ("http://www.cuteflashgames.com", "_blank");
}
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 145
stop();
_parent.gotoAndPlay(2);
Symbol 84 Button
on (release) {
_root.preloader.logo.gotoAndPlay(2);
this._visible = false;
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Instance of Symbol 85 MovieClip "allProgress" in Symbol 88 MovieClip Frame 1
onClipEvent (load) {
var xGoyang = 4;
var yGoyang = -4;
bacaGoyang = false;
jGoyang = 0;
}
onClipEvent (enterFrame) {
if (bacaGoyang) {
if (jGoyang <= 4) {
jGoyang++;
if (xGoyang == 4) {
if (yGoyang == -4) {
xGoyang = 4;
yGoyang = 4;
} else {
xGoyang = -4;
yGoyang = -4;
}
} else if (xGoyang == -4) {
if (yGoyang == 4) {
xGoyang = 4;
yGoyang = -4;
} else {
xGoyang = -4;
yGoyang = 4;
}
}
_parent.logo._x = _parent.logo._x + xGoyang;
_parent.logo._y = _parent.logo._y + yGoyang;
} else {
bacaGoyang = false;
jGoyang = 1;
}
}
}
Symbol 88 MovieClip Frame 55
_root.play();
Symbol 95 Button
on (release) {
getURL ("http://www.cuteflashgames.com", "_blank");
}