Frame 1
stop();
Frame 2
stop();
MenuFrame.txt_Hint = "";
_root.level_pwd = "";
Instance of Symbol 253 MovieClip "Credits" in Frame 2
onClipEvent (load) {
var active = true;
_visible = 0;
_y = 400;
Reset();
}
onClipEvent (enterFrame) {
if (active) {
_y = (_y - 2);
}
}
Instance of Symbol 261 MovieClip "menu_Start" in Frame 2
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 267 MovieClip "MenuFrame" in Frame 2
onClipEvent (load) {
function PlaySound_Intro() {
snd_credits.stop();
snd_intro.start(0, 100000);
}
function PlaySound_Credits() {
snd_intro.stop();
snd_credits.start(0, 100000);
}
var snd_intro = new Sound();
snd_intro.attachSound("intro");
var snd_credits = new Sound();
snd_credits.attachSound("credits");
PlaySound_Intro();
}
onClipEvent (unload) {
snd_intro.stop();
delete snd_intro;
snd_credits.stop();
delete snd_credits;
}
Frame 3
_root.exitcode = 0;
stop();
Instance of Symbol 283 MovieClip "_main_bg_s" in Frame 3
onClipEvent (load) {
function LoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 1);
}
function UnLoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 0);
}
}
Instance of Symbol 296 MovieClip "_main_bg_b" in Frame 3
onClipEvent (load) {
function LoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 1);
}
function UnLoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 0);
}
}
Instance of Symbol 323 MovieClip "_main_bg_a" in Frame 3
onClipEvent (load) {
function LoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 1);
}
function UnLoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 0);
}
}
Instance of Symbol 403 MovieClip "_main_st" in Frame 3
onClipEvent (load) {
function LoadLevel(Level_name) {
var Level = eval (Level_name);
s_h = 750;
s_w = 925;
ItemsCount = Level.ItemsCount;
ItemsLeft = ItemsCount;
ObstacleCount = Level.ObstacleCount;
_root.Jet_.Jet_obj.Init();
_root.Jet_.Jet_obj.land_level = Level.land_level;
setProperty(Level, _visible , 1);
}
function UnLoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 0);
}
var s_h;
var s_w;
var TargetCount = 1;
var TargetLeft = 1;
var ItemsCount = 0;
var ItemsLeft = 0;
var ObstacleCount = 0;
}
onClipEvent (enterFrame) {
if (_root._MainSwitch_.Pause) {
return(undefined);
}
i = 1;
while (TargetCount >= i) {
var trg_ = eval ((("_root._main_st." + _root._MainSwitch_.CurrentLevel) + ".Target_") + i);
if (trg_.TRG._corpus._visible) {
if (trg_.TRG.hited) {
setProperty(trg_.TRG._hit, _visible , 1);
trg_.TRG.hited = false;
} else {
setProperty(trg_.TRG._hit, _visible , 0);
}
if (0 >= trg_.TRG.Shield) {
setProperty(trg_.TRG._hit, _visible , 0);
trg_.TRG._boom.play();
setProperty(trg_.TRG._corpus, _visible , 0);
TargetLeft = TargetLeft - 1;
_root.UFO_.Response(trg_.TRG.type);
}
}
i++;
}
}
Instance of Symbol 430 MovieClip "_enemy_map" in Frame 3
onClipEvent (load) {
function LoadLevel(Level_name) {
var Level = eval (Level_name);
EnemyCount = Level.EnemyCount;
EnemyLeft = EnemyCount;
setProperty(Level, _visible , 1);
}
function UnLoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 0);
}
var EnemyCount = 0;
var EnemyLeft = 0;
var sh_Heli = 5000;
var sh_Scout = 2000;
var sh_Car = 1500;
var sh_Brain = 3000;
var str_Heli = 2500;
var str_Scout = 2000;
var str_Car = 1500;
var str_Brain = 1500;
setProperty(this, _x , -687.5);
setProperty(this, _y , -562.5);
}
onClipEvent (enterFrame) {
if (_root._MainSwitch_.Pause) {
return(undefined);
}
i = 1;
while (EnemyCount >= i) {
var enemy = eval ((("_root._enemy_map." + _root._MainSwitch_.CurrentLevel) + ".Enemy_") + i);
if (enemy.ENMX._corpus._visible) {
if (enemy.hited) {
setProperty(enemy.ENMX._hit, _visible , 1);
enemy.hited = false;
} else {
setProperty(enemy.ENMX._hit, _visible , 0);
}
if (0 < enemy.ENMX.Shield) {
enemy.ENMX.Move();
_root.UFO_.Impact(enemy.ENMX._corpus, enemy.ENMX.Strength);
} else {
setProperty(enemy.ENMX._parts, _visible , 0);
setProperty(enemy.ENMX._hit, _visible , 0);
setProperty(enemy.ENMX._corpus, _visible , 0);
enemy.ENMX._boom.play();
EnemyLeft = EnemyLeft - 1;
_root.UFO_.Response(enemy.ENMX.type);
}
}
i++;
}
}
Instance of Symbol 433 MovieClip "Jet_" in Frame 3
onClipEvent (load) {
setProperty(this, _visible , 0);
Jet_obj.target_obj = _root.UFO_;
}
Instance of Symbol 434 MovieClip "wp_sb_1" in Frame 3
onClipEvent (load) {
var x = _root.UFO_._x;
var y = _root.UFO_._y;
}
onClipEvent (enterFrame) {
if ((!CLR.sb_core_L._visible) && (!CLR.sb_core_R._visible)) {
x = _root.UFO_._x;
y = _root.UFO_._y;
}
setProperty(this, _x , x);
setProperty(this, _y , y);
}
Instance of Symbol 436 MovieClip "_frame_vis" in Frame 3
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Instance of Symbol 443 MovieClip "AlienJet" in Frame 3
onClipEvent (load) {
function Impact() {
if (Alive) {
_boom.play();
_die.play();
setProperty(AJ_L, _visible , 0);
setProperty(AJ_R, _visible , 0);
setProperty(_root._HUD_.hud_AlienJet.lb_Fuel, _visible , 0);
_root.Talker_.Hide();
_root._HUD_.hud_AlienJet._visible = 0;
_root._HUD_.hud_as1._visible = 0;
_root._HUD_.hud_as2._visible = 0;
_root._HUD_.hud_as3._visible = 0;
Energy = 0;
Shield = 0;
}
Alive = false;
_root._exit_.Exit_Delay();
}
function TouchedBy(enemy_) {
var _impacted = false;
if (((AJ_L.Body.hitTest(enemy_) || (AJ_L.Leg_1.hitTest(enemy_))) || (AJ_L.Arm.hitTest(enemy_))) || (AJ_L.JetPack.hitTest(enemy_))) {
_impacted = true;
}
if (((AJ_R.Body.hitTest(enemy_) || (AJ_R.Leg_1.hitTest(enemy_))) || (AJ_R.Arm.hitTest(enemy_))) || (AJ_R.JetPack.hitTest(enemy_))) {
_impacted = true;
}
if (_impacted) {
if ((!Invulnerable) && (Alive)) {
Shield = Shield - 1;
if (Shield == 2) {
_root._HUD_.hud_as1._visible = 0;
}
if (Shield == 1) {
_root._HUD_.hud_as2._visible = 0;
}
if (Shield == 0) {
_root._HUD_.hud_as3._visible = 0;
}
if (Shield >= 0) {
Hit_PLShield.gotoAndPlay(1);
Invulnerable = true;
}
}
if (Shield < 0) {
Impact();
}
return(true);
}
return(false);
}
function Move() {
_ph_fx = 0;
_ph_fy = 0;
offset_x = 0;
offset_y = 0;
_ph_fy = grav * _Ph_m;
if (Key.isDown(38) && (Active)) {
if (0 < Energy) {
_ph_fy = _ph_fy - force_u;
}
}
if (Key.isDown(40) && (Active)) {
if (0 < Energy) {
_ph_fy = _ph_fy + force_d;
}
}
if (Key.isDown(37) && (Active)) {
if (Flying) {
if (0 < Energy) {
_ph_fx = _ph_fx - force_l;
}
} else {
_ph_fx = _ph_fx - force_lw;
}
setProperty(AJ_L, _visible , 1);
setProperty(AJ_R, _visible , 0);
}
if (Key.isDown(39) && (Active)) {
if (Flying) {
if (0 < Energy) {
_ph_fx = _ph_fx + force_r;
}
} else {
_ph_fx = _ph_fx + force_rw;
}
setProperty(AJ_L, _visible , 0);
setProperty(AJ_R, _visible , 1);
}
AJ_L.Fire.Fire.Active = AJ_L._visible;
AJ_R.Fire.Fire.Active = AJ_R._visible;
_ph_ax = _ph_fx / _ph_m;
_ph_ay = _ph_fy / _ph_m;
_ph_vx = _ph_vx + (_ph_ax * time_quant);
_ph_vy = _ph_vy + (_ph_ay * time_quant);
offset_x = _ph_vx * time_quant;
offset_y = _ph_vy * time_quant;
}
function HitStop(stop_x, stop_y, impact) {
if (stop_x) {
_ph_vx = 0;
_ph_ax = 0;
}
if (stop_y) {
if (impact && (60 < _ph_vy)) {
this.Impact();
}
_ph_vy = 0;
_ph_ay = 0;
}
}
function HitBounce(impact) {
_ph_vx = -_ph_vx;
_ph_vy = -_ph_vy;
_ph_ax = 0;
_ph_ay = 0;
}
function Walk_Go() {
AJ_L.Leg_1.play();
AJ_L.Leg_2.play();
AJ_R.Leg_1.play();
AJ_R.Leg_2.play();
AJ_L.Arm.play();
AJ_R.Arm.play();
}
function Walk_Stop() {
AJ_L.Leg_1.stop();
AJ_L.Leg_2.stop();
AJ_R.Leg_1.stop();
AJ_R.Leg_2.stop();
AJ_L.Arm.gotoAndStop(1);
AJ_R.Arm.gotoAndStop(1);
}
function FlyUp() {
Walk_Stop();
setProperty(AJ_L.Leg_1, _visible , 0);
setProperty(AJ_L.Leg_2, _visible , 0);
setProperty(AJ_R.Leg_1, _visible , 0);
setProperty(AJ_R.Leg_2, _visible , 0);
setProperty(AJ_L.Leg_Fly, _visible , 1);
setProperty(AJ_R.Leg_Fly, _visible , 1);
setProperty(AJ_L.Arm, _rotation , 0);
setProperty(AJ_R.Arm, _rotation , 0);
}
function LandDown() {
setProperty(AJ_L.Leg_1, _visible , 1);
setProperty(AJ_L.Leg_2, _visible , 1);
setProperty(AJ_R.Leg_1, _visible , 1);
setProperty(AJ_R.Leg_2, _visible , 1);
setProperty(AJ_L.Leg_Fly, _visible , 0);
setProperty(AJ_R.Leg_Fly, _visible , 0);
if (!(AJ_L.Fire.Fire.Shooting || (AJ_R.Fire.Fire.Shooting))) {
setProperty(AJ_L.Arm, _rotation , -60);
setProperty(AJ_R.Arm, _rotation , -60);
}
if (Walking) {
Walk_Go();
}
}
setProperty(AJ_L, _visible , 0);
setProperty(AJ_L.Jet_B, _visible , 0);
setProperty(AJ_R.Jet_B, _visible , 0);
setProperty(AJ_L.Jet_D, _visible , 0);
setProperty(AJ_R.Jet_D, _visible , 0);
var Alive = true;
var Active = false;
var Energy = 1000;
var Shield = 3;
var Invulnerable = false;
var Recal = false;
var wait_Recal = 0;
var PreventSecondRecal = false;
var Flying = true;
var Walking = false;
var time_quant = 0.5;
var grav = 9.8;
var _ph_vx = 0;
var _ph_vy = 0;
var _ph_ax = 0;
var _ph_ay = 0;
var _ph_m = 10;
var _ph_fx = 0;
var _ph_fy = 0;
var offset_x = 0;
var offset_y = 0;
var force_u = 150;
var force_d = 20;
var force_l = 20;
var force_r = 20;
var force_lw = 50;
var force_rw = 50;
FlyUp();
}
onClipEvent (enterFrame) {
if (_root._MainSwitch_.Pause) {
return(undefined);
}
if (Active) {
if (Alive) {
var CurrentLevel = eval ("_root._main_st." + _root._MainSwitch_.CurrentLevel);
i = 0;
while (CurrentLevel.ObstacleCount >= i) {
var obst = eval ((("_root._main_st." + _root._MainSwitch_.CurrentLevel) + ".obst_") + i);
if (obst._visible && (TouchedBy(obst))) {
HitBounce(1);
}
i++;
}
if (Flying) {
if (_ph_fy < 0) {
Energy = Energy - 5;
}
if (_ph_fx != 0) {
Energy = Energy - 1;
}
FlyUp();
if (0 >= Energy) {
_root.Talker_.Say(2, random(5) + 2, 1, 2);
}
} else {
LandDown();
}
setProperty(_root._HUD_.hud_AlienJet.hud_m_fuel, _width , Energy / 10);
if (Energy < 250) {
setProperty(_root._HUD_.hud_AlienJet.lb_Fuel, _visible , 1);
} else {
setProperty(_root._HUD_.hud_AlienJet.lb_Fuel, _visible , 0);
}
setProperty(AJ_L.Jet_B, _visible , (_ph_fx != 0) && (Flying));
setProperty(AJ_R.Jet_B, _visible , (_ph_fx != 0) && (Flying));
setProperty(AJ_L.Jet_D, _visible , _ph_fy < 0);
setProperty(AJ_R.Jet_D, _visible , _ph_fy < 0);
itemcheck = 1;
while (_root._main_st.ItemsCount >= itemcheck) {
var itemc_ = eval ((("_root._main_st." + _root._MainSwitch_.CurrentLevel) + ".itemc_") + itemcheck);
if (itemc_._visible && (AJ_L.Body.hitTest(itemc_))) {
var s = new Sound();
s.attachSound("collect");
s.start(0, 1);
delete s;
itemc_._visible = 0;
_root._main_st.ItemsLeft = _root._main_st.ItemsLeft - 1;
if (itemc_.core.type == 1) {
_root._HUD_._resources.res_ENERGYCELL = _root._HUD_._resources.res_ENERGYCELL + 1;
}
if (itemc_.core.type == 2) {
_root._HUD_._resources.res_REPAIRKIT = _root._HUD_._resources.res_REPAIRKIT + 1;
}
if (itemc_.core.type == 3) {
_root._HUD_._resources.res_NUKEDET = _root._HUD_._resources.res_NUKEDET + 1;
}
if (itemc_.core.type == 4) {
_root._HUD_._resources.res_UFO = _root._HUD_._resources.res_UFO + 1;
}
}
itemcheck++;
}
if (Key.isDown(17) && (AJ_L.Body.hitTest(_root.UFO_._dish_))) {
_root.UFO_.GetIn();
}
}
if (Recal) {
now = new Date();
var w_Recal = (now.getTime() / 1000);
delete now;
if (10 < (w_Recal - wait_Recal)) {
Recal = false;
_root.UFO_.Restore();
setProperty(_root._HUD_._recal, _visible , 0);
} else {
_root._HUD_._recal._hud_recal_time = Math.floor(11 - (w_Recal - wait_Recal));
}
}
}
}
onClipEvent (keyDown) {
if (_root._MainSwitch_.Pause) {
return(undefined);
}
if (Active && (Alive)) {
if (((Key.getCode() == 37) || (Key.getCode() == 39)) && (!Flying)) {
Walking = true;
Walk_Go();
}
if ((Key.getCode() == 90) || (Key.getCode() == 88)) {
var snd = new Sound();
snd.attachSound("wp_SB");
snd.start(0, 1);
setProperty(AJ_L.Arm, _rotation , 0);
setProperty(AJ_R.Arm, _rotation , 0);
AJ_L.Fire.Fire.play();
AJ_R.Fire.Fire.play();
delete snd;
}
if ((Key.getCode() == 84) && (!PreventSecondRecal)) {
_root.UFO_.Shield = 0;
if (!Recal) {
if (0 < _root._HUD_._resources.res_UFO) {
_root.Talker.Override();
_root.Talker_.Say(2, 1, 2, 3);
now = new Date();
wait_Recal = now.getTime() / 1000;
delete now;
Recal = true;
PreventSecondRecal = true;
_root._HUD_._recal._hud_recal_time = 10;
setProperty(_root._HUD_._recal, _visible , 1);
_root.UFO_.respawn_at_x = _x;
_root.UFO_.respawn_at_y = _y;
} else {
_root.Talker_.Say(2, random(5) + 2, 1, 1);
}
}
}
}
}
onClipEvent (keyUp) {
if ((Key.getCode() == 37) || (Key.getCode() == 39)) {
Walking = false;
Walk_Stop();
}
}
Instance of Symbol 434 MovieClip "wp_sb_2" in Frame 3
onClipEvent (load) {
var x = _root.UFO_._x;
var y = _root.UFO_._y;
}
onClipEvent (enterFrame) {
if ((!CLR.sb_core_L._visible) && (!CLR.sb_core_R._visible)) {
x = _root.UFO_._x;
y = _root.UFO_._y;
}
setProperty(this, _x , x);
setProperty(this, _y , y);
}
Instance of Symbol 434 MovieClip "wp_sb_3" in Frame 3
onClipEvent (load) {
var x = _root.UFO_._x;
var y = _root.UFO_._y;
}
onClipEvent (enterFrame) {
if ((!CLR.sb_core_L._visible) && (!CLR.sb_core_R._visible)) {
x = _root.UFO_._x;
y = _root.UFO_._y;
}
setProperty(this, _x , x);
setProperty(this, _y , y);
}
Instance of Symbol 447 MovieClip "UFO_" in Frame 3
onClipEvent (load) {
function Response(type) {
if (!Active) {
return(undefined);
}
if (type == 1) {
_root.Talker_.Say(1, 2, 1, 2);
return(undefined);
}
if ((type == 2) || (type == 3)) {
_root.Talker_.Say(1, random(5) + 1, 1, 1.5);
return(undefined);
}
}
function SwTripod(State_) {
if ((TripodState != State_) && (Alive)) {
Tripod.stop();
TripodState = State_;
if (TripodState) {
setProperty(Tripod, _visible , 1);
Tripod.gotoAndPlay(1);
} else if (Tripod._currentframe == 10) {
Tripod.gotoAndPlay(10);
}
}
}
function SetMode_UFO_Antigrav() {
grav = 0;
force_u = 500;
force_d = 500;
force_l = 500;
force_r = 500;
setProperty(Antigrav, _visible , 1);
setProperty(Jet, _visible , 0);
setProperty(_dish_.broken, _visible , 0);
fly_mode = 0;
}
function SetMode_UFO_Jet() {
grav = 9.8;
force_u = 1500;
force_d = 500;
force_l = 500;
force_r = 500;
setProperty(Jet, _height , 55.1);
setProperty(Jet, _y , 47.5);
setProperty(Antigrav, _visible , 0);
setProperty(_dish_.broken, _visible , 0);
fly_mode = 1;
}
function SetMode_UFO_Broken() {
grav = 9.8;
force_u = 1200;
force_d = 50;
force_l = 50;
force_r = 50;
setProperty(Jet, _height , 40);
setProperty(Jet, _y , 30);
setProperty(Antigrav, _visible , 0);
setProperty(_dish_.broken, _visible , 1);
fly_mode = 2;
}
function Move() {
_ph_fx = 0;
_ph_fy = 0;
offset_x = 0;
offset_y = 0;
_ph_fy = grav * _Ph_m;
if (Key.isDown(38) && (Active)) {
if (0 < Energy) {
_ph_fy = _ph_fy - force_u;
}
}
if (Key.isDown(40) && (Active)) {
if (0 < Energy) {
_ph_fy = _ph_fy + force_d;
}
}
if (Key.isDown(37) && (Active)) {
if (0 < Energy) {
_ph_fx = _ph_fx - force_l;
}
}
if (Key.isDown(39) && (Active)) {
if (0 < Energy) {
_ph_fx = _ph_fx + force_r;
}
}
_ph_ax = _ph_fx / _ph_m;
_ph_ay = _ph_fy / _ph_m;
_ph_vx = _ph_vx + (_ph_ax * time_quant);
_ph_vy = _ph_vy + (_ph_ay * time_quant);
offset_x = _ph_vx * time_quant;
offset_y = _ph_vy * time_quant;
}
function HitStop(stop_x, stop_y, impact) {
if (stop_x) {
_ph_vx = 0;
_ph_ax = 0;
}
if (stop_y) {
if (impact && (35 < _ph_vy)) {
Shield = Shield - (0.003 * ((_ph_m * _ph_vy) * _ph_vy));
if (Active) {
_root.Talker_.Say(3, random(3) + 1, 1, 1.5);
}
}
_ph_vy = 0;
_ph_ay = 0;
Tripod.gotoAndStop(10);
}
}
function HitBounce(impact) {
_ph_vx = -_ph_vx;
_ph_vy = -_ph_vy;
_ph_ax = 0;
_ph_ay = 0;
if (impact) {
var v = Math.sqrt((_ph_vx * _ph_vx) + (_ph_vy * _ph_vy));
if (35 < v) {
Shield = Shield - (0.003 * (_ph_m * v));
if (Active) {
_root.Talker_.Say(3, random(3) + 1, 1, 1.5);
}
}
}
}
function Shoot(weapon, power, for_all) {
i = 1;
while (_root._enemy_map.EnemyCount >= i) {
var enemy = eval ((("_root._enemy_map." + _root._MainSwitch_.CurrentLevel) + ".Enemy_") + i);
if (0 < enemy.ENMX.Shield) {
if (weapon.hitTest(enemy.ENMX._corpus)) {
enemy.hited = true;
enemy.ENMX.Shield = enemy.ENMX.Shield - power;
if (!for_all) {
return(true);
}
}
}
i++;
}
i = 1;
while (_root._main_st.TargetCount >= i) {
var trg_ = eval ((("_root._main_st." + _root._MainSwitch_.CurrentLevel) + ".Target_") + i);
if (trg_.TRG.vulnerable && (0 < trg_.TRG.Shield)) {
if (weapon.hitTest(trg_.TRG._corpus)) {
trg_.TRG.hited = true;
setProperty(trg_.TRG._hit, _visible , 1);
trg_.TRG.Shield = trg_.TRG.Shield - power;
if (!for_all) {
return(true);
}
}
}
i++;
}
return(false);
}
function Impact(enemy, power) {
if (_root.AlienJet.Active) {
_root.AlienJet.TouchedBy(enemy);
}
if (_dish_.hitTest(enemy)) {
if (!_PLShield._visible) {
if (Active) {
_root.Talker_.Say(3, random(5) + 1, 1, 1.5);
}
if ((!Invulnerable) && (Alive)) {
Shield = Shield - power;
Hit_PLShield.gotoAndPlay(1);
var snd_hit = new Sound();
snd_hit.attachSound("plhit");
snd_hit.start(0, 1);
delete snd_hit;
Invulnerable = true;
}
}
return(true);
}
return(false);
}
function Teleport() {
setProperty(_dish_, _visible , 1);
setProperty(this, _visible , 1);
setProperty(Tripod, _visible , 0);
Alive = true;
setProperty(this, _x , respawn_at_x);
setProperty(this, _y , respawn_at_y);
HitStop(true, true, false);
}
function Disappear() {
setProperty(this, _visible , 0);
}
function Restore() {
setProperty(_dish_, _visible , 0);
setProperty(Alien, _visible , 0);
setProperty(Tripod, _visible , 0);
Energy = 10000;
Shield = 10000;
SetMode_UFO_Antigrav();
Teleport();
}
function GetIn() {
setProperty(_root.AlienJet, _visible , 0);
setProperty(Alien, _visible , 1);
setProperty(this, _visible , 1);
Active = true;
_root.AlienJet.Energy = 1000;
_root.AlienJet.Shield = 3;
_root.AlienJet.Active = false;
_root.Jet_.Jet_obj.target_obj = this;
setProperty(_root._HUD_.hud_AlienJet, _visible , 0);
setProperty(_root._HUD_.hud_as1, _visible , 0);
setProperty(_root._HUD_.hud_as2, _visible , 0);
setProperty(_root._HUD_.hud_as3, _visible , 0);
}
var Alive = true;
var Active = true;
var fly_mode = 0;
var Energy = 10000;
var Shield = 10000;
var Invulnerable = false;
var PLS_charge;
var Flying = true;
var EnergyFree = false;
var pwr_gun = 100;
var pwr_sb = 250;
var pwr_dr = 2000;
var pwr_nb = 50000;
var eng_sb = 10;
var eng_dr = 200;
var eng_nb = 250;
var respawn_at_x;
var respawn_at_y;
var snd_shield = new Sound();
snd_shield.attachSound("shield");
SetMode_UFO_Antigrav();
_root._HUD_._resources.res_UFO = 3;
_root._HUD_._resources.res_NUKEDET = 1;
_root._HUD_._resources.res_REPAIRKIT = 5;
_root._HUD_._resources.res_ENERGYCELL = 10;
var SaidLowEnergy = false;
var SaidLowShield = false;
var TripodState = false;
var time_quant = 0.5;
var grav = 9.8;
var _ph_vx = 0;
var _ph_vy = 0;
var _ph_ax = 0;
var _ph_ay = 0;
var _ph_m = 100;
var _ph_fx = 0;
var _ph_fy = 0;
var offset_x = 0;
var offset_y = 0;
var force_u = 1500;
var force_d = 500;
var force_l = 500;
var force_r = 500;
SetMode_UFO_Antigrav();
setProperty(_root.AlienJet, _visible , 0);
Restore();
Disappear();
}
onClipEvent (enterFrame) {
if (_root._MainSwitch_.Pause) {
return(undefined);
}
if (Alive) {
var CurrentLevel = eval ("_root._main_st." + _root._MainSwitch_.CurrentLevel);
i = 0;
while (CurrentLevel.ObstacleCount >= i) {
var obst = eval ((("_root._main_st." + _root._MainSwitch_.CurrentLevel) + ".obst_") + i);
if (obst._visible && (Impact(obst, 3000))) {
HitBounce(1);
}
i++;
}
if (fly_mode == 0) {
if (!EnergyFree) {
Energy = Energy - 20;
}
if ((Energy < 500) || (Shield < 2500)) {
SetMode_UFO_Jet();
}
} else if (_ph_fy < 0) {
setProperty(Jet, _visible , 1);
if (!EnergyFree) {
Energy = Energy - 5;
}
} else {
setProperty(Jet, _visible , 0);
}
if (_ph_fx != 0) {
Energy = Energy - 1;
}
if (_PLShield._visible) {
PLS_charge = PLS_charge - 5;
setProperty(_root._HUD_.hud_PLShield.hud_m_pls, _width , PLS_charge / 10);
if (0 >= PLS_charge) {
setProperty(_PLShield, _visible , 0);
setProperty(_root._HUD_.hud_PLShield, _visible , 0);
}
}
if (Shield < 2000) {
if ((!SaidLowShield) && (Active)) {
_root.Talker_.Say(4, 2, 2, 3);
SaidLowShield = true;
setProperty(_root._HUD_.lb_Shield, _visible , 1);
}
Shield = Shield - 5;
SetMode_UFO_Broken();
} else {
SaidLowShield = false;
setProperty(_root._HUD_.lb_Shield, _visible , 0);
}
if (Energy < 1000) {
if ((!SaidLowEnergy) && (Active)) {
_root.Talker_.Override();
_root.Talker_.Say(4, 1, 2, 3);
SaidLowEnergy = true;
setProperty(_root._HUD_.lb_Energy, _visible , 1);
}
} else {
SaidLowEnergy = false;
setProperty(_root._HUD_.lb_Energy, _visible , 0);
}
if (0 >= Shield) {
_boom.play();
Alive = false;
setProperty(_dish_, _visible , 0);
setProperty(Jet, _visible , 0);
setProperty(Antigrav, _visible , 0);
setProperty(Alien, _visible , 0);
setProperty(_PLShield, _visible , 0);
setProperty(_root._HUD_.hud_m_shield, _width , 0);
setProperty(_PLShield, _visible , 0);
setProperty(_root._HUD_.hud_PLShield, _visible , 0);
setProperty(Tripod, _visible , 0);
setProperty(Hit_PLShield, _visible , 0);
_root.Talker_.Hide();
Energy = 0;
PLS_charge = 0;
setProperty(_root._HUD_.lb_Energy, _visible , 0);
setProperty(_root._HUD_.lb_Shield, _visible , 0);
if (0 < _root._HUD_._resources.res_UFO) {
_root._HUD_._resources.res_UFO = _root._HUD_._resources.res_UFO - 1;
}
if (Active) {
_root.Talker_.Hide();
_root._exit_.Exit_Delay();
}
}
setProperty(_root._HUD_.hud_m_energy, _width , Energy / 100);
setProperty(_root._HUD_.hud_m_shield, _width , Shield / 100);
}
}
onClipEvent (keyDown) {
if (_root._MainSwitch_.Pause) {
return(undefined);
}
if (Active && (Alive)) {
if (((Key.getCode() == 45) && (0 < _root._HUD_._resources.res_ENERGYCELL)) && (Energy < 9000)) {
Energy = Energy + 5000;
if (10000 < Energy) {
Energy = 10000;
}
_root._HUD_._resources.res_ENERGYCELL = _root._HUD_._resources.res_ENERGYCELL - 1;
}
if (((((Key.getCode() == 36) && (0 < _root._HUD_._resources.res_REPAIRKIT)) && (1000 < Energy)) && (Shield >= 2000)) && (Shield < 10000)) {
Shield = Shield + 5000;
Energy = Energy - 1000;
if (10000 < Shield) {
Shield = 10000;
}
_root._HUD_._resources.res_REPAIRKIT = _root._HUD_._resources.res_REPAIRKIT - 1;
if (fly_mode == 2) {
SetMode_UFO_Jet();
}
}
if ((Key.getCode() == 16) && (fly_mode != 2)) {
fly_mode = !fly_mode;
if ((Energy < 500) || (Shield < 2500)) {
fly_mode = 1;
}
if (fly_mode == 0) {
SetMode_UFO_Antigrav();
}
if (fly_mode == 1) {
SetMode_UFO_Jet();
}
}
if (Key.getCode() == 90) {
if (!_root.wp_sb_1.CLR.Fire(-1)) {
if (!_root.wp_sb_2.CLR.Fire(-1)) {
if (!_root.wp_sb_3.CLR.Fire(-1)) {
if (!_root.wp_sb_4.CLR.Fire(-1)) {
if (!_root.wp_sb_5.CLR.Fire(-1)) {
_root.wp_sb_6.CLR.Fire(-1);
}
}
}
}
}
}
if (Key.getCode() == 88) {
if (!_root.wp_sb_1.CLR.Fire(1)) {
if (!_root.wp_sb_2.CLR.Fire(1)) {
if (!_root.wp_sb_3.CLR.Fire(1)) {
if (!_root.wp_sb_4.CLR.Fire(1)) {
if (!_root.wp_sb_5.CLR.Fire(1)) {
_root.wp_sb_6.CLR.Fire(1);
}
}
}
}
}
}
if (Key.getCode() == 65) {
if (eng_dr < Energy) {
wp_dr.play();
}
}
if (Key.getCode() == 83) {
if ((((10 * eng_nb) < Energy) && (0 < _root._HUD_._resources.res_NUKEDET)) && (!_PLShield._visible)) {
_root.Talker_.Override();
_root.Talker_.Say(4, random(2) + 3, 1, 2);
_root._HUD_._resources.res_NUKEDET = _root._HUD_._resources.res_NUKEDET - 1;
wp_nb.play();
}
}
if (Key.getCode() == 192) {
setProperty(_root.AlienJet, _x , _x);
setProperty(_root.AlienJet, _y , _y);
setProperty(_root.AlienJet, _visible , 1);
setProperty(Alien, _visible , 0);
Active = false;
_root.AlienJet.Active = true;
_root.AlienJet.PreventSecondRecal = false;
_root.Jet_.Jet_obj.target_obj = _root.AlienJet;
_root.AlienJet._ph_vy = _ph_vy - 50;
_root.AlienJet._ph_vx = _ph_vx;
setProperty(_root._HUD_.hud_AlienJet, _visible , 1);
setProperty(_root._HUD_.hud_as1, _visible , 1);
setProperty(_root._HUD_.hud_as2, _visible , 1);
setProperty(_root._HUD_.hud_as3, _visible , 1);
}
if (Key.getCode() == 67) {
if ((2500 < Energy) && (!_PLShield._visible)) {
_root.Talker_.Override();
_root.Talker_.Say(4, 5, 1, 2);
setProperty(_root._HUD_.hud_PLShield, _visible , 1);
setProperty(_PLShield, _visible , 1);
PLS_charge = 1000;
Energy = Energy - 2500;
snd_shield.start(0, 18);
}
}
if (Key.getCode() == 32) {
SwTripod(true);
}
}
}
onClipEvent (unload) {
snd_shield.stop();
delete snd_shield;
}
Instance of Symbol 434 MovieClip "wp_sb_4" in Frame 3
onClipEvent (load) {
var x = _root.UFO_._x;
var y = _root.UFO_._y;
}
onClipEvent (enterFrame) {
if ((!CLR.sb_core_L._visible) && (!CLR.sb_core_R._visible)) {
x = _root.UFO_._x;
y = _root.UFO_._y;
}
setProperty(this, _x , x);
setProperty(this, _y , y);
}
Instance of Symbol 434 MovieClip "wp_sb_5" in Frame 3
onClipEvent (load) {
var x = _root.UFO_._x;
var y = _root.UFO_._y;
}
onClipEvent (enterFrame) {
if ((!CLR.sb_core_L._visible) && (!CLR.sb_core_R._visible)) {
x = _root.UFO_._x;
y = _root.UFO_._y;
}
setProperty(this, _x , x);
setProperty(this, _y , y);
}
Instance of Symbol 434 MovieClip "wp_sb_6" in Frame 3
onClipEvent (load) {
var x = _root.UFO_._x;
var y = _root.UFO_._y;
}
onClipEvent (enterFrame) {
if ((!CLR.sb_core_L._visible) && (!CLR.sb_core_R._visible)) {
x = _root.UFO_._x;
y = _root.UFO_._y;
}
setProperty(this, _x , x);
setProperty(this, _y , y);
}
Instance of Symbol 473 MovieClip "_main_fg" in Frame 3
onClipEvent (load) {
function LoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 1);
}
function UnLoadLevel(Level_name) {
var Level = eval (Level_name);
setProperty(Level, _visible , 0);
}
}
Instance of Symbol 475 MovieClip "_MainSwitch_" in Frame 3
onClipEvent (load) {
function SelectLevel(Level) {
i = 1;
while (LevelCount >= i) {
var level_unload = ("Level_" + i);
_root._main_st.UnLoadLevel(level_unload);
_root._main_fg.UnLoadLevel(level_unload);
_root._main_bg_a.UnLoadLevel(level_unload);
_root._main_bg_b.UnLoadLevel(level_unload);
_root._main_bg_s.UnLoadLevel(level_unload);
_root._enemy_map.UnLoadLevel(level_unload);
var snd_stop = eval ("snd_track_" + Level);
snd_stop.stop();
i++;
}
_root._main_st.LoadLevel(Level);
_root._main_fg.LoadLevel(Level);
_root._main_bg_a.LoadLevel(Level);
_root._main_bg_b.LoadLevel(Level);
_root._main_bg_s.LoadLevel(Level);
_root._enemy_map.LoadLevel(Level);
CurrentLevel = Level;
var snd_start = eval ("snd_track_" + Level);
snd_start.start(0, 100000);
_root.Story.gotoAndStop(Level);
var v_pwd = eval ("pwd_" + Level);
_root._HUD_.LPBox.box.level_pwd = v_pwd;
_root._HUD_.LPBox.gotoAndPlay(1);
}
setProperty(this, _visible , 0);
var LevelCount = 3;
var CurrentLevel;
var Pause = false;
var flact_L1_0 = false;
var flact_L1_1 = false;
var flact_L1_2 = false;
var flact_L2_0 = false;
var flact_L2_1 = false;
var flact_L2_2 = false;
var flact_L3_0 = false;
var pwd_Level_1 = "corkpork";
var pwd_Level_2 = "moonweed";
var pwd_Level_3 = "brainbug";
var snd_track_Level_1 = new Sound();
var snd_track_Level_2 = new Sound();
var snd_track_Level_3 = new Sound();
snd_track_Level_1.attachSound("track_1");
snd_track_Level_2.attachSound("track_2");
snd_track_Level_3.attachSound("track_3");
if (_root.level_pwd == pwd_Level_1) {
SelectLevel("Level_1");
} else if (_root.level_pwd == pwd_Level_2) {
SelectLevel("Level_2");
} else if (_root.level_pwd == pwd_Level_3) {
SelectLevel("Level_3");
} else {
SelectLevel("Level_1");
}
}
onClipEvent (unload) {
snd_track_Level_1.stop();
snd_track_Level_2.stop();
delete snd_track_Level_1;
delete snd_track_Level_2;
}
onClipEvent (enterFrame) {
if ((CurrentLevel == "Level_1") && (flact_L1_0)) {
if ((_root._enemy_map.EnemyLeft == 0) && (!flact_L1_1)) {
flact_L1_1 = true;
_root.Talker_.Notify();
_root.Talker_.Say(101, 2, 2, 5);
}
if ((_root._main_st.TargetLeft == 0) && (!flact_L1_2)) {
flact_L1_2 = true;
_root.Talker_.Notify();
_root.Talker_.Say(101, 4, 2, 5);
}
}
if ((CurrentLevel == "Level_2") && (flact_L2_0)) {
if ((_root._enemy_map.EnemyLeft == 0) && (!flact_L2_1)) {
flact_L2_1 = true;
_root.Talker_.Notify();
_root.Talker_.Say(102, 2, 1, 3);
}
if (flact_L2_2) {
if (_root.UFO_._dish_.hitTest(_root._main_st.Level_2.LabEntrance.LabDoor)) {
flact_L2_2 = false;
_root.UFO_.Disappear();
_root.Story.m2.gotoAndPlay("end");
}
}
}
if (_root._main_st._warp.Opened) {
if (_root.UFO_._dish_.hitTest(_root._main_st._warp.gate)) {
if ((((CurrentLevel == "Level_1") && (flact_L1_0)) && (flact_L1_1)) && (flact_L1_2)) {
_root.UFO_.Disappear();
_root._main_st._warp.Close();
_root.Story.m1.gotoAndPlay("end");
}
}
}
}
onClipEvent (keyDown) {
if ((Key.getCode(keyUp) == 111) && (!_root._HUD_._quality_._visible)) {
setProperty(_root._HUD_._quality_, _visible , 1);
_root._HUD_._quality_.NextQuality();
}
if ((Key.getCode(keyUp) == 107) && (!_root._HUD_._volume_._visible)) {
setProperty(_root._HUD_._volume_, _visible , 1);
_root._HUD_._volume_.VolUp();
}
if ((Key.getCode(keyUp) == 109) && (!_root._HUD_._volume_._visible)) {
setProperty(_root._HUD_._volume_, _visible , 1);
_root._HUD_._volume_.VolDown();
}
}
onClipEvent (keyUp) {
if (Key.getCode(keyUp) == 111) {
setProperty(_root._HUD_._quality_, _visible , 0);
}
if (Key.getCode(keyUp) == 106) {
setProperty(_root._HUD_._mute, _visible , !_root._HUD_._mute._visible);
if (_root._HUD_._mute._visible) {
var s = new sound();
s.setVolume(0);
delete s;
} else {
var s = new sound();
s.setVolume(10 * _root._HUD_._volume_.vol);
delete s;
}
}
if ((Key.getCode(keyUp) == 107) || (Key.getCode(keyUp) == 109)) {
setProperty(_root._HUD_._volume_, _visible , 0);
}
if ((Key.getCode(keyUp) == 19) || (Key.getCode(keyUp) == 80)) {
if (!_root.UFO_.wp_nb._visible) {
_root._HUD_._pause_._visible = !_root._HUD_._pause_._visible;
Pause = _root._HUD_._pause_._visible;
}
}
if ((Key.getCode(keyUp) == 27) && (_root._HUD_._pause_._visible)) {
_root.play();
}
}
Instance of Symbol 482 MovieClip "Talker_" in Frame 3
onClipEvent (load) {
function Say(CatID_, PhrID_, Type_, Talk_timeout_) {
if (ShutUp) {
return(undefined);
}
if (Talking && (!Override_)) {
return(undefined);
}
if (Notify_) {
_catID = CatID_;
_pID = PhrID_;
}
Override_ = false;
Talk_timeout = Talk_timeout_;
now = new Date();
wait_Talking = now.getTime() / 1000;
delete now;
Talking = true;
setProperty(this, _visible , 1);
txt1 = eval ((("c" + CatID_) + "_p") + PhrID_);
txt2 = eval ((("c" + CatID_) + "_p") + PhrID_);
if (Type_ == 1) {
this.gotoAndStop(2);
return(undefined);
}
if (Type_ == 2) {
this.gotoAndStop(3);
return(undefined);
}
}
function Override() {
if (!Notify_) {
Override_ = true;
}
}
function Notify() {
Override_ = false;
Notify_ = true;
Talking = false;
}
function Hide() {
setProperty(this, _visible , 0);
Talking = false;
Override_ = false;
Notify_ = false;
}
var Talking = false;
var wait_Talking = false;
var Talk_timeout = 3;
var Override_ = false;
var Notify_ = false;
var _catID;
var _pID;
var ShutUp = false;
var c1_p1 = "Ha-ha-ha";
var c1_p2 = "Die, bitch!";
var c1_p3 = "Stupid, bastard!";
var c1_p4 = "Blast your head off!";
var c1_p5 = "Fry your ass!";
var c2_p1 = "SOS! SOS! SOS! \n Send me a new dish.";
var c2_p2 = "I'm so dead.";
var c2_p3 = "FUCK !!!";
var c2_p4 = "SHIT !!!";
var c2_p5 = "Oh, no! Poor me!";
var c2_p6 = "Damn it!";
var c3_p1 = "Ouch!";
var c3_p2 = "Oh, no!";
var c3_p3 = "Damn!";
var c3_p4 = "Look out, jackass!";
var c3_p5 = "Asshole!";
var c4_p1 = "Shit!\nI'm running out of energy.";
var c4_p2 = "Damn it!\nThe stupid dish is broken.\nI must repair it quickly.";
var c4_p3 = "Check this out!";
var c4_p4 = "Surprise!";
var c4_p5 = "Catch me if you can!";
var c101_p1 = "No problems, boss.";
var c101_p2 = "I've melted all bastards,\nbut I don't think there is any\nTop Secret Lab around here.";
var c101_p3 = "I think, I've just saw\nsome stuff looking like this.";
var c101_p4 = "I've just blasted this\n...disturber.";
var c102_p1 = "You've got it, man!";
var c102_p2 = "You've got it, man!";
var c102_p3 = "Yeah.\n...but now you've really got it.";
var c102_p4 = "Are you supposed to know\nwhere is that Top Stupid Lab?";
var c102_p5 = "I don't know.\nI've already seen such sign.";
var c102_p6 = "\"Open Sezamee\"?";
var c102_p7 = "I dont't know the fucking\nTop Secret Password.";
var c102_p8 = "Got it. I must say:\n\"The Top Secret Password,\nyou drive me nuts\".";
var c102_p9 = "\"The Top Secret Password\".";
var c103_p1 = "Hey, I can't enter here.\nThis is the EXIT.";
var c103_p2 = "Yeah, right.\nWhat to do now?";
var c103_p3 = "HEY, MAIN COMPUTER,\nCOME HERE RIGHT NOW...";
var c103_p4 = "Oops.";
var c103_p5 = "Damn.";
var c103_p6 = "Hey, stupid squarehead,\nare you the main computer?";
var c103_p7 = "Shut up, and give me\n the secret information\nabout Vargas.";
var c103_p8 = "Great!\nCan you shut down these\nfreaking energy wals?";
var c103_p9 = "What?\nWhere?";
}
onClipEvent (enterFrame) {
if (ShutUp) {
_visible = 0;
}
if (Talking) {
now = new Date();
var w_Talking = (now.getTime() / 1000);
delete now;
if (Talk_timeout < (w_Talking - wait_Talking)) {
setProperty(this, _visible , 0);
Talking = false;
if (Notify_) {
if (_catID == 101) {
if (_pID == 1) {
_root._MainSwitch_.flact_L1_0 = true;
}
if (_pID == 2) {
setProperty(_root.Story, _visible , 1);
_root.Story.m1.gotoAndPlay("where are you");
}
if (_pID == 4) {
setProperty(_root.Story, _visible , 1);
_root.Story.m1.gotoAndPlay("good_job_disrupter");
}
}
if (_catID == 102) {
if (_pID == 1) {
_root._MainSwitch_.flact_L2_0 = true;
}
if (_pID == 2) {
setProperty(_root.Story, _visible , 1);
_root.Story.m2.gotoAndPlay("heard_that");
}
if (_pID == 3) {
setProperty(_root.Story, _visible , 1);
_root.Story.m2.gotoAndPlay("find_lab");
}
if (_pID == 4) {
setProperty(_root.Story, _visible , 1);
_root.Story.m2.gotoAndPlay("sign");
}
if (_pID == 5) {
setProperty(_root.Story, _visible , 1);
_root.Story.m2.gotoAndPlay("lab_is");
}
if (_pID == 6) {
setProperty(_root.Story, _visible , 1);
_root.Story.m2.gotoAndPlay("wrong_pwd");
}
if (_pID == 7) {
setProperty(_root.Story, _visible , 1);
_root.Story.m2.gotoAndPlay("right_pwd");
}
if (_pID == 8) {
setProperty(_root.Story, _visible , 1);
_root.Story.m2.gotoAndPlay("just_pwd");
}
if (_pID == 9) {
setProperty(_root.Story, _visible , 1);
_root.Story.m2.gotoAndPlay("open_lab");
}
}
if (_catID == 103) {
if (_pID == 1) {
_root.Story.m3.gotoAndPlay("junk");
}
if (_pID == 3) {
_root._MainSwitch_.flact_L3_0 = true;
}
if (_pID == 2) {
_root.Story.m3.gotoAndPlay("mission");
}
if (_pID == 4) {
_root.Story.m3.gotoAndPlay("mc_pwd");
}
if (_pID == 5) {
_root.Story.m3.gotoAndPlay("mc_access");
}
if (_pID == 6) {
_root.Story.m3.gotoAndPlay("mc_yes");
}
if (_pID == 7) {
_root.Story.m3.gotoAndPlay("mc_vargas");
}
if (_pID == 8) {
_root.Story.m3.gotoAndPlay("mc_sure");
}
if (_pID == 9) {
_root.Story.m3.gotoAndPlay("mc_end");
}
}
Notify_ = false;
}
}
}
}
Instance of Symbol 515 MovieClip "_exit_" in Frame 3
onClipEvent (load) {
function Exit_Delay() {
gotoAndPlay (3);
_root.Talker_._visible = 0;
_root.Talker_.ShutUp = true;
}
function Exit_Now() {
gotoAndPlay (3);
_root.Talker_._visible = 0;
_root.Talker_.ShutUp = true;
}
_visible = 0;
}
Instance of Symbol 517 MovieClip in Frame 3
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Instance of Symbol 189 MovieClip "_HUD_" in Frame 3
onClipEvent (load) {
function Reset() {
setProperty(hud_PLShield, _visible , 0);
setProperty(hud_AlienJet, _visible , 0);
setProperty(_recal, _visible , 0);
}
setProperty(_mute, _visible , 0);
Reset();
}
onClipEvent (enterFrame) {
_hud_enm_left = _root._enemy_map.EnemyLeft;
}
Instance of Symbol 519 MovieClip "trFade" in Frame 3
onClipEvent (load) {
function FadeInit() {
gotoAndStop (3);
_visible = 1;
}
function FadeOut() {
gotoAndPlay (3);
}
function FadeIn() {
_visible = 1;
gotoAndPlay (22);
}
stop();
}
Frame 4
if (_root.exitcode == 1) {
_root.end_0._visible = 0;
_root.end_1._visible = 1;
} else {
_root.end_0._visible = 1;
_root.end_1._visible = 0;
}
stop();
Instance of Symbol 12 MovieClip "sb_core_L" in Symbol 13 MovieClip [__wp_sb] Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
setProperty(this, _x , -20);
}
onClipEvent (enterFrame) {
if (_visible) {
setProperty(this, _x , _x - 25);
if ((!this.hitTest(_root._frame_vis)) || (_root.UFO_.Shoot(this, _root.UFO_.pwr_sb, false))) {
setProperty(this, _visible , 0);
setProperty(this, _x , -20);
}
}
}
Instance of Symbol 12 MovieClip "sb_core_R" in Symbol 13 MovieClip [__wp_sb] Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
setProperty(this, _x , 20);
}
onClipEvent (enterFrame) {
if (_visible) {
setProperty(this, _x , _x + 25);
if ((!this.hitTest(_root._frame_vis)) || (_root.UFO_.Shoot(this, _root.UFO_.pwr_sb, false))) {
active = false;
setProperty(this, _visible , 0);
setProperty(this, _x , 20);
}
_root.UFO_.Shoot(this, 100);
}
}
Symbol 20 Button
on (release) {
getURL ("http://www.jfds.hit.bg/", "_blank");
}
Symbol 26 Button
on (release) {
getURL ("http://www.jfds.hit.bg/", "_blank");
}
Instance of Symbol 43 MovieClip "Prog" in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
function SetProg(_prog) {
if (100 < _prog) {
_prog = 100;
}
if (_prog < 0) {
_prog = 0;
}
_width = _prog;
}
SetProg(0);
}
onClipEvent (enterFrame) {
var percent = (_root.getBytesLoaded() / _root.getBytesTotal());
SetProg(percent * 100);
}
Symbol 49 MovieClip Frame 30
stop();
Symbol 50 Button
on (press, keyPress "<Space>") {
_parent.play();
}
Symbol 51 MovieClip Frame 2
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
gotoAndPlay (1);
}
Symbol 51 MovieClip Frame 3
stop();
Symbol 61 MovieClip Frame 1
setProperty(this, _visible , 0);
stop();
Symbol 61 MovieClip Frame 2
setProperty(this, _visible , 1);
Symbol 61 MovieClip Frame 16
stop();
Symbol 61 MovieClip Frame 31
gotoAndStop (1);
Symbol 80 MovieClip Frame 1
stop();
setProperty(this, _visible , 0);
Symbol 80 MovieClip Frame 2
setProperty(this, _visible , 1);
Symbol 80 MovieClip Frame 10
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_dr;
_root.UFO_.wp_dr.impact = true;
_root.UFO_.Shoot(this, _root.UFO_.pwr_dr, true);
Symbol 80 MovieClip Frame 20
setProperty(this, _visible , 0);
_root.UFO_.wp_dr.impact = false;
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 20
gotoAndStop (1);
Symbol 101 MovieClip Frame 1
setProperty(this, _visible , 0);
stop();
Symbol 101 MovieClip Frame 2
setProperty(this, _visible , 1);
Shooting = true;
Symbol 101 MovieClip Frame 3
if (Active) {
_root.UFO_.Shoot(this, _root.UFO_.pwr_gun / 3, true);
}
Symbol 101 MovieClip Frame 4
if (Active) {
_root.UFO_.Shoot(this, _root.UFO_.pwr_gun / 3, true);
}
Symbol 101 MovieClip Frame 5
if (Active) {
_root.UFO_.Shoot(this, _root.UFO_.pwr_gun / 3, true);
}
setProperty(this, _visible , 0);
Shooting = false;
Instance of Symbol 101 MovieClip "Fire" in Symbol 102 MovieClip Frame 1
onClipEvent (load) {
var Shooting = false;
var Active = false;
}
Instance of Symbol 91 MovieClip "Leg_2" in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Instance of Symbol 95 MovieClip "Leg_1" in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 20
gotoAndStop (1);
Instance of Symbol 112 MovieClip "broken" in Symbol 113 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 122 MovieClip Frame 1
stop();
setProperty(this, _visible , 0);
Symbol 122 MovieClip Frame 2
setProperty(this, _visible , 1);
Symbol 122 MovieClip Frame 20
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 21
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 22
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 23
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 24
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 25
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 26
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 27
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 28
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 29
_root.UFO_.Shoot(_root.UFO_.wp_nb, _root.UFO_.pwr_nb, true);
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_nb;
Symbol 122 MovieClip Frame 48
setProperty(this, _visible , 0);
Symbol 129 MovieClip Frame 1
setProperty(this, _visible , 0);
stop();
Symbol 129 MovieClip Frame 2
setProperty(this, _visible , 1);
Symbol 129 MovieClip Frame 15
gotoAndStop (1);
Symbol 147 MovieClip Frame 1
setProperty(lb_Fuel, _visible , 0);
Symbol 165 MovieClip Frame 1
Symbol 188 MovieClip Frame 1
_visible = 1;
Symbol 188 MovieClip Frame 100
stop();
_visible = 0;
Symbol 189 MovieClip Frame 1
setProperty(lb_Energy, _visible , 0);
setProperty(lb_Shield, _visible , 0);
Instance of Symbol 169 MovieClip "_pause_" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Instance of Symbol 174 MovieClip "_quality_" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
function NextQuality() {
if (qual == 4) {
qual = 1;
} else {
qual = qual + 1;
}
setProperty(qual_1, _visible , 0);
setProperty(qual_2, _visible , 0);
setProperty(qual_3, _visible , 0);
setProperty(qual_4, _visible , 0);
if (qual >= 1) {
setProperty(qual_1, _visible , 1);
txtQuality = "Quality: LOW";
_quality = "LOW";
}
if (qual >= 2) {
setProperty(qual_2, _visible , 1);
txtQuality = "Quality: MEDIUM";
_quality = "MEDIUM";
}
if (qual >= 3) {
setProperty(qual_3, _visible , 1);
txtQuality = "Quality: HIGH";
_quality = "HIGH";
}
if (qual >= 4) {
setProperty(qual_4, _visible , 1);
txtQuality = "Quality: BEST";
_quality = "BEST";
}
}
setProperty(this, _visible , 0);
var qual;
if (_quality == "LOW") {
qual = 1;
}
if (_quality == "MEDIUM") {
qual = 2;
}
if (_quality == "HIGH") {
qual = 3;
}
if (_quality == "BEST") {
qual = 4;
}
}
Instance of Symbol 183 MovieClip "_volume_" in Symbol 189 MovieClip Frame 1
onClipEvent (load) {
function UpdateVol() {
i = 1;
while (10 >= i) {
setProperty("vbar" + i, _visible , vol >= i);
i++;
}
}
function VolUp() {
if (vol < 10) {
vol = vol + 1;
UpdateVol();
if (!_root._HUD_._mute._visible) {
var s = new sound();
s.setVolume(10 * vol);
delete s;
}
}
}
function VolDown() {
if (0 < vol) {
vol = vol - 1;
UpdateVol();
if (!_root._HUD_._mute._visible) {
var s = new sound();
s.setVolume(10 * vol);
delete s;
}
}
}
setProperty(this, _visible , 0);
var vol = 10;
}
Instance of Symbol 192 MovieClip "mini_screen" in Symbol 195 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 196 MovieClip Frame 1
setProperty(this, _visible , 0);
stop();
Symbol 196 MovieClip Frame 2
setProperty(this, _visible , 1);
Symbol 196 MovieClip Frame 16
stop();
Symbol 196 MovieClip Frame 31
gotoAndStop (1);
Symbol 203 Button
on (rollOver) {
mini_screen.sb_.play();
setProperty(Tip1, _visible , 1);
}
on (rollOut) {
setProperty(Tip1, _visible , 0);
}
Symbol 204 Button
on (rollOver) {
mini_screen.dr_.play();
setProperty(Tip2, _visible , 1);
}
on (rollOut) {
setProperty(Tip2, _visible , 0);
}
Symbol 205 Button
on (rollOver) {
mini_screen.nb_.play();
setProperty(Tip3, _visible , 1);
}
on (rollOut) {
setProperty(Tip3, _visible , 0);
}
Symbol 206 Button
on (rollOver) {
mini_screen.plshld_.play();
setProperty(Tip4, _visible , 1);
}
on (rollOut) {
setProperty(Tip4, _visible , 0);
}
Symbol 207 Button
on (rollOver) {
mini_screen.eject_.play();
setProperty(Tip8, _visible , 1);
}
on (rollOut) {
setProperty(Tip8, _visible , 0);
}
Symbol 208 Button
on (rollOver) {
setProperty(Tip5, _visible , 1);
}
on (rollOut) {
setProperty(Tip5, _visible , 0);
}
Symbol 209 Button
on (rollOver) {
setProperty(Tip6, _visible , 1);
}
on (rollOut) {
setProperty(Tip6, _visible , 0);
}
Symbol 210 Button
on (rollOver) {
setProperty(Tip7, _visible , 1);
}
on (rollOut) {
setProperty(Tip7, _visible , 0);
}
Symbol 211 Button
on (rollOver) {
setProperty(Tip9, _visible , 1);
}
on (rollOut) {
setProperty(Tip9, _visible , 0);
}
Symbol 215 MovieClip Frame 1
setProperty(this, _visible , 0);
Symbol 217 MovieClip Frame 1
setProperty(this, _visible , 0);
Symbol 219 MovieClip Frame 1
setProperty(this, _visible , 0);
Symbol 221 MovieClip Frame 1
setProperty(this, _visible , 0);
Symbol 223 MovieClip Frame 1
setProperty(this, _visible , 0);
Symbol 225 MovieClip Frame 1
setProperty(this, _visible , 0);
Symbol 227 MovieClip Frame 1
setProperty(this, _visible , 0);
Symbol 229 MovieClip Frame 1
setProperty(this, _visible , 0);
Symbol 231 MovieClip Frame 1
setProperty(this, _visible , 0);
Instance of Symbol 192 MovieClip "mini_screen" in Symbol 232 MovieClip Frame 1
onClipEvent (load) {
}
Symbol 233 MovieClip Frame 1
setProperty(this, _visible , 0);
stop();
Symbol 233 MovieClip Frame 2
setProperty(this, _visible , 1);
Symbol 233 MovieClip Frame 16
stop();
Symbol 233 MovieClip Frame 31
gotoAndStop (1);
Symbol 241 Button
on (release) {
if (menu_Instr.p1s._currentframe == 1) {
menu_Instr.p1s.gotoAndPlay(2);
}
if (menu_Instr.p2s._currentframe == 16) {
menu_Instr.p2s.gotoAndPlay(16);
}
if (menu_Instr.p3s._currentframe == 16) {
menu_Instr.p3s.gotoAndPlay(16);
}
}
Symbol 243 Button
on (release) {
if (menu_Instr.p1s._currentframe == 16) {
menu_Instr.p1s.gotoAndPlay(16);
}
if (menu_Instr.p2s._currentframe == 1) {
menu_Instr.p2s.gotoAndPlay(2);
}
if (menu_Instr.p3s._currentframe == 16) {
menu_Instr.p3s.gotoAndPlay(16);
}
}
Symbol 245 Button
on (release) {
if (menu_Instr.p1s._currentframe == 16) {
menu_Instr.p1s.gotoAndPlay(16);
}
if (menu_Instr.p2s._currentframe == 16) {
menu_Instr.p2s.gotoAndPlay(16);
}
if (menu_Instr.p3s._currentframe == 1) {
menu_Instr.p3s.gotoAndPlay(2);
}
}
Symbol 246 MovieClip Frame 1
setProperty(this, _visible , 0);
stop();
Symbol 246 MovieClip Frame 2
setProperty(this, _visible , 1);
if (menu_Instr.p1s._currentframe == 1) {
menu_Instr.p1s.gotoAndPlay(2);
}
Symbol 246 MovieClip Frame 15
stop();
Symbol 246 MovieClip Frame 25
gotoAndStop (1);
Symbol 259 Button
on (release) {
_root.level_pwd = fld_pwd.Level_pwd;
_root.play();
}
Symbol 260 Button
on (release, keyPress "<Space>") {
_root.play();
}
Symbol 261 MovieClip Frame 1
fld_pwd.Level_pwd = "";
stop();
Symbol 261 MovieClip Frame 10
stop();
Symbol 261 MovieClip Frame 17
_visible = 0;
Symbol 271 Button
on (release, keyPress "<Space>") {
if (menu_1._currentframe == 15) {
menu_1.gotoAndPlay(15);
} else {
menu_1.gotoAndStop(1);
}
if (_root.Credits._visible) {
_root.MenuFrame.PlaySound_Intro();
_root.Credits._visible = 0;
_root.Credits.active = false;
}
if (!_root.menu_Start._visible) {
_root.menu_Start._visible = 1;
_root.menu_Start.gotoAndPlay("show");
}
}
on (rollOver) {
MenuFrame.txt_Hint = "Start";
}
on (rollOut) {
MenuFrame.txt_Hint = "";
}
Symbol 272 Button
on (release) {
if (menu_1._currentframe == 1) {
menu_1.gotoAndPlay(2);
}
if (_root.Credits._visible) {
_root.MenuFrame.PlaySound_Intro();
_root.Credits._visible = 0;
_root.Credits.active = false;
}
if (_root.menu_Start._visible) {
_root.menu_Start.gotoAndPlay("hide");
}
}
on (rollOver) {
MenuFrame.txt_Hint = "Help";
}
on (rollOut) {
MenuFrame.txt_Hint = "";
}
Symbol 273 Button
on (release) {
if (menu_1._currentframe == 15) {
menu_1.gotoAndPlay(15);
} else {
menu_1.gotoAndStop(1);
}
_root.MenuFrame.PlaySound_Credits();
_root.Credits._y = 400;
_root.Credits._visible = 1;
_root.Credits.active = true;
if (_root.menu_Start._visible) {
_root.menu_Start.gotoAndPlay("hide");
}
}
on (rollOver) {
MenuFrame.txt_Hint = "Credits";
}
on (rollOut) {
MenuFrame.txt_Hint = "";
}
Instance of Symbol 290 MovieClip in Symbol 291 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Symbol 316 MovieClip Frame 1
setProperty(this, _visible , 0);
stop();
Symbol 316 MovieClip Frame 2
setProperty(this, _visible , 1);
Symbol 316 MovieClip Frame 10
gotoAndStop (1);
Instance of Symbol 317 MovieClip "ENMX" in Symbol 318 MovieClip Frame 1
onClipEvent (load) {
function Move() {
offset_x = 50 * dir;
offset_y = 0;
var n_x = (_parent._x + offset_x);
var n_y = (_parent._y + offset_y);
var Level = eval ("_root._main_st." + _root._MainSwitch_.CurrentLevel);
if (dir == -1) {
if (n_x < -900) {
n_x = 1200;
}
} else if (900 < n_x) {
n_x = -1200;
}
setProperty(_parent, _x , n_x);
setProperty(_parent, _y , n_y);
}
var Strength = _root._enemy_map.str_Car;
var Shield = _root._enemy_map.sh_Car;
var hited = false;
var type = 3;
var dir = -1;
var offset_x = 0;
var offset_y = 0;
DirPos();
}
Instance of Symbol 318 MovieClip "car_1" in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
var CarColor = new Color(ENMX._corpus.carColor);
CarColor.SetRGB(3407820);
delete CarColor;
setProperty(ENMX._hit, _visible , 0);
}
onClipEvent (enterFrame) {
ENMX.dir = 1;
}
Instance of Symbol 318 MovieClip "car_6" in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
var CarColor = new Color(ENMX._corpus.carColor);
CarColor.SetRGB(3368652);
delete CarColor;
setProperty(ENMX._hit, _visible , 0);
}
Instance of Symbol 318 MovieClip "car_5" in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
var CarColor = new Color(ENMX._corpus.carColor);
CarColor.SetRGB(16751001);
delete CarColor;
setProperty(ENMX._hit, _visible , 0);
}
onClipEvent (enterFrame) {
ENMX.dir = 1;
}
Instance of Symbol 318 MovieClip "car_2" in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
var CarColor = new Color(ENMX._corpus.carColor);
CarColor.SetRGB(16777215);
delete CarColor;
setProperty(ENMX._hit, _visible , 0);
}
Instance of Symbol 318 MovieClip "car_3" in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
var CarColor = new Color(ENMX._corpus.carColor);
CarColor.SetRGB(3394713);
delete CarColor;
setProperty(ENMX._hit, _visible , 0);
}
Instance of Symbol 318 MovieClip "car_4" in Symbol 319 MovieClip Frame 1
onClipEvent (load) {
var CarColor = new Color(ENMX._corpus.carColor);
CarColor.SetRGB(13408767);
delete CarColor;
setProperty(ENMX._hit, _visible , 0);
}
onClipEvent (enterFrame) {
ENMX.dir = 1;
}
Instance of Symbol 319 MovieClip "Level_1" in Symbol 323 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root._MainSwitch_.Pause) {
return(undefined);
}
i = 1;
while (6 >= i) {
var car = eval ((("_root._main_bg_a." + _root._MainSwitch_.CurrentLevel) + ".car_") + i);
car.ENMX.Move();
i++;
}
}
Instance of Symbol 324 MovieClip "core" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
type = 1;
}
Instance of Symbol 332 MovieClip "core" in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
type = 2;
}
Instance of Symbol 334 MovieClip "core" in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
type = 3;
}
Instance of Symbol 151 MovieClip "core" in Symbol 336 MovieClip Frame 1
onClipEvent (load) {
type = 4;
}
Symbol 341 MovieClip Frame 1
stop();
Symbol 341 MovieClip Frame 50
stop();
Instance of Symbol 346 MovieClip "TRG" in Symbol 347 MovieClip Frame 1
onClipEvent (load) {
var Shield = 10000;
var hited = false;
var type = 101;
var vulnerable = false;
setProperty(_hit, _visible , 0);
}
Instance of Symbol 362 MovieClip "TRG" in Symbol 363 MovieClip Frame 1
onClipEvent (load) {
var Shield = 500;
var hited = false;
var type = 102;
var vulnerable = true;
setProperty(_hit, _visible , 0);
}
Symbol 366 MovieClip Frame 1
stop();
Instance of Symbol 366 MovieClip "core" in Symbol 367 MovieClip Frame 1
onClipEvent (load) {
type = 5;
}
Symbol 385 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 35
stop();
Instance of Symbol 359 MovieClip "obst_5" in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
var moveOk = false;
var movedOk = false;
}
onClipEvent (enterFrame) {
if (moveOk) {
if (!movedOk) {
_y = (_y - 5);
if (100 >= _y) {
moveOk = true;
movedOk = true;
}
}
}
}
Instance of Symbol 367 MovieClip "item_Button" in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
var pressed = 0;
var opened = 0;
}
onClipEvent (enterFrame) {
if (!pressed) {
if ((!_root._main_st.Level_3.Target_1.TRG._corpus._visible) && (!opened)) {
_root._main_st.Level_3.RedButtonLid.play();
opened = 1;
}
if ((!_root._main_st.Level_3.Target_1.TRG._corpus._visible) && (this.hitTest(_root.AlienJet.AJ_L.Body))) {
if (!pressed) {
var s = new Sound();
s.attachSound("btn");
s.start(0, 1);
delete s;
}
pressed = 1;
core.gotoAndStop(2);
_root._main_st.Level_3.obst_5.moveOk = true;
}
}
}
Instance of Symbol 367 MovieClip "item_Button2" in Symbol 391 MovieClip Frame 1
onClipEvent (load) {
var pressed = 0;
}
onClipEvent (enterFrame) {
if ((_root._MainSwitch_.flact_L3_0 && (!pressed)) && (this.hitTest(_root.AlienJet.AJ_L.Body))) {
var s = new Sound();
s.attachSound("btn");
s.start(0, 1);
delete s;
pressed = 1;
core.gotoAndStop(2);
_root.Story.m3.gotoAndPlay("mc_login");
}
}
Symbol 402 MovieClip Frame 1
stop();
_visible = 0;
Symbol 402 MovieClip Frame 2
_visible = 1;
Symbol 402 MovieClip Frame 5
_root._main_st._warp.Opened = true;
stop();
Symbol 402 MovieClip Frame 10
_visible = 0;
gotoAndStop (1);
Instance of Symbol 342 MovieClip "Level_2" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
var land_level = 50;
var ItemsCount = 5;
var ObstacleCount = 0;
var _sh = 1990;
var _sw = 1500;
}
Instance of Symbol 348 MovieClip "Level_1" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
var land_level = 100;
var ItemsCount = 4;
var ObstacleCount = 0;
var _sh = 1990;
var _sw = 1500;
}
Instance of Symbol 391 MovieClip "Level_3" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
var land_level = 200;
var ItemsCount = 4;
var ObstacleCount = 13;
var _sh = 1900;
var _sw = 1500;
}
Instance of Symbol 402 MovieClip "_warp" in Symbol 403 MovieClip Frame 1
onClipEvent (load) {
function Open() {
gotoAndPlay (1);
}
function Close() {
Opened = false;
gotoAndPlay (5);
}
var Opened = false;
_visible = 0;
setProperty(gate, _visible , 0);
}
Instance of Symbol 407 MovieClip "_hit" in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Instance of Symbol 408 MovieClip "ENMX" in Symbol 409 MovieClip Frame 1
onClipEvent (load) {
function DirPos() {
setProperty(_corpus._side_L, _visible , dir != 1);
setProperty(_hit._side_L, _visible , dir != 1);
setProperty(_parts._side_L, _visible , dir != 1);
setProperty(_corpus._side_R, _visible , dir == 1);
setProperty(_parts._side_R, _visible , dir == 1);
setProperty(_hit._side_R, _visible , dir == 1);
}
function Move() {
offset_x = 10 * dir;
offset_y = 10 * Math.sin(0.02 * _parent._x);
var n_x = (_parent._x + offset_x);
var n_y = (_parent._y + offset_y);
var Level = eval ("_root._main_st." + _root._MainSwitch_.CurrentLevel);
if (n_x < -800) {
dir = 1;
}
if (800 < n_x) {
dir = -1;
}
DirPos();
setProperty(_parent, _x , n_x);
setProperty(_parent, _y , n_y);
}
var Strength = _root._enemy_map.str_Scout;
var Shield = _root._enemy_map.sh_Scout;
var hited = false;
var type = 2;
var dir = -1;
var offset_x = 0;
var offset_y = 0;
DirPos();
}
Instance of Symbol 413 MovieClip "_corpus" in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
var Strength = _root._enemy_map.str_Heli;
var Shields = _root._enemy_map.sh_Heli;
var hited = false;
}
Instance of Symbol 414 MovieClip "_hit" in Symbol 415 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Instance of Symbol 415 MovieClip "ENMX" in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
function Move() {
offset_x = 10 * Math.cos(0.001 * getTimer());
offset_y = 20 * Math.sin(0.001 * getTimer());
var n_x = (_parent._x + offset_x);
var n_y = (_parent._y + offset_y);
setProperty(_parent, _x , n_x);
setProperty(_parent, _y , n_y);
}
var Strength = _root._enemy_map.str_Heli;
var Shield = _root._enemy_map.sh_Heli;
var hited = false;
var type = 2;
var offset_x = 0;
var offset_y = 0;
}
Instance of Symbol 318 MovieClip "Enemy_5" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
var R = 153;
var G = 204;
var B = 255;
var CarColor = new Color(ENMX._corpus.carColor);
var CarHitColor = new Color(ENMX._hit.carColor);
CarColor.SetRGB(10066380);
CarHitColor.SetRGB(10066380);
delete CarColor;
delete CarHitColor;
}
onClipEvent (enterFrame) {
ENMX.dir = 1;
}
Instance of Symbol 318 MovieClip "Enemy_6" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
var CarColor = new Color(ENMX._corpus.carColor);
var CarHitColor = new Color(ENMX._hit.carColor);
CarColor.SetRGB(10066329);
CarHitColor.SetRGB(10066329);
delete CarColor;
delete CarHitColor;
}
onClipEvent (enterFrame) {
ENMX.dir = 1;
}
Instance of Symbol 318 MovieClip "Enemy_7" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
var CarColor = new Color(ENMX._corpus.carColor);
var CarHitColor = new Color(ENMX._hit.carColor);
CarColor.SetRGB(16777164);
CarHitColor.SetRGB(16777164);
delete CarColor;
delete CarHitColor;
}
Instance of Symbol 426 MovieClip "_hit" in Symbol 427 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 427 MovieClip "ENMX" in Symbol 428 MovieClip Frame 1
onClipEvent (load) {
function DirPos() {
setProperty(_corpus._side_L, _visible , dir != 1);
setProperty(_hit._side_L, _visible , dir != 1);
setProperty(_corpus._side_R, _visible , dir == 1);
setProperty(_hit._side_R, _visible , dir == 1);
}
function Move() {
offset_x = 10 * dir;
offset_y = Math.sin(0.02 * _parent._x);
var n_x = (_parent._x + offset_x);
var n_y = (_parent._y + offset_y);
var Level = eval ("_root._main_st." + _root._MainSwitch_.CurrentLevel);
pos_x = pos_x + dir;
if ((-patrool) >= pos_x) {
dir = 1;
}
if (pos_x >= patrool) {
dir = -1;
}
DirPos();
setProperty(_parent, _x , n_x);
setProperty(_parent, _y , n_y);
}
var Strength = _root._enemy_map.str_Brain;
var Shield = _root._enemy_map.sh_Brain;
var hited = false;
var type = 4;
var dir = -1;
var pos_x = 0;
var patrool = 20;
var offset_x = 0;
var offset_y = 0;
DirPos();
}
Instance of Symbol 417 MovieClip "Level_2" in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
var EnemyCount = 8;
}
Instance of Symbol 418 MovieClip "Level_1" in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
var EnemyCount = 7;
}
Instance of Symbol 429 MovieClip "Level_3" in Symbol 430 MovieClip Frame 1
onClipEvent (load) {
var EnemyCount = 5;
}
Instance of Symbol 432 MovieClip "Jet_obj" in Symbol 433 MovieClip Frame 1
onClipEvent (load) {
function Init() {
s_h = _root._main_st.s_h;
s_w = _root._main_st.s_w;
}
function SetGlobalPos(g_x, g_y, a_x, a_y) {
setProperty(_root._main_st, _x , g_x);
setProperty(_root._main_st, _y , g_y);
setProperty(_root._enemy_map, _x , g_x - 262.5);
setProperty(_root._enemy_map, _y , g_y - 187.5);
setProperty(_root._main_fg, _x , g_x * 1.5);
setProperty(_root._main_fg, _y , g_y * 1);
setProperty(_root._main_bg_a, _x , g_x * 0.5);
setProperty(_root._main_bg_a, _y , g_y * 0.7);
setProperty(_root._main_bg_b, _x , g_x * 0.3);
setProperty(_root._main_bg_b, _y , g_y * 0.5);
setProperty(target_obj, _x , a_x);
setProperty(target_obj, _y , a_y);
setProperty(_root.Talker_, _x , a_x - 10);
setProperty(_root.Talker_, _y , a_y - 15);
}
function Scroll() {
var offset_x = (target_obj.offset_x + gl_x);
var offset_y = (target_obj.offset_y + gl_y);
var n_x = ((target_obj._x + offset_x) - (gl_x / 1.5));
var n_y = ((target_obj._y + offset_y) - (gl_y / 1.5));
var s_x = (_root._main_st._x - offset_x);
var s_y = (_root._main_st._y - offset_y);
if (!(((s_x - s_w) < lim__l) && (lim__r < (s_x + s_w)))) {
ssl_x = true;
if (lim__l < (s_x - s_w)) {
s_x = lim__l + s_w;
}
if ((s_x + s_w) < lim__r) {
s_x = lim__r - s_w;
}
if (n_x < lim__l) {
n_x = lim__l;
target_obj.HitStop(true, false, false);
}
if (lim__r < n_x) {
n_x = lim__r;
target_obj.HitStop(true, false, false);
}
} else {
if ((n_x < lim_l) && (!ssl_x)) {
n_x = lim_l;
}
if ((lim_r < n_x) && (!ssl_x)) {
n_x = lim_r;
}
if ((n_x >= lim_l) && (lim_r >= n_x)) {
ssl_x = false;
}
}
target_obj.Flying = true;
if (!(((s_y - s_h) < lim__u) && (lim__d < (s_y + s_h)))) {
ssl_y = true;
if (lim__u < (s_y - s_h)) {
s_y = lim__u + s_h;
}
if ((s_y + s_h) < lim__d) {
s_y = lim__d - s_h;
}
if (n_y < lim__u) {
n_y = lim__u;
target_obj.HitStop(false, true, false);
}
if ((lim__d - land_level) < n_y) {
target_obj.Flying = false;
n_y = lim__d - land_level;
target_obj.HitStop(true, true, true);
}
} else {
if ((n_y < lim_u) && (!ssl_y)) {
n_y = lim_u;
}
if ((lim_d < n_y) && (!ssl_y)) {
n_y = lim_d;
}
if ((n_y >= lim_u) && (lim_d >= n_y)) {
ssl_y = false;
}
}
if ((lim__d + land_level) < (s_y + s_h)) {
_root.UFO_.SwTripod(false);
_root.UFO_.SwTripod(false);
} else {
_root.UFO_.SwTripod(true);
_root.UFO_.SwTripod(true);
}
if (!_root.UFO_.Active) {
var un_x = (_root.UFO_._x - offset_x);
var un_y = (_root.UFO_._y - offset_y);
_root.UFO_.Move();
un_x = un_x + _root.UFO_.offset_x;
un_y = un_y + _root.UFO_.offset_y;
if (((s_y + s_h) - land_level) < un_y) {
un_y = (s_y + s_h) - land_level;
_root.UFO_.HitStop(true, true, true);
}
if (un_y < (s_y - s_h)) {
un_y = s_y - s_h;
_root.UFO_.HitStop(false, true, false);
}
if ((s_x + s_w) < un_x) {
un_x = s_x + s_w;
_root.UFO_.HitStop(true, false, false);
}
if (un_x < (s_x - s_w)) {
un_x = s_x - s_w;
_root.UFO_.HitStop(true, false, false);
}
setProperty(_root.UFO_, _x , un_x);
setProperty(_root.UFO_, _y , un_y);
}
SetGlobalPos(s_x, s_y, n_x, n_y);
gl_x = 0;
gl_y = 0;
}
var target_obj;
var lim_u = 175;
var lim_d = 225;
var lim_l = 200;
var lim_r = 300;
var lim__u = 0;
var lim__d = 400;
var lim__l = 0;
var lim__r = 550;
var land_level = 50;
var prev_ax;
var prev_ay;
var ssl_x = false;
var ssl_y = false;
var s_h;
var s_w;
var gl_x = 0;
var gl_y = 0;
var Hold = false;
Init();
}
onClipEvent (enterFrame) {
if (_root._MainSwitch_.Pause || (Hold)) {
return(undefined);
}
if (target_obj.Alive) {
target_obj.Move();
}
Scroll();
}
Instance of Symbol 13 MovieClip [__wp_sb] "CLR" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
function Fire(dir) {
var snd = new Sound();
snd.attachSound("wp_SB");
snd.start(0, 1);
var res;
if (((!sb_core_L._visible) && (!sb_core_R._visible)) && (_root.UFO_.eng_sb < _root.UFO_.Energy)) {
_root.UFO_.Energy = _root.UFO_.Energy - _root.UFO_.eng_sb;
if (dir == -1) {
setProperty(sb_core_L, _visible , 1);
res = true;
}
if (dir == 1) {
setProperty(sb_core_R, _visible , 1);
res = true;
}
} else {
res = false;
}
delete snd;
return(res);
}
}
Symbol 437 MovieClip Frame 1
_visible = 0;
Symbol 437 MovieClip Frame 2
_visible = 1;
Symbol 437 MovieClip Frame 15
_visible = 0;
_parent.Invulnerable = false;
gotoAndStop (1);
Symbol 442 MovieClip Frame 1
stop();
setProperty(this, _visible , 0);
Symbol 442 MovieClip Frame 2
setProperty(this, _visible , 1);
Symbol 442 MovieClip Frame 14
setProperty(this, _visible , 0);
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 10
stop();
Symbol 445 MovieClip Frame 20
setProperty(this, _visible , 0);
stop();
gotoAndStop (1);
Instance of Symbol 80 MovieClip "wp_dr" in Symbol 447 MovieClip Frame 1
onClipEvent (load) {
var impact = false;
setProperty(this, _visible , 0);
}
onClipEvent (enterFrame) {
if (impact) {
_root.UFO_.Shoot(this, 0.5 * _alpha, true);
}
}
Symbol 482 MovieClip Frame 1
stop();
Instance of Symbol 477 MovieClip in Symbol 482 MovieClip Frame 1
onClipEvent (load) {
setProperty(this, _visible , 0);
}
Symbol 482 MovieClip Frame 2
stop();
Symbol 482 MovieClip Frame 3
stop();
Symbol 491 MovieClip Frame 10
_root.trFade.FadeInit();
_root.trFade.FadeOut();
Symbol 491 MovieClip Frame 19
_root._main_st._warp.Open();
Symbol 491 MovieClip Frame 24
_root.UFO_.Teleport();
if (!_root.AlienJet.Active) {
_root.UFO_.GetIn();
}
Symbol 491 MovieClip Frame 29
_root._main_st._warp.Close();
Symbol 491 MovieClip Frame 80
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(101, 1, 1, 3);
stop();
Symbol 491 MovieClip Frame 81
_root.UFO_.EnergyFree = true;
Symbol 491 MovieClip Frame 280
_root._main_st.Level_1.Target_1.TRG.vulnerable = true;
_parent._visible = 0;
_root.Talker_.Override();
_root.Talker_.Say(101, 3, 2, 4);
_root.UFO_.EnergyFree = false;
stop();
Symbol 491 MovieClip Frame 281
_root.UFO_.EnergyFree = true;
Symbol 491 MovieClip Frame 360
_root._main_st._warp.Open();
_root.UFO_.EnergyFree = false;
Symbol 491 MovieClip Frame 398
_parent._visible = 0;
stop();
Symbol 491 MovieClip Frame 399
_parent._visible = 0;
_root.trFade.FadeIn();
_root.UFO_.EnergyFree = true;
_root.UFO_.Active = false;
_root.Jet_.Jet_obj.Hold = true;
Symbol 491 MovieClip Frame 419
_parent._visible = 0;
_root._MainSwitch_.SelectLevel("Level_2");
stop();
Symbol 501 MovieClip Frame 1
_root.trFade.FadeOut();
Symbol 501 MovieClip Frame 10
_parent._visible = 1;
_root._main_st._warp.Open();
Symbol 501 MovieClip Frame 20
_root.UFO_.Teleport();
if (!_root.AlienJet.Active) {
_root.UFO_.GetIn();
}
_root.UFO_.EnergyFree = false;
_root.UFO_.Active = true;
_root.Jet_.Jet_obj.Hold = false;
Symbol 501 MovieClip Frame 25
_root._main_st._warp.Close();
Symbol 501 MovieClip Frame 60
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(102, 1, 1, 3);
stop();
Symbol 501 MovieClip Frame 61
_parent._visible = 1;
_root.UFO_.EnergyFree = true;
Symbol 501 MovieClip Frame 93
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(102, 3, 2, 3);
stop();
Symbol 501 MovieClip Frame 94
_parent._visible = 1;
Symbol 501 MovieClip Frame 137
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(102, 4, 2, 5);
stop();
Symbol 501 MovieClip Frame 138
_parent._visible = 1;
Symbol 501 MovieClip Frame 235
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(102, 5, 2, 4);
stop();
Symbol 501 MovieClip Frame 236
_parent._visible = 1;
Symbol 501 MovieClip Frame 296
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(102, 6, 1, 3);
stop();
Symbol 501 MovieClip Frame 297
_parent._visible = 1;
Symbol 501 MovieClip Frame 329
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(102, 7, 2, 4);
stop();
Symbol 501 MovieClip Frame 330
_parent._visible = 1;
Symbol 501 MovieClip Frame 370
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(102, 8, 2, 5);
stop();
Symbol 501 MovieClip Frame 371
_parent._visible = 1;
Symbol 501 MovieClip Frame 415
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(102, 9, 2, 3);
stop();
Symbol 501 MovieClip Frame 416
_parent._visible = 0;
_root._main_st.Level_2.LabEntrance.play();
Symbol 501 MovieClip Frame 471
_parent._visible = 1;
Symbol 501 MovieClip Frame 500
_root._MainSwitch_.flact_L2_2 = true;
_parent._visible = 0;
stop();
Symbol 501 MovieClip Frame 501
_parent._visible = 0;
_root.trFade.FadeIn();
_root.UFO_.EnergyFree = true;
Symbol 501 MovieClip Frame 521
_root.Jet_.Jet_obj.gl_x = -330;
_root.Jet_.Jet_obj.gl_y = -500;
Symbol 501 MovieClip Frame 525
_parent._visible = 0;
_root.UFO_.Active = false;
_root.UFO_._ph_vx = 0;
_root.UFO_._ph_vy = 0;
_root.Jet_.Jet_obj.Hold = true;
_root._MainSwitch_.SelectLevel("Level_3");
stop();
Symbol 512 MovieClip Frame 1
_root.trFade.FadeOut();
Symbol 512 MovieClip Frame 10
_root.UFO_._ph_vx = 0;
_root.UFO_._ph_vy = 0;
_root.UFO_.Teleport();
if (!_root.AlienJet.Active) {
_root.UFO_.GetIn();
}
_root.UFO_.EnergyFree = false;
_root.UFO_.Active = true;
_root.Jet_.Jet_obj.Hold = false;
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 1, 2, 4);
stop();
_root.UFO_.EnergyFree = true;
Symbol 512 MovieClip Frame 11
_parent._visible = 1;
Symbol 512 MovieClip Frame 60
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 2, 2, 3);
stop();
Symbol 512 MovieClip Frame 61
_parent._visible = 1;
_root.UFO_.EnergyFree = true;
Symbol 512 MovieClip Frame 115
_root.UFO_.EnergyFree = false;
Symbol 512 MovieClip Frame 145
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 3, 2, 3);
stop();
Symbol 512 MovieClip Frame 146
_parent._visible = 1;
_root.UFO_.EnergyFree = true;
_root._main_st.Level_3.m3MainComputer.Program.gotoAndStop("mc_login");
Symbol 512 MovieClip Frame 160
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 4, 1, 2);
stop();
Symbol 512 MovieClip Frame 161
_parent._visible = 1;
_root._main_st.Level_3.m3MainComputer.Program.gotoAndStop("mc_pwd");
Symbol 512 MovieClip Frame 175
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 5, 1, 2);
stop();
Symbol 512 MovieClip Frame 176
_parent._visible = 1;
_root._main_st.Level_3.m3MainComputer.Program.gotoAndStop("mc_hacked");
Symbol 512 MovieClip Frame 211
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 6, 2, 3);
stop();
Symbol 512 MovieClip Frame 212
_parent._visible = 1;
_root._main_st.Level_3.m3MainComputer.Program.gotoAndStop("mc_ican");
Symbol 512 MovieClip Frame 290
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 7, 2, 4);
stop();
Symbol 512 MovieClip Frame 291
_parent._visible = 1;
_root._main_st.Level_3.m3MainComputer.Program.gotoAndStop("mc_moonbase");
Symbol 512 MovieClip Frame 331
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 8, 2, 5);
stop();
Symbol 512 MovieClip Frame 332
_parent._visible = 1;
Symbol 512 MovieClip Frame 339
var CurrentLevel = eval ("_root._main_st." + _root._MainSwitch_.CurrentLevel);
i = 0;
while (_root._main_st.Level_3.ObstacleCount >= i) {
var obst = eval ((("_root._main_st." + _root._MainSwitch_.CurrentLevel) + ".obst_") + i);
obst._visible = 0;
i++;
}
Symbol 512 MovieClip Frame 364
_parent._visible = 0;
_root.Talker_.Notify();
_root.Talker_.Say(103, 9, 2, 2);
stop();
Symbol 512 MovieClip Frame 365
_parent._visible = 1;
_parent._visible = 0;
_root.trFade.FadeIn();
Symbol 512 MovieClip Frame 389
_root.exitcode = 1;
_root.play();
Symbol 513 MovieClip Frame 1
stop();
Instance of Symbol 491 MovieClip "m1" in Symbol 513 MovieClip Frame 1
onClipEvent (enterFrame) {
}
Symbol 513 MovieClip Frame 2
stop();
Symbol 513 MovieClip Frame 3
stop();
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 30
_root.trFade.FadeIn();
Symbol 515 MovieClip Frame 50
_root.play();
stop();
Symbol 519 MovieClip Frame 21
_visible = 0;
stop();
Symbol 519 MovieClip Frame 41
gotoAndStop (1);
Symbol 524 Button
on (release, keyPress "<Space>") {
gotoAndStop (2);
}