Frame 1
var _music = new Sound();
_music.attachSound("_music");
var _scoresloaded = false;
_progress_bar.onEnterFrame = function () {
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.gotoAndPlay("Intro");
} else {
this._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
}
};
stop();
Frame 6
_global.vol = 100;
if (_music.position == 0) {
_music.start(0, 99);
}
stop();
Frame 10
function InitScores() {
_root.attachMovie("_scoremovie", "_scoremovie", _root.getNextHighestDepth());
_scoremovie.onEnterFrame = function () {
if (_scoresloaded == false) {
_scoremovie.loadVariables("http://www.johntear.com/scoreboard/getscores.asp?id=2");
_scoresloaded = true;
}
};
_scoremovie.onData = function (data) {
_hightable = this.Scores.split("%%");
_topscore = _hightable[1];
};
}
if (_music.position == 0) {
_music.setVolume(_global.vol);
_music.start(0, 99);
}
btnPlay.onRelease = function () {
_music.stop();
gotoAndPlay ("Game");
};
jtcom.onRelease = function () {
getURL ("http://www.johntear.com", "_blank");
};
btnScores.onRelease = function () {
gotoAndPlay ("High Scores");
};
btnAdd.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
btnDownload.onRelease = function () {
getURL ("http://www.ifungames.com/", "_blank");
};
btnMore.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
var _topscore = 0;
var _hightable = new Array();
_scoresloaded = false;
InitScores();
stop();
Frame 21
function _skeet(velocity, angle, movieName) {
this.velcoity = velocity;
this.angle = angle;
this.movieName = movieName;
this.fired = false;
}
function InitSounds() {
_gunshot.attachSound("_gunshot");
_starter.attachSound("_starter");
_ambience.attachSound("_ambience");
_intro.attachSound("_intro");
_faileded.attachSound("_faileded");
_good.attachSound("_good");
}
function InitLevel() {
_levelCountdown = 150;
_hitCount = 0;
_scoreMultiplier = 10;
_levelCount++;
_skeetReleaseRate--;
_skeetReleaseCounter = _skeetReleaseRate;
InitSkeets();
txtSkeetsLeft = "HITS LEFT: " + (_levelCount + 14);
_root.attachMovie("_qualifystatus", "_qualifystatus", _root.getNextHighestDepth());
_root._qualifystatus._x = 300;
_root._qualifystatus._y = 190;
_root._qualifystatus.Status.txtStatus = (_levelCount + 14) + " HITS TO QUALIFY";
}
function InitMouse() {
Mouse.hide();
_root.attachMovie("_crosshair", "_crosshairLeft", _root.getNextHighestDepth());
_crosshairLeft._x = 220;
_crosshairLeft._y = 410;
_crosshairLeft._y = _ymouse;
_root.attachMovie("_crosshair", "_crosshairRight", _root.getNextHighestDepth());
_crosshairRight._x = 380;
_crosshairRight._y = 410;
_crosshairRight._y = _ymouse;
_mouseListener.onMouseMove = function () {
_crosshairLeft._y = _ymouse;
_crosshairRight._y = _ymouse;
};
Mouse.addListener(_mouseListener);
_root.txtHighScore = _topscore + " :HIGH SCORE";
}
function InitPlayer() {
_root.attachMovie("_playerleft", "_playerleft", _root.getNextHighestDepth());
_playerleft._x = 300;
_playerleft._y = 320;
_playerleft._visible = false;
_root.attachMovie("_playerright", "_playerright", _root.getNextHighestDepth());
_playerright._x = 300;
_playerright._y = 320;
_playerright._visible = false;
_root.attachMovie("_playermid", "_playermid", _root.getNextHighestDepth());
_playermid._x = 300;
_playermid._y = 320;
_ambience.start(1, 99);
_intro.start();
}
function InitSkeets() {
count = 0;
while (count < 30) {
var _local3 = random(5) + 7;
var _local2 = random(20) + 15;
var _local4 = count % 2;
_skeetArray[count] = new _skeet(_local3, _local2, "_skeet" + count);
_root.attachMovie("_skeet", _skeetArray[count].movieName, _root.getNextHighestDepth());
_root[_skeetArray[count].movieName]._xmov = Math.cos(_local2 * (Math.PI/180)) * _local3;
_root[_skeetArray[count].movieName]._ymov = Math.sin(_local2 * (Math.PI/180)) * _local3;
if (_local4 == 0) {
_root[_skeetArray[count].movieName]._x = 610;
_root[_skeetArray[count].movieName]._y = 230;
_root[_skeetArray[count].movieName]._xmov = _root[_skeetArray[count].movieName]._xmov * -1;
} else {
_root[_skeetArray[count].movieName]._x = -10;
_root[_skeetArray[count].movieName]._y = 230;
}
count++;
}
_currentSkeet = 0;
}
function InitSkeetDamage(xpos, ypos) {
var randname = random(10000);
_root.attachMovie("_skeetexplosion", "_skeetexplosion" + randname, _root.getNextHighestDepth());
with (eval ("_skeetexplosion" + randname)) {
_x = xpos;
_y = ypos;
}
}
function LevelCleanup() {
count = 0;
while (count < 31) {
_root[_skeetArray[count].movieName].removeMovieClip();
_root[_skeetArray[count].movieName].onEnterFrame = null;
count++;
}
}
var _mouseListener = new Object();
var _skeetArray = new Array();
var _resetCounter = -1;
var _levelCount = 0;
var _hitCount;
var _levelCountdown;
var _skeetReleaseCounter;
var _skeetReleaseRate = 31;
var _currentSkeet = 0;
var _gravity = -0.05;
var _score = 0;
var _scoreMultiplier;
var _hit = false;
var _failed = false;
var _gunshot = new Sound();
var _starter = new Sound();
var _ambience = new Sound();
var _intro = new Sound();
var _faileded = new Sound();
var _good = new Sound();
InitSounds();
InitMouse();
InitPlayer();
InitLevel();
_root.onEnterFrame = function () {
if (_levelCountdown != 0) {
_levelCountdown = _levelCountdown - 1;
}
if (_levelCountdown == 60) {
_starter.start();
_root.attachMovie("_ready", "_ready", _root.getNextHighestDepth());
_root._ready._x = 300;
_root._ready._y = 153;
}
if (_levelCountdown == 1) {
_root._ready.removeMovieClip();
_root._qualifystatus.removeMovieClip();
}
if ((_skeetReleaseCounter <= 0) && (_levelCountdown == 0)) {
_skeetReleaseCounter = _skeetReleaseRate;
_root[_skeetArray[_currentSkeet].movieName].onEnterFrame = function () {
this._x = this._x + this._xmov;
this._y = this._y - this._ymov;
this._ymov = this._ymov + _gravity;
};
_currentSkeet++;
} else {
_skeetReleaseCounter--;
}
if (_currentSkeet == 32) {
_starter.start();
_currentSkeet++;
}
if (_currentSkeet == 35) {
_currentSkeet++;
LevelCleanup();
if (_hitCount >= (_levelCount + 15)) {
_failed = false;
_root.attachMovie("_qualified", "_qualified", _root.getNextHighestDepth());
_root._qualified._x = 300;
_root._qualified._y = 153;
_good.start();
_crosshairLeft.swapDepths(_root.getNextHighestDepth());
_crosshairRight.swapDepths(_root.getNextHighestDepth());
} else {
_failed = true;
_root.attachMovie("_disqualified", "_disqualified", _root.getNextHighestDepth());
_root._disqualified._x = 300;
_root._disqualified._y = 153;
_faileded.start();
_crosshairLeft.swapDepths(_root.getNextHighestDepth());
_crosshairRight.swapDepths(_root.getNextHighestDepth());
}
}
if (_currentSkeet == 40) {
_qualified.removeMovieClip();
_disqualified.removeMovieClip();
if (_failed == true) {
_root.gotoAndStop("Game Over");
} else {
InitLevel();
}
}
if ((Key.isDown(90) && (_resetCounter == -1)) && (_levelCountdown == 0)) {
_playermid._visible = false;
_playerright._visible = false;
_playerleft._visible = true;
_resetCounter = 15;
_gunshot.start();
count = 0;
while (count < _skeetArray.length) {
if (_crosshairLeft.hitTest(_root[_skeetArray[count].movieName]._x, _root[_skeetArray[count].movieName]._y, false)) {
InitSkeetDamage(_root[_skeetArray[count].movieName]._x, _root[_skeetArray[count].movieName]._y);
_root[_skeetArray[count].movieName].removeMovieClip();
_score = _score + _scoreMultiplier;
if (_score > _topscore) {
_topscore = _score;
}
_scoreMultiplier = _scoreMultiplier + 10;
_root.txtScore = "SCORE: " + _score;
_root.txtHighScore = _topscore + " :HIGH SCORE";
_hit = true;
_hitCount++;
if (_hitCount < (_levelCount + 14)) {
txtSkeetsLeft = "HITS LEFT: " + ((_levelCount + 14) - _hitCount);
} else {
txtSkeetsLeft = "HITS LEFT: 0";
}
}
count++;
}
if (_hit == false) {
_scoreMultiplier = 10;
} else {
_hit = false;
}
}
if ((Key.isDown(88) && (_resetCounter == -1)) && (_levelCountdown == 0)) {
_playermid._visible = false;
_playerleft._visible = false;
_playerright._visible = true;
_resetCounter = 10;
_gunshot.start();
count = 0;
while (count < _skeetArray.length) {
if (_crosshairRight.hitTest(_root[_skeetArray[count].movieName]._x, _root[_skeetArray[count].movieName]._y, false)) {
InitSkeetDamage(_root[_skeetArray[count].movieName]._x, _root[_skeetArray[count].movieName]._y);
_root[_skeetArray[count].movieName].removeMovieClip();
_score = _score + _scoreMultiplier;
if (_score > _topscore) {
_topscore = _score;
}
_scoreMultiplier = _scoreMultiplier + 10;
_root.txtScore = "SCORE: " + _score;
_root.txtHighScore = _topscore + " :HIGH SCORE";
_hit = true;
_hitCount++;
if (_hitCount < (_levelCount + 14)) {
txtSkeetsLeft = "HITS LEFT: " + ((_levelCount + 14) - _hitCount);
} else {
txtSkeetsLeft = "HITS LEFT: 0";
}
}
count++;
}
if (_hit == false) {
_scoreMultiplier = 10;
} else {
_hit = false;
}
}
if (_resetCounter == 0) {
_resetCounter = -1;
_playermid._visible = true;
_playerright._visible = false;
_playerleft._visible = false;
}
if (_resetCounter > -1) {
_resetCounter--;
}
};
stop();
Frame 30
function AddScore() {
_root.attachMovie("_scoremovie", "_addmovie", _root.getNextHighestDepth());
_addmovie.onEnterFrame = function () {
if (_scoreadded == false) {
var _local1 = _score;
_scoreadded = true;
_addmovie.loadVariables((("http://www.johntear.com/scoreboard/addscore.asp?id=2&name=" + _nametext) + "&score=") + _local1);
delete eval (AddScore());
}
};
_addmovie.onData = function (data) {
_root.gotoAndPlay("Menu");
};
}
_music.start(0, 99);
_play_again.onRelease = function () {
_root.gotoAndPlay("Menu");
};
_high_scores.onRelease = function () {
_root.gotoAndPlay("High Scores");
};
btnAdd.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
btnMore.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
_enter.onRelease = function () {
AddScore();
};
if (_score < _hightable[9]) {
_addscore._x = -2000;
_ntext._x = -2000;
_enter._x = -2000;
_box._x = -2000;
}
Mouse.show();
_mouseListener.onMouseMove = null;
Mouse.removeListener(_mouseListener);
_crosshairLeft.removeMovieClip();
_crosshairRight.removeMovieClip();
_playermid.removeMovieClip();
_playerleft.removeMovieClip();
_playerright.removeMovieClip();
_music.start(0, 99);
var _scoreadded = false;
stop();
Frame 40
_play_again.onRelease = function () {
_root.gotoAndPlay("Menu");
};
count = 0;
while (count < _hightable.length) {
_root["_list" + count].text = _hightable[count].toUpperCase();
count++;
}
stop();
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Instance of Symbol 12 MovieClip [_turretshrapnel] "1" in Symbol 13 MovieClip [_skeetexplosion] Frame 1
onClipEvent (load) {
var directiontx = (random(10) - 5);
var directionty = (random(10) - 5);
var gravity = 0.1;
}
onClipEvent (enterFrame) {
gravity = gravity + 0.1;
_y = (_y + (directionty + gravity));
_x = (_x + directiontx);
_alpha = (_alpha - 2.5);
removeMovieClip(this);
}
Symbol 13 MovieClip [_skeetexplosion] Frame 41
this.removeMovieClip();
Symbol 37 MovieClip [_qualifystatus] Frame 1
var counter = 0;
onEnterFrame = function () {
if (counter <= 0) {
counter = 10;
if (Status._visible == true) {
Status._visible = false;
} else {
Status._visible = true;
}
} else {
counter--;
}
};
stop();
Symbol 56 MovieClip Frame 95
_root.play();
stop();
Symbol 106 MovieClip Frame 1
_root._music.setVolume(_global.vol);
if (_global.vol == 0) {
gotoAndStop ("mute");
}
btn1.onRelease = function () {
_global.vol = 0;
gotoAndStop ("mute");
};
stop();
Symbol 106 MovieClip Frame 10
_root._music.setVolume(_global.vol);
if (_global.vol == 100) {
gotoAndStop ("mute_off");
}
btn2.onRelease = function () {
_global.vol = 100;
gotoAndStop ("mute_off");
};
stop();
Symbol 113 MovieClip Frame 1
stop();