Frame 1
stop();
Frame 2
function attachCandy() {
duplicateMovieClip (_root.candy, "newCandy" + i, i);
_root["newCandy" + i]._x = candySpawnx;
_root["newCandy" + i]._y = candySpawny;
_root.i++;
}
function comboPlus() {
if (comboTimer < 0.5) {
comboTimer = comboTimer + 0.1;
} else {
_root.player.attackCombo = 1;
}
}
stop();
var diffcultyLevel = 0;
var counter = 0;
var gameStarted = false;
var gameEnded = false;
var score = 0;
var playerName = "Insert Name";
var health = 100;
var i = 10;
var ableSpawnEnemies = true;
var candySpawnx;
var candySpawny;
var enemySpawnx = 24;
var enemySpawny = 240;
var comboFix = 1;
var spawnEnemy1 = 3;
var spawnEnemy2 = 0;
var spawnEnemy3 = 0;
var enemyAmount1 = 0.5;
var enemyAmount2 = 0.4;
var enemyAmount3 = 0.2;
var enemiesKilled = 0;
var enemiesLeft = -3;
var playDoor = 0;
var comboTimer = 0;
setInterval(comboPlus, 100);
onEnterFrame = function () {
playDoor = Math.ceil(Math.random() * 4);
switch (playDoor) {
case 1 :
enemySpawnx = _root.door1._x;
enemySpawny = _root.door1._y;
break;
case 2 :
enemySpawnx = _root.door2._x;
enemySpawny = _root.door2._y;
break;
case 3 :
enemySpawnx = _root.door3._x;
enemySpawny = _root.door3._y;
break;
case 4 :
enemySpawnx = _root.door4._x;
enemySpawny = _root.door4._y;
}
if ((((_root.door1._currentframe == 1) && (_root.door2._currentframe == 1)) && (_root.door3._currentframe == 1)) && (_root.door4._currentframe == 1)) {
if (enemiesKilled != -1) {
_root["door" + playDoor].play();
spawnRate = 0;
duplicateMovieClip (_root.enemy1, "newEnemy1" + i, i);
_root["newEnemy1" + i]._x = enemySpawnx;
_root["newEnemy1" + i]._y = enemySpawny;
i++;
_root.spawnEnemy1--;
}
if (enemiesKilled >= 15) {
_root["door" + playDoor].play();
spawnRate = 0;
duplicateMovieClip (_root.enemy2, "newEnemy2" + i, i);
_root["newEnemy2" + i]._x = enemySpawnx;
_root["newEnemy2" + i]._y = enemySpawny;
i++;
_root.spawnEnemy2--;
}
if (enemiesKilled >= 35) {
_root["door" + playDoor].play();
duplicateMovieClip (_root.enemy3, "newEnemy3" + i, i);
_root["newEnemy3" + i]._x = enemySpawnx;
_root["newEnemy3" + i]._y = enemySpawny;
i++;
_root.spawnEnemy3--;
}
}
if (enemiesLeft == 0) {
enemyAmount1 = enemyAmount1 + (enemyAmount1 * 0.15);
enemyAmount2 = enemyAmount2 + (enemyAmount2 * 0.2);
enemyAmount3 = enemyAmount3 + (enemyAmount3 * 0.2);
spawnEnemy1 = spawnEnemy1 + Math.floor(enemyAmount1);
spawnEnemy2 = spawnEnemy2 + Math.floor(enemyAmount2);
spawnEnemy3 = spawnEnemy3 + Math.floor(enemyAmount3);
}
};
Instance of Symbol 25 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = (_root.vcam._x + 40);
_y = (_root.vcam._y - 155);
}
Instance of Symbol 42 MovieClip "candy" in Frame 2
onClipEvent (load) {
var xvel = ((Math.random() * 10) - (Math.random() * 10));
var yvel = ((Math.random() * -13) - 5);
this.swapDepths(_root.i);
_root.i++;
var spin = ((Math.random() * 30) - (Math.random() * 30));
gotoAndStop(Math.ceil(Math.random() * 8));
}
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.score++;
this.removeMovieClip();
}
if (!_root.ground.hitTest(_x, _y + (_height / 2), true)) {
_x = (_x + xvel);
_y = (_y + yvel);
yvel++;
_rotation = (_rotation + spin);
}
}
onClipEvent (enterFrame) {
if ((this._name != "candy") && ((_root.gameStarted == false) || (_root.gameEnded == true))) {
removeMovieClip(this);
}
}
Instance of Symbol 70 MovieClip "enemy1" in Frame 2
onClipEvent (load) {
var attackDistance = 100;
var randomSound = 0;
var walk = 3;
var grav = 1;
var health = 5;
var attackMode = false;
var candyCounter = 3;
this.swapDepths(_root.i);
_root.i++;
_root.enemiesLeft++;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
if (_y < 400) {
while (_root.ground.hitTest(_x, _y + (_height / 2.1), true)) {
_y = (_y-1);
grav = 0;
}
if (!_root.ground.hitTest(_x, _y + (_height / 2), true)) {
grav++;
} else {
grav = -1;
}
_y = (_y + grav);
_y = (_y+1);
if (_currentframe != 2) {
if ((Math.ceil(Math.random() * 200) == 1) && (attackMode == false)) {
_xscale = (_xscale * -1);
}
if (_currentframe != 3) {
_x = (_x + ((_xscale / 100) * walk));
}
if ((attackMode == true) && (health >= 0)) {
if (Math.abs(_x - _root.player._x) > attackDistance) {
gotoAndStop (5);
if (_x < _root.player._x) {
_xscale = 100;
} else {
_xscale = -100;
}
} else {
gotoAndStop (4);
_x = (_x - ((_xscale / 100) * walk));
if (this.hitTest(_root.player) && (enemy1Attack._currentframe == 17)) {
_root.health = _root.health - 10;
}
}
}
}
if ((this.hitTest(_root.player._x + (((_root.player._xscale / 100) * _root.player._width) / 1.5), _root.player._y - (_root.player._height / 2), true) && (_root.player.attackAnimation._currentframe == (_root.player.attackAnimation._totalframes - 1))) && (_currentframe != 3)) {
switch (Math.ceil(Math.random() * 3)) {
case 1 :
bgSound = new Sound(this);
bgSound.attachSound("PUNCH");
bgSound.start(0, 1);
break;
case 2 :
bgSound = new Sound(this);
bgSound.attachSound("punch1");
bgSound.start(0, 1);
break;
case 3 :
bgSound = new Sound(this);
bgSound.attachSound("punch2");
bgSound.start(0, 1);
}
health--;
if (_root.comboFix == 2) {
health = health - 0.5;
}
if (_root.comboFix == 2) {
health--;
}
_xscale = (-100 * (_root.player._xscale / Math.abs(_root.player._xscale)));
attackMode = true;
gotoAndStop (2);
if (health <= 0) {
gotoAndStop (3);
}
}
if (this.enemy1Hurt._currentframe == (this.enemy1Hurt._totalframes - 1)) {
gotoAndStop (1);
}
if (this._currentframe == 3) {
_root.candySpawnx = _x;
_root.candySpawny = _y - (_height + 20);
if (candyCounter != 0) {
_root.attachCandy();
candyCounter--;
}
}
if (this.enemy1Dead._currentframe == this.enemy1Dead._totalframes) {
this.enemy1Dead.stop();
if (candyCounter < 1) {
removeMovieClip(this);
_root.enemiesKilled++;
_root.enemiesLeft--;
}
}
if (_root.player.hitTest(_x, _y, true)) {
_root.player._x = _root.player._x + ((_root.player.speed * -1) * (_root.player._xscale / 100));
}
if (_root.player.hitTest(_x + (_width / 5), _y, true)) {
_root.player._x = _root.player._x + _root.player.speed;
_x = (_x - 3);
if (attackMode == false) {
_xscale = -100;
}
}
if (_root.player.hitTest(_x - (_width / 5), _y, true)) {
_root.player._x = _root.player._x - _root.player.speed;
_x = (_x + 3);
if (attackMode == false) {
_xscale = 100;
}
}
}
if (_x > 2195) {
_xscale = -100;
}
if (_x < -1550) {
_xscale = 100;
}
}
onClipEvent (enterFrame) {
if ((this._name != "enemy1") && ((_root.gameStarted == false) || (_root.gameEnded == true))) {
removeMovieClip(this);
}
if (_root.ground.hitTest(_x + (_width * (_xscale / 100)), _y, true)) {
_xscale = (_xscale * -1);
}
}
Instance of Symbol 72 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = (_root.vcam._x + 110);
_y = (_root.vcam._y - 170);
_xscale = _root.health;
}
Instance of Symbol 122 MovieClip "player" in Frame 2
onClipEvent (load) {
var attackCombo = 1;
var attacking = false;
var attackDelay = true;
var grav = 0;
var speed = 8;
var jumpHeight = 17;
var slow = 0.7;
var slowspd = (speed / 1.5);
var setspeed = speed;
var scale = _xscale;
var ex = 5;
this.gotoAndStop(2);
this.swapDepths(9999999);
}
onClipEvent (enterFrame) {
if (_currentframe != 5) {
grav++;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if (_root.water.hitTest(_x, _y, true)) {
if (grav > 0) {
grav = grav * slow;
}
speed = slowspd;
} else {
speed = setspeed;
}
if (Key.isDown(68) && (attacking == false)) {
_x = (_x + speed);
_xscale = scale;
if (_root.ground.hitTest(_x, _y + 3, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (Key.isDown(65) && (attacking == false)) {
_x = (_x - speed);
_xscale = (-scale);
if (_root.ground.hitTest(_x, _y + 4, true)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
} else if (((_root.ground.hitTest(_x, _y + 3, true) && (!Key.isDown(79))) && (!Key.isDown(73))) && (attacking == false)) {
this.gotoAndStop(3);
}
if ((Key.isDown(87) && (_root.ground.hitTest(_x, _y + 3, true))) && (grav == 0)) {
grav = -jumpHeight;
_y = (_y - 4);
this.gotoAndStop(2);
}
if ((_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x + (_width / 2)) + ex, _y - _height, true))) {
_x = (_x - speed);
}
if ((_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 2), true) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - (_height / 6), true))) || (_root.ground.hitTest((_x - (_width / 2)) - ex, _y - _height, true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, (_y - _height) - 15, true)) {
grav = 1;
}
if (!Key.isDown(32)) {
attackDelay = true;
} else if ((attackDelay == true) && (_root.ground.hitTest(_x, _y + 3, true))) {
gotoAndStop (4);
attacking = true;
attackDelay = false;
if ((attackCombo < 3) && (_root.comboTimer < 0.5)) {
if (attackCombo == _root.comboFix) {
attackCombo++;
}
} else {
attackCombo = 1;
}
_root.comboTimer = 0;
}
if (_root.player.attackAnimation._currentframe == _root.player.attackAnimation._totalframes) {
attacking = false;
}
}
}
onClipEvent (enterFrame) {
if (grav < -3) {
this.playerJump.gotoAndStop(1);
}
if (grav > 1) {
this.playerJump.gotoAndStop(3);
}
if ((grav > -3) && (grav < 1)) {
this.playerJump.gotoAndStop(2);
}
if (_x > 2328) {
_x = 2327;
}
if (_x < -1703) {
_x = -1702;
}
}
onClipEvent (enterFrame) {
if ((_root.gameStarted == false) || (_root.gameEnded == true)) {
_x = 250;
_y = 250;
}
if ((_root.health <= 0) && (_currentframe != 5)) {
gotoAndStop (5);
}
}
Instance of Symbol 157 MovieClip "enemy2" in Frame 2
onClipEvent (load) {
var attackDistance = 77;
var walk = 2.5;
var grav = 1;
var health = 8;
var attackMode = true;
var candyCounter = 6;
this.swapDepths(_root.i);
_root.i++;
_root.enemiesLeft++;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
if (_y < 400) {
while (_root.ground.hitTest(_x, _y + (_height / 2.1), true)) {
_y = (_y-1);
grav = 0;
}
if (!_root.ground.hitTest(_x, _y + (_height / 2), true)) {
grav++;
} else {
grav = -1;
}
_y = (_y + grav);
_y = (_y+1);
if (_currentframe != 2) {
if ((Math.ceil(Math.random() * 200) == 1) && (attackMode == false)) {
_xscale = (_xscale * -1);
}
if (_currentframe != 3) {
_x = (_x + ((_xscale / 100) * walk));
}
if ((attackMode == true) && (health >= 0)) {
if (Math.abs(_x - _root.player._x) > attackDistance) {
gotoAndStop (5);
if (_x < _root.player._x) {
_xscale = 100;
} else {
_xscale = -100;
}
} else {
gotoAndStop (4);
_x = (_x - ((_xscale / 100) * walk));
if (this.hitTest(_root.player) && (enemy2Attack._currentframe == 17)) {
_root.health = _root.health - 15;
}
}
}
}
if ((this.hitTest(_root.player._x + (((_root.player._xscale / 100) * _root.player._width) / 1.5), _root.player._y - (_root.player._height / 2), true) && (_root.player.attackAnimation._currentframe == (_root.player.attackAnimation._totalframes - 1))) && (_currentframe != 3)) {
switch (Math.ceil(Math.random() * 3)) {
case 1 :
bgSound = new Sound(this);
bgSound.attachSound("PUNCH");
bgSound.start(0, 1);
break;
case 2 :
bgSound = new Sound(this);
bgSound.attachSound("punch1");
bgSound.start(0, 1);
break;
case 3 :
bgSound = new Sound(this);
bgSound.attachSound("punch2");
bgSound.start(0, 1);
}
health--;
if (_root.comboFix == 2) {
health = health - 0.5;
}
if (_root.comboFix == 2) {
health--;
}
_xscale = (-100 * (_root.player._xscale / Math.abs(_root.player._xscale)));
attackMode = true;
gotoAndStop (2);
if (health <= 0) {
gotoAndStop (3);
}
}
if (this.enemy2Hurt._currentframe == (this.enemy2Hurt._totalframes - 1)) {
gotoAndStop (1);
}
if (this._currentframe == 3) {
_root.candySpawnx = _x;
_root.candySpawny = _y - (_height + 20);
if (candyCounter != 0) {
_root.attachCandy();
candyCounter--;
}
}
if (this.enemy2Dead._currentframe == this.enemy2Dead._totalframes) {
this.enemy2Dead.stop();
if (candyCounter < 1) {
_root.enemiesKilled++;
_root.enemiesLeft--;
removeMovieClip(this);
}
}
if (_root.player.hitTest(_x, _y, true)) {
_root.player._x = _root.player._x + ((_root.player.speed * -1) * (_root.player._xscale / 100));
}
if (_root.player.hitTest(_x + (_width / 5), _y, true)) {
_root.player._x = _root.player._x + _root.player.speed;
_x = (_x - 3);
if (attackMode == false) {
_xscale = -100;
}
}
if (_root.player.hitTest(_x - (_width / 5), _y, true)) {
_root.player._x = _root.player._x - _root.player.speed;
_x = (_x + 3);
if (attackMode == false) {
_xscale = 100;
}
}
}
}
onClipEvent (enterFrame) {
if ((this._name != "enemy2") && ((_root.gameStarted == false) || (_root.gameEnded == true))) {
removeMovieClip(this);
}
}
Instance of Symbol 189 MovieClip "enemy3" in Frame 2
onClipEvent (load) {
var attackDistance = 80;
var walk = 2;
var grav = 1;
var health = 15;
var attackMode = true;
var candyCounter = 10;
this.swapDepths(_root.i);
_root.i++;
_root.enemiesLeft++;
gotoAndStop (5);
}
onClipEvent (enterFrame) {
if (_y < 400) {
while (_root.ground.hitTest(_x, _y + (_height / 2.1), true)) {
_y = (_y-1);
grav = 0;
}
if ((!_root.ground.hitTest(_x, _y + (_height / 2), true)) && (_currentframe != 4)) {
grav++;
} else {
grav = -1;
}
_y = (_y + grav);
_y = (_y+1);
if (_currentframe != 2) {
if ((Math.ceil(Math.random() * 200) == 1) && (attackMode == false)) {
_xscale = (_xscale * -1);
}
if (_currentframe != 3) {
_x = (_x + ((_xscale / 100) * walk));
}
if ((attackMode == true) && (health >= 0)) {
if (Math.abs(_x - _root.player._x) > attackDistance) {
gotoAndStop (5);
if (_x < _root.player._x) {
_xscale = 100;
} else {
_xscale = -100;
}
} else {
gotoAndStop (4);
_x = (_x - ((_xscale / 100) * walk));
if (this.hitTest(_root.player) && (enemy3Attack._currentframe == 17)) {
_root.health = _root.health - 25;
}
}
}
}
if ((this.hitTest(_root.player._x + (((_root.player._xscale / 100) * _root.player._width) / 1.4), _root.player._y - (_root.player._height / 2), true) && (_root.player.attackAnimation._currentframe == (_root.player.attackAnimation._totalframes - 1))) && (_currentframe != 3)) {
switch (Math.ceil(Math.random() * 3)) {
case 1 :
bgSound = new Sound(this);
bgSound.attachSound("PUNCH");
bgSound.start(0, 1);
break;
case 2 :
bgSound = new Sound(this);
bgSound.attachSound("punch1");
bgSound.start(0, 1);
break;
case 3 :
bgSound = new Sound(this);
bgSound.attachSound("punch2");
bgSound.start(0, 1);
}
health--;
if (_root.comboFix == 2) {
health = health - 0.5;
}
if (_root.comboFix == 2) {
health--;
}
_xscale = (-100 * (_root.player._xscale / Math.abs(_root.player._xscale)));
attackMode = true;
gotoAndStop (2);
if (health <= 0) {
gotoAndStop (3);
}
}
if (this.enemy3Hurt._currentframe == (this.enemy3Hurt._totalframes - 1)) {
gotoAndStop (1);
}
if (this._currentframe == 3) {
_root.candySpawnx = _x;
_root.candySpawny = _y - (_height + 20);
if (candyCounter != 0) {
_root.attachCandy();
candyCounter--;
}
}
if (this.enemy3Dead._currentframe == this.enemy3Dead._totalframes) {
this.enemy3Dead.stop();
if (candyCounter < 1) {
removeMovieClip(this);
_root.enemiesKilled++;
_root.enemiesLeft--;
}
}
if (_root.player.hitTest(_x, _y, true)) {
_root.player._x = _root.player._x + ((_root.player.speed * -1) * (_root.player._xscale / 100));
}
if (_root.player.hitTest(_x + (_width / 5), _y, true)) {
_root.player._x = _root.player._x + _root.player.speed;
_x = (_x - 3);
if (attackMode == false) {
_xscale = -100;
}
}
if (_root.player.hitTest(_x - (_width / 5), _y, true)) {
_root.player._x = _root.player._x - _root.player.speed;
_x = (_x + 3);
if (attackMode == false) {
_xscale = 100;
}
}
}
}
onClipEvent (enterFrame) {
if ((this._name != "enemy3") && ((_root.gameStarted == false) || (_root.gameEnded == true))) {
removeMovieClip(this);
}
}
Instance of Symbol 198 MovieClip in Frame 2
onClipEvent (enterFrame) {
_x = (_root.vcam._x - 230);
_y = (_root.vcam._y - 170);
}
Instance of Symbol 202 MovieClip "vcam" in Frame 2
onClipEvent (enterFrame) {
if ((_root.player._x < 2135) && (_root.player._x > -1530)) {
_x = (_x + ((_root.player._x - _x) / 4));
}
_y = (_y + (((_root.player._y - _y) - 100) / 4));
}
Instance of Symbol 205 MovieClip "difficultyIncreased" in Frame 2
onClipEvent (load) {
var triggerPlay1 = false;
var triggerPlay2 = false;
var triggerPlay3 = false;
}
onClipEvent (enterFrame) {
_x = _root.vcam._x;
_y = (_root.vcam._y - 20);
if ((_root.enemiesKilled >= 10) && (triggerPlay2 == false)) {
play();
triggerPlay2 = true;
}
if ((_root.enemiesKilled >= 35) && (triggerPlay3 == false)) {
play();
triggerPlay3 = true;
}
}
Instance of Symbol 251 MovieClip "gameScreens" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
this.swapDepths(99999999);
}
onClipEvent (enterFrame) {
if ((_root.gameStarted == false) && (_root.gameEnded == false)) {
gotoAndStop (2);
}
if ((_root.gameStarted == true) && (_root.gameEnded == false)) {
gotoAndStop (1);
}
if ((_root.gameStarted == false) && (_root.gameEnded == true)) {
gotoAndStop (3);
}
}
Symbol 8 Button
on (press) {
getURL ("http://www.flashninjaclan.com", "_blank");
}
Symbol 17 Button
on (release) {
_root.play();
}
Symbol 18 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 18 MovieClip Frame 2
gotoAndPlay (1);
Symbol 49 MovieClip Frame 10
_parent._parent.gotoAndStop(1);
stop();
Symbol 52 MovieClip Frame 15
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 2
stop();
Symbol 70 MovieClip Frame 3
stop();
Symbol 70 MovieClip Frame 4
stop();
Symbol 70 MovieClip Frame 5
stop();
Symbol 91 MovieClip Frame 12
stop();
Symbol 112 MovieClip Frame 1
stop();
_root.comboFix = 1;
Symbol 112 MovieClip Frame 2
stop();
_root.comboFix = 2;
Symbol 112 MovieClip Frame 3
stop();
_root.comboFix = 3;
Instance of Symbol 112 MovieClip "combos" in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.player.attackCombo);
}
Symbol 121 MovieClip Frame 19
stop();
_root.gameEnded = true;
_root.gameStarted = false;
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 122 MovieClip Frame 5
stop();
Symbol 127 MovieClip Frame 10
_parent._parent.gotoAndStop(1);
stop();
Symbol 148 MovieClip Frame 31
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
parentColor.setTransform(camColor.getTransform());
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 205 MovieClip Frame 1
stop();
Symbol 214 Button
on (press) {
_root.gameStarted = true;
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 999);
}
Symbol 217 Button
on (press) {
getURL ("http://www.flashninjaclan.com/games/gimmecandy/topsites.php", "_blank");
}
Symbol 221 Button
on (press) {
getURL ("http://www.flashninjaclan.com", "_blank");
}
Symbol 223 Button
on (press) {
_root.gameScreens.instructions.gotoAndStop(2);
}
Symbol 235 Button
on (press) {
_root.gameScreens.instructions.gotoAndStop(1);
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
stop();
Symbol 242 Button
on (press) {
_root.diffcultyLevel = 0;
_root.gameStarted = false;
_root.gameEnded = false;
_root.health = 100;
_root.enemiesKilled = 0;
_root.score = 0;
_root.difficultyIncreased.triggerPlay1 = false;
_root.difficultyIncreased.triggerPlay2 = false;
_root.difficultyIncreased.triggerPlay3 = false;
_root.player.gotoAndStop(1);
_root.gotoAndStop(_root._currentframe);
}
Symbol 247 Button
on (press) {
nukescore = _root.score;
nukename = _root.playerName;
loadVariablesNum ("http://www.flashninjaclan.com/games/gimmecandy/newscore.php", 0, "POST");
_root.diffcultyLevel = 0;
_root.gameStarted = false;
_root.gameEnded = false;
_root.health = 100;
_root.enemiesKilled = 0;
_root.score = 0;
_root.difficultyIncreased.triggerPlay1 = false;
_root.difficultyIncreased.triggerPlay2 = false;
_root.difficultyIncreased.triggerPlay3 = false;
_root.player.gotoAndStop(1);
_root.gotoAndStop(_root._currentframe);
}
Symbol 248 Button
on (press) {
getURL ("http://www.flashninjaclan.com/games/gimmecandy/topsites.php", "_blank");
}
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
stop();
Symbol 251 MovieClip Frame 3
stop();
stopAllSounds();