Frame 1
globalSound = new Sound();
stop();
Instance of Symbol 47 MovieClip in Frame 1
//component parameters
onClipEvent (initialize) {
movieWidth = 500;
movieHeight = 500;
}
Frame 2
stop();
_root.nofw = 10;
_root.gameplay = false;
_root.pause = false;
_root.mode = "1 player";
_root.difficulty = "beginner";
_root.depth = 1;
_root.smallerxval = 6;
_root.menubtn.enabled = false;
_root.score = 0;
_root.thump = new Sound(thump);
_root.thump.attachSound("thump");
_root.thump.setVolume(150);
_root.sidehit = new Sound(sidehit);
_root.sidehit.attachSound("sidehit");
_root.fire = new Sound(fire);
_root.fire.attachSound("fire");
_root.power = new Sound(power);
_root.power.attachSound("power");
_root.phit = new Sound(phit);
_root.phit.attachSound("phit");
_root.rover = new Sound(rover);
_root.rover.attachSound("rover");
_root.rover2 = new Sound(rover2);
_root.rover2.attachSound("rover2");
_root.loop = new Sound(loop);
_root.loop.attachSound("loop");
_root.loop.start();
_root.loop.onSoundComplete = function () {
_root.loop.start();
};
_root.globalsoundcontrol = "play";
_root.fade = "in";
_root.weaponarray = new Array("bigger", "smaller", "yswitch", "xswitch", "faster", "slower", "gun", "triple", "homing", "pychange");
_root.rweaponarray = new Array("none", "none", "none");
_root.lweaponarray = new Array("none", "none", "none");
_root.bulletarray = new Array();
_root.upkey1 = 38;
_root.downkey1 = 40;
_root.launchkey1 = 37;
_root.w1key1 = 74;
_root.w2key1 = 75;
_root.w3key1 = 76;
_root.upkey2 = 81;
_root.downkey2 = 65;
_root.launchkey2 = 83;
_root.w1key2 = 88;
_root.w2key2 = 67;
_root.w3key2 = 86;
_root.pausekey = 80;
_root.musickey = 79;
_root.topBorder = (_root.stage._y - (_root.stage._height / 2)) + 8;
_root.bottomBorder = _root.stage._y + ((_root.stage._height / 2) - 8);
_root.leftborder = (_root.stage._x - (_root.stage._width / 2)) + 25;
_root.rightBorder = (_root.stage._x + (_root.stage._width / 2)) - 25;
_root.bulletmovement = function () {
var _local1 = _root;
i = 0;
while (i < _local1.bulletarray.length) {
_local1.bulletarray[i]._x = _local1.bulletarray[i]._x + _local1.bulletarray[i].xvalue;
_local1.bulletarray[i]._y = _local1.bulletarray[i]._y + _local1.bulletarray[i].yvalue;
if ((_local1.bulletarray[i]._x < (_local1.leftborder - _local1.bulletarray[i]._width)) or (_local1.bulletarray[i]._x > (_local1.rightborder + _local1.bulletarray[i]._width))) {
_local1.bulletarray[i].removeMovieClip();
_local1.bulletarray.splice(i, 1);
}
if (_local1.bulletarray[i].movement == "homing") {
if (_local1.bulletarray[i].xvalue > 0) {
_local1.bulletarray[i]._y = _local1.bulletarray[i]._y + ((_local1.rpaddle._y - _local1.bulletarray[i]._y) / 10);
} else if (_local1.bulletarray[i].xvalue < 0) {
_local1.bulletarray[i]._y = _local1.bulletarray[i]._y + ((_local1.lpaddle._y - _local1.bulletarray[i]._y) / 10);
}
}
if (_local1.bulletarray[i].xvalue < 0) {
if (_local1.bulletarray[i].hitTest(_local1.lpaddle)) {
_local1.phit.stop();
_local1.phit.start();
if (_local1.bulletarray[i].shottype == "bigger") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.bulletarray[i].shottype == "smaller") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale - 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.bulletarray[i].shottype == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
} else if (_local1.bulletarray[i].shottype == "slower") {
_local1.lpspeed = _local1.lpspeed - 1;
} else if (_local1.bulletarray[i].shottype == "gun") {
_local1.lhealth = _local1.lhealth - 3;
_local1.life1.mask._xscale = (_local1.lhealth / _local1.ltotalhealth) * 100;
} else if (_local1.bulletarray[i].shottype == "pychange") {
_local1.lpspeed = -_local1.lpspeed;
}
_local1.bulletarray[i].removeMovieClip();
_local1.bulletarray.splice(i, 1);
}
}
if (_local1.bulletarray[i].xvalue > 0) {
if (_local1.bulletarray[i].hitTest(_local1.rpaddle)) {
_local1.phit.stop();
_local1.phit.start();
if (_local1.bulletarray[i].shottype == "bigger") {
_local1.rpaddle.paddle._yscale = _local1.rpaddle.paddle._yscale + 20;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.bulletarray[i].shottype == "smaller") {
_local1.rpaddle.paddle._yscale = _local1.rpaddle.paddle._yscale - 20;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.bulletarray[i].shottype == "faster") {
_local1.rpspeed = _local1.rpspeed + 1;
} else if (_local1.bulletarray[i].shottype == "slower") {
_local1.rpspeed = _local1.rpspeed - 1;
} else if (_local1.bulletarray[i].shottype == "gun") {
_local1.rhealth = _local1.rhealth - 3;
_local1.life2.mask._xscale = (_local1.rhealth / _local1.rtotalhealth) * 100;
} else if (_local1.bulletarray[i].shottype == "pychange") {
_local1.rpspeed = -_local1.rpspeed;
}
_local1.bulletarray[i].removeMovieClip();
_local1.bulletarray.splice(i, 1);
}
}
i++;
}
};
_root.reset = function () {
var _local1 = _root;
_local1.gameplay = false;
_local1.gamedisplay.gotoAndStop("blank");
if (_local1.mode == "1 player") {
_local1.lplayer = "Computer";
_local1.rplayer = "Player 1";
} else if (_local1.mode == "2 player") {
_local1.lplayer = "Player 2";
_local1.rplayer = "Player 1";
}
_local1.speed = 12;
_local1.angle = random(30);
_local1.xdir = 1;
_local1.ydir = 1;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
_local1.ball._x = _local1.stage._x;
_local1.ball._y = _local1.stage._y;
_local1.rpspeed = 12;
_local1.lpspeed = _local1.ailevel;
_local1.lpspeedcounter = 0;
_local1.ltotalhealth = (_local1.rtotalhealth = (_local1.lhealth = (_local1.rhealth = 30)));
_local1.life1.mask._xscale = (_local1.lhealth / _local1.ltotalhealth) * 100;
_local1.life2.mask._xscale = (_local1.rhealth / _local1.rtotalhealth) * 100;
_local1.rpaddle.paddle._yscale = 100;
_local1.lpaddle.paddle._yscale = 100;
_local1.rpaddle._y = _local1.stage._y;
_local1.lpaddle._y = _local1.stage._y;
_local1.rweaponarray = new Array("none", "none", "none");
_local1.lweaponarray = new Array("none", "none", "none");
_local1.lw1.gotoAndStop("blank");
_local1.lw2.gotoAndStop("blank");
_local1.lw3.gotoAndStop("blank");
_local1.rw1.gotoAndStop("blank");
_local1.rw2.gotoAndStop("blank");
_local1.rw3.gotoAndStop("blank");
i = _local1.bulletarray.length - 1;
while (i >= 0) {
_local1.bulletarray[i].removeMovieClip();
_local1.bulletarray.splice(i);
i--;
}
};
_root.beginnerai = function () {
var _local1 = _root;
if (_local1.lpspeed < 0) {
_local1.lpspeedcounter++;
if (_local1.lpspeedcounter == 75) {
_local1.lpspeedcounter = 0;
_local1.lpspeed = -_local1.lpspeed;
}
}
if (_local1.xdir == -1) {
if (_local1.choose == true) {
randangle = random(140) - 70;
trace(randangle);
_local1.choose = false;
}
desty = (randangle / _local1.ck) + _local1.ball._y;
if (_local1.lpaddle._y < desty) {
if (Math.abs(_local1.lpaddle._y - desty) < _local1.lpspeed) {
_local1.lpaddle._y = desty;
} else {
_local1.lpaddle._y = _local1.lpaddle._y + _local1.lpspeed;
}
} else if (_local1.lpaddle._y > desty) {
if (Math.abs(_local1.lpaddle._y - desty) < _local1.lpspeed) {
_local1.lpaddle._y = desty;
} else {
_local1.lpaddle._y = _local1.lpaddle._y - _local1.lpspeed;
}
}
} else if (_local1.xdir == 1) {
if (Math.abs(_local1.lpaddle._y - _local1.topborder) < ((_local1.lpaddle._height / 2) + 20)) {
_local1.lpaddle._y = _local1.lpaddle._y + (_local1.lpspeed / 2);
} else if (Math.abs(_local1.lpaddle._y - _local1.bottomborder) < ((_local1.lpaddle._height / 2) + 20)) {
_local1.lpaddle._y = _local1.lpaddle._y - (_local1.lpspeed / 2);
}
}
if (_local1.lweaponarray[0] != "none") {
if (_local1.lweaponarray[0] == "bigger") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[0] == "smaller") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale - 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[0] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.lweaponarray[0] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.lweaponarray[0] == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
} else if (_local1.lweaponarray[0] == "slower") {
_local1.lpspeed = _local1.lpspeed - 1;
} else if (_local1.lweaponarray[0] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "pychange") {
_local1.lpspeed = -_local1.lpspeed;
}
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
}
};
_root.normalai = function () {
var _local1 = _root;
if (_local1.lpspeed < 0) {
_local1.lpspeedcounter++;
if (_local1.lpspeedcounter == 50) {
_local1.lpspeedcounter = 0;
_local1.lpspeed = -_local1.lpspeed;
}
}
if (_local1.xdir == -1) {
if (_local1.choose == true) {
randdesty = random(6);
if (randdesty == 0) {
bdestx = _local1.pu1._x;
bdesty = _local1.pu1._y;
} else if (randdesty == 1) {
bdestx = _local1.pu2._x;
bdesty = _local1.pu2._y;
} else if (randdesty == 2) {
bdestx = _local1.pu3._x;
bdesty = _local1.pu3._y;
} else if (randdesty == 3) {
bdestx = _local1.pu4._x;
bdesty = _local1.pu4._y;
} else if (randdesty == 4) {
bdesty = _local1.topborder;
bdestx = _local1.rightborder;
} else if (randdesty == 5) {
bdesty = _local1.bottomborder;
bdestx = _local1.rightborder;
}
_local1.choose = false;
}
randangle = (Math.atan2(diffy, diffx) * 180) / Math.PI;
if ((randangle >= 90) and (randangle <= 180)) {
randangle = -1 * (randangle - 180);
} else if ((randangle <= -90) and (randangle > -180)) {
randangle = -1 * (180 + randangle);
}
desty = (randangle / _local1.ck) + _local1.ball._y;
if (_local1.lpaddle._y < desty) {
if (Math.abs(_local1.lpaddle._y - desty) < _local1.lpspeed) {
_local1.lpaddle._y = desty;
} else {
_local1.lpaddle._y = _local1.lpaddle._y + _local1.lpspeed;
}
} else if (_local1.lpaddle._y > desty) {
if (Math.abs(_local1.lpaddle._y - desty) < _local1.lpspeed) {
_local1.lpaddle._y = desty;
} else {
_local1.lpaddle._y = _local1.lpaddle._y - _local1.lpspeed;
}
}
} else if (_local1.xdir == 1) {
if (Math.abs(_local1.lpaddle._y - _local1.topborder) < ((_local1.lpaddle._height / 2) + 20)) {
_local1.lpaddle._y = _local1.lpaddle._y + (_local1.lpspeed / 2);
} else if (Math.abs(_local1.lpaddle._y - _local1.bottomborder) < ((_local1.lpaddle._height / 2) + 20)) {
_local1.lpaddle._y = _local1.lpaddle._y - (_local1.lpspeed / 2);
}
}
if (_local1.lweaponarray[0] != "none") {
if (_local1.lweaponarray[0] == "bigger") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[0] == "smaller") {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.lpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.lpaddle._y;
_local1["smaller" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.lweaponarray[0] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.lweaponarray[0] == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
} else if (_local1.lweaponarray[0] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.lpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.lpaddle._y;
_local1["slower" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "pychange") {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.lpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.lpaddle._y;
_local1["pychange" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
}
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
}
};
_root.expertai = function () {
var _local1 = _root;
if (_local1.lpspeed < 0) {
_local1.lpspeedcounter++;
if (_local1.lpspeedcounter == 50) {
_local1.lpspeedcounter = 0;
_local1.lpspeed = -_local1.lpspeed;
}
}
if (_local1.xdir == -1) {
if (_local1.choose == true) {
_local1.movedelay = 0;
randdesty = random(6);
if (randdesty == 0) {
bdestx = _local1.pu1._x;
bdesty = _local1.pu1._y;
} else if (randdesty == 1) {
bdestx = _local1.pu2._x;
bdesty = _local1.pu2._y;
} else if (randdesty == 2) {
bdestx = _local1.pu3._x;
bdesty = _local1.pu3._y;
} else if (randdesty == 3) {
bdestx = _local1.pu4._x;
bdesty = _local1.pu4._y;
} else if (randdesty == 4) {
bdesty = _local1.topborder;
bdestx = _local1.rightborder;
} else if (randdesty == 5) {
bdesty = _local1.bottomborder;
bdestx = _local1.rightborder;
}
_local1.choose = false;
}
diffx = _local1.ball._x - bdestx;
diffy = _local1.ball._y - bdesty;
randangle = (Math.atan2(diffy, diffx) * 180) / Math.PI;
if ((randangle >= 90) and (randangle <= 180)) {
randangle = -1 * (randangle - 180);
} else if ((randangle <= -90) and (randangle > -180)) {
randangle = -1 * (180 + randangle);
}
desty = (randangle / _local1.ck) + _local1.ball._y;
if (_local1.lpaddle._y < desty) {
if (Math.abs(_local1.lpaddle._y - desty) < _local1.lpspeed) {
_local1.lpaddle._y = desty;
} else {
_local1.lpaddle._y = _local1.lpaddle._y + _local1.lpspeed;
}
} else if (_local1.lpaddle._y > desty) {
if (Math.abs(_local1.lpaddle._y - desty) < _local1.lpspeed) {
_local1.lpaddle._y = desty;
} else {
_local1.lpaddle._y = _local1.lpaddle._y - _local1.lpspeed;
}
}
} else if (_local1.xdir == 1) {
_local1.avoidnumber = 0;
if (_local1.movedelay < 5) {
_local1.movedelay++;
}
if (_local1.bulletarray.length > 0) {
i = _local1.bulletarray.length - 1;
while (i >= 0) {
if (_local1.bulletarray[i].xvalue < 0) {
_local1.avoidy = _local1.bulletarray[i]._y;
_local1.avoidx = _local1.bulletarray[i]._x;
_local1.avoidh = _local1.bulletarray[i]._height;
_local1.avoidnumber++;
_local1.avoidtype = _local1.bulletarray[i].movement;
}
i--;
}
}
if (_local1.avoidnumber > 0) {
if (_local1.avoidtype != "homing") {
if ((_local1.avoidy - _local1.stage._y) >= 0) {
if ((((_local1.lpaddle._y + (_local1.lpaddle._height / 2)) + (_local1.avoidh / 2)) + 30) > _local1.avoidy) {
_local1.lpaddle._y = _local1.lpaddle._y - _local1.lpspeed;
}
} else if ((((_local1.lpaddle._y - (_local1.lpaddle._height / 2)) - (_local1.avoidh / 2)) - 30) < _local1.avoidy) {
_local1.lpaddle._y = _local1.lpaddle._y - _local1.lpspeed;
}
} else if ((_local1.avoidx - _local1.lpaddle._x) < 150) {
if ((_local1.bottomborder - _local1.lpaddle._y) > _local1.stage.heigth) {
_local1.lpaddle._y = _local1.lpaddle._y + _local1.lpspeed;
} else {
_local1.lpaddle._y = _local1.lpaddle._y - _local1.lpspeed;
}
}
} else if (_local1.movedelay >= 5) {
if (_local1.lpaddle._y < _local1.stage._y) {
if ((_local1.stage._y - _local1.lpaddle._y) >= _local1.lpspeed) {
_local1.lpaddle._y = _local1.lpaddle._y + (_local1.lpspeed / 3);
} else {
_local1.lpaddle._y = _local1.stage._y;
}
} else if (_local1.lpaddle._y > _local1.stage._y) {
if ((_local1.lpaddle._y - _local1.stage._y) >= _local1.lpspeed) {
_local1.lpaddle._y = _local1.lpaddle._y - (_local1.lpspeed / 3);
} else {
_local1.lpaddle._y = _local1.stage._y;
}
}
}
}
if (_local1.lweaponarray[0] != "none") {
if (_local1.lweaponarray[0] == "bigger") {
if (_local1.lpaddle._yscale < 180) {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
} else {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.lpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.lpaddle._y;
_local1["bigger" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[0] == "smaller") {
if (_local1.lpaddle._yscale < 180) {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.lpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.lpaddle._y;
_local1["smaller" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
} else {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale - 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[0] == "yswitch") {
if (((_local1.rightborder - _local1.ball._x) < 80) and (_local1.xdir == 1)) {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[0] == "xswitch") {
if (((_local1.rightborder - _local1.ball._x) > 100) and (_local1.xdir == -1)) {
_local1.xdir = -1 * _local1.xdir;
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[0] == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
} else if (_local1.lweaponarray[0] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.lpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.lpaddle._y;
_local1["slower" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
} else if (_local1.lweaponarray[0] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
} else if (_local1.lweaponarray[0] == "triple") {
if (Math.abs(_local1.lpaddle._y - _local1.stage._y) < 50) {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[0] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
} else if (_local1.lweaponarray[0] == "pychange") {
if (_local1.lpspeed > 0) {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.lpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.lpaddle._y;
_local1["pychange" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
} else {
_local1.lpspeed = -_local1.lpspeed;
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
}
}
}
if (_local1.lweaponarray[1] != "none") {
if (_local1.lweaponarray[1] == "bigger") {
if (_local1.lpaddle._yscale < 180) {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
} else {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.lpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.lpaddle._y;
_local1["bigger" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[1] == "smaller") {
if (_local1.lpaddle._yscale < 180) {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.lpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.lpaddle._y;
_local1["smaller" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
} else {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale - 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[1] == "yswitch") {
if (((_local1.rightborder - _local1.ball._x) < 80) and (_local1.xdir == 1)) {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[1] == "xswitch") {
if (((_local1.rightborder - _local1.ball._x) > 100) and (_local1.xdir == -1)) {
_local1.xdir = -1 * _local1.xdir;
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[1] == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
} else if (_local1.lweaponarray[1] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.lpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.lpaddle._y;
_local1["slower" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
} else if (_local1.lweaponarray[1] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
} else if (_local1.lweaponarray[1] == "triple") {
if (Math.abs(_local1.lpaddle._y - _local1.stage._y) < 50) {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[1] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
} else if (_local1.lweaponarray[1] == "pychange") {
if (_local1.lpspeed > 0) {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.lpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.lpaddle._y;
_local1["pychange" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
} else {
_local1.lpspeed = -_local1.lpspeed;
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
}
}
}
if (_local1.lweaponarray[2] != "none") {
if (_local1.lweaponarray[2] == "bigger") {
if (_local1.lpaddle._yscale < 180) {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
} else {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.lpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.lpaddle._y;
_local1["bigger" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[2] == "smaller") {
if (_local1.lpaddle._yscale < 180) {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.lpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.lpaddle._y;
_local1["smaller" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
} else {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale - 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[2] == "yswitch") {
if (((_local1.rightborder - _local1.ball._x) < 80) and (_local1.xdir == 1)) {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[2] == "xswitch") {
if (((_local1.rightborder - _local1.ball._x) > 100) and (_local1.xdir == -1)) {
_local1.xdir = -1 * _local1.xdir;
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[2] == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
} else if (_local1.lweaponarray[2] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.lpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.lpaddle._y;
_local1["slower" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
} else if (_local1.lweaponarray[2] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
} else if (_local1.lweaponarray[2] == "triple") {
if (Math.abs(_local1.lpaddle._y - _local1.stage._y) < 50) {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
}
} else if (_local1.lweaponarray[2] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
} else if (_local1.lweaponarray[2] == "pychange") {
if (_local1.lpspeed > 0) {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.lpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.lpaddle._y;
_local1["pychange" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
} else {
_local1.lpspeed = -_local1.lpspeed;
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
}
}
}
};
_root.rpfire1 = function () {
var _local1 = _root;
if (Key.isDown(_local1.launchkey1)) {
if (_local1.rweaponarray[0] == "bigger") {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.rpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.rpaddle._y;
_local1["bigger" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "smaller") {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.rpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.rpaddle._y;
_local1["smaller" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.rweaponarray[0] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.rweaponarray[0] == "faster") {
_local1.attachMovie("speed", "faster" + _local1.depth, _local1.depth);
_local1["faster" + _local1.depth].shottype = "faster";
_local1["faster" + _local1.depth]._x = _local1.rpaddle._x;
_local1["faster" + _local1.depth]._y = _local1.rpaddle._y;
_local1["faster" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["faster" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.rpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.rpaddle._y;
_local1["slower" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "pychange") {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.rpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.rpaddle._y;
_local1["pychange" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
}
} else if (_local1.rweaponarray[0] == "bigger") {
_local1.rpaddle.paddle._yscale = _local1.rpaddle.paddle._yscale + 20;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.rweaponarray[0] == "smaller") {
_local1.rpaddle.paddle._yscale = _local1.rpaddle.paddle._yscale - 20;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.rweaponarray[0] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.rweaponarray[0] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.rweaponarray[0] == "faster") {
_local1.rpspeed = _local1.rpspeed + 1;
} else if (_local1.rweaponarray[0] == "slower") {
_local1.rpspeed = _local1.rpspeed - 1;
} else if (_local1.rweaponarray[0] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[0] == "pychange") {
_local1.rpspeed = -_local1.rpspeed;
}
_local1.rweaponarray[0] = "none";
_local1.rw1.gotoAndStop("blank");
};
_root.rpfire2 = function () {
var _local1 = _root;
if (Key.isDown(_local1.launchkey1)) {
if (_local1.rweaponarray[1] == "bigger") {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.rpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.rpaddle._y;
_local1["bigger" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "smaller") {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.rpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.rpaddle._y;
_local1["smaller" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.rweaponarray[1] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.rweaponarray[1] == "faster") {
_local1.attachMovie("speed", "faster" + _local1.depth, _local1.depth);
_local1["faster" + _local1.depth].shottype = "faster";
_local1["faster" + _local1.depth]._x = _local1.rpaddle._x;
_local1["faster" + _local1.depth]._y = _local1.rpaddle._y;
_local1["faster" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["faster" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.rpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.rpaddle._y;
_local1["slower" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "pychange") {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.rpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.rpaddle._y;
_local1["pychange" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
}
} else if (_local1.rweaponarray[1] == "bigger") {
_local1.rpaddle.paddle._yscale = _local1.rpaddle.paddle._yscale + 20;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.rweaponarray[1] == "smaller") {
_local1.rpaddle.paddle._yscale = _local1.rpaddle.paddle._yscale - 20;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.rweaponarray[1] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.rweaponarray[1] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.rweaponarray[1] == "faster") {
_local1.rpspeed = _local1.rpspeed + 1;
} else if (_local1.rweaponarray[1] == "slower") {
_local1.rpspeed = _local1.rpspeed - 1;
} else if (_local1.rweaponarray[1] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[1] == "pychange") {
_local1.rpspeed = -_local1.rpspeed;
}
_local1.rweaponarray[1] = "none";
_local1.rw2.gotoAndStop("blank");
};
_root.rpfire3 = function () {
var _local1 = _root;
if (Key.isDown(_local1.launchkey1)) {
if (_local1.rweaponarray[2] == "bigger") {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.rpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.rpaddle._y;
_local1["bigger" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "smaller") {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.rpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.rpaddle._y;
_local1["smaller" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.rweaponarray[2] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.rweaponarray[2] == "faster") {
_local1.attachMovie("speed", "faster" + _local1.depth, _local1.depth);
_local1["faster" + _local1.depth].shottype = "faster";
_local1["faster" + _local1.depth]._x = _local1.rpaddle._x;
_local1["faster" + _local1.depth]._y = _local1.rpaddle._y;
_local1["faster" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["faster" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.rpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.rpaddle._y;
_local1["slower" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "pychange") {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.rpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.rpaddle._y;
_local1["pychange" + _local1.depth].xvalue = -_local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
}
} else if (_local1.rweaponarray[2] == "bigger") {
_local1.rpaddle.paddle._yscale = _local1.rpaddle.paddle._yscale + 20;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.rweaponarray[2] == "smaller") {
_local1.rpaddle.paddle._yscale = _local1.rpaddle.paddle._yscale - 20;
_local1.k = 70 / ((_local1.rpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.rweaponarray[2] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.rweaponarray[2] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.rweaponarray[2] == "faster") {
_local1.rpspeed = _local1.rpspeed + 1;
} else if (_local1.rweaponarray[2] == "slower") {
_local1.rpspeed = _local1.rpspeed - 1;
} else if (_local1.rweaponarray[2] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = (-2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.rpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.rpaddle._y;
_local1["gun" + _local1.depth].xvalue = -1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.rweaponarray[2] == "pychange") {
_local1.rpspeed = -_local1.rpspeed;
}
_local1.rweaponarray[2] = "none";
_local1.rw3.gotoAndStop("blank");
};
_root.lpfire1 = function () {
var _local1 = _root;
if (Key.isDown(_local1.launchkey2)) {
if (_local1.lweaponarray[0] == "bigger") {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.lpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.lpaddle._y;
_local1["bigger" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "smaller") {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.lpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.lpaddle._y;
_local1["smaller" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.lweaponarray[0] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.lweaponarray[0] == "faster") {
_local1.attachMovie("speed", "faster" + _local1.depth, _local1.depth);
_local1["faster" + _local1.depth].shottype = "faster";
_local1["faster" + _local1.depth]._x = _local1.lpaddle._x;
_local1["faster" + _local1.depth]._y = _local1.lpaddle._y;
_local1["faster" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["faster" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.lpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.lpaddle._y;
_local1["slower" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "pychange") {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.lpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.lpaddle._y;
_local1["pychange" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
}
} else if (_local1.lweaponarray[0] == "bigger") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[0] == "smaller") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale - 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[0] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.lweaponarray[0] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.lweaponarray[0] == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
} else if (_local1.lweaponarray[0] == "slower") {
_local1.lpspeed = _local1.lpspeed - 1;
} else if (_local1.lweaponarray[0] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[0] == "pychange") {
_local1.lpspeed = -_local1.lpspeed;
}
_local1.lweaponarray[0] = "none";
_local1.lw1.gotoAndStop("blank");
};
_root.lpfire2 = function () {
var _local1 = _root;
if (Key.isDown(_local1.launchkey2)) {
if (_local1.lweaponarray[1] == "bigger") {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.lpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.lpaddle._y;
_local1["bigger" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "smaller") {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.lpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.lpaddle._y;
_local1["smaller" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.lweaponarray[1] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.lweaponarray[1] == "faster") {
_local1.attachMovie("speed", "faster" + _local1.depth, _local1.depth);
_local1["faster" + _local1.depth].shottype = "faster";
_local1["faster" + _local1.depth]._x = _local1.lpaddle._x;
_local1["faster" + _local1.depth]._y = _local1.lpaddle._y;
_local1["faster" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["faster" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.lpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.lpaddle._y;
_local1["slower" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "pychange") {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.lpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.lpaddle._y;
_local1["pychange" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
}
} else if (_local1.lweaponarray[1] == "bigger") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[1] == "smaller") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale - 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[1] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.lweaponarray[1] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.lweaponarray[1] == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
} else if (_local1.lweaponarray[1] == "slower") {
_local1.lpspeed = _local1.lpspeed - 1;
} else if (_local1.lweaponarray[1] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[1] == "pychange") {
_local1.lpspeed = -_local1.lpspeed;
}
_local1.lweaponarray[1] = "none";
_local1.lw2.gotoAndStop("blank");
};
_root.lpfire3 = function () {
var _local1 = _root;
if (Key.isDown(_local1.launchkey2)) {
if (_local1.lweaponarray[2] == "bigger") {
_local1.attachMovie("bigger", "bigger" + _local1.depth, _local1.depth);
_local1["bigger" + _local1.depth].shottype = "bigger";
_local1["bigger" + _local1.depth]._x = _local1.lpaddle._x;
_local1["bigger" + _local1.depth]._y = _local1.lpaddle._y;
_local1["bigger" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["bigger" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "smaller") {
_local1.attachMovie("smaller", "smaller" + _local1.depth, _local1.depth);
_local1["smaller" + _local1.depth].shottype = "smaller";
_local1["smaller" + _local1.depth]._x = _local1.lpaddle._x;
_local1["smaller" + _local1.depth]._y = _local1.lpaddle._y;
_local1["smaller" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["smaller" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.lweaponarray[2] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.lweaponarray[2] == "faster") {
_local1.attachMovie("speed", "faster" + _local1.depth, _local1.depth);
_local1["faster" + _local1.depth].shottype = "faster";
_local1["faster" + _local1.depth]._x = _local1.lpaddle._x;
_local1["faster" + _local1.depth]._y = _local1.lpaddle._y;
_local1["faster" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["faster" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "slower") {
_local1.attachMovie("speed", "slower" + _local1.depth, _local1.depth);
_local1["slower" + _local1.depth].shottype = "slower";
_local1["slower" + _local1.depth]._rotation = 180;
_local1["slower" + _local1.depth]._x = _local1.lpaddle._x;
_local1["slower" + _local1.depth]._y = _local1.lpaddle._y;
_local1["slower" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["slower" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "pychange") {
_local1.attachMovie("pychange", "pychange" + _local1.depth, _local1.depth);
_local1["pychange" + _local1.depth].shottype = "pychange";
_local1["pychange" + _local1.depth]._x = _local1.lpaddle._x;
_local1["pychange" + _local1.depth]._y = _local1.lpaddle._y;
_local1["pychange" + _local1.depth].xvalue = _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["pychange" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
}
} else if (_local1.lweaponarray[2] == "bigger") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale + 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[2] == "smaller") {
_local1.lpaddle.paddle._yscale = _local1.lpaddle.paddle._yscale - 20;
_local1.ck = 70 / ((_local1.lpaddle._height / 2) + (_local1.ball._height / 2));
} else if (_local1.lweaponarray[2] == "yswitch") {
_local1.ydir = -1 * _local1.ydir;
_local1.lastside = "none";
} else if (_local1.lweaponarray[2] == "xswitch") {
_local1.xdir = -1 * _local1.xdir;
} else if (_local1.lweaponarray[2] == "faster") {
_local1.lpspeed = _local1.lpspeed + 1;
} else if (_local1.lweaponarray[2] == "slower") {
_local1.lpspeed = _local1.lpspeed - 1;
} else if (_local1.lweaponarray[2] == "gun") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "triple") {
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 2 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._rotation = -20;
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (-2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.attachMovie("gun", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._rotation = 20;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = (2 * _local1.smallerxval) * 0.939692620785908;
_local1["gun" + _local1.depth].yvalue = (2 * _local1.smallerxval) * 0.342020143325669;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "homing") {
_local1.attachMovie("homing", "gun" + _local1.depth, _local1.depth);
_local1["gun" + _local1.depth].shottype = "gun";
_local1["gun" + _local1.depth].movement = "homing";
_local1["gun" + _local1.depth]._xscale = -100;
_local1["gun" + _local1.depth]._x = _local1.lpaddle._x;
_local1["gun" + _local1.depth]._y = _local1.lpaddle._y;
_local1["gun" + _local1.depth].xvalue = 1.5 * _local1.smallerxval;
_local1.bulletarray[_local1.bulletarray.length] = _local1["gun" + _local1.depth];
if (_local1.depth < 30) {
_local1.depth++;
} else {
_local1.depth = 0;
}
_local1.fire.stop();
_local1.fire.start();
} else if (_local1.lweaponarray[2] == "pychange") {
_local1.lpspeed = -_local1.lpspeed;
}
_local1.lweaponarray[2] = "none";
_local1.lw3.gotoAndStop("blank");
};
Instance of Symbol 123 MovieClip in Frame 2
onClipEvent (load) {
_root.lastside = "none";
}
onClipEvent (keyDown) {
if (Key.isDown(_root.musickey)) {
if (_root.globalsoundcontrol == "play") {
_root.globalsoundcontrol = "stop";
_root.fade = "out";
} else if (_root.globalsoundcontrol == "stop") {
_root.globalsoundcontrol = "play";
_root.fade = "in";
}
}
if (_root.gameplay == true) {
if (Key.isDown(_root.pausekey)) {
if (_root.pause == false) {
_root.pause = true;
_root.gamedisplay.gotoAndPlay("pause");
_root.fade = "out";
} else if (_root.pause == true) {
_root.pause = false;
_root.gamedisplay.gotoAndPlay("unpause");
if (_root.globalsoundcontrol == "play") {
_root.fade = "in";
}
}
} else if (Key.isDown(_root.w1key1)) {
_root.rpfire1();
} else if (Key.isDown(_root.w2key1)) {
_root.rpfire2();
} else if (Key.isDown(_root.w3key1)) {
_root.rpfire3();
} else if (_root.mode == "2 player") {
if (Key.isDown(_root.w1key2)) {
_root.lpfire1();
} else if (Key.isDown(_root.w2key2)) {
_root.lpfire2();
} else if (Key.isDown(_root.w3key2)) {
_root.lpfire3();
}
}
}
}
onClipEvent (enterFrame) {
if (_root.fade == "in") {
if (_root.loopvolume < 100) {
_root.loopvolume = _root.loopvolume + 8;
_root.loop.setVolume(_root.loopvolume);
} else if (_root.loopvolume > 100) {
_root.loopvolume = 100;
_root.loop.setVolume(_root.loopvolume);
}
} else if (_root.fade == "out") {
if (_root.loopvolume > 0) {
_root.loopvolume = _root.loopvolume - 20;
_root.loop.setVolume(_root.loopvolume);
} else if (_root.loopvolume < 0) {
_root.loopvolume = 0;
_root.loop.setVolume(_root.loopvolume);
}
}
if ((_root.gameplay == true) and (_root.pause == false)) {
if ((((_root.speed * Math.cos((Math.PI * _root.angle) / 180)) > Math.abs(_root.ball._x - _root.lpaddle._x)) and (_root.xdir == -1)) and (Math.abs(_root.lpaddle._y - _root.ball._y) < (_root.lpaddle._height / 2))) {
_root.originalspeed = _root.speed;
_root.speed = Math.abs(_root.ball._x - _root.lpaddle._x) / Math.cos((Math.PI * _root.angle) / 180);
_root.ball._x = _root.ball._x + ((_root.xdir * _root.speed) * Math.cos((Math.PI * _root.angle) / 180));
_root.ball._y = _root.ball._y + ((_root.ydir * _root.speed) * Math.sin((Math.PI * _root.angle) / 180));
_root.speed = _root.originalspeed;
} else if ((((_root.speed * Math.cos((Math.PI * _root.angle) / 180)) > Math.abs(_root.ball._x - _root.rpaddle._x)) and (_root.xdir == 1)) and (Math.abs(_root.rpaddle._y - _root.ball._y) < (_root.rpaddle._height / 2))) {
_root.originalspeed = _root.speed;
_root.speed = Math.abs(_root.ball._x - _root.rpaddle._x) / Math.cos((Math.PI * _root.angle) / 180);
_root.ball._x = _root.ball._x + ((_root.xdir * _root.speed) * Math.cos((Math.PI * _root.angle) / 180));
_root.ball._y = _root.ball._y + ((_root.ydir * _root.speed) * Math.sin((Math.PI * _root.angle) / 180));
_root.speed = _root.originalspeed;
} else if (((_root.speed * Math.sin((Math.PI * _root.angle) / 180)) > Math.abs(_root.ball._y - _root.topborder)) and (_root.ydir == -1)) {
_root.originalspeed = _root.speed;
_root.speed = Math.abs(_root.ball._y - _root.topborder) / Math.sin((Math.PI * _root.angle) / 180);
_root.ball._x = _root.ball._x + ((_root.xdir * _root.speed) * Math.cos((Math.PI * _root.angle) / 180));
_root.ball._y = _root.ball._y + ((_root.ydir * _root.speed) * Math.sin((Math.PI * _root.angle) / 180));
_root.speed = _root.originalspeed;
} else if (((_root.speed * Math.sin((Math.PI * _root.angle) / 180)) > Math.abs(_root.ball._y - _root.bottomborder)) and (_root.ydir == 1)) {
_root.originalspeed = _root.speed;
_root.speed = Math.abs(_root.ball._y - _root.bottomborder) / Math.sin((Math.PI * _root.angle) / 180);
_root.ball._x = _root.ball._x + ((_root.xdir * _root.speed) * Math.cos((Math.PI * _root.angle) / 180));
_root.ball._y = _root.ball._y + ((_root.ydir * _root.speed) * Math.sin((Math.PI * _root.angle) / 180));
_root.speed = _root.originalspeed;
} else {
_root.ball._x = _root.ball._x + ((_root.xdir * _root.speed) * Math.cos((Math.PI * _root.angle) / 180));
_root.ball._y = _root.ball._y + ((_root.ydir * _root.speed) * Math.sin((Math.PI * _root.angle) / 180));
_root.speed = _root.speed + 0.01;
}
if (_root.ball._y < (_root.topBorder + (_root.ball._height / 2))) {
_root.ydir = 1;
currentside = "top";
if (_root.lastside != currentside) {
if (_root.ball.hitTest(_root.pu3) or _root.ball.hitTest(_root.pu4)) {
if (_root.xdir == -1) {
trace("HIT!!!");
if (_root.rweaponarray[0] == "none") {
randomweapon = random(_root.nofw);
_root.rweaponarray[0] = _root.weaponarray[randomweapon];
_root.rw1.gotoAndStop(_root.weaponarray[randomweapon]);
} else if (_root.rweaponarray[1] == "none") {
randomweapon = random(_root.nofw);
_root.rweaponarray[1] = _root.weaponarray[randomweapon];
_root.rw2.gotoAndStop(_root.weaponarray[randomweapon]);
} else if (_root.rweaponarray[2] == "none") {
randomweapon = random(_root.nofw);
_root.rweaponarray[2] = _root.weaponarray[randomweapon];
_root.rw3.gotoAndStop(_root.weaponarray[randomweapon]);
}
} else if (_root.xdir == 1) {
if (_root.lweaponarray[0] == "none") {
randomweapon = random(_root.nofw);
_root.lweaponarray[0] = _root.weaponarray[randomweapon];
_root.lw1.gotoAndStop(_root.weaponarray[randomweapon]);
} else if (_root.lweaponarray[1] == "none") {
randomweapon = random(_root.nofw);
_root.lweaponarray[1] = _root.weaponarray[randomweapon];
_root.lw2.gotoAndStop(_root.weaponarray[randomweapon]);
} else if (_root.lweaponarray[2] == "none") {
randomweapon = random(_root.nofw);
_root.lweaponarray[2] = _root.weaponarray[randomweapon];
_root.lw3.gotoAndStop(_root.weaponarray[randomweapon]);
}
}
_root.power.stop();
_root.power.start();
} else {
_root.thump.stop();
_root.thump.start();
}
}
_root.lastside = "top";
} else if (_root.ball._y > (_root.bottomBorder - (_root.ball._height / 2))) {
_root.ydir = -1;
currentside = "bottom";
if (_root.lastside != currentside) {
if (_root.ball.hitTest(_root.pu1) or _root.ball.hitTest(_root.pu2)) {
if (_root.xdir == -1) {
trace("HIT!!!");
if (_root.rweaponarray[0] == "none") {
randomweapon = random(_root.nofw);
_root.rweaponarray[0] = _root.weaponarray[randomweapon];
_root.rw1.gotoAndStop(_root.weaponarray[randomweapon]);
} else if (_root.rweaponarray[1] == "none") {
randomweapon = random(_root.nofw);
_root.rweaponarray[1] = _root.weaponarray[randomweapon];
_root.rw2.gotoAndStop(_root.weaponarray[randomweapon]);
} else if (_root.rweaponarray[2] == "none") {
randomweapon = random(_root.nofw);
_root.rweaponarray[2] = _root.weaponarray[randomweapon];
_root.rw3.gotoAndStop(_root.weaponarray[randomweapon]);
}
} else if (_root.xdir == 1) {
if (_root.lweaponarray[0] == "none") {
randomweapon = random(_root.nofw);
_root.lweaponarray[0] = _root.weaponarray[randomweapon];
_root.lw1.gotoAndStop(_root.weaponarray[randomweapon]);
} else if (_root.lweaponarray[1] == "none") {
randomweapon = random(_root.nofw);
_root.lweaponarray[1] = _root.weaponarray[randomweapon];
_root.lw2.gotoAndStop(_root.weaponarray[randomweapon]);
} else if (_root.lweaponarray[2] == "none") {
randomweapon = random(_root.nofw);
_root.lweaponarray[2] = _root.weaponarray[randomweapon];
_root.lw3.gotoAndStop(_root.weaponarray[randomweapon]);
}
}
_root.power.stop();
_root.power.start();
} else {
_root.thump.stop();
_root.thump.start();
}
}
_root.lastside = "bottom";
}
if (_root.ball._x < _root.leftborder) {
_root.xdir = 1;
_root.lhealth = _root.lhealth - 5;
_root.life1.mask._xscale = (_root.lhealth / _root.ltotalhealth) * 100;
_root.lastside = "none";
_root.stage.lhit.gotoAndPlay("hit");
_root.sidehit.stop();
_root.sidehit.start();
}
if (_root.ball._x > _root.rightborder) {
_root.xdir = -1;
_root.rhealth = _root.rhealth - 5;
_root.life2.mask._xscale = (_root.rhealth / _root.rtotalhealth) * 100;
_root.lastside = "none";
_root.stage.rhit.gotoAndPlay("hit");
_root.sidehit.stop();
_root.sidehit.start();
_root.choose = true;
}
if (_root.ball.hitTest(_root.rpaddle)) {
if ((_root.ball._y > (_root.topborder + (_root.ball._height / 2))) and (_root.ball._y < (_root.bottomborder - (_root.ball._height / 2)))) {
if ((_root.rpaddle._y - _root.ball._y) > 0) {
_root.ydir = -1;
} else if ((_root.rpaddle._y - _root.ball._y) < 0) {
_root.ydir = 1;
}
_root.angle = _root.k * Math.abs(_root.rpaddle._y - _root.ball._y);
}
_root.choose = true;
_root.xdir = -1;
_root.lastside = "none";
_root.thump.stop();
_root.thump.start();
}
if (_root.ball.hitTest(_root.lpaddle)) {
if ((_root.ball._y > (_root.topborder + (_root.ball._height / 2))) and (_root.ball._y < (_root.bottomborder - (_root.ball._height / 2)))) {
if ((_root.lpaddle._y - _root.ball._y) > 0) {
_root.ydir = -1;
} else if ((_root.lpaddle._y - _root.ball._y) < 0) {
_root.ydir = 1;
}
_root.angle = _root.ck * Math.abs(_root.lpaddle._y - _root.ball._y);
}
_root.xdir = 1;
_root.lastside = "none";
_root.thump.stop();
_root.thump.start();
}
if (Key.isDown(_root.upkey1)) {
_root.rpaddle._y = _root.rpaddle._y - _root.rpspeed;
} else if (Key.isDown(_root.downkey1)) {
_root.rpaddle._y = _root.rpaddle._y + _root.rpspeed;
}
if ((_root.rpaddle._y - (_root.rpaddle._height / 2)) < _root.topborder) {
_root.rpaddle._y = (_root.rpaddle._height / 2) + _root.topborder;
} else if ((_root.rpaddle._y + (_root.rpaddle._height / 2)) > _root.bottomborder) {
_root.rpaddle._y = _root.bottomborder - (_root.rpaddle._height / 2);
}
if (_root.mode == "1 player") {
if (_root.difficulty == "beginner") {
_root.beginnerai();
} else if (_root.difficulty == "normal") {
_root.normalai();
} else if (_root.difficulty == "expert") {
_root.expertai();
}
} else if (_root.mode == "2 player") {
if (Key.isDown(_root.upkey2)) {
_root.lpaddle._y = _root.lpaddle._y - _root.lpspeed;
} else if (Key.isDown(_root.downkey2)) {
_root.lpaddle._y = _root.lpaddle._y + _root.lpspeed;
}
if ((_root.lpaddle._y - (_root.lpaddle._height / 2)) < _root.topborder) {
_root.lpaddle._y = (_root.lpaddle._height / 2) + _root.topborder;
} else if ((_root.lpaddle._y + (_root.lpaddle._height / 2)) > _root.bottomborder) {
_root.lpaddle._y = _root.bottomborder - (_root.lpaddle._height / 2);
}
}
if ((_root.lpaddle._y - (_root.lpaddle._height / 2)) < _root.topborder) {
_root.lpaddle._y = (_root.lpaddle._height / 2) + _root.topborder;
} else if ((_root.lpaddle._y + (_root.lpaddle._height / 2)) > _root.bottomborder) {
_root.lpaddle._y = _root.bottomborder - (_root.lpaddle._height / 2);
}
if (_root.mode == "1 player") {
if (_root.lhealth <= 0) {
_root.ailevel = _root.ailevel + 1;
_root.reset();
if (_root.difficulty == "beginner") {
_root.addition = 100;
} else if (_root.difficulty == "normal") {
_root.addition = 200;
} else if (_root.difficulty == "expert") {
_root.addition = 300;
}
_root.gamedisplay.gotoAndPlay("gj");
}
if (_root.rhealth <= 0) {
_root.reset();
_root.subtract = 100;
_root.gamedisplay.gotoAndPlay("ta");
}
} else if (_root.mode == "2 player") {
if (_root.lhealth <= 0) {
_root.reset();
_root.gamedisplay.gotoAndPlay("gj");
_root.winplayer = "Player 1";
_root.player1win++;
_root.scoretxt = ((" " + _root.player2win) + " - ") + _root.player1win;
}
if (_root.rhealth <= 0) {
_root.reset();
_root.gamedisplay.gotoAndPlay("gj");
_root.winplayer = "Player 2";
_root.player2win++;
_root.scoretxt = ((" " + _root.player2win) + " - ") + _root.player1win;
}
}
if (_root.bulletarray.length > 0) {
_root.bulletmovement();
}
}
}
Symbol 27 MovieClip Frame 1
this._visible = false;
Symbol 32 MovieClip Frame 11
_parent.mcAnimation.play();
stop();
Symbol 32 MovieClip Frame 21
if (!_parent._parent.isShockwave) {
_root.play();
}
_root.isLoaded = true;
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 100
_parent.mcBackground.play();
stop();
Symbol 47 MovieClip Frame 1
if (_url.indexOf("http://") == -1) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
this.loadMovie("http://www.miniclip.com/swfcontent/intro.swf?" + noCache);
stop();
}
_root.stop();
Instance of Symbol 27 MovieClip "mcIntro" in Symbol 47 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 47 MovieClip Frame 2
this._x = 0;
this._y = 0;
mcBackground._x = 0;
mcBackground._y = 0;
var stageWidth = movieWidth;
var stageHeight = movieHeight;
var centerStageX = (stageWidth / 2);
var centerStageY = stageHeight;
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = centerStageX;
mcAnimation._y = (centerStageY / 2) - (movieHeight / 10);
if (((centerStageY == 0) or (centerStageY == undefined)) or ((centerStageX == 0) or (centerStageX == undefined))) {
trace("MINICLIP.COM INTRO COMPONENT WARNING");
trace("====================================");
trace("The 'movieWidth' and 'movieHeight' parameters need to");
trace("be set for the highscore component to function.");
}
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 3
stop();
Symbol 57 MovieClip Frame 4
stop();
Symbol 57 MovieClip Frame 5
stop();
Symbol 57 MovieClip Frame 6
stop();
Symbol 57 MovieClip Frame 7
stop();
Symbol 57 MovieClip Frame 8
stop();
Symbol 57 MovieClip Frame 9
stop();
Symbol 57 MovieClip Frame 10
stop();
Symbol 57 MovieClip Frame 11
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 71 Button
on (rollOver) {
_root.rover.stop();
_root.rover.start();
}
on (release) {
_root.reset();
_root.maindisplay.gotoAndStop("title");
_root.menubtn.enabled = false;
_root.pause = false;
if (_root.globalsoundcontrol == "play") {
_root.fade = "in";
}
}
Symbol 90 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 99 Button
on (release) {
_root.gamedisplay.gotoAndPlay("tayes");
_root.score = _root.score - 100;
_root.scoretxt = _root.score;
}
Symbol 100 Button
on (release) {
_root.gamedisplay.gotoAndStop("blank");
_root.maindisplay.gotoAndStop("submit");
}
Symbol 105 MovieClip Frame 1
stop();
_root.number = "3";
Symbol 105 MovieClip Frame 2
if (_root.mode == "1 player") {
good.txt = ("+" + _root.addition) + " Points";
if (_root.difficulty == "beginner") {
_root.score = _root.score + 100;
_root.scoretxt = _root.score;
} else if (_root.difficulty == "normal") {
_root.score = _root.score + 200;
_root.scoretxt = _root.score;
} else if (_root.difficulty == "expert") {
_root.score = _root.score + 300;
_root.scoretxt = _root.score;
}
} else {
good.txt = _root.winplayer;
}
Symbol 105 MovieClip Frame 30
_root.gamedisplay.gotoAndStop("blank");
_root.gameplay = true;
Symbol 105 MovieClip Frame 31
tryagain.txt = ("-" + _root.subtract) + " Points";
Symbol 105 MovieClip Frame 43
stop();
Symbol 105 MovieClip Frame 58
_root.gamedisplay.gotoAndStop("blank");
_root.gameplay = true;
Symbol 105 MovieClip Frame 59
countdown.txt = _root.number;
Symbol 105 MovieClip Frame 70
if (_root.number == "3") {
_root.number = "2";
_root.gamedisplay.gotoAndPlay("cd");
} else if (_root.number == "2") {
_root.number = "1";
_root.gamedisplay.gotoAndPlay("cd");
} else if (_root.number == "1") {
_root.number = "GO!";
_root.gamedisplay.gotoAndPlay("cd");
} else if (_root.number == "GO!") {
_root.gamedisplay.gotoAndPlay("blank");
_root.gameplay = true;
}
Symbol 105 MovieClip Frame 79
stop();
Symbol 105 MovieClip Frame 86
_root.gamedisplay.gotoAndStop("blank");
Symbol 108 Button
on (release) {
if (_root.musicOff) {
_root.globalSound.setVolume(100);
_root.musicOff = false;
gotoAndStop (1);
} else {
_root.globalSound.setVolume(0);
_root.musicOff = true;
gotoAndStop (2);
}
}
Symbol 110 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 1
stop();
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.diffdir == "forward") {
if (_root.maindisplay.difficulty._currentframe < _root.maindisplay.difficulty._totalframes) {
_root.maindisplay.difficulty.nextFrame();
} else {
_root.maindisplay.difficulty.gotoAndStop(1);
_root.maindisplay.difficulty.text1.first = _root.maindisplay.difficulty.text2.first;
_root.diffdir = "hold";
}
} else if (_root.diffdir == "back") {
if (_root.maindisplay.difficulty._currentframe > 1) {
_root.maindisplay.difficulty.prevFrame();
} else {
_root.maindisplay.difficulty.gotoAndStop(1);
_root.maindisplay.difficulty.text2.first = _root.maindisplay.difficulty.text1.first;
_root.diffdir = "hold";
}
}
}
Symbol 128 MovieClip Frame 1
stop();
Instance of Symbol 123 MovieClip in Symbol 128 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.modedir == "forward") {
if (_root.maindisplay.mode._currentframe < _root.maindisplay.mode._totalframes) {
_root.maindisplay.mode.nextFrame();
} else {
_root.maindisplay.mode.gotoAndStop(1);
_root.maindisplay.mode.text1.first = _root.maindisplay.mode.text2.first;
_root.modedir = "hold";
}
} else if (_root.modedir == "back") {
if (_root.maindisplay.mode._currentframe > 1) {
_root.maindisplay.mode.prevFrame();
} else {
_root.maindisplay.mode.gotoAndStop(1);
_root.maindisplay.mode.text2.first = _root.maindisplay.mode.text1.first;
_root.modedir = "hold";
}
}
}
Symbol 133 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 136 Button
on (release) {
getURL ("http://www.miniclip.com/signup2.htm", "_blank");
}
Symbol 139 Button
on (rollOver) {
_root.rover.stop();
_root.rover.start();
}
on (release) {
if (_root.difficulty == "beginner") {
_root.pu1._xscale = (_root.pu2._xscale = (_root.pu3._xscale = (_root.pu4._xscale = 140)));
_root.ailevel = 8;
} else if (_root.difficulty == "normal") {
_root.pu1._xscale = (_root.pu2._xscale = (_root.pu3._xscale = (_root.pu4._xscale = 100)));
_root.ailevel = 9;
} else if (_root.difficulty == "expert") {
_root.pu1._xscale = (_root.pu2._xscale = (_root.pu3._xscale = (_root.pu4._xscale = 70)));
_root.ailevel = 10;
}
_root.reset();
_root.maindisplay.gotoAndStop("blank");
_root.gamedisplay.gotoAndPlay("cd");
if (_root.mode == "1 player") {
_root.scoretxt = (_root.score = 0);
trace("RESET SCORE");
} else if (_root.mode == "2 player") {
_root.player1win = (_root.player2win = 0);
_root.scoretxt = ((" " + _root.player2win) + " - ") + _root.player1win;
}
_root.menubtn.enabled = true;
}
Symbol 143 Button
on (release) {
_root.maindisplay.gotoAndStop("instructions");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start();
}
Symbol 147 Button
on (release) {
_root.maindisplay.gotoAndStop("options");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start();
}
Symbol 151 Button
on (release) {
_root.maindisplay.gotoAndStop("controls");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start();
}
Symbol 155 Button
on (release) {
_root.maindisplay.gotoAndStop("submit");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start();
}
Symbol 172 Button
on (release) {
_root.maindisplay.gotoAndStop("title");
}
on (rollOver) {
_root.rover.stop();
_root.rover.start();
}
Symbol 198 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "upkey1";
_root.maindisplay.upkey1 = "";
}
Symbol 200 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "downkey1";
_root.maindisplay.downkey1 = "";
}
Symbol 201 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "launchkey1";
_root.maindisplay.launchkey1 = "";
}
Symbol 202 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "w1key1";
_root.maindisplay.w1key1 = "";
}
Symbol 203 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "w2key1";
_root.maindisplay.w2key1 = "";
}
Symbol 204 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "w3key1";
_root.maindisplay.w3key1 = "";
}
Symbol 205 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "upkey2";
_root.maindisplay.upkey2 = "";
}
Symbol 206 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "downkey2";
_root.maindisplay.downkey2 = "";
}
Symbol 207 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "launchkey2";
_root.maindisplay.launchkey2 = "";
}
Symbol 208 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "w1key2";
_root.maindisplay.w1key2 = "";
}
Symbol 209 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "w2key2";
_root.maindisplay.w2key2 = "";
}
Symbol 210 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "w3key2";
_root.maindisplay.w3key2 = "";
}
Symbol 211 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "pausekey";
_root.maindisplay.pausekey = "";
}
Symbol 212 Button
on (release) {
if (_root.selectkey == true) {
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey1) {
_root.maindisplay.upkey1 = "UP";
_root.rup = 38;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey1) {
_root.maindisplay.downkey1 = "DOWN";
_root.rdown = 40;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey1) {
_root.maindisplay.launchkey1 = "LEFT";
_root.rlaunch = 37;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key1) {
_root.maindisplay.w1key1 = "J";
_root.rfire1 = 74;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key1) {
_root.maindisplay.w2key1 = "K";
_root.rfire2 = 75;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key1) {
_root.maindisplay.w3key1 = "L";
_root.rfire3 = 76;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.upkey2) {
_root.maindisplay.upkey2 = "Q";
_root.lup = 81;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.downkey2) {
_root.maindisplay.downkey2 = "A";
_root.ldown = 65;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.launchkey2) {
_root.maindisplay.launchkey2 = "S";
_root.llaunch = 83;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w1key2) {
_root.maindisplay.w1key2 = "X";
_root.lfire1 = 88;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w2key2) {
_root.maindisplay.w2key2 = "C";
_root.lfire2 = 67;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.w3key2) {
_root.maindisplay.w3key2 = "V";
_root.lfire3 = 86;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.pausekey) {
_root.maindisplay.pausekey = "P";
_root.pausekey = 80;
}
if (_root.maindisplay[_root.whichkey] == _root.maindisplay.musickey) {
_root.maindisplay.pausekey = "O";
_root.musickey = 79;
}
}
_root.selectkey = true;
_root.whichkey = "musickey";
_root.maindisplay.musickey = "";
}
Symbol 218 Button
on (release) {
if (_root.maindisplay.difficulty.text2.first == "beginner") {
_root.maindisplay.difficulty.text1.first = "expert";
_root.difficulty = "expert";
} else if (_root.maindisplay.difficulty.text2.first == "expert") {
_root.maindisplay.difficulty.text1.first = "normal";
_root.difficulty = "normal";
} else if (_root.maindisplay.difficulty.text2.first == "normal") {
_root.maindisplay.difficulty.text1.first = "beginner";
_root.difficulty = "beginner";
}
_root.diffdir = "back";
_root.maindisplay.difficulty.gotoAndStop("last");
}
on (rollOver) {
_root.rover2.stop();
_root.rover2.start();
}
Symbol 219 Button
on (release) {
if (_root.maindisplay.difficulty.text1.first == "beginner") {
_root.maindisplay.difficulty.text2.first = "normal";
_root.difficulty = "normal";
} else if (_root.maindisplay.difficulty.text1.first == "normal") {
_root.maindisplay.difficulty.text2.first = "expert";
_root.difficulty = "expert";
} else if (_root.maindisplay.difficulty.text1.first == "expert") {
_root.maindisplay.difficulty.text2.first = "beginner";
_root.difficulty = "beginner";
}
_root.diffdir = "forward";
}
on (rollOver) {
_root.rover2.stop();
_root.rover2.start();
}
Symbol 220 Button
on (release) {
if (_root.maindisplay.mode.text2.first == "1 player") {
_root.maindisplay.mode.text1.first = "2 player";
_root.mode = "2 player";
} else if (_root.maindisplay.mode.text2.first == "2 player") {
_root.maindisplay.mode.text1.first = "1 player";
_root.mode = "1 player";
}
_root.modedir = "back";
_root.maindisplay.mode.gotoAndStop("last");
}
on (rollOver) {
_root.rover2.stop();
_root.rover2.start();
}
Symbol 221 Button
on (release) {
if (_root.maindisplay.mode.text1.first == "1 player") {
_root.maindisplay.mode.text2.first = "2 player";
_root.mode = "2 player";
} else if (_root.maindisplay.mode.text1.first == "2 player") {
_root.maindisplay.mode.text2.first = "1 player";
_root.mode = "1 player";
}
_root.modedir = "forward";
}
on (rollOver) {
_root.rover2.stop();
_root.rover2.start();
}
Symbol 230 MovieClip Frame 1
this._visible = false;
Symbol 244 Button
on (release) {
gameURL = ("http://www.miniclip.com/" + gamename) + ".htm";
getURL (gameURL, "_blank");
}
Instance of Symbol 230 MovieClip "mcHighscores" in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 250 MovieClip Frame 2
if (((_url.slice(0, 23) != "http://www.miniclip.com") and (_url.slice(0, 19) != "http://miniclip.com")) and (_url.slice(0, 20) != "http://66.132.254.49")) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?" + noCache);
stop();
}
Symbol 250 MovieClip Frame 3
stop();
Symbol 251 MovieClip Frame 1
_root.score = 0;
_root.maindisplay.difficulty._visible = false;
_root.maindisplay.mode._visible = false;
stop();
Symbol 251 MovieClip Frame 2
stop();
Symbol 251 MovieClip Frame 3
stop();
Instance of Symbol 123 MovieClip in Symbol 251 MovieClip Frame 3
onClipEvent (load) {
letterkeys = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
numberkeys = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9");
numpadkeys = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "+", "Enter", "-", ".", "/");
functionkeys = new Array("F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12");
otherkeys = new Array("Space", "Page Up", "Page Down", "End", "Home", "Left", "Up", "Right", "Down");
}
onClipEvent (keyDown) {
if (_root.selectkey == true) {
_root.selectkey = false;
_root.customcontrols = true;
pressed = Key.getCode();
trace(pressed);
_root[_root.whichkey] = pressed;
if ((pressed >= 65) and (pressed <= 90)) {
_root.maindisplay[_root.whichkey] = letterkeys[pressed - 65];
}
if ((pressed >= 48) and (pressed <= 57)) {
_root.maindisplay[_root.whichkey] = numberkeys[pressed - 48];
}
if ((pressed >= 96) and (pressed <= 111)) {
_root.maindisplay[_root.whichkey] = numpadkeys[pressed - 96];
}
if ((pressed >= 112) and (pressed <= 123)) {
_root.maindisplay[_root.whichkey] = functionkeys[pressed - 112];
}
if ((pressed >= 32) and (pressed <= 40)) {
_root.maindisplay[_root.whichkey] = otherkeys[pressed - 32];
}
if (pressed == 8) {
_root.maindisplay[_root.whichkey] = "BackSpace";
}
if (pressed == 9) {
_root.maindisplay[_root.whichkey] = "Tab";
}
if (pressed == 12) {
_root.maindisplay[_root.whichkey] = "Clear";
}
if (pressed == 13) {
_root.maindisplay[_root.whichkey] = "Enter";
}
if (pressed == 16) {
_root.maindisplay[_root.whichkey] = "Shift";
}
if (pressed == 17) {
_root.maindisplay[_root.whichkey] = "Control";
}
if (pressed == 18) {
_root.maindisplay[_root.whichkey] = "Alt";
}
if (pressed == 20) {
_root.maindisplay[_root.whichkey] = "Caps Lock";
}
if (pressed == 27) {
_root.maindisplay[_root.whichkey] = "Esc";
}
if (pressed == 45) {
_root.maindisplay[_root.whichkey] = "Insert";
}
if (pressed == 46) {
_root.maindisplay[_root.whichkey] = "Delete";
}
if (pressed == 47) {
_root.maindisplay[_root.whichkey] = "help";
}
if (pressed == 144) {
_root.maindisplay[_root.whichkey] = "Num Lock";
}
if (pressed == 186) {
_root.maindisplay[_root.whichkey] = ";:";
}
if (pressed == 187) {
_root.maindisplay[_root.whichkey] = "=+";
}
if (pressed == 189) {
_root.maindisplay[_root.whichkey] = "-_";
}
if (pressed == 191) {
_root.maindisplay[_root.whichkey] = "/?";
}
if (pressed == 192) {
_root.maindisplay[_root.whichkey] = "'@";
}
if (pressed == 219) {
_root.maindisplay[_root.whichkey] = "[{";
}
if (pressed == 220) {
_root.maindisplay[_root.whichkey] = "\\|";
}
if (pressed == 221) {
_root.maindisplay[_root.whichkey] = "]}";
}
}
}
Symbol 251 MovieClip Frame 4
stop();
_root.maindisplay.difficulty._visible = true;
_root.maindisplay.mode._visible = true;
Symbol 251 MovieClip Frame 5
stop();
Symbol 251 MovieClip Frame 6
stop();
Instance of Symbol 250 MovieClip in Symbol 251 MovieClip Frame 6
//component parameters
onClipEvent (initialize) {
scoreLocation = "_root.score";
gamename = "battlepong";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
}