Frame 82
Set("fontfx/:animate_text_clipname", "computerfx");
Set("fontfx/:animate_text_string", "SECURE TRANSMISSION FOLLOWS|FROM NORAD Command Center|TO Laser Defense Commander|SUBJECT Level 0 Threat!|Commander, this is not a drill. We have detected multiple warheads heading your way. Our intel was caught offguard and many of our communication|arrays are being jammed.|We are unable at this time to determine who is targetting us, and we have|no idea of the full extent of this attack.|Commander, we need to take control over the situation and prepare|the retaliatory actions. In the meantime, you are ordered to defend the city nearby your location. Repeat, defend the city at all costs! It will not sustain|more than 5 hits.|You will use the AATD Laser to destroy the enemy missiles while they are inflight. The laser ITTS, Instrument Target Tracking System is not functional, soyou will have to target the laser by hand. Also, please note that the laser|recharge time is 3 seconds. If you fire the laser before it is fully charged, it will not be able to destroy the warhead.|END OF TRANSMISSION");
Set("fontfx/:animate_text_x", "50");
Set("fontfx/:animate_text_wrapat", "600");
Set("fontfx/:animate_text_y", "50");
Set("fontfx/:animate_text_tracking", -"7");
Set("fontfx/:animate_text_leading", "20");
tellTarget ("/fontfx") {
gotoAndPlay (2);
}
Frame 84
if ("0" < /fontfx:count) {
gotoAndPlay(_currentframe - "1");
}
Frame 85
stop();
Frame 86
tellTarget ("/fontfx") {
stop();
};
i = "1";
while ("1005" >= i) {
removeMovieClip("computerfx" add i);
i = i + "1";
}
Frame 102
FrameLoad = int(("100" / (_totalframes - "100")) * (_framesloaded - "100"));
tellTarget ("/loader") {
gotoAndStop(/:FrameLoad);
}
ifFrameLoaded (264) {
gotoAndPlay (257);
}
Frame 103
gotoAndPlay (102);
Frame 157
stop();
Frame 257
colision = "1";
k = "1";
while ("3" >= k) {
duplicateMovieClip ("/big_interface" add k, ("big_interface" add k) add k, "100" + k);
setProperty(("/big_interface" add k) add k, _x , "1000");
setProperty(("/big_interface" add k) add k, _y , "1000");
k = k + "1";
}
setProperty("/big_interface11", _x , "320");
setProperty("/big_interface11", _y , "200");
test = "0";
no_test = "0";
delay = "1";
recharge = "1";
number = int((delay / recharge) * "100");
tellTarget ("/small_interface/recharge") {
gotoAndStop(/:number);
};
start = "0";
fire1 = "0";
score = "0";
Set("/small_interface:score", score);
life = "7";
no_rocket = "0";
no_level = "1";
ultimate_level = "2";
no_miss_city = "0";
no_hit_rocket = "0";
sin0 = "0";
cos0 = "1";
sin1 = "0.0174524064372835";
cos1 = "0.999847695156391";
sin2 = "0.034899496702501";
cos2 = "0.999390827019096";
sin3 = "0.0523359562429438";
cos3 = "0.998629534754574";
sin4 = "0.0697564737441253";
cos4 = "0.997564050259824";
sin5 = "0.0871557427476582";
cos5 = "0.996194698091746";
sin6 = "0.104528463267653";
cos6 = "0.994521895368273";
sin7 = "0.121869343405147";
cos7 = "0.992546151641322";
sin8 = "0.139173100960065";
cos8 = "0.99026806874157";
sin9 = "0.156434465040231";
cos9 = "0.987688340595138";
sin10 = "0.17364817766693";
cos10 = "0.984807753012208";
sin11 = "0.190808995376545";
cos11 = "0.981627183447664";
sin12 = "0.207911690817759";
cos12 = "0.978147600733806";
sin13 = "0.224951054343865";
cos13 = "0.974370064785235";
sin14 = "0.241921895599668";
cos14 = "0.970295726275996";
sin15 = "0.258819045102521";
cos15 = "0.965925826289068";
sin16 = "0.275637355816999";
cos16 = "0.961261695938319";
sin17 = "0.292371704722737";
cos17 = "0.956304755963035";
sin18 = "0.309016994374947";
cos18 = "0.951056516295153";
sin19 = "0.325568154457157";
cos19 = "0.945518575599317";
sin20 = "0.342020143325669";
cos20 = "0.939692620785908";
sin21 = "0.3583679495453";
cos21 = "0.933580426497202";
sin22 = "0.374606593415912";
cos22 = "0.927183854566787";
sin23 = "0.390731128489274";
cos23 = "0.92050485345244";
sin24 = "0.4067366430758";
cos24 = "0.913545457642601";
sin25 = "0.422618261740699";
cos25 = "0.90630778703665";
sin26 = "0.438371146789077";
cos26 = "0.898794046299167";
sin27 = "0.453990499739547";
cos27 = "0.891006524188368";
sin28 = "0.469471562785891";
cos28 = "0.882947592858927";
sin29 = "0.484809620246337";
cos29 = "0.874619707139396";
sin30 = "0.5";
cos30 = "0.866025403784439";
sin31 = "0.515038074910054";
cos31 = "0.857167300702112";
sin32 = "0.529919264233205";
cos32 = "0.848048096156426";
sin33 = "0.544639035015027";
cos33 = "0.838670567945424";
sin34 = "0.559192903470747";
cos34 = "0.829037572555042";
sin35 = "0.573576436351046";
cos35 = "0.819152044288992";
sin36 = "0.587785252292473";
cos36 = "0.809016994374947";
sin37 = "0.601815023152048";
cos37 = "0.798635510047293";
sin38 = "0.615661475325658";
cos38 = "0.788010753606722";
sin39 = "0.629320391049837";
cos39 = "0.777145961456971";
sin40 = "0.642787609686539";
cos40 = "0.766044443118978";
sin41 = "0.656059028990507";
cos41 = "0.754709580222772";
sin42 = "0.669130606358858";
cos42 = "0.743144825477394";
sin43 = "0.681998360062498";
cos43 = "0.73135370161917";
sin44 = "0.694658370458997";
cos44 = "0.719339800338651";
sin45 = "0.707106781186547";
cos45 = "0.707106781186548";
sin46 = "0.719339800338651";
cos46 = "0.694658370458997";
sin47 = "0.73135370161917";
cos47 = "0.681998360062498";
sin48 = "0.743144825477394";
cos48 = "0.669130606358858";
sin49 = "0.754709580222772";
cos49 = "0.656059028990507";
sin50 = "0.766044443118978";
cos50 = "0.642787609686539";
sin51 = "0.777145961456971";
cos51 = "0.629320391049837";
sin52 = "0.788010753606722";
cos52 = "0.615661475325658";
sin53 = "0.798635510047293";
cos53 = "0.601815023152048";
sin54 = "0.809016994374947";
cos54 = "0.587785252292473";
sin55 = "0.819152044288992";
cos55 = "0.573576436351046";
sin56 = "0.829037572555042";
cos56 = "0.559192903470747";
sin57 = "0.838670567945424";
cos57 = "0.544639035015027";
sin58 = "0.848048096156426";
cos58 = "0.529919264233205";
sin59 = "0.857167300702112";
cos59 = "0.515038074910054";
sin60 = "0.866025403784439";
cos60 = "0.5";
sin61 = "0.874619707139396";
cos61 = "0.484809620246337";
sin62 = "0.882947592858927";
cos62 = "0.469471562785891";
sin63 = "0.891006524188368";
cos63 = "0.453990499739547";
sin64 = "0.898794046299167";
cos64 = "0.438371146789077";
sin65 = "0.90630778703665";
cos65 = "0.422618261740699";
sin66 = "0.913545457642601";
cos66 = "0.4067366430758";
sin67 = "0.92050485345244";
cos67 = "0.390731128489274";
sin68 = "0.927183854566787";
cos68 = "0.374606593415912";
sin69 = "0.933580426497202";
cos69 = "0.3583679495453";
sin70 = "0.939692620785908";
cos70 = "0.342020143325669";
sin71 = "0.945518575599317";
cos71 = "0.325568154457157";
sin72 = "0.951056516295153";
cos72 = "0.309016994374947";
sin73 = "0.956304755963035";
cos73 = "0.292371704722737";
sin74 = "0.961261695938319";
cos74 = "0.275637355816999";
sin75 = "0.965925826289068";
cos75 = "0.258819045102521";
sin76 = "0.970295726275996";
cos76 = "0.241921895599668";
sin77 = "0.974370064785235";
cos77 = "0.224951054343865";
sin78 = "0.978147600733806";
cos78 = "0.207911690817759";
sin79 = "0.981627183447664";
cos79 = "0.190808995376545";
sin80 = "0.984807753012208";
cos80 = "0.17364817766693";
sin81 = "0.987688340595138";
cos81 = "0.156434465040231";
sin82 = "0.99026806874157";
cos82 = "0.139173100960065";
sin83 = "0.992546151641322";
cos83 = "0.121869343405147";
sin84 = "0.994521895368273";
cos84 = "0.104528463267653";
sin85 = "0.996194698091746";
cos85 = "0.0871557427476581";
sin86 = "0.997564050259824";
cos86 = "0.0697564737441252";
sin87 = "0.998629534754574";
cos87 = "0.052335956242944";
sin88 = "0.999390827019096";
cos88 = "0.0348994967025011";
sin89 = "0.999847695156391";
cos89 = "0.0174524064372836";
sin90 = "1";
cos90 = "0";
Frame 258
hit_message1 = "Our fate is in your hands, commander";
hit_message2 = "Don't let any more missiles slip away!";
hit_message3 = "Be more careful, people are dying here!";
hit_message4 = "There are high casualties, protect us!";
hit_message5 = "Don't you know how to aim?";
hit_message6 = "The city is almost destroyed !";
hit_message7 = "All that's left is a mass grave. Shame on you.";
miss_message1 = "Whew, that was a close one.";
miss_message2 = "We were lucky this time.";
hit_rocket_message1 = "Yeah, yeah, great work!";
hit_rocket_message2 = "Burn baby burn!";
hit_rocket_message3 = "Thank you, great job!";
hit_rocket_message4 = "There goes another one!";
hit_rocket_message5 = "Who started the fireworks?!";
hit_rocket_message6 = "You did it again!";
Frame 259
if (start == "1") {
i = "1";
if (colision == "1") {
duplicateMovieClip ("/laser", "laser1", "100");
setProperty("/laser1", _x , "0");
setProperty("/laser1", _y , -"100");
}
k = "0";
no_test = "0";
Set("/small_interface:city", int((life / "7") * "100") add "%");
rase = random("200") + "300";
x0_r1 = "320" + random("400");
y0_r1 = "2" - random("30");
x0_r2 = "320" + random("400");
y0_r2 = "2" - random("30");
angle_step = "2";
fire = "0";
first_step = "0";
if (no_rocket == "15") {
no_level = no_level + "1";
if (ultimate_level < no_level) {
no_level = "1";
Set("/big_interface33:interface_message", " You win !");
setProperty("/big_interface33", _x , "320");
setProperty("/big_interface33", _y , "200");
} else {
Set("/big_interface22:interface_message", ("Level" add " ") add no_level);
setProperty("/big_interface22", _x , "320");
setProperty("/big_interface22", _y , "200");
no_test = "0";
}
no_rocket = "0";
gotoAndPlay (264);
}
no_rocket = no_rocket + "1";
if (life == "0") {
setProperty("/big_interface33", _x , "320");
setProperty("/big_interface33", _y , "240");
Set("/big_interface33:interface_message", "Game over");
no_rocket = "0";
gotoAndPlay (264);
}
} else if (start == "0") {
delay = getTimer();
number = int("100" - ((recharge - delay) / "20"));
if (("30" < number) and (number < "60")) {
tellTarget ("/sounds") {
gotoAndPlay("Recharge_sound");
};
}
tellTarget ("/small_interface/recharge") {
gotoAndStop(/:number);
};
gotoAndPlay(_currentframe - "1");
}
setProperty("/rocket1", _x , x0_r1 + "1000");
setProperty("/rocket1", _y , y0_r1);
setProperty("/rocket1", _rotation , -"90");
setProperty("/rocket1", _yscale , "33");
setProperty("/rocket2", _x , x0_r2 + "1000");
setProperty("/rocket2", _y , y0_r2);
setProperty("/rocket2", _rotation , -"90");
setProperty("/rocket2", _yscale , "33");
Frame 261
if (colision == "1") {
duplicateMovieClip ("/laser", "laser1", "100");
setProperty("/laser1", _x , "0");
setProperty("/laser1", _y , -"100");
}
if (no_level == "1") {
no_test = "2";
}
Frame 262
delay = getTimer();
number = int("100" - ((recharge - delay) / "20"));
if (("30" < number) and (number < "60")) {
tellTarget ("/sounds") {
gotoAndPlay("Recharge_sound");
};
}
tellTarget ("/small_interface/recharge") {
gotoAndStop(/:number);
};
if ((fire == "1") or (fire1 == "1")) {
if (first_step == "1") {
alpha = /dialctrl:alpha;
}
if ("90" < alpha) {
sign = -"1";
angle_l = "180" - alpha;
} else if ("90" >= alfa) {
sign = "1";
angle_l = alpha;
}
x0_l = getProperty("/dialctrl", _x) + ((sign * "43.6") * eval ("cos" add angle_l));
y0_l = getProperty("/dialctrl", _y) - ("43.6" * eval ("sin" add angle_l));
if (first_step == "1") {
setProperty("/laser1", _rotation , "180" - alpha);
x_l = x0_l + (sign * getProperty("/laser1", _width));
y_l = y0_l - getProperty("/laser1", _height);
x_l1 = x0_l + ((sign * getProperty("/laser1", _width)) / "2");
y_l1 = y0_l - (getProperty("/laser1", _height) / "2");
x_l2 = x0_l;
y_l2 = y0_l;
first_step = "0";
tellTarget ("/sounds") {
gotoAndPlay("Laser_sound");
};
}
k = "0";
while ("15" >= k) {
k = k + "1";
rocket_width = getProperty("/rocket1", _width);
rocket_height = getProperty("/rocket1", _height);
x_l = x_l + ((sign * getProperty("/laser1", _width)) / rocket_width);
y_l = y_l - (getProperty("/laser1", _height) / rocket_width);
x_l1 = x_l1 + ((sign * getProperty("/laser1", _width)) / rocket_width);
y_l1 = y_l1 - (getProperty("/laser1", _height) / rocket_width);
x_l2 = x_l2 + ((sign * getProperty("/laser1", _width)) / rocket_width);
y_l2 = y_l2 - (getProperty("/laser1", _height) / rocket_width);
test1 = x_r1 - x_l;
test2 = (x_l - x_r1) + rocket_width;
test3 = y_l - y_r1;
test4 = (y_r1 + rocket_height) - y_l;
if ((((test1 >= "0") and (test2 >= "0")) and (test3 >= "0")) and (test4 >= "0")) {
test = "1";
}
test1 = x_r1 - x_l1;
test2 = (x_l1 - x_r1) + rocket_width;
test3 = y_l1 - y_r1;
test4 = (y_r1 + rocket_height) - y_l1;
if ((((test1 >= "0") and (test2 >= "0")) and (test3 >= "0")) and (test4 >= "0")) {
test = "1";
}
test1 = x_r1 - x_l2;
test2 = (x_l2 - x_r1) + rocket_width;
test3 = y_l2 - y_r1;
test4 = (y_r1 + rocket_height) - y_l2;
if ((((test1 >= "0") and (test2 >= "0")) and (test3 >= "0")) and (test4 >= "0")) {
test = "1";
}
test1 = x_r2 - x_l;
test2 = (x_l - x_r2) + rocket_width;
test3 = y_l - y_r2;
test4 = (y_r2 + rocket_height) - y_l;
if ((((test1 >= "0") and (test2 >= "0")) and (test3 >= "0")) and (test4 >= "0")) {
test = "2";
}
test1 = x_r2 - x_l1;
test2 = (x_l1 - x_r2) + rocket_width;
test3 = y_l1 - y_r2;
test4 = (y_r2 + rocket_height) - y_l1;
if ((((test1 >= "0") and (test2 >= "0")) and (test3 >= "0")) and (test4 >= "0")) {
test = "2";
}
test1 = x_r2 - x_l2;
test2 = (x_l2 - x_r2) + rocket_width;
test3 = y_l2 - y_r2;
test4 = (y_r2 + rocket_height) - y_l2;
if ((((test1 >= "0") and (test2 >= "0")) and (test3 >= "0")) and (test4 >= "0")) {
test = "2";
}
if ((test == "1") or (test == "2")) {
no_test = no_test + test;
fire = "0";
colision = "1";
fire1 = "0";
k = "20";
x_l = "1000";
y_l = "0";
score = score + ("100" - beta);
Set("/small_interface:score", score);
no_hit_rocket = (no_hit_rocket - (int(no_hit_rocket / "6") * "6")) + "1";
Set("/small_interface:message", eval ("hit_rocket_message" add no_hit_rocket));
if (test == "1") {
setProperty("/explosion_air", _x , x_r1 - (getProperty("/rocket1", _width) / "2"));
setProperty("/explosion_air", _y , y_r1 + (getProperty("/rocket1", _height) / "2"));
x_r1 = x0_r1 - "100";
y_r1 = y0_r1 - "100";
setProperty("/rocket1", _x , x_r1);
setProperty("/rocket1", _y , y_r1);
} else if (test == "2") {
setProperty("/explosion_air", _x , x_r2 - (getProperty("/rocket2", _width) / "2"));
setProperty("/explosion_air", _y , y_r2 + (getProperty("/rocket2", _height) / "2"));
x_r2 = x0_r2 - "100";
y_r2 = y0_r2 - "100";
setProperty("/rocket2", _x , x_r2);
setProperty("/rocket2", _y , y_r2);
}
tellTarget ("/explosion_air") {
gotoAndPlay (2);
};
if (no_test >= "3") {
gotoAndPlay (259);
} else if (no_test < "3") {
if (no_test == "1") {
x_r1 = x0_r1 - "100";
y_r1 = y0_r1 - "100";
setProperty("/rocket1", _x , x_r1);
setProperty("/rocket1", _y , y_r1);
} else if (no_test == "2") {
x_r2 = x0_r2 - "100";
y_r2 = y0_r2 - "100";
setProperty("/rocket2", _x , x_r2);
setProperty("/rocket2", _y , y_r2);
}
gotoAndPlay (261);
}
}
test = "0";
}
setProperty("/laser1", _x , x_l);
setProperty("/laser1", _y , y_l);
colision = "0";
test = "0";
fire1 = "1";
}
beta = i * angle_step;
if (beta >= "89") {
if ((no_test == "2") or (no_test == "0")) {
y_r1 = y_r1 + (rase * eval ("sin" add angle_step));
}
if (((no_test == "1") or (no_test == "0")) and (no_level == "2")) {
y_r2 = y_r2 + (rase * eval ("sin" add angle_step));
}
angle_r = "180";
} else if (beta < "89") {
if ((no_test == "2") or (no_test == "0")) {
x_r1 = x0_r1 - (rase * (eval ("sin" add beta) - eval ("sin" add "10")));
y_r1 = (y0_r1 + rase) - (rase * eval ("cos" add beta));
}
if (((no_test == "1") or (no_test == "0")) and (no_level == "2")) {
x_r2 = x0_r2 - (rase * (eval ("sin" add beta) - eval ("sin" add "10")));
y_r2 = (y0_r2 + rase) - (rase * eval ("cos" add beta));
}
angle_r = "270" - beta;
}
if ((no_test == "2") or (no_test == "0")) {
setProperty("/rocket1", _x , x_r1);
setProperty("/rocket1", _y , y_r1);
setProperty("/rocket1", _rotation , angle_r);
}
if (((no_test == "1") or (no_test == "0")) and (no_level == "2")) {
setProperty("/rocket2", _x , x_r2);
setProperty("/rocket2", _y , y_r2);
setProperty("/rocket2", _rotation , angle_r);
}
i = i + "1";
if ("380" < y_r1) {
if ((x_r1 < "350") and (x_r1 >= "0")) {
no_test = no_test + "1";
no_hit_rocket = "0";
life = life - "1";
score = score - "50";
if (score < "0") {
score = "0";
}
Set("/small_interface:score", score);
setProperty("/explosion_city1", _x , x_r1 + "28");
setProperty("/explosion_city1", _y , y_r1);
tellTarget ("/explosion_city1") {
gotoAndPlay (2);
};
tellTarget ("/city") {
nextFrame();
};
fire1 = "1";
x_r1 = x0_r1 - "100";
y_r1 = y0_r1 - "100";
if (no_test >= "3") {
gotoAndPlay (259);
}
} else if ((x_r1 >= "350") and ("640" >= x_r1)) {
no_test = no_test + "1";
score = score - "20";
if (score < "0") {
score = "0";
}
Set("/small_interface:score", score);
no_miss_city = (no_miss_city - (int(no_miss_city / "2") * "2")) + "1";
Set("/small_interface:message", eval ("miss_message" add no_miss_city));
setProperty("/explosion_ground", _x , x_r1);
setProperty("/explosion_ground", _y , y_r1);
tellTarget ("/explosion_ground") {
gotoAndPlay (2);
};
fire1 = "1";
x_r1 = x0_r1 - "100";
y_r1 = y0_r1 - "100";
if (no_test >= "3") {
gotoAndPlay (259);
}
} else if ((x_r1 < "0") or ("640" < x_r1)) {
x_r1 = x0_r1 - "100";
y_r1 = y0_r1 - "100";
setProperty("/rocket1", _x , x_r1);
setProperty("/rocket1", _y , y_r1);
no_test = no_test + "1";
no_miss_city = (no_miss_city - (int(no_miss_city / "2") * "2")) + "1";
Set("/small_interface:message", eval ("miss_message" add no_miss_city));
if (no_test >= "3") {
gotoAndPlay (259);
}
}
}
if ("380" < y_r2) {
if ((x_r2 < "350") and (x_r2 >= "0")) {
no_test = no_test + "2";
no_hit_rocket = "0";
life = life - "1";
score = score - "50";
if (score < "0") {
score = "0";
}
Set("/small_interface:score", score);
setProperty("/explosion_city2", _x , x_r2 + "15");
setProperty("/explosion_city2", _y , y_r2);
tellTarget ("/explosion_city2") {
gotoAndPlay (2);
};
tellTarget ("/city") {
nextFrame();
};
fire1 = "1";
x_r2 = x0_r2 - "100";
y_r2 = y0_r2 - "100";
if (no_test >= "3") {
gotoAndPlay (259);
} else if (no_test < "3") {
gotoAndPlay (261);
}
} else if ((x_r2 >= "350") and ("640" >= x_r2)) {
no_test = no_test + "2";
score = score - "20";
if (score < "0") {
score = "0";
}
Set("/small_interface:score", score);
no_miss_city = (no_miss_city - (int(no_miss_city / "2") * "2")) + "1";
Set("/small_interface:message", eval ("miss_message" add no_miss_city));
setProperty("/explosion_ground", _x , x_r2);
setProperty("/explosion_ground", _y , y_r2);
tellTarget ("/explosion_ground") {
gotoAndPlay (2);
};
fire1 = "1";
x_r2 = x0_r2 - "100";
y_r2 = y0_r2 - "100";
if (no_test >= "3") {
gotoAndPlay (259);
} else if (no_test < "3") {
gotoAndPlay (261);
}
} else if ((x_r2 < "0") or ("640" < x_r2)) {
x_r2 = x0_r2 - "100";
y_r2 = y0_r2 - "100";
setProperty("/rocket2", _x , x_r2);
setProperty("/rocket2", _y , y_r2);
no_test = no_test + "2";
no_miss_city = (no_miss_city - (int(no_miss_city / "2") * "2")) + "1";
Set("/small_interface:message", eval ("miss_message" add no_miss_city));
if (no_test >= "3") {
gotoAndPlay (259);
} else if (no_test < "3") {
gotoAndPlay (261);
}
}
} else {
gotoAndPlay (261);
}
Frame 264
start = "0";
setProperty("/rocket1", _x , x0_r1);
setProperty("/rocket1", _y , y0_r1);
setProperty("/rocket2", _x , x0_r2);
setProperty("/rocket2", _y , y0_r2);
gotoAndPlay (259);
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 2
animate_text_length = length(animate_text_string);
clipname = animate_text_clipname;
setProperty("/" add clipname, _visible , "0");
x = animate_text_x;
y = animate_text_y;
count = "1";
play();
Symbol 48 MovieClip Frame 3
duplicateMovieClip ("/" add clipname, clipname add count, second_counter + count);
setProperty(("/" add clipname) add count, _x , x);
setProperty(("/" add clipname) add count, _y , y);
char = substring(animate_text_string, count, "1");
if ((char ge "a") and ("z" ge char)) {
char = char add "1";
}
if ((char ge "0") and ("9" ge char)) {
char = "nu" add char;
}
tellTarget ((("/" add clipname) add count) add "/letterclip") {
gotoAndStop(/fontfx/:char);
};
width = getProperty((("/" add clipname) add count) add "/letterclip", _width);
tellTarget (("/" add clipname) add count) {
gotoAndPlay (2);
};
x = (x + width) + animate_text_tracking;
if ((x >= animate_text_wrapat) or (char eq "|")) {
x = animate_text_x;
y = y + animate_text_leading;
}
count = count + "1";
Symbol 48 MovieClip Frame 4
if (animate_text_length >= count) {
gotoAndPlay(_currentframe - "1");
}
Symbol 48 MovieClip Frame 5
second_counter = second_counter + animate_text_length;
count = "0";
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 10
stop();
Symbol 121 Button
on (release) {
gotoAndPlay (86);
}
Symbol 144 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 5
stop();
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
Set("/small_interface:message", /:hit_message1);
stop();
Symbol 210 MovieClip Frame 3
Set("/small_interface:message", /:hit_message2);
stop();
Symbol 210 MovieClip Frame 4
Set("/small_interface:message", /:hit_message3);
stop();
Symbol 210 MovieClip Frame 5
Set("/small_interface:message", /:hit_message4);
stop();
Symbol 210 MovieClip Frame 6
Set("/small_interface:message", /:hit_message5);
stop();
Symbol 210 MovieClip Frame 7
Set("/small_interface:message", /:hit_message6);
stop();
Symbol 210 MovieClip Frame 8
Set("/small_interface:message", /:hit_message7);
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 60
stop();
Symbol 213 MovieClip Frame 1
i = "1";
Symbol 213 MovieClip Frame 2
m = i;
xi = getProperty("/rocket1", _x);
yi = getProperty("/rocket1", _y);
ri = getProperty("/rocket1", _rotation);
wi = getProperty("/rocket1", _xscale);
hi = getProperty("/rocket1", _yscale);
randomx = (random("10") - "5") / "2";
randomy = (random("10") - "5") / "2";
xi = xi + randomx;
yi = yi + randomy;
duplicateMovieClip ("/particle1", "particle1" add m, m);
setProperty("/particle1" add m, _x , xi);
setProperty("/particle1" add m, _y , yi);
setProperty("/particle1" add m, _rotation , ri);
Symbol 213 MovieClip Frame 3
i = i + "1";
if (i < "15") {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
Symbol 214 MovieClip Frame 1
i = "1";
Symbol 214 MovieClip Frame 2
m = i;
xi = getProperty("/rocket2", _x);
yi = getProperty("/rocket2", _y);
ri = getProperty("/rocket2", _rotation);
wi = getProperty("/rocket2", _xscale);
hi = getProperty("/rocket2", _yscale);
randomx = (random("10") - "5") / "2";
randomy = (random("10") - "5") / "2";
xi = xi + randomx;
yi = yi + randomy;
duplicateMovieClip ("/particle2", "particle2" add m, "30" + m);
setProperty("/particle2" add m, _x , xi);
setProperty("/particle2" add m, _y , yi);
setProperty("/particle2" add m, _rotation , ri);
Symbol 214 MovieClip Frame 3
i = i + "1";
if (i < "15") {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}
Symbol 215 MovieClip Frame 26
removeMovieClip("");
Symbol 220 MovieClip Frame 26
removeMovieClip("");
Symbol 221 MovieClip Frame 1
stop();
stop();
Symbol 221 MovieClip Frame 16
stop();
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 18
stop();
stop();
Symbol 224 MovieClip Frame 1
stop();
stop();
stop();
stop();
Symbol 224 MovieClip Frame 16
removeMovieClip("/explosion_city");
Symbol 228 MovieClip Frame 1
stop();
stop();
stop();
stop();
Symbol 228 MovieClip Frame 16
removeMovieClip("/explosion_city");
Symbol 232 MovieClip Frame 1
stop();
Symbol 232 MovieClip Frame 100
stop();
Symbol 252 MovieClip Frame 1
taste = "1";
Symbol 252 MovieClip Frame 2
dialmin = "70";
dialmax = "170";
valmin = "0";
valmax = "10";
setProperty("lowerlimit", _rotation , -dialmin);
setProperty("upperlimit", _rotation , -dialmax);
if (taste == "0") {
call("calc_angle");
}
if (dialmax < alpha) {
alpha = dialmax;
}
if (alpha < dialmin) {
alpha = dialmin;
}
call("convert");
call("Setproperty");
Symbol 252 MovieClip Frame 3
gotoAndPlay(_currentframe - "1");
Symbol 252 MovieClip Frame 4
ref_x = getProperty("/aim/dial1", _x);
ref_y = getProperty("/aim/dial1", _y);
cur_x = getProperty("/aim/cursor", _x);
cur_y = getProperty("/aim/cursor", _y);
dx = cur_x - ref_x;
dy = cur_y - ref_y;
d = (dx * dx) + (dy * dy);
to_sqr = d;
call("sqrt");
d = from_sqr;
sin_alpha = dy / d;
if (sin_alpha < "0") {
looksin = (-"1") * sin_alpha;
} else {
looksin = sin_alpha;
}
if (looksin < "0.01") {
alpha = "0";
} else {
i = "0";
found = "0";
while (found == "0") {
tablesin = eval ("/:sin" add i);
if (tablesin >= looksin) {
found = "1";
}
i = i + "1";
}
alpha = i - "1";
}
if (("0" < dx) and (dy < "0")) {
}
if ((dx < "0") and (dy < "0")) {
alpha = "180" - alpha;
}
if ((dx < "0") and ("0" < dy)) {
alpha = alpha + "180";
}
if (("0" < dx) and ("0" < dy)) {
alpha = "360" - alpha;
}
if (dy == "0") {
if ("0" < dx) {
alpha = "0";
} else {
alpha = "180";
}
}
if (dx == "0") {
if ("0" < dy) {
alpha = "270";
} else {
alpha = "90";
}
}
Symbol 252 MovieClip Frame 13
n = "1";
counter = "0";
while (counter < "11") {
n = n - (((n * n) - to_sqr) / ("2" * n));
counter = counter + "1";
}
from_sqr = n;
Symbol 252 MovieClip Frame 18
m = (valmin - valmax) / (dialmin - dialmax);
n = ((dialmin * valmax) - (dialmax * valmin)) / (dialmin - dialmax);
value = (m * alpha) + n;
Symbol 252 MovieClip Frame 25
setProperty("dial", _rotation , -alpha);
setProperty("/aim/dial1", _xscale , "100");
setProperty("/aim/dial1", _yscale , "100");
setProperty("/aim/dial1", _rotation , "90" - alpha);
Symbol 257 Button
on (press) {
startDrag ("cursor", true);
Set("/dialctrl:taste", "0");
}
on (keyPress "<Left>") {
Set("/dialctrl:alpha", /dialctrl:alpha + "10");
alpha = /dialctrl:alpha;
dialmax = /dialctrl:dialmax;
Set("/dialctrl:taste", "1");
if (dialmax < alpha) {
Set("/dialctrl:alpha", /dialctrl:dialmax);
}
call("Setproperty");
}
on (keyPress "<Right>") {
Set("/dialctrl:alpha", /dialctrl:alpha - "10");
alpha = /dialctrl:alpha;
dialmin = /dialctrl:dialmin;
Set("/dialctrl:taste", "1");
if (alpha < dialmin) {
Set("/dialctrl:alpha", /dialctrl:dialmin);
}
call("/dialctrl/:Setproperty");
}
on (release, dragOut, releaseOutside) {
Set("/dialctrl:taste", "1");
stopDrag();
}
Symbol 263 Button
on (release) {
Set("/:start", "1");
tellTarget ("/city") {
gotoAndPlay (1);
};
setProperty("/big_interface11", _x , "1000");
setProperty("/big_interface11", _y , "1000");
}
Symbol 267 Button
on (release) {
Set("/:start", "1");
setProperty("/big_interface22", _x , "1000");
setProperty("/big_interface22", _y , "1000");
}
Symbol 271 Button
on (release) {
Set("/:start", "1");
Set("/:no_level", "1");
Set("/:no_rocket", "0");
Set("/:life", "7");
Set("/:score", "0");
Set("/small_interface:score", /:score);
tellTarget ("/city") {
gotoAndPlay (2);
};
setProperty("/big_interface33", _x , "1000");
setProperty("/big_interface33", _y , "1000");
}
Symbol 277 Button
on (press, keyPress "<Space>") {
if ((delay >= recharge) and (start == "1")) {
fire = "1";
first_step = "1";
recharge = getTimer() + "2000";
tellTarget ("/recharge") {
gotoAndPlay("Laser_sound");
};
tellTarget ("/dialctrl/dial") {
gotoAndPlay (1);
};
}
}