Frame 1
Mouse.hide();
startDrag ("hair", true);
overit = false;
shots = 50;
i = 0;
hits = 0;
direction = "right";
soundA = new Sound();
soundA.attachSound("gunshot");
soundB = new Sound();
soundB.attachSound("scream");
soundC = new Sound();
soundC.attachSound("dont");
stop();
Instance of Symbol 21 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (_root.direction == "right") {
if (_root.sucka._x < 600) {
_root.sucka._x = _root.sucka._x + (2 * (_root.hits + 1));
} else {
_root.direction = "left";
}
} else {
_root.direction == "left";
if (-50 < _root.sucka._x) {
_root.sucka._x = _root.sucka._x - (2 * (_root.hits + 1));
} else {
_root.direction = "right";
}
}
x = 0;
while (_root.i >= x) {
if ((_root["shot_" + x]._visible == true) && (_root["shot_" + x]._y < 62)) {
if (_root["shot_" + x].hitTest(_root.sucka)) {
_root.hits++;
_root.soundB.start("scream");
if (_root.direction == "left") {
_root.direction = "right";
} else {
_root.direction = "left";
}
_root["shot_" + x]._visible = false;
} else {
_root["shot_" + x]._visible = false;
}
}
x++;
}
}
Frame 2
Mouse.show();
stopDrag();
x = 1;
while (_root.i >= x) {
_root["shot_" + x].removeMovieClip();
x++;
}
Symbol 16 Button
on (press) {
if (0 < _root.shots) {
_root.shot_0.duplicateMovieClip("shot_" + _root.i, _root.i);
_root.soundA.start("gunshot");
_root["shot_" + _root.i]._x = _root._xmouse;
_root["shot_" + _root.i]._y = _root._ymouse;
_root.i++;
_root.shots--;
} else {
tellTarget (_root) {
nextFrame();
};
}
}
Symbol 25 Button
on (press) {
getURL ("http://www.greentreestudio.net", "_blank");
}
Symbol 36 Button
on (rollOver) {
buttontarget = 125;
if (_root.overit == false) {
_root.soundC.start("dont");
_root.overit = true;
}
}
on (rollOut) {
_root.overit = false;
}
on (rollOut, releaseOutside) {
buttontarget = 100;
}
on (press) {
buttontarget = 150;
_root.soundA.start("gunshot", 0.5);
_root.soundB.start("scream", 0.5);
tellTarget (_root) {
prevFrame();
};
}
on (release) {
buttontarget = 100;
}
Symbol 37 MovieClip Frame 1
buttonscale = _parent._xscale;
buttontarget = buttonscale;
Symbol 37 MovieClip Frame 2
if (buttonscale != buttontarget) {
buttonscale = Math.round(buttonscale + ((buttontarget - buttonscale) / 0.6));
_parent._xscale = buttonscale;
_parent._yscale = buttonscale;
}
Symbol 37 MovieClip Frame 3
gotoAndPlay (2);