Combined Code
frame 1 {
stop();
}
button 6 {
on (release) {
gotoAndPlay(2);
}
}
button 7 {
on (release) {
gotoAndPlay(5);
}
}
frame 2 {
stop();
}
movieClip 45 {
}
movieClip 55 {
}
movieClip 79 {
frame 1 {
stop();
}
frame 20 {
gotoAndStop(1);
}
frame 37 {
gotoAndStop(1);
}
}
movieClip 84 {
}
movieClip 89 {
}
button 93 {
on (release) {
gotoAndPlay(3);
}
}
movieClip 97 {
}
instance of movieClip 97 {
onClipEvent (load) {
_root.showScore = 0;
_root.rtime = 0;
_root.timer = 30;
}
}
frame 3 {
stop();
}
instance of movieClip 97 {
onClipEvent (load) {
timeBetweencraigs = 1000;
nextcraig = getTimer() + timeBetweencraigs;
_root.shoeScore = 0;
}
onClipEvent (enterFrame) {
_root.rtime += 10;
if (_root.rtime == 100) {
_root.timer -= 1;
_root.rtime = 0;
_root.rtime = 0;
}
}
onClipEvent (enterFrame) {
if (getTimer() >= nextcraig) {
timeBetweencraigs -= 10;
if (_root.timer == 0) {
_root.gotoAndPlay('Endcraig');
} else {
_root.showScore = score;
while (!false) {
craig = int(Math.Random() * 6);
if (_root['craig ' + craig]._currentFrame == 1) {
break;
}
}
_root['craig ' + craig].gotoAndPlay('popup1');
nextcraig = getTimer() + timeBetweencraigs;
}
}
}
onClipEvent (mouseDown) {
x = _root._xmouse;
y = _root._ymouse;
i = 0;
while (i < 18) {
if (20 < _root['craig ' + i]._currentFrame) {
if (_root['craig ' + i].hitTest(x, y, false)) {
_root['craig ' + i].gotoAndPlay('whack1');
++score;
_root.showScore = score;
}
}
++i;
}
}
}
movieClip 100 {
}
instance of movieClip 100 {
onClipEvent (load) {
Mouse.hide();
startDrag(this, true, 20, 25, 378, 300);
}
}
frame 4 {
stop();
}
instance of movieClip 97 {
onClipEvent (load) {
Mouse.show();
}
}
button 109 {
on (release) {
gotoAndPlay(2);
}
}
button 112 {
on (release) {
gotoAndPlay(1);
}
}
frame 5 {
stop();
}
movieClip 152 {
frame 1 {
stop();
}
frame 20 {
gotoAndStop(1);
}
frame 37 {
gotoAndStop(1);
}
}
button 154 {
on (release) {
gotoAndPlay(6);
}
}
instance of movieClip 97 {
onClipEvent (load) {
_root.showScore = 0;
_root.rtime = 0;
_root.timer = 30;
}
}
frame 6 {
stop();
}
instance of movieClip 97 {
onClipEvent (load) {
timeBetweenwills = 1000;
nextwill = getTimer() + timeBetweenwills;
_root.showScore = 0;
}
onClipEvent (enterFrame) {
_root.rtime += 10;
if (_root.rtime == 100) {
_root.timer -= 1;
_root.rtime = 0;
_root.rtime = 0;
}
}
onClipEvent (enterFrame) {
if (getTimer() >= nextwill) {
timeBetweenwills -= 10;
if (_root.timer == 0) {
_root.gotoAndPlay('Endwill');
} else {
_root.showScore = score;
while (!false) {
will = int(Math.Random() * 6);
if (_root['will ' + will]._currentFrame == 1) {
break;
}
}
_root['will ' + will].gotoAndPlay('popup');
nextwill = getTimer() + timeBetweenwills;
}
}
}
onClipEvent (mouseDown) {
x = _root._xmouse;
y = _root._ymouse;
i = 0;
while (i < 18) {
if (20 < _root['will ' + i]._currentFrame) {
if (_root['will ' + i].hitTest(x, y, false)) {
_root['will ' + i].gotoAndPlay('whack');
++score;
_root.showScore = score;
}
}
++i;
}
}
}
instance of movieClip 100 {
onClipEvent (load) {
Mouse.hide();
startDrag(this, true, 20, 25, 378, 300);
}
}
frame 7 {
stop();
}
instance of movieClip 97 {
onClipEvent (load) {
Mouse.show();
}
}