Frame 1
stop();
Instance of Symbol 7 MovieClip "BubblePreloader" in Frame 1
onClipEvent (enterFrame) {
if ((_root._framesloaded == _root._totalframes) and (0 < _root._totalframes)) {
gotoAndStop (3);
}
}
Instance of Symbol 78 MovieClip "hammer" in Frame 2
onClipEvent (mouseUp) {
play();
}
Frame 3
function updateRabbits() {
i = 1;
while (_root.numRabbits >= i) {
thisRabbit1 = eval ("rabbit" + i);
if (thisRabbit1.rabbitClip.impulseTime >= 160) {
thisRabbit1.rabbitClip.impulseTime = thisRabbit1.rabbitClip.impulseTime - 10;
}
if (35 >= thisRabbit1.rabbitClip.rabbitSpeed) {
thisRabbit1.rabbitClip.rabbitSpeed = thisRabbit1.rabbitClip.rabbitSpeed + 4;
}
i++;
}
}
numRabbits = 5;
rabbitCount = 5;
Mouse.hide();
duplicateMovieClip (hammer, "hammer1", 1000);
startDrag (_root.hammer1, true);
hammer._visible = 0;
theRabbitList = new Array();
i = 1;
while (_root.numRabbits >= i) {
duplicateMovieClip (_root.rabbit, "rabbit" + i, (_root.numRabbits * 10) + i);
thisRabbit = eval ("rabbit" + i);
thisRabbit._x = 10 + random(550);
thisRabbit._y = 10 + random(400);
thisRabbit.id = i;
theRabbitList.push(thisRabbit);
_root.rabbit._visible = 0;
i++;
}
Frame 5
if (0 >= _root.rabbitCount) {
i = 1;
while (_root.numRabbits >= i) {
thisRabbit = eval ("rabbit" + i);
thisRabbit.rabbitClip.play();
i++;
}
gotoAndPlay (6);
} else {
i = 1;
while (_root.numRabbits >= i) {
thisRabbit = eval ("rabbit" + i);
if (450 >= thisRabbit.rabbitClip.impulseTime) {
thisRabbit.rabbitClip.impulseTime = thisRabbit.rabbitClip.impulseTime + 0.3;
}
if (thisRabbit.rabbitClip.rabbitSpeed >= 2) {
thisRabbit.rabbitClip.rabbitSpeed = thisRabbit.rabbitClip.rabbitSpeed - 0.09;
}
i++;
}
gotoAndPlay (4);
}
Frame 30
stopDrag();
stopAllSounds();
Mouse.show();
i = 1;
while (_root.numRabbits >= i) {
thisRabbit = eval ("rabbit" + i);
removeMovieClip(thisRabbit);
i++;
}
removeMovieClip(hammer1);
stop();
Symbol 5 Button
on (keyPress "<Enter>") {
_root.Play();
}
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 2
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 5
gotoAndStop (1);
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 5
gotoAndStop (1);
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 5
gotoAndStop (1);
Symbol 36 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 5
gotoAndStop (1);
Symbol 37 MovieClip Frame 1
stop();
Symbol 37 MovieClip Frame 2
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 5
gotoAndStop (1);
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 5
gotoAndStop (1);
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 5
gotoAndStop (1);
Symbol 64 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
if ((-90 < _parent._rotation) && (_parent._rotation < 90)) {
rabbit.gotoAndStop(1);
} else {
rabbit.gotoAndStop(2);
}
stop();
Symbol 66 MovieClip Frame 2
if ((-90 < _parent._rotation) && (_parent._rotation < 90)) {
rabbit.gotoAndStop(1);
} else {
rabbit.gotoAndStop(2);
}
stop();
Symbol 66 MovieClip Frame 3
if ((-90 < _parent._rotation) && (_parent._rotation < 90)) {
rabbit.gotoAndStop(1);
} else {
rabbit.gotoAndStop(2);
}
stop();
Symbol 66 MovieClip Frame 4
_parent.swapDepths(_root.numRabbits + _parent.id);
_root.rabbitCount--;
_root.updateRabbits();
Symbol 66 MovieClip Frame 5
stop();
Symbol 66 MovieClip Frame 28
removeMovieClip(_parent);
stop();
Instance of Symbol 66 MovieClip "rabbitClip" in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
frameCounter_1 = 0;
frameCounter_2 = 0;
frame_1_duration = 2;
frame_2_duration = 5;
newPos_x = _parent._x;
newPos_y = _parent._y;
rabbitSpeed = 3 + random(7);
PI = Math.PI;
doHoppel_flag = 0;
gothit_flag = 0;
impulseTime = 470;
}
onClipEvent (enterFrame) {
function shake() {
rabbit.shaker.play();
}
function doHoppel() {
frameCounter_1++;
frameCounter_2++;
if (frame_1_duration >= frameCounter_1) {
this.gotoAndStop(2);
}
if (((frame_1_duration < frameCounter_1) && (frame_2_duration >= frameCounter_2)) && (gothit_flag != 1)) {
newPos_y = rabbitSpeed * Math.sin(radian);
newPos_x = rabbitSpeed * Math.cos(radian);
prePos_x = _parent._x + newPos_x;
prePos_y = _parent._y + newPos_y;
if (_root.track_1.hitTest(prePos_x, prePos_y, true)) {
newPos_x = 0;
newPos_y = 0;
} else if (_root.track_1.hitTest(prePos_x, prePos_y, true)) {
newPos_x = 0;
newPos_y = 0;
} else if (_root.track_1.hitTest(prePos_x, prePos_y, true)) {
newPos_x = 0;
newPos_y = 0;
} else if (_root.track_1.hitTest(prePos_x, prePos_y, true)) {
newPos_x = 0;
newPos_y = 0;
} else {
gotoAndStop (3);
}
_parent._x = _parent._x + newPos_x;
_parent._y = _parent._y + newPos_y;
}
if (((frame_1_duration < frameCounter_1) && (frame_2_duration < frameCounter_2)) && (gothit_flag != 1)) {
this.gotoAndStop(1);
frameCounter_1 = 0;
frameCounter_2 = 0;
doHoppel_flag = 0;
}
}
randomVar = random(500);
if ((randomVar >= impulseTime) && (gothit_flag != 1)) {
if (doHoppel_flag != 1) {
_parent._rotation = random(360);
radian = _parent._rotation * (Math.PI/180);
doHoppel_flag = 1;
}
}
if ((doHoppel_flag == 1) && (gothit_flag != 1)) {
doHoppel();
}
}
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 5
i = 0;
while (_root.theRabbitList.length >= i) {
thisRabbit = _root.theRabbitList[i];
if (_root.hammer1.crossHair.hitTest(thisRabbit.rabbitClip) && (thisRabbit.rabbitClip.gothit_flag != 1)) {
thisRabbit.rabbitClip.gothit_flag = 1;
thisRabbit.rabbitClip.gotoAndPlay("die");
myFlag = 1;
break;
}
thisRabbit.rabbitClip.shake();
i++;
}
_root.updateRabbits();
Symbol 78 MovieClip Frame 6
gotoAndStop (1);
Symbol 83 Button
on (release) {
gotoAndPlay (1);
}