Frame 1
stop();
Frame 3
Mouse.hide();
duplicateMovieClip (_root.target, "targ", 100);
startDrag (_root.targ, true);
var game_score = 0;
var movie_width = 550;
var movie_height = 400;
var fps = 24;
var time = 30;
timeleft = time;
Frame 4
i = 0;
while (i < 6) {
if (!_root["goose" + i].flying) {
if (i < 2) {
duplicateMovieClip (_root.goose_far, "goose" + i, i);
} else if (i < 4) {
duplicateMovieClip (_root.goose_med, "goose" + i, i);
} else if (i < 6) {
duplicateMovieClip (_root.goose_near, "goose" + i, i);
}
_root["goose" + i].flying = true;
with (_root["goose" + i]) {
_x = movie_width + (Math.random() * (movie_width / 2));
_y = _height + (Math.random() * (movie_height - (2 * _height)));
}
} else {
with (_root["goose" + i]) {
_x = _x - speed;
if (_x < (-(_width / 2))) {
removeMovieClip();
}
}
}
i++;
}
if (frames == fps) {
time = time - 1;
timeleft = time;
frames = 0;
if (time == 0) {
gotoAndStop ("gameover");
}
} else {
frames++;
play();
}
Frame 5
gotoAndPlay (4);
Frame 10
Mouse.show();
stopDrag();
removeMovieClip("targ");
i = 0;
while (i < 6) {
removeMovieClip("goose" + i);
i++;
}
stop();