Frame 1
function fsdPlayAgain() {
theDoge.unloadMovie();
_global.control.changeScreen("titlecard");
}
_root.eventID = "jetix_srmthfg_mmobilize_2342";
subject = "Monkey's mobilize";
playerScore = 0;
Stage.showMenu = false;
if (_global.b == null) {
_global.b = new Object();
AsBroadcaster.initialize(_global.b);
}
_global.APE = function (obj, frameEIN) {
var _local1 = _global;
obj.frameE = frameEIN;
if (_local1.control.gamePaused) {
obj.stop();
}
obj.pf = true;
_local1.b.addListener(obj);
obj.onPause = function () {
obj.stop();
};
obj.onPlay = function () {
if (obj._currentframe >= obj.frameE) {
obj.play();
}
};
obj.onUnload = function () {
_global.b.removeListener(obj);
};
};
_global.RPE = function (obj) {
var _local1 = obj;
_local1.stop();
delete _local1.frameE;
delete _local1.pf;
_global.b.removeListener(_local1);
delete _local1.onPause;
delete _local1.onPlay;
delete _local1.onUnload;
};
Frame 11
stop();
Frame 27
gotoAndPlay ("titlecard");
Frame 33
_global.movieScreenTransit.attachMovie("screenTransit", "scrTransit", 9999999);
_global.movieScreenTransit.scrTransit._x = 300;
_global.movieScreenTransit.scrTransit._y = 200;
_quality = "HIGH";
stop();
Frame 34
stop();
Frame 39
stop();
Frame 45
_quality = "MEDIUM";
stop();
Frame 49
stop();
Frame 50
_global.control.inGameTransition = true;
Frame 65
_global.control.nextLife();
Frame 91
_global.control.inGameTransition = false;
stop();
Frame 93
_global.control.inGameTransition = true;
Frame 108
_global.control.nextMission();
Frame 134
_global.control.inGameTransition = false;
stop();
Frame 136
_global.base.SRMG1.stop();
stop();
Frame 141
_global.base.SRMG1.stop();
stop();
Frame 146
theDoge.loadMovie(_level0.fsd, 1);
stop();
Symbol 3 MovieClip [screenTransit] Frame 1
function changeScreen(screencode) {
nextScreen = screencode;
}
nextScreen = "";
stop();
Symbol 3 MovieClip [screenTransit] Frame 18
_parent._parent.gotoAndPlay(nextScreen);
Symbol 3 MovieClip [screenTransit] Frame 44
gotoAndStop ("stop");
Symbol 23 MovieClip Frame 1
function fsdPlayAgain() {
_global.control.changeScreen("titlecard");
}
Symbol 25 MovieClip Frame 1
_visible = false;
loadedPercent = 0;
loadedTotal = _root.getBytesTotal();
loadedCur = 0;
loadingFinish = false;
Symbol 25 MovieClip Frame 2
if (!loadingFinish) {
if (loadedPercent >= 100) {
_parent.gotoAndPlay(12);
loadingFinish = true;
} else {
loadedCur = _root.getBytesLoaded();
loadedPercent = (loadedCur / loadedTotal) * 100;
_parent.loadScreen.gotoAndStop(int(Math.abs(loadedPercent)));
_parent.loadScreen.txtPercent.text = int(Math.abs(loadedPercent));
}
}
Symbol 25 MovieClip Frame 3
call(2);
Symbol 25 MovieClip Frame 4
gotoAndPlay (3);
Symbol 1220 MovieClip [__Packages.clsInterface] Frame 0
class clsInterface extends MovieClip
{
function clsInterface (passed_mc, newX, newY) {
var _local1 = this;
super();
_local1.inter_mc = passed_mc;
_local1.inter_mc._x = newX;
_local1.inter_mc._y = newY;
_local1.scaleStart = _local1.inter_mc.bar.barVerte.barVerteScale._xscale;
}
function partFound(partNum) {
var _local1 = partNum;
var _local2 = this;
if (_local1 == 1) {
_local2.inter_mc.imagePart.gotoAndPlay("part1");
} else if (_local1 == 2) {
_local2.inter_mc.imagePart.gotoAndPlay("part2");
} else if (_local1 == 3) {
_local2.inter_mc.imagePart.gotoAndPlay("part3");
} else if (_local1 == 4) {
_local2.inter_mc.imagePart.gotoAndPlay("part4");
} else if (_local1 == 5) {
_local2.inter_mc.imagePart.gotoAndPlay("part5");
} else if (_local1 == 6) {
_local2.inter_mc.imagePart.gotoAndPlay("part6");
}
}
function partDropped(partNum) {
var _local1 = this;
var _local2 = partNum;
_local1.inter_mc.imagePart.gotoAndPlay("sound");
if (_local2 == 1) {
_local1.inter_mc.rocketGraph.p1._visible = true;
} else if (_local2 == 2) {
_local1.inter_mc.rocketGraph.p2._visible = true;
} else if (_local2 == 3) {
_local1.inter_mc.rocketGraph.p3._visible = true;
} else if (_local2 == 4) {
_local1.inter_mc.rocketGraph.p4._visible = true;
} else if (_local2 == 5) {
_local1.inter_mc.rocketGraph.p5._visible = true;
} else if (_local2 == 6) {
_local1.inter_mc.rocketGraph.p6._visible = true;
}
}
function fuelDropped() {
var _local1 = this;
_local1.inter_mc.gazMeter.gaz._xscale = _local1.inter_mc.gazMeter.gaz._xscale + (_local1.SSF / _local1.fuelNumber);
}
function damage(damageNum) {
var _local1 = this;
var _local2 = damageNum;
if (_local1.lifeNumber == 1) {
if ((_local1.inter_mc.bar.barVerte.barVerteScale._xscale - ((_local1.scaleStart * _local2) / _local1.energyStart)) > 0) {
_local1.inter_mc.bar.barVerte.barVerteScale._xscale = _local1.inter_mc.bar.barVerte.barVerteScale._xscale - ((_local1.scaleStart * _local2) / _local1.energyStart);
} else {
_local1.inter_mc.bar.barVerte.barVerteScale._xscale = 0;
}
} else if ((_local1.inter_mc.bar.barJaune.barJauneScale._xscale - ((_local1.scaleStart * _local2) / _local1.energyStart)) > 0) {
_local1.inter_mc.bar.barJaune.barJauneScale._xscale = _local1.inter_mc.bar.barJaune.barJauneScale._xscale - ((_local1.scaleStart * _local2) / _local1.energyStart);
} else {
_local1.inter_mc.bar.barJaune.barJauneScale._xscale = 0;
}
}
function changeLife() {
var _local1 = this;
_local1.inter_mc.upGraph.gotoAndPlay("idle");
_local1.inter_mc.imagePart.gotoAndPlay("idleJ");
_local1.inter_mc.bar.barVerte._visible = false;
_local1.inter_mc.bar.barJaune._visible = true;
_local1.lifeNumber = 2;
}
function upGrade(type) {
var _local1 = this;
var _local2 = type;
if (((_local2 == 1) or (_local2 == 2)) or (_local2 == 42)) {
_local1.inter_mc.upGraph.gotoAndPlay("las2");
} else if ((_local2 == 3) or (_local2 == 43)) {
_local1.inter_mc.upGraph.gotoAndPlay("las3");
} else if (_local2 == 4) {
if (_global.control.missionNumber == 1) {
if (_local1.lifeNumber == 1) {
_local1.inter_mc.bar.barVerte.barVerteScale._xscale = _local1.inter_mc.bar.barVerte.barVerteScale._xscale + ((_local1.scaleStart * 2500) / _local1.energyStart);
if (_local1.inter_mc.bar.barVerte.barVerteScale._xscale > _local1.scaleStart) {
_local1.inter_mc.bar.barVerte.barVerteScale._xscale = _local1.scaleStart;
}
} else {
_local1.inter_mc.bar.barJaune.barJauneScale._xscale = _local1.inter_mc.bar.barJaune.barJauneScale._xscale + ((_local1.scaleStart * 2500) / _local1.energyStart);
if (_local1.inter_mc.bar.barJaune.barJauneScale._xscale > _local1.scaleStart) {
_local1.inter_mc.bar.barJaune.barJauneScale._xscale = _local1.scaleStart;
}
}
} else {
if (_local1.inter_mc.enerMain.bar._xscale > 0) {
_local1.inter_mc.enerMain.bar._xscale = _local1.inter_mc.enerMain.bar._xscale + ((_local1.SSM * 2500) / _local1.energyMainStart);
if (_local1.inter_mc.enerMain.bar._xscale > _local1.SSM) {
_local1.inter_mc.enerMain.bar._xscale = _local1.SSM;
}
}
if (_local1.inter_mc.enerBleu.bar._xscale > 0) {
_local1.inter_mc.enerBleu.bar._xscale = _local1.inter_mc.enerBleu.bar._xscale + ((_local1.SSB * 2500) / _local1.energyStart);
if (_local1.inter_mc.enerBleu.bar._xscale > _local1.SSB) {
_local1.inter_mc.enerBleu.bar._xscale = _local1.SSB;
}
}
if (_local1.inter_mc.enerRouge.bar._xscale > 0) {
_local1.inter_mc.enerRouge.bar._xscale = _local1.inter_mc.enerRouge.bar._xscale + ((_local1.SSR * 2500) / _local1.energyStart);
if (_local1.inter_mc.enerRouge.bar._xscale > _local1.SSR) {
_local1.inter_mc.enerRouge.bar._xscale = _local1.SSR;
}
}
}
}
}
function changeMission() {
var _local1 = this;
_local1.inter_mc.removeMovieClip();
_global.base.attachMovie("interScramble", "sTmp", 15000);
_local1.inter_mc = _global.base.sTmp;
_local1.inter_mc._x = 300;
_local1.inter_mc._y = 405;
_local1.SSM = _local1.inter_mc.enerMain.bar._xscale;
_local1.SSB = _local1.inter_mc.enerBleu.bar._xscale;
_local1.SSR = _local1.inter_mc.enerRouge.bar._xscale;
_local1.SSF = _local1.inter_mc.gazMeter.gaz._yscale;
_local1.inter_mc.gazMeter.gaz._xscale = 0;
_local1.inter_mc.monkM.gotoAndStop(1);
_local1.inter_mc.monkB.gotoAndStop(1);
_local1.inter_mc.monkR.gotoAndStop(1);
}
function planeDamage(type, num) {
var _local1 = this;
var _local2 = num;
var _local3 = type;
if (_local3 == 0) {
if ((_local1.inter_mc.enerMain.bar._xscale - ((_local1.SSM * _local2) / _local1.energyMainStart)) > 0) {
_local1.inter_mc.enerMain.bar._xscale = _local1.inter_mc.enerMain.bar._xscale - ((_local1.SSM * _local2) / _local1.energyMainStart);
} else {
_local1.inter_mc.enerMain.bar._xscale = 0;
_local1.inter_mc.monkM.gotoAndStop(2);
}
} else if (_local3 == 1) {
if ((_local1.inter_mc.enerBleu.bar._xscale - ((_local1.SSB * _local2) / _local1.energyStart)) > 0) {
_local1.inter_mc.enerBleu.bar._xscale = _local1.inter_mc.enerBleu.bar._xscale - ((_local1.SSB * _local2) / _local1.energyStart);
} else {
_local1.inter_mc.enerBleu.bar._xscale = 0;
_local1.inter_mc.monkB.gotoAndStop(2);
}
} else if (_local3 == 2) {
if ((_local1.inter_mc.enerRouge.bar._xscale - ((_local1.SSR * _local2) / _local1.energyStart)) > 0) {
_local1.inter_mc.enerRouge.bar._xscale = _local1.inter_mc.enerRouge.bar._xscale - ((_local1.SSR * _local2) / _local1.energyStart);
} else {
_local1.inter_mc.enerRouge.bar._xscale = 0;
_local1.inter_mc.monkR.gotoAndStop(2);
}
}
}
var fuelNumber = 10;
var energyMainStart = 20000;
var energyStart = 10000;
var lifeNumber = 1;
}
Symbol 1221 MovieClip [__Packages.clsWeapon] Frame 0
class clsWeapon extends MovieClip
{
var weapon_mc, weaponType, weapForce;
function clsWeapon (type, rotation, level, startX, startY) {
var _local1 = this;
var _local2 = level;
var _local3 = type;
super();
if (_local3 == 0) {
_global.base.attachMovie("missile", "missile" + _local2, _local2);
_local1.weapon_mc = _global.base["missile" + _local2];
} else if ((_local3 == 1) or (_local3 == 2)) {
_global.base.attachMovie("SRMMvTorpilleLaserBouge01", "laser" + _local2, _local2);
_local1.weapon_mc = _global.base["laser" + _local2];
} else if (_local3 == 10) {
_global.base.attachMovie("SRMMvMissile01", "missile" + _local2, _local2);
_local1.weapon_mc = _global.base["missile" + _local2];
} else if (_local3 == 11) {
_global.base.attachMovie("SRMMvTorpilleLaserBouge01", "missile" + _local2, _local2);
_local1.weapon_mc = _global.base["missile" + _local2];
} else if (_local3 == 42) {
_global.base.attachMovie("SRMMvTorpilleLaserBouge01", "missile" + _local2, _local2);
_local1.weapon_mc = _global.base["missile" + _local2];
} else if ((_local3 == 43) or (_local3 == 53)) {
_global.base.attachMovie("SRMMvTorpilleProtonBouge01", "missile" + _local2, _local2);
_local1.weapon_mc = _global.base["missile" + _local2];
}
_local1.weaponType = _local3;
_local1.weapon_mc._rotation = rotation + 90;
_local1.tmpRotate = rotation;
_local1.tmpRotate = (Math.PI/180) * _local1.tmpRotate;
_local1.weaponMoveX = Math.cos(_local1.tmpRotate) * _local1.weaponSpeed;
_local1.weaponMoveY = Math.sin(_local1.tmpRotate) * _local1.weaponSpeed;
_local1.weapon_mc._x = startX;
_local1.weapon_mc._y = startY;
if ((_local3 == 0) or (_local3 == 10)) {
_local1.weapon_mc._yscale = (_local1.weapon_mc._xscale = 40);
_local1.weapForce = 110;
} else if ((_local3 == 1) or (_local3 == 11)) {
_local1.weapon_mc._yscale = (_local1.weapon_mc._xscale = 40);
_local1.weapForce = 10;
} else if ((_local3 == 2) or (_local3 == 42)) {
_local1.weapon_mc._yscale = (_local1.weapon_mc._xscale = 60);
_local1.weapForce = 20;
} else if (_local3 == 43) {
_local1.weapon_mc._yscale = (_local1.weapon_mc._xscale = 20);
_local1.weapForce = 30;
} else if (_local3 == 53) {
_local1.weapon_mc._yscale = (_local1.weapon_mc._xscale = 30);
_local1.weapForce = 50;
}
}
function moveWeapon() {
var _local1 = this;
if (!_local1.isFinish) {
_local1.weapon_mc._x = _local1.weapon_mc._x + _local1.weaponMoveX;
_local1.weapon_mc._y = _local1.weapon_mc._y + _local1.weaponMoveY;
}
}
function isOnWall(wall_mc) {
var _local1 = this;
if (wall_mc.hitTest(_local1.weapon_mc._x + _local1.weaponMoveX, _local1.weapon_mc._y + _local1.weaponMoveY, true)) {
return(true);
}
return(false);
}
function isOut() {
var _local1 = this;
if ((((_local1.weapon_mc._x < -50) or (_local1.weapon_mc._y < -50)) or (_local1.weapon_mc._x > 650)) or (_local1.weapon_mc._y > 450)) {
return(true);
}
return(false);
}
function remove() {
weapon_mc.removeMovieClip();
isFinish = true;
}
function getType() {
return(weaponType);
}
function checkShot(En_mc) {
if (En_mc.hitBoxTouch.hitTest(weapon_mc._x, weapon_mc._y, true)) {
return(true);
}
return(false);
}
function getForce() {
return(weapForce);
}
function getWeaponMc() {
return(weapon_mc);
}
function getX() {
return(weapon_mc._x);
}
function getY() {
return(weapon_mc._y);
}
function fini() {
return(isFinish);
}
var weaponSpeed = 15;
var weaponMoveX = 0;
var weaponMoveY = 0;
var isFinish = false;
}
Symbol 1222 MovieClip [__Packages.clsCruiser] Frame 0
class clsCruiser extends MovieClip
{
var cruiser_mc, planes;
function clsCruiser (passed_mc, startX, startY) {
var _local1 = this;
super();
_local1.cruiser_mc = passed_mc;
_local1.cruiserCurrentX = startX;
_local1.cruiser_mc._x = startX;
_local1.cruiserCurrentY = startY;
_local1.cruiser_mc._y = startY;
_local1.cruiser_mc._rotation = 180;
_local1.cruiser_mc._yscale = (_local1.cruiser_mc._xscale = 40);
_global.control.cruiser = _local1.cruiser_mc;
}
function moveTheCruiser(direc1, direc2, walls_mc) {
var _local1 = this;
var _local2 = _global;
var _local3 = walls_mc;
_local1.tmpRotate = _local1.currentRotation;
_local1.tmpRotate = (Math.PI/180) * _local1.tmpRotate;
if (direc1 == 0) {
if (direc2 == 0) {
_local1.cruiserSpeed = 7;
_local1.dTmpX = Math.cos(_local1.tmpRotate) * _local1.cruiserSpeed;
_local1.dTmpY = Math.sin(_local1.tmpRotate) * _local1.cruiserSpeed;
_local1.tmpX = _local1.cruiser_mc._x + _local1.dTmpX;
_local1.tmpY = _local1.cruiser_mc._y + _local1.dTmpY;
if (_local1.missionNum == 1) {
if ((((_local3.hitTest(_local1.tmpX + 25, _local1.tmpY + 25, true) == false) and (_local3.hitTest(_local1.tmpX + 25, _local1.tmpY - 25, true) == false)) and (_local3.hitTest(_local1.tmpX - 25, _local1.tmpY + 25, true) == false)) and (_local3.hitTest(_local1.tmpX - 25, _local1.tmpY - 25, true) == false)) {
_local1.noEnHit = false;
_local1.iCpt = 0;
while (_local1.iCpt < _local2.control.backInfos[_local2.control.currentBackNumber].nbGEn()) {
_local1.tmpEn = _local2.control.currentBack["gEn" + _local1.iCpt];
if (_local1.tmpEn._visible == true) {
if ((((_local1.tmpEn.hitTest(_local1.tmpX + 25, _local1.tmpY + 25) == true) or (_local1.tmpEn.hitTest(_local1.tmpX + 25, _local1.tmpY - 25) == true)) or (_local1.tmpEn.hitTest(_local1.tmpX - 25, _local1.tmpY + 25) == true)) or (_local1.tmpEn.hitTest(_local1.tmpX - 25, _local1.tmpY - 25) == true)) {
_local1.noEnHit = true;
}
}
_local1.iCpt++;
}
if (_local1.noEnHit == false) {
_local1.cruiser_mc._x = _local1.tmpX;
_local1.cruiser_mc._y = _local1.tmpY;
}
} else {
_local1.cruiserSlide(1, _local1.tmpX, _local1.tmpY, _local3);
}
} else if (_local1.stopFlag(_local1.tmpX, _local1.tmpY) == 0) {
_local1.cruiser_mc._x = _local1.tmpX;
_local1.cruiser_mc._y = _local1.tmpY;
} else {
_local1.planeSlide(_local1.stopFlag(_local1.tmpX, _local1.tmpY));
_local1.cruiserSpeed = 0;
}
if (_local1.alreadyGoFoward == 0) {
_local1.cruiserAction(1);
_local1.alreadyGoFoward = 1;
}
} else if (direc2 == 1) {
if (_local1.missionNum == 1) {
_local1.tmpX = _local1.cruiser_mc._x - (Math.cos(_local1.tmpRotate) * _local1.cruiserSpeed);
_local1.tmpY = _local1.cruiser_mc._y - (Math.sin(_local1.tmpRotate) * _local1.cruiserSpeed);
if ((((_local3.hitTest(_local1.tmpX + 25, _local1.tmpY + 25, true) == false) and (_local3.hitTest(_local1.tmpX + 25, _local1.tmpY - 25, true) == false)) and (_local3.hitTest(_local1.tmpX - 25, _local1.tmpY + 25, true) == false)) and (_local3.hitTest(_local1.tmpX - 25, _local1.tmpY - 25, true) == false)) {
_local1.noEnHit = false;
_local1.iCpt = 0;
while (_local1.iCpt < _local2.control.backInfos[_local2.control.currentBackNumber].nbGEn()) {
_local1.tmpEn = _local2.control.currentBack["gEn" + _local1.iCpt];
if (_local1.tmpEn._visible == true) {
if ((((_local1.tmpEn.hitTest(_local1.tmpX + 25, _local1.tmpY + 25) == true) or (_local1.tmpEn.hitTest(_local1.tmpX + 25, _local1.tmpY - 25) == true)) or (_local1.tmpEn.hitTest(_local1.tmpX - 25, _local1.tmpY + 25) == true)) or (_local1.tmpEn.hitTest(_local1.tmpX - 25, _local1.tmpY - 25) == true)) {
_local1.noEnHit = true;
}
}
_local1.iCpt++;
}
if (_local1.noEnHit == false) {
_local1.cruiser_mc._x = _local1.tmpX;
_local1.cruiser_mc._y = _local1.tmpY;
}
} else {
_local1.cruiserSlide(2, _local1.tmpX, _local1.tmpY, _local3);
}
if (_local1.alreadyGoBack == 0) {
_local1.cruiserAction(2);
_local1.alreadyGoBack = 1;
}
}
}
} else if (direc1 == 1) {
if (direc2 == 0) {
_local1.cruiser_mc._rotation = _local1.cruiser_mc._rotation - _local1.rotationRate;
_local1.currentRotation = _local1.currentRotation - _local1.rotationRate;
if (_local1.missionNum == 2) {
_local1.turnType = 1;
_local1.cruiserAction(9);
}
} else if (direc2 == 1) {
_local1.cruiser_mc._rotation = _local1.cruiser_mc._rotation + _local1.rotationRate;
_local1.currentRotation = _local1.currentRotation + _local1.rotationRate;
if (_local1.missionNum == 2) {
_local1.turnType = 2;
_local1.cruiserAction(10);
}
}
} else if ((direc1 == 2) and (_local1.missionNum == 2)) {
if (_local1.turnType == 1) {
if ((_local1.planes[0][0] > 0) and (_local1.cruiser_mc.main._currentframe < 105)) {
_local1.cruiser_mc.main.gotoAndPlay("backFromLeft");
}
if ((_local1.planes[1][0] > 0) and (_local1.cruiser_mc.bleu._currentframe < 105)) {
_local1.cruiser_mc.bleu.gotoAndPlay("backFromLeft");
}
if ((_local1.planes[2][0] > 0) and (_local1.cruiser_mc.rouge._currentframe < 105)) {
_local1.cruiser_mc.rouge.gotoAndPlay("backFromLeft");
}
_local1.turnType = 0;
} else if (_local1.turnType == 2) {
if ((_local1.planes[0][0] > 0) and (_local1.cruiser_mc.main._currentframe < 105)) {
_local1.cruiser_mc.main.gotoAndPlay("backFromRight");
}
if ((_local1.planes[1][0] > 0) and (_local1.cruiser_mc.bleu._currentframe < 105)) {
_local1.cruiser_mc.bleu.gotoAndPlay("backFromRight");
}
if ((_local1.planes[2][0] > 0) and (_local1.cruiser_mc.rouge._currentframe < 105)) {
_local1.cruiser_mc.rouge.gotoAndPlay("backFromRight");
}
_local1.turnType = 0;
}
} else if ((direc1 == 3) and (_local1.cruiser_mc.main._currentframe < 105)) {
_local1.cruiser_mc.main.plane.gun.gotoAndPlay("TirPince");
_local1.cruiser_mc.main.gotoAndPlay("pince");
} else if (direc1 == 4) {
if (direc2 == 0) {
if (_local1.cruiser_mc._x > 10) {
_local1.turnType = 1;
_local1.cruiserAction(9);
_local1.cruiser_mc._x = _local1.cruiser_mc._x - _local1.cruiserSpeed;
}
} else if (direc2 == 1) {
if (_local1.cruiser_mc._x < 590) {
_local1.turnType = 2;
_local1.cruiserAction(10);
_local1.cruiser_mc._x = _local1.cruiser_mc._x + _local1.cruiserSpeed;
}
}
}
}
function setIdle() {
var _local1 = this;
if ((_local1.alreadyGoBack == 1) or (_local1.alreadyGoFoward == 1)) {
_local1.cruiserAction(0);
_local1.alreadyGoFoward = 0;
_local1.alreadyGoBack = 0;
}
}
function cruiserAction(actionNum) {
var _local1 = this;
var _local2 = actionNum;
var _local3 = _global;
if ((_local2 == 0) and (_local3.control.cruiserDead == false)) {
_local1.cruiser_mc.gotoAndPlay("idle" + _local1.lifeNumber);
} else if (_local2 == 1) {
if (_local1.missionNum == 1) {
_local1.cruiser_mc.gotoAndPlay("avance" + _local1.lifeNumber);
} else {
if (_local1.planes[0][0] > 0) {
if (_local1.cruiser_mc.main._currentframe < 105) {
_local1.cruiser_mc.main.gotoAndPlay("avance");
}
}
if (_local1.planes[1][0] > 0) {
if (_local1.cruiser_mc.bleu._currentframe < 105) {
_local1.cruiser_mc.bleu.gotoAndPlay("avance");
}
}
if (_local1.planes[2][0] > 0) {
if (_local1.cruiser_mc.rouge._currentframe < 105) {
_local1.cruiser_mc.rouge.gotoAndPlay("avance");
}
}
}
} else if ((_local2 == 2) and (_local3.control.cruiserDead == false)) {
_local1.cruiser_mc.gotoAndPlay("recule" + _local1.lifeNumber);
} else if ((_local2 == 3) and (_local3.control.cruiserDead == false)) {
_local1.cruiser_mc.gotoAndPlay("tireMissile" + _local1.lifeNumber);
} else if ((_local2 == 4) and (_local3.control.cruiserDead == false)) {
_local1.cruiser_mc.gotoAndPlay("tireLaser" + _local1.lifeNumber);
} else if ((_local2 == 5) and (_local3.control.cruiserDead == false)) {
_local1.cruiser_mc.gotoAndPlay("tireLaserUpgrade" + _local1.lifeNumber);
} else if ((_local2 == 6) and (_local3.control.cruiserDead == false)) {
_local1.cruiser_mc.gotoAndPlay("hurt" + _local1.lifeNumber);
} else if (_local2 == 7) {
_local1.cruiser_mc.gotoAndPlay("dead" + _local1.lifeNumber);
} else if ((_local2 == 8) and (_local3.control.cruiserDead == false)) {
_local1.cruiser_mc.gotoAndPlay("tireFullLaser" + _local1.lifeNumber);
} else if ((_local2 == 9) and (_local3.control.cruiserDead == false)) {
if ((_local1.planes[0][0] > 0) and (_local1.cruiser_mc.main._currentframe < 105)) {
_local1.cruiser_mc.main.gotoAndPlay("leftTurn");
}
if ((_local1.planes[1][0] > 0) and (_local1.cruiser_mc.bleu._currentframe < 105)) {
_local1.cruiser_mc.bleu.gotoAndPlay("leftTurn");
}
if ((_local1.planes[2][0] > 0) and (_local1.cruiser_mc.rouge._currentframe < 105)) {
_local1.cruiser_mc.rouge.gotoAndPlay("leftTurn");
}
} else if (_local2 == 10) {
if ((_local1.planes[0][0] > 0) and (_local1.cruiser_mc.main._currentframe < 105)) {
_local1.cruiser_mc.main.gotoAndPlay("rightTurn");
}
if ((_local1.planes[1][0] > 0) and (_local1.cruiser_mc.bleu._currentframe < 105)) {
_local1.cruiser_mc.bleu.gotoAndPlay("rightTurn");
}
if ((_local1.planes[2][0] > 0) and (_local1.cruiser_mc.rouge._currentframe < 105)) {
_local1.cruiser_mc.rouge.gotoAndPlay("rightTurn");
}
} else if (_local2 == 11) {
if ((_local1.planes[1][0] <= 0) and (_local1.planes[2][0] <= 0)) {
_local1.cruiser_mc.main.plane.gun.gotoAndPlay("Tir");
} else {
if (_local1.planes[1][0] > 0) {
_local1.cruiser_mc.bleu.plane.gun.gotoAndPlay("Tir");
}
if (_local1.planes[2][0] > 0) {
_local1.cruiser_mc.rouge.plane.gun.gotoAndPlay("Tir");
}
}
} else if (_local2 == 63) {
_local1.cruiser_mc.main.plane.gun.gotoAndPlay("Tir2");
}
}
function getX() {
return(cruiser_mc._x);
}
function getY() {
return(cruiser_mc._y);
}
function setX(newX) {
cruiser_mc._x = newX;
}
function setY(newY) {
cruiser_mc._y = newY;
}
function hurt(energyLost) {
var _local1 = this;
_local1.cruiserEnergy = _local1.cruiserEnergy - energyLost;
if (_local1.cruiserEnergy <= 0) {
_local1.cruiserAction(7);
_global.control.isDead();
} else {
_local1.cruiserAction(6);
}
}
function hurtPlane(type, energyLost) {
var _local1 = this;
var _local2 = type;
var _local3 = energyLost;
if (_local2 == 0) {
if (_local1.planes[0][0] > 0) {
_local1.planes[0][0] = _local1.planes[0][0] - _local3;
_local1.cruiser_mc.main.gotoAndPlay("hurt");
if (_local1.planes[0][0] <= 0) {
_local1.planeDead(0);
}
}
} else if (_local2 == 1) {
if (_local1.planes[1][0] > 0) {
_local1.planes[1][0] = _local1.planes[1][0] - _local3;
_local1.cruiser_mc.bleu.gotoAndPlay("hurt");
if (_local1.planes[1][0] <= 0) {
_local1.planeDead(1);
}
}
} else if (_local2 == 2) {
if (_local1.planes[2][0] > 0) {
_local1.planes[2][0] = _local1.planes[2][0] - _local3;
_local1.cruiser_mc.rouge.gotoAndPlay("hurt");
if (_local1.planes[2][0] <= 0) {
_local1.planeDead(2);
}
}
}
}
function reInitYellow(newX, newY) {
var _local1 = this;
_local1.cruiserCurrentX = newX;
_local1.cruiser_mc._x = newX;
_local1.cruiserCurrentY = newY;
_local1.cruiser_mc._y = newY;
_local1.cruiser_mc._rotation = 180;
_local1.lifeNumber = 2;
_local1.cruiserAction(0);
_local1.currentRotation = 90;
_local1.cruiserEnergy = 10000;
_local1.laserType = 1;
}
function setLaserType(type) {
laserType = type;
}
function getLaserType() {
return(laserType);
}
function nextMission() {
var _local1 = this;
var _local2 = _global;
_local1.cruiser_mc.removeMovieClip();
_local2.base.attachMovie("scramble", "tmpScramb", 10000);
_local1.cruiser_mc = _local2.base.tmpScramb;
_local1.cruiser_mc._x = 300;
_local1.cruiser_mc._y = 250;
_local1.cruiser_mc._xscale = (_local1.cruiser_mc._yscale = 40);
_local1.cruiser_mc._rotation = 180;
_local2.control.cruiser = _local1.cruiser_mc;
_local1.currentRotation = 90;
_local1.rotationRate = 5;
_local1.cruiserSpeed = 0;
_local1.missionNum = 2;
_local1.laserType = 1;
_local1.planes = new Array();
_local1.planes[0] = new Array();
_local1.planes[0][0] = 20000;
_local1.planes[1] = new Array();
_local1.planes[1][0] = 10000;
_local1.planes[1][1] = 0;
_local1.planes[1][2] = 0;
_local1.planes[2] = new Array();
_local1.planes[2][0] = 10000;
_local1.planes[2][1] = 0;
_local1.planes[1][2] = 0;
}
function bAlive() {
if (planes[1][0] > 0) {
return(true);
}
return(false);
}
function rAlive() {
if (planes[2][0] > 0) {
return(true);
}
return(false);
}
function mAlive() {
if (planes[0][0] > 0) {
return(true);
}
return(false);
}
function getBX() {
return(cruiser_mc.BX());
}
function getBY() {
return(cruiser_mc.BY());
}
function getRX() {
return(cruiser_mc.RX());
}
function getRY() {
return(cruiser_mc.RY());
}
function planeDead(planeNum) {
var _local1 = this;
var _local2 = planeNum;
if (_local2 == 0) {
_global.control.cruiserDead = true;
_global.control.clearWeapon();
_local1.cruiser_mc.main.gotoAndPlay("mort");
} else if (_local2 == 1) {
_local1.planes[1][1] = _local1.cruiser_mc.bleu.posPlaneX();
_local1.planes[1][2] = _local1.cruiser_mc.bleu.posPlaneX();
_local1.cruiser_mc.bleu.gotoAndPlay("mort");
} else if (_local2 == 2) {
_local1.planes[2][1] = _local1.cruiser_mc.bleu.posPlaneX();
_local1.planes[2][2] = _local1.cruiser_mc.bleu.posPlaneX();
_local1.cruiser_mc.rouge.gotoAndPlay("mort");
}
}
function planeSlide(axe) {
var _local1 = this;
if (axe == 2) {
if (((_local1.cruiser_mc._rotation > 0) and (_local1.cruiser_mc._rotation < 90)) or ((_local1.cruiser_mc._rotation < 0) and (_local1.cruiser_mc._rotation > -90))) {
_local1.cruiser_mc._y = _local1.cruiser_mc._y - 2;
} else {
_local1.cruiser_mc._y = _local1.cruiser_mc._y + 2;
}
} else if (axe == 1) {
if (((_local1.cruiser_mc._rotation > 0) and (_local1.cruiser_mc._rotation < 90)) or ((_local1.cruiser_mc._rotation > 90) and (_local1.cruiser_mc._rotation < 180))) {
_local1.cruiser_mc._x = _local1.cruiser_mc._x + 2;
} else {
_local1.cruiser_mc._x = _local1.cruiser_mc._x - 2;
}
}
}
function cruiserSlide(direc, newX, newY, wall) {
var _local1 = this;
var _local2 = wall;
if (direc == 1) {
if ((((_local2.hitTest(_local1.cruiser_mc._x + 25, _local1.tmpY + 25, true) == false) and (_local2.hitTest(_local1.cruiser_mc._x + 25, _local1.tmpY - 25, true) == false)) and (_local2.hitTest(_local1.cruiser_mc._x - 25, _local1.tmpY + 25, true) == false)) and (_local2.hitTest(_local1.cruiser_mc._x - 25, _local1.tmpY - 25, true) == false)) {
if (((_local1.cruiser_mc._rotation > 0) and (_local1.cruiser_mc._rotation < 90)) or ((_local1.cruiser_mc._rotation < 0) and (_local1.cruiser_mc._rotation > -90))) {
_local1.cruiser_mc._y = _local1.cruiser_mc._y - 2;
} else {
_local1.cruiser_mc._y = _local1.cruiser_mc._y + 2;
}
}
if ((((_local2.hitTest(_local1.tmpX + 25, _local1.cruiser_mc._y + 25, true) == false) and (_local2.hitTest(_local1.tmpX + 25, _local1.cruiser_mc._y - 25, true) == false)) and (_local2.hitTest(_local1.tmpX - 25, _local1.cruiser_mc._y + 25, true) == false)) and (_local2.hitTest(_local1.tmpX - 25, _local1.cruiser_mc._y - 25, true) == false)) {
if (((_local1.cruiser_mc._rotation > 0) and (_local1.cruiser_mc._rotation < 90)) or ((_local1.cruiser_mc._rotation > 90) and (_local1.cruiser_mc._rotation < 180))) {
_local1.cruiser_mc._x = _local1.cruiser_mc._x + 2;
} else {
_local1.cruiser_mc._x = _local1.cruiser_mc._x - 2;
}
}
} else if (direc == 2) {
if ((((_local2.hitTest(_local1.cruiser_mc._x + 25, _local1.tmpY + 25, true) == false) and (_local2.hitTest(_local1.cruiser_mc._x + 25, _local1.tmpY - 25, true) == false)) and (_local2.hitTest(_local1.cruiser_mc._x - 25, _local1.tmpY + 25, true) == false)) and (_local2.hitTest(_local1.cruiser_mc._x - 25, _local1.tmpY - 25, true) == false)) {
if (((_local1.cruiser_mc._rotation > 0) and (_local1.cruiser_mc._rotation < 90)) or ((_local1.cruiser_mc._rotation < 0) and (_local1.cruiser_mc._rotation > -90))) {
_local1.cruiser_mc._y = _local1.cruiser_mc._y + 2;
} else {
_local1.cruiser_mc._y = _local1.cruiser_mc._y - 2;
}
}
if ((((_local2.hitTest(_local1.tmpX + 25, _local1.cruiser_mc._y + 25, true) == false) and (_local2.hitTest(_local1.tmpX + 25, _local1.cruiser_mc._y - 25, true) == false)) and (_local2.hitTest(_local1.tmpX - 25, _local1.cruiser_mc._y + 25, true) == false)) and (_local2.hitTest(_local1.tmpX - 25, _local1.cruiser_mc._y - 25, true) == false)) {
if (((_local1.cruiser_mc._rotation > 0) and (_local1.cruiser_mc._rotation < 90)) or ((_local1.cruiser_mc._rotation > 90) and (_local1.cruiser_mc._rotation < 180))) {
_local1.cruiser_mc._x = _local1.cruiser_mc._x - 2;
} else {
_local1.cruiser_mc._x = _local1.cruiser_mc._x + 2;
}
}
}
}
function stopFlag(nX, nY) {
var _local1 = _global;
var _local2 = this;
_local2.flagToStop = 0;
if (((_local1.control.currentBackNumber == 0) or (_local1.control.currentBackNumber == 1)) or (_local1.control.currentBackNumber == 2)) {
if (nY <= 60) {
_local2.flagToStop = 1;
}
}
if (((_local1.control.currentBackNumber == 15) or (_local1.control.currentBackNumber == 16)) or (_local1.control.currentBackNumber == 17)) {
if (nY >= 275) {
_local2.flagToStop = 1;
}
}
if ((((((_local1.control.currentBackNumber == 0) or (_local1.control.currentBackNumber == 3)) or (_local1.control.currentBackNumber == 6)) or (_local1.control.currentBackNumber == 9)) or (_local1.control.currentBackNumber == 12)) or (_local1.control.currentBackNumber == 15)) {
if (nX <= 60) {
if (_local2.flagToStop == 1) {
_local2.flagToStop = 3;
} else {
_local2.flagToStop = 2;
}
}
}
if ((((((_local1.control.currentBackNumber == 2) or (_local1.control.currentBackNumber == 5)) or (_local1.control.currentBackNumber == 8)) or (_local1.control.currentBackNumber == 11)) or (_local1.control.currentBackNumber == 14)) or (_local1.control.currentBackNumber == 17)) {
if (nX >= 540) {
if (_local2.flagToStop == 1) {
_local2.flagToStop = 3;
} else {
_local2.flagToStop = 2;
}
}
}
return(_local2.flagToStop);
}
function stopIt() {
var _local1 = this;
if (_local1.cruiserSpeed > 0) {
_local1.cruiserSpeed = _local1.cruiserSpeed - 0.2;
if (_local1.cruiserSpeed < 0.8) {
_local1.cruiserSpeed = 1.5;
}
_local1.tmpX = _local1.cruiser_mc._x + (Math.cos(_local1.tmpRotate) * _local1.cruiserSpeed);
_local1.tmpY = _local1.cruiser_mc._y + (Math.sin(_local1.tmpRotate) * _local1.cruiserSpeed);
if (_local1.stopFlag(_local1.tmpX, _local1.tmpY) == 0) {
_local1.cruiser_mc._x = _local1.tmpX;
_local1.cruiser_mc._y = _local1.tmpY;
} else {
_local1.planeSlide(_local1.stopFlag(_local1.tmpX, _local1.tmpY));
_local1.cruiserSpeed = 0;
}
}
}
function getEnergy() {
var _local1 = this;
if (_local1.missionNum == 1) {
_local1.cruiserEnergy = _local1.cruiserEnergy + 2500;
if (_local1.cruiserEnergy > 10000) {
_local1.cruiserEnergy = 10000;
}
} else {
_local1.planes[0][0] = _local1.planes[0][0] + 2500;
if (_local1.planes[0][0] > 20000) {
_local1.planes[0][0] = 20000;
}
if (_local1.planes[1][0] > 0) {
_local1.planes[1][0] = _local1.planes[1][0] + 2500;
if (_local1.planes[1][0] > 10000) {
_local1.planes[1][0] = 10000;
}
}
if (_local1.planes[2][0] > 0) {
_local1.planes[2][0] = _local1.planes[2][0] + 2500;
if (_local1.planes[2][0] > 10000) {
_local1.planes[2][0] = 10000;
}
}
}
}
var currentRotation = 90;
var cruiserSpeed = 7;
var cruiserCurrentX = 0;
var cruiserCurrentY = 0;
var tmpRotate = 0;
var rotationRate = 5;
var alreadyGoFoward = 0;
var alreadyGoBack = 0;
var cruiserEnergy = 10000;
var turnType = 0;
var lifeNumber = 1;
var laserType = 1;
var missionNum = 1;
var isInHurt = false;
var flagToStop = 0;
var noEnHit = false;
}
Symbol 1223 MovieClip [__Packages.clsBackInfo] Frame 0
class clsBackInfo
{
var gEnemy, minesArray, airMinesArray;
function clsBackInfo (id, nMines, nAirMines, nbUpgrade, ngEnemy, partId, fuelCell, pEX, pEY, safeX, safeY) {
var _local1 = this;
var _local2 = nMines;
var _local3 = ngEnemy;
_local1.pointEntreX = pEX;
_local1.pointEntreY = pEY;
_local1.safePointX = safeX;
_local1.safePointY = safeY;
_local1.minesArray = new Array();
_local1.airMinesArray = new Array();
_local1.part = new Array();
_local1.fuel = new Array();
_local1.gEnemy = new Array();
_local1.upGrades = new Array();
_local1.idPanel = id;
_local1.nbMines = _local2;
if (_local2 > 0) {
_local1.iCpt = 0;
while (_local1.iCpt < _local2) {
_local1.minesArray[_local1.iCpt] = new Array();
_local1.minesArray[_local1.iCpt][0] = 0;
_local1.iCpt++;
}
}
if (nAirMines > 0) {
_local1.iCpt = 0;
while (_local1.iCpt < nAirMines) {
_local1.airMinesArray[_local1.iCpt] = new Array();
_local1.airMinesArray[_local1.iCpt][0] = 0;
_local1.iCpt++;
}
}
if (_local3 > 0) {
_local1.iCpt = 0;
while (_local1.iCpt < _local3) {
_local1.gEnemy[_local1.iCpt] = new Array();
_local1.gEnemy[_local1.iCpt][0] = 40;
_local1.gEnemy[_local1.iCpt][1] = 0;
_local1.gEnemy[_local1.iCpt][2] = 0;
_local1.gEnemy[_local1.iCpt][3] = 0;
_local1.iCpt++;
}
}
if (nbUpgrade > 0) {
_local1.iCpt = 0;
while (_local1.iCpt < nbUpgrade) {
_local1.upGrades[_local1.iCpt] = new Array();
_local1.upGrades[_local1.iCpt][0] = 0;
_local1.iCpt++;
}
}
if (partId != 99) {
_local1.part[0] = partId;
_local1.part[1] = 0;
} else {
_local1.part[0] = 99;
}
if (fuelCell != 0) {
_local1.fuel[0] = 1;
_local1.fuel[1] = 0;
} else {
_local1.fuel[0] = 0;
}
}
function loadPanel(missionNum) {
var _local1 = this;
var _local2 = _global;
if (missionNum == 1) {
_local1.iCpt = 0;
while (_local1.iCpt < _local1.minesArray.length) {
_local1.tmpName = "mine" + _local1.iCpt;
if (_local1.minesArray[_local1.iCpt][0] == 0) {
_local2.control.backTmp[_local1.tmpName]._visible = true;
} else {
_local2.control.backTmp[_local1.tmpName]._visible = false;
_local2.control.backTmp[_local1.tmpName].ai.isexploded = true;
}
_local1.iCpt++;
}
_local1.iCpt = 0;
while (_local1.iCpt < _local1.gEnemy.length) {
_local1.tmpName = "gEn" + _local1.iCpt;
if (_local1.gEnemy[_local1.iCpt][0] > 0) {
if (_local1.gEnemy[_local1.iCpt][3] == 0) {
_local2.control.backTmp[_local1.tmpName]._visible = true;
} else {
_local2.control.backTmp.attachMovie("enTank" + _local1.gEnemy[_local1.iCpt][3], _local1.tmpName, _local2.control.currentEnemyDepth);
_local2.control.currentEnemyDepth++;
}
if ((_local1.gEnemy[_local1.iCpt][1] != 0) and (_local1.gEnemy[_local1.iCpt][2] != 0)) {
_local2.control.backTmp[_local1.tmpName]._x = _local1.gEnemy[_local1.iCpt][1];
_local2.control.backTmp[_local1.tmpName]._y = _local1.gEnemy[_local1.iCpt][2];
}
} else {
_local2.control.backTmp[_local1.tmpName]._visible = false;
}
_local1.iCpt++;
}
_local1.iCpt = 0;
while (_local1.iCpt < _local1.upGrades.length) {
_local1.tmpName = "upgrade" + _local1.iCpt;
if (_local1.upGrades[_local1.iCpt][0] == 0) {
_local2.control.backTmp[_local1.tmpName]._visible = true;
} else {
_local2.control.backTmp[_local1.tmpName]._visible = false;
}
_local1.iCpt++;
}
_local1.iCpt = 0;
while (_local1.iCpt < _local1.airMinesArray.length) {
_local2.control.backTmp["airMine" + _local1.iCpt]._visible = false;
_local1.iCpt++;
}
if (_local1.part[0] != 99) {
_local1.tmpName = "part" + _local1.part[0];
if (_local1.part[1] == 0) {
_local2.control.backTmp[_local1.tmpName]._visible = true;
} else {
_local2.control.backTmp[_local1.tmpName]._visible = false;
}
}
if (_local1.fuel[0] != 0) {
_local2.control.backTmp.fuel0._visible = false;
}
} else if (missionNum == 2) {
_local1.iCpt = 0;
while (_local1.iCpt < _local1.minesArray.length) {
_local1.tmpName = "mine" + _local1.iCpt;
_local2.control.backTmp[_local1.tmpName]._visible = false;
_local1.iCpt++;
}
_local1.iCpt = 0;
while (_local1.iCpt < _local1.upGrades.length) {
_local1.tmpName = "upgrade" + _local1.iCpt;
if (_local1.upGrades[_local1.iCpt][0] == 0) {
_local2.control.backTmp[_local1.tmpName]._visible = true;
} else {
_local2.control.backTmp[_local1.tmpName]._visible = false;
}
_local1.iCpt++;
}
_local1.iCpt = 0;
while (_local1.iCpt < _local1.gEnemy.length) {
_local1.tmpName = "gEn" + _local1.iCpt;
_local2.control.backTmp[_local1.tmpName]._visible = false;
_local1.iCpt++;
}
if (_local1.fuel[0] != 0) {
if (_local1.fuel[1] == 0) {
_local2.control.backTmp.fuel0._visible = true;
} else {
_local2.control.backTmp.fuel0._visible = false;
}
}
_local1.iCpt = 0;
while (_local1.iCpt < _local1.airMinesArray.length) {
if (_local1.airMinesArray[_local1.iCpt][0] == 0) {
_local2.control.backTmp["airMine" + _local1.iCpt]._visible = true;
} else {
_local2.control.backTmp["airMine" + _local1.iCpt]._visible = false;
}
_local1.iCpt++;
}
if (_local1.part[0] != 99) {
_local1.tmpName = "part" + _local1.part[0];
_local2.control.backTmp[_local1.tmpName]._visible = false;
}
}
}
function hitSomething(itemId, itemNumber) {
var _local1 = itemId;
var _local2 = this;
var _local3 = itemNumber;
if (_local1 == 0) {
_local2.minesArray[_local3][0] = 1;
} else if (_local1 == 1) {
_local2.airMinesArray[_local3][0] = 1;
} else if (_local1 == 2) {
_local2.part[1] = 2;
_global.control.theInter.partFound(_local3);
} else if (_local1 == 3) {
_local2.upGrades[_local3][0] = 1;
} else if (_local1 == 4) {
_local2.fuel[1] = 2;
}
}
function stopTransport() {
var _local1 = this;
if (_local1.part[0] != 99) {
if (_local1.part[1] == 2) {
_local1.part[1] = 0;
}
}
}
function dropPart() {
var _local1 = this;
if (_local1.part[0] != 99) {
if (_local1.part[1] == 2) {
_global.control.theInter.partDropped(_local1.part[0]);
_local1.part[1] = 1;
}
}
if (_local1.fuel[0] != 0) {
if (_local1.fuel[1] == 2) {
_global.control.theInter.fuelDropped();
_local1.fuel[1] = 1;
}
}
}
function nbGEn() {
return(gEnemy.length);
}
function nbGMine() {
return(minesArray.length);
}
function nbAMine() {
return(airMinesArray.length);
}
function gEnShot(Numb, Force) {
var _local1 = Numb;
var _local2 = _global;
gEnemy[_local1][0] = gEnemy[_local1][0] - Force;
if (_local2.control.currentBack["gEn" + _local1].ai.getIsDead() == false) {
if (gEnemy[_local1][0] > 0) {
_local2.control.currentBack["gEn" + _local1].gotoAndPlay("hurt");
} else {
_local2.control.currentBack["gEn" + _local1].ai.isDead();
_local2.control.currentBack["gEn" + _local1].gotoAndPlay("mort");
_local2.control.setScore(100);
}
}
}
function reInitUpgrades() {
var _local1 = this;
_local1.iCpt = 0;
while (_local1.iCpt < _local1.upGrades.length) {
_local1.upGrades[_local1.iCpt][0] = 0;
_local1.iCpt++;
}
}
function saveEnPos(curBack) {
var _local1 = this;
var _local2 = curBack;
_local1.iCpt = 0;
while (_local1.iCpt < _local1.gEnemy.length) {
_local1.tmpName = "gEn" + _local1.iCpt;
if (_local1.gEnemy[_local1.iCpt][0] > 0) {
if ((((_local2[_local1.tmpName]._x < -190) or (_local2[_local1.tmpName]._x > 185)) or (_local2[_local1.tmpName]._y < -100)) or (_local2[_local1.tmpName]._y > 35)) {
_local1.gEnemy[_local1.iCpt][1] = _local1.safePointX;
_local1.gEnemy[_local1.iCpt][2] = _local1.safePointY;
} else {
_local1.gEnemy[_local1.iCpt][1] = _local2[_local1.tmpName]._x;
_local1.gEnemy[_local1.iCpt][2] = _local2[_local1.tmpName]._y;
}
}
_local1.iCpt++;
}
}
function newPlane() {
maxAEn--;
}
function launchNewEn(codeEnemy) {
var _local1 = this;
var _local2 = _global;
_local1.maxGEn--;
_local2.control.currentEnemyDepth++;
if (codeEnemy == 0) {
do {
_local1.tmpNum = Math.round(Math.random() * 3);
} while (_local1.tmpNum == 0);
_local2.control.currentBack.attachMovie("enTank" + _local1.tmpNum, "gEn" + _local1.gEnemy.length, _local2.control.currentEnemyDepth);
_local2.control.currentBack["gEn" + _local1.gEnemy.length]._x = _local1.pointEntreX;
_local2.control.currentBack["gEn" + _local1.gEnemy.length]._y = _local1.pointEntreY;
_local1.tmpX = ((_local2.control.currentBack["gEn" + _local1.gEnemy.length]._x + 300) - _local2.control.cruiser._x) * -1;
_local1.tmpY = ((_local2.control.currentBack["gEn" + _local1.gEnemy.length]._y + 200) - _local2.control.cruiser._y) * -1;
_local1.tmpAngle = Math.atan(_local1.tmpY / _local1.tmpX) / (Math.PI/180);
if (_local1.tmpX < 0) {
_local1.tmpAngle = _local1.tmpAngle + 180;
}
if ((_local1.tmpX >= 0) && (_local1.tmpY < 0)) {
_local1.tmpAngle = _local1.tmpAngle + 360;
}
_local1.tmpAngle = _local1.tmpAngle - 90;
_local2.control.currentBack["gEn" + _local1.gEnemy.length]._rotation = _local1.tmpAngle;
if (_local1.gEnemy.length == 0) {
_local1.gEnemy[0] = new Array();
_local1.gEnemy[0][0] = 100;
_local1.gEnemy[0][1] = 0;
_local1.gEnemy[0][2] = 0;
_local1.gEnemy[0][3] = _local1.tmpNum;
} else {
_local1.tmpNum2 = _local1.gEnemy.length;
_local1.gEnemy[_local1.tmpNum2] = new Array();
_local1.gEnemy[_local1.tmpNum2][0] = 100;
_local1.gEnemy[_local1.tmpNum2][1] = 0;
_local1.gEnemy[_local1.tmpNum2][2] = 0;
_local1.gEnemy[_local1.tmpNum2][3] = _local1.tmpNum;
}
}
}
function isEnemyEmpty(codeEn) {
var _local1 = this;
_local1.tmpNum = 0;
if (codeEn == 0) {
_local1.iCpt = 0;
while (_local1.iCpt < _local1.gEnemy.length) {
if (_local1.gEnemy[_local1.iCpt][0] > 0) {
_local1.tmpNum = 1;
}
_local1.iCpt++;
}
if (_local1.tmpNum == 0) {
return(true);
}
return(false);
}
return(undefined);
}
function gEnPossible() {
if (maxGEn > 0) {
return(true);
}
return(false);
}
function aEnPossible() {
if (maxAEn > 0) {
return(true);
}
return(false);
}
function clearEnemy() {
var _local1 = this;
var _local2 = _global;
_local1.iCpt = 0;
while (_local1.iCpt < _local1.gEnemy.length) {
if (_local1.gEnemy[_local1.iCpt][0] >= 0) {
_local1.tmpName = "gEn" + _local1.iCpt;
_local1.gEnemy[_local1.iCpt][0] = -5;
_local2.control.currentBack[_local1.tmpName]._visible = false;
}
_local1.iCpt++;
}
}
var maxGEn = 10;
var maxAEn = 10;
}
Symbol 62 MovieClip Frame 1
this._visible = false;
stop();
Symbol 64 MovieClip Frame 1
this._visible = false;
_parent._xscale = (_parent._yscale = 40);
isexploded = false;
Symbol 64 MovieClip Frame 2
if (((isexploded == false) and (_parent._visible == true)) and (_global.control.isCarrying == false)) {
if (_global.control.missionNumber == 2) {
if ((_global.control.cruiser.main._currentframe > 72) and (_global.control.cruiser.main._currentframe < 103)) {
if (_global.control.cruiser.main.plane.pin.hitTest(_parent.hitBox)) {
if (_global.control.cruiser.main.plane.pin.max == true) {
isexploded = true;
_parent._visible = false;
_global.control.cruiser.main.plane.pin.iconF._visible = true;
_global.control.changeBackInfo(4, 0);
_global.control.isCarrying = true;
_global.control.setScore(300);
_global.control.isInDrop();
_parent.gotoAndStop("sound");
}
}
}
}
}
Symbol 64 MovieClip Frame 3
gotoAndPlay (2);
Symbol 72 MovieClip Frame 1
stop();
Symbol 74 MovieClip Frame 1
this._visible = false;
stop();
Symbol 80 MovieClip Frame 1
this._visible = false;
_parent._xscale = (_parent._yscale = 40);
isFind = false;
Symbol 80 MovieClip Frame 2
if (((isFind == false) and (_parent._visible == true)) and (_global.control.isCarrying == false)) {
if (_global.control.cruiser.hitBox.hitTest(_parent.hitBox)) {
isFind = true;
_global.control.changeBackInfo(2, int(substring(_parent._name, 5, 1)));
_parent._visible = false;
_global.control.isCarrying = true;
_global.control.setScore(200);
_global.control.showMsg(1);
}
}
Symbol 80 MovieClip Frame 3
gotoAndPlay (2);
Symbol 90 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 91 MovieClip Frame 1
function isDead() {
iAmDead = true;
}
function getIsDead() {
return(iAmDead);
}
this._visible = false;
if (pf == undefined) {
APE(this, 0);
}
shotWait = 0;
tankSpeed = 1;
rotateSpeed = 0;
moveTime = 60;
rotateTimeline = 0;
rotateTime = true;
xDiff = 0;
yDiff = 0;
bulletDiffX = 0;
bulletDiffY = 0;
iAmDead = false;
isHurt = false;
shotTime = false;
Symbol 91 MovieClip Frame 2
if (!iAmDead) {
if ((((_parent._visible == true) and (_global.control.cruiserDead == false)) and (!_global.control.inTransition)) and (_parent.currentframe < 40)) {
if (_parent.hitBoxTouch.hitTest(_global.control.cruiser.hitBox)) {
if (!isHurt) {
_global.control.hurting(1000);
isHurt = true;
}
}
if (rotateTime) {
if (rotateTimeline == 0) {
oldRotation = _parent._rotation;
x = ((_parent._x + 300) - _global.control.cruiser._x) * -1;
y = ((_parent._y + 200) - _global.control.cruiser._y) * -1;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
nextAngle = angle - 90;
rotateSpeed = 0;
tmpA = (angle - 90) - oldRotation;
if (((tmpA > 350) and (tmpA < 380)) or ((tmpA > -10) and (tmpA < 10))) {
rotateSpeed = 0;
} else if (tmpA < 0) {
rotateSpeed = rotateSpeed - (Math.abs((angle - 90) - oldRotation) / 10);
} else {
rotateSpeed = rotateSpeed + (Math.abs((angle - 90) - oldRotation) / 10);
}
bulletDiffX = (_global.control.cruiser._x - (_parent._x + 300)) / 8;
bulletDiffY = (_global.control.cruiser._y - (_parent._y + 200)) / 8;
xDiff = (_global.control.cruiser._x - (_parent._x + 300)) / 150;
yDiff = (_global.control.cruiser._y - (_parent._y + 200)) / 150;
rotateTimeline++;
} else if ((rotateTimeline < 10) and (rotateTimeline > 0)) {
_parent._rotation = _parent._rotation + rotateSpeed;
rotateTimeline++;
} else if (rotateTimeline >= 10) {
_parent._rotation = nextAngle;
rotateTime = false;
shotTime = true;
}
}
if (shotTime == true) {
if (shotWait > 0) {
if (_parent._currentframe < 29) {
_parent.gotoAndPlay("tire");
shotWait = 0;
moveTime = 0;
shotTime = false;
isHurt = false;
rotateTimeline = 0;
}
} else {
shotWait++;
}
}
if ((rotateTime == false) and (moveTime < 50)) {
if ((((_global.control.currentBack.hitWall.hitTest((_parent._x + 315) + xDiff, (_parent._y + 215) + yDiff, true) == false) and (_global.control.currentBack.hitWall.hitTest((_parent._x + 295) + xDiff, (_parent._y + 195) + yDiff, true) == false)) and (_global.control.currentBack.hitWall.hitTest((_parent._x + 315) + xDiff, (_parent._y + 195) + yDiff, true) == false)) and (_global.control.currentBack.hitWall.hitTest((_parent._x + 295) + xDiff, (_parent._y + 215) + yDiff, true) == false)) {
if (_parent.hitBoxTouch.hitTest(_global.control.cruiser.hitRange) == false) {
_parent._x = _parent._x + xDiff;
_parent._y = _parent._y + yDiff;
}
}
moveTime++;
} else if (((rotateTime == false) and (moveTime >= 50)) and (_parent._currentframe < 29)) {
_parent.gotoAndPlay("idle");
rotateTime = true;
}
}
}
Symbol 91 MovieClip Frame 3
gotoAndPlay (2);
Symbol 95 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 96 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 103 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 104 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 108 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 108 MovieClip Frame 2
if (_global.control.missionNumber == 1) {
if (la.hitTest(_global.control.cruiser)) {
_global.control.hurting(290);
}
} else if (la.hitTest(_global.control.cruiser.bleu.hitBox)) {
_global.control.hurtingPlane(1, 75);
} else if (la.hitTest(_global.control.cruiser.rouge.hitBox)) {
_global.control.hurtingPlane(2, 75);
} else if (la.hitTest(_global.control.cruiser.main.hitBox)) {
_global.control.hurtingPlane(0, 75);
}
Symbol 108 MovieClip Frame 3
if (_global.control.missionNumber == 1) {
if (la.hitTest(_global.control.cruiser)) {
_global.control.hurting(290);
_parent.gotoAndPlay("avance");
}
} else if (la.hitTest(_global.control.cruiser.bleu.hitBox)) {
_global.control.hurtingPlane(1, 75);
} else if (la.hitTest(_global.control.cruiser.rouge.hitBox)) {
_global.control.hurtingPlane(2, 75);
} else if (la.hitTest(_global.control.cruiser.main.hitBox)) {
_global.control.hurtingPlane(0, 75);
}
Symbol 132 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 169 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 171 MovieClip [enTank2] Frame 1
if (pf == undefined) {
APE(this, 0);
}
this._xscale = (this._yscale = 55);
Symbol 171 MovieClip [enTank2] Frame 6
gotoAndPlay ("idle");
Symbol 171 MovieClip [enTank2] Frame 17
gotoAndPlay ("avance");
Symbol 171 MovieClip [enTank2] Frame 19
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 171 MovieClip [enTank2] Frame 20
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 171 MovieClip [enTank2] Frame 21
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 171 MovieClip [enTank2] Frame 22
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 171 MovieClip [enTank2] Frame 23
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 171 MovieClip [enTank2] Frame 24
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 171 MovieClip [enTank2] Frame 25
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 171 MovieClip [enTank2] Frame 26
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
gotoAndPlay ("avance");
Symbol 171 MovieClip [enTank2] Frame 28
gotoAndPlay ("idle");
Symbol 171 MovieClip [enTank2] Frame 39
gotoAndPlay ("idle");
Symbol 171 MovieClip [enTank2] Frame 46
this._visible = false;
stop();
Symbol 172 MovieClip Frame 1
function isShot(force) {
energy = energy - force;
_parent.gotoAndPlay("hurt");
if (energy <= 0) {
_global.control.setScore(75);
_parent.gotoAndPlay("explode");
isexploded = true;
}
}
function isDead() {
if (!isexploded) {
return(false);
}
return(true);
}
this._visible = false;
_parent._xscale = (_parent._yscale = 60);
if (_global.control.missionNumber == 1) {
if (_global.control.backInfos[_global.control.currentBackNumber].minesArray[int(substring(_parent._name, 5, 1))][0] == 0) {
isexploded = false;
} else {
isexploded = true;
}
} else if (_global.control.backInfos[_global.control.currentBackNumber].airMinesArray[int(substring(_parent._name, 8, 1))][0] == 0) {
isexploded = false;
} else {
isexploded = true;
}
energy = 30;
Symbol 172 MovieClip Frame 2
if ((isexploded == false) and (_parent._visible == true)) {
if (_global.control.missionNumber == 1) {
if (_global.control.cruiser.hitBox.hitTest(_parent.hitBoxTouch)) {
_global.control.hurting(1900);
_parent.gotoAndPlay("explode");
isexploded = true;
energy = -10;
}
} else {
if (_global.control.cruiser.bleu.hitBox.hitTest(_parent.hitBoxTouch) and _global.control.theCruiser.bAlive()) {
isexploded = true;
_global.control.hurtingPlane(1, 1500);
_parent.gotoAndPlay("explode");
energy = -10;
}
if (_global.control.cruiser.rouge.hitBox.hitTest(_parent.hitBoxTouch) and _global.control.theCruiser.rAlive()) {
isexploded = true;
_global.control.hurtingPlane(2, 1500);
_parent.gotoAndPlay("explode");
energy = -10;
}
if (_global.control.cruiser.main.hitBox.hitTest(_parent.hitBoxTouch)) {
isexploded = true;
_global.control.hurtingPlane(0, 1500);
_parent.gotoAndPlay("explode");
energy = -10;
}
}
}
Symbol 172 MovieClip Frame 3
gotoAndPlay (2);
Symbol 187 MovieClip Frame 4
stop();
Symbol 187 MovieClip Frame 6
gotoAndPlay ("idle");
Symbol 187 MovieClip Frame 22
_global.control.changeBackInfo(0, int(substring(this._name, 5, 1)));
stop();
Symbol 188 MovieClip Frame 23
gotoAndPlay ("idle");
Symbol 188 MovieClip Frame 26
gotoAndPlay ("idle");
Symbol 188 MovieClip Frame 27
_global.control.changeBackInfo(1, int(substring(this._name, 8, 1)));
Symbol 188 MovieClip Frame 54
stop();
Symbol 209 MovieClip Frame 1
this._visible = false;
stop();
Symbol 210 MovieClip Frame 1
this._visible = false;
Symbol 210 MovieClip Frame 2
if (_global.control.missionNumber == 1) {
if (_global.control.cruiser.hitBox.hitTest(_parent.hitBox) and (_global.control.isCarrying == true)) {
_global.control.isInDrop();
}
} else if (_global.control.cruiser.main.hitBox.hitTest(_parent.hitBox) and (_global.control.isCarrying == true)) {
_global.control.isInDrop();
}
Symbol 210 MovieClip Frame 3
gotoAndPlay (2);
Symbol 235 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 31
_global.control.showMsg(2);
gotoAndPlay ("stop");
Symbol 236 MovieClip Frame 1
function playerHit(code, weaponForce) {
var _local1 = _parent;
var _local2 = weaponForce;
var _local3 = code;
if (_local3 == 0) {
if (_local1.mainGun._currentframe == 1) {
_local1.mainGun.gotoAndStop("hurt");
mainGunEnergy = mainGunEnergy - _local2;
if (mainGunEnergy <= 0) {
_local1.mainGun.gotoAndStop("dead");
}
}
} else if (_local3 == 1) {
_local1.canon1.gotoAndStop("hurt");
canon1Energy = canon1Energy - _local2;
if (canon1Energy <= 0) {
_local1.canon1.gotoAndStop("dead");
}
} else if (_local3 == 2) {
_local1.canon2.gotoAndStop("hurt");
canon2Energy = canon2Energy - _local2;
if (canon2Energy <= 0) {
_local1.canon2.gotoAndStop("dead");
}
} else if (_local3 == 3) {
if (_local1.hurtPlane._visible == false) {
_local1.hurtPlane._visible = true;
if ((_local1._currentframe < 5) or (_local1._currentframe == 46)) {
_local1.hurtPlane._x = _local1.base._x;
_local1.hurtPlane._y = _local1.base._y;
} else {
_local1.hurtPlane._x = _local1.base2._x;
_local1.hurtPlane._y = _local1.base2._y;
}
_local1.hurtPlane.gotoAndStop("hurt");
bossEnergy = bossEnergy - _local2;
if (bossEnergy <= 0) {
_global.control.setScore(2000);
_local1.hurtPlane.gotoAndStop("dead");
_local1.gotoAndPlay("idle");
noWingsTime = true;
_local1.bossIsDead = true;
_local1.aile1._visible = false;
_local1.aile2._visible = false;
_local1.reactor._visible = false;
_local1.base._visible = false;
_local1.taile1._visible = false;
_local1.taile2._visible = false;
_local1.plate._visible = false;
_local1.wing1._visible = false;
_local1.wing2._visible = false;
_local1.canon1._visible = false;
_local1.canon2._visible = false;
_local1.mainGun._visible = false;
_local1.specialWeap._visible = false;
}
}
}
if (((canon1Energy <= 0) and (canon2Energy <= 0)) and (mainGunEnergy <= 0)) {
onFinal = true;
}
}
this._visible = false;
_parent._xscale = (_parent._yscale = 80);
if (pf == undefined) {
APE(this, 0);
}
tmpScramX = 0;
tmpScramY = 0;
phase1 = true;
phase2 = false;
phase3 = false;
timeSinceLastLittle = 0;
isFiring = false;
nbLittle = 0;
onFinal = false;
bossIsDead = false;
noWingsTime = false;
yDiffPhase1 = (-30 - _parent._y) / 150;
rushNumber = 0;
canMove = true;
canon1Energy = 400;
canon2Energy = 400;
mainGunEnergy = 400;
bossEnergy = 600;
_parent.hurtPlane._visible = false;
Symbol 236 MovieClip Frame 2
if (((_global.control.bossTime != 0) and (!bossIsDead)) and (!_global.control.cruiserDead)) {
if (phase1) {
if (_parent._y < -30) {
_parent._y = _parent._y + yDiffPhase1;
} else {
phase1 = false;
phase2 = true;
}
} else if (phase2) {
if (((_parent.hurtPlane._visible == true) and (_parent._currentframe >= 5)) and (_parent._currentframe <= 43)) {
_parent.hurtPlane._x = _parent.base2._x;
_parent.hurtPlane._y = _parent.base2._y;
}
if ((!onFinal) and canMove) {
if (_global.control.theCruiser.bAlive()) {
tmpScramX = _global.control.cruiser.bleu.BBOXX();
tmpScramY = _global.control.cruiser.bleu.BBOXY();
} else if (_global.control.theCruiser.rAlive()) {
tmpScramX = _global.control.cruiser.rouge.RBOXX();
tmpScramY = _global.control.cruiser.rouge.RBOXY();
} else {
tmpScramX = _global.control.cruiser._x;
tmpScramY = _global.control.cruiser._y;
}
if (canon1Energy > 0) {
x = (_parent.canon1.posX() - tmpScramX) * -1;
y = (_parent.canon1.posY() - tmpScramY) * -1;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
_parent.canon1._rotation = angle - 138;
}
if (canon2Energy > 0) {
x = (_parent.canon2.posX() - tmpScramX) * -1;
y = (_parent.canon2.posY() - tmpScramY) * -1;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
_parent.canon2._rotation = angle - 220;
}
}
if ((!onFinal) and (nbLittle != 4)) {
if (timeSinceLastLittle >= 110) {
if (canon1Energy > 0) {
_parent.canon1.gotoAndStop("shoot");
timeSinceLastLittle = 0;
canMove = false;
}
if (canon2Energy > 0) {
_parent.canon2.gotoAndStop("shoot");
timeSinceLastLittle = 0;
canMove = false;
}
} else {
timeSinceLastLittle++;
if ((!canMove) and (timeSinceLastLittle == 30)) {
canMove = true;
}
}
}
if (!isFiring) {
trace(nbLittle);
if (nbLittle == 0) {
if (mainGunEnergy > 0) {
_parent.mainGun.gotoAndStop("shoot");
isFiring = true;
}
nbLittle = nbLittle + 2;
} else if (nbLittle == 2) {
_parent.gotoAndStop("specialMove");
isFiring = true;
if (onFinal) {
nbLittle = nbLittle + 2;
rushNumber = Math.round(Math.random() * 2) + 1;
} else {
nbLittle = 0;
}
} else if ((nbLittle == 4) and onFinal) {
_parent.gotoAndPlay("Rush");
isFiring = true;
rushNumber--;
if (rushNumber == 0) {
nbLittle = 0;
}
}
}
}
}
Symbol 236 MovieClip Frame 3
gotoAndPlay (2);
Symbol 258 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 258 MovieClip Frame 31
_parent.gotoAndStop("stop");
Symbol 259 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 259 MovieClip Frame 12
_parent.gotoAndPlay("stop");
Symbol 265 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 265 MovieClip Frame 13
_parent.gotoAndPlay("broke");
Symbol 266 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
function posX() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = Gun._x;
dragSq.y = Gun._y;
localToGlobal(dragSq);
return(dragSq.x);
}
function posY() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = Gun._x;
dragSq.y = Gun._y;
localToGlobal(dragSq);
return(dragSq.y);
}
Symbol 267 MovieClip Frame 3
stop();
Symbol 267 MovieClip Frame 4
stop();
Symbol 267 MovieClip Frame 5
stop();
Symbol 267 MovieClip Frame 6
stop();
Symbol 267 MovieClip Frame 7
stop();
Symbol 279 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 283 MovieClip Frame 2
if (this.hitTest(_global.control.cruiser.bleu.hitBox)) {
_global.control.hurtingPlane(1, 30);
}
if (this.hitTest(_global.control.cruiser.rouge.hitBox)) {
_global.control.hurtingPlane(2, 30);
}
if (this.hitTest(_global.control.cruiser.main.hitBox)) {
_global.control.hurtingPlane(0, 30);
}
gotoAndPlay (1);
Symbol 284 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 285 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 285 MovieClip Frame 62
_parent._parent.ai.isFiring = false;
_parent.gotoAndStop("stop");
Symbol 286 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 286 MovieClip Frame 11
_parent.gotoAndStop("stop");
Symbol 291 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 291 MovieClip Frame 11
_parent.gotoAndPlay("broke");
Symbol 292 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 3
stop();
Symbol 293 MovieClip Frame 4
stop();
Symbol 293 MovieClip Frame 5
stop();
Symbol 298 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 2
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 3
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 4
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 5
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 6
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 7
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 8
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 9
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 10
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 11
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 298 MovieClip Frame 12
_parent._visible = false;
_parent.gotoAndStop("idle");
stop();
if (_parent._parent._currentframe == 46) {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
} else {
hurthurthurt.ai1._visible = false;
hurthurthurt.ai2._visible = false;
}
Symbol 299 MovieClip Frame 22
_root.playerScore = _global.control.totalScore;
_global.control.changeScreen("win");
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 313 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 314 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 315 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 315 MovieClip Frame 81
_parent.ai.isFiring = false;
_parent.gotoAndPlay("idle");
_parent.mainGun.gotoAndStop("shoot");
Symbol 316 MovieClip Frame 1
if (!ai.noWingsTime) {
aile1._visible = true;
aile2._visible = true;
}
Symbol 316 MovieClip Frame 4
stop();
Symbol 316 MovieClip Frame 5
aile1._visible = false;
aile2._visible = false;
reactor._visible = false;
base._visible = false;
bbase._visible = false;
taile1._visible = false;
taile2._visible = false;
plate._visible = false;
wing1._visible = false;
wing2._visible = false;
canon1._visible = false;
canon2._visible = false;
mainGun._visible = false;
Symbol 316 MovieClip Frame 19
if (base2.hitTest(_global.control.cruiser.bleu.hitBox)) {
_global.control.hurtingPlane(1, 600);
}
if (base2.hitTest(_global.control.cruiser.rouge.hitBox)) {
_global.control.hurtingPlane(2, 600);
}
if (base2.hitTest(_global.control.cruiser.main.hitBox)) {
_global.control.hurtingPlane(0, 600);
}
Symbol 316 MovieClip Frame 20
if (base2.hitTest(_global.control.cruiser.bleu.hitBox)) {
_global.control.hurtingPlane(1, 600);
}
if (base2.hitTest(_global.control.cruiser.rouge.hitBox)) {
_global.control.hurtingPlane(2, 600);
}
if (base2.hitTest(_global.control.cruiser.main.hitBox)) {
_global.control.hurtingPlane(0, 600);
}
Symbol 316 MovieClip Frame 21
if (base2.hitTest(_global.control.cruiser.bleu.hitBox)) {
_global.control.hurtingPlane(1, 600);
}
if (base2.hitTest(_global.control.cruiser.rouge.hitBox)) {
_global.control.hurtingPlane(2, 600);
}
if (base2.hitTest(_global.control.cruiser.main.hitBox)) {
_global.control.hurtingPlane(0, 600);
}
Symbol 316 MovieClip Frame 22
if (base2.hitTest(_global.control.cruiser.bleu.hitBox)) {
_global.control.hurtingPlane(1, 600);
}
if (base2.hitTest(_global.control.cruiser.rouge.hitBox)) {
_global.control.hurtingPlane(2, 600);
}
if (base2.hitTest(_global.control.cruiser.main.hitBox)) {
_global.control.hurtingPlane(0, 600);
}
Symbol 316 MovieClip Frame 43
aile1._visible = true;
aile2._visible = true;
reactor._visible = true;
base._visible = true;
taile1._visible = true;
taile2._visible = true;
plate._visible = true;
wing1._visible = true;
wing2._visible = true;
canon1._visible = true;
canon2._visible = true;
mainGun._visible = true;
ai.isFiring = false;
gotoAndPlay ("idle");
Symbol 316 MovieClip Frame 46
aile1._visible = false;
aile2._visible = false;
stop();
Symbol 329 MovieClip Frame 1
this._visible = false;
stop();
Symbol 336 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 340 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 341 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 342 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 346 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 348 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 349 MovieClip [enTank3] Frame 1
if (pf == undefined) {
APE(this, 0);
}
this._xscale = (this._yscale = 40);
Symbol 349 MovieClip [enTank3] Frame 6
gotoAndPlay ("idle");
Symbol 349 MovieClip [enTank3] Frame 17
gotoAndPlay ("avance");
Symbol 349 MovieClip [enTank3] Frame 19
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 349 MovieClip [enTank3] Frame 20
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 349 MovieClip [enTank3] Frame 21
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 349 MovieClip [enTank3] Frame 22
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 349 MovieClip [enTank3] Frame 23
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 349 MovieClip [enTank3] Frame 24
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 349 MovieClip [enTank3] Frame 25
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 349 MovieClip [enTank3] Frame 26
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
gotoAndPlay ("avance");
Symbol 349 MovieClip [enTank3] Frame 28
gotoAndPlay ("idle");
Symbol 349 MovieClip [enTank3] Frame 39
gotoAndPlay ("idle");
Symbol 349 MovieClip [enTank3] Frame 46
this._visible = false;
stop();
Symbol 354 MovieClip Frame 1
this._visible = false;
_parent._xscale = (_parent._yscale = 40);
Symbol 354 MovieClip Frame 2
if (_parent._visible == true) {
if (_global.control.missionNumber == 1) {
if (_global.control.cruiser.hitBox.hitTest(_parent.hitBox)) {
_parent.gotoAndPlay("hit");
}
} else if (_global.control.cruiser.main.hitBox.hitTest(_parent.hitBox)) {
_parent.gotoAndPlay("hit");
}
}
Symbol 354 MovieClip Frame 3
gotoAndPlay (2);
Symbol 357 MovieClip Frame 3
gotoAndPlay ("idle");
Symbol 357 MovieClip Frame 6
if (_global.control.missionNumber == 1) {
_global.control.pickUpgrade(3, int(substring(this._name, 8, 1)));
} else if (_global.control.theCruiser.getLaserType() == 43) {
_global.control.pickUpgrade(53, int(substring(this._name, 8, 1)));
} else {
_global.control.pickUpgrade(43, int(substring(this._name, 8, 1)));
}
this._visible = false;
stop();
Symbol 365 MovieClip Frame 1
this._visible = false;
stop();
Symbol 372 MovieClip Frame 3
gotoAndPlay ("idle");
Symbol 372 MovieClip Frame 6
_global.control.pickUpgrade(99, int(substring(this._name, 8, 1)));
_global.control.rocketTotal = _global.control.rocketTotal + 3;
this._visible = false;
stop();
Symbol 382 MovieClip Frame 1
this._visible = false;
stop();
Symbol 389 MovieClip Frame 3
gotoAndPlay ("idle");
Symbol 389 MovieClip Frame 6
_global.control.pickUpgrade(4, int(substring(this._name, 8, 1)));
this._visible = false;
stop();
Symbol 396 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 400 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 401 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 404 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 405 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 406 MovieClip [enTank1] Frame 1
if (pf == undefined) {
APE(this, 0);
}
this._xscale = (this._yscale = 45);
Symbol 406 MovieClip [enTank1] Frame 6
gotoAndPlay ("idle");
Symbol 406 MovieClip [enTank1] Frame 17
gotoAndPlay ("avance");
Symbol 406 MovieClip [enTank1] Frame 19
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 406 MovieClip [enTank1] Frame 20
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 406 MovieClip [enTank1] Frame 21
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 406 MovieClip [enTank1] Frame 22
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 406 MovieClip [enTank1] Frame 23
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 406 MovieClip [enTank1] Frame 24
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 406 MovieClip [enTank1] Frame 25
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
Symbol 406 MovieClip [enTank1] Frame 26
dragSq = new Object();
dragSq.x = las1._x;
dragSq.y = las1._y;
localToGlobal(dragSq);
if (_global.control.currentBack.hitWall.hitTest(dragSq.x, dragSq.y, true)) {
gotoAndPlay ("idle");
}
gotoAndPlay ("avance");
Symbol 406 MovieClip [enTank1] Frame 28
gotoAndPlay ("idle");
Symbol 406 MovieClip [enTank1] Frame 39
gotoAndPlay ("idle");
Symbol 406 MovieClip [enTank1] Frame 46
this._visible = false;
stop();
Symbol 411 MovieClip Frame 1
this._visible = false;
stop();
Symbol 428 MovieClip Frame 1
this._visible = false;
stop();
Symbol 448 MovieClip Frame 1
this._visible = false;
stop();
Symbol 459 MovieClip Frame 3
gotoAndPlay ("idle");
Symbol 459 MovieClip Frame 6
if (_global.control.missionNumber == 1) {
if ((_global.control.theCruiser.getLaserType() == 2) or (_global.control.theCruiser.getLaserType() == 1)) {
_global.control.pickUpgrade(2, int(substring(this._name, 8, 1)));
} else if (_global.control.theCruiser.getLaserType() != 1) {
_global.control.pickUpgrade(1, int(substring(this._name, 8, 1)));
}
} else if ((_global.control.theCruiser.getLaserType() != 1) and (_global.control.theCruiser.getLaserType() != 42)) {
_global.control.pickUpgrade(1, int(substring(this._name, 8, 1)));
} else if (_global.control.theCruiser.getLaserType() == 1) {
_global.control.pickUpgrade(42, int(substring(this._name, 8, 1)));
}
this._visible = false;
stop();
Symbol 461 MovieClip Frame 1
this._visible = false;
stop();
Symbol 488 MovieClip Frame 1
this._visible = false;
stop();
Symbol 490 MovieClip Frame 1
this._visible = false;
stop();
Symbol 498 MovieClip Frame 1
this._visible = false;
stop();
Symbol 500 MovieClip Frame 1
this._visible = false;
stop();
Symbol 507 MovieClip Frame 1
this._visible = false;
stop();
Symbol 509 MovieClip Frame 1
this._visible = false;
stop();
Symbol 514 MovieClip Frame 1
this._visible = false;
stop();
Symbol 526 MovieClip Frame 1
this._visible = false;
stop();
Symbol 538 MovieClip Frame 1
this._visible = false;
stop();
Symbol 543 MovieClip Frame 1
this._visible = false;
stop();
Symbol 548 MovieClip Frame 1
this._visible = false;
stop();
Symbol 560 MovieClip Frame 1
this._visible = false;
stop();
Symbol 580 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 585 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 588 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 591 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 593 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 595 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
if (pf == undefined) {
APE(this, 2);
}
Symbol 621 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 633 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 633 MovieClip Frame 50
stop();
Symbol 636 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 639 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 642 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 643 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 644 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 649 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 654 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 654 MovieClip Frame 52
stop();
Symbol 655 MovieClip [clsCruiser] Frame 1
#initclip 10
Object.registerClass("clsCruiser", clsCruiser);
#endinitclip
function BBOX1X() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = boxLas1._x;
dragSq.y = boxLas1._y;
localToGlobal(dragSq);
return(dragSq.x);
}
function BBOX1Y() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = boxLas1._x;
dragSq.y = boxLas1._y;
localToGlobal(dragSq);
return(dragSq.y);
}
function BBOX2X() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = boxLas2._x;
dragSq.y = boxLas2._y;
localToGlobal(dragSq);
return(dragSq.x);
}
function BBOX2Y() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = boxLas2._x;
dragSq.y = boxLas2._y;
localToGlobal(dragSq);
return(dragSq.y);
}
if (pf == undefined) {
APE(this, 0);
}
Symbol 655 MovieClip [clsCruiser] Frame 5
gotoAndPlay ("idle1");
Symbol 655 MovieClip [clsCruiser] Frame 9
gotoAndPlay ("avance1");
Symbol 655 MovieClip [clsCruiser] Frame 15
gotoAndPlay ("recule1");
Symbol 655 MovieClip [clsCruiser] Frame 25
gotoAndPlay ("idle1");
Symbol 655 MovieClip [clsCruiser] Frame 35
gotoAndPlay ("idle1");
Symbol 655 MovieClip [clsCruiser] Frame 36
tmp = _global.control.backInfos[_global.control.currentBackNumber].nbGEn();
g = 0;
while (g < tmp) {
if (_global.control.currentBack["gEn" + g]._visible == true) {
if (hitWeapPro.hitTest(_global.control.currentBack["gEn" + g].hitBoxTouch)) {
_global.control.backInfos[_global.control.currentBackNumber].gEnShot(g, 30);
}
}
g++;
}
tmp = _global.control.backInfos[_global.control.currentBackNumber].nbGMine();
g = 0;
while (g < tmp) {
if (_global.control.currentBack["mine" + g].ai.isDead() == false) {
trace("ok");
if (hitWeapPro.hitTest(_global.control.currentBack["mine" + g].hitBoxTouch)) {
_global.control.currentBack["mine" + g].ai.isShot(30);
}
}
g++;
}
Symbol 655 MovieClip [clsCruiser] Frame 40
gotoAndPlay ("idle1");
Symbol 655 MovieClip [clsCruiser] Frame 41
tmp = _global.control.backInfos[_global.control.currentBackNumber].nbGEn();
g = 0;
while (g < tmp) {
if (_global.control.currentBack["gEn" + g]._visible == true) {
if (hitWeap.hitTest(_global.control.currentBack["gEn" + g].hitBoxTouch)) {
_global.control.backInfos[_global.control.currentBackNumber].gEnShot(g, 20);
}
}
g++;
}
Symbol 655 MovieClip [clsCruiser] Frame 56
gotoAndPlay ("idle1");
Symbol 655 MovieClip [clsCruiser] Frame 68
gotoAndPlay ("idle1");
Symbol 655 MovieClip [clsCruiser] Frame 124
stop();
Symbol 655 MovieClip [clsCruiser] Frame 129
gotoAndPlay ("idle2");
Symbol 655 MovieClip [clsCruiser] Frame 133
gotoAndPlay ("avance2");
Symbol 655 MovieClip [clsCruiser] Frame 139
gotoAndPlay ("recule2");
Symbol 655 MovieClip [clsCruiser] Frame 149
gotoAndPlay ("idle2");
Symbol 655 MovieClip [clsCruiser] Frame 159
gotoAndPlay ("idle2");
Symbol 655 MovieClip [clsCruiser] Frame 160
tmp = _global.control.backInfos[_global.control.currentBackNumber].nbGEn();
g = 0;
while (g < tmp) {
if (_global.control.currentBack["gEn" + g]._visible == true) {
if (hitWeapPro.hitTest(_global.control.currentBack["gEn" + g].hitBoxTouch)) {
_global.control.backInfos[_global.control.currentBackNumber].gEnShot(g, 30);
}
}
g++;
}
tmp = _global.control.backInfos[_global.control.currentBackNumber].nbGMine();
g = 0;
while (g < tmp) {
if (_global.control.currentBack["mine" + g].ai.isDead() == false) {
trace("ok");
if (hitWeapPro.hitTest(_global.control.currentBack["mine" + g].hitBoxTouch)) {
_global.control.currentBack["mine" + g].ai.isShot(30);
}
}
g++;
}
Symbol 655 MovieClip [clsCruiser] Frame 164
gotoAndPlay ("idle2");
Symbol 655 MovieClip [clsCruiser] Frame 165
tmp = _global.control.backInfos[_global.control.currentBackNumber].nbGEn();
g = 0;
while (g < tmp) {
if (_global.control.currentBack["gEn" + g]._visible == true) {
if (hitWeap.hitTest(_global.control.currentBack["gEn" + g].hitBoxTouch)) {
_global.control.backInfos[_global.control.currentBackNumber].gEnShot(g, 20);
}
}
g++;
}
Symbol 655 MovieClip [clsCruiser] Frame 179
gotoAndPlay ("idle2");
Symbol 655 MovieClip [clsCruiser] Frame 191
gotoAndPlay ("idle2");
Symbol 655 MovieClip [clsCruiser] Frame 250
stop();
Symbol 658 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 666 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 667 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 669 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 670 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 671 MovieClip Frame 11
gotoAndPlay ("avance");
Symbol 671 MovieClip Frame 22
gotoAndPlay ("avance");
Symbol 671 MovieClip Frame 33
gotoAndPlay ("avance");
Symbol 671 MovieClip Frame 40
this._visible = false;
stop();
Symbol 677 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 678 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 679 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 680 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 681 MovieClip Frame 1
if (pf == undefined) {
APE(this, 2);
}
Symbol 681 MovieClip Frame 11
gotoAndPlay ("avance");
Symbol 681 MovieClip Frame 22
gotoAndPlay ("avance");
Symbol 681 MovieClip Frame 33
gotoAndPlay ("avance");
Symbol 681 MovieClip Frame 40
this._visible = false;
stop();
Symbol 683 MovieClip Frame 2
function checkPlayerHit() {
var _local1 = _global;
if (mini1.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (mini1.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (mini1.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(2, 700);
}
if (mini2.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (mini2.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (mini2.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(2, 700);
}
if (fat1.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (fat1.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (fat1.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(2, 700);
}
}
function checkPlayerShot(weapon_mc) {
var _local1 = _global;
var _local2 = weapon_mc;
if (mini1.hitTest(_local2) and (enerMini1 > 0)) {
if (mini1._currentframe < 23) {
mini1.gotoAndPlay("hurt");
enerMini1--;
_local1.control.setScore(50);
if (enerMini1 == 0) {
_local1.control.setScore(100);
mini1.gotoAndPlay("mort");
}
}
}
if (mini2.hitTest(_local2) and (enerMini2 > 0)) {
if (mini2._currentframe < 23) {
mini2.gotoAndPlay("hurt");
enerMini2--;
_local1.control.setScore(50);
if (enerMini2 == 0) {
_local1.control.setScore(100);
mini2.gotoAndPlay("mort");
}
}
}
if (fat1.hitTest(_local2) and (enerFat1 > 0)) {
if (fat1._currentframe < 23) {
fat1.gotoAndPlay("hurt");
enerFat1--;
_local1.control.setScore(50);
if (enerFat1 == 0) {
_local1.control.setScore(100);
fat1.gotoAndPlay("mort");
}
}
}
}
if (pf == undefined) {
APE(this, 0);
}
enerMini1 = 1;
enerMini2 = 1;
enerFat1 = 2;
Symbol 683 MovieClip Frame 69
if (mini1._currentframe < 23) {
mini1.gotoAndPlay("Tire");
}
if (mini2._currentframe < 23) {
mini2.gotoAndPlay("Tire");
}
Symbol 683 MovieClip Frame 78
if (fat1._currentframe < 23) {
fat1.gotoAndPlay("Tire");
}
Symbol 683 MovieClip Frame 220
_global.control.endFlyBy();
Symbol 684 MovieClip [flyBy0] Frame 1
stop();
Symbol 685 MovieClip Frame 2
function checkPlayerHit() {
var _local1 = _global;
if (mini1.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (mini1.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (mini1.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(2, 700);
}
if (mini2.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (mini2.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (mini2.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(2, 700);
}
}
function checkPlayerShot(weapon_mc) {
var _local1 = _global;
if (mini1.hitTest(weapon_mc) and (enerMini1 > 0)) {
if (mini1._currentframe < 23) {
mini1.gotoAndPlay("hurt");
enerMini1--;
_local1.control.setScore(50);
if (enerMini1 == 0) {
_local1.control.setScore(100);
mini1.gotoAndPlay("mort");
}
}
}
if (mini2.hitTest(weapon_mc) and (enerMini2 > 0)) {
if (mini2._currentframe < 23) {
mini2.gotoAndPlay("hurt");
enerMini2--;
_local1.control.setScore(50);
if (enerMini2 == 0) {
_local1.control.setScore(100);
mini2.gotoAndPlay("mort");
}
}
}
}
if (pf == undefined) {
APE(this, 0);
}
enerMini1 = 1;
enerMini2 = 1;
Symbol 685 MovieClip Frame 58
if (mini1._currentframe < 23) {
mini1.gotoAndPlay("Tire");
}
if (mini2._currentframe < 23) {
mini2.gotoAndPlay("Tire");
}
Symbol 685 MovieClip Frame 185
_global.control.endFlyBy();
Symbol 686 MovieClip [flyBy1] Frame 1
stop();
Symbol 697 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 698 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 699 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 700 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 701 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 701 MovieClip Frame 11
gotoAndPlay ("avance");
Symbol 701 MovieClip Frame 22
gotoAndPlay ("avance");
Symbol 701 MovieClip Frame 33
gotoAndPlay ("idle");
Symbol 701 MovieClip Frame 40
this._visible = false;
stop();
Symbol 702 MovieClip Frame 2
function checkPlayerHit() {
var _local1 = _global;
if (mini1.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (mini1.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (mini1.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(2, 700);
}
if (mini2.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (mini2.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (mini2.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(2, 700);
}
if (fat1.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (fat1.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (fat1.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(2, 700);
}
}
function checkPlayerShot(weapon_mc, Force) {
var _local1 = _global;
var _local2 = weapon_mc;
if (mini1.hitTest(_local2) and (enerMini1 > 0)) {
if (mini1._currentframe < 23) {
mini1.gotoAndPlay("hurt");
enerMini1--;
_local1.control.setScore(50);
if (enerMini1 == 0) {
_local1.control.setScore(100);
mini1.gotoAndPlay("mort");
}
}
}
if (mini2.hitTest(_local2) and (enerMini2 > 0)) {
if (mini2._currentframe < 23) {
mini2.gotoAndPlay("hurt");
enerMini2--;
_local1.control.setScore(50);
if (enerMini2 == 0) {
_local1.control.setScore(100);
mini2.gotoAndPlay("mort");
}
}
}
if (fat1.hitTest(_local2) and (enerFat1 > 0)) {
if (fat1._currentframe < 23) {
fat1.gotoAndPlay("hurt");
enerFat1--;
_local1.control.setScore(50);
if (enerFat1 == 0) {
_local1.control.setScore(100);
fat1.gotoAndPlay("mort");
}
}
}
}
if (pf == undefined) {
APE(this, 0);
}
enerMini1 = 1;
enerMini2 = 1;
enerFat1 = 2;
Symbol 702 MovieClip Frame 72
if (mini1._currentframe < 23) {
mini1.gotoAndPlay("tire");
}
if (mini2._currentframe < 23) {
mini2.gotoAndPlay("tire");
}
if (fat1._currentframe < 23) {
fat1.gotoAndPlay("tire");
}
Symbol 702 MovieClip Frame 180
_global.control.endFlyBy();
Symbol 703 MovieClip [flyBy2] Frame 1
stop();
Symbol 704 MovieClip Frame 2
function checkPlayerHit() {
var _local1 = _global;
if (mini1.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (mini1.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (mini1.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerMini1 > 0)) {
mini1.gotoAndPlay("mort");
enerMini1 = 0;
_local1.control.hurtingPlane(2, 700);
}
if (mini2.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (mini2.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (mini2.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerMini2 > 0)) {
mini2.gotoAndPlay("mort");
enerMini2 = 0;
_local1.control.hurtingPlane(2, 700);
}
if (fat1.hitBox.hitTest(_local1.control.cruiser.main.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(0, 700);
} else if (fat1.hitBox.hitTest(_local1.control.cruiser.bleu.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(1, 700);
} else if (fat1.hitBox.hitTest(_local1.control.cruiser.rouge.hitBox) and (enerFat1 > 0)) {
fat1.gotoAndPlay("mort");
enerFat1 = 0;
_local1.control.hurtingPlane(2, 700);
}
}
function checkPlayerShot(weapon_mc, Force) {
var _local1 = _global;
var _local2 = weapon_mc;
if (mini1.hitTest(_local2) and (enerMini1 > 0)) {
if (mini1._currentframe < 23) {
mini1.gotoAndPlay("hurt");
enerMini1--;
_local1.control.setScore(50);
if (enerMini1 == 0) {
_local1.control.setScore(100);
mini1.gotoAndPlay("mort");
}
}
}
if (mini2.hitTest(_local2) and (enerMini2 > 0)) {
if (mini2._currentframe < 23) {
mini2.gotoAndPlay("hurt");
enerMini2--;
_local1.control.setScore(50);
if (enerMini2 == 0) {
_local1.control.setScore(100);
mini2.gotoAndPlay("mort");
}
}
}
if (fat1.hitTest(_local2) and (enerFat1 > 0)) {
if (fat1._currentframe < 23) {
fat1.gotoAndPlay("hurt");
enerFat1--;
_local1.control.setScore(50);
if (enerFat1 == 0) {
_local1.control.setScore(100);
fat1.gotoAndPlay("mort");
}
}
}
}
if (pf == undefined) {
APE(this, 0);
}
enerMini1 = 1;
enerMini2 = 1;
enerFat1 = 2;
Symbol 704 MovieClip Frame 70
if (mini1._currentframe < 23) {
mini1.gotoAndPlay("tire");
}
if (mini2._currentframe < 23) {
mini2.gotoAndPlay("tire");
}
if (fat1._currentframe < 23) {
fat1.gotoAndPlay("tire");
}
Symbol 704 MovieClip Frame 180
_global.control.endFlyBy();
Symbol 705 MovieClip [flyBy3] Frame 1
stop();
Symbol 736 MovieClip Frame 1
p1._visible = false;
p2._visible = false;
p3._visible = false;
p4._visible = false;
p5._visible = false;
p6._visible = false;
stop();
Symbol 745 MovieClip Frame 8
stop();
Symbol 745 MovieClip Frame 16
stop();
Symbol 745 MovieClip Frame 24
stop();
Symbol 745 MovieClip Frame 32
stop();
Symbol 755 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 1
stop();
Symbol 801 MovieClip Frame 5
stop();
Symbol 801 MovieClip Frame 10
stop();
Symbol 801 MovieClip Frame 15
stop();
Symbol 801 MovieClip Frame 20
stop();
Symbol 801 MovieClip Frame 25
stop();
Symbol 801 MovieClip Frame 30
stop();
Symbol 801 MovieClip Frame 35
stop();
Symbol 801 MovieClip Frame 40
stop();
Symbol 801 MovieClip Frame 53
if (_global.control.lifeRemaining == 2) {
gotoAndPlay ("idleV");
} else {
gotoAndPlay ("idleJ");
}
Symbol 805 MovieClip [interCruiser] Frame 1
#initclip 5
Object.registerClass("interCruiser", clsInterface);
#endinitclip
stop();
Symbol 813 MovieClip Frame 1
stop();
Symbol 818 MovieClip Frame 1
stop();
Symbol 823 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 849 MovieClip [interScramble] Frame 1
#initclip 6
Object.registerClass("interScramble", clsInterface);
#endinitclip
stop();
Symbol 852 MovieClip [SRMMvTorpilleLaserBouge01] Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 852 MovieClip [SRMMvTorpilleLaserBouge01] Frame 4
gotoAndPlay (2);
Symbol 853 MovieClip [laser] Frame 1
#initclip 7
Object.registerClass("laser", clsWeapon);
#endinitclip
if (pf == undefined) {
APE(this, frameE);
}
stop();
Symbol 856 MovieClip [missile] Frame 1
#initclip 8
Object.registerClass("missile", clsWeapon);
#endinitclip
if (pf == undefined) {
APE(this, frameE);
}
Symbol 856 MovieClip [missile] Frame 5
gotoAndPlay (2);
Symbol 858 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 862 MovieClip Frame 1
stop();
Symbol 862 MovieClip Frame 8
gotoAndPlay (1);
Symbol 862 MovieClip Frame 15
gotoAndPlay (1);
Symbol 862 MovieClip Frame 24
gotoAndPlay (1);
Symbol 880 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 881 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 881 MovieClip Frame 8
stop();
Symbol 882 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 882 MovieClip Frame 8
stop();
Symbol 883 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 883 MovieClip Frame 8
stop();
Symbol 884 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 884 MovieClip Frame 8
stop();
Symbol 885 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 886 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 896 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 899 MovieClip Frame 49
stop();
Symbol 901 MovieClip Frame 1
function RBOXX() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = hitBox._x + 85;
dragSq.y = hitBox._y + 60;
localToGlobal(dragSq);
return(dragSq.x);
}
function RBOXY() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = hitBox._x + 85;
dragSq.y = hitBox._y + 60;
localToGlobal(dragSq);
return(dragSq.y);
}
gotoAndPlay ("idle");
Symbol 901 MovieClip Frame 26
gotoAndPlay ("idle");
Symbol 901 MovieClip Frame 34
stop();
Symbol 901 MovieClip Frame 42
gotoAndPlay ("idle");
Symbol 901 MovieClip Frame 50
stop();
Symbol 901 MovieClip Frame 58
gotoAndPlay ("idle");
Symbol 901 MovieClip Frame 72
gotoAndPlay ("idle");
Symbol 901 MovieClip Frame 117
gotoAndPlay ("idle");
Symbol 901 MovieClip Frame 163
stop();
Symbol 904 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 905 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 905 MovieClip Frame 8
stop();
Symbol 906 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 906 MovieClip Frame 8
stop();
Symbol 907 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 907 MovieClip Frame 8
stop();
Symbol 908 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 908 MovieClip Frame 8
stop();
Symbol 909 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 910 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 920 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 923 MovieClip Frame 43
stop();
Symbol 924 MovieClip Frame 1
function BBOXX() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = hitBox._x + 85;
dragSq.y = hitBox._y + 60;
localToGlobal(dragSq);
return(dragSq.x);
}
function BBOXY() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = hitBox._x + 85;
dragSq.y = hitBox._y + 60;
localToGlobal(dragSq);
return(dragSq.y);
}
function posGlobalX() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = this._x;
dragSq.y = this._y;
localToGlobal(dragSq);
return(dragSq.x);
}
function posGlobalY() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = this._x;
dragSq.y = this._y;
localToGlobal(dragSq);
return(dragSq.y);
}
function posLocalX() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = this._x;
dragSq.y = this._y;
localToGlobal(dragSq);
return(dragSq.x);
}
function posLocalY() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = this._x;
dragSq.y = this._y;
localToGlobal(dragSq);
return(dragSq.y);
}
gotoAndPlay ("idle");
Symbol 924 MovieClip Frame 26
gotoAndPlay ("idle");
Symbol 924 MovieClip Frame 34
stop();
Symbol 924 MovieClip Frame 42
gotoAndPlay ("idle");
Symbol 924 MovieClip Frame 50
stop();
Symbol 924 MovieClip Frame 58
gotoAndPlay ("idle");
Symbol 924 MovieClip Frame 72
gotoAndPlay ("idle");
Symbol 924 MovieClip Frame 117
gotoAndPlay ("idle");
Symbol 924 MovieClip Frame 164
stop();
Symbol 925 MovieClip Frame 1
this._visible = false;
if (pf == undefined) {
APE(this, 0);
}
planeSpeed = 1;
rotateSpeed = 0;
moveTime = 60;
rotateTimeline = 0;
rotateTime = true;
xDiff = 0;
yDiff = 0;
tmpScramX = 0;
tmpScramY = 0;
inPlace = true;
phase1 = true;
phase2 = false;
phase3 = false;
Symbol 925 MovieClip Frame 2
if (inPlace == false) {
if (phase1 == true) {
tmpScramX = 300;
tmpScramY = 360;
if (rotateTimeline == 0) {
oldRotation = _parent._rotation;
x = _parent._x - tmpScramX;
y = _parent._y - tmpScramY;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
nextAngle = angle - 90;
rotateSpeed = 0;
tmpA = (angle - 90) - oldRotation;
if (((tmpA > 350) and (tmpA < 380)) or ((tmpA > -10) and (tmpA < 10))) {
rotateSpeed = 0;
} else if (tmpA < 0) {
rotateSpeed = rotateSpeed - (Math.abs((angle - 90) - oldRotation) / 10);
} else {
rotateSpeed = rotateSpeed + (Math.abs((angle - 90) - oldRotation) / 10);
}
if (rotateSpeed > 18) {
rotateSpeed = rotateSpeed - 36;
}
xDiff = (300 - _parent._x) / 150;
yDiff = (360 - _parent._y) / 150;
rotateTimeline++;
} else if ((rotateTimeline < 10) and (rotateTimeline > 0)) {
_parent._rotation = _parent._rotation + rotateSpeed;
_global.control.currentRot = _global.control.currentRot + rotateSpeed;
rotateTimeline++;
} else if (rotateTimeline >= 10) {
_parent._rotation = nextAngle;
rotateTime = false;
phase1 = false;
phase2 = true;
}
} else if (phase2 == true) {
_parent._x = _parent._x + xDiff;
_parent._y = _parent._y + yDiff;
if ((Math.abs(_parent._x - 300) < 20) and (Math.abs(_parent._y - 360) < 20)) {
phase2 = false;
phase3 = true;
rotateTimeline = 0;
}
} else if (phase3 == true) {
tmpScramX = _parent._x;
tmpScramY = 0;
if (rotateTimeline == 0) {
oldRotation = _parent._rotation;
x = (_parent._x - tmpScramX) * 1;
y = (_parent._y - tmpScramY) * 1;
angle = Math.atan(y / x) / (Math.PI/180);
if (x < 0) {
angle = angle + 180;
}
if ((x >= 0) && (y < 0)) {
angle = angle + 360;
}
nextAngle = angle - 90;
rotateSpeed = 0;
tmpA = (angle - 90) - oldRotation;
if (((tmpA > 350) and (tmpA < 380)) or ((tmpA > -10) and (tmpA < 10))) {
rotateSpeed = 0;
} else if (tmpA < 0) {
rotateSpeed = rotateSpeed - (Math.abs((angle - 90) - oldRotation) / 10);
} else {
rotateSpeed = rotateSpeed + (Math.abs((angle - 90) - oldRotation) / 10);
}
rotateTimeline++;
} else if ((rotateTimeline < 10) and (rotateTimeline > 0)) {
_parent._rotation = _parent._rotation + rotateSpeed;
_global.control.currentRot = _global.control.currentRot + rotateSpeed;
rotateTimeline++;
} else if (rotateTimeline >= 10) {
_parent._rotation = nextAngle;
rotateTime = false;
phase3 = false;
_global.control.bossTime = 2;
_global.control.theCruiser.cruiserSpeed = 7;
_global.control.currentRot = -90;
_parent._rotation = 0;
}
}
}
Symbol 925 MovieClip Frame 3
gotoAndPlay (2);
Symbol 946 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 947 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 947 MovieClip Frame 7
stop();
Symbol 948 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 948 MovieClip Frame 8
stop();
Symbol 949 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 949 MovieClip Frame 8
stop();
Symbol 950 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 950 MovieClip Frame 8
stop();
Symbol 951 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 954 MovieClip Frame 1
iconF._visible = false;
max = false;
Symbol 954 MovieClip Frame 14
max = true;
Symbol 954 MovieClip Frame 21
max = false;
Symbol 954 MovieClip Frame 32
iconF._visible = false;
stop();
Symbol 955 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 965 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 970 MovieClip Frame 1
if (pf == undefined) {
APE(this, 0);
}
Symbol 970 MovieClip Frame 50
stop();
Symbol 971 MovieClip Frame 1
_global.control.theCruiser.alreadyGoFoward = 0;
Symbol 971 MovieClip Frame 25
gotoAndPlay ("idle");
Symbol 971 MovieClip Frame 33
stop();
Symbol 971 MovieClip Frame 41
gotoAndPlay ("idle");
Symbol 971 MovieClip Frame 49
stop();
Symbol 971 MovieClip Frame 57
gotoAndPlay ("idle");
Symbol 971 MovieClip Frame 71
gotoAndPlay ("idle");
Symbol 971 MovieClip Frame 104
gotoAndPlay ("idle");
Symbol 971 MovieClip Frame 116
gotoAndPlay ("idle");
Symbol 971 MovieClip Frame 162
_root.playerScore = _global.control.totalScore;
_global.control.changeScreen("lose");
stop();
Symbol 972 MovieClip [scramble] Frame 1
#initclip 9
Object.registerClass("scramble", clsCruiser);
#endinitclip
function BX() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = launchB._x;
dragSq.y = launchB._y;
localToGlobal(dragSq);
return(dragSq.x);
}
function BY() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = launchB._x;
dragSq.y = launchB._y;
localToGlobal(dragSq);
return(dragSq.y);
}
function RX() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = launchR._x;
dragSq.y = launchR._y;
localToGlobal(dragSq);
return(dragSq.x);
}
function RY() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = launchR._x;
dragSq.y = launchR._y;
localToGlobal(dragSq);
return(dragSq.y);
}
function RBOXX() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = rouge.hitBox._x;
dragSq.y = rouge.hitBox._y;
localToGlobal(dragSq);
return(dragSq.x);
}
function RBOXY() {
dragSq = new Object();
dragSq.x = 0;
dragSq.y = 0;
dragSq.x = rouge.hitBox._x;
dragSq.y = rouge.hitBox._y;
localToGlobal(dragSq);
return(dragSq.y);
}
stop();
Symbol 974 MovieClip Frame 1
_global.movieScreenTransit = this;
stop();
Symbol 978 MovieClip Frame 1
this.SRMG1 = new Sound();
stop();
Symbol 978 MovieClip Frame 2
this.SRMG1.stop();
this.SRMG1.attachSound("SRMG1");
this.SRMG1.start(0, 999999);
Symbol 978 MovieClip Frame 8
gotoAndPlay ("mission1");
Symbol 978 MovieClip Frame 9
this.SRMG1.stop();
this.SRMG1.attachSound("SRMG2");
this.SRMG1.start(0, 999999);
Symbol 978 MovieClip Frame 15
stop();
Symbol 1009 Button
on (release) {
_parent.gotoAndStop("instruct");
}
Symbol 1014 Button
on (release) {
playB._visible = false;
instr._visible = false;
_global.movieScreenTransit.scrTransit.changeScreen("play");
_global.movieScreenTransit.scrTransit.gotoAndPlay("start");
}
Symbol 1017 Button
on (release) {
playB.enabled = false;
instr.enabled = false;
_global.movieScreenTransit.scrTransit.changeScreen("play");
_global.movieScreenTransit.scrTransit.gotoAndPlay("start");
}
Symbol 1018 MovieClip Frame 1
_parent.backSongs.gotoAndStop("mission1");
Symbol 1018 MovieClip Frame 9
playB.enabled = true;
instr.enabled = true;
Symbol 1018 MovieClip Frame 28
stop();
Symbol 1029 Button
on (release) {
if (book._currentframe == 1) {
book.gotoAndStop(2);
} else if (book._currentframe == 2) {
book.gotoAndStop(3);
} else if (book._currentframe == 3) {
book.gotoAndStop(4);
} else if (book._currentframe == 4) {
gotoAndPlay ("keys");
}
}
Symbol 1055 Button
on (release) {
gotoAndStop (1);
}
Symbol 1061 Button
on (release) {
gotoAndStop (2);
}
Symbol 1074 Button
on (release) {
gotoAndStop (3);
}
Symbol 1075 MovieClip Frame 1
stop();
Symbol 1076 Button
on (release) {
toLast = true;
gotoAndStop (63);
}
Symbol 1077 Button
on (release) {
_global.movieScreenTransit.scrTransit.changeScreen("play");
_global.movieScreenTransit.scrTransit.gotoAndPlay("start");
}
Symbol 1078 Button
on (release) {
if (this._name == "tmpInstr") {
_parent.tmpPause.remInstr();
} else {
_global.movieScreenTransit.scrTransit.changeScreen("play");
_global.movieScreenTransit.scrTransit.gotoAndPlay("start");
}
}
Symbol 1103 MovieClip Frame 1
function lastPage() {
book.gotoAndStop(4);
toLast = false;
}
alreadyPressed = false;
toLast = false;
Symbol 1103 MovieClip Frame 63
if (toLast) {
lastPage();
}
stop();
Symbol 1103 MovieClip Frame 132
stop();
Symbol 1105 MovieClip Frame 1
_global.base = this;
stop();
Symbol 1123 MovieClip Frame 1
_parent.tmpPause.doFalsePause();
message._visible = false;
Symbol 1123 MovieClip Frame 22
message.gotoAndStop(_global.control.curMessage);
message._visible = true;
stop();
Symbol 1126 Button
on (release) {
tmpPause.doPause();
btnMenuu.enabled = false;
}
Symbol 1132 Button
on (release) {
_parent.tmpPause.unPause();
}
Symbol 1135 Button
on (release) {
_parent.tmpPause.showInstr();
}
Symbol 1138 Button
on (release) {
_root.playerScore = _global.control.totalScore;
_global.control.changeScreen("scoreDoge");
}
Symbol 1139 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 1
function moveCruiser(direc1, direc2) {
var _local1 = direc2;
theCruiser.moveTheCruiser(direc1, _local1, currentBack.hitWall);
if (direc1 == 1) {
if (_local1 == 0) {
currentRot = currentRot - rotationRate;
} else if (_local1 == 1) {
currentRot = currentRot + rotationRate;
}
}
}
function setIdle() {
theCruiser.setIdle();
}
function newWeapon(type) {
var _local1 = type;
if (_local1 == 0) {
if (missionNumber == 1) {
weapons[lastWeapon] = new clsWeapon(0, currentRot, currentWeaponDepth, theCruiser.getX(), theCruiser.getY());
theCruiser.cruiserAction(3);
} else {
weapons[lastWeapon] = new clsWeapon(10, currentRot, currentWeaponDepth, theCruiser.getX(), theCruiser.getY());
theCruiser.cruiserAction(63);
}
} else if (_local1 == 1) {
if (missionNumber == 1) {
weapons[lastWeapon] = new clsWeapon(1, currentRot, currentWeaponDepth, theCruiser.cruiser_mc.BBOX1X(), theCruiser.cruiser_mc.BBOX1Y());
lastWeapon++;
currentWeaponDepth++;
weapons[lastWeapon] = new clsWeapon(1, currentRot, currentWeaponDepth, theCruiser.cruiser_mc.BBOX2X(), theCruiser.cruiser_mc.BBOX2Y());
theCruiser.cruiserAction(4);
} else {
theCruiser.cruiserAction(11);
weapons[lastWeapon] = new clsWeapon(11, currentRot, currentWeaponDepth, theCruiser.getX(), theCruiser.getY());
lastWeapon++;
currentWeaponDepth++;
if (theCruiser.bAlive()) {
weapons[lastWeapon] = new clsWeapon(11, currentRot, currentWeaponDepth, theCruiser.getBX(), theCruiser.getBY());
lastWeapon++;
currentWeaponDepth++;
}
if (theCruiser.rAlive()) {
currentWeaponDepth++;
weapons[lastWeapon] = new clsWeapon(11, currentRot, currentWeaponDepth, theCruiser.getRX(), theCruiser.getRY());
}
}
} else if (_local1 == 2) {
weapons[lastWeapon] = new clsWeapon(2, currentRot, currentWeaponDepth, theCruiser.cruiser_mc.BBOX1X(), theCruiser.cruiser_mc.BBOX1Y());
lastWeapon++;
currentWeaponDepth++;
weapons[lastWeapon] = new clsWeapon(2, currentRot, currentWeaponDepth, theCruiser.cruiser_mc.BBOX2X(), theCruiser.cruiser_mc.BBOX2Y());
theCruiser.cruiserAction(4);
} else if (_local1 == 3) {
theCruiser.cruiserAction(5);
} else if (_local1 == 4) {
theCruiser.cruiserAction(8);
} else if (_local1 == 42) {
theCruiser.cruiserAction(11);
weapons[lastWeapon] = new clsWeapon(42, currentRot, currentWeaponDepth, theCruiser.getX(), theCruiser.getY());
lastWeapon++;
currentWeaponDepth++;
if (theCruiser.bAlive()) {
weapons[lastWeapon] = new clsWeapon(42, currentRot, currentWeaponDepth, theCruiser.getBX(), theCruiser.getBY());
lastWeapon++;
currentWeaponDepth++;
}
if (theCruiser.rAlive()) {
currentWeaponDepth++;
weapons[lastWeapon] = new clsWeapon(42, currentRot, currentWeaponDepth, theCruiser.getRX(), theCruiser.getRY());
}
} else if (_local1 == 43) {
theCruiser.cruiserAction(11);
weapons[lastWeapon] = new clsWeapon(43, currentRot, currentWeaponDepth, theCruiser.getX(), theCruiser.getY());
lastWeapon++;
currentWeaponDepth++;
if (theCruiser.bAlive()) {
weapons[lastWeapon] = new clsWeapon(43, currentRot, currentWeaponDepth, theCruiser.getBX(), theCruiser.getBY());
lastWeapon++;
currentWeaponDepth++;
}
if (theCruiser.rAlive()) {
currentWeaponDepth++;
weapons[lastWeapon] = new clsWeapon(43, currentRot, currentWeaponDepth, theCruiser.getRX(), theCruiser.getRY());
}
} else if (_local1 == 53) {
theCruiser.cruiserAction(11);
weapons[lastWeapon] = new clsWeapon(53, currentRot, currentWeaponDepth, theCruiser.getX(), theCruiser.getY());
lastWeapon++;
currentWeaponDepth++;
if (theCruiser.bAlive()) {
weapons[lastWeapon] = new clsWeapon(53, currentRot, currentWeaponDepth, theCruiser.getBX(), theCruiser.getBY());
lastWeapon++;
currentWeaponDepth++;
}
if (theCruiser.rAlive()) {
currentWeaponDepth++;
weapons[lastWeapon] = new clsWeapon(53, currentRot, currentWeaponDepth, theCruiser.getRX(), theCruiser.getRY());
}
}
lastWeapon++;
currentWeaponDepth++;
if (currentWeaponDepth == 899) {
currentWeaponDepth = 700;
}
}
function moveWeapons() {
i = firstWeapon;
while (i < lastWeapon) {
weapons[i].moveWeapon();
if (weapons[i].isOut() == true) {
if ((weapons[i].getType() == 0) or (weapons[i].getType() == 10)) {
rocketFlying = false;
} else if ((((((weapons[i].getType() == 1) or (weapons[i].getType() == 2)) or (weapons[i].getType() == 11)) or (weapons[i].getType() == 42)) or (weapons[i].getType() == 43)) or (weapons[i].getType() == 44)) {
laser1Flying = false;
}
weapons[i].remove();
adjustWeaponVector();
} else if (missionNumber == 1) {
tmpDynaWall = 0;
if (((currentBackNumber == 9) or (currentBackNumber == 10)) or (currentBackNumber == 11)) {
tmpDynaWall = currentBack.hitWall2;
} else {
tmpDynaWall = currentBack.hitWall;
}
if (weapons[i].isOnWall(tmpDynaWall) == true) {
if (weapons[i].getType() == 0) {
rocketFlying = false;
} else if ((weapons[i].getType() == 1) or (weapons[i].getType() == 2)) {
laser1Flying = false;
}
weapons[i].remove();
adjustWeaponVector();
}
}
i++;
}
}
function clearWeapon() {
i = firstWeapon;
while (i < lastWeapon) {
weapons[i].remove();
adjustWeaponVector();
i++;
}
}
function setBack(backId) {
var _local1 = backId;
var _local2 = _global;
if (inTransition) {
if (newBackLoaded == false) {
endFlyBy();
currentPanelDepth++;
_local2.base.attachMovie(_local1, _local1, currentPanelDepth);
backTmp = _local2.base[_local1];
backInfos[tmpBackNum].loadPanel(missionNumber);
newPanelId = _local1;
if (transitionCode == 0) {
backTmp._x = 300;
backTmp._y = -200;
} else if (transitionCode == 1) {
backTmp._x = 900;
backTmp._y = 200;
} else if (transitionCode == 2) {
backTmp._x = 300;
backTmp._y = 600;
} else if (transitionCode == 3) {
backTmp._x = -300;
backTmp._y = 200;
}
newBackLoaded = true;
}
clearWeapon();
rocketFlying = false;
if (transitionCode == 0) {
currentBack._y = currentBack._y + transitionSpeed;
backTmp._y = backTmp._y + transitionSpeed;
if (missionNumber == 1) {
theCruiser.setY(theCruiser.getY() + (transitionSpeed - 10));
} else {
theCruiser.setY(theCruiser.getY() + (transitionSpeed - 23));
}
} else if (transitionCode == 1) {
currentBack._x = currentBack._x - transitionSpeed;
backTmp._x = backTmp._x - transitionSpeed;
if (missionNumber == 1) {
theCruiser.setX(theCruiser.getX() - (transitionSpeed - 4));
} else {
theCruiser.setX(theCruiser.getX() - (transitionSpeed - 13));
}
} else if (transitionCode == 2) {
currentBack._y = currentBack._y - transitionSpeed;
backTmp._y = backTmp._y - transitionSpeed;
if (missionNumber == 1) {
theCruiser.setY(theCruiser.getY() - (transitionSpeed - 10));
} else {
theCruiser.setY(theCruiser.getY() - (transitionSpeed - 23));
}
} else if (transitionCode == 3) {
currentBack._x = currentBack._x + transitionSpeed;
backTmp._x = backTmp._x + transitionSpeed;
if (missionNumber == 1) {
theCruiser.setX(theCruiser.getX() + (transitionSpeed - 4));
} else {
theCruiser.setX(theCruiser.getX() + (transitionSpeed - 13));
}
}
if ((Math.abs(backTmp._x - 300) < 20) and (Math.abs(backTmp._y - 200) < 20)) {
currentBack.removeMovieClip();
currentBack = _local2.base[newPanelId];
currentBack._x = 300;
currentBack._y = 200;
currentBackNumber = int(substring(newPanelId, newPanelId.length - 1, 2));
inTransition = false;
newBackLoaded = false;
timeSinceLastEnemy = 0;
if ((fuelFound == 10) and (currentBackNumber == 1)) {
missionFinish(2);
}
}
}
}
function changeBack(direct) {
var _local1 = direct;
backInfos[currentBackNumber].saveEnPos(currentBack);
tmpBackNum = 0;
if (_local1 == 0) {
tmpBackNum = currentBackNumber - 3;
transitionCode = 0;
inTransition = true;
currentBackNumber = currentBackNumber - 3;
} else if (_local1 == 1) {
tmpBackNum = currentBackNumber + 1;
transitionCode = 1;
inTransition = true;
currentBackNumber = currentBackNumber + 1;
} else if (_local1 == 2) {
tmpBackNum = currentBackNumber + 3;
transitionCode = 2;
inTransition = true;
currentBackNumber = currentBackNumber + 3;
} else if (_local1 == 3) {
tmpBackNum = currentBackNumber - 1;
transitionCode = 3;
inTransition = true;
currentBackNumber = currentBackNumber - 1;
}
if (tmpBackNum > 9) {
setBack("back_" + tmpBackNum);
} else {
setBack("back_0" + tmpBackNum);
}
}
function hurting(damageAm) {
if (!inTransition) {
isHurt = true;
theCruiser.hurt(damageAm);
theInter.damage(damageAm);
}
}
function hurtingPlane(type, damage) {
theCruiser.hurtPlane(type, damage);
theInter.planeDamage(type, damage);
}
function isDead() {
cruiserDead = true;
clearWeapon();
i = 0;
while (i <= 17) {
backInfos[i].stopTransport();
i++;
}
}
function nextLife() {
lifeRemaining = lifeRemaining - 1;
gotoAndPlay (2);
}
function nextMission() {
timeSinceLastEnemy = -60;
missionNumber = 2;
gotoAndPlay (2);
}
function changeBackInfo(itemType, itemNum) {
backInfos[currentBackNumber].hitSomething(itemType, itemNum);
}
function isInDrop() {
i = 0;
while (i <= 17) {
backInfos[i].dropPart();
i++;
}
isCarrying = false;
setScore(200);
if (missionNumber == 1) {
partsFound = partsFound + 1;
if (partsFound == 6) {
missionFinish(1);
} else {
currentBack.theDoor.gotoAndPlay("ouvre");
}
} else {
fuelFound = fuelFound + 1;
if (fuelFound == 10) {
showMsg(4);
}
}
}
function Carrying() {
return(isCarrying);
}
function missionFinish(numM) {
setScore(1000);
if (numM == 2) {
bossTime = 1;
_global.control.cruiser.ai.inPlace = false;
} else if (numM == 1) {
_parent.gotoAndPlay("nextmission");
}
}
function checkEnemyShot() {
var _local1 = _global;
if (missionNumber == 1) {
tmp = backInfos[currentBackNumber].nbGEn();
i = firstWeapon;
while (i <= lastWeapon) {
g = 0;
while (g < tmp) {
if (((currentBack["gEn" + g]._visible == true) and (currentBack["gEn" + g]._currentframe < 40)) and (weapons[i].fini() == false)) {
if (weapons[i].checkShot(currentBack["gEn" + g])) {
backInfos[currentBackNumber].gEnShot(g, weapons[i].getForce());
weapons[i].remove();
laser1Flying = false;
rocketFlying = false;
adjustWeaponVector();
setScore(50);
}
}
g++;
}
i++;
}
tmp = backInfos[currentBackNumber].nbGMine();
i = firstWeapon;
while (i <= lastWeapon) {
g = 0;
while (g < tmp) {
if ((currentBack["mine" + g].ai.isDead() == false) and (weapons[i].fini() == false)) {
if (weapons[i].checkShot(currentBack["mine" + g])) {
currentBack["mine" + g].ai.isShot(weapons[i].getForce());
weapons[i].remove();
laser1Flying = false;
rocketFlying = false;
adjustWeaponVector();
setScore(25);
}
}
g++;
}
i++;
}
} else if (bossTime != 0) {
i = firstWeapon;
while (i <= lastWeapon) {
if ((currentBack.bossPlane.ai.onFinal == false) and (weapons[i].fini() == false)) {
if (currentBack.bossPlane.ai.canon1Energy > 0) {
if (currentBack.bossPlane.canon1.hitBox.hitTest(weapons[i].getX(), weapons[i].getY(), true)) {
currentBack.bossPlane.ai.playerHit(1, weapons[i].getForce());
weapons[i].remove();
laser1Flying = false;
rocketFlying = false;
adjustWeaponVector();
setScore(50);
}
}
if (currentBack.bossPlane.ai.canon2Energy > 0) {
if (currentBack.bossPlane.canon2.hitBox.hitTest(weapons[i].getX(), weapons[i].getY(), true)) {
currentBack.bossPlane.ai.playerHit(2, weapons[i].getForce());
weapons[i].remove();
laser1Flying = false;
rocketFlying = false;
adjustWeaponVector();
setScore(50);
}
}
if (currentBack.bossPlane.ai.mainGunEnergy > 0) {
if (currentBack.bossPlane.mainGun.hitBox.hitTest(weapons[i].getX(), weapons[i].getY(), true)) {
currentBack.bossPlane.ai.playerHit(0, weapons[i].getForce());
weapons[i].remove();
laser1Flying = false;
rocketFlying = false;
adjustWeaponVector();
setScore(50);
}
}
} else if (currentBack.bossPlane.base.hitTest(weapons[i].getX(), weapons[i].getY(), true)) {
currentBack.bossPlane.ai.playerHit(3, weapons[i].getForce());
weapons[i].remove();
laser1Flying = false;
rocketFlying = false;
adjustWeaponVector();
setScore(50);
}
i++;
}
} else {
if (onFlyBy) {
_local1.base.theFlyTeam.team.checkPlayerHit();
i = firstWeapon;
while (i <= lastWeapon) {
_local1.base.theFlyTeam.team.checkPlayerShot(weapons[i].getWeaponMc());
i++;
}
}
tmp = backInfos[currentBackNumber].nbAMine();
i = firstWeapon;
while (i <= lastWeapon) {
g = 0;
while (g < tmp) {
if ((currentBack["airMine" + g].ai.isDead() == false) and (weapons[i].fini() == false)) {
if (weapons[i].checkShot(currentBack["airMine" + g])) {
currentBack["airMine" + g].ai.isShot(weapons[i].getForce());
weapons[i].remove();
laser1Flying = false;
rocketFlying = false;
adjustWeaponVector();
setScore(25);
}
}
g++;
}
i++;
}
}
}
function pickUpgrade(upNum, noUpgrade) {
var _local1 = upNum;
if (_local1 != 99) {
setScore(200);
if (_local1 == 53) {
theInter.upGrade(43);
} else {
theInter.upGrade(_local1);
}
if (_local1 == 4) {
theCruiser.getEnergy();
} else {
theCruiser.setLaserType(_local1);
}
}
backInfos[currentBackNumber].hitSomething(3, noUpgrade);
}
function setScore(scoreAdd) {
totalScore = totalScore + scoreAdd;
}
function endFlyBy() {
_global.base.theFlyTeam.removeMovieClip();
onFlyBy = false;
}
function changeScreen(newScreen) {
_global.movieScreenTransit.scrTransit.changeScreen(newScreen);
_global.movieScreenTransit.scrTransit.gotoAndPlay("start");
}
function adjustWeaponVector() {
outVar = 0;
do {
if (weapons[firstWeapon].fini()) {
firstWeapon++;
if (firstWeapon == lastWeapon) {
firstWeapon = 1;
lastWeapon = 1;
outVar = 1;
}
} else {
outVar = 1;
}
} while (outvar == 0);
}
function showMsg(code) {
var _local1 = _parent;
_local1.tmpPause.messengerVisible = true;
_local1.tmpPause.messengerTime = 0;
curMessage = code;
_local1.theMessenger.gotoAndPlay(1);
_local1.theMessenger._visible = true;
gamePopUp = true;
}
_global.control = this;
if (pf == undefined) {
APE(this, 2);
}
theCruiser = new clsCruiser();
backInfos = new Array();
backInfos[0] = new clsBackInfo(0, 2, 2, 0, 1, 2, 1, -150, 150, -150, 20);
backInfos[1] = new clsBackInfo(1, 0, 0, 0, 0, 0, 0, -300, 45, -100, -30);
backInfos[2] = new clsBackInfo(2, 4, 3, 1, 1, 0, 1, -90, 150, 1, 1);
backInfos[3] = new clsBackInfo(3, 3, 3, 1, 0, 0, 1, 300, 50, -150, 50);
backInfos[4] = new clsBackInfo(4, 0, 3, 1, 1, 0, 0, 0, 150, 1, 1);
backInfos[5] = new clsBackInfo(5, 1, 0, 0, 1, 1, 0, -90, -200, -80, 1);
backInfos[6] = new clsBackInfo(6, 1, 1, 0, 1, 3, 1, 300, 0, 1, 1);
backInfos[7] = new clsBackInfo(7, 4, 0, 0, 0, 0, 0, 0, -200, 1, -50);
backInfos[8] = new clsBackInfo(8, 0, 3, 1, 0, 0, 1, -90, -200, -130, -125);
backInfos[9] = new clsBackInfo(9, 0, 3, 0, 1, 0, 1, -150, 150, 50, -50);
backInfos[10] = new clsBackInfo(10, 0, 0, 0, 1, 0, 0, 0, 150, 1, 1);
backInfos[11] = new clsBackInfo(11, 3, 3, 0, 0, 0, 1, -300, -70, 1, -50);
backInfos[12] = new clsBackInfo(12, 2, 0, 0, 0, 0, 1, -160, -200, -160, 1);
backInfos[13] = new clsBackInfo(13, 2, 1, 2, 1, 4, 1, 60, 150, 30, 1);
backInfos[14] = new clsBackInfo(14, 2, 3, 0, 1, 5, 0, 175, 150, 150, 1);
backInfos[15] = new clsBackInfo(15, 0, 4, 1, 0, 0, 1, 300, -100, 1, -100);
backInfos[16] = new clsBackInfo(16, 3, 4, 1, 0, 0, 0, 70, -200, 1, 1);
backInfos[17] = new clsBackInfo(17, 0, 0, 0, 1, 6, 0, -300, -75, 1, -65);
gamePopUp = false;
currentRot = 0;
rotationRate = 5;
cruiserRotationRate = 5;
currentPanelDepth = 100;
currentWeaponDepth = 700;
firstWeapon = 0;
lastWeapon = 0;
cruiserDead = false;
weapons = new Array();
weaponButAlreadyPress = 0;
turnButAlreadyPress = 0;
cruiserSpeed = 10;
panelChangeFlag = 0;
currentBackNumber = 0;
transitionSpeed = 40;
transitionCode = 99;
newBackLoaded = false;
inTransition = false;
inGameTransition = false;
isHurt = false;
partsFound = 0;
fuelFound = 0;
lifeRemaining = 2;
rocketTotal = 3;
totalScore = 0;
missionNumber = 1;
bossTime = 0;
gamePaused = false;
timeSinceLastEnemy = 0;
currentEnemyDepth = 12000;
onFlyBy = false;
laserSpaceTime = 5;
curMessage = 1;
messengerVisible = false;
messengerTime = 0;
destroyedTime = 0;
Symbol 1141 MovieClip Frame 2
currentPanelDepth = 100;
currentPanelDepth = currentPanelDepth + 1;
currentRot = 90;
rocketFlying = false;
timeForNextLaser = 0;
laser1Flying = false;
isCarrying = false;
_parent.theMessenger._visible = false;
if (missionNumber == 1) {
if (lifeRemaining == 2) {
_global.base.attachMovie("interCruiser", "cruiserInt", 99999);
theInter = new clsInterface(_global.base.cruiserInt, 303, 402);
_global.base.attachMovie("clsCruiser", "tmpcruiser", 500);
theCruiser = new clsCruiser(_global.base.tmpcruiser, 300, 250);
} else {
cruiserDead = false;
theInter.changeLife();
rocketTotal = 3;
theCruiser.reInitYellow(300, 250);
if (currentBackNumber != 1) {
currentBack.removeMovieClip();
}
}
if (currentBackNumber != 1) {
_global.base.attachMovie("back_01", "back_01", currentPanelDepth);
currentBack = _global.base.back_01;
currentBack._x = 300;
currentBack._y = 200;
currentBackNumber = 1;
} else {
backInfos[1].clearEnemy();
}
} else {
theCruiser.nextMission();
theInter.changeMission();
rotationRate = 5;
laserSpaceTime = 10;
rocketTotal = 3;
cruiserDead = false;
showMsg(3);
backInfos[1].loadPanel(2);
i = 0;
while (i <= 17) {
backInfos[i].reInitUpgrades();
i++;
}
_parent.backSongs.gotoAndStop("mission2");
}
Symbol 1141 MovieClip Frame 3
if (((!inTransition) and (!inGameTransition)) and (!cruiserDead)) {
if (bossTime == 0) {
if (missionNumber == 1) {
if (theCruiser.getX() > 580) {
if ((((((currentBackNumber != 2) and (currentBackNumber != 5)) and (currentBackNumber != 8)) and (currentBackNumber != 11)) and (currentBackNumber != 14)) and (currentBackNumber != 17)) {
changeBack(1);
}
} else if (theCruiser.getX() < 20) {
if ((((((currentBackNumber != 0) and (currentBackNumber != 3)) and (currentBackNumber != 6)) and (currentBackNumber != 9)) and (currentBackNumber != 12)) and (currentBackNumber != 15)) {
changeBack(3);
}
} else if (theCruiser.getY() > 320) {
if (((currentBackNumber != 15) and (currentBackNumber != 16)) and (currentBackNumber != 17)) {
changeBack(2);
}
} else if (theCruiser.getY() < 20) {
if (((currentBackNumber != 0) and (currentBackNumber != 1)) and (currentBackNumber != 2)) {
changeBack(0);
}
}
} else if (missionNumber == 2) {
if (theCruiser.getX() > 540) {
if ((((((currentBackNumber != 2) and (currentBackNumber != 5)) and (currentBackNumber != 8)) and (currentBackNumber != 11)) and (currentBackNumber != 14)) and (currentBackNumber != 17)) {
changeBack(1);
}
} else if (theCruiser.getX() < 60) {
if ((((((currentBackNumber != 0) and (currentBackNumber != 3)) and (currentBackNumber != 6)) and (currentBackNumber != 9)) and (currentBackNumber != 12)) and (currentBackNumber != 15)) {
changeBack(3);
}
} else if (theCruiser.getY() > 275) {
if (((currentBackNumber != 15) and (currentBackNumber != 16)) and (currentBackNumber != 17)) {
changeBack(2);
}
} else if (theCruiser.getY() < 100) {
if (((currentBackNumber != 0) and (currentBackNumber != 1)) and (currentBackNumber != 2)) {
changeBack(0);
}
}
}
}
if (timeForNextLaser >= laserSpaceTime) {
laser1Flying = false;
} else {
laser1Flying = true;
timeForNextLaser++;
}
tmpKey = 0;
if (bossTime == 0) {
if (Key.isDown(38)) {
moveCruiser(0, 0);
tmpKey = 1;
}
if (Key.isDown(40)) {
moveCruiser(0, 1);
tmpKey = 1;
}
if (tmpKey == 0) {
if (missionNumber == 1) {
setIdle();
} else {
theCruiser.stopIt();
}
}
}
if (Key.isDown(37)) {
if (bossTime == 0) {
turnButAlreadyPress = 1;
moveCruiser(1, 0);
} else if (bossTime == 2) {
turnButAlreadyPress = 1;
moveCruiser(4, 0);
}
} else if (Key.isDown(39)) {
if (bossTime == 0) {
turnButAlreadyPress = 1;
moveCruiser(1, 1);
} else if (bossTime == 2) {
turnButAlreadyPress = 1;
moveCruiser(4, 1);
}
} else {
turnButAlreadyPress = 0;
moveCruiser(2, 0);
}
if (missionNumber == 2) {
if (Key.isDown(90) and (weaponButAlreadyPress == 0)) {
moveCruiser(3, 0);
weaponButAlreadyPress = 1;
}
}
if (Key.isDown(17)) {
if ((weaponButAlreadyPress == 0) and (bossTime != 1)) {
if ((!rocketFlying) and (rocketTotal > 0)) {
newWeapon(0);
weaponButAlreadyPress = 1;
rocketFlying = true;
rocketTotal--;
}
}
} else if (Key.isDown(32)) {
if ((weaponButAlreadyPress == 0) and (bossTime != 1)) {
tmp = theCruiser.getLaserType();
if (tmp == 1) {
if (!laser1Flying) {
newWeapon(1);
timeForNextLaser = 0;
}
} else if (tmp == 2) {
if (!laser1Flying) {
newWeapon(2);
timeForNextLaser = 0;
}
} else if (tmp == 3) {
if (!laser1Flying) {
newWeapon(3);
timeForNextLaser = 0;
}
} else if (tmp == 4) {
newWeapon(4);
} else if (tmp == 42) {
if (!laser1Flying) {
newWeapon(42);
timeForNextLaser = 0;
}
} else if (tmp == 43) {
if (!laser1Flying) {
newWeapon(43);
timeForNextLaser = 0;
}
} else if (tmp == 53) {
if (!laser1Flying) {
newWeapon(53);
timeForNextLaser = 0;
}
}
weaponButAlreadyPress = 1;
}
} else {
weaponButAlreadyPress = 0;
}
moveWeapons();
checkEnemyShot();
if (missionNumber == 1) {
if (backInfos[currentBackNumber].isEnemyEmpty(0)) {
if (backInfos[currentBackNumber].gEnPossible()) {
if ((Math.abs(backInfos[currentBackNumber].pointEntreX - (theCruiser.getX() - 300)) > 87) or (Math.abs(backInfos[currentBackNumber].pointEntreY - (theCruiser.getY() - 200)) > 80)) {
if (timeSinceLastEnemy > 55) {
if (Math.random() < 0.03) {
backInfos[currentBackNumber].launchNewEn(0);
timeSinceLastEnemy = 0;
}
} else {
timeSinceLastEnemy++;
}
}
}
}
} else if ((bossTime == 0) and (!onFlyBy)) {
if (backInfos[currentBackNumber].aEnPossible()) {
if (timeSinceLastEnemy > 5) {
if (Math.random() < 0.2) {
tmpChoice = Math.round(Math.random() * 3);
timeSinceLastEnemy = 0;
_global.base.attachMovie("flyBy" + tmpChoice, "theFlyTeam", 4500);
_global.base.theFlyTeam._x = theCruiser.getX();
_global.base.theFlyTeam._y = theCruiser.getY();
if ((theCruiser.getX() < 300) and (theCruiser.getY() < 200)) {
_global.base.theFlyTeam._rotation = 135;
} else if ((theCruiser.getX() > 300) and (theCruiser.getY() < 200)) {
_global.base.theFlyTeam._rotation = 225;
} else if ((theCruiser.getX() > 300) and (theCruiser.getY() > 200)) {
_global.base.theFlyTeam._rotation = 315;
} else if ((theCruiser.getX() < 300) and (theCruiser.getY() > 200)) {
_global.base.theFlyTeam._rotation = 45;
}
_global.base.theFlyTeam.team.gotoAndPlay("start");
onFlyBy = true;
backInfos[currentBackNumber].newPlane();
}
} else {
timeSinceLastenemy++;
}
}
}
} else if (cruiserDead and (missionNumber == 1)) {
if (destroyedTime >= 60) {
if (lifeRemaining == 2) {
backInfos[currentBackNumber].saveEnPos(currentBack);
_parent.gotoAndPlay("nextL");
destroyedTime = 0;
} else if (destroyedTime != 999) {
_root.playerScore = totalScore;
changeScreen("lose");
destroyedTime = 999;
}
} else {
destroyedTime++;
}
} else {
setBack();
}
Symbol 1141 MovieClip Frame 4
gotoAndPlay (3);
Symbol 1143 Button
on (keyPress "p") {
if ((!_global.control.gamePaused) and (_global.control.gamePopUp == false)) {
_global.b.broadcastMessage("onPause");
_global.control.gamePaused = true;
pauseM.gotoAndStop("play");
_global.base.SRMG1.stop();
btnMenuu.enabled = false;
} else if (_global.control.gamePopUp == false) {
if (_global.control.missionNumber == 1) {
_global.base.SRMG1.attachSound("SRMG1");
_global.base.SRMG1.start(0, 999999);
} else {
_global.base.SRMG1.attachSound("SRMG2");
_global.base.SRMG1.start(0, 999999);
}
pauseM.gotoAndStop("stop");
_global.b.broadcastMessage("onPlay");
_global.control.gamePaused = false;
btnMenuu.enabled = true;
}
}
on (keyPress "P") {
if ((!_global.control.gamePaused) and (_global.control.gamePopUp == false)) {
_global.b.broadcastMessage("onPause");
_global.control.gamePaused = true;
pauseM.gotoAndStop("play");
_global.base.SRMG1.stop();
btnMenuu.enabled = false;
} else if (_global.control.gamePopUp == false) {
if (_global.control.missionNumber == 1) {
_global.base.SRMG1.attachSound("SRMG1");
_global.base.SRMG1.start(0, 999999);
} else {
_global.base.SRMG1.attachSound("SRMG2");
_global.base.SRMG1.start(0, 999999);
}
pauseM.gotoAndStop("stop");
_global.b.broadcastMessage("onPlay");
_global.control.gamePaused = false;
btnMenuu.enabled = true;
}
}
Symbol 1145 MovieClip Frame 1
function doPause() {
var _local1 = _global;
_local1.b.broadcastMessage("onPause");
_local1.control.gamePaused = true;
_parent.pauseM.gotoAndStop("play");
_local1.base.SRMG1.stop();
}
function unPause() {
var _local1 = _global;
if (_local1.control.missionNumber == 1) {
_local1.base.SRMG1.attachSound("SRMG1");
_local1.base.SRMG1.start(0, 999999);
} else {
_local1.base.SRMG1.attachSound("SRMG2");
_local1.base.SRMG1.start(0, 999999);
}
_parent.pauseM.gotoAndStop("stop");
_local1.b.broadcastMessage("onPlay");
_local1.control.gamePaused = false;
_parent.btnMenuu.enabled = true;
}
function doFalsePause() {
_global.b.broadcastMessage("onPause");
_global.control.gamePaused = true;
}
function undoFalsePause() {
var _local1 = _global;
_local1.control.gamePopUp = false;
_local1.control.gamePaused = false;
_local1.b.broadcastMessage("onPlay");
}
function showInstr() {
_parent.tmpInstr.gotoAndPlay(1);
_parent.tmpInstr._visible = true;
}
function remInstr() {
_parent.tmpInstr._visible = false;
}
_parent.tmpInstr._visible = false;
messengerTime = 0;
messengerVisible = false;
Symbol 1145 MovieClip Frame 2
if (messengerVisible) {
if (messengerTime > 150) {
_parent.theMessenger._visible = false;
messengerVisible = false;
messengerTime = 0;
_parent.tmpPause.undoFalsePause();
} else {
messengerTime++;
}
}
if (messengerVisible) {
if (Key.isDown(32)) {
_parent.theMessenger._visible = false;
_parent.tmpPause.undoFalsePause();
messengerVisible = false;
messengerTime = 0;
}
}
if (((_parent.pauseM._currentframe < 3) and _global.control.gamePaused) and (!messengerVisible)) {
_parent.theMessenger._visible = false;
_parent.tmpPause.undoFalsePause();
messengerVisible = false;
messengerTime = 0;
}
Symbol 1145 MovieClip Frame 3
gotoAndPlay (2);
Symbol 1177 Button
on (release) {
_global.control.changeScreen("titlecard");
}
Symbol 1185 Button
on (release) {
_global.control.changeScreen("scoreDoge");
}
Symbol 1187 Button
on (keyPress "p") {
if (!_global.control.gamePaused) {
_global.b.broadcastMessage("onPause");
_global.control.gamePaused = true;
} else {
_global.b.broadcastMessage("onPlay");
_global.control.gamePaused = false;
}
}