Frame 1
function displayHelp() {
help._x = g_width / 2;
help._y = g_ground / 2;
paused = true;
}
function displayOptions() {
options._x = g_width / 2;
options._y = g_ground / 2;
paused = true;
}
function unPause() {
nextDroneTime = nextDroneTime + pausedTime;
pausedTime = 0;
}
function resetOptions() {
trace("Entering reset options");
options.enemy1_amt.setPercent(100);
options.enemy2_amt.setPercent(19);
options.enemy3_amt.setPercent(44);
options.enemy4_amt.setPercent(38);
options.enemy5_amt.setPercent(31);
options.enemy6_amt.setPercent(7);
options.delay_time.setPercent(100);
options.drone_max.setPercent(60);
options.laser_speed_mult.setPercent(0);
options.setPrev();
}
function setEnemyList() {
_root.droneIDs = new Array();
ndx = 0;
while (ndx < options.enemy1_amt.value) {
_root.droneIDs.push("drone");
ndx++;
}
ndx = 0;
while (ndx < options.enemy2_amt.value) {
_root.droneIDs.push("drone2");
ndx++;
}
ndx = 0;
while (ndx < options.enemy3_amt.value) {
_root.droneIDs.push("drone3");
ndx++;
}
ndx = 0;
while (ndx < options.enemy4_amt.value) {
_root.droneIDs.push("drone4");
ndx++;
}
ndx = 0;
while (ndx < options.enemy5_amt.value) {
_root.droneIDs.push("drone5");
ndx++;
}
ndx = 0;
while (ndx < options.enemy6_amt.value) {
_root.droneIDs.push("drone_gunner");
ndx++;
}
}
function resetDroneLists() {
trace("Reseting the drone list");
trace("Max drones on screen: " + maxDronesOnScreen);
_root.droneList = new Array(maxDronesOnScreen);
_root.droneUsedArray = new Array(maxDronesOnScreen);
trace("drone list before exiting function: " + _root.droneList);
}
function addExplosion(name, x, y, rotation) {
lvl = ((explosion_count++) % 10) + 1;
temp = _root.explosion_layer.attachMovie(name, "explosion_id" + lvl, lvl);
temp._x = x;
temp._y = y;
temp._rotation = rotation;
g_dronesOnScreen--;
}
function calcDamage(damage) {
g_hp = g_hp - damage;
if (g_hp < 0) {
g_hp = 0;
}
_root.playHurtSound();
}
function saveData() {
trace("Saving Data");
myLocalSO.data.highScore = highScore;
myLocalSO.data.highScoreColor = highScoreColor;
}
function resetGame() {
for (i in droneList) {
killEnemy(droneList[i]);
}
for (i in droneUsedArray) {
droneUsedArray[i] = false;
}
for (i in droneList) {
droneList[i] = null;
}
droneloadTime = startLoadTime;
score = 0;
g_hp = 10;
g_kills = 0;
custom_time = 0;
}
function showEndGame() {
saveData();
if (score > 100000) {
_root.endMessage = "If a mouse really was a light saber you'd be a jedi master.";
} else if (score > 15000) {
_root.endMessage = "The force is strong with this one.";
} else if (score > 10000) {
_root.endMessage = "Obi-wan has taught you well but your training is not complete.";
} else if (score == 6660) {
_root.endMessage = "I sense a darkness within you. The emperor will keep a close eye on this one.";
} else if (score > 5000) {
_root.endMessage = "You are well on your way to becoming a jedi.";
} else if (score > 4000) {
_root.endMessage = "Learn to accept the force. Let it flow through you.";
} else if (score > 3000) {
_root.endMessage = "At this rate you will never become a master.";
} else if (score > 2000) {
_root.endMessage = "I hear the empire is hiring non-clone storm troopers. Maybe you should apply.";
} else if (score > 1000) {
_root.endMessage = "Perhaps the way of a jedi is not for you. How about smuggling?";
} else if (score == 666) {
_root.endMessage = "I sense a darkness within you. The emperor will keep a close eye on this one.";
} else {
_root.endMessage = "Put down the light saber before you hurt yourself.";
}
end_game._x = g_width / 2;
end_game._y = g_ground / 2;
}
function testIsHit(obj) {
return(_root.saber.follower.hitTest(obj._x, obj._y, 1));
}
function playSound(filename) {
mysound = new Sound();
mysound.attachSound(filename);
mysound.start(0, 1);
}
function playHurtSound() {
hurtWave = hurtSounds[random(4)];
playSound(hurtWave);
}
function smartRotation(currentRotation, targetRotation, rotationAmount) {
if (Math.abs(currentRotation - targetRotation) <= rotationAmount) {
currentRotation = targetRotation;
midRotation = currentRotation;
} else if (currentRotation != targetRotation) {
dist = (Math.abs(currentRotation - targetRotation) * changeRate) * _root.elapsed;
if ((dist / _root.elapsed) > g_maxSpeed) {
dist = g_maxSpeed * _root.elapsed;
}
dist2 = Math.abs(Math.abs(currentRotation) - Math.abs(targetRotation)) * changeRate;
if ((currentRotation >= 0) && (targetRotation >= 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - dist;
midRotation = currentRotation - (dist / 2);
g_direction = -1;
bladeSpeed = dist;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + dist;
midRotation = currentRotation + (dist / 2);
g_direction = 1;
bladeSpeed = dist;
}
} else if ((currentRotation < 0) && (targetRotation < 0)) {
if (currentRotation > targetRotation) {
currentRotation = currentRotation - dist;
midRotation = currentRotation - (dist / 2);
g_direction = -1;
bladeSpeed = dist;
} else if (currentRotation < targetRotation) {
currentRotation = currentRotation + dist;
midRotation = currentRotation + (dist / 2);
g_direction = 1;
bladeSpeed = dist;
}
} else if ((currentRotation < 0) && (targetRotation >= 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) <= 180) {
currentRotation = currentRotation + dist;
midRotation = currentRotation + (dist / 2);
g_direction = 1;
bladeSpeed = dist;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) > 180) {
dummy = currentRotation + 360;
dist3 = (Math.abs(dummy - targetRotation) * changeRate) * _root.elapsed;
if ((dist3 / _root.elapsed) > g_maxSpeed) {
dist3 = g_maxSpeed * _root.elapsed;
}
currentRotation = currentRotation - dist3;
midRotation = currentRotation - (dist3 / 2);
g_direction = -1;
bladeSpeed = dist3;
}
} else if ((currentRotation >= 0) && (targetRotation < 0)) {
if ((Math.abs(currentRotation) + Math.abs(targetRotation)) < 180) {
currentRotation = currentRotation - dist;
midRotation = currentRotation - (dist / 2);
g_direction = -1;
bladeSpeed = dist;
} else if ((Math.abs(currentRotation) + Math.abs(targetRotation)) >= 180) {
dummy = currentRotation - 360;
dist3 = (Math.abs(dummy - targetRotation) * changeRate) * _root.elapsed;
if ((dist3 / _root.elapsed) > g_maxSpeed) {
dist3 = g_maxSpeed * _root.elapsed;
}
currentRotation = currentRotation + dist3;
midRotation = currentRotation + (dist3 / 2);
g_direction = 1;
bladeSpeed = dist3;
}
}
}
if ((bladeSpeed > 15) && (getTimer() > nextSoundTimeSwoosh)) {
nextSoundTimeSwoosh = getTimer() + 500;
playSound(saberSounds[random(saberSounds.length)]);
}
return(currentRotation);
}
function stepSparks() {
i = 1;
while (i < sparkDebree.length) {
sparkDebree[i].step();
i++;
}
}
function addSpark(name, x, y, vx, vy) {
sparkLvl++;
if (sparkLvl > (sparkDebree.length - 1)) {
sparkLvl = 1;
}
temp = _root.sparks.attachMovie(name, "spark_id_" + sparkLvl, sparkLvl);
temp.vx = vx;
temp.vy = vy;
temp._x = x;
temp._y = y;
sparkDebree[sparkLvl] = temp;
}
function stepLasers() {
i = 1;
while (i < laserArray.length) {
laserArray[i].step();
i++;
}
}
function addLaser(name, x, y, vx, vy, exitdelay) {
mult = laserSpeedMult;
if (laserSpeedMult <= 0) {
mult = 1;
}
mult = 1 + (mult / 180);
laserLvl++;
if (laserLvl > (laserArray.length - 1)) {
laserLvl = 1;
}
temp = _root.laser_layer.attachMovie(name, "laser_id_" + laserLvl, laserLvl);
temp.vx = vx * mult;
temp.vy = vy * mult;
temp._x = x;
temp._y = y;
temp.exitdelay = exitdelay;
laserArray[laserLvl] = temp;
}
function killEnemy(ene) {
g_kills++;
_root.playSound("flak.wav");
_root.addExplosion("droid_explosion", ene._x, ene._y, random(360));
if (_root.scoring) {
_root.score = _root.score + (100 + Math.floor(ene.timeBonus / 100));
}
droneUsedArray[ene.id_spot] = false;
droneList[ene.id_spot] = null;
ene.unloadMovie();
g_full = false;
}
function stepDrones() {
if (!usedIsInitialized) {
i = 0;
while (i < droneList.length) {
droneList[i] = null;
i++;
}
usedIsInitialized = true;
}
if (getTimer() > nextDroneTime) {
waitTime = baseWaitTime - g_kills;
if (waitTime <= 10) {
waitTime = 10;
}
nextDroneTime = getTimer() + waitTime;
trace("Checking to see if enemy should be loaded: " + droneList);
found = false;
i = 0;
while ((i < droneList.length) && (!found)) {
if (droneList[i] == null) {
trace((("found empty spot at: " + i) + " ") + droneList[i]);
found = true;
g_dronesOnScreen++;
temp = _root.drones.attachMovie(droneIDs[random(droneIDs.length)], ("drone_id_" + i) + 1, i + 1);
temp._x = random(_root.g_width - 150) + 75;
temp._y = random(_root.g_ground - 150) + 75;
temp.vx = (random(100) - 50) / 100;
temp.vy = (random(100) - 50) / 100;
temp.hp = 20;
temp.id_spot = i;
droneList[i] = temp;
droneUsedArray[i] = true;
}
g_full = i == (droneUsedArray.length - 1);
i++;
}
}
for (i in droneList) {
droneList[i].step();
}
}
stop();
timeOutside = 0;
amount = 0;
speed = 0;
changeRate = 22;
g_direction = 1;
bladeSpeed = 0;
g_ground = 728;
g_width = 1024;
nextSoundTimeSwoosh = getTimer();
g_hp = 10;
score = 0;
highScore = 0;
startLoadTime = 15000;
droneloadTime = startLoadTime;
pausedTime = 0;
midRotation = _root.saber._rotation;
g_hitDelayTime = 100;
paused = false;
baseWaitTime = 9000;
custom_time = 0;
scoring_text = "scoring on";
scoring = true;
laserSpeedMult = 1;
swordColorSet = new Array("red", "green", "blue", "yellow", "cyan", "magenta");
swordColor = swordColorSet[random(swordColorSet.length)];
highScoreColor = "white";
myLocalSO = sharedobject.getLocal("saber01");
if (myLocalSO.data.highScore != null) {
trace("Shared Object Data Found... loading data");
highScore = myLocalSO.data.highScore;
highScoreColor = myLocalSO.data.highScoreColor;
} else {
trace("no object found... loading default data");
score = 0;
highScore = 0;
highScoreColor = "white";
}
explosion_count = 0;
laserSounds = new Array("laser-00.wav", "laser-01.wav", "laser-03.wav", "laser-04.wav", "laser-05.wav", "laser-06.wav");
saberSounds = new Array("lightsaber-08.wav", "lightsaber-09.wav", "lightsaber-10.wav", "lightsaber-11.wav", "lightsaber-12.wav", "lightsaber-13.wav");
hurtSounds = new Array("hurt1.wav", "hurt2.wav", "hurt3.wav", "hurt4.wav");
g_maxSpeed = 1500;
sparkDebree = new Array(10);
sparkLvl = 1;
laserArray = new Array(15);
laserLvl = 1;
maxDronesOnScreen = 1;
droneList = new Array(maxDronesOnScreen);
nextDroneTime = getTimer() + 5000;
droneIDs = new Array("drone_gunner", "drone4", "drone4", "drone4", "drone4", "drone4", "drone4", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone", "drone2", "drone2", "drone2", "drone3", "drone3", "drone3", "drone3", "drone3", "drone3", "drone3", "drone5", "drone5", "drone5", "drone5", "drone5");
g_maxDronesOnScreen = 3;
g_dronesOnScreen = 0;
g_droneListSize = 0;
droneNdx = 0;
g_full = false;
droneUsedArray = new Array(maxDronesOnScreen);
g_kills = 0;
usedIsInitialized = false;
_global._colorDefinitions = {black:0, midnightblue:1644912, dodgerblue:2003199, lightseagreen:2142890, forestgreen:2263842, seagreen:3050327, darkslategray:3100495, darkslategrey:3100495, limegreen:3329330, mediumseagreen:3978097, turquoise:4251856, royalblue:4286945, steelblue:4620980, darkslateblue:4734347, mediumturquoise:4772300, indigo:4915330, darkolivegreen:5597999, cadetblue:6266528, darkgreen:6553600, cornflowerblue:6591981, mediumaquamarine:6737322, dimgray:6908265, dimgrey:6908265, slateblue:6970061, olivedrab:7048739, slategrey:7372944, slategray:7372944, lightslategray:7833753, lightslategrey:7833753, mediumslateblue:8087790, lawngreen:8190976, chartreuse:8388352, aquamarine:8388564, navy:8388608, maroon:8388608, green:65280, purple:8388736, olive:8421376, teal:8421376, grey:8421504, gray:8421504, skyblue:8900331, lightskyblue:8900346, blueviolet:9055202, darkblue:9109504, darkred:9109504, darkmagenta:9109643, saddlebrown:9127187, darkcyan:9145088, darkseagreen:9419919, lightgreen:9498256, mediumpurple:9662683, darkviolet:9699539, palegreen:10025880, darkorchid:10040012, yellowgreen:10145074, sienna:10506797, brown:10824234, darkgrey:11119017, darkgray:11119017, lightblue:11393254, greenyellow:11403055, paleturquoise:11529966, lightsteelblue:11584734, powderblue:11591910, firebrick:11674146, darkgoldenrod:12092939, mediumorchid:12211667, rosybrown:12357519, darkkhaki:12433259, deepskyblue:12582656, silver:12632256, mediumvioletred:13047173, mediumblue:13434880, indianred:13458524, peru:13468991, darkturquoise:13553920, chocolate:13789470, tan:13808780, lightgray:13882323, lightgrey:13882323, thistle:14204888, orchid:14315734, goldenrod:14329120, palevioletred:14381203, crimson:14423100, gainsboro:14474460, plum:14524637, burlywood:14596231, lightcyan:14745599, lavender:15132410, darksalmon:15308410, violet:15631086, palegoldenrod:15657130, lightcoral:15761536, khaki:15787660, aliceblue:15792383, honeydew:15794160, azure:15794175, sandybrown:16032864, wheat:16113331, beige:16119260, whitesmoke:16119285, mintcream:16121850, ghostwhite:16316671, salmon:16416882, mediumspringgreen:16423424, antiquewhite:16444375, linen:16445670, lightgoldenrodyellow:16448210, oldlace:16643558, red:16711680, lime:16711680, blue:255, fuchsia:16711935, magenta:16711935, deeppink:16716947, orangered:16729344, tomato:16737095, hotpink:16738740, springgreen:16744192, coral:16744272, darkorange:16747520, lightsalmon:16752762, orange:16753920, lightpink:16758465, pink:16761035, gold:16766720, peachpuff:16767673, navajowhite:16768685, moccasin:16770229, bisque:16770244, mistyrose:16770273, blanchedalmond:16772045, papayawhip:16773077, lavenderblush:16773365, seashell:16774638, cornsilk:16775388, lemonchiffon:16775885, floralwhite:16775920, snow:16775930, yellow:16776960, cyan:65535, aqua:16776960, lightyellow:16777184, ivory:16777200, white:16777215};
getColor = function () {
var p;
var r;
var col = new Color(this).getRGB();
for (p in _colorDefinitions) {
if (col == _colorDefinitions[p]) {
return(p);
}
if (col < _colorDefinitions[p]) {
r = "0x" + col.toString(16);
while (r.length < 8) {
r = r + "0";
}
return(r);
}
}
r = "0x" + col.toString(16);
while (r.length < 8) {
r = r + "0";
}
return(r);
};
setColor = function (col) {
if (typeof(col) == "string") {
if (col.charAt(0) == "0") {
new Color(this).setRGB(parseInt(col));
} else {
new Color(this).setRGB(_colorDefinitions[col]);
}
} else {
new Color(this).setRGB(col);
}
};
MovieClip.prototype.addProperty("_color", getColor, setColor);
Instance of Symbol 207 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (getTimer() > 6000) {
_root.gotoAndStop("game_start");
this.unloadMovie();
} else {
gotoAndStop(Math.floor(((getTimer() * 15) / 1000) % 190));
}
}
Instance of Symbol 237 MovieClip in Frame 1
onClipEvent (load) {
}
Instance of Symbol 261 MovieClip "saber" in Frame 2
onClipEvent (load) {
radians = 0;
spotX = 0;
spotY = 0;
width = 10;
dx = 0;
dy = 0;
curShadow = 1;
}
onClipEvent (enterFrame) {
jx = _root._xmouse - _x;
jy = _root._ymouse - _y;
_x = (_x + ((_root._xmouse - _x) * 0.5));
_y = (_y + ((_root._ymouse - _y) * 0.5));
dx = _root.string._x - _root.saber._x;
dy = _root.string._y - _root.saber._y;
radians = Math.atan(dy / dx);
if (!_root.holding) {
if (dx > 0) {
goalRot = ((radians * 180) / Math.PI) + 180;
if ((dx > 0) && (dy > 0)) {
goalRot = ((radians * 180) / Math.PI) - 180;
}
} else {
goalRot = (radians * 180) / Math.PI;
}
_rotation = _root.smartRotation(_rotation, goalRot, 1);
}
}
Instance of Symbol 265 MovieClip "string" in Frame 2
onClipEvent (load) {
time = 0;
lastX = 0;
lastY = 0;
}
onClipEvent (enterFrame) {
if (!_root.holding) {
lastX = _root._xmouse - _x;
lastY = _root._ymouse - _y;
if (!_root.string.hitTest(_root._xmouse, _root._ymouse, 1)) {
_x = (_x + ((_root._xmouse - _x) * 0.1));
_y = (_y + ((_root._ymouse - _y) * 0.1));
}
} else {
_x = (_root._xmouse - lastX);
_y = (_root._ymouse - lastY);
}
if ((((_x > (_root.g_width - 15)) || (_x < 15)) || (_y > (_root.g_ground - 15))) || (_y < 15)) {
if ((_root.timeOutside > 1000) && (_root.g_hp > 0)) {
_root.timeOutside = 0;
_root.g_hp--;
_root.playHurtSound();
}
_root.timeOutside = _root.timeOutside + (_root.elapsed * 1000);
_root.out_of_bounds._x = _root.g_width / 2;
_root.out_of_bounds._y = _root.g_ground / 2;
} else {
_root.out_of_bounds._x = -1000;
_root.out_of_bounds._y = -1000;
}
}
Instance of Symbol 269 MovieClip in Frame 2
onClipEvent (load) {
_root.prevTime = getTimer();
_root.resetOptions();
trace("Max on screen after update: " + _root.maxDronesOnScreen);
trace("options max drones value: " + _root.options.drone_max.value);
_root.resetDroneLists();
trace("Drone List: " + _root.droneList);
}
onClipEvent (enterFrame) {
_root.elapsed = (getTimer() - _root.prevTime) / 1000;
_root.prevTime = getTimer();
if (_root.highScore < _root.score) {
_root.highScore = _root.score;
_root.highScoreColor = _root.swordColor;
}
if (!_root.paused) {
_root.pausedTime = 0;
_root.stepSparks();
_root.stepLasers();
_root.stepDrones();
updateAfterEvent();
if (_root.g_hp <= 0) {
_root.paused = true;
_root.showEndGame();
}
_root.custom_time = _root.custom_time + _root.elapsed;
} else {
_root.pausedTime = _root.pausedTime + _root.elapsed;
}
}
Instance of Symbol 312 MovieClip in Frame 2
on (release) {
_root.displayOptions();
}
Instance of Symbol 317 MovieClip "help" in Frame 2
onClipEvent (load) {
_root.displayHelp();
}
Instance of Symbol 312 MovieClip in Frame 2
on (release) {
_root.displayHelp();
}
Symbol 82 MovieClip [enemy1_explosion] Frame 1
stop();
alpha_change = 2;
rate = 0.5;
Instance of Symbol 23 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
if (_alpha < 1) {
_parent.unloadMovie();
}
_rotation = (_rotation + rotRate);
}
Instance of Symbol 25 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 27 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 29 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 31 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 33 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 35 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 37 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 39 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 41 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 43 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 45 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 47 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 49 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 51 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 53 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 55 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 57 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 59 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 61 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = _x * _parent.rate;
vy = _y * _parent.rate;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
}
Instance of Symbol 63 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 65 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 67 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 69 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 71 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 73 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = _x * _parent.rate;
vy = _y * _parent.rate;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
}
Instance of Symbol 75 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = _x * _parent.rate;
vy = _y * _parent.rate;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
}
Instance of Symbol 77 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 79 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = _x * _parent.rate;
vy = _y * _parent.rate;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
}
Instance of Symbol 81 MovieClip in Symbol 82 MovieClip [enemy1_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 40
stop();
Symbol 86 MovieClip [blood] Frame 1
function step() {
if (((((!dead) && (_x < _root.g_width)) && (_x > 0)) && (_y < (_root.g_ground - 50))) && (_y > 0)) {
t = _root.elapsed;
vy0 = vy;
vx0 = vx;
y0 = _y;
x0 = _x;
prevX = _x;
prevY = _y;
vy = (gravY * t) + vy0;
vx = (gravX * t) + vx0;
_y = (((((0.5 * gravY) * t) * t) + (vy0 * t)) + y0);
_x = (((((0.5 * gravX) * t) * t) + (vx0 * t)) + x0);
radians = Math.atan(vy / vx);
if (vx > 0) {
_rotation = ((radians * 180) / 3.14159);
} else {
_rotation = (((radians * 180) / 3.14159) + 180);
}
} else if (!dead) {
splat.gotoAndPlay("dead");
dead = true;
}
}
stop();
gravY = 800;
gravX = 0;
Symbol 91 MovieClip [laser4] Frame 1
function step() {
if (getTimer() > deathTime) {
_alpha = 0;
dead = true;
}
if (((((!dead) && (_x < _root.g_width)) && (_x > 0)) && (_y < _root.g_ground)) && (_y > 0)) {
if (deflected) {
en = 0;
while ((en < _root.droneList.length) && (!dead)) {
enemy = _root.droneList[en];
if (enemy.hitTest(this)) {
if (enemy.shield_power <= 0) {
dead = true;
_root.killEnemy(enemy);
sp = 0;
while (sp < 10) {
_root.addSpark("spark_hit", _x, _y, random(1000) - 500, random(1000) - 500);
sp++;
}
} else {
enemy.shield_obj._alpha = enemy.shield_power;
vx = vx * -1;
vy = vy * -1;
deflected = false;
}
}
en++;
}
}
if (_root.saber.body.hitTest(_x, _y, 1) && (!deflected)) {
dead = true;
_alpha = 0;
sp = 0;
while (sp < 3) {
_root.addSpark("blood", _x, _y, random(50) + 25, random(50) + 25);
sp++;
}
_root.calcDamage(1);
} else if ((getTimer() > timeToHit) && (_root.testIsHit(this))) {
deflected = true;
if ((!_root.holding) && (_root.scoring)) {
_root.score = _root.score + 1;
}
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
timeToHit = getTimer() + 100;
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
dx = vx;
dy = vy;
speed = Math.sqrt((dx * dx) + (dy * dy));
if (!_root.holding) {
vx = (Math.cos(tanRadians) * (-_root.g_direction)) * speed;
vy = (Math.sin(tanRadians) * (-_root.g_direction)) * speed;
} else {
direction = 0;
if ((dx < 0) && (dy < 0)) {
trace("hit1");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = -1;
trace((("hit1.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = -1;
trace((("hit1.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = 1;
trace((("hit1.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = 1;
trace((("hit1.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx >= 0) && (dy < 0)) {
trace("hit2");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = 1;
trace((("hit2.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = 1;
trace((("hit2.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = -1;
trace((("hit2.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit2.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx < 0) && (dy >= 0)) {
trace("hit3");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = -1;
trace((("hit3.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = -1;
trace((("hit3.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = 1;
trace((("hit3.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit3.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx >= 0) && (dy >= 0)) {
trace("hit4");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = 1;
trace((("hit4.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = 1;
trace((("hit4.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = -1;
trace((("hit4.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit4.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
}
vx = (speed * Math.cos(tanRadians)) * direction;
vy = (speed * Math.sin(tanRadians)) * direction;
}
}
prevX = _x;
prevY = _y;
_y = (_y + (_root.elapsed * vy));
_x = (_x + (_root.elapsed * vx));
radians = Math.atan(vy / vx);
if (vx > 0) {
_rotation = ((radians * 180) / 3.14159);
} else {
_rotation = (((radians * 180) / 3.14159) + 180);
}
} else if (_x <= 0) {
dead = deflected;
_x = (_root.g_width - 1);
deflected = false;
} else if (_x >= _root.g_width) {
dead = deflected;
_x = 1;
deflected = false;
} else if (_y <= 0) {
dead = deflected;
_y = (_root.g_ground - 1);
deflected = false;
} else if (_y >= _root.g_ground) {
dead = deflected;
_y = 1;
deflected = false;
}
if (dead) {
this.unloadMovie();
}
}
stop();
trace("exitdelay: " + exitdelay);
gravY = 600;
gravX = 0;
damp = 0.3;
deathTime = (getTimer() + 20000) + random(5000);
timeToHit = getTimer() + exitdelay;
deflected = false;
Instance of Symbol 90 MovieClip in Symbol 91 MovieClip [laser4] Frame 1
onClipEvent (enterFrame) {
if (_parent.deflected) {
_alpha = 100;
} else {
_alpha = 50;
}
}
Symbol 92 MovieClip [laser3] Frame 1
function step() {
if (getTimer() > deathTime) {
_alpha = 0;
dead = true;
}
if (((((!dead) && (_x < _root.g_width)) && (_x > 0)) && (_y < _root.g_ground)) && (_y > 0)) {
if (deflected) {
en = 0;
while ((en < _root.droneList.length) && (!dead)) {
enemy = _root.droneList[en];
if (enemy.hitTest(this)) {
if (enemy.shield_power <= 0) {
dead = true;
_root.killEnemy(enemy);
sp = 0;
while (sp < 10) {
_root.addSpark("spark_hit", _x, _y, random(1000) - 500, random(1000) - 500);
sp++;
}
} else {
enemy.shield_obj._alpha = enemy.shield_power;
vx = vx * -1;
vy = vy * -1;
deflected = false;
}
}
en++;
}
}
if (_root.saber.body.hitTest(_x, _y, 1) && (!deflected)) {
dead = true;
_alpha = 0;
sp = 0;
while (sp < 3) {
_root.addSpark("blood", _x, _y, random(50) + 25, random(50) + 25);
sp++;
}
_root.calcDamage(1);
} else if ((getTimer() > timeToHit) && (_root.testIsHit(this))) {
deflected = true;
if ((!_root.holding) && (_root.scoring)) {
_root.score = _root.score + 1;
}
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
timeToHit = getTimer() + 100;
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
dx = vx;
dy = vy;
speed = Math.sqrt((dx * dx) + (dy * dy));
if (!_root.holding) {
vx = (Math.cos(tanRadians) * (-_root.g_direction)) * speed;
vy = (Math.sin(tanRadians) * (-_root.g_direction)) * speed;
} else {
direction = 0;
if ((dx < 0) && (dy < 0)) {
trace("hit1");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = -1;
trace((("hit1.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = -1;
trace((("hit1.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = 1;
trace((("hit1.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = 1;
trace((("hit1.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx >= 0) && (dy < 0)) {
trace("hit2");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = 1;
trace((("hit2.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = 1;
trace((("hit2.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = -1;
trace((("hit2.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit2.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx < 0) && (dy >= 0)) {
trace("hit3");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = -1;
trace((("hit3.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = -1;
trace((("hit3.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = 1;
trace((("hit3.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit3.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx >= 0) && (dy >= 0)) {
trace("hit4");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = 1;
trace((("hit4.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = 1;
trace((("hit4.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = -1;
trace((("hit4.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit4.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
}
vx = (speed * Math.cos(tanRadians)) * direction;
vy = (speed * Math.sin(tanRadians)) * direction;
}
}
prevX = _x;
prevY = _y;
_y = (_y + (_root.elapsed * vy));
_x = (_x + (_root.elapsed * vx));
radians = Math.atan(vy / vx);
if (vx > 0) {
_rotation = ((radians * 180) / 3.14159);
} else {
_rotation = (((radians * 180) / 3.14159) + 180);
}
} else if (_x <= 0) {
dead = deflected;
_x = (_root.g_width - 1);
deflected = false;
} else if (_x >= _root.g_width) {
dead = deflected;
_x = 1;
deflected = false;
} else if (_y <= 0) {
dead = deflected;
_y = (_root.g_ground - 1);
deflected = false;
} else if (_y >= _root.g_ground) {
dead = deflected;
_y = 1;
deflected = false;
}
if (dead) {
this.unloadMovie();
}
}
stop();
trace("exitdelay: " + exitdelay);
gravY = 600;
gravX = 0;
damp = 0.3;
deathTime = (getTimer() + 20000) + random(5000);
timeToHit = getTimer() + exitdelay;
deflected = false;
Instance of Symbol 90 MovieClip in Symbol 92 MovieClip [laser3] Frame 1
onClipEvent (enterFrame) {
if (_parent.deflected) {
_alpha = 100;
} else {
_alpha = 50;
}
}
Symbol 93 MovieClip [laser2] Frame 1
function step() {
if (getTimer() > deathTime) {
_alpha = 0;
dead = true;
}
if (((((!dead) && (_x < _root.g_width)) && (_x > 0)) && (_y < _root.g_ground)) && (_y > 0)) {
if (deflected) {
en = 0;
while ((en < _root.droneList.length) && (!dead)) {
enemy = _root.droneList[en];
if (enemy.hitTest(this)) {
if (enemy.shield_power <= 0) {
dead = true;
_root.killEnemy(enemy);
sp = 0;
while (sp < 10) {
_root.addSpark("spark_hit", _x, _y, random(1000) - 500, random(1000) - 500);
sp++;
}
} else {
enemy.shield_obj._alpha = enemy.shield_power;
vx = vx * -1;
vy = vy * -1;
deflected = false;
}
}
en++;
}
}
if (_root.saber.body.hitTest(_x, _y, 1) && (!deflected)) {
dead = true;
_alpha = 0;
sp = 0;
while (sp < 3) {
_root.addSpark("blood", _x, _y, random(50) + 25, random(50) + 25);
sp++;
}
_root.calcDamage(1);
} else if ((getTimer() > timeToHit) && (_root.testIsHit(this))) {
deflected = true;
if ((!_root.holding) && (_root.scoring)) {
_root.score = _root.score + 1;
}
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
timeToHit = getTimer() + 100;
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
dx = vx;
dy = vy;
speed = Math.sqrt((dx * dx) + (dy * dy));
if (!_root.holding) {
vx = (Math.cos(tanRadians) * (-_root.g_direction)) * speed;
vy = (Math.sin(tanRadians) * (-_root.g_direction)) * speed;
} else {
direction = 0;
if ((dx < 0) && (dy < 0)) {
trace("hit1");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = -1;
trace((("hit1.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = -1;
trace((("hit1.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = 1;
trace((("hit1.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = 1;
trace((("hit1.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx >= 0) && (dy < 0)) {
trace("hit2");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = 1;
trace((("hit2.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = 1;
trace((("hit2.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = -1;
trace((("hit2.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit2.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx < 0) && (dy >= 0)) {
trace("hit3");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = -1;
trace((("hit3.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = -1;
trace((("hit3.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = 1;
trace((("hit3.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit3.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx >= 0) && (dy >= 0)) {
trace("hit4");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = 1;
trace((("hit4.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = 1;
trace((("hit4.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = -1;
trace((("hit4.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit4.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
}
vx = (speed * Math.cos(tanRadians)) * direction;
vy = (speed * Math.sin(tanRadians)) * direction;
}
}
prevX = _x;
prevY = _y;
_y = (_y + (_root.elapsed * vy));
_x = (_x + (_root.elapsed * vx));
radians = Math.atan(vy / vx);
if (vx > 0) {
_rotation = ((radians * 180) / 3.14159);
} else {
_rotation = (((radians * 180) / 3.14159) + 180);
}
} else if (_x <= 0) {
dead = deflected;
_x = (_root.g_width - 1);
deflected = false;
} else if (_x >= _root.g_width) {
dead = deflected;
_x = 1;
deflected = false;
} else if (_y <= 0) {
dead = deflected;
_y = (_root.g_ground - 1);
deflected = false;
} else if (_y >= _root.g_ground) {
dead = deflected;
_y = 1;
deflected = false;
}
if (dead) {
this.unloadMovie();
}
}
stop();
trace("exitdelay: " + exitdelay);
gravY = 600;
gravX = 0;
damp = 0.3;
deathTime = (getTimer() + 20000) + random(5000);
timeToHit = getTimer() + exitdelay;
deflected = false;
Instance of Symbol 90 MovieClip in Symbol 93 MovieClip [laser2] Frame 1
onClipEvent (enterFrame) {
if (_parent.deflected) {
_alpha = 100;
} else {
_alpha = 50;
}
}
Symbol 94 MovieClip [laser] Frame 1
function step() {
if (getTimer() > deathTime) {
_alpha = 0;
dead = true;
}
if (((((!dead) && (_x < _root.g_width)) && (_x > 0)) && (_y < _root.g_ground)) && (_y > 0)) {
if (deflected) {
en = 0;
while ((en < _root.droneList.length) && (!dead)) {
enemy = _root.droneList[en];
if (enemy.hitTest(this)) {
if (enemy.shield_power <= 0) {
dead = true;
_root.killEnemy(enemy);
sp = 0;
while (sp < 10) {
_root.addSpark("spark_hit", _x, _y, random(1000) - 500, random(1000) - 500);
sp++;
}
} else {
enemy.shield_obj._alpha = enemy.shield_power;
vx = vx * -1;
vy = vy * -1;
deflected = false;
timeToHit = 100;
}
}
en++;
}
}
if (_root.saber.body.hitTest(_x, _y, 1) && (!deflected)) {
dead = true;
_alpha = 0;
sp = 0;
while (sp < 3) {
_root.addSpark("blood", _x, _y, random(50) + 25, random(50) + 25);
sp++;
}
_root.calcDamage(1);
} else if ((getTimer() > timeToHit) && (_root.testIsHit(this))) {
deflected = true;
if ((!_root.holding) && (_root.scoring)) {
_root.score = _root.score + 1;
}
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
timeToHit = getTimer() + 100;
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
dx = vx;
dy = vy;
speed = Math.sqrt((dx * dx) + (dy * dy));
if (!_root.holding) {
vx = (Math.cos(tanRadians) * (-_root.g_direction)) * speed;
vy = (Math.sin(tanRadians) * (-_root.g_direction)) * speed;
} else {
direction = 0;
if ((dx < 0) && (dy < 0)) {
trace("hit1");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = -1;
trace((("hit1.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = -1;
trace((("hit1.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = 1;
trace((("hit1.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = 1;
trace((("hit1.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx >= 0) && (dy < 0)) {
trace("hit2");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = 1;
trace((("hit2.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = 1;
trace((("hit2.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = -1;
trace((("hit2.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit2.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx < 0) && (dy >= 0)) {
trace("hit3");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = -1;
trace((("hit3.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = -1;
trace((("hit3.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = 1;
trace((("hit3.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit3.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
} else if ((dx >= 0) && (dy >= 0)) {
trace("hit4");
trace(_root.saber._rotation);
if ((_root.saber._rotation > -180) && (_root.saber._rotation <= -90)) {
direction = 1;
trace((("hit4.1: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > -90) && (_root.saber._rotation <= 0)) {
direction = 1;
trace((("hit4.2: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 0) && (_root.saber._rotation <= 90)) {
direction = -1;
trace((("hit4.3: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
} else if ((_root.saber._rotation > 90) && (_root.saber._rotation <= 180)) {
direction = -1;
trace((("hit4.4: direction: " + direction) + " saber.dx: ") + _root.saber.dx);
}
}
vx = (speed * Math.cos(tanRadians)) * direction;
vy = (speed * Math.sin(tanRadians)) * direction;
}
}
prevX = _x;
prevY = _y;
_y = (_y + (_root.elapsed * vy));
_x = (_x + (_root.elapsed * vx));
radians = Math.atan(vy / vx);
if (vx > 0) {
_rotation = ((radians * 180) / 3.14159);
} else {
_rotation = (((radians * 180) / 3.14159) + 180);
}
} else if (_x <= 0) {
dead = deflected;
_x = (_root.g_width - 1);
deflected = false;
} else if (_x >= _root.g_width) {
dead = deflected;
_x = 1;
deflected = false;
} else if (_y <= 0) {
dead = deflected;
_y = (_root.g_ground - 1);
deflected = false;
} else if (_y >= _root.g_ground) {
dead = deflected;
_y = 1;
deflected = false;
}
if (dead) {
this.unloadMovie();
}
}
stop();
trace("exitdelay: " + exitdelay);
gravY = 600;
gravX = 0;
damp = 0.3;
deathTime = (getTimer() + 20000) + random(5000);
timeToHit = getTimer() + exitdelay;
deflected = false;
Instance of Symbol 90 MovieClip in Symbol 94 MovieClip [laser] Frame 1
onClipEvent (enterFrame) {
if (_parent.deflected) {
_alpha = 100;
} else {
_alpha = 50;
}
}
Symbol 110 MovieClip [droid_gunner_explosion] Frame 1
stop();
alpha_change = 3;
rate = 2;
dampen = 0.85;
Instance of Symbol 96 MovieClip in Symbol 110 MovieClip [droid_gunner_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 100 MovieClip in Symbol 110 MovieClip [droid_gunner_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 101 MovieClip in Symbol 110 MovieClip [droid_gunner_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 105 MovieClip in Symbol 110 MovieClip [droid_gunner_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 105 MovieClip in Symbol 110 MovieClip [droid_gunner_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 107 MovieClip in Symbol 110 MovieClip [droid_gunner_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 109 MovieClip in Symbol 110 MovieClip [droid_gunner_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
if (_alpha < 1) {
_parent.unloadMovie();
}
_rotation = (_rotation + rotRate);
}
Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
stop();
alpha_change = 3;
rate = 2;
dampen = 0.85;
Instance of Symbol 112 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 114 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 116 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 118 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 120 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 122 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 124 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 126 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 128 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 130 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 132 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 134 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 136 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 112 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 114 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 116 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 118 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 120 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 122 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 124 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 126 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 128 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 130 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 132 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 134 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 136 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 112 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 114 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 116 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
if (_alpha < 1) {
_parent.unloadMovie();
}
_rotation = (_rotation + rotRate);
}
Instance of Symbol 118 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 120 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 122 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 124 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 126 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 128 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 130 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 132 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 134 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 136 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 96 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 100 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 101 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 105 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 105 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 107 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 109 MovieClip in Symbol 137 MovieClip [droid_gunner_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Symbol 138 MovieClip [droid_explosion] Frame 1
stop();
alpha_change = 6;
rate = 2;
dampen = 0.85;
Instance of Symbol 112 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 114 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 116 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 118 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 122 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 124 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 126 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 128 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 130 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 132 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 134 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 136 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 112 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 114 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 116 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
if (_alpha < 1) {
_parent.unloadMovie();
}
_rotation = (_rotation + rotRate);
}
Instance of Symbol 118 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 122 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 124 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 126 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 128 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 130 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 132 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 134 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 136 MovieClip in Symbol 138 MovieClip [droid_explosion] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Symbol 139 MovieClip [droid_explosion_back] Frame 1
stop();
alpha_change = 3;
rate = 2;
dampen = 0.85;
Instance of Symbol 112 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 114 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 116 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 118 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 120 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 122 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 124 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 126 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 128 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 130 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 132 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 134 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 136 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 112 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 114 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 116 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 118 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 120 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 122 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 124 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 126 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 128 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 130 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 132 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 134 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 136 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 112 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 114 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 116 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
if (_alpha < 1) {
_parent.unloadMovie();
}
_rotation = (_rotation + rotRate);
}
Instance of Symbol 118 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 120 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 122 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 124 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 126 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 128 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 130 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 132 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 134 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Instance of Symbol 136 MovieClip in Symbol 139 MovieClip [droid_explosion_back] Frame 1
onClipEvent (load) {
vx = ((_x * _parent.rate) * random(100)) / 100;
vy = ((_y * _parent.rate) * random(100)) / 100;
rotRate = random(10) - 5;
}
onClipEvent (enterFrame) {
_x = (_x + vx);
_y = (_y + vy);
vx = vx * _parent.dampen;
vy = vy * _parent.dampen;
rotRate = rotRate * _parent.dampen;
_alpha = (_alpha - _parent.alpha_change);
_rotation = (_rotation + rotRate);
}
Symbol 141 MovieClip [saber_shadow] Frame 5
stop();
Symbol 143 MovieClip [spark_hit] Frame 1
function step() {
if (getTimer() > deathTime) {
_alpha = 0;
dead = true;
}
if (((((!dead) && (_x < _root.g_width)) && (_x > 0)) && (_y < (_root.g_ground - 50))) && (_y > 0)) {
t = _root.elapsed;
vy0 = vy;
vx0 = vx;
y0 = _y;
x0 = _x;
prevX = _x;
prevY = _y;
vy = (gravY * t) + vy0;
vx = (gravX * t) + vx0;
_y = (((((0.5 * gravY) * t) * t) + (vy0 * t)) + y0);
_x = (((((0.5 * gravX) * t) * t) + (vx0 * t)) + x0);
radians = Math.atan(vy / vx);
if (vx > 0) {
_rotation = ((radians * 180) / 3.14159);
} else {
_rotation = (((radians * 180) / 3.14159) + 180);
}
} else if (_x <= 0) {
_x = 1;
vx = vx * (-damp);
} else if (_x >= _root.g_width) {
_x = (_root.g_width - 1);
vx = vx * (-damp);
} else if (_y <= 0) {
_y = 1;
vy = vy * (-damp);
} else if (_y >= (_root.g_ground - 50)) {
_y = (_root.g_ground - 51);
vy = vy * (-damp);
}
}
stop();
gravY = 600;
gravX = 0;
damp = 0.3;
deathTime = (getTimer() + 2000) + random(1000);
Symbol 148 MovieClip [spark] Frame 1
function step() {
if (getTimer() > deathTime) {
_alpha = 0;
dead = true;
}
if (((((!dead) && (_x < _root.g_width)) && (_x > 0)) && (_y < (_root.g_ground - 50))) && (_y > 0)) {
t = _root.elapsed;
vy0 = vy;
vx0 = vx;
y0 = _y;
x0 = _x;
prevX = _x;
prevY = _y;
vy = (gravY * t) + vy0;
vx = (gravX * t) + vx0;
_y = (((((0.5 * gravY) * t) * t) + (vy0 * t)) + y0);
_x = (((((0.5 * gravX) * t) * t) + (vx0 * t)) + x0);
radians = Math.atan(vy / vx);
if (vx > 0) {
_rotation = ((radians * 180) / 3.14159);
} else {
_rotation = (((radians * 180) / 3.14159) + 180);
}
} else if (_x <= 0) {
_x = 1;
vx = vx * (-damp);
} else if (_x >= _root.g_width) {
_x = (_root.g_width - 1);
vx = vx * (-damp);
} else if (_y <= 0) {
_y = 1;
vy = vy * (-damp);
} else if (_y >= (_root.g_ground - 50)) {
_y = (_root.g_ground - 51);
vy = vy * (-damp);
}
}
stop();
gravY = 600;
gravX = 0;
damp = 0.3;
deathTime = (getTimer() + 2000) + random(1000);
Instance of Symbol 145 MovieClip in Symbol 148 MovieClip [spark] Frame 1
onClipEvent (enterFrame) {
_color = _root.swordColor;
}
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
stop();
Symbol 157 MovieClip [drone4] Frame 1
function step() {
if (!dead) {
timeBonus = timeBonus - _root.elapsed;
d = 200;
xPrev = _x;
yPrev = _y;
_x = (_x + ((dx * _root.elapsed) * 60));
_y = (_y + ((dy * _root.elapsed) * 60));
toSaberX = _x - _root.saber._x;
toSaberY = _y - _root.saber._y;
dx = dx - (toSaberX / 18000);
dy = dy - (toSaberY / 18000);
radians = (_root.saber._rotation * Math.PI) / 180;
tanAngle = _root.saber._rotation - (Math.PI/2);
gotHit = false;
dead = hp <= 0;
if ((gotHit = ((timeToHit < getTimer()) && (!_root.holding)) && (_root.testIsHit(this)))) {
timeToHit = getTimer() + _root.g_hitDelayTime;
droid.gotoAndStop(2);
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
if (!_root.holding) {
dx = ((Math.cos(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
dy = ((Math.sin(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
}
sp = 0;
while (sp < 3) {
_root.addSpark("spark", _x, _y, dx * (random(50) + 25), dy * (random(50) + 25));
sp++;
}
_root.playSound("bomb.wav");
} else {
droid.gotoAndStop(1);
}
if (_x > (_root.g_width - 50)) {
_x = (_root.g_width - 50);
dx = dx * (-dampen);
}
if (_x < 50) {
_x = 50;
dx = dx * (-dampen);
}
if (_y < 50) {
dy = dy * (-dampen);
_y = 50;
}
if (_y > (_root.g_ground - 50)) {
dy = dy * (-dampen);
_y = (_root.g_ground - 50);
}
if (getTimer() > timeToShoot) {
shotCount++;
if (shotCount > 3) {
shotCount = 0;
timeToShoot = getTimer() + 5000;
} else {
timeToShoot = getTimer() + 5000;
}
total = 4;
degrees = -Math.ceil((3 * total) / 2);
rpd = 0.01745329;
theta = Math.atan(toSaberY / toSaberX);
d = Math.sqrt((toSaberX * toSaberX) + (toSaberY * toSaberY));
velX = ((-toSaberX) / d) * laser_speed;
velY = ((-toSaberY) / d) * laser_speed;
vel = Math.sqrt((velX * velX) + (velY * velY));
i = 0;
while (i < total) {
curx = Math.cos(theta + ((2 * degrees) * rpd)) * vel;
cury = Math.sin(theta + ((2 * degrees) * rpd)) * vel;
if (toSaberX > 0) {
curx = -curx;
cury = -cury;
}
degrees = degrees + 3;
_root.addLaser("laser4", _x, _y, curx, cury, 200);
i++;
}
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
}
}
}
stop();
dx = 0;
dy = 0;
dampen = 0.5;
timeToShoot = (getTimer() + 5000) + random(2000);
timeToHit = getTimer();
hp = 5;
shotCount = 0;
dead = false;
timeBonus = 15000;
type = "blue";
shield_power = 0;
laser_speed = 250 + (_root.g_kills * 0.3);
Symbol 157 MovieClip [drone4] Frame 11
stop();
_root.score = _root.score + (200 + Math.floor(timeBonus / 100));
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
stop();
Symbol 162 MovieClip [drone3] Frame 1
function step() {
if (!dead) {
timeBonus = timeBonus - _root.elapsed;
d = 200;
xPrev = _x;
yPrev = _y;
_x = (_x + ((dx * _root.elapsed) * 60));
_y = (_y + ((dy * _root.elapsed) * 60));
toSaberX = _x - _root.saber._x;
toSaberY = _y - _root.saber._y;
dx = dx - (toSaberX / 18000);
dy = dy - (toSaberY / 18000);
radians = (_root.saber._rotation * Math.PI) / 180;
tanAngle = _root.saber._rotation - (Math.PI/2);
gotHit = false;
dead = hp <= 0;
if ((gotHit = ((timeToHit < getTimer()) && (!_root.holding)) && (_root.testIsHit(this)))) {
timeToHit = getTimer() + _root.g_hitDelayTime;
droid.gotoAndStop(2);
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
if (!_root.holding) {
dx = ((Math.cos(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
dy = ((Math.sin(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
}
_root.playSound("bomb.wav");
sp = 0;
while (sp < 3) {
_root.addSpark("spark", _x, _y, dx * (random(50) + 25), dy * (random(50) + 25));
sp++;
}
} else {
droid.gotoAndStop(1);
}
if (_x > (_root.g_width - 50)) {
_x = (_root.g_width - 50);
dx = dx * (-dampen);
}
if (_x < 50) {
_x = 50;
dx = dx * (-dampen);
}
if (_y < 50) {
dy = dy * (-dampen);
_y = 50;
}
if (_y > (_root.g_ground - 50)) {
dy = dy * (-dampen);
_y = (_root.g_ground - 50);
}
if (getTimer() > timeToShoot) {
vel = Math.sqrt((toSaberX * toSaberX) + (toSaberY * toSaberY));
velX = ((-toSaberX) / vel) * laser_speed;
velY = ((-toSaberY) / vel) * laser_speed;
shotCount++;
if (shotCount > 3) {
shotCount = 0;
timeToShoot = getTimer() + 5000;
} else {
timeToShoot = getTimer() + 100;
}
_root.addLaser("laser3", _x, _y, velX, velY, 150);
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
}
}
}
stop();
dx = 0;
dy = 0;
dampen = 0.5;
timeToShoot = (getTimer() + 5000) + random(2000);
timeToHit = getTimer();
hp = 5;
shotCount = 0;
dead = false;
timeBonus = 15000;
laser_speed = 320 + (_root.g_kills * 0.5);
type = "blue";
shield_power = 0;
Symbol 162 MovieClip [drone3] Frame 11
stop();
_root.score = _root.score + (200 + Math.floor(timeBonus / 100));
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
stop();
Symbol 167 MovieClip [drone2] Frame 1
function step() {
if (!dead) {
timeBonus = timeBonus - _root.elapsed;
d = 200;
xPrev = _x;
yPrev = _y;
_x = (_x + ((dx * _root.elapsed) * 50));
_y = (_y + ((dy * _root.elapsed) * 50));
toSaberX = _x - _root.saber._x;
toSaberY = _y - _root.saber._y;
dx = dx - (toSaberX / 20000);
dy = dy - (toSaberY / 20000);
radians = (_root.saber._rotation * Math.PI) / 180;
tanAngle = _root.saber._rotation - (Math.PI/2);
gotHit = false;
dead = hp <= 0;
if ((gotHit = ((timeToHit < getTimer()) && (!_root.holding)) && (_root.testIsHit(this)))) {
timeToHit = getTimer() + _root.g_hitDelayTime;
droid.gotoAndStop(2);
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
if (!_root.holding) {
dx = ((Math.cos(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
dy = ((Math.sin(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
}
sp = 0;
while (sp < 3) {
_root.addSpark("spark", _x, _y, dx * (random(50) + 25), dy * (random(50) + 25));
sp++;
}
_root.playSound("bomb.wav");
} else {
droid.gotoAndStop(1);
}
if (_x > (_root.g_width - 50)) {
_x = (_root.g_width - 50);
dx = dx * (-dampen);
}
if (_x < 50) {
_x = 50;
dx = dx * (-dampen);
}
if (_y < 50) {
dy = dy * (-dampen);
_y = 50;
}
if (_y > (_root.g_ground - 50)) {
dy = dy * (-dampen);
_y = (_root.g_ground - 50);
}
if (getTimer() > timeToShoot) {
vel = Math.sqrt((toSaberX * toSaberX) + (toSaberY * toSaberY));
velX = ((-toSaberX) / vel) * laser_speed;
velY = ((-toSaberY) / vel) * laser_speed;
shotCount++;
if (shotCount > 2) {
shotCount = 0;
timeToShoot = getTimer() + 5000;
} else {
timeToShoot = getTimer() + 250;
}
_root.addLaser("laser2", _x, _y, velX, velY, 100);
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
}
}
}
stop();
dx = 0;
dy = 0;
dampen = 0.5;
timeToShoot = (getTimer() + 5000) + random(2000);
timeToHit = getTimer();
hp = 5;
shotCount = 0;
dead = false;
timeBonus = 15000;
type = "green";
shield_power = 0;
laser_speed = 600 + (_root.g_kills * 0.4);
Symbol 167 MovieClip [drone2] Frame 10
stop();
_root.score = _root.score + (200 + Math.floor(timeBonus / 100));
Symbol 170 MovieClip Frame 1
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 99 MovieClip in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
_y = (_y + _parent._parent._parent.tread_speed);
if (_parent._parent._parent.tread_speed < 0) {
if (_y < -37.7) {
_y = 41.8;
}
} else if (_y > 41.8) {
_y = -37.7;
}
}
Instance of Symbol 171 MovieClip "torso" in Symbol 172 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = _parent._parent.torsoAngle;
}
Symbol 175 MovieClip [drone_gunner] Frame 1
function step() {
if (!dead) {
timeBonus = timeBonus - _root.elapsed;
d = 200;
xPrev = _x;
yPrev = _y;
_x = (_x + (dx * _root.elapsed));
_y = (_y + (dy * _root.elapsed));
toSaberX = _x - _root.saber._x;
toSaberY = _y - _root.saber._y;
torsoRads = Math.atan(toSaberY / toSaberX);
if (toSaberX > 0) {
torsoAngle = ((torsoRads * 180) / Math.PI) + 180;
} else {
torsoAngle = (torsoRads * 180) / Math.PI;
}
radians = (_root.saber._rotation * Math.PI) / 180;
tanAngle = _root.saber._rotation - (Math.PI/2);
gotHit = false;
dead = hp <= 0;
if ((gotHit = ((timeToHit < getTimer()) && (!_root.holding)) && (_root.testIsHit(this)))) {
trace("BLADE SPEED!!!: " + _root.bladeSpeed);
if (_root.bladeSpeed > 10) {
shield_power = shield_power - Math.ceil(_root.bladeSpeed);
}
shield_obj._alpha = shield_power + 20;
timeToHit = getTimer() + _root.g_hitDelayTime;
sp = 0;
while (sp < 3) {
_root.addSpark("spark", _x, _y, random(500) - 250, random(500) - 250);
sp++;
}
if (shield_power < 0) {
_root.addExplosion("droid_gunner_explosion", _x, _y, torsoAngle);
_root.playSound("flak.wav");
_root.killEnemy(this);
} else {
_root.playSound("bomb.wav");
}
}
if (_x > (_root.g_width - 50)) {
_x = (_root.g_width - 50);
dx = dx * (-dampen);
tread_speed = tread_speed * (-dampen);
}
if (_x < 50) {
_x = 50;
dx = dx * (-dampen);
tread_speed = tread_speed * (-dampen);
}
if (_y < 50) {
dy = dy * (-dampen);
_y = 50;
tread_speed = tread_speed * (-dampen);
}
if (_y > (_root.g_ground - 50)) {
dy = dy * (-dampen);
_y = (_root.g_ground - 50);
}
if (getTimer() > timeToShoot) {
rads1 = ((torsoAngle + 90) * Math.PI) / 180;
rads2 = ((torsoAngle - 90) * Math.PI) / 180;
cannon1_x = _x + (25 * Math.cos(rads1));
cannon1_y = _y + (25 * Math.sin(rads1));
cannon3_x = _x + (20 * Math.cos(rads1));
cannon3_y = _y + (20 * Math.sin(rads1));
cannon2_x = _x + (25 * Math.cos(rads2));
cannon2_y = _y + (25 * Math.sin(rads2));
cannon4_x = _x + (20 * Math.cos(rads2));
cannon4_y = _y + (20 * Math.sin(rads2));
trace("Dist: " + Math.sqrt((cannon1_x * cannon1_x) + (cannon1_y * cannon1_y)));
trace("Width: " + _width);
vel = Math.sqrt((toSaberX * toSaberX) + (toSaberY * toSaberY));
velX = ((-toSaberX) / vel) * laser_speed;
velY = ((-toSaberY) / vel) * laser_speed;
timeToShoot = getTimer() + 5000;
_root.addLaser("laser", cannon1_x, cannon1_y, velX, velY, 250);
_root.addLaser("laser", cannon2_x, cannon2_y, velX, velY, 250);
_root.addLaser("laser", cannon3_x, cannon3_y, velX, velY, 250);
_root.addLaser("laser", cannon4_x, cannon4_y, velX, velY, 250);
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
}
}
}
stop();
tread_speed = 0.8;
dx = 20;
dy = 0;
dampen = 1;
timeToShoot = (getTimer() + 5000) + random(2000);
timeToHit = getTimer();
hp = 5;
dead = false;
timeBonus = 15000;
type = "red";
laser_speed = 400 + (_root.g_kills * 0.5);
torsoAngle = 0;
_rotation = -90;
shield_power = 100;
Instance of Symbol 174 MovieClip "shield_obj" in Symbol 175 MovieClip [drone_gunner] Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
}
Symbol 175 MovieClip [drone_gunner] Frame 3
stop();
_root.score = _root.score + (100 + Math.floor(timeBonus / 100));
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
stop();
Symbol 183 MovieClip [drone5] Frame 1
function step() {
if (!dead) {
timeBonus = timeBonus - _root.elapsed;
d = 200;
xPrev = _x;
yPrev = _y;
_x = (_x + ((dx * _root.elapsed) * 50));
_y = (_y + ((dy * _root.elapsed) * 50));
toSaberX = _x - _root.saber._x;
toSaberY = _y - _root.saber._y;
dx = dx - (toSaberX / 20000);
dy = dy - (toSaberY / 20000);
radians = (_root.saber._rotation * Math.PI) / 180;
tanAngle = _root.saber._rotation - (Math.PI/2);
gotHit = false;
dead = hp <= 0;
if ((gotHit = ((timeToHit < getTimer()) && (!_root.holding)) && (_root.testIsHit(this)))) {
timeToHit = getTimer() + _root.g_hitDelayTime;
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
if (!_root.holding) {
dx = ((Math.cos(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
dy = ((Math.sin(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
}
if (Math.sqrt((dx * dx) + (dy * dy)) > break_speed) {
_root.killEnemy(this);
} else {
sp = 0;
while (sp < 3) {
_root.addSpark("spark", _x, _y, dx * (random(50) + 25), dy * (random(50) + 25));
sp++;
}
_root.playSound("bomb.wav");
}
}
if (_x > (_root.g_width - 50)) {
_x = (_root.g_width - 50);
dx = dx * (-dampen);
}
if (_x < 50) {
_x = 50;
dx = dx * (-dampen);
}
if (_y < 50) {
dy = dy * (-dampen);
_y = 50;
}
if (_y > (_root.g_ground - 50)) {
dy = dy * (-dampen);
_y = (_root.g_ground - 50);
}
if (getTimer() > timeToShoot) {
vel = Math.sqrt((toSaberX * toSaberX) + (toSaberY * toSaberY));
velX = ((-toSaberX) / vel) * laser_speed;
velY = ((-toSaberY) / vel) * laser_speed;
timeToShoot = getTimer() + 5000;
_root.addLaser("laser", _x, _y, velX, velY, 100);
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
}
}
}
stop();
dx = 0;
dy = 0;
dampen = 0.5;
timeToShoot = (getTimer() + 5000) + random(2000);
timeToHit = getTimer();
hp = 5;
dead = false;
timeBonus = 15000;
type = "red";
laser_speed = 800 + (_root.g_kills * 0.8);
shield_power = 0;
break_speed = 10 + (_root.g_kills * 0.1);
Symbol 183 MovieClip [drone5] Frame 30
stop();
_root.score = _root.score + (100 + Math.floor(timeBonus / 100));
Instance of Symbol 88 MovieClip "glow" in Symbol 186 MovieClip [light_saber2] Frame 1
onClipEvent (load) {
_color = _root.swordColor;
}
Symbol 187 MovieClip [drone] Frame 1
function step() {
if (!dead) {
timeBonus = timeBonus - _root.elapsed;
d = 200;
xPrev = _x;
yPrev = _y;
_x = (_x + ((dx * _root.elapsed) * 50));
_y = (_y + ((dy * _root.elapsed) * 50));
toSaberX = _x - _root.saber._x;
toSaberY = _y - _root.saber._y;
dx = dx - (toSaberX / 20000);
dy = dy - (toSaberY / 20000);
radians = (_root.saber._rotation * Math.PI) / 180;
tanAngle = _root.saber._rotation - (Math.PI/2);
gotHit = false;
dead = hp <= 0;
if ((gotHit = ((timeToHit < getTimer()) && (!_root.holding)) && (_root.testIsHit(this)))) {
timeToHit = getTimer() + _root.g_hitDelayTime;
droid.gotoAndStop(2);
_root.vector._rotation = _root.saber._rotation - 90;
tanRadians = (_root.vector._rotation * Math.PI) / 180;
if (!_root.holding) {
dx = ((Math.cos(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
dy = ((Math.sin(tanRadians) * (-_root.g_direction)) * _root.bladeSpeed) * 0.8;
}
sp = 0;
while (sp < 3) {
_root.addSpark("spark", _x, _y, dx * (random(50) + 25), dy * (random(50) + 25));
sp++;
}
_root.playSound("bomb.wav");
} else {
droid.gotoAndStop(1);
}
if (_x > (_root.g_width - 50)) {
if (Math.sqrt((dx * dx) + (dy * dy)) > break_speed) {
_root.killEnemy(this);
}
_x = (_root.g_width - 50);
dx = dx * (-dampen);
}
if (_x < 50) {
if (Math.sqrt((dx * dx) + (dy * dy)) > break_speed) {
_root.killEnemy(this);
}
_x = 50;
dx = dx * (-dampen);
}
if (_y < 50) {
if (Math.sqrt((dx * dx) + (dy * dy)) > break_speed) {
_root.killEnemy(this);
}
dy = dy * (-dampen);
_y = 50;
}
if (_y > (_root.g_ground - 50)) {
if (Math.sqrt((dx * dx) + (dy * dy)) > break_speed) {
_root.killEnemy(this);
}
dy = dy * (-dampen);
_y = (_root.g_ground - 50);
}
if (getTimer() > timeToShoot) {
vel = Math.sqrt((toSaberX * toSaberX) + (toSaberY * toSaberY));
velX = ((-toSaberX) / vel) * laser_speed;
velY = ((-toSaberY) / vel) * laser_speed;
timeToShoot = getTimer() + 5000;
_root.addLaser("laser", _x, _y, velX, velY, 300);
_root.playSound(_root.laserSounds[random(_root.laserSounds.length)]);
}
}
}
stop();
dx = 0;
dy = 0;
dampen = 0.5;
break_speed = 15;
timeToShoot = (getTimer() + 5000) + random(2000);
timeToHit = getTimer();
hp = 5;
dead = false;
timeBonus = 15000;
type = "red";
laser_speed = 230 + (_root.g_kills * 0.35);
shield_power = 0;
Symbol 187 MovieClip [drone] Frame 30
stop();
_root.score = _root.score + (100 + Math.floor(timeBonus / 100));
Instance of Symbol 190 MovieClip in Symbol 191 MovieClip Frame 1
onClipEvent (load) {
delay = 2000;
}
onClipEvent (enterFrame) {
delay = delay - 10;
if (delay < 0) {
_x = (_x + ((-_x) * 0.1));
_y = (_y + ((-_y) * 0.1));
}
}
Symbol 207 MovieClip Frame 1
stop();
Instance of Symbol 202 MovieClip in Symbol 207 MovieClip Frame 1
onClipEvent (load) {
vx = 0;
gx = 0.2;
bounces = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (bounces < 5) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_x > 130) {
_x = 130;
bounces++;
vx = vx * -0.5;
}
vx = vx + gx;
_x = (_x + vx);
}
}
Instance of Symbol 204 MovieClip in Symbol 207 MovieClip Frame 1
onClipEvent (load) {
vx = 0;
gx = -0.2;
bounces = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (bounces < 5) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
}
if (_x < 162) {
_x = 162;
bounces++;
vx = vx * -0.5;
}
vx = vx + gx;
_x = (_x + vx);
}
}
Symbol 215 Button
on (press) {
_parent.holding_slider = true;
}
on (release) {
_parent.holding_slider = false;
}
on (releaseOutside) {
_parent.holding_slider = false;
}
Instance of Symbol 216 MovieClip "ball" in Symbol 218 MovieClip Frame 1
onClipEvent (load) {
if (_parent.outof <= 0) {
_parent.outof = 100;
}
}
onClipEvent (enterFrame) {
if (_parent.holding_slider) {
_x = _parent._xmouse;
if (_x > 210) {
_x = 210;
}
if (_x < 0) {
_x = 0;
}
}
_parent.value = Math.floor((_x / 210) * _parent.outof);
}
Symbol 221 Button
on (release) {
_root.resetOptions();
_root.scoring = true;
_root.scoring_text = "scoring on";
_root.setEnemyList();
_root.resetGame();
_root.resetDroneLists();
}
Symbol 225 Button
on (release) {
_y = -500;
_root.paused = false;
_root.unPause();
if (applied) {
trace("Applied, saving previous");
applied = false;
setPrev();
} else {
trace("Not applied, reseting to previous");
resetToPrev();
}
}
Symbol 229 Button
on (release) {
applied = true;
_root.scoring = false;
_root.scoring_text = "scoring off";
_root.setEnemyList();
_root.resetGame();
_root.resetDroneLists();
}
Symbol 234 MovieClip Frame 1
function resetToPrev() {
trace("Reseting to previous options");
enemy1_amt.setVal(prev_drone1);
enemy2_amt.setVal(prev_drone2);
enemy3_amt.setVal(prev_drone3);
enemy4_amt.setVal(prev_drone4);
enemy5_amt.setVal(prev_drone5);
enemy6_amt.setVal(prev_drone6);
drone_max.setVal(prev_droneMax);
delay_time.setVal(prev_delayTime);
laser_speed_mult.setVal(prev_laser_speed_mult);
}
function setPrev() {
trace("Saving previous options");
prev_drone1 = enemy1_amt.value;
prev_drone2 = enemy2_amt.value;
prev_drone3 = enemy3_amt.value;
prev_drone4 = enemy4_amt.value;
prev_drone5 = enemy5_amt.value;
prev_drone6 = enemy6_amt.value;
trace("before set: " + prev_droneMax);
prev_droneMax = drone_max.value;
trace("after set: " + prev_droneMax);
prev_delayTime = delay_time.value;
prev_laser_speed_mult = laser_speed_mult.value;
}
applied = false;
prev_drone1 = 0;
prev_drone2 = 0;
prev_drone3 = 0;
prev_drone4 = 0;
prev_drone5 = 0;
prev_drone6 = 0;
prev_droneMax = 0;
prev_delayTime = 0;
prev_laser_speed_mult = 0;
Instance of Symbol 218 MovieClip "enemy1_amt" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
}
outof = 100;
}
Instance of Symbol 218 MovieClip "enemy5_amt" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
}
outof = 100;
}
Instance of Symbol 218 MovieClip "enemy2_amt" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
}
outof = 100;
}
Instance of Symbol 218 MovieClip "enemy4_amt" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
}
outof = 100;
}
Instance of Symbol 218 MovieClip "enemy3_amt" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
}
outof = 100;
}
Instance of Symbol 218 MovieClip "enemy6_amt" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
}
outof = 100;
}
Instance of Symbol 218 MovieClip "delay_time" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
_root.baseWaitTime = value;
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
_root.baseWaitTime = value;
}
outof = 10000;
}
onClipEvent (enterFrame) {
_root.baseWaitTime = value;
}
Instance of Symbol 218 MovieClip "drone_max" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
trace("Entering setPercent: " + per);
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
trace("value afterward: " + value);
_root.maxDronesOnScreen = value;
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
_root.maxDronesOnScreen = value;
}
outof = 8;
}
onClipEvent (enterFrame) {
_root.maxDronesOnScreen = value;
}
Instance of Symbol 218 MovieClip "laser_speed_mult" in Symbol 234 MovieClip Frame 1
onClipEvent (load) {
function setPercent(per) {
ball._x = per * 2.1;
value = Math.floor((ball._x / 210) * outof);
_root.laserSpeedMult = value;
}
function setVal(val) {
ball._x = (val / outof) * 210;
value = val;
_root.laserSpeedMult = value;
}
outof = 100;
}
onClipEvent (enterFrame) {
_root.laserSpeedMult = value;
}
Instance of Symbol 236 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
Instance of Symbol 245 MovieClip in Symbol 248 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = _root.swordColor;
}
Instance of Symbol 249 MovieClip "left" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (!_root.holding) {
_alpha = (_root.bladeSpeed * 2);
_rotation = ((_root.bladeSpeed * (-_root.g_direction)) * 2.5);
if (_rotation > 70) {
_rotation = 70;
}
} else {
_alpha = 0;
}
}
Instance of Symbol 250 MovieClip "right" in Symbol 251 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (!_root.holding) {
_alpha = (_root.bladeSpeed * 2);
_rotation = ((_root.bladeSpeed * (-_root.g_direction)) * 2.5);
if (_rotation < -70) {
_rotation = -70;
}
} else {
_alpha = 0;
}
}
Symbol 255 Button
on (press) {
_root.holding = true;
}
on (release) {
_root.holding = false;
}
on (releaseOutside) {
_root.holding = false;
}
Instance of Symbol 257 MovieClip in Symbol 258 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.holding) {
_height = 30;
_width = 181.6;
} else {
amt = _root.bladeSpeed * 5;
if (amt > 200) {
amt = 200;
}
_height = (10 + amt);
_width = 181.6;
}
}
Instance of Symbol 258 MovieClip "follower" in Symbol 261 MovieClip Frame 1
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (!_root.holding) {
_rotation = ((-_root.midRotation) + _parent._rotation);
} else {
_rotation = 0;
}
}
Symbol 282 Button
on (release) {
_root.end_game._y = -500;
_root.paused = false;
_root.unPause();
_root.resetGame();
}
on (keyPress "p") {
trace(_root.pause);
_root.paused = !_root.paused;
_root.unPause();
}
Symbol 292 Button
on (release) {
_root.swordColor = setColor;
_root.saber.sword.glow._color = _root.swordColor;
}
Instance of Symbol 293 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (load) {
setColor = "red";
_color = "red";
}
Instance of Symbol 295 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = "white";
}
Instance of Symbol 293 MovieClip in Symbol 297 MovieClip Frame 1
onClipEvent (load) {
setColor = "green";
_color = "green";
}
Instance of Symbol 295 MovieClip in Symbol 297 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = "white";
}
Instance of Symbol 293 MovieClip in Symbol 298 MovieClip Frame 1
onClipEvent (load) {
setColor = "blue";
_color = "blue";
}
Instance of Symbol 295 MovieClip in Symbol 298 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = "white";
}
Instance of Symbol 293 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (load) {
setColor = "cyan";
_color = "cyan";
}
Instance of Symbol 295 MovieClip in Symbol 299 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = "white";
}
Instance of Symbol 293 MovieClip in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
setColor = "magenta";
_color = "magenta";
}
Instance of Symbol 295 MovieClip in Symbol 300 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = "white";
}
Instance of Symbol 293 MovieClip in Symbol 301 MovieClip Frame 1
onClipEvent (load) {
setColor = "yellow";
_color = "yellow";
}
Instance of Symbol 295 MovieClip in Symbol 301 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = "white";
}
Instance of Symbol 302 MovieClip in Symbol 303 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = _root.highScoreColor;
}
Instance of Symbol 295 MovieClip in Symbol 303 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = "white";
}
Symbol 305 Button
on (release) {
getURL ("http://www.lostvectors.com", "_blank");
}
Instance of Symbol 309 MovieClip in Symbol 310 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = _root.swordColor;
}
Symbol 315 Button
on (release) {
_y = -500;
_root.paused = false;
_root.unPause();
}
Instance of Symbol 293 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
setColor = "orangered";
_color = "orangered";
}
Instance of Symbol 295 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (enterFrame) {
_color = "white";
}
Symbol 326 Button
on (release) {
_root.credits._x = _root.g_width / 2;
_root.credits._y = _root.g_ground / 2;
}
Symbol 329 Button
on (release) {
_y = -500;
}
Symbol 331 Button
on (release) {
getURL ("http://www.angelfire.com/anime6/kurzaq/");
}