STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228131
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/19728264?noj=FRM19728264-15DC" width="1" height="1"></div>

Pixelvader.swf

This is the info page for
Flash #135383

(Click the ID number above for more basic data on this flash file.)


Text
Are you sure?

No

Yes

(P):pause

2 Players

1 Player

<p align="left"><font face="Trebuchet MS" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Created by Louis-Philip Audet</font></p><p align="left"><font face="Trebuchet MS" size="15" color="#ffffff" letterSpacing="0.000000" kerning="1">Music by <font color="#00cc00"><a href="http://www.xavierdang.com/" target = "_blank">Xavier Dang</a></font></font></p>

Erase
data

Achievements

<p align="left"><font face="Trebuchet MS" size="17" color="#ffffff" letterSpacing="0.000000" kerning="1">Cash : 10000</font></p>

Description

<p align="left"><font face="Trebuchet MS" size="17" color="#ffffff" letterSpacing="0.000000" kerning="1">Move over an upgrade to see a description here.</font></p>

Reset upgrades

5

8

9

10

bonus

1

2

3

4

6

7

Main menu

<p align="left"><font face="Trebuchet MS" size="17" color="#ffffff" letterSpacing="0.000000" kerning="1">Cash : 10000</font></p>

<p align="left"><font face="Trebuchet MS" size="17" color="#ffffff" letterSpacing="0.000000" kerning="1">Move over an upgrade to see a description here.</font></p>

Levels

Space : defensive wave

P : pause

(or WASD)

Left click : defensive wave

Select Control

Player 1

Left click : defensive wave

P : pause

Player 2

Space : defensive wave

(or WASD)

Z : defensive wave

W

A

S

D

<p align="left"><font face="Trebuchet MS" size="17" color="#ffffff" letterSpacing="0.000000" kerning="1">cash</font></p>

Avoid enemies projectiles :
You can move through enemies without damage.
Use your defensive wave if you can't avoid
enemies projectiles.
The game saves your progress after each level.

OK

Resume (p)

Quit level

<p align="center"><font face="Trebuchet MS" size="40" color="#ffffff" letterSpacing="0.000000" kerning="1">Shield low!</font></p><p align="center"><font face="Trebuchet MS" size="40" color="#ffffff" letterSpacing="0.000000" kerning="1">Retreat!</font></p>

<p align="center"><font face="Trebuchet MS" size="40" color="#ffffff" letterSpacing="0.000000" kerning="1">Level completed</font></p>

<p align="left"><font face="Trebuchet MS" size="16" color="#00cc00" letterSpacing="0.000000" kerning="1">P1</font></p>

<p align="left"><font face="Trebuchet MS" size="16" color="#0066ff" letterSpacing="0.000000" kerning="1">P2</font></p>

Congratulations!
You move so fast,
old people can't
see you!

Statistics

Achievements

Number of retreats :

Number of hits taken :

Number of kills :

<p align="left"></p>

<p align="left"></p>

<p align="left"></p>

<p align="center"></p>

MAX

5

11

ActionScript [AS3]

Section 1
//boss01 (game.ennemis.boss01) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss01 extends MovieClip { public var ship:MovieClip; private var sonBossTir:bossLaserTir; private var transformSon:SoundTransform; private var channelSon:SoundChannel; private var contShooting:Number;// = 0 public var hitB:MovieClip; public function boss01(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.6, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } private function sprayRandom(_arg1:Number){ var _local2:Number; var _local3:Number; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; switch (_arg1){ case 1: _local2 = -160; _local3 = 40; break; case 2: _local2 = -80; _local3 = 40; break; case 3: _local2 = 0; _local3 = 40; break; case 4: _local2 = 80; _local3 = 40; break; case 5: _local2 = 160; _local3 = 40; break; }; var _local4:baseEnnemiLaser = new baseEnnemiLaser(0, 1); _local4.x = ((this.x + this.ship.x) + _local2); _local4.y = ((this.y + this.ship.y) + _local3); this.parent.addChild(_local4); application.enenemiLaser.push(_local4); _local4 = null; _local4 = new baseEnnemiLaser(-0.2, 0.8); _local4.x = ((this.x + this.ship.x) + _local2); _local4.y = ((this.y + this.ship.y) + _local3); this.parent.addChild(_local4); application.enenemiLaser.push(_local4); _local4 = null; _local4 = new baseEnnemiLaser(0.2, 0.8); _local4.x = ((this.x + this.ship.x) + _local2); _local4.y = ((this.y + this.ship.y) + _local3); this.parent.addChild(_local4); application.enenemiLaser.push(_local4); _local4 = null; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); var _local1:boss01Mort = new boss01Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 10){ sprayRandom((Math.round((Math.random() * 4)) + 1)); }; if (contShooting == 20){ contShooting = 0; }; contShooting++; }; } } }//package game.ennemis
Section 2
//boss02 (game.ennemis.boss02) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss02 extends MovieClip { private var sonBossTir:bossLaserTir; private var transformSon:SoundTransform; private var dirXSpray:Number;// = 1 public var hitB:MovieClip; private var boolSplit:Boolean;// = false private var angle:Number; private var channelSon:SoundChannel; private var contSplitGun:Number;// = 0 private var contAutomatic:Number;// = 0 private var boolAutomatic:Boolean;// = false private var dirYSpray:Number;// = 0.4 private var transformSon2:SoundTransform; private var contShooting:Number;// = 0 private var boolbigSpray:Boolean;// = false public var ship:MovieClip; private var contbigSpray:Number;// = 0 public function boss02(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); transformSon2 = new SoundTransform(0.6, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 20){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if (contShooting == 90){ angle = 0; boolbigSpray = true; this.addEventListener(Event.ENTER_FRAME, bigSpray); }; if (contShooting == 220){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if (contShooting == 290){ dirXSpray = 0; dirYSpray = 1; boolSplit = true; this.addEventListener(Event.ENTER_FRAME, splitGun); }; if (contShooting == 340){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if (contShooting == 380){ dirXSpray = 0; dirYSpray = 1; boolSplit = true; this.addEventListener(Event.ENTER_FRAME, splitGun); }; if ((((contShooting == 420)) || ((contShooting == 440)))){ angle = (0 + (Math.PI / 2.5)); directSpray(); }; if (contShooting >= 460){ contShooting = 0; }; contShooting++; }; } private function directSpray(){ var _local1:baseEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; var _local2:* = 0; while (_local2 < 9) { dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local1 = new baseEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x + 4) + this.ship.x); _local1.y = ((this.y + 75) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; angle = (angle + ((Math.PI - (Math.PI / 1.25)) / 8)); _local2++; }; } private function bigSpray(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contbigSpray++; if ((contbigSpray % 2) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local2.x = ((this.x + 149) + this.ship.x); _local2.y = ((this.y + 68) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-(dirXSpray), dirYSpray); _local2.x = ((this.x - 149) + this.ship.x); _local2.y = ((this.y + 68) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; if (contbigSpray <= 40){ angle = (angle + (Math.PI / 20)); } else { if (contbigSpray <= 80){ angle = (angle - (Math.PI / 20)); } else { if (contbigSpray <= 120){ angle = (angle + (Math.PI / 20)); }; }; }; }; if (contbigSpray >= 120){ contbigSpray = 0; this.removeEventListener(Event.ENTER_FRAME, bigSpray); boolbigSpray = false; }; }; } private function automaticGun(_arg1:Event){ var _local2:baseEnnemiLaser; if (application.pause == false){ contAutomatic++; if ((contAutomatic % 5) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new baseEnnemiLaser(0, 1); _local2.x = (((this.x + 58) + (Math.random() * 20)) + this.ship.x); _local2.y = ((this.y + 40) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new baseEnnemiLaser(0, 1); _local2.x = (((this.x - 58) - (Math.random() * 20)) + this.ship.x); _local2.y = ((this.y + 40) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; if (contAutomatic >= 60){ contAutomatic = 0; this.removeEventListener(Event.ENTER_FRAME, automaticGun); boolAutomatic = false; }; }; } private function splitGun(_arg1:Event){ var _local2:baseEnnemiLaser; if (application.pause == false){ contSplitGun++; if ((contSplitGun % 2) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new baseEnnemiLaser(dirXSpray, dirYSpray); _local2.x = ((this.x + 4) + this.ship.x); _local2.y = ((this.y + 75) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new baseEnnemiLaser(-(dirXSpray), dirYSpray); _local2.x = ((this.x - 4) + this.ship.x); _local2.y = ((this.y + 75) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; dirXSpray = (dirXSpray + (1 / 15)); dirYSpray = (dirYSpray - (1 / 15)); }; if (contSplitGun >= 30){ contSplitGun = 0; this.removeEventListener(Event.ENTER_FRAME, splitGun); boolSplit = false; }; }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); if (boolAutomatic == true){ this.removeEventListener(Event.ENTER_FRAME, automaticGun); }; if (boolbigSpray == true){ this.removeEventListener(Event.ENTER_FRAME, bigSpray); }; if (boolSplit == true){ this.removeEventListener(Event.ENTER_FRAME, splitGun); }; var _local1:boss02Mort = new boss02Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } } }//package game.ennemis
Section 3
//boss03 (game.ennemis.boss03) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss03 extends MovieClip { public var ship:MovieClip; private var sonBossTir:bossLaserTir; private var transformSon:SoundTransform; private var dirXSpray:Number;// = 1 public var hitB:MovieClip; private var boolSplit:Boolean;// = false private var channelSon:SoundChannel; private var contSplitGun:Number;// = 0 private var contAutomatic:Number;// = 0 private var boolAutomatic:Boolean;// = false private var dirYSpray:Number;// = 0.4 private var transformSon2:SoundTransform; private var contShooting:Number;// = 0 private var boolbigSpray:Boolean;// = false private var alterneAutomatique:Number;// = 1 private var contbigSpray:Number;// = 1 public function boss03(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); transformSon2 = new SoundTransform(0.6, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } private function bigSpray(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contbigSpray++; if ((contbigSpray % 2) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local2.x = ((this.x + 122) + this.ship.x); _local2.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-(dirXSpray), dirYSpray); _local2.x = ((this.x - 125) + this.ship.x); _local2.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; if (contbigSpray == 30){ dirXSpray = (1 - (2 / 28)); dirYSpray = (0.4 + (0.6 / 28)); }; if (contbigSpray == 60){ dirXSpray = 1; dirYSpray = 0.4; }; if (contbigSpray <= 15){ dirXSpray = (dirXSpray - (2 / 14)); dirYSpray = (dirYSpray + (1 / 14)); } else { if (contbigSpray < 30){ dirXSpray = (dirXSpray - (2 / 14)); dirYSpray = (dirYSpray - (1 / 14)); } else { if (contbigSpray <= 45){ dirXSpray = (dirXSpray - (2 / 14)); dirYSpray = (dirYSpray + (1 / 14)); } else { if (contbigSpray <= 60){ dirXSpray = (dirXSpray - (2 / 14)); dirYSpray = (dirYSpray - (1 / 14)); } else { if (contbigSpray <= 75){ dirXSpray = (dirXSpray - (2 / 14)); dirYSpray = (dirYSpray + (1 / 14)); } else { if (contbigSpray <= 90){ dirXSpray = (dirXSpray - (2 / 14)); dirYSpray = (dirYSpray - (1 / 14)); }; }; }; }; }; }; }; if (contbigSpray >= 90){ contbigSpray = 1; this.removeEventListener(Event.ENTER_FRAME, bigSpray); boolbigSpray = false; }; }; } private function littleSpray3(){ var _local1:baseEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; var _local2:Number = 1; dirXSpray = -0.2; dirYSpray = 0.8; var _local3:* = 0; while (_local3 < 5) { _local1 = new baseEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x + -42.5) + this.ship.x); _local1.y = ((this.y + 44) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; _local1 = new baseEnnemiLaser(-(dirXSpray), dirYSpray); _local1.x = ((this.x + 38.5) + this.ship.x); _local1.y = ((this.y + 44) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; dirXSpray = (dirXSpray + 0.1); if ((_local2 < 3)){ dirYSpray = (dirYSpray + 0.1); } else { dirYSpray = (dirYSpray - 0.1); }; _local2++; _local3++; }; } private function automaticGun(_arg1:Event){ var _local2:baseEnnemiLaser; if (application.pause == false){ contAutomatic++; if ((contAutomatic % 2) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new baseEnnemiLaser(0, 1); switch (alterneAutomatique){ case 1: _local2.x = ((this.x + -82.5) + this.ship.x); _local2.y = ((this.y + 17) + this.ship.y); break; case 2: _local2.x = ((this.x + -62.5) + this.ship.x); _local2.y = ((this.y + 30) + this.ship.y); break; case 3: _local2.x = ((this.x + -42) + this.ship.x); _local2.y = ((this.y + 44) + this.ship.y); break; case 4: _local2.x = ((this.x + -22) + this.ship.x); _local2.y = ((this.y + 57) + this.ship.y); break; }; this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new baseEnnemiLaser(0, 1); switch (alterneAutomatique){ case 1: _local2.x = ((this.x + 79) + this.ship.x); _local2.y = ((this.y + 17) + this.ship.y); alterneAutomatique++; break; case 2: _local2.x = ((this.x + 59) + this.ship.x); _local2.y = ((this.y + 30) + this.ship.y); alterneAutomatique++; break; case 3: _local2.x = ((this.x + 38.5) + this.ship.x); _local2.y = ((this.y + 44) + this.ship.y); alterneAutomatique++; break; case 4: _local2.x = ((this.x + 18.5) + this.ship.x); _local2.y = ((this.y + 57) + this.ship.y); alterneAutomatique = 1; break; }; this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; if (contAutomatic >= 64){ contAutomatic = 0; this.removeEventListener(Event.ENTER_FRAME, automaticGun); boolAutomatic = false; }; }; } private function tirCote(){ var _local2:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; dirXSpray = 0.9; dirYSpray = 0.1; var _local1:Number = 0; while (_local1 < 20) { _local2 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local2.x = ((this.x + 114) + this.ship.x); _local2.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-(dirXSpray), dirYSpray); _local2.x = ((this.x - 117) + this.ship.x); _local2.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; dirXSpray = (dirXSpray - (0.9 / 20)); dirYSpray = (dirYSpray + (0.9 / 20)); _local1++; }; } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 20){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if (contShooting == 100){ littleSpray1(); }; if (contShooting == 120){ littleSpray2(); }; if (contShooting == 140){ littleSpray3(); }; if (contShooting == 160){ littleSpray4(); }; if (contShooting == 200){ littleSpray1(); littleSpray2(); littleSpray3(); littleSpray4(); }; if (contShooting == 220){ dirXSpray = 1; dirYSpray = 0.4; boolbigSpray = true; this.addEventListener(Event.ENTER_FRAME, bigSpray); }; if (contShooting == 370){ tirCote(); }; if (contShooting == 380){ tirCote(); }; if (contShooting == 375){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if (contShooting == 390){ tirCote(); }; if (contShooting == 470){ dirXSpray = 1; dirYSpray = 0.4; boolbigSpray = true; this.addEventListener(Event.ENTER_FRAME, bigSpray); }; if (contShooting == 600){ littleSpray1(); littleSpray2(); littleSpray3(); littleSpray4(); }; if (contShooting >= 630){ contShooting = 0; }; contShooting++; }; } private function splitGun(_arg1:Event){ var _local2:baseEnnemiLaser; if (application.pause == false){ contSplitGun++; if ((contSplitGun % 2) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new baseEnnemiLaser(dirXSpray, dirYSpray); _local2.x = ((this.x + 4) + this.ship.x); _local2.y = ((this.y + 75) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new baseEnnemiLaser(-(dirXSpray), dirYSpray); _local2.x = ((this.x - 4) + this.ship.x); _local2.y = ((this.y + 75) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; dirXSpray = (dirXSpray + (1 / 15)); dirYSpray = (dirYSpray - (1 / 15)); }; if (contSplitGun >= 30){ contSplitGun = 0; this.removeEventListener(Event.ENTER_FRAME, splitGun); boolSplit = false; }; }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); if (boolAutomatic == true){ this.removeEventListener(Event.ENTER_FRAME, automaticGun); }; if (boolbigSpray == true){ this.removeEventListener(Event.ENTER_FRAME, bigSpray); }; if (boolSplit == true){ this.removeEventListener(Event.ENTER_FRAME, splitGun); }; var _local1:boss03Mort = new boss03Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function littleSpray1(){ var _local1:baseEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; var _local2:Number = 1; dirXSpray = -0.2; dirYSpray = 0.8; var _local3:* = 0; while (_local3 < 5) { _local1 = new baseEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x + -82.5) + this.ship.x); _local1.y = ((this.y + 17) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; _local1 = new baseEnnemiLaser(-(dirXSpray), dirYSpray); _local1.x = ((this.x + 79) + this.ship.x); _local1.y = ((this.y + 17) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; dirXSpray = (dirXSpray + 0.1); if ((_local2 < 3)){ dirYSpray = (dirYSpray + 0.1); } else { dirYSpray = (dirYSpray - 0.1); }; _local2++; _local3++; }; } private function littleSpray2(){ var _local1:baseEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; var _local2:Number = 1; dirXSpray = -0.2; dirYSpray = 0.8; var _local3:* = 0; while (_local3 < 5) { _local1 = new baseEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x + -62.5) + this.ship.x); _local1.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; _local1 = new baseEnnemiLaser(-(dirXSpray), dirYSpray); _local1.x = ((this.x + 59) + this.ship.x); _local1.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; dirXSpray = (dirXSpray + 0.1); if ((_local2 < 3)){ dirYSpray = (dirYSpray + 0.1); } else { dirYSpray = (dirYSpray - 0.1); }; _local2++; _local3++; }; } private function littleSpray4(){ var _local1:baseEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; var _local2:Number = 1; dirXSpray = -0.2; dirYSpray = 0.8; var _local3:* = 0; while (_local3 < 5) { _local1 = new baseEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x + -22.5) + this.ship.x); _local1.y = ((this.y + 57) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; _local1 = new baseEnnemiLaser(-(dirXSpray), dirYSpray); _local1.x = ((this.x + 18.5) + this.ship.x); _local1.y = ((this.y + 57) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; dirXSpray = (dirXSpray + 0.1); if ((_local2 < 3)){ dirYSpray = (dirYSpray + 0.1); } else { dirYSpray = (dirYSpray - 0.1); }; _local2++; _local3++; }; } } }//package game.ennemis
Section 4
//boss04 (game.ennemis.boss04) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss04 extends MovieClip { private var boolPetit:Boolean;// = false private var dirXSpray:Number;// = 1 public var ship:MovieClip; private var sonBossTir:bossLaserTir; private var transformSon:SoundTransform; private var contAutoInfini:Number;// = 0 public var hitB:MovieClip; private var channelSon:SoundChannel; private var altern:Number;// = 0 private var boolGros:Boolean;// = false private var dirYSpray:Number;// = 0.4 private var boolAltern:Boolean;// = false private var contShooting:Number;// = 0 private var contAutoGun:Number;// = 0 public function boss04(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); this.addEventListener(Event.ENTER_FRAME, autoInfini); } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); this.removeEventListener(Event.ENTER_FRAME, autoInfini); if (boolPetit == true){ this.removeEventListener(Event.ENTER_FRAME, autoPetit); }; if (boolGros == true){ this.removeEventListener(Event.ENTER_FRAME, autoGros); }; if (boolAltern == true){ this.removeEventListener(Event.ENTER_FRAME, autoAltern); }; var _local1:boss04Mort = new boss04Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function autoPetit(_arg1:Event){ var _local2:Number; var _local3:baseEnnemiLaser; var _local4:*; if (application.pause == false){ contAutoGun++; _local2 = -120; if ((contAutoGun % 5) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local4 = 0; while (_local4 < 7) { _local3 = new baseEnnemiLaser(0, 1); _local3.x = ((this.x + _local2) + this.ship.x); _local3.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local3); application.enenemiLaser.push(_local3); _local3 = null; _local2 = (_local2 + 40); _local4++; }; }; if (contAutoGun >= 30){ contAutoGun = 0; this.removeEventListener(Event.ENTER_FRAME, autoPetit); boolPetit = false; }; }; } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 20){ boolPetit = true; this.addEventListener(Event.ENTER_FRAME, autoPetit); }; if (contShooting == 55){ boolGros = true; this.addEventListener(Event.ENTER_FRAME, autoGros); }; if (contShooting == 90){ boolAltern = true; this.addEventListener(Event.ENTER_FRAME, autoAltern); }; if ((((((contShooting == 190)) || ((contShooting == 220)))) || ((contShooting == 250)))){ this.tirTroue(); }; if (contShooting == 270){ boolAltern = true; this.addEventListener(Event.ENTER_FRAME, autoAltern); }; if ((((((contShooting == 370)) || ((contShooting == 400)))) || ((contShooting == 430)))){ this.tirTroue(); }; if (contShooting == 460){ boolAltern = true; this.addEventListener(Event.ENTER_FRAME, autoAltern); }; if ((((contShooting == 570)) || ((contShooting == 590)))){ this.tirTroue(); }; if (contShooting >= 610){ contShooting = 0; }; contShooting++; }; } private function tirTroue(){ var _local2:bigEnnemiLaser; var _local6:baseEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; var _local1:Number = -140; var _local3:int = Math.round((Math.random() * 14)); var _local4:int; var _local5:* = 0; while (_local5 < 8) { if (_local4 != _local3){ _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x + _local1) + this.ship.x); _local2.y = ((this.y + 17) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; _local1 = (_local1 + 40); _local4++; _local5++; }; _local1 = -120; var _local7:* = 0; while (_local7 < 7) { if (_local4 != _local3){ _local6 = new baseEnnemiLaser(0, 1); _local6.x = ((this.x + _local1) + this.ship.x); _local6.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local6); application.enenemiLaser.push(_local6); _local6 = null; }; _local1 = (_local1 + 40); _local4++; _local7++; }; } private function autoAltern(_arg1:Event){ var _local2:Number; var _local3:bigEnnemiLaser; var _local4:*; var _local5:baseEnnemiLaser; var _local6:*; if (application.pause == false){ contAutoGun++; _local2 = 0; if ((contAutoGun % 15) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; altern++; if ((altern % 2) == 0){ _local2 = -140; _local4 = 0; while (_local4 < 8) { _local3 = new bigEnnemiLaser(0, 1); _local3.x = ((this.x + _local2) + this.ship.x); _local3.y = ((this.y + 17) + this.ship.y); this.parent.addChild(_local3); application.enenemiLaser.push(_local3); _local3 = null; _local2 = (_local2 + 40); _local4++; }; } else { _local2 = -120; _local6 = 0; while (_local6 < 7) { _local5 = new baseEnnemiLaser(0, 1); _local5.x = ((this.x + _local2) + this.ship.x); _local5.y = ((this.y + 30) + this.ship.y); this.parent.addChild(_local5); application.enenemiLaser.push(_local5); _local5 = null; _local2 = (_local2 + 40); _local6++; }; }; }; if (contAutoGun >= 60){ contAutoGun = 0; this.removeEventListener(Event.ENTER_FRAME, autoAltern); boolAltern = false; altern = 0; }; }; } private function autoGros(_arg1:Event){ var _local2:Number; var _local3:bigEnnemiLaser; var _local4:*; if (application.pause == false){ contAutoGun++; _local2 = -140; if ((contAutoGun % 5) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local4 = 0; while (_local4 < 8) { _local3 = new bigEnnemiLaser(0, 1); _local3.x = ((this.x + _local2) + this.ship.x); _local3.y = ((this.y + 17) + this.ship.y); this.parent.addChild(_local3); application.enenemiLaser.push(_local3); _local3 = null; _local2 = (_local2 + 40); _local4++; }; }; if (contAutoGun >= 30){ contAutoGun = 0; this.removeEventListener(Event.ENTER_FRAME, autoGros); boolGros = false; }; }; } private function autoInfini(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contAutoInfini++; if ((contAutoInfini % 5) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x - 169) + this.ship.x); _local2.y = ((this.y + 48) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x + 169) + this.ship.x); _local2.y = ((this.y + 48) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; }; } } }//package game.ennemis
Section 5
//boss05 (game.ennemis.boss05) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss05 extends MovieClip { private var dirXSprayB:Number; private var dirYSprayB:Number; private var dirXSprayD:Number; private var cont360SprayVert:Number;// = 0 private var dirXSprayG:Number; private var dirYSprayD:Number; private var dirYSprayG:Number; public var hitB:MovieClip; private var dirYSprayH:Number; private var dirXSpray:Number; private var dirYSpray:Number; private var angle:Number; private var bool360SprayCote:Boolean;// = false private var dirXSprayH:Number; private var transformSon2:SoundTransform; private var cont360SprayCote:Number;// = 0 private var channelSon:SoundChannel; private var transformSon:SoundTransform; private var contShooting:Number;// = 0 private var bool360SprayVert:Boolean;// = false public var ship:MovieClip; private var sonBossTir:bossLaserTir; public function boss05(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); transformSon2 = new SoundTransform(0.6, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } private function littleSpray(){ var _local1:baseEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; angle = 0; var _local2:* = 0; while (_local2 < 40) { dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local1 = new baseEnnemiLaser(dirXSpray, dirYSpray); _local1.x = (this.x + this.ship.x); _local1.y = (this.y + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; angle = (angle + (Math.PI / 20)); _local2++; }; } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 10){ angle = 0; bool360SprayCote = true; this.addEventListener(Event.ENTER_FRAME, Spray360Cote); }; if (contShooting == 100){ angle = (Math.PI / 2); bool360SprayVert = true; this.addEventListener(Event.ENTER_FRAME, Spray360Vert); }; if ((((((((((contShooting == 170)) || ((contShooting == 220)))) || ((contShooting == 250)))) || ((contShooting == 280)))) || ((contShooting == 320)))){ littleSpray(); }; if (contShooting >= 370){ contShooting = 0; }; contShooting++; }; } private function Spray360Vert(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; cont360SprayVert++; dirXSprayB = Math.cos(angle); dirYSprayB = Math.sin(angle); dirXSprayH = Math.cos((angle + Math.PI)); dirYSprayH = Math.sin((angle + Math.PI)); _local2 = new bigEnnemiLaser(dirXSprayB, dirYSprayB); _local2.x = (this.x + this.ship.x); _local2.y = ((this.y + this.ship.y) + (this.ship.height / 2)); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(dirXSprayH, dirYSprayH); _local2.x = (this.x + this.ship.x); _local2.y = ((this.y + this.ship.y) - (this.ship.height / 2)); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; angle = (angle + (Math.PI / 20)); if (cont360SprayVert > 40){ cont360SprayVert = 1; this.removeEventListener(Event.ENTER_FRAME, Spray360Vert); bool360SprayVert = false; }; }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); if (bool360SprayCote == true){ this.removeEventListener(Event.ENTER_FRAME, Spray360Cote); }; if (bool360SprayVert == true){ this.removeEventListener(Event.ENTER_FRAME, Spray360Vert); }; var _local1:boss05Mort = new boss05Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function Spray360Cote(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; cont360SprayCote++; dirXSprayD = Math.cos(angle); dirYSprayD = Math.sin(angle); dirXSprayG = Math.cos((angle + Math.PI)); dirYSprayG = Math.sin((angle + Math.PI)); _local2 = new bigEnnemiLaser(dirXSprayD, dirYSprayD); _local2.x = ((this.x + this.ship.x) + (this.ship.width / 2)); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(dirXSprayG, dirYSprayG); _local2.x = ((this.x + this.ship.x) - (this.ship.width / 2)); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; angle = (angle + (Math.PI / 20)); if (cont360SprayCote > 40){ cont360SprayCote = 1; this.removeEventListener(Event.ENTER_FRAME, Spray360Cote); bool360SprayCote = false; }; }; } } }//package game.ennemis
Section 6
//boss06 (game.ennemis.boss06) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss06 extends MovieClip { private var sonBossTir:bossLaserTir; private var transformSon:SoundTransform; private var dirXSpray:Number;// = 1 public var hitB:MovieClip; private var boolSplit:Boolean;// = false private var angle:Number; private var channelSon:SoundChannel; private var contSplitGun:Number;// = 0 private var contAutomatic:Number;// = 0 private var boolAutomatic:Boolean;// = false private var dirYSpray:Number;// = 0.4 private var transformSon2:SoundTransform; private var contShooting:Number;// = 0 private var boolbigSpray:Boolean;// = false public var ship:MovieClip; private var contbigSpray:Number;// = 1 public function boss06(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); transformSon2 = new SoundTransform(0.6, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 10){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if ((((((contShooting == 40)) || ((contShooting == 60)))) || ((contShooting == 80)))){ angle = 0; directSpray(); }; if ((((((contShooting == 50)) || ((contShooting == 70)))) || ((contShooting == 90)))){ angle = (0 + (Math.PI / 32)); directSpray(); }; if ((((((contShooting == 120)) || ((contShooting == 140)))) || ((contShooting == 160)))){ angle = 0; directSpray(); }; if ((((((contShooting == 130)) || ((contShooting == 150)))) || ((contShooting == 170)))){ angle = (0 + (Math.PI / 32)); directSpray(); }; if (contShooting == 230){ angle = 0; medSpray(); }; if (contShooting == 260){ angle = 0; rightSpray(); }; if (contShooting == 290){ angle = 0; leftSpray(); }; if (contShooting == 330){ angle = 0; medSpray(); }; if (contShooting == 350){ angle = 0; leftSpray(); }; if (contShooting == 370){ angle = 0; medSpray(); }; if (contShooting == 390){ angle = 0; rightSpray(); }; if (contShooting == 430){ contShooting = 0; }; contShooting++; }; } private function medSpray(){ var _local1:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); var _local2:* = 0; while (_local2 < 50) { if ((((_local2 < 24)) || ((_local2 > 26)))){ _local1 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x - 1) + this.ship.x); _local1.y = ((this.y + 55) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; }; angle = (angle + (Math.PI / 50)); dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2++; }; } private function directSpray(){ var _local1:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); var _local2:* = 0; while (_local2 < 22) { _local1 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x - 1) + this.ship.x); _local1.y = ((this.y + 55) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; angle = (angle + (Math.PI / 22)); dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2++; }; } private function automaticGun(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contAutomatic++; if ((contAutomatic % 5) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x + 93) + this.ship.x); _local2.y = ((this.y + 31) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x - 95) + this.ship.x); _local2.y = ((this.y + 31) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; if (contAutomatic >= 160){ contAutomatic = 0; this.removeEventListener(Event.ENTER_FRAME, automaticGun); boolAutomatic = false; }; }; } private function leftSpray(){ var _local1:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); var _local2:* = 0; while (_local2 < 50) { if ((((_local2 < 31)) || ((_local2 > 33)))){ _local1 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x - 1) + this.ship.x); _local1.y = ((this.y + 55) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; }; angle = (angle + (Math.PI / 50)); dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2++; }; } private function rightSpray(){ var _local1:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); var _local2:* = 0; while (_local2 < 50) { if ((((_local2 < 17)) || ((_local2 > 19)))){ _local1 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x - 1) + this.ship.x); _local1.y = ((this.y + 55) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; }; angle = (angle + (Math.PI / 50)); dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2++; }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); if (boolAutomatic == true){ this.removeEventListener(Event.ENTER_FRAME, automaticGun); }; var _local1:boss06Mort = new boss06Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } } }//package game.ennemis
Section 7
//boss07 (game.ennemis.boss07) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss07 extends MovieClip { private var dirXSpray:Number;// = 1 private var transformSon:SoundTransform; public var hitB:MovieClip; private var finTir:Number; private var dirXAutoSpray:Number;// = 0 private var channelSon:SoundChannel; private var contSplitGun:Number;// = 0 private var contAutomatic:Number;// = 0 private var dirYSpray:Number;// = 0.4 private var angleAuto:Number; private var boolAutoTir:Boolean;// = false private var contAutoSpray:Number;// = 0 private var dirYAutoSpray:Number;// = 0 private var contShooting:Number;// = 0 public var ship:MovieClip; private var intervaleTir:Number; private var contbigSpray:Number;// = 1 private var boolSplit:Boolean;// = false private var angle:Number; private var contAutoTir:Number;// = 0 private var boolAutomatic:Boolean;// = false private var dirX:Number;// = 0 private var dirY:Number;// = 0 private var boolAutoSpray:Boolean;// = false private var boolbigSpray:Boolean;// = false private var sonBossTir:bossLaserTir; public function boss07(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } private function automaticGun(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contAutomatic++; if ((contAutomatic % 5) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x + 157) + this.ship.x); _local2.y = ((this.y + 9) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x - 158) + this.ship.x); _local2.y = ((this.y + 9) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; if (contAutomatic >= 400){ contAutomatic = 0; this.removeEventListener(Event.ENTER_FRAME, automaticGun); boolAutomatic = false; }; }; } private function autoGunSpray(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; contAutoSpray++; dirXAutoSpray = Math.cos(angleAuto); dirYAutoSpray = Math.sin(angleAuto); _local2 = new bigEnnemiLaser(dirXAutoSpray, dirYAutoSpray); _local2.x = ((this.x + 157) + this.ship.x); _local2.y = ((this.y + 9) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-(dirXAutoSpray), dirYAutoSpray); _local2.x = ((this.x - 158) + this.ship.x); _local2.y = ((this.y + 9) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; if (contAutoSpray < 15){ angleAuto = (angleAuto + ((Math.PI / 1.2) / 15)); } else { if (contAutoSpray < 25){ angleAuto = (angleAuto - ((Math.PI / 1.4) / 10)); } else { if (contAutoSpray < 35){ angleAuto = (angleAuto + ((Math.PI / 1.4) / 10)); } else { if (contAutoSpray < 45){ angleAuto = (angleAuto - ((Math.PI / 1.4) / 10)); } else { if (contAutoSpray < 55){ angleAuto = (angleAuto + ((Math.PI / 1.4) / 10)); } else { if (contAutoSpray < 65){ angleAuto = (angleAuto - ((Math.PI / 1.4) / 10)); } else { if (contAutoSpray < 75){ angleAuto = (angleAuto + ((Math.PI / 1.4) / 10)); } else { if (contAutoSpray < 85){ angleAuto = (angleAuto - ((Math.PI / 1.4) / 10)); }; }; }; }; }; }; }; }; if (contAutoSpray >= 85){ contAutoSpray = 0; this.removeEventListener(Event.ENTER_FRAME, autoGunSpray); boolAutoSpray = false; }; }; } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 10){ angleAuto = 0; boolAutoSpray = true; this.addEventListener(Event.ENTER_FRAME, autoGunSpray); }; if (contShooting == 20){ intervaleTir = 15; finTir = 90; boolAutoTir = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 130){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if (contShooting == 160){ intervaleTir = 6; finTir = 200; boolAutoTir = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 380){ intervaleTir = 2; finTir = 60; boolAutoTir = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 450){ intervaleTir = 2; finTir = 60; boolAutoTir = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 550){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if (contShooting == 580){ angleAuto = 0; boolAutoSpray = true; this.addEventListener(Event.ENTER_FRAME, autoGunSpray); }; if (contShooting == 700){ intervaleTir = 2; finTir = 70; boolAutoTir = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 790){ intervaleTir = 5; finTir = 180; boolAutoTir = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 1000){ contShooting = 0; }; contShooting++; }; } private function autoTir(_arg1:Event){ if (application.pause == false){ contAutoTir++; if ((contAutoTir % intervaleTir) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; tirTeteChercheuse(); }; if (contAutoTir >= finTir){ contAutoTir = 0; this.removeEventListener(Event.ENTER_FRAME, autoTir); boolAutoTir = false; }; }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); if (boolAutomatic == true){ this.removeEventListener(Event.ENTER_FRAME, automaticGun); }; if (boolAutoSpray == true){ this.removeEventListener(Event.ENTER_FRAME, autoGunSpray); }; if (boolAutoTir == true){ this.removeEventListener(Event.ENTER_FRAME, autoTir); }; var _local1:boss07Mort = new boss07Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function tirTeteChercheuse(){ var _local1:Number = ((application.posPlayer.x - (this.x + this.ship.x)) / (Math.abs((application.posPlayer.x - (this.x + this.ship.x))) + Math.abs((application.posPlayer.y - ((this.y + 74) + this.ship.y))))); var _local2:Number = ((application.posPlayer.y - ((this.y + 74) + this.ship.y)) / (Math.abs((application.posPlayer.x - (this.x + this.ship.x))) + Math.abs((application.posPlayer.y - ((this.y + 74) + this.ship.y))))); var _local3:bigEnnemiLaser = new bigEnnemiLaser((_local1 * 1.5), (_local2 * 1.5)); _local3.x = (this.x + this.ship.x); _local3.y = ((this.y + 74) + this.ship.y); this.parent.addChild(_local3); application.enenemiLaser.push(_local3); _local3 = null; } } }//package game.ennemis
Section 8
//boss08 (game.ennemis.boss08) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss08 extends MovieClip { private var angleSerre:Number; private var contSerre:Number;// = 0 private var transformSon:SoundTransform; private var dirYSerre:Number; private var dirXSpray:Number; public var hitB:MovieClip; private var channelSon:SoundChannel; private var finTir:Number; private var dirYSpray:Number; private var boolAutoTir:Boolean;// = false private var contAutoSpray:Number;// = 0 private var contShooting:Number;// = 0 public var ship:MovieClip; private var intervaleTir:Number; private var boolSerre:Boolean;// = false private var angle:Number; private var contAutoTir:Number;// = 0 private var dirXSerre:Number; private var dirX:Number; private var dirY:Number; private var autoTirQuatre:Boolean; private var transformSon2:SoundTransform; private var boolAutoSpray:Boolean;// = false private var sonBossTir:bossLaserTir; public function boss08(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); transformSon2 = new SoundTransform(0.6, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 10){ boolAutoSpray = true; this.addEventListener(Event.ENTER_FRAME, automaticSpray); }; if (contShooting == 20){ intervaleTir = 10; finTir = 220; boolAutoTir = true; autoTirQuatre = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 100){ angle = (Math.PI / 4); directSpray(-153); directSpray(151); }; if (contShooting == 200){ angle = (Math.PI / 4); directSpray(-93); directSpray(90); }; if (contShooting == 290){ angleSerre = (Math.PI / 8); boolSerre = true; this.addEventListener(Event.ENTER_FRAME, tirSerre); }; if (contShooting == 300){ intervaleTir = 15; finTir = 100; boolAutoTir = true; autoTirQuatre = false; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 390){ angleSerre = (Math.PI / 8); boolSerre = true; this.addEventListener(Event.ENTER_FRAME, tirSerre); }; if ((((contShooting == 410)) || ((contShooting == 430)))){ angle = (Math.PI / 4); directSpray(-93); directSpray(90); }; if (contShooting == 470){ contShooting = 0; }; contShooting++; }; } private function automaticSpray(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contAutoSpray++; if ((contAutoSpray % 4) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new bigEnnemiLaser(Math.cos((Math.PI / 3)), Math.sin((Math.PI / 3))); _local2.x = (this.x + this.ship.x); _local2.y = ((this.y + 75) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(Math.cos(((2 * Math.PI) / 3)), Math.sin(((2 * Math.PI) / 3))); _local2.x = (this.x + this.ship.x); _local2.y = ((this.y + 75) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; if (contAutoSpray >= 250){ contAutoSpray = 0; this.removeEventListener(Event.ENTER_FRAME, automaticSpray); boolAutoSpray = false; }; }; } private function directSpray(_arg1){ var _local2:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); var _local3:* = 0; while (_local3 < 9) { _local2 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local2.x = ((this.x + _arg1) + this.ship.x); _local2.y = ((this.y + 54) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; angle = (angle + (Math.PI / 16)); dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local3++; }; angle = (Math.PI / 4); } private function autoTir(_arg1:Event){ if (application.pause == false){ contAutoTir++; if ((contAutoTir % intervaleTir) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; tirTeteChercheuse(-93); tirTeteChercheuse(90); if (autoTirQuatre){ tirTeteChercheuse(-153); tirTeteChercheuse(151); }; }; if (contAutoTir >= finTir){ contAutoTir = 0; this.removeEventListener(Event.ENTER_FRAME, autoTir); boolAutoTir = false; }; }; } private function tirSerre(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; contSerre++; dirXSerre = Math.cos(angleSerre); dirYSerre = Math.sin(angleSerre); _local2 = new bigEnnemiLaser(dirXSerre, dirYSerre); _local2.x = ((this.x + 151) + this.ship.x); _local2.y = ((this.y + 54) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-(dirXSerre), dirYSerre); _local2.x = ((this.x - 151) + this.ship.x); _local2.y = ((this.y + 54) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; angleSerre = (angleSerre + (Math.PI / 100)); if (contSerre >= 60){ contSerre = 0; this.removeEventListener(Event.ENTER_FRAME, tirSerre); boolSerre = false; }; }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); if (boolAutoSpray == true){ this.removeEventListener(Event.ENTER_FRAME, automaticSpray); }; if (boolAutoTir == true){ this.removeEventListener(Event.ENTER_FRAME, autoTir); }; if (boolSerre == true){ this.removeEventListener(Event.ENTER_FRAME, tirSerre); }; var _local1:boss08Mort = new boss08Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function tirTeteChercheuse(_arg1:Number){ var _local2:Number = ((application.posPlayer.x - ((this.x + _arg1) + this.ship.x)) / (Math.abs((application.posPlayer.x - ((this.x + _arg1) + this.ship.x))) + Math.abs((application.posPlayer.y - ((this.y + 54) + this.ship.y))))); var _local3:Number = ((application.posPlayer.y - ((this.y + 54) + this.ship.y)) / (Math.abs((application.posPlayer.x - ((this.x + _arg1) + this.ship.x))) + Math.abs((application.posPlayer.y - ((this.y + 54) + this.ship.y))))); var _local4:bigEnnemiLaser = new bigEnnemiLaser((_local2 * 1.5), (_local3 * 1.5)); _local4.x = ((this.x + _arg1) + this.ship.x); _local4.y = ((this.y + 54) + this.ship.y); this.parent.addChild(_local4); application.enenemiLaser.push(_local4); _local4 = null; } } }//package game.ennemis
Section 9
//boss09 (game.ennemis.boss09) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss09 extends MovieClip { private var angleSerre:Number; private var contSerre:Number;// = 0 private var sonBossTir:bossLaserTir; private var transformSon:SoundTransform; private var dirYSerre:Number; private var dirXSpray:Number; public var hitB:MovieClip; private var channelSon:SoundChannel; private var contAutomatic:Number;// = 0 private var dirYSpray:Number; private var finTir:Number; private var boolAutoTir:Boolean;// = false private var boolAutoTour:Boolean;// = false private var contShooting:Number;// = 0 public var ship:MovieClip; private var intervaleTir:Number; private var angle1:Number; private var angle2:Number; private var angle3:Number; private var angle4:Number; private var boolSerre:Boolean;// = false private var angle:Number; private var contAutoTir:Number;// = 0 private var boolAutomatic:Boolean;// = false private var dirXSerre:Number; private var dirX:Number; private var dirY:Number; private var transformSon2:SoundTransform; private var contAutoTour:Number;// = 0 public function boss09(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); transformSon2 = new SoundTransform(0.6, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); if (boolAutomatic == true){ this.removeEventListener(Event.ENTER_FRAME, automatic); }; if (boolAutoTour == true){ this.removeEventListener(Event.ENTER_FRAME, autoTour); }; if (boolAutoTir == true){ this.removeEventListener(Event.ENTER_FRAME, autoTir); }; var _local1:boss09Mort = new boss09Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 10){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automatic); }; if (contShooting == 40){ intervaleTir = 4; finTir = 100; boolAutoTir = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if (contShooting == 160){ angle1 = (Math.PI + ((3 * Math.PI) / 4)); angle2 = (Math.PI / 4); angle3 = ((3 * Math.PI) / 4); angle4 = (Math.PI + (Math.PI / 4)); boolAutoTour = true; this.addEventListener(Event.ENTER_FRAME, autoTour); }; if (contShooting == 185){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automatic); }; if ((((contShooting == 215)) || ((contShooting == 275)))){ directLine("middle"); }; if (contShooting == 235){ directLine("left"); }; if ((((contShooting == 0xFF)) || ((contShooting == 295)))){ directLine("right"); }; if (contShooting == 335){ angle1 = (Math.PI + ((3 * Math.PI) / 4)); angle2 = (Math.PI / 4); angle3 = ((3 * Math.PI) / 4); angle4 = (Math.PI + (Math.PI / 4)); boolAutoTour = true; this.addEventListener(Event.ENTER_FRAME, autoTour); }; if (contShooting == 360){ boolAutomatic = true; this.addEventListener(Event.ENTER_FRAME, automatic); }; if (contShooting == 390){ intervaleTir = 10; finTir = 80; boolAutoTir = true; this.addEventListener(Event.ENTER_FRAME, autoTir); }; if ((((((contShooting == 390)) || ((contShooting == 430)))) || ((contShooting == 470)))){ directLine("middle"); }; if (contShooting == 450){ directLine("left"); }; if (contShooting == 410){ directLine("right"); }; if (contShooting == 510){ angle1 = (Math.PI + ((3 * Math.PI) / 4)); angle2 = (Math.PI / 4); angle3 = ((3 * Math.PI) / 4); angle4 = (Math.PI + (Math.PI / 4)); boolAutoTour = true; this.addEventListener(Event.ENTER_FRAME, autoTour); }; if (contShooting == 525){ contShooting = 0; }; contShooting++; }; } private function autoTour(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; contAutoTour++; angle1 = (angle1 + ((2 * Math.PI) / 30)); angle2 = (angle2 + ((2 * Math.PI) / 30)); angle3 = (angle3 + ((2 * Math.PI) / 30)); angle4 = (angle4 + ((2 * Math.PI) / 30)); _local2 = new bigEnnemiLaser(Math.cos(angle1), Math.sin(angle1)); _local2.x = ((this.x + 66) + this.ship.x); _local2.y = ((this.y - 66) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(Math.cos(angle2), Math.sin(angle2)); _local2.x = ((this.x + 66) + this.ship.x); _local2.y = ((this.y + 66) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(Math.cos(angle3), Math.sin(angle3)); _local2.x = ((this.x - 66) + this.ship.x); _local2.y = ((this.y + 66) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(Math.cos(angle4), Math.sin(angle4)); _local2.x = ((this.x - 66) + this.ship.x); _local2.y = ((this.y - 66) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; if (contAutoTour >= 30){ contAutoTour = 0; this.removeEventListener(Event.ENTER_FRAME, autoTour); boolAutoTour = false; }; }; } private function dirLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String){ var _local6:bigEnnemiLaser; var _local7:Number = _arg1; var _local8:Number = _arg2; var _local9:* = 0; while (_local9 < 10) { _local6 = new bigEnnemiLaser(_arg3, _arg4); _local6.x = ((this.x + _local7) + this.ship.x); _local6.y = ((this.y + _local8) + this.ship.y); this.parent.addChild(_local6); application.enenemiLaser.push(_local6); _local6 = null; if (_arg5 == "X"){ _local7 = (_local7 + 10); } else { _local8 = (_local8 + 10); }; _local9++; }; } private function automatic(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contAutomatic++; if ((contAutomatic % 4) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new bigEnnemiLaser(Math.cos((Math.PI + ((3 * Math.PI) / 4))), Math.sin((Math.PI + ((3 * Math.PI) / 4)))); _local2.x = ((this.x + 66) + this.ship.x); _local2.y = ((this.y - 66) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(Math.cos((Math.PI / 4)), Math.sin((Math.PI / 4))); _local2.x = ((this.x + 66) + this.ship.x); _local2.y = ((this.y + 66) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(Math.cos(((3 * Math.PI) / 4)), Math.sin(((3 * Math.PI) / 4))); _local2.x = ((this.x - 66) + this.ship.x); _local2.y = ((this.y + 66) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(Math.cos((Math.PI + (Math.PI / 4))), Math.sin((Math.PI + (Math.PI / 4)))); _local2.x = ((this.x - 66) + this.ship.x); _local2.y = ((this.y - 66) + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; if (contAutomatic >= 150){ contAutomatic = 0; this.removeEventListener(Event.ENTER_FRAME, automatic); boolAutomatic = false; }; }; } private function autoTir(_arg1:Event){ if (application.pause == false){ contAutoTir++; if ((contAutoTir % intervaleTir) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; tirTeteChercheuse(); }; if (contAutoTir >= finTir){ contAutoTir = 0; this.removeEventListener(Event.ENTER_FRAME, autoTir); boolAutoTir = false; }; }; } private function directLine(_arg1:String){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; if (_arg1 == "middle"){ dirLine(-45, 10, 0, 1, "X"); dirLine(-45, -10, 0, -1, "X"); dirLine(10, -45, 1, 0, "Y"); dirLine(-10, -45, -1, 0, "Y"); } else { if (_arg1 == "left"){ dirLine(-45, 10, -0.4, 1, "X"); dirLine(-45, -10, 0.4, -1, "X"); dirLine(10, -45, 1, -0.4, "Y"); dirLine(-10, -45, -1, 0.4, "Y"); } else { if (_arg1 == "right"){ dirLine(-45, 10, 0.4, 1, "X"); dirLine(-45, -10, -0.4, -1, "X"); dirLine(10, -45, 1, 0.4, "Y"); dirLine(-10, -45, -1, -0.4, "Y"); }; }; }; } private function tirTeteChercheuse(){ var _local1:Number = ((application.posPlayer.x - (this.x + this.ship.x)) / (Math.abs((application.posPlayer.x - (this.x + this.ship.x))) + Math.abs((application.posPlayer.y - (this.y + this.ship.y))))); var _local2:Number = ((application.posPlayer.y - (this.y + this.ship.y)) / (Math.abs((application.posPlayer.x - (this.x + this.ship.x))) + Math.abs((application.posPlayer.y - (this.y + this.ship.y))))); var _local3:bigEnnemiLaser = new bigEnnemiLaser((_local1 * 1.5), (_local2 * 1.5)); _local3.x = (this.x + this.ship.x); _local3.y = (this.y + this.ship.y); this.parent.addChild(_local3); application.enenemiLaser.push(_local3); _local3 = null; } } }//package game.ennemis
Section 10
//boss10 (game.ennemis.boss10) package game.ennemis { import flash.display.*; import flash.events.*; import flash.media.*; import game.general.*; import game.projectile.*; public class boss10 extends MovieClip { private var angleSerre:Number; private var contSerre:Number;// = 0 private var transformSon:SoundTransform; private var boolSerre2:Boolean; private var boolAutoTir1:Boolean; private var boolAutoTir2:Boolean; public var hitB:MovieClip; private var channelSon:SoundChannel; private var contAutomatic:Number;// = 0 private var contAutomaticSmaller:Number;// = 0 private var dirYSerre:Number; private var dirYSpray:Number; private var dirXSpray:Number; private var contShooting:Number;// = 0 public var ship:MovieClip; private var contbigSpray:Number;// = 0 private var intervaleRap:Number; private var boolSerre:Boolean; private var positionX:Number; private var contSerre2:Number;// = 0 private var boolAutomaticSmaller:Boolean; private var contAutoTir1:Number;// = 0 private var contAutoTir2:Number;// = 0 private var finAuto:Number; private var boolAutomatic:Boolean; private var angle:Number; private var dirXSerre:Number; private var transformSon2:SoundTransform; private var boolbigSpray:Boolean; private var sonBossTir:bossLaserTir; public function boss10(){ sonBossTir = new bossLaserTir(); transformSon = new SoundTransform(0.3, 0); transformSon2 = new SoundTransform(0.6, 0); super(); this.x = 250; this.y = 125; this.addEventListener(Event.ENTER_FRAME, shoot); } private function autoTir1(_arg1:Event){ if (application.pause == false){ contAutoTir1++; if ((contAutoTir1 % 8) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; tirTeteChercheuse(-100, 0); tirTeteChercheuse(100, 0); }; if (contAutoTir1 >= 200){ contAutoTir1 = 0; this.removeEventListener(Event.ENTER_FRAME, autoTir1); boolAutoTir1 = false; }; }; } private function autoTir2(_arg1:Event){ if (application.pause == false){ contAutoTir2++; if ((contAutoTir2 % 8) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; tirTeteChercheuse(-40, 0); tirTeteChercheuse(40, 0); }; if (contAutoTir2 >= 200){ contAutoTir2 = 0; this.removeEventListener(Event.ENTER_FRAME, autoTir2); boolAutoTir2 = false; }; }; } private function tirSerre2(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; contSerre2++; dirXSerre = Math.cos(angleSerre); dirYSerre = Math.sin(angleSerre); _local2 = new bigEnnemiLaser(dirXSerre, dirYSerre); _local2.x = ((this.x + 160) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-(dirXSerre), dirYSerre); _local2.x = ((this.x - 160) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; angleSerre = (angleSerre - (Math.PI / 100)); if (contSerre2 >= 28){ contSerre2 = 0; this.removeEventListener(Event.ENTER_FRAME, tirSerre2); boolSerre2 = false; }; }; } private function shoot(_arg1:Event){ if (application.pause == false){ if (contShooting == 10){ boolAutomatic = true; positionX = 160; finAuto = 220; this.addEventListener(Event.ENTER_FRAME, automaticGun); }; if (contShooting == 20){ boolAutoTir1 = true; this.addEventListener(Event.ENTER_FRAME, autoTir1); }; if (contShooting == 24){ boolAutoTir2 = true; this.addEventListener(Event.ENTER_FRAME, autoTir2); }; if ((((contShooting == 50)) || ((contShooting == 150)))){ directSpray((Math.PI / 14)); }; if ((((contShooting == 100)) || ((contShooting == 200)))){ directSpray((Math.PI / 18)); }; if (contShooting == 231){ positionX = 160; finAuto = 30; intervaleRap = 10.2; boolAutomaticSmaller = true; this.addEventListener(Event.ENTER_FRAME, automaticGunSmaller); }; if ((((((((contShooting == 230)) || ((contShooting == 250)))) || ((contShooting == 270)))) || ((contShooting == 290)))){ directSpray((Math.PI / 14)); }; if ((((((((contShooting == 240)) || ((contShooting == 260)))) || ((contShooting == 280)))) || ((contShooting == 300)))){ directSpray((Math.PI / 18)); }; if ((((contShooting == 320)) || ((contShooting == 410)))){ rightSpray(); }; if (contShooting == 350){ medSpray(); }; if (contShooting == 380){ leftSpray(); }; if ((((contShooting == 335)) || ((contShooting == 395)))){ directSpray((Math.PI / 14)); }; if (contShooting == 365){ directSpray((Math.PI / 18)); }; if ((((((((((((((((contShooting == 420)) || ((contShooting == 440)))) || ((contShooting == 460)))) || ((contShooting == 480)))) || ((contShooting == 500)))) || ((contShooting == 520)))) || ((contShooting == 540)))) || ((contShooting == 560)))){ tirTeteChercheuse(-100, 0); tirTeteChercheuse(100, 0); }; if (contShooting == 450){ boolSerre = true; angleSerre = (Math.PI / 4); this.addEventListener(Event.ENTER_FRAME, tirSerre); }; if (contShooting == 530){ boolSerre2 = true; angleSerre = (Math.PI / 1.2); this.addEventListener(Event.ENTER_FRAME, tirSerre2); }; if ((((((((((((((((((contShooting == 590)) || ((contShooting == 610)))) || ((contShooting == 630)))) || ((contShooting == 650)))) || ((contShooting == 670)))) || ((contShooting == 690)))) || ((contShooting == 710)))) || ((contShooting == 730)))) || ((contShooting == 750)))){ tirTeteChercheuse(-100, 0); tirTeteChercheuse(100, 0); }; if (contShooting == 590){ angle = (Math.PI / 8); boolbigSpray = true; this.addEventListener(Event.ENTER_FRAME, bigSpray); }; if (contShooting == 810){ contShooting = 0; }; contShooting++; }; } private function bigSpray(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; contbigSpray++; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local2.x = ((this.x + 130) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-(dirXSpray), dirYSpray); _local2.x = ((this.x - 130) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; if (contbigSpray <= 23){ angle = (angle + (((3 * Math.PI) / 4) / 23)); } else { if (contbigSpray <= 46){ angle = (angle - (((3 * Math.PI) / 4) / 23)); } else { if (contbigSpray <= 69){ angle = (angle + (((3 * Math.PI) / 4) / 23)); } else { if (contbigSpray <= 92){ angle = (angle - (((3 * Math.PI) / 4) / 23)); } else { if (contbigSpray <= 115){ angle = (angle + (((3 * Math.PI) / 4) / 23)); } else { if (contbigSpray <= 138){ angle = (angle - (((3 * Math.PI) / 4) / 23)); } else { if (contbigSpray <= 161){ angle = (angle + (((3 * Math.PI) / 4) / 23)); } else { if (contbigSpray <= 184){ angle = (angle - (((3 * Math.PI) / 4) / 23)); }; }; }; }; }; }; }; }; if (contbigSpray >= 184){ contbigSpray = 0; this.removeEventListener(Event.ENTER_FRAME, bigSpray); boolbigSpray = false; }; }; } private function automaticGun(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contAutomatic++; if ((contAutomatic % 4) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x + positionX) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x - positionX) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; }; if (contAutomatic >= finAuto){ contAutomatic = 0; this.removeEventListener(Event.ENTER_FRAME, automaticGun); boolAutomatic = false; }; }; } private function directSpray(_arg1){ var _local3:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; var _local2:Number = _arg1; var _local4:Number = Math.cos(_local2); var _local5:Number = Math.sin(_local2); var _local6:* = 0; while (_local6 < 25) { _local3 = new bigEnnemiLaser(_local4, _local5); _local3.x = (this.x + this.ship.x); _local3.y = (this.y + this.ship.y); this.parent.addChild(_local3); application.enenemiLaser.push(_local3); _local3 = null; _local2 = (_local2 + (((7 * Math.PI) / 8) / 25)); _local4 = Math.cos(_local2); _local5 = Math.sin(_local2); _local6++; }; } private function medSpray(){ var _local1:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; angle = 0; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); var _local2:* = 0; while (_local2 < 50) { if ((((_local2 < 24)) || ((_local2 > 26)))){ _local1 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x - 1) + this.ship.x); _local1.y = ((this.y + 55) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; }; angle = (angle + (Math.PI / 50)); dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2++; }; } private function automaticGunSmaller(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ contAutomaticSmaller++; if ((contAutomaticSmaller % 2) == 0){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x + positionX) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(0, 1); _local2.x = ((this.x - positionX) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; positionX = (positionX - intervaleRap); }; if (contAutomaticSmaller >= finAuto){ contAutomaticSmaller = 0; this.removeEventListener(Event.ENTER_FRAME, automaticGunSmaller); boolAutomaticSmaller = false; }; }; } private function leftSpray(){ var _local1:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; angle = 0; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); var _local2:* = 0; while (_local2 < 50) { if ((((_local2 < 31)) || ((_local2 > 33)))){ _local1 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x - 1) + this.ship.x); _local1.y = ((this.y + 55) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; }; angle = (angle + (Math.PI / 50)); dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2++; }; } private function rightSpray(){ var _local1:bigEnnemiLaser; if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon2); }; angle = 0; dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); var _local2:* = 0; while (_local2 < 50) { if ((((_local2 < 17)) || ((_local2 > 19)))){ _local1 = new bigEnnemiLaser(dirXSpray, dirYSpray); _local1.x = ((this.x - 1) + this.ship.x); _local1.y = ((this.y + 55) + this.ship.y); this.parent.addChild(_local1); application.enenemiLaser.push(_local1); _local1 = null; }; angle = (angle + (Math.PI / 50)); dirXSpray = Math.cos(angle); dirYSpray = Math.sin(angle); _local2++; }; } private function tirSerre(_arg1:Event){ var _local2:bigEnnemiLaser; if (application.pause == false){ if (!Object(this.parent).muteSound){ channelSon = sonBossTir.play(0, 0, transformSon); }; contSerre++; dirXSerre = Math.cos(angleSerre); dirYSerre = Math.sin(angleSerre); _local2 = new bigEnnemiLaser(dirXSerre, dirYSerre); _local2.x = ((this.x + 160) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-(dirXSerre), dirYSerre); _local2.x = ((this.x - 160) + this.ship.x); _local2.y = (this.y + this.ship.y); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; angleSerre = (angleSerre + (Math.PI / 100)); if (contSerre >= 45){ contSerre = 0; this.removeEventListener(Event.ENTER_FRAME, tirSerre); boolSerre = false; }; }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, shoot); if (boolAutomatic == true){ this.removeEventListener(Event.ENTER_FRAME, automaticGun); }; if (boolAutoTir1 == true){ this.removeEventListener(Event.ENTER_FRAME, autoTir1); }; if (boolAutoTir2 == true){ this.removeEventListener(Event.ENTER_FRAME, autoTir2); }; if (boolAutomaticSmaller == true){ this.removeEventListener(Event.ENTER_FRAME, automaticGunSmaller); }; if (boolSerre == true){ this.removeEventListener(Event.ENTER_FRAME, tirSerre); }; if (boolSerre2 == true){ this.removeEventListener(Event.ENTER_FRAME, tirSerre2); }; if (boolbigSpray == true){ this.removeEventListener(Event.ENTER_FRAME, bigSpray); }; var _local1:boss10Mort = new boss10Mort(); _local1.x = (250 + this.ship.x); _local1.y = (125 + this.ship.y); this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function tirTeteChercheuse(_arg1:Number, _arg2:Number){ var _local3:Number = ((application.posPlayer.x - ((this.x + _arg1) + this.ship.x)) / (Math.abs((application.posPlayer.x - ((this.x + _arg1) + this.ship.x))) + Math.abs((application.posPlayer.y - ((this.y + _arg2) + this.ship.y))))); var _local4:Number = ((application.posPlayer.y - ((this.y + _arg2) + this.ship.y)) / (Math.abs((application.posPlayer.x - ((this.x + _arg1) + this.ship.x))) + Math.abs((application.posPlayer.y - ((this.y + _arg2) + this.ship.y))))); var _local5:bigEnnemiLaser = new bigEnnemiLaser((_local3 * 1.5), (_local4 * 1.5)); _local5.x = ((this.x + _arg1) + this.ship.x); _local5.y = ((this.y + _arg2) + this.ship.y); this.parent.addChild(_local5); application.enenemiLaser.push(_local5); _local5 = null; } } }//package game.ennemis
Section 11
//bossLifeBar (game.ennemis.bossLifeBar) package game.ennemis { import flash.display.*; public class bossLifeBar extends MovieClip { public var hider:MovieClip; private var totalLife:Number;// = 500 private var life:Number;// = 0 public function bossLifeBar(_arg1:Number){ totalLife = _arg1; hider.x = ((-1 * (life / totalLife)) * 400); } public function hit(_arg1:Number):Boolean{ if (life < totalLife){ life = (life + _arg1); }; hider.x = ((-1 * (life / totalLife)) * 400); if (life >= totalLife){ return (true); }; return (false); } } }//package game.ennemis
Section 12
//mediumEnnemi1 (game.ennemis.mediumEnnemi1) package game.ennemis { public class mediumEnnemi1 extends regularEnnemi { public function mediumEnnemi1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 15; } } }//package game.ennemis
Section 13
//mediumEnnemi1Mort (game.ennemis.mediumEnnemi1Mort) package game.ennemis { public class mediumEnnemi1Mort extends smallEnnemiMort { public function mediumEnnemi1Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 14
//mediumEnnemi2 (game.ennemis.mediumEnnemi2) package game.ennemis { public class mediumEnnemi2 extends regularEnnemi { public function mediumEnnemi2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 50; } } }//package game.ennemis
Section 15
//mediumEnnemi2Mort (game.ennemis.mediumEnnemi2Mort) package game.ennemis { public class mediumEnnemi2Mort extends smallEnnemiMort { public function mediumEnnemi2Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 16
//mediumEnnemi3 (game.ennemis.mediumEnnemi3) package game.ennemis { public class mediumEnnemi3 extends regularEnnemi { public function mediumEnnemi3(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 25; } } }//package game.ennemis
Section 17
//mediumEnnemi3Mort (game.ennemis.mediumEnnemi3Mort) package game.ennemis { public class mediumEnnemi3Mort extends smallEnnemiMort { public function mediumEnnemi3Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 18
//miniBoss1 (game.ennemis.miniBoss1) package game.ennemis { public class miniBoss1 extends regularEnnemi { public function miniBoss1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 200; } } }//package game.ennemis
Section 19
//miniBoss1Mort (game.ennemis.miniBoss1Mort) package game.ennemis { public class miniBoss1Mort extends smallEnnemiMort { public function miniBoss1Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 20
//miniBoss2 (game.ennemis.miniBoss2) package game.ennemis { public class miniBoss2 extends regularEnnemi { public function miniBoss2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 200; } } }//package game.ennemis
Section 21
//miniBoss2Mort (game.ennemis.miniBoss2Mort) package game.ennemis { public class miniBoss2Mort extends smallEnnemiMort { public function miniBoss2Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 22
//regularEnnemi (game.ennemis.regularEnnemi) package game.ennemis { import flash.display.*; import flash.events.*; import game.general.*; import game.projectile.*; public class regularEnnemi extends MovieClip { private var contNombreTir:Number;// = 0 private var typeTir:String;// = "regular" private var direction:String;// = "bas" private var nombreTir:Number;// = 1 private var randomTir:Number; private var trajectoire:String;// = "regular" private var shootingSpeed:Number;// = 0 private var apparition:String; private var contShooting:Number;// = 30 private var moveSpeed;// = 0 private var directionX;// = 0 private var directionY;// = 0 public var life:Number; public function regularEnnemi(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ randomTir = ((Math.random() * 20) - 10); super(); directionX = _arg1; directionY = _arg2; moveSpeed = _arg3; this.rotation = _arg4; shootingSpeed = (_arg5 * 30); if (shootingSpeed > 25){ randomTir = ((Math.random() * 20) - 10); } else { if (shootingSpeed > 12){ randomTir = ((Math.random() * 10) - 5); } else { randomTir = 0; }; }; nombreTir = _arg6; trajectoire = _arg7; typeTir = _arg8; direction = _arg9; apparition = _arg10; life = 1; if ((((((((typeTir == "regularP")) || ((typeTir == "regularG")))) || ((typeTir == "regularPN")))) || ((typeTir == "regularGN")))){ this.addEventListener(Event.ENTER_FRAME, this.shootRegular); } else { if ((((((((typeTir == "doubleIP")) || ((typeTir == "doubleIG")))) || ((typeTir == "doubleIPN")))) || ((typeTir == "doubleIGN")))){ this.addEventListener(Event.ENTER_FRAME, this.shootDoubleI); } else { if ((((((((typeTir == "doubleEP")) || ((typeTir == "doubleEG")))) || ((typeTir == "doubleEPN")))) || ((typeTir == "doubleEGN")))){ this.addEventListener(Event.ENTER_FRAME, this.shootDoubleE); } else { if ((((((((typeTir == "sprayP")) || ((typeTir == "sprayG")))) || ((typeTir == "sprayPN")))) || ((typeTir == "sprayGN")))){ this.addEventListener(Event.ENTER_FRAME, this.shootSpray); } else { if ((((typeTir == "searchP")) || ((typeTir == "searchG")))){ this.addEventListener(Event.ENTER_FRAME, this.shootSearch); } else { if (typeTir == "miniBoss1Tir"){ this.addEventListener(Event.ENTER_FRAME, this.shootMiniBoss1); } else { if (typeTir == "miniBoss2Tir"){ this.addEventListener(Event.ENTER_FRAME, this.shootMiniBoss2); }; }; }; }; }; }; }; if (trajectoire == "regular"){ this.addEventListener(Event.ENTER_FRAME, this.moveMeRegular); } else { if (trajectoire == "90G"){ this.addEventListener(Event.ENTER_FRAME, this.moveMe90G); } else { if (trajectoire == "90D"){ this.addEventListener(Event.ENTER_FRAME, this.moveMe90D); } else { if (trajectoire == "45G"){ this.addEventListener(Event.ENTER_FRAME, this.moveMe45G); } else { if (trajectoire == "45D"){ this.addEventListener(Event.ENTER_FRAME, this.moveMe45D); }; }; }; }; }; } private function shootDoubleI(_arg1:Event){ var _local2:*; var _local3:*; if (application.pause == false){ if ((((contShooting >= (shootingSpeed + randomTir))) && ((contNombreTir < nombreTir)))){ if (typeTir == "doubleIP"){ _local2 = new baseEnnemiLaser(0, 1); _local3 = new baseEnnemiLaser(((apparition == "Droite")) ? -0.2 : 0.2, 0.8); } else { if (typeTir == "doubleIG"){ _local2 = new bigEnnemiLaser(0, 1); _local3 = new bigEnnemiLaser(((apparition == "Droite")) ? -0.2 : 0.2, 0.8); } else { if (typeTir == "doubleIPN"){ _local2 = new baseEnnemiLaser(0, -1); _local3 = new baseEnnemiLaser(((apparition == "Droite")) ? -0.2 : 0.2, -0.8); } else { if (typeTir == "doubleIGN"){ _local2 = new bigEnnemiLaser(0, -1); _local3 = new bigEnnemiLaser(((apparition == "Droite")) ? -0.2 : 0.2, -0.8); }; }; }; }; _local2.x = this.x; _local2.y = this.y; _local3.x = this.x; _local3.y = this.y; this.parent.addChild(_local2); this.parent.addChild(_local3); application.enenemiLaser.push(_local2); application.enenemiLaser.push(_local3); _local2 = null; _local3 = null; contShooting = 0; contNombreTir++; } else { contShooting++; if (shootingSpeed > 25){ randomTir = ((Math.random() * 20) - 10); } else { if (shootingSpeed > 12){ randomTir = ((Math.random() * 10) - 5); } else { randomTir = 0; }; }; }; }; } private function moveMe45D(_arg1:Event){ if (application.pause == false){ if ((((direction == "droite")) && ((directionX > 0.5)))){ directionX = (directionX - 0.01); directionY = (directionY + 0.01); this.rotation = (this.rotation + (90 * 0.01)); } else { if ((((direction == "gauche")) && ((directionX < -0.5)))){ directionX = (directionX + 0.01); directionY = (directionY - 0.01); this.rotation = (this.rotation + (90 * 0.01)); } else { if ((((direction == "haut")) && ((directionY < -0.5)))){ directionX = (directionX + 0.01); directionY = (directionY + 0.01); this.rotation = (this.rotation + (90 * 0.01)); } else { if ((((direction == "bas")) && ((directionY > 0.5)))){ directionX = (directionX - 0.01); directionY = (directionY - 0.01); this.rotation = (this.rotation + (90 * 0.01)); }; }; }; }; this.x = (this.x + (directionX * moveSpeed)); this.y = (this.y + (directionY * moveSpeed)); }; } private function moveMe90G(_arg1:Event){ if (application.pause == false){ if ((((direction == "droite")) && ((directionX > 0)))){ directionX = (directionX - 0.01); directionY = (directionY - 0.01); this.rotation = (this.rotation - (90 * 0.01)); } else { if ((((direction == "gauche")) && ((directionX < 0)))){ directionX = (directionX + 0.01); directionY = (directionY + 0.01); this.rotation = (this.rotation - (90 * 0.01)); } else { if ((((direction == "haut")) && ((directionY < 0)))){ directionX = (directionX - 0.01); directionY = (directionY + 0.01); this.rotation = (this.rotation - (90 * 0.01)); } else { if ((((direction == "bas")) && ((directionY > 0)))){ directionX = (directionX + 0.01); directionY = (directionY - 0.01); this.rotation = (this.rotation - (90 * 0.01)); }; }; }; }; this.x = (this.x + (directionX * moveSpeed)); this.y = (this.y + (directionY * moveSpeed)); }; } private function moveMe45G(_arg1:Event){ if (application.pause == false){ if ((((direction == "droite")) && ((directionX > 0.5)))){ directionX = (directionX - 0.01); directionY = (directionY - 0.01); this.rotation = (this.rotation - (90 * 0.01)); } else { if ((((direction == "gauche")) && ((directionX < -0.5)))){ directionX = (directionX + 0.01); directionY = (directionY + 0.01); this.rotation = (this.rotation - (90 * 0.01)); } else { if ((((direction == "haut")) && ((directionY < -0.5)))){ directionX = (directionX - 0.01); directionY = (directionY + 0.01); this.rotation = (this.rotation - (90 * 0.01)); } else { if ((((direction == "bas")) && ((directionY > 0.5)))){ directionX = (directionX + 0.01); directionY = (directionY - 0.01); this.rotation = (this.rotation - (90 * 0.01)); }; }; }; }; this.x = (this.x + (directionX * moveSpeed)); this.y = (this.y + (directionY * moveSpeed)); }; } private function shootDoubleE(_arg1:Event){ var _local2:*; var _local3:*; if (application.pause == false){ if ((((contShooting >= (shootingSpeed + randomTir))) && ((contNombreTir < nombreTir)))){ if (typeTir == "doubleEP"){ _local2 = new baseEnnemiLaser(0, 1); _local3 = new baseEnnemiLaser(((apparition == "Droite")) ? 0.2 : -0.2, 0.8); } else { if (typeTir == "doubleEG"){ _local2 = new bigEnnemiLaser(0, 1); _local3 = new bigEnnemiLaser(((apparition == "Droite")) ? 0.2 : -0.2, 0.8); } else { if (typeTir == "doubleEPN"){ _local2 = new baseEnnemiLaser(0, -1); _local3 = new baseEnnemiLaser(((apparition == "Droite")) ? 0.2 : -0.2, -0.8); } else { if (typeTir == "doubleEGN"){ _local2 = new bigEnnemiLaser(0, -1); _local3 = new bigEnnemiLaser(((apparition == "Droite")) ? 0.2 : -0.2, -0.8); }; }; }; }; _local2.x = this.x; _local2.y = this.y; _local3.x = this.x; _local3.y = this.y; this.parent.addChild(_local2); this.parent.addChild(_local3); application.enenemiLaser.push(_local2); application.enenemiLaser.push(_local3); _local2 = null; _local3 = null; contShooting = 0; contNombreTir++; } else { contShooting++; if (shootingSpeed > 25){ randomTir = ((Math.random() * 20) - 10); } else { if (shootingSpeed > 12){ randomTir = ((Math.random() * 10) - 5); } else { randomTir = 0; }; }; }; }; } private function moveMe90D(_arg1:Event){ if (application.pause == false){ if ((((direction == "droite")) && ((directionX > 0)))){ directionX = (directionX - 0.01); directionY = (directionY + 0.01); this.rotation = (this.rotation + (90 * 0.01)); } else { if ((((direction == "gauche")) && ((directionX < 0)))){ directionX = (directionX + 0.01); directionY = (directionY - 0.01); this.rotation = (this.rotation + (90 * 0.01)); } else { if ((((direction == "haut")) && ((directionY < 0)))){ directionX = (directionX + 0.01); directionY = (directionY + 0.01); this.rotation = (this.rotation + (90 * 0.01)); } else { if ((((direction == "bas")) && ((directionY > 0)))){ directionX = (directionX - 0.01); directionY = (directionY - 0.01); this.rotation = (this.rotation + (90 * 0.01)); }; }; }; }; this.x = (this.x + (directionX * moveSpeed)); this.y = (this.y + (directionY * moveSpeed)); }; } private function moveMeRegular(_arg1:Event){ if (application.pause == false){ this.x = (this.x + (directionX * moveSpeed)); this.y = (this.y + (directionY * moveSpeed)); }; } private function shootSpray(_arg1:Event){ var _local2:*; var _local3:*; var _local4:*; if (application.pause == false){ if ((((contShooting >= (shootingSpeed + randomTir))) && ((contNombreTir < nombreTir)))){ if (typeTir == "sprayP"){ _local2 = new baseEnnemiLaser(0, 1); _local3 = new baseEnnemiLaser(-0.2, 0.8); _local4 = new baseEnnemiLaser(0.2, 0.8); } else { if (typeTir == "sprayG"){ _local2 = new bigEnnemiLaser(0, 1); _local3 = new bigEnnemiLaser(-0.2, 0.8); _local4 = new bigEnnemiLaser(0.2, 0.8); } else { if (typeTir == "sprayPN"){ _local2 = new baseEnnemiLaser(0, -1); _local3 = new baseEnnemiLaser(-0.2, -0.8); _local4 = new baseEnnemiLaser(0.2, -0.8); } else { if (typeTir == "sprayGN"){ _local2 = new bigEnnemiLaser(0, -1); _local3 = new bigEnnemiLaser(-0.2, -0.8); _local4 = new bigEnnemiLaser(0.2, -0.8); }; }; }; }; _local2.x = this.x; _local2.y = this.y; _local3.x = this.x; _local3.y = this.y; _local4.x = this.x; _local4.y = this.y; this.parent.addChild(_local2); this.parent.addChild(_local3); this.parent.addChild(_local4); application.enenemiLaser.push(_local2); application.enenemiLaser.push(_local3); application.enenemiLaser.push(_local4); _local2 = null; _local3 = null; _local4 = null; contShooting = 0; contNombreTir++; } else { contShooting++; if (shootingSpeed > 25){ randomTir = ((Math.random() * 20) - 10); } else { if (shootingSpeed > 12){ randomTir = ((Math.random() * 10) - 5); } else { randomTir = 0; }; }; }; }; } public function destructor(){ var _local1:*; if ((((((((typeTir == "regularP")) || ((typeTir == "regularG")))) || ((typeTir == "regularPN")))) || ((typeTir == "regularGN")))){ this.removeEventListener(Event.ENTER_FRAME, this.shootRegular); } else { if ((((((((typeTir == "doubleIP")) || ((typeTir == "doubleIG")))) || ((typeTir == "doubleIPN")))) || ((typeTir == "doubleIGN")))){ this.removeEventListener(Event.ENTER_FRAME, this.shootDoubleI); } else { if ((((((((typeTir == "doubleEP")) || ((typeTir == "doubleEG")))) || ((typeTir == "doubleEPN")))) || ((typeTir == "doubleEGN")))){ this.removeEventListener(Event.ENTER_FRAME, this.shootDoubleE); } else { if ((((((((typeTir == "sprayP")) || ((typeTir == "sprayG")))) || ((typeTir == "sprayPN")))) || ((typeTir == "sprayGN")))){ this.removeEventListener(Event.ENTER_FRAME, this.shootSpray); } else { if ((((typeTir == "searchP")) || ((typeTir == "searchG")))){ this.removeEventListener(Event.ENTER_FRAME, this.shootSearch); } else { if (typeTir == "miniBoss1Tir"){ this.removeEventListener(Event.ENTER_FRAME, this.shootMiniBoss1); } else { if (typeTir == "miniBoss2Tir"){ this.removeEventListener(Event.ENTER_FRAME, this.shootMiniBoss2); }; }; }; }; }; }; }; if (trajectoire == "regular"){ this.removeEventListener(Event.ENTER_FRAME, this.moveMeRegular); } else { if (trajectoire == "90G"){ this.removeEventListener(Event.ENTER_FRAME, this.moveMe90G); } else { if (trajectoire == "90D"){ this.removeEventListener(Event.ENTER_FRAME, this.moveMe90D); } else { if (trajectoire == "45G"){ this.removeEventListener(Event.ENTER_FRAME, this.moveMe45G); } else { if (trajectoire == "45D"){ this.removeEventListener(Event.ENTER_FRAME, this.moveMe45D); }; }; }; }; }; this.x = (this.x + (directionX * moveSpeed)); this.y = (this.y + (directionY * moveSpeed)); if ((this is vSmallEnnemi1)){ _local1 = new vSmallEnnemi1Mort(directionX, directionY); } else { if ((this is smallEnnemi1)){ _local1 = new smallEnnemi1Mort(directionX, directionY); } else { if ((this is smallEnnemi2)){ _local1 = new smallEnnemi2Mort(directionX, directionY); } else { if ((this is smallEnnemi3)){ _local1 = new smallEnnemi3Mort(directionX, directionY); } else { if ((this is smallEnnemi4)){ _local1 = new smallEnnemi4Mort(directionX, directionY); } else { if ((this is smallEnnemi5)){ _local1 = new smallEnnemi5Mort(directionX, directionY); } else { if ((this is mediumEnnemi1)){ _local1 = new mediumEnnemi1Mort(directionX, directionY); } else { if ((this is mediumEnnemi2)){ _local1 = new mediumEnnemi2Mort(directionX, directionY); } else { if ((this is mediumEnnemi3)){ _local1 = new mediumEnnemi3Mort(directionX, directionY); } else { if ((this is miniBoss1)){ _local1 = new miniBoss1Mort(directionX, directionY); } else { if ((this is miniBoss2)){ _local1 = new miniBoss2Mort(directionX, directionY); }; }; }; }; }; }; }; }; }; }; }; _local1.x = this.x; _local1.y = this.y; _local1.rotation = this.rotation; this.parent.addChild(_local1); _local1 = null; this.parent.removeChild(this); } private function shootSearch(_arg1:Event){ var _local2:*; var _local3:Number; var _local4:Number; if (application.pause == false){ if ((((contShooting >= (shootingSpeed + randomTir))) && ((contNombreTir < nombreTir)))){ _local3 = ((application.posPlayer.x - this.x) / (Math.abs((application.posPlayer.x - this.x)) + Math.abs((application.posPlayer.y - this.y)))); _local4 = ((application.posPlayer.y - this.y) / (Math.abs((application.posPlayer.x - this.x)) + Math.abs((application.posPlayer.y - this.y)))); if (typeTir == "searchP"){ _local2 = new baseEnnemiLaser((_local3 * 1.5), (_local4 * 1.5)); } else { if (typeTir == "searchG"){ _local2 = new bigEnnemiLaser((_local3 * 1.5), (_local4 * 1.5)); }; }; _local2.x = this.x; _local2.y = this.y; this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; contShooting = 0; contNombreTir++; } else { contShooting++; if (shootingSpeed > 25){ randomTir = ((Math.random() * 20) - 10); } else { if (shootingSpeed > 12){ randomTir = ((Math.random() * 10) - 5); } else { randomTir = 0; }; }; }; }; } private function shootMiniBoss1(_arg1:Event){ var _local2:bigEnnemiLaser; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:*; var _local8:baseEnnemiLaser; if (application.pause == false){ if ((((contShooting >= (shootingSpeed + randomTir))) && ((contNombreTir < nombreTir)))){ _local5 = 47.5; _local6 = 18; _local7 = 0; while (_local7 < 2) { _local3 = ((application.posPlayer.x - (this.x + _local5)) / (Math.abs((application.posPlayer.x - (this.x + _local5))) + Math.abs((application.posPlayer.y - (this.y + _local6))))); _local4 = ((application.posPlayer.y - (this.y + _local6)) / (Math.abs((application.posPlayer.x - (this.x + _local5))) + Math.abs((application.posPlayer.y - (this.y + _local6))))); _local2 = new bigEnnemiLaser((_local3 * 1.5), (_local4 * 1.5)); _local2.x = (this.x + _local5); _local2.y = (this.y + _local6); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local5 = -49; _local7++; }; _local8 = new baseEnnemiLaser(0, 1); _local8.x = this.x; _local8.y = (this.y + 24); this.parent.addChild(_local8); application.enenemiLaser.push(_local8); _local8 = null; _local8 = new baseEnnemiLaser(-0.2, 0.8); _local8.x = this.x; _local8.y = (this.y + 24); this.parent.addChild(_local8); application.enenemiLaser.push(_local8); _local8 = null; _local8 = new baseEnnemiLaser(0.2, 0.8); _local8.x = this.x; _local8.y = (this.y + 24); this.parent.addChild(_local8); application.enenemiLaser.push(_local8); _local8 = null; contShooting = 0; contNombreTir++; } else { contShooting++; if (shootingSpeed > 25){ randomTir = ((Math.random() * 20) - 10); } else { if (shootingSpeed > 12){ randomTir = ((Math.random() * 10) - 5); } else { randomTir = 0; }; }; }; }; } private function shootMiniBoss2(_arg1:Event){ var _local2:bigEnnemiLaser; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:*; if (application.pause == false){ if ((((contShooting >= (shootingSpeed + randomTir))) && ((contNombreTir < nombreTir)))){ _local3 = ((application.posPlayer.x - (this.x - 23)) / (Math.abs((application.posPlayer.x - (this.x - 23))) + Math.abs((application.posPlayer.y - (this.y + 20))))); _local4 = ((application.posPlayer.y - (this.y + 20)) / (Math.abs((application.posPlayer.x - (this.x - 23))) + Math.abs((application.posPlayer.y - (this.y + 20))))); _local2 = new bigEnnemiLaser((_local3 * 1.5), (_local4 * 1.5)); _local2.x = (this.x - 23); _local2.y = (this.y + 20); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local3 = ((application.posPlayer.x - (this.x + 21)) / (Math.abs((application.posPlayer.x - (this.x + 21))) + Math.abs((application.posPlayer.y - (this.y + 20))))); _local4 = ((application.posPlayer.y - (this.y + 20)) / (Math.abs((application.posPlayer.x - (this.x + 21))) + Math.abs((application.posPlayer.y - (this.y + 20))))); _local2 = new bigEnnemiLaser((_local3 * 1.5), (_local4 * 1.5)); _local2.x = (this.x + 21); _local2.y = (this.y + 20); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local5 = 64; _local6 = 8; _local7 = 0; while (_local7 < 2) { _local2 = new bigEnnemiLaser(0, 1); _local2.x = (this.x + _local5); _local2.y = (this.y + _local6); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(-0.2, 0.8); _local2.x = (this.x + _local5); _local2.y = (this.y + _local6); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local2 = new bigEnnemiLaser(0.2, 0.8); _local2.x = (this.x + _local5); _local2.y = (this.y + _local6); this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; _local5 = -66; _local7++; }; contShooting = 0; contNombreTir++; } else { contShooting++; if (shootingSpeed > 25){ randomTir = ((Math.random() * 20) - 10); } else { if (shootingSpeed > 12){ randomTir = ((Math.random() * 10) - 5); } else { randomTir = 0; }; }; }; }; } private function shootRegular(_arg1:Event){ var _local2:*; if (application.pause == false){ if ((((contShooting >= (shootingSpeed + randomTir))) && ((contNombreTir < nombreTir)))){ if (typeTir == "regularP"){ _local2 = new baseEnnemiLaser(0, 1); } else { if (typeTir == "regularG"){ _local2 = new bigEnnemiLaser(0, 1); } else { if (typeTir == "regularPN"){ _local2 = new baseEnnemiLaser(0, -1); } else { if (typeTir == "regularGN"){ _local2 = new bigEnnemiLaser(0, -1); }; }; }; }; _local2.x = this.x; _local2.y = this.y; this.parent.addChild(_local2); application.enenemiLaser.push(_local2); _local2 = null; contShooting = 0; contNombreTir++; } else { contShooting++; if (shootingSpeed > 25){ randomTir = ((Math.random() * 20) - 10); } else { if (shootingSpeed > 12){ randomTir = ((Math.random() * 10) - 5); } else { randomTir = 0; }; }; }; }; } } }//package game.ennemis
Section 23
//smallEnnemi1 (game.ennemis.smallEnnemi1) package game.ennemis { public class smallEnnemi1 extends regularEnnemi { public function smallEnnemi1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 1; } } }//package game.ennemis
Section 24
//smallEnnemi1Mort (game.ennemis.smallEnnemi1Mort) package game.ennemis { public class smallEnnemi1Mort extends smallEnnemiMort { public function smallEnnemi1Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 25
//smallEnnemi2 (game.ennemis.smallEnnemi2) package game.ennemis { public class smallEnnemi2 extends regularEnnemi { public function smallEnnemi2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 2; } } }//package game.ennemis
Section 26
//smallEnnemi2Mort (game.ennemis.smallEnnemi2Mort) package game.ennemis { public class smallEnnemi2Mort extends smallEnnemiMort { public function smallEnnemi2Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 27
//smallEnnemi3 (game.ennemis.smallEnnemi3) package game.ennemis { public class smallEnnemi3 extends regularEnnemi { public function smallEnnemi3(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 4; } } }//package game.ennemis
Section 28
//smallEnnemi3Mort (game.ennemis.smallEnnemi3Mort) package game.ennemis { public class smallEnnemi3Mort extends smallEnnemiMort { public function smallEnnemi3Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 29
//smallEnnemi4 (game.ennemis.smallEnnemi4) package game.ennemis { public class smallEnnemi4 extends regularEnnemi { public function smallEnnemi4(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 12; } } }//package game.ennemis
Section 30
//smallEnnemi4Mort (game.ennemis.smallEnnemi4Mort) package game.ennemis { public class smallEnnemi4Mort extends smallEnnemiMort { public function smallEnnemi4Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 31
//smallEnnemi5 (game.ennemis.smallEnnemi5) package game.ennemis { public class smallEnnemi5 extends regularEnnemi { public function smallEnnemi5(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 8; } } }//package game.ennemis
Section 32
//smallEnnemi5Mort (game.ennemis.smallEnnemi5Mort) package game.ennemis { public class smallEnnemi5Mort extends smallEnnemiMort { public function smallEnnemi5Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 33
//smallEnnemiMort (game.ennemis.smallEnnemiMort) package game.ennemis { import flash.display.*; import flash.events.*; public class smallEnnemiMort extends MovieClip { private var contMort:Number;// = 1 private var directionX:Number;// = 0 private var directionY:Number;// = 0 public function smallEnnemiMort(_arg1:Number, _arg2:Number){ directionX = _arg1; directionY = _arg2; this.x = (this.x + (directionX * 4)); this.y = (this.y + (directionY * 4)); this.addEventListener(Event.ENTER_FRAME, moveMe); } private function moveMe(_arg1:Event){ this.x = (this.x + (directionX * 4)); this.y = (this.y + (directionY * 4)); contMort++; if (contMort >= 15){ this.removeEventListener(Event.ENTER_FRAME, moveMe); this.parent.removeChild(this); }; } } }//package game.ennemis
Section 34
//vSmallEnnemi1 (game.ennemis.vSmallEnnemi1) package game.ennemis { public class vSmallEnnemi1 extends regularEnnemi { public function vSmallEnnemi1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:String, _arg8:String, _arg9:String, _arg10:String){ super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10); this.life = 8; } } }//package game.ennemis
Section 35
//vSmallEnnemi1Mort (game.ennemis.vSmallEnnemi1Mort) package game.ennemis { public class vSmallEnnemi1Mort extends smallEnnemiMort { public function vSmallEnnemi1Mort(_arg1:Number, _arg2:Number){ super(_arg1, _arg2); } } }//package game.ennemis
Section 36
//application (game.general.application) package game.general { import flash.display.*; import flash.events.*; import flash.media.*; import flash.ui.*; import flash.net.*; import game.ennemis.*; import game.projectile.*; import game.niveaux.*; import flash.geom.*; public class application extends MovieClip { public var P1Missile:Array; private var channelSonIntroMusic:SoundChannel; public var P1RepairBot:Array; private var tutomenu:tutorial; public var P2RearLaserLvl:Number;// = 0 private var niv; public var P2FireRateCost:Array; public var P2LaserPowerlvl:Number;// = 0 public var P1LaserPowerCost:Array; public var P2FireRate:Array; private var tempNumber:Number;// = 0 public var P1FrontLaserLvl:Number;// = 1 public var P2GrosseurOndeLvl:Number;// = 0 private var tempVarWave:Number;// = 0 public var P1SideLaserLvl:Number;// = 0 private var pauseOK:Boolean;// = true private var hitBonus:Number;// = 0 public var backg:backgroundNiveau; public var P1GrosseurOndeLvl:Number;// = 0 public var P2LaserPowerCost:Array; private var transformSon1:SoundTransform; private var menuintro:IntroMenu; private var transformSon4:SoundTransform; private var transformSon5:SoundTransform; private var transformSon6:SoundTransform; private var transformSonMissile1:SoundTransform; private var gamingMode:String; private var transformSon3:SoundTransform; public var muteSound:Boolean;// = false private var transformSon7:SoundTransform; private var transformSonMissile2:SoundTransform; public var P1Life:Array; private var channelSon2:SoundChannel; private var channelSon3:SoundChannel; private var channelSon5:SoundChannel; private var interfaceControlMP:controlChoiceMP; private var channelSon7:SoundChannel; private var channelSon1:SoundChannel; public var P2LaserPower:Array; private var channelSon4:SoundChannel; private var nombreExit:Number; public var P1Lifelvl:Number;// = 0 public var P2Speedlvl:Number;// = 0 private var channelSon6:SoundChannel; private var introIsPlaying:Boolean; public var P1ReloadOnde:Array; public var P2MissileLvl:Number;// = 0 public var P1LaserPowerlvl:Number;// = 0 private var player2Control:String; private var curseur:cursorInGame; private var transformSonBossHit1:SoundTransform; private var transformSonBossHit2:SoundTransform; private var transformSonMenuMute:SoundTransform; private var texteTempAchievement:String; private var sonMenuSong:introsong; public var P2ReloadOndeLvl:Number;// = 0 public var P1DiaFrontLaserCost:Array; private var sonEnnemiHit:ennemiHit; private var nombreMort:Number; private var contFade:Number;// = 0 public var P2SideLaserLvl:Number;// = 0 public var P2MissileCost:Array; private var QErase:questionErase; public var player1I:player1; private var sonIngameMusic:ingameMusic; public var P2SideLaserCost:Array; public var P1Speed:Array; public var P1DiaRearLaserCost:Array; private var xRougeM:xCouperSon; private var sonIngameMusicIntro:ingameMusicIntro; public var P2FireRatelvl:Number;// = 0 public var P2LifeCost:Array; private var hitTaken:Number; public var player2I:player2; public var P2SpeedCost:Array; private var transformSonMenu:SoundTransform; private var nombreHit:Number; var saveGame:SharedObject; public var waveBar1:waveBar; public var waveBar2:waveBar; private var xRouge:xCouperSon; public var P2DiaRearLaserCost:Array; private var niveauEnCours:Number; public var P2RepairBotCost:Array; public var P2Missile:Array; private var sondWave:dWave; public var P1ReloadOndeLvl:Number;// = 0 public var cash:Number;// = 0 public var P1FireRate:Array; public var P2RearLaserCost:Array; public var P2DiaFrontLaserCost:Array; private var compteurOndeP1:Number;// = 0 private var compteurOndeP2:Number;// = 0 public var P1SideLaserCost:Array; private var interfaceControlSP:controlChoiceSP; private var lvlDebloque:Number;// = 1 private var transformSonMusic:SoundTransform; public var P1FrontLaserCost:Array; private var bossTue:Boolean;// = false public var P2RepairBot:Array; public var P2ReloadOnde:Array; public var menu; public var P1GrosseurOnde:Array; public var nomlife1:nomLife1; public var nomlife2:nomLife2; public var aliveP1:Boolean; public var aliveP2:Boolean; public var P1RepairBotlvl:Number;// = 0 public var P2Lifelvl:Number;// = 0 public var P1MissileCost:Array; private var withoutHitArray:Array; public var P1Speedlvl:Number;// = 0 public var P2DiaRearLaserLvl:Number;// = 0 public var P1DiaFrontLaserLvl:Number;// = 0 public var P1ReloadOndeCost:Array; public var P1FireRatelvl:Number;// = 0 public var muteMusic:Boolean;// = false private var channelSonMenu:SoundChannel; public var P2FrontLaserCost:Array; private var ennemisKilled:Number; public var P1DiaRearLaserLvl:Number;// = 0 public var ondeChoc2:ondeP2; public var lifeBar1:lifeBar; public var lifeBar2:lifeBar; public var P2Speed:Array; public var P1RepairBotCost:Array; public var P1RearLaserLvl:Number;// = 0 public var P2DiaFrontLaserLvl:Number;// = 0 public var P1FireRateCost:Array; public var P2GrosseurOndeCost:Array; public var P1GrosseurOndeCost:Array; private var sonPHit:playerHit; private var fondRouge:fondAttack; public var ondeChoc:ondeP1; public var P1LaserPower:Array; private var sonMissileHit:missileHit; public var P1RearLaserCost:Array; private var sonEnnemiDie:ennemiDie; private var txtCash:cashIngame; public var P2GrosseurOnde:Array; private var player1Control:String; public var P2ReloadOndeCost:Array; public var cashTotal:Number;// = 0 private var zoneWaveClick:zoneClickWave; public var P1SpeedCost:Array; private var ecranpause:ecranPause; private var channelSonMusic:SoundChannel; private var pageAchi:achievementPage; public var P1MissileLvl:Number;// = 0 private var sonBossDie:bossDie; private var contPause:Number; private var musicDansIntro:Boolean; private var infoPause:txtPause; public var P1LifeCost:Array; public var P2FrontLaserLvl:Number;// = 1 private var sonEnnemiDieBig:ennemiDieBig; public var P2RepairBotlvl:Number;// = 0 private var transformSonMusicMute:SoundTransform; public var P2Life:Array; public static var friendlyLaser:Array = new Array(); public static var posBoss:Boolean = false; public static var indexBtn:Number; public static var bosslvl:Boolean = false; public static var boss; public static var bossMort:Boolean = false; public static var inboss:Boolean = false; public static var pause:Boolean = false; public static var ingame:Boolean = false; public static var posPlayer:Point = new Point(0, 0); public static var enenemiLaser:Array = new Array(); public static var ennemis:Array = new Array(); public function application(){ saveGame = SharedObject.getLocal("Pixelvader"); transformSon1 = new SoundTransform(0.75, 0); transformSonMissile1 = new SoundTransform(0.5, 0); transformSonMissile2 = new SoundTransform(0.4, 0); sonPHit = new playerHit(); sondWave = new dWave(); transformSon3 = new SoundTransform(0.025, 0); transformSon4 = new SoundTransform(0.01, 0); transformSonBossHit1 = new SoundTransform(0.3, 0); transformSonBossHit2 = new SoundTransform(0, 0); sonEnnemiHit = new ennemiHit(); sonEnnemiDie = new ennemiDie(); sonEnnemiDieBig = new ennemiDieBig(); sonMissileHit = new missileHit(); transformSon5 = new SoundTransform(0.3, 0); sonBossDie = new bossDie(); transformSon6 = new SoundTransform(1, 0); transformSon7 = new SoundTransform(0.75, 0); transformSonMusic = new SoundTransform(0.25, 0); transformSonMusicMute = new SoundTransform(0, 0); sonIngameMusic = new ingameMusic(); sonIngameMusicIntro = new ingameMusicIntro(); transformSonMenu = new SoundTransform(0.2, 0); transformSonMenuMute = new SoundTransform(0, 0); sonMenuSong = new introsong(); P1Life = new Array(5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80); P1LifeCost = new Array(1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000, 16000); P1LaserPower = new Array(1, 1.3, 1.6, 2, 2.3, 2.6, 3, 3.3, 3.6, 4, 4.3, 4.6, 5); P1LaserPowerCost = new Array(1000, 2000, 3000, 4500, 6000, 7500, 9000, 10500, 12000, 13500, 15000, 16500, 18000); P1FireRate = new Array(10, 9.5, 9, 8.5, 8, 7.5, 7, 6.5, 6, 5.5, 5, 4.5, 4); P1FireRateCost = new Array(1000, 2000, 3000, 4500, 6000, 7500, 9000, 10500, 12000, 13500, 15000, 16500, 18000); P1Speed = new Array(8, 8.5, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.5, 13, 13.5, 14, 14.5, 15); P1SpeedCost = new Array(1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000); P1RepairBot = new Array(0, 0.002, 0.004, 0.006, 0.008, 0.01, 0.012, 0.014, 0.016, 0.018, 0.02); P1RepairBotCost = new Array(2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000); P1FrontLaserCost = new Array(4000, 6000, 8000, 10000); P1SideLaserCost = new Array(4000, 6000, 8000, 10000); P1RearLaserCost = new Array(4000, 6000, 8000, 10000); P1DiaFrontLaserCost = new Array(4000, 8000); P1DiaRearLaserCost = new Array(4000, 8000); P1ReloadOnde = new Array(500, 466, 433, 400, 366, 333, 300, 266, 233, 200, 166, 133, 100); P1ReloadOndeCost = new Array(1000, 2000, 3500, 5500, 7000, 9000, 10500, 12000, 13500, 15000, 16500, 18000, 19500); P1GrosseurOnde = new Array(10, 15, 20, 30, 35, 40, 45, 50, 55, 60); P1GrosseurOndeCost = new Array(1000, 2000, 4000, 7000, 10000, 12000, 14000, 16000, 18000, 20000); P1Missile = new Array(0, 2, 5, 8, 12, 16, 20, 24, 28, 32, 36, 40, 45, 50); P1MissileCost = new Array(6000, 6000, 8000, 10000, 12000, 14000, 16000, 18000, 20000, 22000, 24000, 26000, 28000, 30000); P2Life = new Array(5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80); P2LifeCost = new Array(1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000, 16000); P2LaserPower = new Array(1, 1.3, 1.6, 2, 2.3, 2.6, 3, 3.3, 3.6, 4, 4.3, 4.6, 5); P2LaserPowerCost = new Array(1000, 2000, 3000, 4500, 6000, 7500, 9000, 10500, 12000, 13500, 15000, 16500, 18000); P2FireRate = new Array(10, 9.5, 9, 8.5, 8, 7.5, 7, 6.5, 6, 5.5, 5, 4.5, 4); P2FireRateCost = new Array(1000, 2000, 3000, 4500, 6000, 7500, 9000, 10500, 12000, 13500, 15000, 16500, 18000); P2Speed = new Array(8, 8.5, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.5, 13, 13.5, 14, 14.5, 15); P2SpeedCost = new Array(1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000, 13000, 14000, 15000); P2RepairBot = new Array(0, 0.002, 0.004, 0.006, 0.008, 0.01, 0.012, 0.014, 0.016, 0.018, 0.02); P2RepairBotCost = new Array(2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000); P2FrontLaserCost = new Array(4000, 6000, 8000, 10000); P2SideLaserCost = new Array(4000, 6000, 8000, 10000); P2RearLaserCost = new Array(4000, 6000, 8000, 10000); P2DiaFrontLaserCost = new Array(4000, 8000); P2DiaRearLaserCost = new Array(4000, 8000); P2ReloadOnde = new Array(500, 466, 433, 400, 366, 333, 300, 266, 233, 200, 166, 133, 100); P2ReloadOndeCost = new Array(1000, 2000, 3500, 5500, 7000, 9000, 10500, 12000, 13500, 15000, 16500, 18000, 19500); P2GrosseurOnde = new Array(10, 15, 20, 30, 35, 40, 45, 50, 55, 60); P2GrosseurOndeCost = new Array(1000, 2000, 4000, 7000, 10000, 12000, 14000, 16000, 18000, 20000); P2Missile = new Array(0, 2, 5, 8, 12, 16, 20, 24, 28, 32, 36, 40, 45, 50); P2MissileCost = new Array(6000, 6000, 8000, 10000, 12000, 14000, 16000, 18000, 20000, 22000, 24000, 26000, 28000, 30000); super(); this.addEventListener(Event.ENTER_FRAME, attenteConstructeur); } public function victoire(){ application.ingame = false; application.inboss = false; this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyD); this.addEventListener(Event.ENTER_FRAME, tempVictoireJoueur); } private function fadeOutMusic(_arg1:Event){ contFade++; transformSonMusic.volume = (transformSonMusic.volume - (0.25 / 60)); if (musicDansIntro){ channelSonIntroMusic.soundTransform = transformSonMusic; } else { channelSonMusic.soundTransform = transformSonMusic; }; if (contFade == 50){ contFade = 0; if (musicDansIntro){ channelSonIntroMusic.stop(); this.removeEventListener(Event.ENTER_FRAME, onAttenteIntroMusic); } else { channelSonMusic.stop(); }; this.removeEventListener(Event.ENTER_FRAME, this.fadeOutMusic); }; } private function tempDefensiveWave(_arg1:Event){ if (tempVarWave < 3){ tempVarWave++; } else { tempVarWave = 0; this.removeEventListener(Event.ENTER_FRAME, tempDefensiveWave); this.stage.addEventListener(MouseEvent.CLICK, creeWaveCall); }; } private function initialisationBoutonMenu(_arg1:Event){ this.menu.frontLaserP1btn.gotoAndStop((P1FrontLaserLvl + 1)); this.menu.rearLaserP1btn.gotoAndStop((P1RearLaserLvl + 1)); this.menu.sideLaserP1btn.gotoAndStop((P1SideLaserLvl + 1)); this.menu.diaFrontLaserP1btn.gotoAndStop((P1DiaFrontLaserLvl + 1)); this.menu.diaRearLaserP1btn.gotoAndStop((P1DiaRearLaserLvl + 1)); this.removeEventListener(Event.ENTER_FRAME, initialisationBoutonMenu); } private function tempVictoireJoueur(_arg1:Event){ var _local2:ecritureFin; var _local3:ecritureVictoire; var _local4:Number; var _local5:Array; var _local6:Array; var _local7:Array; var _local8:Number; var _local9:Number; var _local10:Number; if (tempNumber == 1){ if (niveauEnCours == lvlDebloque){ lvlDebloque++; }; if (hitTaken == 0){ withoutHitArray[(niveauEnCours - 1)] = true; }; this.addEventListener(Event.ENTER_FRAME, this.fadeOutMusic); if (((aliveP1) || ((gamingMode == "SP")))){ killP1(); }; compteurOndeP1 = 0; if ((niv is niveau11)){ _local2 = new ecritureFin(); _local2.x = 250; _local2.y = 300; this.addChild(_local2); _local2 = null; } else { _local3 = new ecritureVictoire(); _local3.x = 250; _local3.y = 300; this.addChild(_local3); _local3 = null; }; niv.mortPlayer(); niv = null; lifeBar1.destructor(); lifeBar1 = null; waveBar1.destructor(); waveBar1 = null; this.removeChild(infoPause); infoPause = null; if ((((player1Control == "mouse")) || ((player2Control == "mouse")))){ curseur.stopDrag(); removeChild(curseur); curseur = null; Mouse.show(); }; if (gamingMode == "MP"){ if (aliveP2){ killP2(); }; compteurOndeP2 = 0; this.removeChild(nomlife1); nomlife1 = null; this.removeChild(nomlife2); nomlife2 = null; lifeBar2.destructor(); lifeBar2 = null; waveBar2.destructor(); waveBar2 = null; }; txtCash.destructor(); txtCash = null; tempNumber++; } else { if (tempNumber >= 90){ _local4 = 0; _local5 = application.friendlyLaser; _local6 = application.ennemis; _local7 = application.enenemiLaser; _local8 = _local5.length; _local9 = _local6.length; _local10 = _local7.length; _local4 = 0; while (_local4 < _local8) { _local5[_local4].destructor(); _local5[_local4] = null; _local4++; }; _local4 = 0; while (_local4 < _local9) { _local6[_local4].destructor(); _local6[_local4] = null; _local4++; }; _local4 = 0; while (_local4 < _local10) { _local7[_local4].destructor(); _local7[_local4] = null; _local4++; }; _local5.length = 0; _local6.length = 0; _local7.length = 0; application.friendlyLaser = _local5; application.ennemis = _local6; application.enenemiLaser = _local7; _local5 = null; _local6 = null; _local7 = null; this.removeChild(backg); backg = null; if (gamingMode == "SP"){ ouvrirMenu(); } else { ouvrirMenuMP(); }; this.removeEventListener(Event.ENTER_FRAME, tempVictoireJoueur); tempNumber = 0; }; }; tempNumber++; } private function eraseYesMPclick(_arg1:MouseEvent){ saveGame.data.saveMPCree = false; this.removeChild(QErase); QErase = null; } private function retourMenuPAchi(_arg1:MouseEvent){ this.removeChild(pageAchi); pageAchi = null; ouvrirMenuIntro(); } private function onAttenteIntroMusic(_arg1:Event){ var _local2:Number = (100 * (channelSonIntroMusic.position / sonIngameMusicIntro.length)); if (_local2 >= 98.5){ if (!muteMusic){ channelSonMusic = sonIngameMusic.play(0, 100, transformSonMusic); } else { channelSonMusic = sonIngameMusic.play(0, 100, transformSonMusicMute); }; musicDansIntro = false; this.removeEventListener(Event.ENTER_FRAME, onAttenteIntroMusic); }; } private function codeBoutonMenu(_arg1:String){ var mode = _arg1; this.menu.retourMenubtn.addEventListener(MouseEvent.CLICK, retourMenuP); this.menu.muteMusicMenu.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ clickMuteMusic("menu"); }); if (muteMusic){ xRougeM = new xCouperSon(); xRougeM.width = 30; xRougeM.height = 30; xRougeM.x = 372; xRougeM.y = 16; this.addChild(xRougeM); }; this.menu.muteSoundMenu.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ clickMuteSound("menu"); }); if (muteSound){ xRouge = new xCouperSon(); xRouge.width = 30; xRouge.height = 30; xRouge.x = 414; xRouge.y = 16; this.addChild(xRouge); }; this.menu.lifeP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the shield of your ship.\rLevel : ") + ((P1Lifelvl == (P1Life.length - 1))) ? "max" : ((P1Lifelvl + "\rCost : ") + P1LifeCost[P1Lifelvl])); }); this.menu.lifeP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.lifeP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1LifeCost[P1Lifelvl])) && ((P1Lifelvl < (P1Life.length - 1))))){ cash = (cash - P1LifeCost[P1Lifelvl]); updateCash(); P1Lifelvl++; menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the shield of your ship.\rLevel : ") + ((P1Lifelvl == (P1Life.length - 1))) ? "max" : ((P1Lifelvl + "\rCost : ") + P1LifeCost[P1Lifelvl])); } else { if (P1Lifelvl < (P1Life.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.powerLaserP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the total damage of your laser.\rLevel : ") + ((P1LaserPowerlvl == (P1LaserPower.length - 1))) ? "max" : ((P1LaserPowerlvl + "\rCost : ") + P1LaserPowerCost[P1LaserPowerlvl])); }); this.menu.powerLaserP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.powerLaserP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1LaserPowerCost[P1LaserPowerlvl])) && ((P1LaserPowerlvl < (P1LaserPower.length - 1))))){ cash = (cash - P1LaserPowerCost[P1LaserPowerlvl]); updateCash(); P1LaserPowerlvl++; menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the total damage of your laser.\rLevel : ") + ((P1LaserPowerlvl == (P1LaserPower.length - 1))) ? "max" : ((P1LaserPowerlvl + "\rCost : ") + P1LaserPowerCost[P1LaserPowerlvl])); } else { if (P1LaserPowerlvl < (P1LaserPower.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.firerateP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the reload speed of your laser.\rLevel : ") + ((P1FireRatelvl == (P1FireRate.length - 1))) ? "max" : ((P1FireRatelvl + "\rCost : ") + P1FireRateCost[P1FireRatelvl])); }); this.menu.firerateP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.firerateP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1FireRateCost[P1FireRatelvl])) && ((P1FireRatelvl < (P1FireRate.length - 1))))){ cash = (cash - P1FireRateCost[P1FireRatelvl]); updateCash(); P1FireRatelvl++; menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the reload speed of your laser.\rLevel : ") + ((P1FireRatelvl == (P1FireRate.length - 1))) ? "max" : ((P1FireRatelvl + "\rCost : ") + P1FireRateCost[P1FireRatelvl])); } else { if (P1FireRatelvl < (P1FireRate.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.speedP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the speed of your ship.\rLevel : ") + ((P1Speedlvl == (P1Speed.length - 1))) ? "max" : ((P1Speedlvl + "\rCost : ") + P1SpeedCost[P1Speedlvl])); }); this.menu.speedP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.speedP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1SpeedCost[P1Speedlvl])) && ((P1Speedlvl < (P1Speed.length - 1))))){ cash = (cash - P1SpeedCost[P1Speedlvl]); updateCash(); P1Speedlvl++; menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the speed of your ship.\rLevel : ") + ((P1Speedlvl == (P1Speed.length - 1))) ? "max" : ((P1Speedlvl + "\rCost : ") + P1SpeedCost[P1Speedlvl])); } else { if (P1Speedlvl < (P1Speed.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.repairP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "This upgrade repairs your ship over time.\rLevel : ") + ((P1RepairBotlvl == (P1RepairBot.length - 1))) ? "max" : ((P1RepairBotlvl + "\rCost : ") + P1RepairBotCost[P1RepairBotlvl])); }); this.menu.repairP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.repairP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1RepairBotCost[P1RepairBotlvl])) && ((P1RepairBotlvl < (P1RepairBot.length - 1))))){ cash = (cash - P1RepairBotCost[P1RepairBotlvl]); updateCash(); P1RepairBotlvl++; menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "This upgrade repairs your ship over time.\rLevel : ") + ((P1RepairBotlvl == (P1RepairBot.length - 1))) ? "max" : ((P1RepairBotlvl + "\rCost : ") + P1RepairBotCost[P1RepairBotlvl])); } else { if (P1RepairBotlvl < (P1RepairBot.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.frontLaserP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot one more laser from the front of your ship.\rLevel : ") + ((P1FrontLaserLvl == 4)) ? "max" : ((P1FrontLaserLvl + "\rCost : ") + P1FrontLaserCost[P1FrontLaserLvl])); }); this.menu.frontLaserP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P1FrontLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.frontLaserP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1FrontLaserCost[P1FrontLaserLvl])) && ((P1FrontLaserLvl < 4)))){ cash = (cash - P1FrontLaserCost[P1FrontLaserLvl]); updateCash(); P1FrontLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot one more laser from the front of your ship.\rLevel : ") + ((P1FrontLaserLvl == 4)) ? "max" : ((P1FrontLaserLvl + "\rCost : ") + P1FrontLaserCost[P1FrontLaserLvl])); } else { if (P1FrontLaserLvl < 4){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.rearLaserP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot one more laser from the back of your ship.\rLevel : ") + ((P1RearLaserLvl == 4)) ? "max" : ((P1RearLaserLvl + "\rCost : ") + P1RearLaserCost[P1RearLaserLvl])); }); this.menu.rearLaserP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P1RearLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.rearLaserP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1RearLaserCost[P1RearLaserLvl])) && ((P1RearLaserLvl < 4)))){ cash = (cash - P1RearLaserCost[P1RearLaserLvl]); updateCash(); P1RearLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot one more laser from the back of your ship.\rLevel : ") + ((P1RearLaserLvl == 4)) ? "max" : ((P1RearLaserLvl + "\rCost : ") + P1RearLaserCost[P1RearLaserLvl])); } else { if (P1RearLaserLvl < 4){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.sideLaserP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot two more lasers from the sides of your\rship.\rLevel : ") + ((P1SideLaserLvl == 4)) ? "max" : ((P1SideLaserLvl + "\rCost : ") + P1SideLaserCost[P1SideLaserLvl])); }); this.menu.sideLaserP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P1SideLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.sideLaserP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1SideLaserCost[P1SideLaserLvl])) && ((P1SideLaserLvl < 4)))){ cash = (cash - P1SideLaserCost[P1SideLaserLvl]); updateCash(); P1SideLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot two more lasers from the sides of your\rship.\rLevel : ") + ((P1SideLaserLvl == 4)) ? "max" : ((P1SideLaserLvl + "\rCost : ") + P1SideLaserCost[P1SideLaserLvl])); } else { if (P1SideLaserLvl < 4){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.diaFrontLaserP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot two more lasers from the front corner of\ryour ship.\rLevel : ") + ((P1DiaFrontLaserLvl == 2)) ? "max" : ((P1DiaFrontLaserLvl + "\rCost : ") + P1DiaFrontLaserCost[P1DiaFrontLaserLvl])); }); this.menu.diaFrontLaserP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P1DiaFrontLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.diaFrontLaserP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1DiaFrontLaserCost[P1DiaFrontLaserLvl])) && ((P1DiaFrontLaserLvl < 2)))){ cash = (cash - P1DiaFrontLaserCost[P1DiaFrontLaserLvl]); updateCash(); P1DiaFrontLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot two more lasers from the front corner of\ryour ship.\rLevel : ") + ((P1DiaFrontLaserLvl == 2)) ? "max" : ((P1DiaFrontLaserLvl + "\rCost : ") + P1DiaFrontLaserCost[P1DiaFrontLaserLvl])); } else { if (P1DiaFrontLaserLvl < 2){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.diaRearLaserP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot two more lasers from the back corner of\ryour ship.\rLevel : ") + ((P1DiaRearLaserLvl == 2)) ? "max" : ((P1DiaRearLaserLvl + "\rCost : ") + P1DiaRearLaserCost[P1DiaRearLaserLvl])); }); this.menu.diaRearLaserP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P1DiaRearLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.diaRearLaserP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1DiaRearLaserCost[P1DiaRearLaserLvl])) && ((P1DiaRearLaserLvl < 2)))){ cash = (cash - P1DiaRearLaserCost[P1DiaRearLaserLvl]); updateCash(); P1DiaRearLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Shoot two more lasers from the back corner of\ryour ship.\rLevel : ") + ((P1DiaRearLaserLvl == 2)) ? "max" : ((P1DiaRearLaserLvl + "\rCost : ") + P1DiaRearLaserCost[P1DiaRearLaserLvl])); } else { if (P1DiaRearLaserLvl < 2){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.distanceWaveP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Increase the size of your defensive wave.\rLevel : ") + ((P1GrosseurOndeLvl == (P1GrosseurOnde.length - 1))) ? "max" : ((P1GrosseurOndeLvl + "\rCost : ") + P1GrosseurOndeCost[P1GrosseurOndeLvl])); }); this.menu.distanceWaveP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.distanceWaveP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1GrosseurOndeCost[P1GrosseurOndeLvl])) && ((P1GrosseurOndeLvl < (P1GrosseurOnde.length - 1))))){ cash = (cash - P1GrosseurOndeCost[P1GrosseurOndeLvl]); updateCash(); P1GrosseurOndeLvl++; menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Increase the size of your defensive wave.\rLevel : ") + ((P1GrosseurOndeLvl == (P1GrosseurOnde.length - 1))) ? "max" : ((P1GrosseurOndeLvl + "\rCost : ") + P1GrosseurOndeCost[P1GrosseurOndeLvl])); } else { if (P1GrosseurOndeLvl < (P1GrosseurOnde.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.reloadWaveP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the reload speed of your defensive wave.\rLevel : ") + ((P1ReloadOndeLvl == (P1ReloadOnde.length - 1))) ? "max" : ((P1ReloadOndeLvl + "\rCost : ") + P1ReloadOndeCost[P1ReloadOndeLvl])); }); this.menu.reloadWaveP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.reloadWaveP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1ReloadOndeCost[P1ReloadOndeLvl])) && ((P1ReloadOndeLvl < (P1ReloadOnde.length - 1))))){ cash = (cash - P1ReloadOndeCost[P1ReloadOndeLvl]); updateCash(); P1ReloadOndeLvl++; menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Improve the reload speed of your defensive wave.\rLevel : ") + ((P1ReloadOndeLvl == (P1ReloadOnde.length - 1))) ? "max" : ((P1ReloadOndeLvl + "\rCost : ") + P1ReloadOndeCost[P1ReloadOndeLvl])); } else { if (P1ReloadOndeLvl < (P1ReloadOnde.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.missileP1btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Add two missile launchers to your ship. Each\rlevel improve the damage of the missiles.\rLevel : ") + ((P1MissileLvl == (P1Missile.length - 1))) ? "max" : ((P1MissileLvl + "\rCost : ") + P1MissileCost[P1MissileLvl])); }); this.menu.missileP1btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.missileP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P1MissileCost[P1MissileLvl])) && ((P1MissileLvl < (P1Missile.length - 1))))){ cash = (cash - P1MissileCost[P1MissileLvl]); updateCash(); P1MissileLvl++; menu.detailtxt.text = ((((gamingMode == "MP")) ? "Player 1\r" : "" + "Add two missile launchers to your ship. Each\rlevel improve the damage of the missiles.\rLevel : ") + ((P1MissileLvl == (P1Missile.length - 1))) ? "max" : ((P1MissileLvl + "\rCost : ") + P1MissileCost[P1MissileLvl])); } else { if (P1MissileLvl < (P1Missile.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); if (mode == "MP"){ this.menu.lifeP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ("Player 2\rImprove the shield of your ship.\rLevel : " + ((P2Lifelvl == (P2Life.length - 1))) ? "max" : ((P2Lifelvl + "\rCost : ") + P2LifeCost[P2Lifelvl])); }); this.menu.lifeP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.lifeP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2LifeCost[P2Lifelvl])) && ((P2Lifelvl < (P2Life.length - 1))))){ cash = (cash - P2LifeCost[P2Lifelvl]); updateCash(); P2Lifelvl++; menu.detailtxt.text = ("Player 2\rImprove the shield of your ship.\rLevel : " + ((P2Lifelvl == (P2Life.length - 1))) ? "max" : ((P2Lifelvl + "\rCost : ") + P2LifeCost[P2Lifelvl])); } else { if (P2Lifelvl < (P2Life.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.powerLaserP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ("Player 2\rImprove the total damage of your laser.\rLevel : " + ((P2LaserPowerlvl == (P2LaserPower.length - 1))) ? "max" : ((P2LaserPowerlvl + "\rCost : ") + P2LaserPowerCost[P2LaserPowerlvl])); }); this.menu.powerLaserP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.powerLaserP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2LaserPowerCost[P2LaserPowerlvl])) && ((P2LaserPowerlvl < (P2LaserPower.length - 1))))){ cash = (cash - P2LaserPowerCost[P2LaserPowerlvl]); updateCash(); P2LaserPowerlvl++; menu.detailtxt.text = ("Player 2\rImprove the total damage of your laser.\rLevel : " + ((P2LaserPowerlvl == (P2LaserPower.length - 1))) ? "max" : ((P2LaserPowerlvl + "\rCost : ") + P2LaserPowerCost[P2LaserPowerlvl])); } else { if (P2LaserPowerlvl < (P2LaserPower.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.firerateP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ("Player 2\rImprove the reload speed of your laser.\rLevel : " + ((P2FireRatelvl == (P2FireRate.length - 1))) ? "max" : ((P2FireRatelvl + "\rCost : ") + P2FireRateCost[P2FireRatelvl])); }); this.menu.firerateP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.firerateP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2FireRateCost[P2FireRatelvl])) && ((P2FireRatelvl < (P2FireRate.length - 1))))){ cash = (cash - P2FireRateCost[P2FireRatelvl]); updateCash(); P2FireRatelvl++; menu.detailtxt.text = ("Player 2\rImprove the reload speed of your laser.\rLevel : " + ((P2FireRatelvl == (P2FireRate.length - 1))) ? "max" : ((P2FireRatelvl + "\rCost : ") + P2FireRateCost[P2FireRatelvl])); } else { if (P2FireRatelvl < (P2FireRate.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.speedP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ("Player 2\rImprove the speed of your ship.\rLevel : " + ((P2Speedlvl == (P2Speed.length - 1))) ? "max" : ((P2Speedlvl + "\rCost : ") + P2SpeedCost[P2Speedlvl])); }); this.menu.speedP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.speedP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2SpeedCost[P2Speedlvl])) && ((P2Speedlvl < (P2Speed.length - 1))))){ cash = (cash - P2SpeedCost[P2Speedlvl]); updateCash(); P2Speedlvl++; menu.detailtxt.text = ("Player 2\rImprove the speed of your ship.\rLevel : " + ((P2Speedlvl == (P2Speed.length - 1))) ? "max" : ((P2Speedlvl + "\rCost : ") + P2SpeedCost[P2Speedlvl])); } else { if (P2Speedlvl < (P2Speed.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.repairP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ("Player 2\rThis upgrade repairs your ship over time.\rLevel : " + ((P2RepairBotlvl == (P2RepairBot.length - 1))) ? "max" : ((P2RepairBotlvl + "\rCost : ") + P2RepairBotCost[P2RepairBotlvl])); }); this.menu.repairP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.repairP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2RepairBotCost[P2RepairBotlvl])) && ((P2RepairBotlvl < (P2RepairBot.length - 1))))){ cash = (cash - P2RepairBotCost[P2RepairBotlvl]); updateCash(); P2RepairBotlvl++; menu.detailtxt.text = ("Player 2\rThis upgrade repairs your ship over time.\rLevel : " + ((P2RepairBotlvl == (P2RepairBot.length - 1))) ? "max" : ((P2RepairBotlvl + "\rCost : ") + P2RepairBotCost[P2RepairBotlvl])); } else { if (P2RepairBotlvl < (P2RepairBot.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.frontLaserP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot one more laser from the front of your ship.\rLevel : " + ((P2FrontLaserLvl == 4)) ? "max" : ((P2FrontLaserLvl + "\rCost : ") + P2FrontLaserCost[P2FrontLaserLvl])); }); this.menu.frontLaserP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P2FrontLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.frontLaserP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2FrontLaserCost[P2FrontLaserLvl])) && ((P2FrontLaserLvl < 4)))){ cash = (cash - P2FrontLaserCost[P2FrontLaserLvl]); updateCash(); P2FrontLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot one more laser from the front of your ship.\rLevel : " + ((P2FrontLaserLvl == 4)) ? "max" : ((P2FrontLaserLvl + "\rCost : ") + P2FrontLaserCost[P2FrontLaserLvl])); } else { if (P2FrontLaserLvl < 4){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.rearLaserP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot one more laser from the back of your ship.\rLevel : " + ((P2RearLaserLvl == 4)) ? "max" : ((P2RearLaserLvl + "\rCost : ") + P2RearLaserCost[P2RearLaserLvl])); }); this.menu.rearLaserP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P2RearLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.rearLaserP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2RearLaserCost[P2RearLaserLvl])) && ((P2RearLaserLvl < 4)))){ cash = (cash - P2RearLaserCost[P2RearLaserLvl]); updateCash(); P2RearLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot one more laser from the back of your ship.\rLevel : " + ((P2RearLaserLvl == 4)) ? "max" : ((P2RearLaserLvl + "\rCost : ") + P2RearLaserCost[P2RearLaserLvl])); } else { if (P2RearLaserLvl < 4){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.sideLaserP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot two more lasers from the sides of your\rship.\rLevel : " + ((P2SideLaserLvl == 4)) ? "max" : ((P2SideLaserLvl + "\rCost : ") + P2SideLaserCost[P2SideLaserLvl])); }); this.menu.sideLaserP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P2SideLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.sideLaserP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2SideLaserCost[P2SideLaserLvl])) && ((P2SideLaserLvl < 4)))){ cash = (cash - P2SideLaserCost[P2SideLaserLvl]); updateCash(); P2SideLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot two more lasers from the sides of your\rship.\rLevel : " + ((P2SideLaserLvl == 4)) ? "max" : ((P2SideLaserLvl + "\rCost : ") + P2SideLaserCost[P2SideLaserLvl])); } else { if (P2SideLaserLvl < 4){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.diaFrontLaserP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot two more lasers from the front corner of\ryour ship.\rLevel : " + ((P2DiaFrontLaserLvl == 2)) ? "max" : ((P2DiaFrontLaserLvl + "\rCost : ") + P2DiaFrontLaserCost[P2DiaFrontLaserLvl])); }); this.menu.diaFrontLaserP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P2DiaFrontLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.diaFrontLaserP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2DiaFrontLaserCost[P2DiaFrontLaserLvl])) && ((P2DiaFrontLaserLvl < 2)))){ cash = (cash - P2DiaFrontLaserCost[P2DiaFrontLaserLvl]); updateCash(); P2DiaFrontLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot two more lasers from the front corner of\ryour ship.\rLevel : " + ((P2DiaFrontLaserLvl == 2)) ? "max" : ((P2DiaFrontLaserLvl + "\rCost : ") + P2DiaFrontLaserCost[P2DiaFrontLaserLvl])); } else { if (P2DiaFrontLaserLvl < 2){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.diaRearLaserP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0.15; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot two more lasers from the back corner of\ryour ship.\rLevel : " + ((P2DiaRearLaserLvl == 2)) ? "max" : ((P2DiaRearLaserLvl + "\rCost : ") + P2DiaRearLaserCost[P2DiaRearLaserLvl])); }); this.menu.diaRearLaserP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ _arg1.target.back.alpha = 0; _arg1.target.gotoAndStop((P2DiaRearLaserLvl + 1)); menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.diaRearLaserP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2DiaRearLaserCost[P2DiaRearLaserLvl])) && ((P2DiaRearLaserLvl < 2)))){ cash = (cash - P2DiaRearLaserCost[P2DiaRearLaserLvl]); updateCash(); P2DiaRearLaserLvl++; _arg1.target.nextFrame(); menu.detailtxt.text = ("Player 2\rShoot two more lasers from the back corner of\ryour ship.\rLevel : " + ((P2DiaRearLaserLvl == 2)) ? "max" : ((P2DiaRearLaserLvl + "\rCost : ") + P2DiaRearLaserCost[P2DiaRearLaserLvl])); } else { if (P2DiaRearLaserLvl < 2){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.distanceWaveP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ("Player 2\rIncrease the size of your defensive wave.\rLevel : " + ((P2GrosseurOndeLvl == (P2GrosseurOnde.length - 1))) ? "max" : ((P2GrosseurOndeLvl + "\rCost : ") + P2GrosseurOndeCost[P2GrosseurOndeLvl])); }); this.menu.distanceWaveP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.distanceWaveP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2GrosseurOndeCost[P2GrosseurOndeLvl])) && ((P2GrosseurOndeLvl < (P2GrosseurOnde.length - 1))))){ cash = (cash - P2GrosseurOndeCost[P2GrosseurOndeLvl]); updateCash(); P2GrosseurOndeLvl++; menu.detailtxt.text = ("Player 2\rIncrease the size of your defensive wave.\rLevel : " + ((P2GrosseurOndeLvl == (P2GrosseurOnde.length - 1))) ? "max" : ((P2GrosseurOndeLvl + "\rCost : ") + P2GrosseurOndeCost[P2GrosseurOndeLvl])); } else { if (P2GrosseurOndeLvl < (P2GrosseurOnde.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.reloadWaveP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ("Player 2\rImprove the reload speed of your defensive wave.\rLevel : " + ((P2ReloadOndeLvl == (P2ReloadOnde.length - 1))) ? "max" : ((P2ReloadOndeLvl + "\rCost : ") + P2ReloadOndeCost[P2ReloadOndeLvl])); }); this.menu.reloadWaveP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.reloadWaveP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2ReloadOndeCost[P2ReloadOndeLvl])) && ((P2ReloadOndeLvl < (P2ReloadOnde.length - 1))))){ cash = (cash - P2ReloadOndeCost[P2ReloadOndeLvl]); updateCash(); P2ReloadOndeLvl++; menu.detailtxt.text = ("Player 2\rImprove the reload speed of your defensive wave.\rLevel : " + ((P2ReloadOndeLvl == (P2ReloadOnde.length - 1))) ? "max" : ((P2ReloadOndeLvl + "\rCost : ") + P2ReloadOndeCost[P2ReloadOndeLvl])); } else { if (P2ReloadOndeLvl < (P2ReloadOnde.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); this.menu.missileP2btn.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ menu.detailtxt.text = ("Player 2\rAdd two missile launchers to your ship. Each\rlevel improve the damage of the missiles.\rLevel : " + ((P2MissileLvl == (P2Missile.length - 1))) ? "max" : ((P2MissileLvl + "\rCost : ") + P2MissileCost[P2MissileLvl])); }); this.menu.missileP2btn.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){ menu.detailtxt.text = "Move over an upgrade to see a description here."; }); this.menu.missileP2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if ((((cash >= P2MissileCost[P2MissileLvl])) && ((P2MissileLvl < (P2Missile.length - 1))))){ cash = (cash - P2MissileCost[P2MissileLvl]); updateCash(); P2MissileLvl++; menu.detailtxt.text = ("Player 2\rAdd two missile launchers to your ship. Each\rlevel improve the damage of the missiles.\rLevel : " + ((P2MissileLvl == (P2Missile.length - 1))) ? "max" : ((P2MissileLvl + "\rCost : ") + P2MissileCost[P2MissileLvl])); } else { if (P2MissileLvl < (P2Missile.length - 1)){ menu.detailtxt.text = "Not enough cash."; }; }; }); }; this.menu.lvl1btn.verifEtat(1, lvlDebloque); this.menu.lvl2btn.verifEtat(2, lvlDebloque); this.menu.lvl3btn.verifEtat(3, lvlDebloque); this.menu.lvl4btn.verifEtat(4, lvlDebloque); this.menu.lvl5btn.verifEtat(5, lvlDebloque); this.menu.lvl6btn.verifEtat(6, lvlDebloque); this.menu.lvl7btn.verifEtat(7, lvlDebloque); this.menu.lvl8btn.verifEtat(8, lvlDebloque); this.menu.lvl9btn.verifEtat(9, lvlDebloque); this.menu.lvl10btn.verifEtat(10, lvlDebloque); this.menu.lvlbonusbtn.verifEtat(11, lvlDebloque); this.menu.lvl1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(1); }); if (lvlDebloque >= 2){ this.menu.lvl2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(2); }); }; if (lvlDebloque >= 3){ this.menu.lvl3btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(3); }); }; if (lvlDebloque >= 4){ this.menu.lvl4btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(4); }); }; if (lvlDebloque >= 5){ this.menu.lvl5btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(5); }); }; if (lvlDebloque >= 6){ this.menu.lvl6btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(6); }); }; if (lvlDebloque >= 7){ this.menu.lvl7btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(7); }); }; if (lvlDebloque >= 8){ this.menu.lvl8btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(8); }); }; if (lvlDebloque >= 9){ this.menu.lvl9btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(9); }); }; if (lvlDebloque >= 10){ this.menu.lvl10btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(10); }); }; if (lvlDebloque >= 11){ this.menu.lvlbonusbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ debutNiveau(11); }); }; } private function choixControlMP(_arg1:String, _arg2:String){ player1Control = _arg1; player2Control = _arg2; this.removeChild(interfaceControlMP); interfaceControlMP = null; this.addEventListener(Event.ENTER_FRAME, tempPremiereMenuMP); } private function tempPremiereMenu(_arg1:Event){ if (tempNumber >= 1){ tempNumber = 0; this.removeEventListener(Event.ENTER_FRAME, tempPremiereMenu); ouvrirMenu(); } else { tempNumber++; }; } private function sauvegarder(_arg1:String){ var _local2:Array; var _local3:Array; if (_arg1 == "SP"){ saveGame.data.cashSP = cash; saveGame.data.cashTotalSP = cashTotal; saveGame.data.killsSP = ennemisKilled; saveGame.data.lvlDebloqueSP = lvlDebloque; saveGame.data.nombreMortSP = nombreMort; saveGame.data.nombreExitSP = nombreExit; saveGame.data.lvlP1SP = null; _local2 = new Array(P1Lifelvl, P1LaserPowerlvl, P1FireRatelvl, P1Speedlvl, P1RepairBotlvl, P1FrontLaserLvl, P1SideLaserLvl, P1RearLaserLvl, P1DiaFrontLaserLvl, P1DiaRearLaserLvl, P1ReloadOndeLvl, P1GrosseurOndeLvl, P1MissileLvl); saveGame.data.lvlP1SP = _local2; _local2 = null; saveGame.data.withoutHitSP = withoutHitArray; saveGame.flush(); } else { saveGame.data.cashMP = cash; saveGame.data.cashTotalMP = cashTotal; saveGame.data.killsMP = ennemisKilled; saveGame.data.lvlDebloqueMP = lvlDebloque; saveGame.data.nombreMortMP = nombreMort; saveGame.data.nombreExitMP = nombreExit; saveGame.data.lvlP1MP = null; _local3 = new Array(P1Lifelvl, P1LaserPowerlvl, P1FireRatelvl, P1Speedlvl, P1RepairBotlvl, P1FrontLaserLvl, P1SideLaserLvl, P1RearLaserLvl, P1DiaFrontLaserLvl, P1DiaRearLaserLvl, P1ReloadOndeLvl, P1GrosseurOndeLvl, P1MissileLvl); saveGame.data.lvlP1MP = _local3; _local3 = null; saveGame.data.lvlP2MP = null; _local3 = new Array(P2Lifelvl, P2LaserPowerlvl, P2FireRatelvl, P2Speedlvl, P2RepairBotlvl, P2FrontLaserLvl, P2SideLaserLvl, P2RearLaserLvl, P2DiaFrontLaserLvl, P2DiaRearLaserLvl, P2ReloadOndeLvl, P2GrosseurOndeLvl, P2MissileLvl); saveGame.data.lvlP2MP = _local3; _local3 = null; saveGame.data.withoutHitMP = withoutHitArray; saveGame.flush(); }; } private function choixMode(_arg1:String){ gamingMode = _arg1; this.removeChild(menuintro); menuintro = null; ouvrirTuto(); } private function retourMenuP(_arg1:MouseEvent){ if ((gamingMode == "SP")){ sauvegarder("SP"); } else { sauvegarder("MP"); }; this.removeChild(menu); menu = null; ouvrirMenuIntro(); } private function ouvrirMenuIntro(){ var sponsorLink:URLRequest; menuintro = new IntroMenu(); this.addChild(menuintro); sponsorLink = new URLRequest("http://www.aceshootinggames.com/"); this.menuintro.btnSponsor.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ navigateToURL(sponsorLink, "_blank"); }); this.menuintro.SPModebtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ gestionSauvegarde("SP"); choixMode("SP"); }); this.menuintro.achievementSPbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ gestionSauvegarde("SP"); achievementMode("SP"); }); this.menuintro.MPModebtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ gestionSauvegarde("MP"); choixMode("MP"); }); this.menuintro.achievementMPbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ gestionSauvegarde("MP"); achievementMode("MP"); }); this.menuintro.eraseP1btn.addEventListener(MouseEvent.CLICK, eraseP1click); this.menuintro.eraseP2btn.addEventListener(MouseEvent.CLICK, eraseP2click); } private function unPause(){ this.removeChild(ecranpause); if (muteSound){ this.removeChild(xRouge); xRouge = null; }; if (muteMusic){ this.removeChild(xRougeM); xRougeM = null; }; application.pause = false; transformSonMusic.volume = 0.25; if (!muteMusic){ if (musicDansIntro){ channelSonIntroMusic.soundTransform = transformSonMusic; } else { channelSonMusic.soundTransform = transformSonMusic; }; }; contPause = 5; pauseOK = false; backg.play(); if (application.boss){ application.boss.play(); }; niv.pauseGame(false); this.addEventListener(Event.ENTER_FRAME, pausePause); this.stage.focus = this.stage; } public function ouvrirMenuMP(){ sauvegarder("MP"); if (!introIsPlaying){ if (!muteMusic){ channelSonMenu = sonMenuSong.play(0, 1000, transformSonMenu); } else { channelSonMenu = sonMenuSong.play(0, 1000, transformSonMenuMute); }; }; introIsPlaying = true; menu = new interfaceMenuMP(); this.addChild(menu); this.addEventListener(Event.ENTER_FRAME, initialisationBoutonMenuMP); this.menu.cashtxt.text = ("Cash : " + cash); if (withoutHitArray[0]){ this.menu.lvl1btn.star.alpha = 1; }; if (withoutHitArray[1]){ this.menu.lvl2btn.star.alpha = 1; }; if (withoutHitArray[2]){ this.menu.lvl3btn.star.alpha = 1; }; if (withoutHitArray[3]){ this.menu.lvl4btn.star.alpha = 1; }; if (withoutHitArray[4]){ this.menu.lvl5btn.star.alpha = 1; }; if (withoutHitArray[5]){ this.menu.lvl6btn.star.alpha = 1; }; if (withoutHitArray[6]){ this.menu.lvl7btn.star.alpha = 1; }; if (withoutHitArray[7]){ this.menu.lvl8btn.star.alpha = 1; }; if (withoutHitArray[8]){ this.menu.lvl9btn.star.alpha = 1; }; if (withoutHitArray[9]){ this.menu.lvl10btn.star.alpha = 1; }; if (withoutHitArray[10]){ this.menu.lvlbonusbtn.star.alpha = 1; }; this.menu.resetP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ cash = cashTotal; menu.cashtxt.text = ("Cash : " + cash); P1Lifelvl = 0; P1LaserPowerlvl = 0; P1FireRatelvl = 0; P1Speedlvl = 0; P1RepairBotlvl = 0; P1FrontLaserLvl = 1; P1SideLaserLvl = 0; P1RearLaserLvl = 0; P1DiaFrontLaserLvl = 0; P1DiaRearLaserLvl = 0; P1ReloadOndeLvl = 0; P1GrosseurOndeLvl = 0; P1MissileLvl = 0; menu.frontLaserP1btn.gotoAndStop(2); menu.rearLaserP1btn.gotoAndStop(1); menu.sideLaserP1btn.gotoAndStop(1); menu.diaFrontLaserP1btn.gotoAndStop(1); menu.diaRearLaserP1btn.gotoAndStop(1); P2Lifelvl = 0; P2LaserPowerlvl = 0; P2FireRatelvl = 0; P2Speedlvl = 0; P2RepairBotlvl = 0; P2FrontLaserLvl = 1; P2SideLaserLvl = 0; P2RearLaserLvl = 0; P2DiaFrontLaserLvl = 0; P2DiaRearLaserLvl = 0; P2ReloadOndeLvl = 0; P2GrosseurOndeLvl = 0; P2MissileLvl = 0; menu.frontLaserP2btn.gotoAndStop(2); menu.rearLaserP2btn.gotoAndStop(1); menu.sideLaserP2btn.gotoAndStop(1); menu.diaFrontLaserP2btn.gotoAndStop(1); menu.diaRearLaserP2btn.gotoAndStop(1); }); codeBoutonMenu("MP"); } private function affichePause(){ ecranpause = new ecranPause(); this.addChild(ecranpause); if (muteSound){ xRouge = new xCouperSon(); xRouge.x = 250; xRouge.y = 335; this.addChild(xRouge); }; if (muteMusic){ xRougeM = new xCouperSon(); xRougeM.x = 250; xRougeM.y = 402; this.addChild(xRougeM); }; this.ecranpause.resumebtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ unPause(); }); this.ecranpause.quitbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ unPause(); mort(false); }); this.ecranpause.muteSoundbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ clickMuteSound("pause"); }); this.ecranpause.muteMusicbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ clickMuteMusic("pause"); }); } private function creeWave(_arg1:String){ if ((((compteurOndeP1 == 0)) && ((_arg1 == "player1")))){ if (!muteSound){ channelSon2 = sondWave.play(); }; ondeChoc = new ondeP1(P1GrosseurOnde[P1GrosseurOndeLvl]); ondeChoc.x = this.player1I.x; ondeChoc.y = player1I.y; this.addChild(ondeChoc); waveBar1.waveShot(); compteurOndeP1 = 1; } else { if ((((compteurOndeP2 == 0)) && ((_arg1 == "player2")))){ if (!muteSound){ channelSon2 = sondWave.play(); }; ondeChoc2 = new ondeP2(P2GrosseurOnde[P2GrosseurOndeLvl]); ondeChoc2.x = this.player2I.x; ondeChoc2.y = player2I.y; this.addChild(ondeChoc2); waveBar2.waveShot(); compteurOndeP2 = 1; }; }; } private function eraseP1click(_arg1:MouseEvent){ if (QErase){ this.removeChild(QErase); QErase = null; }; QErase = new questionErase(); QErase.x = 163.3; QErase.y = 85.5; this.addChild(QErase); QErase.yesbtn.addEventListener(MouseEvent.CLICK, eraseYesSPclick); QErase.nobtn.addEventListener(MouseEvent.CLICK, eraseNoclick); } private function applicationEnterframe(_arg1:Event){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Array; var _local6:Array; var _local7:Number; var _local8:Number; var _local9:Point; var _local10:Array; var _local11:Number; var _local12:*; var _local13:Point; var _local14:bossLifeBar; var _local15:Array; var _local16:Number; var _local17:Boolean; var _local18:Point; var _local19:Boolean; var _local20:Array; var _local21:Number; var _local22:Point; var _local23:Array; var _local24:Number; var _local25:Point; if (application.pause == false){ if (application.ingame == true){ if ((((gamingMode == "SP")) && (player1I))){ application.posPlayer.x = player1I.x; application.posPlayer.y = player1I.y; } else { if (gamingMode == "MP"){ if (aliveP1){ application.posPlayer.x = player1I.x; application.posPlayer.y = player1I.y; } else { if (aliveP2){ application.posPlayer.x = player2I.x; application.posPlayer.y = player2I.y; }; }; }; }; if (compteurOndeP1 > 0){ compteurOndeP1++; if (compteurOndeP1 == 15){ ondeChoc = null; }; if (compteurOndeP1 == P1ReloadOnde[P1ReloadOndeLvl]){ compteurOndeP1 = 0; }; }; if (compteurOndeP2 > 0){ compteurOndeP2++; if (compteurOndeP2 == 15){ ondeChoc2 = null; }; if (compteurOndeP2 == P2ReloadOnde[P2ReloadOndeLvl]){ compteurOndeP2 = 0; }; }; _local2 = 0; _local3 = 0; _local4 = 0; if (application.friendlyLaser.length > 0){ _local5 = application.friendlyLaser; _local6 = application.ennemis; _local7 = _local5.length; _local8 = _local6.length; _local2 = 0; while (_local2 < _local7) { if ((((((((_local5[_local2].y < -20)) || ((_local5[_local2].y > 620)))) || ((_local5[_local2].x < -20)))) || ((_local5[_local2].x > 520)))){ _local5[_local2].destructor(); _local5[_local2] = null; _local5[_local2] = _local5[(_local5.length - 1)]; _local5.length = (_local5.length - 1); _local7--; _local2--; } else { _local3 = 0; while (_local3 < _local8) { _local9 = new Point(_local5[_local2].x, _local5[_local2].y); if (_local6[_local3].hitTestPoint(_local9.x, _local9.y)){ if ((_local5[_local2] is baseLaser)){ _local6[_local3].life = (_local6[_local3].life - P1LaserPower[P1LaserPowerlvl]); if (!muteSound){ channelSon3 = sonEnnemiHit.play(0, 0, transformSon3); }; } else { if ((_local5[_local2] is missile)){ if ((_local5[_local2] is missileP1)){ _local6[_local3].life = (_local6[_local3].life - P1Missile[P1MissileLvl]); } else { _local6[_local3].life = (_local6[_local3].life - P2Missile[P2MissileLvl]); }; if (!muteSound){ channelSon5 = sonMissileHit.play(); if (Math.random() < 0.5){ channelSon5.soundTransform = transformSonMissile1; } else { channelSon5.soundTransform = transformSonMissile2; }; }; }; }; if (_local6[_local3].life <= 0){ ennemisKilled++; if (!muteSound){ if ((((_local6[_local3] is miniBoss1)) || ((_local6[_local3] is miniBoss2)))){ channelSon7 = sonEnnemiDieBig.play(130, 0, null); } else { channelSon4 = sonEnnemiDie.play(); }; }; _local4 = 0; while (_local4 < _local7) { if ((_local5[_local4] is missile)){ _local5[_local4].verifEnnemi(_local6[_local3]); }; _local4++; }; if ((_local6[_local3] is vSmallEnnemi1)){ cash = (cash + 200); cashTotal = (cashTotal + 200); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is smallEnnemi1)){ cash = (cash + 50); cashTotal = (cashTotal + 50); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is smallEnnemi2)){ cash = (cash + 60); cashTotal = (cashTotal + 60); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is smallEnnemi3)){ cash = (cash + 100); cashTotal = (cashTotal + 100); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is smallEnnemi4)){ cash = (cash + 220); cashTotal = (cashTotal + 220); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is smallEnnemi5)){ cash = (cash + 250); cashTotal = (cashTotal + 250); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is mediumEnnemi1)){ cash = (cash + 200); cashTotal = (cashTotal + 200); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is mediumEnnemi2)){ cash = (cash + 300); cashTotal = (cashTotal + 300); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is mediumEnnemi3)){ cash = (cash + 400); cashTotal = (cashTotal + 400); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is miniBoss1)){ cash = (cash + 800); cashTotal = (cashTotal + 800); txtCash.cash.text = ("Cash : " + cash); } else { if ((_local6[_local3] is miniBoss2)){ cash = (cash + 1000); cashTotal = (cashTotal + 1000); txtCash.cash.text = ("Cash : " + cash); }; }; }; }; }; }; }; }; }; }; }; _local6[_local3].destructor(); _local6[_local3] = null; _local6[_local3] = _local6[(_local6.length - 1)]; _local6.length = (_local6.length - 1); _local8--; _local3--; }; _local5[_local2].destructor(); _local5[_local2] = null; _local5[_local2] = _local5[(_local5.length - 1)]; _local5.length = (_local5.length - 1); _local7--; _local2--; break; }; _local3++; }; }; _local2++; }; _local2 = 0; while (_local2 < _local8) { if ((((((((_local6[_local2].x < (-10 - _local6[_local2].width))) || ((_local6[_local2].x > (510 + _local6[_local2].width))))) || ((_local6[_local2].y < (-10 - _local6[_local2].height))))) || ((_local6[_local2].y > (610 + _local6[_local2].height))))){ _local6[_local2].destructor(); _local6[_local2] = null; _local6[_local2] = _local6[(_local6.length - 1)]; _local6.length = (_local6.length - 1); _local8--; _local2--; }; _local2++; }; application.friendlyLaser = _local5; application.ennemis = _local6; _local5 = null; _local6 = null; }; if (application.boss){ _local10 = application.friendlyLaser; _local11 = _local10.length; _local12 = application.boss; _local2 = 0; while (_local2 < _local11) { _local13 = new Point(_local10[_local2].x, _local10[_local2].y); if (_local12.hitB.hitTestPoint(_local13.x, _local13.y)){ if (application.posBoss){ if (gamingMode == "SP"){ if (player1I.y < 200){ player1I.y = 200; }; }; if (gamingMode == "MP"){ if (aliveP1){ if (player1I.y < 200){ player1I.y = 200; }; }; if (aliveP2){ if (player2I.y < 200){ player2I.y = 200; }; }; }; application.posBoss = false; }; _local14 = boss.getChildAt(2); if ((_local10[_local2] is baseLaser)){ if (!muteSound){ channelSon3 = sonEnnemiHit.play(0, 0, transformSon3); }; if (_local14.hit(P1LaserPower[P1LaserPowerlvl])){ if (!muteSound){ channelSon6 = sonBossDie.play(250); }; _local4 = 0; while (_local4 < _local11) { if ((_local10[_local4] is missile)){ _local10[_local4].verifEnnemi(_local12); }; _local4++; }; if ((_local12 is boss01)){ cash = (cash + 3000); cashTotal = (cashTotal + 3000); } else { if ((_local12 is boss02)){ cash = (cash + 3000); cashTotal = (cashTotal + 3000); } else { if ((_local12 is boss03)){ cash = (cash + 3000); cashTotal = (cashTotal + 3000); } else { if ((_local12 is boss04)){ cash = (cash + 3000); cashTotal = (cashTotal + 3000); } else { if ((_local12 is boss05)){ cash = (cash + 4000); cashTotal = (cashTotal + 4000); } else { if ((_local12 is boss06)){ cash = (cash + 5000); cashTotal = (cashTotal + 5000); } else { if ((_local12 is boss07)){ cash = (cash + 6000); cashTotal = (cashTotal + 6000); } else { if ((_local12 is boss08)){ cash = (cash + 10000); cashTotal = (cashTotal + 10000); } else { if ((_local12 is boss09)){ cash = (cash + 10000); cashTotal = (cashTotal + 10000); } else { if ((_local12 is boss10)){ cash = (cash + 10000); cashTotal = (cashTotal + 10000); }; }; }; }; }; }; }; }; }; }; _local12.destructor(); _local12 = null; if (!application.bosslvl){ bossTue = true; this.victoire(); } else { txtCash.cash.text = ("Cash : " + cash); application.bossMort = true; }; break; }; } else { if ((_local10[_local2] is missile)){ if (!muteSound){ channelSon5 = sonMissileHit.play(); if (Math.random() < 0.5){ channelSon5.soundTransform = transformSonMissile1; } else { channelSon5.soundTransform = transformSonMissile2; }; }; if (_local14.hit(P1Missile[P1MissileLvl])){ if (!muteSound){ channelSon6 = sonBossDie.play(250); }; _local4 = 0; while (_local4 < _local11) { if ((_local10[_local4] is missile)){ _local10[_local4].verifEnnemi(_local12); }; _local4++; }; if ((_local12 is boss01)){ cash = (cash + 3000); cashTotal = (cashTotal + 3000); } else { if ((_local12 is boss02)){ cash = (cash + 2000); cashTotal = (cashTotal + 3000); } else { if ((_local12 is boss03)){ cash = (cash + 3000); cashTotal = (cashTotal + 3000); } else { if ((_local12 is boss04)){ cash = (cash + 3000); cashTotal = (cashTotal + 3000); } else { if ((_local12 is boss05)){ cash = (cash + 4000); cashTotal = (cashTotal + 4000); } else { if ((_local12 is boss06)){ cash = (cash + 5000); cashTotal = (cashTotal + 5000); } else { if ((_local12 is boss07)){ cash = (cash + 6000); cashTotal = (cashTotal + 6000); } else { if ((_local12 is boss08)){ cash = (cash + 10000); cashTotal = (cashTotal + 10000); } else { if ((_local12 is boss09)){ cash = (cash + 10000); cashTotal = (cashTotal + 10000); } else { if ((_local12 is boss10)){ cash = (cash + 10000); cashTotal = (cashTotal + 10000); }; }; }; }; }; }; }; }; }; }; _local12.destructor(); _local12 = null; if (!application.bosslvl){ bossTue = true; this.victoire(); } else { txtCash.cash.text = ("Cash : " + cash); application.bossMort = true; }; break; }; }; }; _local10[_local2].destructor(); _local10[_local2] = null; _local10[_local2] = _local10[(_local10.length - 1)]; _local10.length = (_local10.length - 1); _local11--; _local2--; }; _local2++; }; application.boss = _local12; }; if ((((application.enenemiLaser.length > 0)) && ((bossTue == false)))){ _local15 = application.enenemiLaser; _local16 = _local15.length; _local2 = 0; while (_local2 < _local16) { if ((((((((_local15[_local2].y < -30)) || ((_local15[_local2].y > 630)))) || ((_local15[_local2].x < -30)))) || ((_local15[_local2].x > 530)))){ _local15[_local2].destructor(); _local15[_local2] = null; _local15[_local2] = _local15[(_local15.length - 1)]; _local15.length = (_local15.length - 1); _local16--; _local2--; } else { _local17 = false; _local18 = new Point(_local15[_local2].x, _local15[_local2].y); if ((((((gamingMode == "MP")) && (aliveP1))) || ((gamingMode == "SP")))){ if (player1I.hitB.hitTestPoint(_local18.x, _local18.y)){ hitBonus++; nombreHit++; hitTaken++; if (gamingMode == "SP"){ saveGame.data.nombreHitSP = nombreHit; } else { saveGame.data.nombreHitMP = nombreHit; }; if (!muteSound){ channelSon1 = sonPHit.play(); channelSon1.soundTransform = transformSon1; }; fondRouge = new fondAttack(); this.addChildAt(fondRouge, application.indexBtn); fondRouge = null; if ((_local15[_local2] is baseEnnemiLaser)){ if (lifeBar1.smallHit()){ lifeBar1.updateBot(0); _local15[_local2].destructor(); _local15[_local2] = null; _local15[_local2] = _local15[(_local15.length - 1)]; _local15.length = (_local15.length - 1); _local16--; _local2--; _local17 = true; if ((((gamingMode == "MP")) && (aliveP2))){ killP1(); } else { this.mort(true); break; }; }; } else { if (lifeBar1.bigHit()){ lifeBar1.updateBot(0); _local15[_local2].destructor(); _local15[_local2] = null; _local15[_local2] = _local15[(_local15.length - 1)]; _local15.length = (_local15.length - 1); _local16--; _local2--; _local17 = true; if ((((gamingMode == "MP")) && (aliveP2))){ killP1(); } else { this.mort(true); break; }; }; }; if (_local17 == false){ _local15[_local2].destructor(); _local15[_local2] = null; _local15[_local2] = _local15[(_local15.length - 1)]; _local15.length = (_local15.length - 1); _local16--; _local2--; _local17 = true; }; }; }; if ((((((gamingMode == "MP")) && ((_local17 == false)))) && (aliveP2))){ if (player2I.hitB.hitTestPoint(_local18.x, _local18.y)){ nombreHit++; hitBonus++; hitTaken++; saveGame.data.nombreHitMP = nombreHit; if (!muteSound){ channelSon1 = sonPHit.play(); channelSon1.soundTransform = transformSon1; }; fondRouge = new fondAttack(); this.addChildAt(fondRouge, application.indexBtn); fondRouge = null; _local19 = false; if ((_local15[_local2] is baseEnnemiLaser)){ if (lifeBar2.smallHit()){ lifeBar2.updateBot(0); _local15[_local2].destructor(); _local15[_local2] = null; _local15[_local2] = _local15[(_local15.length - 1)]; _local15.length = (_local15.length - 1); _local16--; _local2--; _local19 = true; if ((((gamingMode == "MP")) && (aliveP1))){ killP2(); } else { this.mort(true); break; }; }; } else { if (lifeBar2.bigHit()){ lifeBar2.updateBot(0); _local15[_local2].destructor(); _local15[_local2] = null; _local15[_local2] = _local15[(_local15.length - 1)]; _local15.length = (_local15.length - 1); _local16--; _local2--; _local19 = true; if ((((gamingMode == "MP")) && (aliveP1))){ killP2(); } else { this.mort(true); break; }; }; }; if (_local19 == false){ _local15[_local2].destructor(); _local15[_local2] = null; _local15[_local2] = _local15[(_local15.length - 1)]; _local15.length = (_local15.length - 1); _local16--; _local2--; }; }; }; }; _local2++; }; application.enenemiLaser = _local15; _local15 = null; }; if ((((application.enenemiLaser.length > 0)) && (ondeChoc))){ _local20 = application.enenemiLaser; _local21 = _local20.length; _local2 = 0; while (_local2 < _local21) { _local22 = new Point(_local20[_local2].x, _local20[_local2].y); if (ondeChoc.hitTestPoint(_local22.x, _local22.y, true)){ _local20[_local2].destructor(); _local20[_local2] = null; _local20[_local2] = _local20[(_local20.length - 1)]; _local20.length = (_local20.length - 1); _local21--; _local2--; }; _local2++; }; application.enenemiLaser = _local20; _local20 = null; }; if ((((application.enenemiLaser.length > 0)) && (ondeChoc2))){ _local23 = application.enenemiLaser; _local24 = _local23.length; _local2 = 0; while (_local2 < _local24) { _local25 = new Point(_local23[_local2].x, _local23[_local2].y); if (ondeChoc2.hitTestPoint(_local25.x, _local25.y, true)){ _local23[_local2].destructor(); _local23[_local2] = null; _local23[_local2] = _local23[(_local23.length - 1)]; _local23.length = (_local23.length - 1); _local24--; _local2--; }; _local2++; }; application.enenemiLaser = _local23; _local23 = null; }; }; }; } private function choixControlSP(_arg1:String){ player1Control = _arg1; this.removeChild(interfaceControlSP); interfaceControlSP = null; this.addEventListener(Event.ENTER_FRAME, tempPremiereMenu); } private function gestionSauvegarde(_arg1:String){ var _local2:*; var _local3:Array; var _local4:Array; var _local5:*; var _local6:Array; var _local7:Array; var _local8:Array; if (_arg1 == "SP"){ if (!saveGame.data.saveSPCree){ saveGame.data.cashSP = 0; saveGame.data.cashTotalSP = 0; saveGame.data.lvlDebloqueSP = 1; saveGame.data.nombreMortSP = 0; saveGame.data.nombreExitSP = 0; saveGame.data.nombreHitSP = 0; _local3 = new Array(0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0); saveGame.data.lvlP1SP = _local3; _local3 = null; saveGame.data.saveSPCree = true; saveGame.flush(); }; if (saveGame.data.versionSP != 1.05){ saveGame.data.versionSP = 1.05; saveGame.data.killsSP = 0; _local4 = new Array(false, false, false, false, false, false, false, false, false, false, false); saveGame.data.withoutHitSP = _local4; _local4 = null; }; cash = saveGame.data.cashSP; cashTotal = saveGame.data.cashTotalSP; ennemisKilled = saveGame.data.killsSP; lvlDebloque = saveGame.data.lvlDebloqueSP; nombreMort = saveGame.data.nombreMortSP; nombreExit = saveGame.data.nombreExitSP; nombreHit = saveGame.data.nombreHitSP; _local2 = saveGame.data.lvlP1SP; P1Lifelvl = _local2[0]; P1LaserPowerlvl = _local2[1]; P1FireRatelvl = _local2[2]; P1Speedlvl = _local2[3]; P1RepairBotlvl = _local2[4]; P1FrontLaserLvl = _local2[5]; P1SideLaserLvl = _local2[6]; P1RearLaserLvl = _local2[7]; P1DiaFrontLaserLvl = _local2[8]; P1DiaRearLaserLvl = _local2[9]; P1ReloadOndeLvl = _local2[10]; P1GrosseurOndeLvl = _local2[11]; P1MissileLvl = _local2[12]; _local5 = null; withoutHitArray = saveGame.data.withoutHitSP; } else { if (!saveGame.data.saveMPCree){ saveGame.data.cashMP = 0; saveGame.data.cashTotalMP = 0; saveGame.data.killsMP = 0; saveGame.data.lvlDebloqueMP = 1; saveGame.data.nombreMortMP = 0; saveGame.data.nombreExitMP = 0; saveGame.data.nombreHitMP = 0; _local6 = new Array(0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0); saveGame.data.lvlP1MP = _local6; _local6 = null; _local6 = new Array(0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0); saveGame.data.lvlP2MP = _local6; _local6 = null; _local7 = new Array(false, false, false, false, false, false, false, false, false, false, false); saveGame.data.withoutHitMP = _local7; _local7 = null; saveGame.data.saveMPCree = true; saveGame.flush(); }; if (saveGame.data.versionMP != 1.05){ saveGame.data.versionMP = 1.05; saveGame.data.killsMP = 0; _local8 = new Array(false, false, false, false, false, false, false, false, false, false, false); saveGame.data.withoutHitMP = _local8; _local8 = null; }; cash = saveGame.data.cashMP; cashTotal = saveGame.data.cashTotalMP; ennemisKilled = saveGame.data.killsMP; lvlDebloque = saveGame.data.lvlDebloqueMP; nombreMort = saveGame.data.nombreMortMP; nombreExit = saveGame.data.nombreExitMP; nombreHit = saveGame.data.nombreHitMP; _local5 = saveGame.data.lvlP1MP; P1Lifelvl = _local5[0]; P1LaserPowerlvl = _local5[1]; P1FireRatelvl = _local5[2]; P1Speedlvl = _local5[3]; P1RepairBotlvl = _local5[4]; P1FrontLaserLvl = _local5[5]; P1SideLaserLvl = _local5[6]; P1RearLaserLvl = _local5[7]; P1DiaFrontLaserLvl = _local5[8]; P1DiaRearLaserLvl = _local5[9]; P1ReloadOndeLvl = _local5[10]; P1GrosseurOndeLvl = _local5[11]; P1MissileLvl = _local5[12]; _local5 = null; _local5 = saveGame.data.lvlP2MP; P2Lifelvl = _local5[0]; P2LaserPowerlvl = _local5[1]; P2FireRatelvl = _local5[2]; P2Speedlvl = _local5[3]; P2RepairBotlvl = _local5[4]; P2FrontLaserLvl = _local5[5]; P2SideLaserLvl = _local5[6]; P2RearLaserLvl = _local5[7]; P2DiaFrontLaserLvl = _local5[8]; P2DiaRearLaserLvl = _local5[9]; P2ReloadOndeLvl = _local5[10]; P2GrosseurOndeLvl = _local5[11]; P2MissileLvl = _local5[12]; _local5 = null; withoutHitArray = saveGame.data.withoutHitMP; }; } private function eraseNoclick(_arg1:MouseEvent){ this.removeChild(QErase); QErase = null; } private function ouvrirTuto(){ tutomenu = new tutorial(); this.addChild(tutomenu); this.tutomenu.okbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ if (gamingMode == "SP"){ ouvrirMenuControlSP(); }; if (gamingMode == "MP"){ ouvrirMenuControlMP(); }; }); } private function tempPremiereMenuMP(_arg1:Event){ if (tempNumber >= 1){ tempNumber = 0; this.removeEventListener(Event.ENTER_FRAME, tempPremiereMenuMP); ouvrirMenuMP(); } else { tempNumber++; }; } public function attenteConstructeur(_arg1:Event){ this.removeEventListener(Event.ENTER_FRAME, attenteConstructeur); ouvrirMenuIntro(); channelSonMenu = sonMenuSong.play(0, 1000, transformSonMenu); introIsPlaying = true; } private function getIndexOfBtn():Number{ var _local1:DisplayObject; var _local2:Number = 0; while (_local2 < this.numChildren) { _local1 = this.getChildAt(_local2); if ((_local1 is zoneClickWave)){ return (_local2); }; _local2++; }; return (-1); } private function ouvrirMenuControlMP(){ this.removeChild(tutomenu); tutomenu = null; interfaceControlMP = new controlChoiceMP(); this.addChild(interfaceControlMP); this.interfaceControlMP.choice1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ choixControlMP("keyboardAll", "mouse"); }); this.interfaceControlMP.choice2btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ choixControlMP("mouse", "keyboardAll"); }); this.interfaceControlMP.choice3btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ choixControlMP("keyboard1", "keyboard2"); }); } private function creeWaveCall(_arg1:MouseEvent){ if (application.pause == false){ if (pauseOK){ if (player1Control == "mouse"){ creeWave("player1"); } else { if (player2Control == "mouse"){ creeWave("player2"); }; }; }; }; } public function clickMuteMusic(_arg1:String){ muteMusic = !(muteMusic); if (_arg1 == "pause"){ if (muteMusic){ if (musicDansIntro){ channelSonIntroMusic.soundTransform = transformSonMusicMute; } else { channelSonMusic.soundTransform = transformSonMusicMute; }; xRougeM = new xCouperSon(); xRougeM.x = 250; xRougeM.y = 402; this.addChild(xRougeM); } else { if (musicDansIntro){ channelSonIntroMusic.soundTransform = transformSonMusic; } else { channelSonMusic.soundTransform = transformSonMusic; }; this.removeChild(xRougeM); xRougeM = null; }; } else { if (_arg1 == "menu"){ if (muteMusic){ channelSonMenu.soundTransform = transformSonMenuMute; xRougeM = new xCouperSon(); xRougeM.width = 30; xRougeM.height = 30; xRougeM.x = 372; xRougeM.y = 16; this.addChild(xRougeM); } else { channelSonMenu.soundTransform = transformSonMenu; this.removeChild(xRougeM); xRougeM = null; }; }; }; } private function achievementMode(_arg1:String){ var selectedMode = _arg1; this.removeChild(menuintro); menuintro = null; pageAchi = new achievementPage(); this.addChild(pageAchi); this.pageAchi.txtNDeaths.text = nombreMort.toString(); this.pageAchi.txtNHits.text = nombreHit.toString(); this.pageAchi.txtNKills.text = ennemisKilled.toString(); if (ennemisKilled >= 100){ this.pageAchi.achi100Kills.alpha = 1; }; if (ennemisKilled >= 1000){ this.pageAchi.achi500Kills.alpha = 1; }; if (lvlDebloque >= 11){ this.pageAchi.achiGameCompleted.alpha = 1; }; if (lvlDebloque >= 12){ this.pageAchi.achiBonusCompleted.alpha = 1; }; if (selectedMode == "SP"){ if ((((((((((((((((((((((((((P1Lifelvl == 15)) || ((P1LaserPowerlvl == 12)))) || ((P1FireRatelvl == 12)))) || ((P1Speedlvl == 14)))) || ((P1RepairBotlvl == 10)))) || ((P1FrontLaserLvl == 4)))) || ((P1SideLaserLvl == 4)))) || ((P1RearLaserLvl == 4)))) || ((P1DiaFrontLaserLvl == 2)))) || ((P1DiaRearLaserLvl == 2)))) || ((P1ReloadOndeLvl == 12)))) || ((P1GrosseurOndeLvl == 9)))) || ((P1MissileLvl == 13)))){ this.pageAchi.achi1MaxLvl.alpha = 1; }; if ((((((((((((((((((((((((((P1Lifelvl == 15)) && ((P1LaserPowerlvl == 12)))) && ((P1FireRatelvl == 12)))) && ((P1Speedlvl == 14)))) && ((P1RepairBotlvl == 10)))) && ((P1FrontLaserLvl == 4)))) && ((P1SideLaserLvl == 4)))) && ((P1RearLaserLvl == 4)))) && ((P1DiaFrontLaserLvl == 2)))) && ((P1DiaRearLaserLvl == 2)))) && ((P1ReloadOndeLvl == 12)))) && ((P1GrosseurOndeLvl == 9)))) && ((P1MissileLvl == 13)))){ this.pageAchi.achiAllMaxLvl.alpha = 1; }; } else { if ((((((((((((((((((((((((((P1Lifelvl == 15)) || ((P1LaserPowerlvl == 12)))) || ((P1FireRatelvl == 12)))) || ((P1Speedlvl == 14)))) || ((P1RepairBotlvl == 10)))) || ((P1FrontLaserLvl == 4)))) || ((P1SideLaserLvl == 4)))) || ((P1RearLaserLvl == 4)))) || ((P1DiaFrontLaserLvl == 2)))) || ((P1DiaRearLaserLvl == 2)))) || ((P1ReloadOndeLvl == 12)))) || ((P1GrosseurOndeLvl == 9)))) || ((P1MissileLvl == 13)))){ this.pageAchi.achi1MaxLvl.alpha = 1; }; if ((((((((((((((((((((((((((P2Lifelvl == 15)) || ((P2LaserPowerlvl == 12)))) || ((P2FireRatelvl == 12)))) || ((P2Speedlvl == 14)))) || ((P2RepairBotlvl == 10)))) || ((P2FrontLaserLvl == 4)))) || ((P2SideLaserLvl == 4)))) || ((P2RearLaserLvl == 4)))) || ((P2DiaFrontLaserLvl == 2)))) || ((P2DiaRearLaserLvl == 2)))) || ((P2ReloadOndeLvl == 12)))) || ((P2GrosseurOndeLvl == 9)))) || ((P2MissileLvl == 13)))){ this.pageAchi.achi1MaxLvl.alpha = 1; }; if ((((((((((((((((((((((((((P1Lifelvl == 15)) && ((P1LaserPowerlvl == 12)))) && ((P1FireRatelvl == 12)))) && ((P1Speedlvl == 14)))) && ((P1RepairBotlvl == 10)))) && ((P1FrontLaserLvl == 4)))) && ((P1SideLaserLvl == 4)))) && ((P1RearLaserLvl == 4)))) && ((P1DiaFrontLaserLvl == 2)))) && ((P1DiaRearLaserLvl == 2)))) && ((P1ReloadOndeLvl == 12)))) && ((P1GrosseurOndeLvl == 9)))) && ((P1MissileLvl == 13)))){ if ((((((((((((((((((((((((((P2Lifelvl == 15)) && ((P2LaserPowerlvl == 12)))) && ((P2FireRatelvl == 12)))) && ((P2Speedlvl == 14)))) && ((P2RepairBotlvl == 10)))) && ((P2FrontLaserLvl == 4)))) && ((P2SideLaserLvl == 4)))) && ((P2RearLaserLvl == 4)))) && ((P2DiaFrontLaserLvl == 2)))) && ((P2DiaRearLaserLvl == 2)))) && ((P2ReloadOndeLvl == 12)))) && ((P2GrosseurOndeLvl == 9)))) && ((P2MissileLvl == 13)))){ this.pageAchi.achiAllMaxLvl.alpha = 1; }; }; }; if ((((((((((withoutHitArray[0] == true)) && ((withoutHitArray[1] == true)))) && ((withoutHitArray[2] == true)))) && ((withoutHitArray[3] == true)))) && ((withoutHitArray[4] == true)))){ this.pageAchi.achiWithoutHit15.alpha = 1; }; if ((((((((((withoutHitArray[5] == true)) && ((withoutHitArray[6] == true)))) && ((withoutHitArray[7] == true)))) && ((withoutHitArray[8] == true)))) && ((withoutHitArray[9] == true)))){ this.pageAchi.achiWithoutHit610.alpha = 1; }; if (withoutHitArray[10] == true){ this.pageAchi.achiWithoutHitBonus.alpha = 1; }; if ((((((((((((((((((((((withoutHitArray[0] == true)) && ((withoutHitArray[1] == true)))) && ((withoutHitArray[2] == true)))) && ((withoutHitArray[3] == true)))) && ((withoutHitArray[4] == true)))) && ((withoutHitArray[5] == true)))) && ((withoutHitArray[6] == true)))) && ((withoutHitArray[7] == true)))) && ((withoutHitArray[8] == true)))) && ((withoutHitArray[9] == true)))) && ((withoutHitArray[10] == true)))){ this.pageAchi.achiWithoutHitAll.alpha = 1; }; this.pageAchi.txtDescriptionAchi.text = "Achievement information"; texteTempAchievement = ""; this.pageAchi.achi100Kills.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Kill 100 enemies."; writeAchievement(); }); this.pageAchi.achi500Kills.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Kill 1000 enemies."; writeAchievement(); }); this.pageAchi.achiGameCompleted.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Complete level 10."; writeAchievement(); }); this.pageAchi.achiBonusCompleted.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Complete the bonus level."; writeAchievement(); }); this.pageAchi.achi1MaxLvl.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Reach maximum level for 1 upgrade."; writeAchievement(); }); this.pageAchi.achiAllMaxLvl.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Reach maximum level for all upgrades."; writeAchievement(); }); this.pageAchi.achiWithoutHit15.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Complete levels 1 to 5 without a hit.\n(Collect the 5 stars)."; writeAchievement(); }); this.pageAchi.achiWithoutHit610.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Complete levels 6 to 10 without a hit.\n(Collect the 5 stars)."; writeAchievement(); }); this.pageAchi.achiWithoutHitBonus.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Complete the bonus level without a hit.\n(Collect the star)."; writeAchievement(); }); this.pageAchi.achiWithoutHitAll.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){ texteTempAchievement = "Complete all levels without a hit.\n(Collect the 11 stars)."; writeAchievement(); }); this.pageAchi.retourMenubtn.addEventListener(MouseEvent.CLICK, retourMenuPAchi); } private function tempMortJoueur(_arg1:Event){ var _local2:Number; var _local3:Array; var _local4:Array; var _local5:Array; var _local6:Number; var _local7:Number; var _local8:Number; if (tempNumber == 1){ if (!muteMusic){ this.addEventListener(Event.ENTER_FRAME, this.fadeOutMusic); }; if (((aliveP1) || ((gamingMode == "SP")))){ killP1(); }; compteurOndeP1 = 0; niv.mortPlayer(); niv = null; lifeBar1.destructor(); lifeBar1 = null; waveBar1.destructor(); waveBar1 = null; this.removeChild(infoPause); infoPause = null; if ((((player1Control == "mouse")) || ((player2Control == "mouse")))){ curseur.stopDrag(); removeChild(curseur); curseur = null; Mouse.show(); }; if (gamingMode == "MP"){ if (aliveP2){ killP2(); }; compteurOndeP2 = 0; this.removeChild(nomlife1); nomlife1 = null; this.removeChild(nomlife2); nomlife2 = null; lifeBar2.destructor(); lifeBar2 = null; waveBar2.destructor(); waveBar2 = null; }; txtCash.destructor(); txtCash = null; tempNumber++; } else { if (tempNumber >= 60){ _local2 = 0; _local3 = application.friendlyLaser; _local4 = application.ennemis; _local5 = application.enenemiLaser; _local6 = _local3.length; _local7 = _local4.length; _local8 = _local5.length; _local2 = 0; while (_local2 < _local6) { _local3[_local2].destructor(); _local3[_local2] = null; _local2++; }; _local2 = 0; while (_local2 < _local7) { _local4[_local2].destructor(); _local4[_local2] = null; _local2++; }; _local2 = 0; while (_local2 < _local8) { _local5[_local2].destructor(); _local5[_local2] = null; _local2++; }; _local3.length = 0; _local4.length = 0; _local5.length = 0; application.friendlyLaser = _local3; application.ennemis = _local4; application.enenemiLaser = _local5; _local3 = null; _local4 = null; _local5 = null; if (application.boss){ application.boss.destructor(); application.boss = null; }; this.removeChild(backg); backg = null; if (gamingMode == "SP"){ ouvrirMenu(); } else { ouvrirMenuMP(); }; this.removeEventListener(Event.ENTER_FRAME, tempMortJoueur); tempNumber = 0; }; }; tempNumber++; } private function eraseP2click(_arg1:MouseEvent){ if (QErase){ this.removeChild(QErase); QErase = null; }; QErase = new questionErase(); QErase.x = 163.3; QErase.y = 85.5; this.addChild(QErase); QErase.yesbtn.addEventListener(MouseEvent.CLICK, eraseYesMPclick); QErase.nobtn.addEventListener(MouseEvent.CLICK, eraseNoclick); } private function initMouse(_arg1:Event){ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; if (application.pause == false){ if (player1Control == "mouse"){ if ((((gamingMode == "SP")) || (aliveP1))){ _local4 = (mouseX - player1I.x); _local5 = (mouseY - player1I.y); _local6 = Math.atan(Math.abs((_local5 / _local4))); if ((((_local4 >= 0)) && ((_local5 >= 0)))){ _local2 = Math.cos(_local6); _local3 = Math.sin(_local6); } else { if ((((_local4 < 0)) && ((_local5 >= 0)))){ _local2 = Math.cos((Math.PI - _local6)); _local3 = Math.sin((Math.PI - _local6)); } else { if ((((_local4 < 0)) && ((_local5 < 0)))){ _local2 = Math.cos((Math.PI + _local6)); _local3 = Math.sin((Math.PI + _local6)); } else { _local2 = Math.cos((Math.PI + (Math.PI - _local6))); _local3 = Math.sin((Math.PI + (Math.PI - _local6))); }; }; }; if ((((player1I.x < ((mouseX - Math.abs((_local2 * P1Speed[P1Speedlvl]))) - 1))) || ((player1I.x > ((mouseX + Math.abs((_local2 * P1Speed[P1Speedlvl]))) + 1))))){ if (((((player1I.x + (_local2 * P1Speed[P1Speedlvl])) > (0 + (player1I.width / 2)))) && (((player1I.x + (_local2 * P1Speed[P1Speedlvl])) < (500 - (player1I.width / 2)))))){ player1I.x = (player1I.x + (_local2 * P1Speed[P1Speedlvl])); }; } else { if ((((mouseX > (0 + (player1I.width / 2)))) && ((mouseX < (500 - (player1I.width / 2)))))){ player1I.x = mouseX; } else { if (mouseX < (0 + (player1I.width / 2))){ player1I.x = (0 + (player1I.width / 2)); } else { if (mouseX > (500 - (player1I.width / 2))){ player1I.x = (500 - (player1I.width / 2)); }; }; }; }; if ((((player1I.y < ((mouseY - Math.abs((_local3 * P1Speed[P1Speedlvl]))) - 1))) || ((player1I.y > ((mouseY + Math.abs((_local3 * P1Speed[P1Speedlvl]))) + 1))))){ if (!((((((_local3 * P1Speed[P1Speedlvl]) < 0)) && ((application.inboss == true)))) && ((player1I.y < 200)))){ if (((((player1I.y + (_local3 * P1Speed[P1Speedlvl])) > (0 + (player1I.height / 2)))) && (((player1I.y + (_local3 * P1Speed[P1Speedlvl])) < (600 - (player1I.height / 2)))))){ player1I.y = (player1I.y + (_local3 * P1Speed[P1Speedlvl])); }; }; } else { if (!((((((_local3 * P1Speed[P1Speedlvl]) < 0)) && ((application.inboss == true)))) && ((player1I.y < 200)))){ if ((((mouseY > (0 + (player1I.height / 2)))) && ((mouseY < (600 - (player1I.height / 2)))))){ player1I.y = mouseY; } else { if (mouseY < (0 + (player1I.height / 2))){ player1I.y = (0 + (player1I.height / 2)); } else { if (mouseY > (600 - (player1I.height / 2))){ player1I.y = (600 - (player1I.height / 2)); }; }; }; }; }; }; }; if (player2Control == "mouse"){ if (aliveP2){ _local4 = (mouseX - player2I.x); _local5 = (mouseY - player2I.y); _local6 = Math.atan(Math.abs((_local5 / _local4))); if ((((_local4 >= 0)) && ((_local5 >= 0)))){ _local2 = Math.cos(_local6); _local3 = Math.sin(_local6); } else { if ((((_local4 < 0)) && ((_local5 >= 0)))){ _local2 = Math.cos((Math.PI - _local6)); _local3 = Math.sin((Math.PI - _local6)); } else { if ((((_local4 < 0)) && ((_local5 < 0)))){ _local2 = Math.cos((Math.PI + _local6)); _local3 = Math.sin((Math.PI + _local6)); } else { _local2 = Math.cos((Math.PI + (Math.PI - _local6))); _local3 = Math.sin((Math.PI + (Math.PI - _local6))); }; }; }; if ((((player2I.x < ((mouseX - Math.abs((_local2 * P2Speed[P2Speedlvl]))) - 1))) || ((player2I.x > ((mouseX + Math.abs((_local2 * P1Speed[P1Speedlvl]))) + 1))))){ if (((((player2I.x + (_local2 * P2Speed[P1Speedlvl])) > (0 + (player2I.width / 2)))) && (((player2I.x + (_local2 * P2Speed[P2Speedlvl])) < (500 - (player2I.width / 2)))))){ player2I.x = (player2I.x + (_local2 * P2Speed[P1Speedlvl])); }; } else { if ((((mouseX > (0 + (player2I.width / 2)))) && ((mouseX < (500 - (player2I.width / 2)))))){ player2I.x = mouseX; } else { if (mouseX < (0 + (player2I.width / 2))){ player2I.x = (0 + (player2I.width / 2)); } else { if (mouseX > (500 - (player2I.width / 2))){ player2I.x = (500 - (player2I.width / 2)); }; }; }; }; if ((((player2I.y < ((mouseY - Math.abs((_local3 * P1Speed[P1Speedlvl]))) - 1))) || ((player2I.y > ((mouseY + Math.abs((_local3 * P1Speed[P1Speedlvl]))) + 1))))){ if (!(((((((_local3 * P1Speed[P1Speedlvl]) * 2) < 0)) && ((application.inboss == true)))) && ((player2I.y < 200)))){ if (((((player2I.y + (_local3 * P1Speed[P1Speedlvl])) > (0 + (player2I.height / 2)))) && (((player2I.y + (_local3 * P1Speed[P1Speedlvl])) < (600 - (player2I.height / 2)))))){ player2I.y = (player2I.y + (_local3 * P1Speed[P1Speedlvl])); }; }; } else { if (!((((((_local3 * P1Speed[P1Speedlvl]) < 0)) && ((application.inboss == true)))) && ((player2I.y < 200)))){ if ((((mouseY > (0 + (player2I.height / 2)))) && ((mouseY < (600 - (player2I.height / 2)))))){ player2I.y = mouseY; } else { if (mouseY < (0 + (player2I.height / 2))){ player2I.y = (0 + (player2I.height / 2)); } else { if (mouseY > (600 - (player2I.height / 2))){ player2I.y = (600 - (player2I.height / 2)); }; }; }; }; }; }; }; }; } private function pausePause(_arg1:Event){ if (contPause == 15){ pauseOK = true; this.removeEventListener(Event.ENTER_FRAME, pausePause); } else { contPause++; }; } private function keyD(_arg1:KeyboardEvent){ if (application.pause == false){ if ((((_arg1.keyCode == Keyboard.SPACE)) && ((((player1Control == "keyboardAll")) || ((player1Control == "keyboard1")))))){ if (((aliveP1) || ((gamingMode == "SP")))){ creeWave("player1"); }; }; if ((((_arg1.keyCode == Keyboard.SPACE)) && ((((player2Control == "keyboardAll")) || ((player2Control == "keyboard1")))))){ if (((aliveP2) || ((gamingMode == "SP")))){ creeWave("player2"); }; }; if ((((_arg1.keyCode == 90)) && ((((player1Control == "keyboardAll")) || ((player1Control == "keyboard2")))))){ if (((aliveP1) || ((gamingMode == "SP")))){ creeWave("player1"); }; }; if ((((_arg1.keyCode == 90)) && ((((player2Control == "keyboardAll")) || ((player2Control == "keyboard2")))))){ if (((aliveP2) || ((gamingMode == "SP")))){ creeWave("player2"); }; }; }; if (_arg1.keyCode == 80){ if (pauseOK == true){ if (application.pause == false){ application.pause = true; transformSonMusic.volume = 0.1; if (!muteMusic){ if (musicDansIntro){ channelSonIntroMusic.soundTransform = transformSonMusic; } else { channelSonMusic.soundTransform = transformSonMusic; }; }; contPause = 0; pauseOK = false; backg.stop(); if (application.boss){ application.boss.stop(); }; niv.pauseGame(true); this.addEventListener(Event.ENTER_FRAME, pausePause); affichePause(); } else { unPause(); }; }; }; } private function killP1(){ var _local1:MortJoueur1 = new MortJoueur1(); _local1.x = player1I.x; _local1.y = player1I.y; player1I.destructor(); player1I = null; this.addChild(_local1); aliveP1 = false; if (player1Control == "mouse"){ this.removeEventListener(Event.ENTER_FRAME, initMouse); this.stage.removeEventListener(MouseEvent.CLICK, creeWaveCall); }; } public function updateCash(){ this.menu.cashtxt.text = ("Cash : " + cash); } public function clickMuteSound(_arg1:String){ muteSound = !(muteSound); if (_arg1 == "pause"){ if (muteSound){ xRouge = new xCouperSon(); xRouge.x = 250; xRouge.y = 335; this.addChild(xRouge); } else { this.removeChild(xRouge); xRouge = null; }; } else { if (_arg1 == "menu"){ if (muteSound){ xRouge = new xCouperSon(); xRouge.width = 30; xRouge.height = 30; xRouge.x = 414; xRouge.y = 16; this.addChild(xRouge); } else { this.removeChild(xRouge); xRouge = null; }; }; }; } private function killP2(){ var _local1:MortJoueur2 = new MortJoueur2(); _local1.x = player2I.x; _local1.y = player2I.y; player2I.destructor(); player2I = null; this.addChild(_local1); aliveP2 = false; if (player2Control == "mouse"){ this.removeEventListener(Event.ENTER_FRAME, initMouse); this.stage.removeEventListener(MouseEvent.CLICK, creeWaveCall); }; } private function initialisationBoutonMenuMP(_arg1:Event){ this.menu.frontLaserP1btn.gotoAndStop((P1FrontLaserLvl + 1)); this.menu.rearLaserP1btn.gotoAndStop((P1RearLaserLvl + 1)); this.menu.sideLaserP1btn.gotoAndStop((P1SideLaserLvl + 1)); this.menu.diaFrontLaserP1btn.gotoAndStop((P1DiaFrontLaserLvl + 1)); this.menu.diaRearLaserP1btn.gotoAndStop((P1DiaRearLaserLvl + 1)); this.menu.frontLaserP2btn.gotoAndStop((P2FrontLaserLvl + 1)); this.menu.rearLaserP2btn.gotoAndStop((P2RearLaserLvl + 1)); this.menu.sideLaserP2btn.gotoAndStop((P2SideLaserLvl + 1)); this.menu.diaFrontLaserP2btn.gotoAndStop((P2DiaFrontLaserLvl + 1)); this.menu.diaRearLaserP2btn.gotoAndStop((P2DiaRearLaserLvl + 1)); this.removeEventListener(Event.ENTER_FRAME, initialisationBoutonMenuMP); } private function eraseYesSPclick(_arg1:MouseEvent){ saveGame.data.saveSPCree = false; this.removeChild(QErase); QErase = null; } public function ouvrirMenu(){ sauvegarder("SP"); if (!introIsPlaying){ if (!muteMusic){ channelSonMenu = sonMenuSong.play(0, 1000, transformSonMenu); } else { channelSonMenu = sonMenuSong.play(0, 1000, transformSonMenuMute); }; }; introIsPlaying = true; menu = new interfaceMenu(); this.addChild(menu); this.addEventListener(Event.ENTER_FRAME, initialisationBoutonMenu); this.menu.cashtxt.text = ("Cash : " + cash); if (withoutHitArray[0]){ this.menu.lvl1btn.star.alpha = 1; }; if (withoutHitArray[1]){ this.menu.lvl2btn.star.alpha = 1; }; if (withoutHitArray[2]){ this.menu.lvl3btn.star.alpha = 1; }; if (withoutHitArray[3]){ this.menu.lvl4btn.star.alpha = 1; }; if (withoutHitArray[4]){ this.menu.lvl5btn.star.alpha = 1; }; if (withoutHitArray[5]){ this.menu.lvl6btn.star.alpha = 1; }; if (withoutHitArray[6]){ this.menu.lvl7btn.star.alpha = 1; }; if (withoutHitArray[7]){ this.menu.lvl8btn.star.alpha = 1; }; if (withoutHitArray[8]){ this.menu.lvl9btn.star.alpha = 1; }; if (withoutHitArray[9]){ this.menu.lvl10btn.star.alpha = 1; }; if (withoutHitArray[10]){ this.menu.lvlbonusbtn.star.alpha = 1; }; this.menu.resetP1btn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ cash = cashTotal; menu.cashtxt.text = ("Cash : " + cash); P1Lifelvl = 0; P1LaserPowerlvl = 0; P1FireRatelvl = 0; P1Speedlvl = 0; P1RepairBotlvl = 0; P1FrontLaserLvl = 1; P1SideLaserLvl = 0; P1RearLaserLvl = 0; P1DiaFrontLaserLvl = 0; P1DiaRearLaserLvl = 0; P1ReloadOndeLvl = 0; P1GrosseurOndeLvl = 0; P1MissileLvl = 0; menu.frontLaserP1btn.gotoAndStop(2); menu.rearLaserP1btn.gotoAndStop(1); menu.sideLaserP1btn.gotoAndStop(1); menu.diaFrontLaserP1btn.gotoAndStop(1); menu.diaRearLaserP1btn.gotoAndStop(1); }); codeBoutonMenu("SP"); } private function writeAchievement(){ this.pageAchi.txtDescriptionAchi.text = texteTempAchievement; } public function debutNiveau(_arg1:Number){ musicDansIntro = true; if (gamingMode == "SP"){ player2Control = "..."; }; if (muteMusic){ this.removeChild(xRougeM); xRougeM = null; }; if (muteSound){ this.removeChild(xRouge); xRouge = null; }; bossTue = false; this.stage.focus = this.stage; application.ingame = true; channelSonMenu.stop(); introIsPlaying = false; transformSonMusic.volume = 0.25; if (!muteMusic){ channelSonIntroMusic = sonIngameMusicIntro.play(0, 1, transformSonMusic); } else { channelSonIntroMusic = sonIngameMusicIntro.play(0, 1, transformSonMusicMute); }; this.addEventListener(Event.ENTER_FRAME, onAttenteIntroMusic); if (gamingMode == "MP"){ aliveP1 = true; aliveP2 = true; }; backg = new backgroundNiveau(); backg.x = 250; backg.y = 300; this.addChild(backg); player1I = new player1(P1FireRate[P1FireRatelvl], P1Speed[P1Speedlvl], P1FrontLaserLvl, P1SideLaserLvl, P1RearLaserLvl, P1DiaFrontLaserLvl, P1DiaRearLaserLvl, P1MissileLvl, player1Control); player1I.x = 250; player1I.y = 500; this.addChild(player1I); if (player1Control == "mouse"){ this.addEventListener(Event.ENTER_FRAME, initMouse); }; lifeBar1 = new lifeBar(P1Life[P1Lifelvl], P1RepairBot[P1RepairBotlvl]); lifeBar1.x = 10; lifeBar1.y = 25; this.addChild(lifeBar1); waveBar1 = new waveBar(P1ReloadOnde[P1ReloadOndeLvl]); waveBar1.x = 10; waveBar1.y = 135; this.addChild(waveBar1); if ((((player1Control == "mouse")) || ((player2Control == "mouse")))){ curseur = new cursorInGame(); curseur.x = mouseX; curseur.y = mouseY; this.addChild(curseur); Mouse.hide(); curseur.startDrag(); }; infoPause = new txtPause(); infoPause.x = 500; infoPause.y = 600; this.addChild(infoPause); if (gamingMode == "MP"){ nomlife1 = new nomLife1(); nomlife1.x = 8; nomlife1.y = 0; this.addChild(nomlife1); nomlife2 = new nomLife2(); nomlife2.x = 470; nomlife2.y = 0; this.addChild(nomlife2); player2I = new player2(P2FireRate[P2FireRatelvl], P2Speed[P2Speedlvl], P2FrontLaserLvl, P2SideLaserLvl, P2RearLaserLvl, P2DiaFrontLaserLvl, P2DiaRearLaserLvl, P2MissileLvl, player2Control); player2I.x = 250; player2I.y = 500; this.addChild(player2I); if (player2Control == "mouse"){ this.addEventListener(Event.ENTER_FRAME, initMouse); }; lifeBar2 = new lifeBar(P2Life[P2Lifelvl], P2RepairBot[P2RepairBotlvl]); lifeBar2.x = 474; lifeBar2.y = 25; this.addChild(lifeBar2); waveBar2 = new waveBar(P2ReloadOnde[P2ReloadOndeLvl]); waveBar2.x = 474; waveBar2.y = 135; this.addChild(waveBar2); }; txtCash = new cashIngame(cash); txtCash.x = 0; txtCash.y = 600; this.addChild(txtCash); txtCash.cash.text = ("Cash : " + cash); hitTaken = 0; application.bosslvl = false; switch (_arg1){ case 1: niv = new niveau1(); niveauEnCours = 1; break; case 2: niv = new niveau2(); niveauEnCours = 2; break; case 3: niv = new niveau3(); niveauEnCours = 3; break; case 4: niv = new niveau4(); niveauEnCours = 4; break; case 5: niv = new niveau5(); niveauEnCours = 5; break; case 6: niv = new niveau6(); niveauEnCours = 6; break; case 7: niv = new niveau7(); niveauEnCours = 7; break; case 8: niv = new niveau8(); niveauEnCours = 8; break; case 9: niv = new niveau9(); niveauEnCours = 9; break; case 10: niv = new niveau10(); niveauEnCours = 10; break; case 11: application.bosslvl = true; hitBonus = 0; niveauEnCours = 11; niv = new niveau11(); break; }; this.addChild(niv); this.addEventListener(Event.ENTER_FRAME, applicationEnterframe); this.stage.addEventListener(KeyboardEvent.KEY_DOWN, keyD); this.removeChild(menu); menu = null; if ((((player1Control == "mouse")) || ((player2Control == "mouse")))){ this.addEventListener(Event.ENTER_FRAME, tempDefensiveWave); }; application.indexBtn = 7; } public function mort(_arg1:Boolean){ var _local2:ecritureMort; if (_arg1){ _local2 = new ecritureMort(); _local2.x = 250; _local2.y = 300; this.addChild(_local2); _local2 = null; nombreMort++; } else { nombreExit++; }; application.ingame = false; application.inboss = false; this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyD); this.addEventListener(Event.ENTER_FRAME, tempMortJoueur); } private function ouvrirMenuControlSP(){ this.removeChild(tutomenu); tutomenu = null; interfaceControlSP = new controlChoiceSP(); this.addChild(interfaceControlSP); this.interfaceControlSP.keyControlbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ choixControlSP("keyboardAll"); }); this.interfaceControlSP.mouseControlbtn.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ choixControlSP("mouse"); }); } } }//package game.general
Section 37
//boutonMenu (game.general.boutonMenu) package game.general { import flash.display.*; import flash.events.*; public class boutonMenu extends MovieClip { public var star:MovieClip; public function boutonMenu(){ this.addEventListener(MouseEvent.MOUSE_OVER, overState); this.addEventListener(MouseEvent.MOUSE_OUT, outState); } private function outState(_arg1:MouseEvent){ this.gotoAndStop(1); } public function verifEtat(_arg1:Number, _arg2:Number){ if (_arg2 >= _arg1){ this.buttonMode = true; } else { this.enabled = false; this.alpha = 0.2; this.removeEventListener(MouseEvent.MOUSE_OVER, overState); this.removeEventListener(MouseEvent.MOUSE_OUT, outState); }; } private function overState(_arg1:MouseEvent){ this.gotoAndStop(2); } } }//package game.general
Section 38
//cashIngame (game.general.cashIngame) package game.general { import flash.display.*; import flash.events.*; import flash.text.*; public class cashIngame extends MovieClip { public var cash:TextField; var temp:Number;// = 0 var cashPlayer:Number; public function cashIngame(_arg1:Number){ cashPlayer = _arg1; this.addEventListener(Event.ENTER_FRAME, tempCash); } private function tempCash(_arg1:Event){ if (temp >= 1){ this.removeEventListener(Event.ENTER_FRAME, tempCash); } else { temp++; }; } public function destructor(){ this.parent.removeChild(this); } } }//package game.general
Section 39
//lifeBar (game.general.lifeBar) package game.general { import flash.display.*; import flash.events.*; public class lifeBar extends MovieClip { private var totalLife:Number;// = 10 public var hider:MovieClip; private var repairBot:Number; private var life:Number;// = 0 public function lifeBar(_arg1:Number, _arg2:Number){ totalLife = _arg1; repairBot = _arg2; hider.y = ((life / totalLife) * 100); this.addEventListener(Event.ENTER_FRAME, repairShip); } public function bigHit():Boolean{ if (life < totalLife){ life = (life + 3); }; hider.y = ((life / totalLife) * 100); if (life >= totalLife){ return (true); }; return (false); } private function repairShip(_arg1:Event){ if (application.pause == false){ if (life > 0){ this.life = (this.life - repairBot); }; hider.y = ((life / totalLife) * 100); }; } public function smallHit():Boolean{ if (life < totalLife){ life = (life + 1); }; hider.y = ((life / totalLife) * 100); if (life >= totalLife){ return (true); }; return (false); } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, repairShip); this.parent.removeChild(this); } public function updateBot(_arg1){ repairBot = _arg1; } } }//package game.general
Section 40
//player (game.general.player) package game.general { import flash.display.*; import flash.events.*; import flash.ui.*; public class player extends MovieClip { private var versBas:Boolean;// = false private var temp:Number;// = 0 private var controlPlayer:String; private var versDroite:Boolean;// = false private var versHaut:Boolean;// = false private var versGauche:Boolean;// = false private var moveSpeed:Number; public function player(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:String){ controlPlayer = _arg9; if (_arg9 == "keyboardAll"){ this.addEventListener(Event.ENTER_FRAME, this.initKeyboardAll); } else { if (_arg9 == "keyboard1"){ this.addEventListener(Event.ENTER_FRAME, this.initKeyboard1); } else { if (_arg9 == "keyboard2"){ this.addEventListener(Event.ENTER_FRAME, this.initKeyboard2); }; }; }; this.moveSpeed = _arg2; } private function initKeyboardAll(_arg1:Event){ if (temp == 1){ this.stage.addEventListener(KeyboardEvent.KEY_DOWN, this.keyDAll); this.stage.addEventListener(KeyboardEvent.KEY_UP, this.keyUAll); temp = 0; this.removeEventListener(Event.ENTER_FRAME, this.initKeyboardAll); } else { temp = 1; }; } private function moveRight(_arg1:Event){ if (application.pause == false){ if ((this.x + moveSpeed) < (500 - (this.width / 2))){ if (((versHaut) || (versBas))){ this.x = (this.x + (0.707 * moveSpeed)); } else { this.x = (this.x + moveSpeed); }; } else { this.x = (500 - (this.width / 2)); }; if ((((application.inboss == true)) && ((this.y < 200)))){ this.y = (this.y + moveSpeed); }; }; } private function keyD1(_arg1:KeyboardEvent){ if (_arg1.keyCode == Keyboard.RIGHT){ this.addEventListener(Event.ENTER_FRAME, this.moveRight); }; if (_arg1.keyCode == Keyboard.LEFT){ this.addEventListener(Event.ENTER_FRAME, this.moveLeft); }; if (_arg1.keyCode == Keyboard.UP){ this.addEventListener(Event.ENTER_FRAME, this.moveUp); }; if (_arg1.keyCode == Keyboard.DOWN){ this.addEventListener(Event.ENTER_FRAME, this.moveDown); }; } private function keyD2(_arg1:KeyboardEvent){ if (_arg1.keyCode == 68){ this.addEventListener(Event.ENTER_FRAME, this.moveRight); }; if (_arg1.keyCode == 65){ this.addEventListener(Event.ENTER_FRAME, this.moveLeft); }; if (_arg1.keyCode == 87){ this.addEventListener(Event.ENTER_FRAME, this.moveUp); }; if (_arg1.keyCode == 83){ this.addEventListener(Event.ENTER_FRAME, this.moveDown); }; } private function moveUp(_arg1:Event){ if (application.pause == false){ if (application.inboss == false){ if ((this.y - moveSpeed) > (0 + (this.height / 2))){ if (((versGauche) || (versDroite))){ this.y = (this.y - (0.707 * moveSpeed)); } else { this.y = (this.y - moveSpeed); }; } else { this.y = (0 + (this.height / 2)); }; } else { if ((this.y - moveSpeed) > 200){ if (((versGauche) || (versDroite))){ this.y = (this.y - (0.707 * moveSpeed)); } else { this.y = (this.y - moveSpeed); }; } else { this.y = 200; }; }; }; } private function moveDown(_arg1:Event){ if (application.pause == false){ if ((this.y + moveSpeed) < (600 - (this.height / 2))){ if (((versGauche) || (versDroite))){ this.y = (this.y + (0.707 * moveSpeed)); } else { this.y = (this.y + moveSpeed); }; } else { this.y = (600 - (this.height / 2)); }; }; } private function keyU1(_arg1:KeyboardEvent){ if (_arg1.keyCode == Keyboard.RIGHT){ this.removeEventListener(Event.ENTER_FRAME, this.moveRight); }; if (_arg1.keyCode == Keyboard.LEFT){ this.removeEventListener(Event.ENTER_FRAME, this.moveLeft); }; if (_arg1.keyCode == Keyboard.UP){ this.removeEventListener(Event.ENTER_FRAME, this.moveUp); }; if (_arg1.keyCode == Keyboard.DOWN){ this.removeEventListener(Event.ENTER_FRAME, this.moveDown); }; } private function keyDAll(_arg1:KeyboardEvent){ if ((((_arg1.keyCode == Keyboard.RIGHT)) || ((_arg1.keyCode == 68)))){ this.addEventListener(Event.ENTER_FRAME, this.moveRight); versDroite = true; }; if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == 65)))){ this.addEventListener(Event.ENTER_FRAME, this.moveLeft); versGauche = true; }; if ((((_arg1.keyCode == Keyboard.UP)) || ((_arg1.keyCode == 87)))){ this.addEventListener(Event.ENTER_FRAME, this.moveUp); versHaut = true; }; if ((((_arg1.keyCode == Keyboard.DOWN)) || ((_arg1.keyCode == 83)))){ this.addEventListener(Event.ENTER_FRAME, this.moveDown); versBas = true; }; } private function keyU2(_arg1:KeyboardEvent){ if (_arg1.keyCode == 68){ this.removeEventListener(Event.ENTER_FRAME, this.moveRight); }; if (_arg1.keyCode == 65){ this.removeEventListener(Event.ENTER_FRAME, this.moveLeft); }; if (_arg1.keyCode == 87){ this.removeEventListener(Event.ENTER_FRAME, this.moveUp); }; if (_arg1.keyCode == 83){ this.removeEventListener(Event.ENTER_FRAME, this.moveDown); }; } private function keyUAll(_arg1:KeyboardEvent){ if ((((_arg1.keyCode == Keyboard.RIGHT)) || ((_arg1.keyCode == 68)))){ this.removeEventListener(Event.ENTER_FRAME, this.moveRight); versDroite = false; }; if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == 65)))){ this.removeEventListener(Event.ENTER_FRAME, this.moveLeft); versGauche = false; }; if ((((_arg1.keyCode == Keyboard.UP)) || ((_arg1.keyCode == 87)))){ this.removeEventListener(Event.ENTER_FRAME, this.moveUp); versHaut = false; }; if ((((_arg1.keyCode == Keyboard.DOWN)) || ((_arg1.keyCode == 83)))){ this.removeEventListener(Event.ENTER_FRAME, this.moveDown); versBas = false; }; } private function moveLeft(_arg1:Event){ if (application.pause == false){ if ((this.x - moveSpeed) > (0 + (this.width / 2))){ if (((versHaut) || (versBas))){ this.x = (this.x - (0.707 * moveSpeed)); } else { this.x = (this.x - moveSpeed); }; } else { this.x = (0 + (this.width / 2)); }; if ((((application.inboss == true)) && ((this.y < 200)))){ this.y = (this.y + moveSpeed); }; }; } public function destructor(){ if (controlPlayer == "keyboardAll"){ this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, this.keyDAll); this.stage.removeEventListener(KeyboardEvent.KEY_UP, this.keyUAll); } else { if (controlPlayer == "keyboard1"){ this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, this.keyD1); this.stage.removeEventListener(KeyboardEvent.KEY_UP, this.keyU1); } else { if (controlPlayer == "keyboard2"){ this.stage.removeEventListener(KeyboardEvent.KEY_DOWN, this.keyD2); this.stage.removeEventListener(KeyboardEvent.KEY_UP, this.keyU2); }; }; }; this.removeEventListener(Event.ENTER_FRAME, this.moveRight); this.removeEventListener(Event.ENTER_FRAME, this.moveLeft); this.removeEventListener(Event.ENTER_FRAME, this.moveUp); this.removeEventListener(Event.ENTER_FRAME, this.moveDown); this.parent.removeChild(this); } private function initKeyboard1(_arg1:Event){ if (temp == 1){ this.stage.addEventListener(KeyboardEvent.KEY_DOWN, this.keyD1); this.stage.addEventListener(KeyboardEvent.KEY_UP, this.keyU1); temp = 0; this.removeEventListener(Event.ENTER_FRAME, this.initKeyboard1); } else { temp = 1; }; } private function initKeyboard2(_arg1:Event){ if (temp == 1){ this.stage.addEventListener(KeyboardEvent.KEY_DOWN, this.keyD2); this.stage.addEventListener(KeyboardEvent.KEY_UP, this.keyU2); temp = 0; this.removeEventListener(Event.ENTER_FRAME, this.initKeyboard2); } else { temp = 1; }; } } }//package game.general
Section 41
//player1 (game.general.player1) package game.general { import flash.display.*; import flash.events.*; import flash.media.*; import game.projectile.*; public class player1 extends player { public var FrontLaserLvl:Number; private var channelSon1:SoundChannel; public var hitB:MovieClip; public var DiaRearLaserLvl:Number; private var sonFL:fLaserTir; public var DiaFrontLaserLvl:Number; public var missileOn:Number; private var shootingSpeed:Number; public var SideLaserLvl:Number; private var contShootingMissile:Number;// = 0 private var transformSon1:SoundTransform; private var contShooting:Number;// = 0 public var RearLaserLvl:Number; public function player1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:String){ sonFL = new fLaserTir(); super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9); this.addEventListener(Event.ENTER_FRAME, this.shoot); this.shootingSpeed = _arg1; FrontLaserLvl = _arg3; SideLaserLvl = _arg4; RearLaserLvl = _arg5; DiaFrontLaserLvl = _arg6; DiaRearLaserLvl = _arg7; missileOn = _arg8; } public function shoot(_arg1:Event){ var _local2:missileP1; var _local3:P1Laser1; var _local4:Array; var _local5:*; if (application.pause == false){ if (missileOn > 0){ if (contShootingMissile >= 60){ _local2 = new missileP1(); _local2.x = (this.x + (this.width / 2)); _local2.y = this.y; this.parent.addChild(_local2); application.friendlyLaser.push(_local2); _local2 = null; _local2 = new missileP1(); _local2.x = (this.x - (this.width / 2)); _local2.y = this.y; this.parent.addChild(_local2); application.friendlyLaser.push(_local2); _local2 = null; contShootingMissile = 0; } else { contShootingMissile++; }; }; if (contShooting >= shootingSpeed){ if (!Object(this.parent).muteSound){ transformSon1 = new SoundTransform(0.1, 0); channelSon1 = sonFL.play(); channelSon1.soundTransform = transformSon1; }; _local4 = new Array(); switch (FrontLaserLvl){ case 1: _local4.push({x:this.x, y:((this.y - (this.height / 2)) - 5)}); break; case 2: _local4.push({x:(this.x + (this.width / 4)), y:((this.y - (this.height / 2)) - 5)}); _local4.push({x:(this.x - (this.width / 4)), y:((this.y - (this.height / 2)) - 5)}); break; case 3: _local4.push({x:this.x, y:((this.y - (this.height / 2)) - 5)}); _local4.push({x:(this.x - (this.width / 4)), y:(this.y - (this.height / 2))}); _local4.push({x:(this.x + (this.width / 4)), y:(this.y - (this.height / 2))}); break; case 4: _local4.push({x:(this.x + (this.width / 7)), y:((this.y - (this.height / 2)) - 5)}); _local4.push({x:(this.x - (this.width / 7)), y:((this.y - (this.height / 2)) - 5)}); _local4.push({x:(this.x + (this.width / 2.5)), y:(this.y - (this.height / 2))}); _local4.push({x:(this.x - (this.width / 2.5)), y:(this.y - (this.height / 2))}); break; }; for each (_local5 in _local4) { _local3 = new P1Laser1(0, -1, 0); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; if (SideLaserLvl > 0){ switch (SideLaserLvl){ case 1: _local4.push({x:((this.x + (this.width / 2)) + 5), y:this.y}); break; case 2: _local4.push({x:((this.x + (this.width / 2)) + 5), y:(this.y + (this.height / 6))}); _local4.push({x:((this.x + (this.width / 2)) + 5), y:(this.y - (this.height / 6))}); break; case 3: _local4.push({x:((this.x + (this.width / 2)) + 5), y:this.y}); _local4.push({x:(this.x + (this.width / 2)), y:(this.y + (this.height / 4))}); _local4.push({x:(this.x + (this.width / 2)), y:(this.y - (this.height / 4))}); break; case 4: _local4.push({x:((this.x + (this.width / 2)) + 5), y:(this.y + (this.height / 8))}); _local4.push({x:((this.x + (this.width / 2)) + 5), y:(this.y - (this.height / 8))}); _local4.push({x:(this.x + (this.width / 2)), y:(this.y + (this.height / 3))}); _local4.push({x:(this.x + (this.width / 2)), y:(this.y - (this.height / 3))}); break; }; for each (_local5 in _local4) { _local3 = new P1Laser1(1, 0, 90); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; switch (SideLaserLvl){ case 1: _local4.push({x:((this.x - (this.width / 2)) - 5), y:this.y}); break; case 2: _local4.push({x:((this.x - (this.width / 2)) - 5), y:(this.y + (this.height / 6))}); _local4.push({x:((this.x - (this.width / 2)) - 5), y:(this.y - (this.height / 6))}); break; case 3: _local4.push({x:((this.x - (this.width / 2)) - 5), y:this.y}); _local4.push({x:(this.x - (this.width / 2)), y:(this.y + (this.height / 4))}); _local4.push({x:(this.x - (this.width / 2)), y:(this.y - (this.height / 4))}); break; case 4: _local4.push({x:((this.x - (this.width / 2)) - 5), y:(this.y + (this.height / 8))}); _local4.push({x:((this.x - (this.width / 2)) - 5), y:(this.y - (this.height / 8))}); _local4.push({x:(this.x - (this.width / 2)), y:(this.y + (this.height / 3))}); _local4.push({x:(this.x - (this.width / 2)), y:(this.y - (this.height / 3))}); break; }; for each (_local5 in _local4) { _local3 = new P1Laser1(-1, 0, -90); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; }; if (RearLaserLvl > 0){ switch (RearLaserLvl){ case 1: _local4.push({x:this.x, y:((this.y + (this.height / 2)) + 5)}); break; case 2: _local4.push({x:(this.x + (this.width / 4)), y:((this.y + (this.height / 2)) + 5)}); _local4.push({x:(this.x - (this.width / 4)), y:((this.y + (this.height / 2)) + 5)}); break; case 3: _local4.push({x:this.x, y:((this.y + (this.height / 2)) + 5)}); _local4.push({x:(this.x - (this.width / 4)), y:(this.y + (this.height / 2))}); _local4.push({x:(this.x + (this.width / 4)), y:(this.y + (this.height / 2))}); break; case 4: _local4.push({x:(this.x + (this.width / 7)), y:((this.y + (this.height / 2)) + 5)}); _local4.push({x:(this.x - (this.width / 7)), y:((this.y + (this.height / 2)) + 5)}); _local4.push({x:(this.x + (this.width / 2.5)), y:(this.y + (this.height / 2))}); _local4.push({x:(this.x - (this.width / 2.5)), y:(this.y + (this.height / 2))}); break; }; for each (_local5 in _local4) { _local3 = new P1Laser1(0, 1, 180); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; }; if (DiaFrontLaserLvl > 0){ switch (DiaFrontLaserLvl){ case 1: _local4.push({x:(this.x + (this.width / 2)), y:(this.y - (this.height / 2))}); break; case 2: _local4.push({x:((this.x + (this.width / 2)) + 3), y:((this.y - (this.height / 2)) + 3)}); _local4.push({x:((this.x + (this.width / 2)) - 3), y:((this.y - (this.height / 2)) - 3)}); break; }; for each (_local5 in _local4) { _local3 = new P1Laser1(0.5, -0.5, 45); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; switch (DiaFrontLaserLvl){ case 1: _local4.push({x:(this.x - (this.width / 2)), y:(this.y - (this.height / 2))}); break; case 2: _local4.push({x:((this.x - (this.width / 2)) - 3), y:((this.y - (this.height / 2)) + 3)}); _local4.push({x:((this.x - (this.width / 2)) + 3), y:((this.y - (this.height / 2)) - 3)}); break; }; for each (_local5 in _local4) { _local3 = new P1Laser1(-0.5, -0.5, -45); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; }; if (DiaRearLaserLvl > 0){ switch (DiaRearLaserLvl){ case 1: _local4.push({x:(this.x + (this.width / 2)), y:(this.y + (this.height / 2))}); break; case 2: _local4.push({x:((this.x + (this.width / 2)) + 3), y:((this.y + (this.height / 2)) - 3)}); _local4.push({x:((this.x + (this.width / 2)) - 3), y:((this.y + (this.height / 2)) + 3)}); break; }; for each (_local5 in _local4) { _local3 = new P1Laser1(0.5, 0.5, 135); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; switch (DiaRearLaserLvl){ case 1: _local4.push({x:(this.x - (this.width / 2)), y:(this.y + (this.height / 2))}); break; case 2: _local4.push({x:((this.x - (this.width / 2)) - 3), y:((this.y + (this.height / 2)) - 3)}); _local4.push({x:((this.x - (this.width / 2)) + 3), y:((this.y + (this.height / 2)) + 3)}); break; }; for each (_local5 in _local4) { _local3 = new P1Laser1(-0.5, 0.5, -135); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; }; _local4 = null; contShooting = 0; } else { contShooting++; }; }; } override public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, this.shoot); super.destructor(); } } }//package game.general
Section 42
//player2 (game.general.player2) package game.general { import flash.display.*; import flash.events.*; import flash.media.*; import game.projectile.*; public class player2 extends player { public var FrontLaserLvl:Number; private var channelSon1:SoundChannel; public var hitB:MovieClip; public var DiaRearLaserLvl:Number; private var sonFL:fLaserTir; public var DiaFrontLaserLvl:Number; public var missileOn:Number; private var shootingSpeed:Number; public var SideLaserLvl:Number; private var contShootingMissile:Number;// = 0 private var transformSon1:SoundTransform; private var contShooting:Number;// = 0 public var RearLaserLvl:Number; public function player2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:String){ sonFL = new fLaserTir(); super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9); this.addEventListener(Event.ENTER_FRAME, this.shoot); this.shootingSpeed = _arg1; FrontLaserLvl = _arg3; SideLaserLvl = _arg4; RearLaserLvl = _arg5; DiaFrontLaserLvl = _arg6; DiaRearLaserLvl = _arg7; missileOn = _arg8; } public function shoot(_arg1:Event){ var _local2:missileP2; var _local3:P2Laser1; var _local4:Array; var _local5:*; if (application.pause == false){ if (missileOn > 0){ if (contShootingMissile >= 60){ _local2 = new missileP2(); _local2.x = (this.x + (this.width / 2)); _local2.y = this.y; this.parent.addChild(_local2); application.friendlyLaser.push(_local2); _local2 = null; _local2 = new missileP2(); _local2.x = (this.x - (this.width / 2)); _local2.y = this.y; this.parent.addChild(_local2); application.friendlyLaser.push(_local2); _local2 = null; contShootingMissile = 0; } else { contShootingMissile++; }; }; if (contShooting >= shootingSpeed){ if (!Object(this.parent).muteSound){ transformSon1 = new SoundTransform(0.1, 0); channelSon1 = sonFL.play(); channelSon1.soundTransform = transformSon1; }; _local4 = new Array(); switch (FrontLaserLvl){ case 1: _local4.push({x:this.x, y:((this.y - (this.height / 2)) - 5)}); break; case 2: _local4.push({x:(this.x + (this.width / 4)), y:((this.y - (this.height / 2)) - 5)}); _local4.push({x:(this.x - (this.width / 4)), y:((this.y - (this.height / 2)) - 5)}); break; case 3: _local4.push({x:this.x, y:((this.y - (this.height / 2)) - 5)}); _local4.push({x:(this.x - (this.width / 4)), y:(this.y - (this.height / 2))}); _local4.push({x:(this.x + (this.width / 4)), y:(this.y - (this.height / 2))}); break; case 4: _local4.push({x:(this.x + (this.width / 7)), y:((this.y - (this.height / 2)) - 5)}); _local4.push({x:(this.x - (this.width / 7)), y:((this.y - (this.height / 2)) - 5)}); _local4.push({x:(this.x + (this.width / 2.5)), y:(this.y - (this.height / 2))}); _local4.push({x:(this.x - (this.width / 2.5)), y:(this.y - (this.height / 2))}); break; }; for each (_local5 in _local4) { _local3 = new P2Laser1(0, -1, 0); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; if (SideLaserLvl > 0){ switch (SideLaserLvl){ case 1: _local4.push({x:((this.x + (this.width / 2)) + 5), y:this.y}); break; case 2: _local4.push({x:((this.x + (this.width / 2)) + 5), y:(this.y + (this.height / 6))}); _local4.push({x:((this.x + (this.width / 2)) + 5), y:(this.y - (this.height / 6))}); break; case 3: _local4.push({x:((this.x + (this.width / 2)) + 5), y:this.y}); _local4.push({x:(this.x + (this.width / 2)), y:(this.y + (this.height / 4))}); _local4.push({x:(this.x + (this.width / 2)), y:(this.y - (this.height / 4))}); break; case 4: _local4.push({x:((this.x + (this.width / 2)) + 5), y:(this.y + (this.height / 8))}); _local4.push({x:((this.x + (this.width / 2)) + 5), y:(this.y - (this.height / 8))}); _local4.push({x:(this.x + (this.width / 2)), y:(this.y + (this.height / 3))}); _local4.push({x:(this.x + (this.width / 2)), y:(this.y - (this.height / 3))}); break; }; for each (_local5 in _local4) { _local3 = new P2Laser1(1, 0, 90); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; switch (SideLaserLvl){ case 1: _local4.push({x:((this.x - (this.width / 2)) - 5), y:this.y}); break; case 2: _local4.push({x:((this.x - (this.width / 2)) - 5), y:(this.y + (this.height / 6))}); _local4.push({x:((this.x - (this.width / 2)) - 5), y:(this.y - (this.height / 6))}); break; case 3: _local4.push({x:((this.x - (this.width / 2)) - 5), y:this.y}); _local4.push({x:(this.x - (this.width / 2)), y:(this.y + (this.height / 4))}); _local4.push({x:(this.x - (this.width / 2)), y:(this.y - (this.height / 4))}); break; case 4: _local4.push({x:((this.x - (this.width / 2)) - 5), y:(this.y + (this.height / 8))}); _local4.push({x:((this.x - (this.width / 2)) - 5), y:(this.y - (this.height / 8))}); _local4.push({x:(this.x - (this.width / 2)), y:(this.y + (this.height / 3))}); _local4.push({x:(this.x - (this.width / 2)), y:(this.y - (this.height / 3))}); break; }; for each (_local5 in _local4) { _local3 = new P2Laser1(-1, 0, -90); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; }; if (RearLaserLvl > 0){ switch (RearLaserLvl){ case 1: _local4.push({x:this.x, y:((this.y + (this.height / 2)) + 5)}); break; case 2: _local4.push({x:(this.x + (this.width / 4)), y:((this.y + (this.height / 2)) + 5)}); _local4.push({x:(this.x - (this.width / 4)), y:((this.y + (this.height / 2)) + 5)}); break; case 3: _local4.push({x:this.x, y:((this.y + (this.height / 2)) + 5)}); _local4.push({x:(this.x - (this.width / 4)), y:(this.y + (this.height / 2))}); _local4.push({x:(this.x + (this.width / 4)), y:(this.y + (this.height / 2))}); break; case 4: _local4.push({x:(this.x + (this.width / 7)), y:((this.y + (this.height / 2)) + 5)}); _local4.push({x:(this.x - (this.width / 7)), y:((this.y + (this.height / 2)) + 5)}); _local4.push({x:(this.x + (this.width / 2.5)), y:(this.y + (this.height / 2))}); _local4.push({x:(this.x - (this.width / 2.5)), y:(this.y + (this.height / 2))}); break; }; for each (_local5 in _local4) { _local3 = new P2Laser1(0, 1, 180); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; }; if (DiaFrontLaserLvl > 0){ switch (DiaFrontLaserLvl){ case 1: _local4.push({x:(this.x + (this.width / 2)), y:(this.y - (this.height / 2))}); break; case 2: _local4.push({x:((this.x + (this.width / 2)) + 3), y:((this.y - (this.height / 2)) + 3)}); _local4.push({x:((this.x + (this.width / 2)) - 3), y:((this.y - (this.height / 2)) - 3)}); break; }; for each (_local5 in _local4) { _local3 = new P2Laser1(0.5, -0.5, 45); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; switch (DiaFrontLaserLvl){ case 1: _local4.push({x:(this.x - (this.width / 2)), y:(this.y - (this.height / 2))}); break; case 2: _local4.push({x:((this.x - (this.width / 2)) - 3), y:((this.y - (this.height / 2)) + 3)}); _local4.push({x:((this.x - (this.width / 2)) + 3), y:((this.y - (this.height / 2)) - 3)}); break; }; for each (_local5 in _local4) { _local3 = new P2Laser1(-0.5, -0.5, -45); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; }; if (DiaRearLaserLvl > 0){ switch (DiaRearLaserLvl){ case 1: _local4.push({x:(this.x + (this.width / 2)), y:(this.y + (this.height / 2))}); break; case 2: _local4.push({x:((this.x + (this.width / 2)) + 3), y:((this.y + (this.height / 2)) - 3)}); _local4.push({x:((this.x + (this.width / 2)) - 3), y:((this.y + (this.height / 2)) + 3)}); break; }; for each (_local5 in _local4) { _local3 = new P2Laser1(0.5, 0.5, 135); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; switch (DiaRearLaserLvl){ case 1: _local4.push({x:(this.x - (this.width / 2)), y:(this.y + (this.height / 2))}); break; case 2: _local4.push({x:((this.x - (this.width / 2)) - 3), y:((this.y + (this.height / 2)) - 3)}); _local4.push({x:((this.x - (this.width / 2)) + 3), y:((this.y + (this.height / 2)) + 3)}); break; }; for each (_local5 in _local4) { _local3 = new P2Laser1(-0.5, 0.5, -135); _local3.x = _local5.x; _local3.y = _local5.y; this.parent.addChild(_local3); application.friendlyLaser.push(_local3); _local3 = null; }; _local4.length = 0; }; _local4 = null; contShooting = 0; } else { contShooting++; }; }; } override public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, this.shoot); super.destructor(); } } }//package game.general
Section 43
//waveBar (game.general.waveBar) package game.general { import flash.display.*; import flash.events.*; public class waveBar extends MovieClip { public var hider:MovieClip; private var reloadTime:Number; private var compteur:Number; public function waveBar(_arg1:Number){ reloadTime = _arg1; hider.y = 0; compteur = 0; this.addEventListener(Event.ENTER_FRAME, recharge); } public function waveShot(){ compteur = reloadTime; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, recharge); this.parent.removeChild(this); } private function recharge(_arg1:Event){ if (application.pause == false){ if (compteur > 0){ compteur--; hider.y = ((compteur / reloadTime) * 100); }; }; } } }//package game.general
Section 44
//autoBas (game.niveaux.automatisme.autoBas) package game.niveaux.automatisme { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; public class autoBas extends MovieClip { private const frameSec:Number = 30; private var nombreDroite:Number;// = 0 private var typeTir:String;// = "regular" private var nombreGauche:Number;// = 0 private var memeTemps:Boolean;// = false private var eMoveSpeed:Number;// = 0 private var nombreTir:Number;// = 1 private var compteur:Number;// = 1 private var finAuto:Number;// = 60 private var positionDroite:Number;// = 450 private var compteurTotal:Number;// = 0 private var intervaleEnnemi:Number;// = 30 private var eShootSpeed:Number;// = 0 private var positionGauche:Number;// = 50 private var trajectoireD:String;// = "regular" private var trajectoireG:String;// = "regular" public function autoBas(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String, _arg6:String, _arg7:Boolean, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number, _arg12:String, _arg13:String){ nombreDroite = _arg2; nombreGauche = _arg1; positionDroite = _arg4; positionGauche = _arg3; trajectoireD = _arg6; trajectoireG = _arg5; memeTemps = _arg7; intervaleEnnemi = (_arg8 * frameSec); if (memeTemps){ finAuto = ((nombreDroite * intervaleEnnemi) + 1); } else { finAuto = (((nombreDroite + nombreGauche) * intervaleEnnemi) + 1); }; eMoveSpeed = _arg9; eShootSpeed = _arg10; nombreTir = _arg11; typeTir = _arg13; compteur = (intervaleEnnemi - 1); compteurTotal = compteur; if (_arg12 == "vSmall1"){ this.addEventListener(Event.ENTER_FRAME, this.beginVSmall1); } else { if (_arg12 == "small1"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall1); } else { if (_arg12 == "small2"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall2); } else { if (_arg12 == "small3"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall3); } else { if (_arg12 == "small4"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall4); } else { if (_arg12 == "small5"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall5); } else { if (_arg12 == "medium1"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium1); } else { if (_arg12 == "medium2"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium2); } else { if (_arg12 == "medium3"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium3); } else { if (_arg12 == "miniBoss1"){ this.addEventListener(Event.ENTER_FRAME, this.beginMiniBoss1); } else { if (_arg12 == "miniBoss2"){ this.addEventListener(Event.ENTER_FRAME, this.beginMiniBoss2); }; }; }; }; }; }; }; }; }; }; }; } private function beginSmall1(_arg1:Event){ var _local2:smallEnnemi1; var _local3:smallEnnemi1; var _local4:smallEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall1); this.parent.removeChild(this); }; }; } private function beginSmall5(_arg1:Event){ var _local2:smallEnnemi5; var _local3:smallEnnemi5; var _local4:smallEnnemi5; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi5(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi5(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi5(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi5(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall5); this.parent.removeChild(this); }; }; } private function beginSmall3(_arg1:Event){ var _local2:smallEnnemi3; var _local3:smallEnnemi3; var _local4:smallEnnemi3; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi3(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi3(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi3(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi3(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall3); this.parent.removeChild(this); }; }; } private function beginSmall2(_arg1:Event){ var _local2:smallEnnemi2; var _local3:smallEnnemi2; var _local4:smallEnnemi2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall2); this.parent.removeChild(this); }; }; } private function beginMedium1(_arg1:Event){ var _local2:mediumEnnemi1; var _local3:mediumEnnemi1; var _local4:mediumEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new mediumEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new mediumEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium1); this.parent.removeChild(this); }; }; } private function beginSmall4(_arg1:Event){ var _local2:smallEnnemi4; var _local3:smallEnnemi4; var _local4:smallEnnemi4; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi4(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi4(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi4(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi4(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall4); this.parent.removeChild(this); }; }; } private function beginMiniBoss2(_arg1:Event){ var _local2:miniBoss2; var _local3:miniBoss2; var _local4:miniBoss2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new miniBoss2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new miniBoss2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new miniBoss2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new miniBoss2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMiniBoss2); this.parent.removeChild(this); }; }; } private function beginMedium3(_arg1:Event){ var _local2:mediumEnnemi3; var _local3:mediumEnnemi3; var _local4:mediumEnnemi3; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi3(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi3(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new mediumEnnemi3(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new mediumEnnemi3(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium3); this.parent.removeChild(this); }; }; } private function beginVSmall1(_arg1:Event){ var _local2:vSmallEnnemi1; var _local3:vSmallEnnemi1; var _local4:vSmallEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new vSmallEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new vSmallEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new vSmallEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new vSmallEnnemi1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginVSmall1); this.parent.removeChild(this); }; }; } private function beginMedium2(_arg1:Event){ var _local2:mediumEnnemi2; var _local3:mediumEnnemi2; var _local4:mediumEnnemi2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new mediumEnnemi2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new mediumEnnemi2(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium2); this.parent.removeChild(this); }; }; } private function beginMiniBoss1(_arg1:Event){ var _local2:miniBoss1; var _local3:miniBoss1; var _local4:miniBoss1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new miniBoss1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); _local2.x = positionGauche; _local2.y = (600 + (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new miniBoss1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); _local3.x = positionDroite; _local3.y = (600 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new miniBoss1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireD, typeTir, "haut", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new miniBoss1(0, -1, eMoveSpeed, 180, eShootSpeed, nombreTir, trajectoireG, typeTir, "haut", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (600 + (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMiniBoss1); this.parent.removeChild(this); }; }; } } }//package game.niveaux.automatisme
Section 45
//autoCote (game.niveaux.automatisme.autoCote) package game.niveaux.automatisme { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; public class autoCote extends MovieClip { private const frameSec:Number = 30; private var nombreDroite:Number;// = 0 private var typeTir:String;// = "regular" private var nombreGauche:Number;// = 0 private var memeTemps:Boolean;// = false private var eMoveSpeed:Number;// = 0 private var nombreTir:Number;// = 1 private var compteur:Number;// = 0 private var finAuto:Number;// = 60 private var positionDroite:Number;// = 50 private var compteurTotal:Number;// = 0 private var intervaleEnnemi:Number;// = 30 private var eShootSpeed:Number;// = 0 private var positionGauche:Number;// = 50 private var trajectoireD:String;// = "regular" private var trajectoireG:String;// = "regular" public function autoCote(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String, _arg6:String, _arg7:Boolean, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number, _arg12:String, _arg13:String){ nombreDroite = _arg2; nombreGauche = _arg1; positionDroite = _arg4; positionGauche = _arg3; trajectoireD = _arg6; trajectoireG = _arg5; memeTemps = _arg7; intervaleEnnemi = (_arg8 * frameSec); if (memeTemps){ finAuto = ((nombreDroite * intervaleEnnemi) + 1); } else { finAuto = (((nombreDroite + nombreGauche) * intervaleEnnemi) + 1); }; eMoveSpeed = _arg9; eShootSpeed = _arg10; nombreTir = _arg11; typeTir = _arg13; compteur = (intervaleEnnemi - 1); compteurTotal = compteur; if (_arg12 == "vSmall1"){ this.addEventListener(Event.ENTER_FRAME, this.beginVSmall1); } else { if (_arg12 == "small1"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall1); } else { if (_arg12 == "small2"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall2); } else { if (_arg12 == "small3"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall3); } else { if (_arg12 == "small4"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall4); } else { if (_arg12 == "small5"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall5); } else { if (_arg12 == "medium1"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium1); } else { if (_arg12 == "medium2"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium2); } else { if (_arg12 == "medium3"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium3); } else { if (_arg12 == "miniBoss1"){ this.addEventListener(Event.ENTER_FRAME, this.beginMiniBoss1); } else { if (_arg12 == "miniBoss2"){ this.addEventListener(Event.ENTER_FRAME, this.beginMiniBoss2); }; }; }; }; }; }; }; }; }; }; }; } private function beginSmall1(_arg1:Event){ var _local2:smallEnnemi1; var _local3:smallEnnemi1; var _local4:smallEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi1(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.width / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi1(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.width / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new smallEnnemi1(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new smallEnnemi1(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall1); this.parent.removeChild(this); }; }; } private function beginSmall5(_arg1:Event){ var _local2:smallEnnemi5; var _local3:smallEnnemi5; var _local4:smallEnnemi5; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi5(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.width / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi5(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.width / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new smallEnnemi5(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new smallEnnemi5(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall5); this.parent.removeChild(this); }; }; } private function beginSmall3(_arg1:Event){ var _local2:smallEnnemi3; var _local3:smallEnnemi3; var _local4:smallEnnemi3; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi3(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi3(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new smallEnnemi3(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new smallEnnemi3(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall3); this.parent.removeChild(this); }; }; } private function beginSmall2(_arg1:Event){ var _local2:smallEnnemi2; var _local3:smallEnnemi2; var _local4:smallEnnemi2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi2(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi2(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new smallEnnemi2(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new smallEnnemi2(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall2); this.parent.removeChild(this); }; }; } private function beginMedium1(_arg1:Event){ var _local2:mediumEnnemi1; var _local3:mediumEnnemi1; var _local4:mediumEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi1(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi1(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new mediumEnnemi1(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new mediumEnnemi1(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium1); this.parent.removeChild(this); }; }; } private function beginSmall4(_arg1:Event){ var _local2:smallEnnemi4; var _local3:smallEnnemi4; var _local4:smallEnnemi4; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi4(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.width / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi4(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.width / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new smallEnnemi4(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new smallEnnemi4(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall4); this.parent.removeChild(this); }; }; } private function beginMiniBoss2(_arg1:Event){ var _local2:miniBoss2; var _local3:miniBoss2; var _local4:miniBoss2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new miniBoss2(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new miniBoss2(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new miniBoss2(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new miniBoss2(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMiniBoss2); this.parent.removeChild(this); }; }; } private function beginMedium3(_arg1:Event){ var _local2:mediumEnnemi3; var _local3:mediumEnnemi3; var _local4:mediumEnnemi3; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi3(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi3(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new mediumEnnemi3(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new mediumEnnemi3(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium3); this.parent.removeChild(this); }; }; } private function beginVSmall1(_arg1:Event){ var _local2:vSmallEnnemi1; var _local3:vSmallEnnemi1; var _local4:vSmallEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new vSmallEnnemi1(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.width / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new vSmallEnnemi1(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.width / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new vSmallEnnemi1(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new vSmallEnnemi1(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginVSmall1); this.parent.removeChild(this); }; }; } private function beginMedium2(_arg1:Event){ var _local2:mediumEnnemi2; var _local3:mediumEnnemi2; var _local4:mediumEnnemi2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi2(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi2(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new mediumEnnemi2(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new mediumEnnemi2(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium2); this.parent.removeChild(this); }; }; } private function beginMiniBoss1(_arg1:Event){ var _local2:miniBoss1; var _local3:miniBoss1; var _local4:miniBoss1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new miniBoss1(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local2.y = positionGauche; _local2.x = (-10 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new miniBoss1(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local3.y = positionDroite; _local3.x = (510 + (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 0; } else { if (nombreDroite >= nombreGauche){ nombreDroite--; _local4 = new miniBoss1(-1, 0, eMoveSpeed, 90, eShootSpeed, nombreTir, trajectoireD, typeTir, "gauche", "Droite"); _local4.y = positionDroite; _local4.x = (510 + (_local4.height / 2)); } else { nombreGauche--; _local4 = new miniBoss1(1, 0, eMoveSpeed, -90, eShootSpeed, nombreTir, trajectoireG, typeTir, "droite", "Gauche"); _local4.y = positionGauche; _local4.x = (-10 - (_local4.height / 2)); }; this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 0; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMiniBoss1); this.parent.removeChild(this); }; }; } } }//package game.niveaux.automatisme
Section 46
//autoHaut (game.niveaux.automatisme.autoHaut) package game.niveaux.automatisme { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; public class autoHaut extends MovieClip { private const frameSec:Number = 30; private var nombreDroite:Number;// = 0 private var typeTir:String;// = "regular" private var nombreGauche:Number;// = 0 private var memeTemps:Boolean;// = false private var eMoveSpeed:Number;// = 0 private var nombreTir:Number;// = 1 private var compteur:Number;// = 1 private var finAuto:Number;// = 60 private var positionDroite:Number;// = 450 private var compteurTotal:Number;// = 0 private var intervaleEnnemi:Number;// = 30 private var eShootSpeed:Number;// = 0 private var positionGauche:Number;// = 50 private var trajectoireD:String;// = "regular" private var trajectoireG:String;// = "regular" public function autoHaut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String, _arg6:String, _arg7:Boolean, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number, _arg12:String, _arg13:String){ nombreDroite = _arg2; nombreGauche = _arg1; positionDroite = _arg4; positionGauche = _arg3; trajectoireD = _arg6; trajectoireG = _arg5; memeTemps = _arg7; intervaleEnnemi = (_arg8 * frameSec); if (memeTemps){ finAuto = ((nombreDroite * intervaleEnnemi) + 1); } else { finAuto = (((nombreDroite + nombreGauche) * intervaleEnnemi) + 1); }; eMoveSpeed = _arg9; eShootSpeed = _arg10; nombreTir = _arg11; typeTir = _arg13; compteur = (intervaleEnnemi - 1); compteurTotal = compteur; if (_arg12 == "vSmall1"){ this.addEventListener(Event.ENTER_FRAME, this.beginVSmall1); } else { if (_arg12 == "small1"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall1); } else { if (_arg12 == "small2"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall2); } else { if (_arg12 == "small3"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall3); } else { if (_arg12 == "small4"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall4); } else { if (_arg12 == "small5"){ this.addEventListener(Event.ENTER_FRAME, this.beginSmall5); } else { if (_arg12 == "medium1"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium1); } else { if (_arg12 == "medium2"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium2); } else { if (_arg12 == "medium3"){ this.addEventListener(Event.ENTER_FRAME, this.beginMedium3); } else { if (_arg12 == "miniBoss1"){ this.addEventListener(Event.ENTER_FRAME, this.beginMiniBoss1); } else { if (_arg12 == "miniBoss2"){ this.addEventListener(Event.ENTER_FRAME, this.beginMiniBoss2); }; }; }; }; }; }; }; }; }; }; }; } private function beginSmall1(_arg1:Event){ var _local2:smallEnnemi1; var _local3:smallEnnemi1; var _local4:smallEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall1); this.parent.removeChild(this); }; }; } private function beginSmall5(_arg1:Event){ var _local2:smallEnnemi5; var _local3:smallEnnemi5; var _local4:smallEnnemi5; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi5(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi5(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi5(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi5(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall5); this.parent.removeChild(this); }; }; } private function beginSmall3(_arg1:Event){ var _local2:smallEnnemi3; var _local3:smallEnnemi3; var _local4:smallEnnemi3; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi3(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi3(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi3(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi3(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall3); this.parent.removeChild(this); }; }; } private function beginSmall2(_arg1:Event){ var _local2:smallEnnemi2; var _local3:smallEnnemi2; var _local4:smallEnnemi2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall2); this.parent.removeChild(this); }; }; } private function beginMedium1(_arg1:Event){ var _local2:mediumEnnemi1; var _local3:mediumEnnemi1; var _local4:mediumEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new mediumEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new mediumEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium1); this.parent.removeChild(this); }; }; } private function beginSmall4(_arg1:Event){ var _local2:smallEnnemi4; var _local3:smallEnnemi4; var _local4:smallEnnemi4; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new smallEnnemi4(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new smallEnnemi4(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new smallEnnemi4(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new smallEnnemi4(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginSmall4); this.parent.removeChild(this); }; }; } private function beginMiniBoss2(_arg1:Event){ var _local2:miniBoss2; var _local3:miniBoss2; var _local4:miniBoss2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new miniBoss2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new miniBoss2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new miniBoss2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new miniBoss2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMiniBoss2); this.parent.removeChild(this); }; }; } private function beginMedium3(_arg1:Event){ var _local2:mediumEnnemi3; var _local3:mediumEnnemi3; var _local4:mediumEnnemi3; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi3(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi3(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new mediumEnnemi3(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new mediumEnnemi3(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium3); this.parent.removeChild(this); }; }; } private function beginVSmall1(_arg1:Event){ var _local2:vSmallEnnemi1; var _local3:vSmallEnnemi1; var _local4:vSmallEnnemi1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new vSmallEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new vSmallEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new vSmallEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new vSmallEnnemi1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginVSmall1); this.parent.removeChild(this); }; }; } private function beginMedium2(_arg1:Event){ var _local2:mediumEnnemi2; var _local3:mediumEnnemi2; var _local4:mediumEnnemi2; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new mediumEnnemi2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new mediumEnnemi2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new mediumEnnemi2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new mediumEnnemi2(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMedium2); this.parent.removeChild(this); }; }; } private function beginMiniBoss1(_arg1:Event){ var _local2:miniBoss1; var _local3:miniBoss1; var _local4:miniBoss1; if (application.pause == false){ if (application.ingame == false){ compteurTotal = finAuto; }; compteurTotal++; compteur++; if (compteur == intervaleEnnemi){ if (memeTemps){ _local2 = new miniBoss1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); _local2.x = positionGauche; _local2.y = (0 - (_local2.height / 2)); this.parent.addChildAt(_local2, application.indexBtn); application.ennemis.push(_local2); _local2 = null; _local3 = new miniBoss1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); _local3.x = positionDroite; _local3.y = (0 - (_local3.height / 2)); this.parent.addChildAt(_local3, application.indexBtn); application.ennemis.push(_local3); _local3 = null; compteur = 1; } else { if (nombreDroite >= nombreGauche){ _local4 = new miniBoss1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireD, typeTir, "bas", "Droite"); nombreDroite--; _local4.x = positionDroite; } else { _local4 = new miniBoss1(0, 1, eMoveSpeed, 0, eShootSpeed, nombreTir, trajectoireG, typeTir, "bas", "Gauche"); nombreGauche--; _local4.x = positionGauche; }; _local4.y = (0 - (_local4.height / 2)); this.parent.addChildAt(_local4, application.indexBtn); application.ennemis.push(_local4); _local4 = null; compteur = 1; }; }; if (compteurTotal >= finAuto){ this.removeEventListener(Event.ENTER_FRAME, this.beginMiniBoss1); this.parent.removeChild(this); }; }; } } }//package game.niveaux.automatisme
Section 47
//niveau1 (game.niveaux.niveau1) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau1 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss01Intro; public function niveau1(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss01; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (3 * frameSec)){ _local3 = new autoHaut(1, 0, 150, 300, "45G", "45D", false, 1, 4, 2, 0, "small1", "regularP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (5 * frameSec)){ _local3 = new autoHaut(0, 2, 150, 350, "45D", "45D", false, 2, 4, 2, 0, "small1", "regularP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (10 * frameSec)){ _local3 = new autoHaut(3, 0, 150, 350, "45G", "45G", false, 1, 4, 2, 0, "small1", "regularP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (16 * frameSec)){ _local3 = new autoHaut(2, 2, 200, 300, "regular", "regular", false, 1, 4, 2, 0, "small2", "regularP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (23 * frameSec)){ _local3 = new autoHaut(4, 4, 220, 280, "regular", "regular", true, 1, 4, 2, 0, "small1", "regularP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (28 * frameSec)){ _local2 = new autoCote(4, 4, 300, 250, "regular", "regular", false, 0.5, 4, 2, 0, "small1", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (34 * frameSec)){ _local3 = new autoHaut(5, 5, 100, 400, "45G", "45D", false, 0.5, 4, 2, 0, "small1", "regularP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (45 * frameSec)){ bossintro = new boss01Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (48 * frameSec)){ bossintro = null; application.inboss = true; application.posBoss = true; _local5 = new boss01(); _local6 = new bossLifeBar(60); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 48
//niveau10 (game.niveaux.niveau10) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau10 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss10Intro; public function niveau10(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss10; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(1, 1, 200, 300, "regular", "regular", true, 1, 3, 0.8, 30, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 3, 0.8, 30, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(1, 1, 100, 400, "regular", "regular", true, 1, 3, 0.8, 30, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (2 * frameSec)){ _local4 = new autoBas(1, 1, 200, 300, "regular", "regular", true, 1, 3, 0.8, 30, "medium1", "sprayGN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (2 * frameSec)){ _local4 = new autoBas(1, 1, 150, 350, "regular", "regular", true, 1, 3, 0.8, 30, "medium1", "sprayGN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (2 * frameSec)){ _local4 = new autoBas(1, 1, 100, 400, "regular", "regular", true, 1, 3, 0.8, 30, "medium1", "sprayGN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (7 * frameSec)){ _local3 = new autoHaut(1, 0, 250, 300, "regular", "45D", false, 1, 2, 0.4, 30, "miniBoss2", "miniBoss2Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (11 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 2, 0.4, 30, "miniBoss1", "miniBoss1Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (17 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 2, 0.4, 30, "miniBoss2", "miniBoss2Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (23 * frameSec)){ _local3 = new autoHaut(1, 0, 250, 300, "regular", "45D", false, 1, 2, 0.4, 30, "miniBoss2", "miniBoss2Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (23 * frameSec)){ _local2 = new autoCote(1, 1, 550, 550, "regular", "regular", true, 1, 4, 0.1, 100, "medium2", "regularPN"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (29 * frameSec)){ _local2 = new autoCote(5, 5, 100, 190, "regular", "regular", true, 2, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (29 * frameSec)){ _local2 = new autoCote(5, 5, 280, 370, "regular", "regular", true, 2, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (29 * frameSec)){ _local2 = new autoCote(5, 5, 460, 550, "regular", "regular", true, 2, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (43 * frameSec)){ _local2 = new autoCote(1, 1, 50, 50, "regular", "regular", true, 1, 4, 0.1, 100, "medium2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (43 * frameSec)){ _local2 = new autoCote(1, 1, 550, 550, "regular", "regular", true, 1, 4, 0.1, 100, "medium2", "doubleIPN"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (48 * frameSec)){ _local3 = new autoHaut(1, 1, 220, 280, "regular", "regular", true, 2, 4, 0.5, 100, "vSmall1", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (48 * frameSec)){ _local3 = new autoHaut(1, 1, 160, 340, "regular", "regular", true, 2, 4, 0.5, 100, "vSmall1", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (48 * frameSec)){ _local3 = new autoHaut(1, 1, 100, 400, "regular", "regular", true, 2, 4, 0.5, 100, "vSmall1", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (48 * frameSec)){ _local3 = new autoHaut(1, 1, 40, 460, "regular", "regular", true, 2, 4, 0.5, 100, "vSmall1", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (52 * frameSec)){ _local3 = new autoHaut(1, 0, 150, 300, "regular", "45D", false, 1, 2, 0.4, 30, "miniBoss2", "miniBoss2Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (54 * frameSec)){ _local3 = new autoHaut(0, 1, 200, 350, "regular", "regular", false, 1, 3, 1, 30, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (55 * frameSec)){ _local3 = new autoHaut(1, 0, 200, 300, "regular", "regular", false, 1, 3, 1, 30, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (56 * frameSec)){ _local3 = new autoHaut(0, 1, 200, 400, "regular", "regular", false, 1, 3, 1, 30, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (57 * frameSec)){ _local3 = new autoHaut(0, 1, 150, 350, "regular", "regular", false, 1, 2, 0.4, 30, "miniBoss1", "miniBoss1Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (59 * frameSec)){ _local2 = new autoCote(0, 1, 550, 50, "regular", "regular", false, 1, 4, 0.1, 100, "medium2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (60 * frameSec)){ _local3 = new autoHaut(1, 0, 200, 300, "regular", "regular", false, 1, 4, 1, 30, "small4", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (60 * frameSec)){ _local3 = new autoHaut(1, 0, 170, 300, "regular", "regular", false, 1, 4, 1, 30, "small4", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (61 * frameSec)){ _local3 = new autoHaut(0, 1, 200, 400, "regular", "regular", false, 1, 3, 1, 30, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (65 * frameSec)){ _local2 = new autoCote(1, 1, 250, 250, "90G", "90D", true, 2, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (65 * frameSec)){ _local2 = new autoCote(1, 1, 350, 350, "90D", "90G", true, 2, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (65 * frameSec)){ _local3 = new autoHaut(1, 1, 200, 300, "90D", "90G", true, 2, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (65 * frameSec)){ _local4 = new autoBas(1, 1, 200, 300, "90G", "90D", true, 2, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (67 * frameSec)){ _local2 = new autoCote(1, 1, 50, 50, "regular", "regular", true, 1, 4, 0.1, 100, "medium2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (69 * frameSec)){ _local2 = new autoCote(1, 1, 550, 550, "regular", "regular", true, 1, 4, 0.1, 100, "medium2", "doubleIPN"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (74 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 2, 0.4, 30, "miniBoss2", "miniBoss2Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (80 * frameSec)){ _local4 = new autoBas(1, 1, 220, 280, "regular", "regular", true, 1, 4, 1, 50, "small4", "sprayPN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (80 * frameSec)){ _local4 = new autoBas(1, 1, 190, 310, "regular", "regular", true, 1, 4, 1, 50, "small4", "sprayPN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (80 * frameSec)){ _local4 = new autoBas(1, 1, 160, 340, "regular", "regular", true, 1, 4, 1, 50, "small4", "sprayPM"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (80 * frameSec)){ _local4 = new autoBas(1, 1, 130, 370, "regular", "regular", true, 1, 4, 0.8, 50, "small4", "sprayPN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (84 * frameSec)){ _local3 = new autoHaut(1, 0, 250, 350, "regular", "regular", false, 1, 2, 0.4, 50, "miniBoss2", "miniBoss2Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (85 * frameSec)){ _local3 = new autoHaut(1, 1, 200, 300, "regular", "regular", true, 1, 2, 1, 30, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (89 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 2, 0.4, 30, "miniBoss1", "miniBoss1Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (90 * frameSec)){ _local3 = new autoHaut(1, 1, 100, 200, "regular", "regular", true, 1, 2, 1, 30, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (90 * frameSec)){ _local3 = new autoHaut(1, 1, 300, 400, "regular", "regular", true, 1, 2, 1, 30, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (97 * frameSec)){ _local3 = new autoHaut(5, 5, 220, 380, "45D", "45G", true, 1, 4, 1, 30, "small4", "doubleIP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (97 * frameSec)){ _local4 = new autoBas(5, 5, 220, 380, "45G", "45D", true, 1, 4, 1, 30, "small4", "doubleIPN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (97 * frameSec)){ _local2 = new autoCote(5, 0, 280, 380, "regular", "regular", false, 1, 4, 1, 30, "small4", "sprayPN"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (97 * frameSec)){ _local2 = new autoCote(0, 5, 280, 320, "regular", "regular", false, 1, 4, 1, 30, "small4", "sprayP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (106 * frameSec)){ _local2 = new autoCote(2, 2, 250, 250, "90G", "90D", true, 3, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (106 * frameSec)){ _local2 = new autoCote(2, 2, 350, 350, "90D", "90G", true, 3, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (106 * frameSec)){ _local3 = new autoHaut(2, 2, 200, 300, "90D", "90G", true, 3, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (106 * frameSec)){ _local4 = new autoBas(2, 2, 200, 300, "90G", "90D", true, 3, 4, 1, 100, "medium3", "searchG"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (115 * frameSec)){ bossintro = new boss10Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (118 * frameSec)){ application.inboss = true; application.posBoss = true; bossintro = null; _local5 = new boss10(); _local6 = new bossLifeBar(4000); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 49
//niveau11 (game.niveaux.niveau11) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau11 extends MovieClip { private const frameSec:Number = 30; private var tempcont:Number; private var boss; private var bossRendu:Number; private var bossLifeB:bossLifeBar; private var compteur:Number;// = 0 private var bossintro; public function niveau11(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } private function beginLevel(_arg1:Event){ if (application.pause == false){ compteur++; if (compteur == (1 * frameSec)){ bossintro = new boss01Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (4 * frameSec)){ application.inboss = true; application.posBoss = true; application.bossMort = false; bossRendu = 2; bossintro = null; boss = new boss01(); bossLifeB = new bossLifeBar(1000); bossLifeB.y = -105; boss.addChildAt(bossLifeB, 2); application.boss = boss; this.parent.addChildAt(boss, application.indexBtn); boss = null; bossLifeB = null; }; if (application.bossMort){ application.bossMort = false; switch (bossRendu){ case 2: bossintro = new boss02Intro(); break; case 3: bossintro = new boss03Intro(); break; case 4: bossintro = new boss04Intro(); break; case 5: bossintro = new boss05Intro(); break; case 6: bossintro = new boss06Intro(); break; case 7: bossintro = new boss07Intro(); break; case 8: bossintro = new boss08Intro(); break; case 9: bossintro = new boss09Intro(); break; case 10: bossintro = new boss10Intro(); break; }; application.inboss = false; bossintro.x = 250; this.parent.addChild(bossintro); tempcont = (compteur + 90); }; if (compteur == tempcont){ bossintro = null; switch (bossRendu){ case 2: application.inboss = true; application.posBoss = true; boss = new boss02(); bossLifeB = new bossLifeBar(1500); break; case 3: application.inboss = true; application.posBoss = true; boss = new boss03(); bossLifeB = new bossLifeBar(2000); break; case 4: application.inboss = true; application.posBoss = true; boss = new boss04(); bossLifeB = new bossLifeBar(2500); break; case 5: application.inboss = false; application.posBoss = false; boss = new boss05(); bossLifeB = new bossLifeBar(3000); break; case 6: application.inboss = true; application.posBoss = true; boss = new boss06(); bossLifeB = new bossLifeBar(3500); break; case 7: application.inboss = true; application.posBoss = true; boss = new boss07(); bossLifeB = new bossLifeBar(4000); break; case 8: application.inboss = true; application.posBoss = true; boss = new boss08(); bossLifeB = new bossLifeBar(4500); break; case 9: application.inboss = false; application.posBoss = false; boss = new boss09(); bossLifeB = new bossLifeBar(5000); break; case 10: application.bosslvl = false; application.inboss = true; application.posBoss = true; boss = new boss10(); bossLifeB = new bossLifeBar(6000); break; }; bossRendu++; bossLifeB.y = -105; boss.addChildAt(bossLifeB, 2); application.boss = boss; this.parent.addChildAt(boss, application.indexBtn); boss = null; bossLifeB = null; }; }; } } }//package game.niveaux
Section 50
//niveau2 (game.niveaux.niveau2) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau2 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss02Intro; public function niveau2(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss02; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(2, 2, 150, 350, "45G", "45D", false, 1, 4, 2, 1, "small3", "doubleIP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (8 * frameSec)){ _local2 = new autoCote(10, 10, 250, 250, "90G", "90D", true, 1, 4, 1, 4, "small1", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (20 * frameSec)){ _local3 = new autoHaut(5, 5, 220, 270, "90D", "90G", true, 1.5, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (29 * frameSec)){ _local2 = new autoCote(1, 1, 100, 100, "regular", "regular", true, 1, 4, 3.2, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (30 * frameSec)){ _local2 = new autoCote(1, 1, 120, 120, "regular", "regular", true, 1, 4, 3, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (31 * frameSec)){ _local2 = new autoCote(1, 1, 140, 140, "regular", "regular", true, 1, 4, 2.8, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (32 * frameSec)){ _local2 = new autoCote(1, 1, 160, 160, "regular", "regular", true, 1, 4, 3, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (33 * frameSec)){ _local2 = new autoCote(1, 1, 180, 180, "regular", "regular", true, 1, 4, 3.2, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (34 * frameSec)){ _local2 = new autoCote(1, 1, 200, 200, "regular", "regular", true, 1, 4, 3, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (35 * frameSec)){ _local2 = new autoCote(1, 1, 220, 220, "regular", "regular", true, 1, 4, 2.8, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (36 * frameSec)){ _local2 = new autoCote(1, 1, 240, 240, "regular", "regular", true, 1, 4, 3, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (37 * frameSec)){ _local2 = new autoCote(1, 1, 260, 260, "regular", "regular", true, 1, 4, 3.2, 1, "small2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (40 * frameSec)){ _local2 = new autoCote(0, 10, 260, 400, "regular", "45D", false, 1, 4, 2.2, 3, "small1", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (44 * frameSec)){ _local2 = new autoCote(10, 0, 300, 400, "45G", "45D", false, 1, 4, 2.2, 3, "small1", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (55 * frameSec)){ _local3 = new autoHaut(10, 0, 250, 400, "regular", "45D", false, 2, 4, 2, 1, "small3", "regularP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (55.2 * frameSec)){ _local3 = new autoHaut(1, 1, 180, 320, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (57.2 * frameSec)){ _local3 = new autoHaut(1, 1, 210, 350, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (59.2 * frameSec)){ _local3 = new autoHaut(1, 1, 160, 300, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (61.2 * frameSec)){ _local3 = new autoHaut(1, 1, 140, 280, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (63.2 * frameSec)){ _local3 = new autoHaut(1, 1, 180, 320, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (65.2 * frameSec)){ _local3 = new autoHaut(1, 1, 210, 350, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (67.2 * frameSec)){ _local3 = new autoHaut(1, 1, 200, 340, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (69.2 * frameSec)){ _local3 = new autoHaut(1, 1, 180, 320, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (71.2 * frameSec)){ _local3 = new autoHaut(1, 1, 140, 280, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (73.2 * frameSec)){ _local3 = new autoHaut(1, 1, 190, 330, "regular", "regular", true, 1, 4, 2, 1, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (79 * frameSec)){ bossintro = new boss02Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (82 * frameSec)){ bossintro = null; application.inboss = true; application.posBoss = true; _local5 = new boss02(); _local6 = new bossLifeBar(175); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 51
//niveau3 (game.niveaux.niveau3) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau3 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss03Intro; public function niveau3(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss03; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(1, 0, 250, 350, "regular", "45D", false, 1, 3, 2, 2, "medium1", "regularG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (4 * frameSec)){ _local3 = new autoHaut(1, 1, 200, 300, "regular", "regular", true, 1, 3, 2, 3, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (6 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 3, 2, 3, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (10 * frameSec)){ _local2 = new autoCote(10, 10, 200, 200, "45G", "45D", true, 1, 4, 1, 4, "small2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (15 * frameSec)){ _local2 = new autoCote(1, 0, 570, 200, "regular", "45D", false, 1, 3, 1.5, 10, "small5", "searchP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (22 * frameSec)){ _local2 = new autoCote(10, 10, 100, 100, "45D", "45G", true, 1, 4, 1.5, 4, "small2", "doubleIG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (35 * frameSec)){ _local3 = new autoHaut(10, 0, 250, 350, "regular", "regular", false, 1, 4, 1.5, 3, "small3", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (35.5 * frameSec)){ _local3 = new autoHaut(10, 10, 200, 300, "45D", "45G", true, 1, 4, 1, 4, "small3", "doubleEP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (48 * frameSec)){ _local3 = new autoHaut(1, 0, 250, 300, "regular", "regular", false, 1, 3, 2, 3, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (48.5 * frameSec)){ _local3 = new autoHaut(1, 1, 200, 300, "regular", "regular", true, 1, 3, 2, 3, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (49 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 3, 2, 3, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (49.5 * frameSec)){ _local3 = new autoHaut(1, 1, 100, 400, "regular", "regular", true, 1, 3, 2, 3, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (55 * frameSec)){ _local2 = new autoCote(1, 1, 100, 200, "regular", "regular", true, 1, 3, 1.5, 3, "medium1", "sprayG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (56 * frameSec)){ _local2 = new autoCote(5, 5, 100, 200, "regular", "regular", true, 1, 3, 2, 3, "small3", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (63 * frameSec)){ _local2 = new autoCote(1, 1, 100, 200, "regular", "regular", true, 1, 3, 1.5, 3, "medium1", "sprayG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (64 * frameSec)){ _local2 = new autoCote(5, 5, 100, 200, "regular", "regular", true, 1, 3, 2, 3, "small3", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (72 * frameSec)){ _local2 = new autoCote(3, 3, 500, 500, "90G", "90D", true, 3, 3, 1.5, 5, "medium1", "doubleIG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (73 * frameSec)){ _local3 = new autoHaut(10, 10, 200, 300, "regular", "regular", true, 1, 4, 2, 3, "small3", "doubleIP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (87 * frameSec)){ bossintro = new boss03Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (90 * frameSec)){ bossintro = null; application.inboss = true; application.posBoss = true; _local5 = new boss03(); _local6 = new bossLifeBar(350); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 52
//niveau4 (game.niveaux.niveau4) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau4 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss04Intro; public function niveau4(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss04; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (1 * frameSec)){ _local2 = new autoCote(1, 0, 100, 350, "regular", "45D", false, 1, 5, 0.5, 20, "vSmall1", "doubleEP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (4 * frameSec)){ _local2 = new autoCote(10, 0, 300, 350, "45G", "45D", false, 1, 5, 0.7, 20, "vSmall1", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (8 * frameSec)){ _local2 = new autoCote(1, 0, 570, 200, "regular", "45D", false, 1, 3, 1.5, 10, "small5", "searchP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (16 * frameSec)){ _local2 = new autoCote(0, 10, 300, 300, "45G", "45D", false, 1, 5, 0.7, 20, "vSmall1", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (18 * frameSec)){ _local2 = new autoCote(0, 1, 570, 570, "regular", "regular", false, 1, 3, 1.5, 10, "small5", "searchP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (28 * frameSec)){ _local3 = new autoHaut(10, 10, 200, 300, "regular", "regular", false, 0.8, 3, 1.5, 2, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (49 * frameSec)){ _local2 = new autoCote(10, 10, 100, 125, "regular", "regular", true, 1, 4, 2, 3, "small2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (49 * frameSec)){ _local2 = new autoCote(10, 10, 200, 200, "90D", "90G", true, 1, 4, 2, 3, "small2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (49 * frameSec)){ _local3 = new autoHaut(10, 10, 200, 300, "regular", "regular", true, 1, 4, 2, 3, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (53 * frameSec)){ _local2 = new autoCote(1, 0, 30, 200, "regular", "45D", false, 1, 3, 1.5, 10, "small5", "searchP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (62 * frameSec)){ _local3 = new autoHaut(10, 10, 50, 450, "45G", "45D", true, 1.2, 5, 1, 20, "vSmall1", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (78 * frameSec)){ bossintro = new boss04Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (81 * frameSec)){ bossintro = null; application.inboss = true; application.posBoss = true; _local5 = new boss04(); _local6 = new bossLifeBar(800); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 53
//niveau5 (game.niveaux.niveau5) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau5 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss05Intro; public function niveau5(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss05; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (1 * frameSec)){ _local3 = new autoHaut(10, 0, 250, 350, "regular", "regular", false, 2, 4, 1, 4, "small3", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (1.5 * frameSec)){ _local3 = new autoHaut(10, 10, 180, 320, "regular", "regular", true, 2, 4, 1, 4, "small3", "doubleEP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(10, 10, 110, 390, "regular", "regular", true, 2, 4, 1, 4, "small3", "doubleIP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (24 * frameSec)){ _local3 = new autoHaut(10, 10, 200, 300, "regular", "regular", false, 1, 4, 0.5, 5, "vSmall1", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (25 * frameSec)){ _local2 = new autoCote(5, 0, 570, 200, "regular", "45D", false, 4, 3, 1.5, 10, "small5", "searchP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (47 * frameSec)){ _local2 = new autoCote(0, 10, 200, 150, "regular", "regular", false, 1, 4, 0.35, 30, "small4", "doubleIG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (60 * frameSec)){ _local2 = new autoCote(10, 10, 300, 300, "45G", "45D", false, 1, 4, 1, 30, "small4", "doubleIG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (61 * frameSec)){ _local2 = new autoCote(0, 5, 570, 570, "regular", "regular", false, 4, 3, 1, 10, "small5", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (85 * frameSec)){ bossintro = new boss05Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (88 * frameSec)){ bossintro = null; _local5 = new boss05(); _local6 = new bossLifeBar(1000); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 54
//niveau6 (game.niveaux.niveau6) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau6 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss06Intro; public function niveau6(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss06; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (1 * frameSec)){ _local2 = new autoCote(0, 10, 250, 400, "regular", "45D", false, 1, 4, 1, 8, "vSmall1", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (1.5 * frameSec)){ _local2 = new autoCote(0, 10, 250, 300, "regular", "45D", false, 1, 4, 1, 8, "vSmall1", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (3 * frameSec)){ _local3 = new autoHaut(4, 0, 50, 250, "regular", "regular", false, 3, 4, 1, 10, "small5", "searchP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (15 * frameSec)){ _local2 = new autoCote(10, 10, 400, 400, "90G", "90D", false, 0.5, 4, 1, 8, "small4", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (16 * frameSec)){ _local4 = new autoBas(3, 0, 250, 250, "regular", "regular", false, 5, 4, 1, 10, "small5", "searchP"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (29 * frameSec)){ _local4 = new autoBas(12, 12, 150, 350, "regular", "regular", true, 1, 3, 1.5, 6, "small3", "sprayPN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (30 * frameSec)){ _local3 = new autoHaut(2, 0, 250, 250, "regular", "regular", false, 5, 3, 1, 20, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (45 * frameSec)){ _local2 = new autoCote(10, 10, 150, 150, "45D", "45G", false, 0.8, 4, 1, 6, "small4", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (49 * frameSec)){ _local2 = new autoCote(5, 5, 15, 15, "regular", "regular", false, 2, 4, 1, 8, "small5", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (69 * frameSec)){ _local2 = new autoCote(0, 1, 15, 100, "regular", "regular", false, 1, 3, 0.1, 80, "medium2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (75 * frameSec)){ bossintro = new boss06Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (78 * frameSec)){ application.inboss = true; application.posBoss = true; bossintro = null; _local5 = new boss06(); _local6 = new bossLifeBar(1500); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 55
//niveau7 (game.niveaux.niveau7) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau7 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss07Intro; public function niveau7(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss07; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (1 * frameSec)){ _local4 = new autoBas(10, 10, 50, 450, "45D", "45G", false, 1, 4, 1, 8, "small3", "doubleIPN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (1 * frameSec)){ _local2 = new autoCote(4, 4, 50, 50, "regular", "regular", false, 2, 4, 0.5, 20, "small5", "searchP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (23 * frameSec)){ _local2 = new autoCote(2, 2, 100, 100, "regular", "regular", false, 2, 3, 0.1, 80, "medium2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (33 * frameSec)){ _local3 = new autoHaut(10, 10, 140, 360, "regular", "regular", true, 1, 4, 2, 5, "vSmall1", "doubleEP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (33 * frameSec)){ _local3 = new autoHaut(10, 10, 170, 330, "regular", "regular", true, 1, 4, 2, 5, "vSmall1", "doubleIP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (33 * frameSec)){ _local3 = new autoHaut(3, 3, 30, 470, "regular", "regular", false, 2, 3, 1, 10, "small5", "searchP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (47 * frameSec)){ _local2 = new autoCote(6, 6, 50, 50, "45D", "45G", false, 1, 4, 1, 80, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (63 * frameSec)){ _local3 = new autoHaut(10, 10, 30, 470, "45G", "45D", true, 1, 4, 1.5, 8, "small4", "doubleIP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (63 * frameSec)){ _local4 = new autoBas(10, 10, 30, 470, "45D", "45G", true, 1, 4, 1.5, 8, "small3", "doubleIPN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (63 * frameSec)){ _local3 = new autoHaut(5, 0, 250, 470, "regular", "regular", false, 2.5, 3, 2, 10, "small5", "searchP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (80 * frameSec)){ bossintro = new boss07Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (83 * frameSec)){ application.inboss = true; application.posBoss = true; bossintro = null; _local5 = new boss07(); _local6 = new bossLifeBar(1800); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 56
//niveau8 (game.niveaux.niveau8) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau8 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss08Intro; public function niveau8(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss08; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(1, 1, 200, 300, "regular", "regular", true, 1, 3, 1, 8, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 3, 1, 8, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(1, 1, 100, 400, "regular", "regular", true, 1, 3, 1, 8, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (7 * frameSec)){ _local4 = new autoBas(1, 1, 200, 300, "regular", "regular", true, 1, 3, 1, 8, "medium1", "sprayGN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (7 * frameSec)){ _local4 = new autoBas(1, 1, 150, 350, "regular", "regular", true, 1, 3, 1, 8, "medium1", "sprayGN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (7 * frameSec)){ _local4 = new autoBas(1, 1, 100, 400, "regular", "regular", true, 1, 3, 1, 8, "medium1", "sprayGN"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (12 * frameSec)){ _local2 = new autoCote(1, 1, 50, 50, "regular", "regular", false, 5, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (12 * frameSec)){ _local2 = new autoCote(1, 1, 150, 150, "regular", "regular", false, 5, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (12 * frameSec)){ _local2 = new autoCote(1, 1, 250, 250, "regular", "regular", false, 5, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (12 * frameSec)){ _local2 = new autoCote(1, 1, 350, 350, "regular", "regular", false, 5, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (12 * frameSec)){ _local2 = new autoCote(1, 1, 450, 450, "regular", "regular", false, 5, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (12 * frameSec)){ _local2 = new autoCote(1, 1, 550, 550, "regular", "regular", false, 5, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (22 * frameSec)){ _local2 = new autoCote(1, 1, 550, 550, "regular", "regular", false, 3, 3, 0.1, 80, "medium2", "regularPN"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (28 * frameSec)){ _local2 = new autoCote(2, 2, 50, 50, "regular", "regular", true, 4, 3, 0.1, 80, "medium2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (38 * frameSec)){ _local3 = new autoHaut(1, 1, 220, 280, "regular", "regular", true, 1, 4, 0.2, 50, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (38 * frameSec)){ _local3 = new autoHaut(1, 1, 190, 310, "regular", "regular", true, 1, 4, 0.2, 50, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (38 * frameSec)){ _local3 = new autoHaut(1, 1, 160, 340, "regular", "regular", true, 1, 4, 0.2, 50, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (38 * frameSec)){ _local3 = new autoHaut(1, 1, 130, 370, "regular", "regular", true, 1, 4, 0.2, 50, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (38 * frameSec)){ _local3 = new autoHaut(1, 1, 100, 400, "regular", "regular", true, 1, 4, 0.2, 50, "small2", "sprayP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (42 * frameSec)){ _local2 = new autoCote(5, 5, 50, 550, "regular", "regular", true, 4, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (42 * frameSec)){ _local3 = new autoHaut(0, 5, 450, 450, "regular", "regular", false, 4, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (42 * frameSec)){ _local4 = new autoBas(5, 0, 50, 50, "regular", "regular", false, 5, 3, 1, 8, "medium3", "searchG"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (66 * frameSec)){ _local2 = new autoCote(8, 8, 200, 200, "45G", "45D", true, 2, 4, 0.5, 20, "vSmall1", "doubleIG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (66 * frameSec)){ _local2 = new autoCote(8, 8, 150, 150, "45G", "45D", true, 2, 4, 0.5, 20, "small4", "doubleEG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (66 * frameSec)){ _local2 = new autoCote(8, 8, 550, 550, "regular", "regular", true, 2, 4, 0.5, 20, "medium3", "searchG"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (86 * frameSec)){ _local3 = new autoHaut(1, 0, 250, 300, "regular", "45D", false, 1, 2, 0.5, 30, "miniBoss1", "miniBoss1Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (94 * frameSec)){ bossintro = new boss08Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (97 * frameSec)){ application.inboss = true; application.posBoss = true; bossintro = null; _local5 = new boss08(); _local6 = new bossLifeBar(2000); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 57
//niveau9 (game.niveaux.niveau9) package game.niveaux { import flash.display.*; import flash.events.*; import game.general.*; import game.ennemis.*; import game.niveaux.automatisme.*; public class niveau9 extends MovieClip { private const frameSec:Number = 30; private var compteur:Number;// = 0 private var bossintro:boss09Intro; public function niveau9(){ this.addEventListener(Event.ENTER_FRAME, this.beginLevel); } public function mortPlayer(){ this.removeEventListener(Event.ENTER_FRAME, this.beginLevel); this.parent.removeChild(this); } public function pauseGame(_arg1:Boolean){ if (bossintro){ if (_arg1){ bossintro.stop(); } else { bossintro.play(); }; }; } private function beginLevel(_arg1:Event){ var _local2:autoCote; var _local3:autoHaut; var _local4:autoBas; var _local5:boss09; var _local6:bossLifeBar; if (application.pause == false){ compteur++; if (compteur == (2 * frameSec)){ _local3 = new autoHaut(2, 2, 150, 350, "regular", "regular", false, 4, 2, 0.4, 30, "miniBoss1", "miniBoss1Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (19 * frameSec)){ _local3 = new autoHaut(1, 0, 250, 350, "regular", "regular", false, 1, 2, 0.4, 30, "miniBoss1", "miniBoss1Tir"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (19 * frameSec)){ _local3 = new autoHaut(1, 1, 150, 350, "regular", "regular", true, 1, 2, 0.8, 30, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (19 * frameSec)){ _local3 = new autoHaut(1, 1, 100, 400, "regular", "regular", true, 1, 2, 0.8, 30, "medium1", "sprayG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (24 * frameSec)){ _local3 = new autoHaut(10, 0, 50, 450, "regular", "regular", false, 2, 2, 0.8, 30, "medium3", "searchG"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (24 * frameSec)){ _local4 = new autoBas(0, 10, 50, 450, "regular", "regular", false, 2, 2, 0.8, 30, "medium3", "searchG"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (26 * frameSec)){ _local2 = new autoCote(0, 3, 50, 50, "regular", "regular", false, 3, 4, 0.1, 100, "medium2", "regularP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (45 * frameSec)){ _local2 = new autoCote(2, 0, 50, 50, "regular", "regular", false, 8, 4, 0.1, 100, "medium2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (45 * frameSec)){ _local2 = new autoCote(0, 2, 50, 550, "regular", "regular", false, 8, 4, 0.1, 100, "medium2", "doubleIPN"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (50 * frameSec)){ _local2 = new autoCote(2, 0, 50, 550, "regular", "regular", false, 8, 4, 0.1, 100, "medium2", "doubleIP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (50 * frameSec)){ _local2 = new autoCote(0, 2, 50, 550, "regular", "regular", false, 8, 4, 0.1, 100, "medium2", "doubleIPN"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (63 * frameSec)){ _local2 = new autoCote(10, 10, 250, 250, "90G", "90D", true, 2, 4, 1, 100, "small5", "searchP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (63 * frameSec)){ _local2 = new autoCote(10, 10, 350, 350, "90D", "90G", true, 2, 4, 1, 100, "small5", "searchP"); this.parent.addChild(_local2); _local2 = null; }; if (compteur == (63 * frameSec)){ _local3 = new autoHaut(10, 10, 200, 300, "90D", "90G", true, 2, 4, 1, 100, "small5", "searchP"); this.parent.addChild(_local3); _local3 = null; }; if (compteur == (63 * frameSec)){ _local4 = new autoBas(10, 10, 200, 300, "90G", "90D", true, 2, 4, 1, 100, "small5", "searchP"); this.parent.addChild(_local4); _local4 = null; }; if (compteur == (85 * frameSec)){ bossintro = new boss09Intro(); bossintro.x = 250; this.parent.addChild(bossintro); }; if (compteur == (88 * frameSec)){ bossintro = null; _local5 = new boss09(); _local6 = new bossLifeBar(2500); _local6.y = -105; _local5.addChildAt(_local6, 2); application.boss = _local5; this.parent.addChildAt(_local5, application.indexBtn); _local5 = null; _local6 = null; }; }; } } }//package game.niveaux
Section 58
//baseEnnemiLaser (game.projectile.baseEnnemiLaser) package game.projectile { import flash.display.*; import flash.events.*; import game.general.*; public class baseEnnemiLaser extends MovieClip { private var moveSpeed:Number;// = 6 private var directionX;// = 0 private var directionY;// = 0 public function baseEnnemiLaser(_arg1:Number, _arg2:Number){ directionX = _arg1; directionY = _arg2; this.addEventListener(Event.ENTER_FRAME, this.moveLaser, false, 0, true); } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, this.moveLaser); this.parent.removeChild(this); } private function moveLaser(_arg1:Event){ if (application.pause == false){ this.x = (this.x + (directionX * moveSpeed)); this.y = (this.y + (directionY * moveSpeed)); }; } } }//package game.projectile
Section 59
//baseLaser (game.projectile.baseLaser) package game.projectile { import flash.display.*; import flash.events.*; import game.general.*; public class baseLaser extends MovieClip { private var dirX:Number;// = 0 private var dirY:Number;// = 0 private var moveSpeed:Number;// = 15 public function baseLaser(_arg1:Number, _arg2:Number, _arg3:Number){ this.addEventListener(Event.ENTER_FRAME, this.moveLaser, false, 0, true); dirX = _arg1; dirY = _arg2; this.rotation = _arg3; } private function moveLaser(_arg1:Event){ if (application.pause == false){ this.x = (this.x + (moveSpeed * dirX)); this.y = (this.y + (moveSpeed * dirY)); }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, this.moveLaser); this.parent.removeChild(this); } } }//package game.projectile
Section 60
//bigEnnemiLaser (game.projectile.bigEnnemiLaser) package game.projectile { import flash.display.*; import flash.events.*; import game.general.*; public class bigEnnemiLaser extends MovieClip { private var moveSpeed:Number;// = 6 private var directionX;// = 0 private var directionY;// = 0 public function bigEnnemiLaser(_arg1:Number, _arg2:Number){ directionX = _arg1; directionY = _arg2; this.addEventListener(Event.ENTER_FRAME, this.moveLaser, false, 0, true); } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, this.moveLaser); this.parent.removeChild(this); } private function moveLaser(_arg1:Event){ if (application.pause == false){ this.x = (this.x + (directionX * moveSpeed)); this.y = (this.y + (directionY * moveSpeed)); }; } } }//package game.projectile
Section 61
//missile (game.projectile.missile) package game.projectile { import flash.display.*; import flash.events.*; import game.general.*; public class missile extends MovieClip { private var dirX:Number;// = 0 private var speedX:Number;// = 0 private var speedY:Number;// = 0 private var dirY:Number;// = 0 private var ennemiCible; private var angleMissile:Number;// = 4.71238898038469 private var moveSpeed:Number;// = 0 public function missile(){ dirX = 0; dirY = -1; this.addEventListener(Event.ENTER_FRAME, moveMissile); } public function destructor(){ this.x = (this.x + (dirX * 5)); this.y = (this.y + (dirY * 5)); this.removeEventListener(Event.ENTER_FRAME, this.moveMissile); this.parent.removeChild(this); } private function moveMissile(_arg1:Event){ var _local2:Number; var _local3:Number; var _local4:Number; if (application.pause == false){ if (application.ingame == true){ if (!ennemiCible){ trouverPlusProche(); } else { if (application.boss){ _local2 = (((ennemiCible.x + ennemiCible.hitB.x) + (ennemiCible.hitB.width / 2)) - this.x); _local3 = (((ennemiCible.y + ennemiCible.hitB.y) + (ennemiCible.hitB.height / 2)) - this.y); } else { _local2 = (ennemiCible.x - this.x); _local3 = (ennemiCible.y - this.y); }; _local4 = Math.atan(Math.abs((_local3 / _local2))); if ((((_local2 >= 0)) && ((_local3 >= 0)))){ } else { if ((((_local2 < 0)) && ((_local3 >= 0)))){ _local4 = (Math.PI - _local4); } else { if ((((_local2 < 0)) && ((_local3 < 0)))){ _local4 = (Math.PI + _local4); } else { _local4 = (Math.PI + (Math.PI - _local4)); }; }; }; if (angleMissile < 0){ angleMissile = (2 * Math.PI); }; if (angleMissile > (2 * Math.PI)){ angleMissile = 0; }; if ((angleMissile - _local4) > Math.PI){ angleMissile = (angleMissile + (Math.PI / 20)); } else { if ((_local4 - angleMissile) > Math.PI){ angleMissile = (angleMissile - (Math.PI / 20)); } else { if (Math.abs((_local4 - angleMissile)) < (Math.PI / 19)){ angleMissile = _local4; } else { if (Math.abs((_local4 - (angleMissile + (Math.PI / 20)))) < Math.abs((_local4 - (angleMissile - (Math.PI / 20))))){ angleMissile = (angleMissile + (Math.PI / 20)); } else { angleMissile = (angleMissile - (Math.PI / 20)); }; }; }; }; dirX = Math.cos(angleMissile); dirY = Math.sin(angleMissile); this.rotation = (((angleMissile * 180) / Math.PI) + 90); }; }; this.x = (this.x + (dirX * 10)); this.y = (this.y + (dirY * 10)); }; } private function trouverPlusProche(){ var _local1:Array; var _local2:Number; var _local3:Number; var _local4:Number; if (application.boss){ ennemiCible = application.boss; } else { if (application.ennemis.length > 0){ _local1 = application.ennemis; _local2 = _local1.length; _local3 = 10000; _local4 = 0; while (_local4 < _local2) { if (Math.sqrt((((_local1[_local4].x - this.x) * (_local1[_local4].x - this.x)) + ((_local1[_local4].y - this.y) * (_local1[_local4].y - this.y)))) < _local3){ _local3 = Math.sqrt((((_local1[_local4].x - this.x) * (_local1[_local4].x - this.x)) + ((_local1[_local4].y - this.y) * (_local1[_local4].y - this.y)))); ennemiCible = _local1[_local4]; }; _local4++; }; _local1 = null; }; }; } public function verifEnnemi(_arg1){ if (ennemiCible == _arg1){ ennemiCible = null; }; } } }//package game.projectile
Section 62
//missileP1 (game.projectile.missileP1) package game.projectile { public class missileP1 extends missile { override public function destructor(){ var _local1:missileMort = new missileMort(); _local1.x = this.x; _local1.y = this.y; _local1.rotation = this.rotation; this.parent.addChild(_local1); _local1 = null; super.destructor(); } } }//package game.projectile
Section 63
//missileP2 (game.projectile.missileP2) package game.projectile { public class missileP2 extends missile { override public function destructor(){ var _local1:missileMort2 = new missileMort2(); _local1.x = this.x; _local1.y = this.y; _local1.rotation = this.rotation; this.parent.addChild(_local1); _local1 = null; super.destructor(); } } }//package game.projectile
Section 64
//onde (game.projectile.onde) package game.projectile { import flash.display.*; import flash.events.*; import game.general.*; public class onde extends MovieClip { private var scalAlpha:Number; private var dure:Number;// = 15 private var scal:Number; private var grosseur:Number; public function onde(_arg1:Number){ grosseur = (_arg1 / 3); scal = ((grosseur - 1) / dure); this.alpha = 0.4; scalAlpha = (0.3 / dure); this.addEventListener(Event.ENTER_FRAME, this.grossir, false, 0, true); } private function grossir(_arg1:Event){ if (application.pause == false){ this.scaleX = (this.scaleX + scal); this.scaleY = (this.scaleY + scal); this.alpha = (this.alpha - scalAlpha); if (this.scaleX >= grosseur){ destructor(); }; }; } public function destructor(){ this.removeEventListener(Event.ENTER_FRAME, this.grossir); this.parent.removeChild(this); } } }//package game.projectile
Section 65
//ondeP1 (game.projectile.ondeP1) package game.projectile { public class ondeP1 extends onde { public function ondeP1(_arg1:Number){ super(_arg1); } } }//package game.projectile
Section 66
//ondeP2 (game.projectile.ondeP2) package game.projectile { public class ondeP2 extends onde { public function ondeP2(_arg1:Number){ super(_arg1); } } }//package game.projectile
Section 67
//P1Laser1 (game.projectile.P1Laser1) package game.projectile { public class P1Laser1 extends baseLaser { public function P1Laser1(_arg1:Number, _arg2:Number, _arg3:Number){ super(_arg1, _arg2, _arg3); } } }//package game.projectile
Section 68
//P2Laser1 (game.projectile.P2Laser1) package game.projectile { public class P2Laser1 extends baseLaser { public function P2Laser1(_arg1:Number, _arg2:Number, _arg3:Number){ super(_arg1, _arg2, _arg3); } } }//package game.projectile
Section 69
//MochiAd (mochi.as3.MochiAd) package mochi.as3 { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.system.*; public class MochiAd { public static function getVersion():String{ return (MochiServices.getVersion()); } public static function showClickAwayAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{ }, ad_finished:function ():void{ }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; var sendHostProgress:Boolean; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; _local3 = true; chk.started = getTimer(); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (this.root == null){ _local3 = true; }; if (_local3){ delete this.onEnterFrame; }; }; doOnEnterFrame(chk); } public static function _isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function _allowDomains(_arg1:String):String{ var _local2:String = _arg1.split("/")[2].split(":")[0]; if (Security.sandboxType == "application"){ return (_local2); }; Security.allowDomain("*"); Security.allowDomain(_local2); Security.allowInsecureDomain("*"); Security.allowInsecureDomain(_local2); return (_local2); } public static function unload(_arg1:Object):Boolean{ if (((_arg1.clip) && (_arg1.clip._mochiad))){ _arg1 = _arg1.clip; }; if (_arg1.origFrameRate != undefined){ _arg1.stage.frameRate = _arg1.origFrameRate; }; if (!_arg1._mochiad){ return (false); }; if (_arg1._mochiad._containerLCName != undefined){ _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"}); }; if (_arg1._mochiad.onUnload){ _arg1._mochiad.onUnload(); }; delete _arg1._mochiad_loaded; delete _arg1._mochiad; return (true); } public static function showInterLevelAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.play(); } else { throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }}; options = MochiAd._parseOptions(options, DEFAULTS); clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); options.ad_finished(); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; mc.unloadAd = function ():void{ MochiAd.unload(clip); }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = (_arg1 - 250); }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; chk["onEnterFrame"] = function ():void{ var _local4:Number; if (!this.parent){ delete this.onEnterFrame; delete this.fadeFunction; return; }; var _local1:Object = this.parent._mochiad_ctr; var _local2:Number = (getTimer() - this.started); var _local3:Boolean; if (!chk.showing){ _local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local4 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if (_local2 > chk.ad_timeout){ options.ad_failed(); _local3 = true; }; }; }; if (_local2 > chk.ad_msec){ _local3 = true; }; if (_local3){ if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; }; }; }; doOnEnterFrame(chk); } public static function _parseOptions(_arg1:Object, _arg2:Object):Object{ var _local4:String; var _local5:Array; var _local6:Number; var _local7:Array; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; if (_arg1){ for (_local4 in _arg1) { _local3[_local4] = _arg1[_local4]; }; }; if (_local3.clip == undefined){ throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite.")); }; _arg1 = _local3.clip.loaderInfo.parameters.mochiad_options; if (_arg1){ _local5 = _arg1.split("&"); _local6 = 0; while (_local6 < _local5.length) { _local7 = _local5[_local6].split("="); _local3[unescape(_local7[0])] = unescape(_local7[1]); _local6++; }; }; if (_local3.id == "test"){ trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); }; return (_local3); } public static function _cleanup(_arg1:Object):void{ var k:String; var lc:LocalConnection; var f:Function; var mc = _arg1; if (("lc" in mc)){ lc = mc.lc; f = function ():void{ try { lc.client = null; lc.close(); } catch(e:Error) { }; }; setTimeout(f, 0); }; var idx:Number = DisplayObjectContainer(mc).numChildren; while (idx > 0) { idx = (idx - 1); DisplayObjectContainer(mc).removeChildAt(idx); }; for (k in mc) { delete mc[k]; }; } public static function load(_arg1:Object):MovieClip{ var clip:Object; var k:String; var server:String; var hostname:String; var lc:LocalConnection; var name:String; var loader:Loader; var g:Function; var req:URLRequest; var v:Object; var options = _arg1; var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = MochiAd._parseOptions(options, DEFAULTS); options.swfv = 9; options.mav = MochiAd.getVersion(); clip = options.clip; if (!MochiAd._isNetworkAvailable()){ return (null); }; try { if (clip._mochiad_loaded){ return (null); }; } catch(e:Error) { throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; var depth:Number = options.depth; delete options.depth; var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth); var wh:Array = MochiAd._getRes(options, clip); options.res = ((wh[0] + "x") + wh[1]); options.server = (options.server + options.id); delete options.id; clip._mochiad_loaded = true; if (clip.loaderInfo.loaderURL.indexOf("http") == 0){ options.as3_swf = clip.loaderInfo.loaderURL; } else { trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal"); }; var lv:URLVariables = new URLVariables(); for (k in options) { v = options[k]; if (!(v is Function)){ lv[k] = v; }; }; server = lv.server; delete lv.server; hostname = _allowDomains(server); lc = new LocalConnection(); lc.client = mc; name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_"); lc.allowDomain("*", "localhost"); lc.allowInsecureDomain("*", "localhost"); lc.connect(name); mc.lc = lc; mc.lcName = name; lv.lc = name; lv.st = getTimer(); loader = new Loader(); g = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); MochiAd.unload(clip); }; loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g); req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime())); req.contentType = "application/x-www-form-urlencoded"; req.method = URLRequestMethod.POST; req.data = lv; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function (_arg1:IOErrorEvent):void{ trace("[MochiAds] Blocked URL"); }); loader.load(req); mc.addChild(loader); mc._mochiad_ctr = loader; return (mc); } public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return (undefined); }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; if (typeof(_arg1[_local4[_local5]]) == "function"){ return (_arg1[_local4[_local5]].apply(_arg1, _arg3)); }; return (undefined); } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{ var _local4:MovieClip = new MovieClip(); if (((false) && (_arg3))){ _arg1.addChildAt(_local4, _arg3); } else { _arg1.addChild(_local4); }; _arg1[_arg2] = _local4; _local4["_name"] = _arg2; return (_local4); } public static function _getRes(_arg1:Object, _arg2:Object):Array{ var _local6:Array; var _local3:Object = _arg2.getBounds(_arg2.root); var _local4:Number = 0; var _local5:Number = 0; if (typeof(_arg1.res) != "undefined"){ _local6 = _arg1.res.split("x"); _local4 = parseFloat(_local6[0]); _local5 = parseFloat(_local6[1]); } else { _local4 = (_local3.xMax - _local3.xMin); _local5 = (_local3.yMax - _local3.yMin); }; if ((((_local4 == 0)) || ((_local5 == 0)))){ _local4 = _arg2.stage.stageWidth; _local5 = _arg2.stage.stageHeight; }; return ([_local4, _local5]); } public static function adShowing(_arg1:Object):void{ _arg1.origFrameRate = _arg1.stage.frameRate; _arg1.stage.frameRate = 30; } public static function getValue(_arg1:Object, _arg2:String):Object{ var _local3:Array = _arg2.split("."); var _local4:Number = 0; while (_local4 < (_local3.length - 1)) { if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){ return (undefined); }; _arg1 = _arg1[_local3[_local4]]; _local4++; }; return (_arg1[_local3[_local4]]); } public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{ var _local4:Object; var _local5:Object; switch (_arg3.id){ case "setValue": MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value); break; case "getValue": _local4 = MochiAd.getValue(_arg1, _arg3.objectName); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4); break; case "runMethod": _local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args); _arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5); break; default: trace(("[mochiads rpc] unknown rpc id: " + _arg3.id)); }; } public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{ var _local4:Array = _arg2.split("."); var _local5:Number = 0; while (_local5 < (_local4.length - 1)) { if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){ return; }; _arg1 = _arg1[_local4[_local5]]; _local5++; }; _arg1[_local4[_local5]] = _arg3; } public static function showPreGameAd(_arg1:Object):void{ var clip:Object; var mc:MovieClip; var chk:MovieClip; var complete:Boolean; var unloaded:Boolean; var sendHostProgress:Boolean; var fn:Function; var r:MovieClip; var options = _arg1; var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{ if ((this.clip is MovieClip)){ this.clip.stop(); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_finished:function ():void{ if ((this.clip is MovieClip)){ this.clip.gotoAndPlay(40); } else { throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers.")); }; }, ad_loaded:function (_arg1:Number, _arg2:Number):void{ }, ad_failed:function ():void{ trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_skipped:function ():void{ }, ad_progress:function (_arg1:Number):void{ }, progress_override:function (_arg1:Object):Number{ return (NaN); }, bar_offset:0}; options = MochiAd._parseOptions(options, DEFAULTS); if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){ options.ad_started(); fn = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); return; }; clip = options.clip; var ad_msec:Number = 11000; var ad_timeout:Number = options.ad_timeout; delete options.ad_timeout; var fadeout_time:Number = options.fadeout_time; delete options.fadeout_time; if (!MochiAd.load(options)){ options.ad_failed(); options.ad_finished(); return; }; options.ad_started(); mc = clip._mochiad; mc["onUnload"] = function ():void{ MochiAd._cleanup(mc); var fn:Function = function ():void{ options.ad_finished(); }; setTimeout(fn, 100); }; var wh:Array = MochiAd._getRes(options, clip); var w:Number = wh[0]; var h:Number = wh[1]; mc.x = (w * 0.5); mc.y = (h * 0.5); chk = createEmptyMovieClip(mc, "_mochiad_wait", 3); chk.x = (w * -0.5); chk.y = (h * -0.5); var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4); if (options.no_progress_bar){ bar.visible = false; delete options.no_progress_bar; } else { bar.x = (10 + options.bar_offset); bar.y = (h - 20); }; var bar_w:Number = ((w - bar.x) - 10); var bar_color:Number = options.color; delete options.color; var bar_background:Number = options.background; delete options.background; var bar_outline:Number = options.outline; delete options.outline; var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1); var backing:Object = backing_mc.graphics; backing.beginFill(bar_background); backing.moveTo(0, 0); backing.lineTo(bar_w, 0); backing.lineTo(bar_w, 10); backing.lineTo(0, 10); backing.lineTo(0, 0); backing.endFill(); var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2); var inside:Object = inside_mc.graphics; inside.beginFill(bar_color); inside.moveTo(0, 0); inside.lineTo(bar_w, 0); inside.lineTo(bar_w, 10); inside.lineTo(0, 10); inside.lineTo(0, 0); inside.endFill(); inside_mc.scaleX = 0; var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3); var outline:Object = outline_mc.graphics; outline.lineStyle(0, bar_outline, 100); outline.moveTo(0, 0); outline.lineTo(bar_w, 0); outline.lineTo(bar_w, 10); outline.lineTo(0, 10); outline.lineTo(0, 0); chk.ad_msec = ad_msec; chk.ad_timeout = ad_timeout; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function ():void{ var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time))); if (_local1 > 0){ this.parent.alpha = (_local1 * 0.01); } else { MochiAd.unload(clip); delete this["onEnterFrame"]; }; }; complete = false; unloaded = false; var progress:Number = Math.min(1, options.progress_override(clip)); var f:Function = function (_arg1:Event):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); complete = true; if (unloaded){ MochiAd.unload(clip); }; }; if (!isNaN(progress)){ complete = (progress == 1); } else { if (clip.loaderInfo.bytesLoaded == clip.loaderInfo.bytesTotal){ complete = true; } else { if ((clip.root is MovieClip)){ r = (clip.root as MovieClip); if (r.framesLoaded >= r.totalFrames){ complete = true; } else { clip.loaderInfo.addEventListener(Event.COMPLETE, f); }; } else { clip.loaderInfo.addEventListener(Event.COMPLETE, f); }; }; }; mc.unloadAd = function ():void{ unloaded = true; if (complete){ MochiAd.unload(clip); }; }; mc.adLoaded = options.ad_loaded; mc.adSkipped = options.ad_skipped; mc.adjustProgress = function (_arg1:Number):void{ var _local2:Object = mc._mochiad_wait; _local2.server_control = true; _local2.showing = true; _local2.started = getTimer(); _local2.ad_msec = _arg1; }; mc.rpc = function (_arg1:Number, _arg2:Object):void{ MochiAd.rpc(clip, _arg1, _arg2); }; mc.rpcTestFn = function (_arg1:String):Object{ trace(("[MOCHIAD rpcTestFn] " + _arg1)); return (_arg1); }; mc.regContLC = function (_arg1:String):void{ mc._containerLCName = _arg1; }; sendHostProgress = false; mc.sendHostLoadProgress = function (_arg1:String):void{ sendHostProgress = true; }; chk["onEnterFrame"] = function ():void{ var _local12:Number; if (((!(this.parent)) || (!(this.parent.parent)))){ delete this["onEnterFrame"]; return; }; var _local1:Object = this.parent.parent.root; var _local2:Object = this.parent._mochiad_ctr; var _local3:Number = (getTimer() - this.started); var _local4:Boolean; var _local5:Number = _local1.loaderInfo.bytesTotal; var _local6:Number = _local1.loaderInfo.bytesLoaded; var _local7:Number = Math.min(1, options.progress_override(_local1)); if (_local7 == 1){ complete = true; }; if (complete){ _local6 = Math.max(1, _local6); _local5 = _local6; }; var _local8:Number = ((100 * _local6) / _local5); if (!isNaN(_local7)){ _local8 = (100 * _local7); }; var _local9:Number = ((100 * _local3) / chk.ad_msec); var _local10:Object = this._mochiad_bar._inside; var _local11:Number = Math.min(100, Math.min(((_local8) || (0)), _local9)); _local11 = Math.max(this.last_pcnt, _local11); this.last_pcnt = _local11; _local10.scaleX = (_local11 * 0.01); options.ad_progress(_local11); if (sendHostProgress){ clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local8}); if (_local8 >= 100){ sendHostProgress = false; }; }; if (!chk.showing){ _local12 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal; if (_local12 > 0){ chk.showing = true; chk.started = getTimer(); MochiAd.adShowing(clip); } else { if ((((_local3 > chk.ad_timeout)) && ((_local8 == 100)))){ options.ad_failed(); _local4 = true; }; }; }; if (_local3 > chk.ad_msec){ _local4 = true; }; if (((complete) && (_local4))){ if (unloaded){ MochiAd.unload(_local1); } else { if (this.server_control){ delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; }; }; }; }; doOnEnterFrame(chk); } public static function showPreloaderAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); MochiAd.showPreGameAd(_arg1); } public static function showTimedAd(_arg1:Object):void{ trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); MochiAd.showInterLevelAd(_arg1); } public static function doOnEnterFrame(_arg1:MovieClip):void{ var mc = _arg1; var f:Function = function (_arg1:Object):void{ if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){ mc.onEnterFrame(); } else { _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; }; mc.addEventListener(Event.ENTER_FRAME, f); } } }//package mochi.as3
Section 70
//MochiCoins (mochi.as3.MochiCoins) package mochi.as3 { public class MochiCoins { public static const STORE_HIDE:String = "StoreHide"; public static const LOGGED_IN:String = "LoggedIn"; public static const STORE_ITEMS:String = "StoreItems"; public static const NO_USER:String = "NoUser"; public static const PROPERTIES_SIZE:String = "PropertiesSize"; public static const ITEM_NEW:String = "ItemNew"; public static const USER_INFO:String = "UserInfo"; public static const IO_ERROR:String = "IOError"; public static const ITEM_OWNED:String = "ItemOwned"; public static const PROPERTIES_SAVED:String = "PropertySaved"; public static const WIDGET_LOADED:String = "WidgetLoaded"; public static const ERROR:String = "Error"; public static const LOGGED_OUT:String = "LoggedOut"; public static const PROFILE_SHOW:String = "ProfileShow"; public static const LOGIN_HIDE:String = "LoginHide"; public static const LOGIN_SHOW:String = "LoginShow"; public static const STORE_SHOW:String = "StoreShow"; public static const PROFILE_HIDE:String = "ProfileHide"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); public static function showItem(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showItem call must pass an Object with an item key"); return; }; MochiServices.bringToTop(); MochiServices.send("coins_showItem", {options:_arg1}, null, null); } public static function saveUserProperties(_arg1:Object):void{ MochiServices.send("coins_saveUserProperties", _arg1); } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function showLoginWidget(_arg1:Object=null):void{ MochiServices.setContainer(); MochiServices.bringToTop(); MochiServices.send("coins_showLoginWidget", {options:_arg1}); } public static function getStoreItems():void{ MochiServices.send("coins_getStoreItems"); } public static function getVersion():String{ return (MochiServices.getVersion()); } public static function showStore(_arg1:Object=null):void{ MochiServices.bringToTop(); MochiServices.send("coins_showStore", {options:_arg1}, null, null); } public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function getUserInfo():void{ MochiServices.send("coins_getUserInfo"); } public static function hideLoginWidget():void{ MochiServices.send("coins_hideLoginWidget"); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function showVideo(_arg1:Object=null):void{ if (((!(_arg1)) || (!((typeof(_arg1.item) == "string"))))){ trace("ERROR: showVideo call must pass an Object with an item key"); return; }; MochiServices.bringToTop(); MochiServices.send("coins_showVideo", {options:_arg1}, null, null); } } }//package mochi.as3
Section 71
//MochiEventDispatcher (mochi.as3.MochiEventDispatcher) package mochi.as3 { public class MochiEventDispatcher { private var eventTable:Object; public function MochiEventDispatcher():void{ eventTable = {}; } public function triggerEvent(_arg1:String, _arg2:Object):void{ var _local3:Object; if (eventTable[_arg1] == undefined){ return; }; for (_local3 in eventTable[_arg1]) { var _local6 = eventTable[_arg1]; _local6[_local3](_arg2); }; } public function removeEventListener(_arg1:String, _arg2:Function):void{ var _local3:Object; if (eventTable[_arg1] == undefined){ eventTable[_arg1] = []; return; }; for (_local3 in eventTable[_arg1]) { if (eventTable[_arg1][_local3] != _arg2){ } else { eventTable[_arg1].splice(Number(_local3), 1); }; }; } public function addEventListener(_arg1:String, _arg2:Function):void{ removeEventListener(_arg1, _arg2); eventTable[_arg1].push(_arg2); } } }//package mochi.as3
Section 72
//MochiEvents (mochi.as3.MochiEvents) package mochi.as3 { import flash.display.*; public class MochiEvents { public static const ALIGN_BOTTOM_LEFT:String = "ALIGN_BL"; public static const FORMAT_LONG:String = "LongForm"; public static const ALIGN_BOTTOM:String = "ALIGN_B"; public static const ACHIEVEMENT_RECEIVED:String = "AchievementReceived"; public static const FORMAT_SHORT:String = "ShortForm"; public static const ALIGN_TOP_RIGHT:String = "ALIGN_TR"; public static const ALIGN_BOTTOM_RIGHT:String = "ALIGN_BR"; public static const ALIGN_TOP:String = "ALIGN_T"; public static const ALIGN_LEFT:String = "ALIGN_L"; public static const ALIGN_RIGHT:String = "ALIGN_R"; public static const ALIGN_TOP_LEFT:String = "ALIGN_TL"; public static const ALIGN_CENTER:String = "ALIGN_C"; private static var _dispatcher:MochiEventDispatcher = new MochiEventDispatcher(); private static var gameStart:Number; private static var levelStart:Number; public static function addEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.addEventListener(_arg1, _arg2); } public static function removeEventListener(_arg1:String, _arg2:Function):void{ _dispatcher.removeEventListener(_arg1, _arg2); } public static function startSession(_arg1:String):void{ MochiServices.send("events_beginSession", {achievementID:_arg1}, null, null); } public static function triggerEvent(_arg1:String, _arg2:Object):void{ _dispatcher.triggerEvent(_arg1, _arg2); } public static function setNotifications(_arg1:MovieClip, _arg2:Object):void{ var _local4:Object; var _local3:Object = {}; for (_local4 in _arg2) { _local3[_local4] = _arg2[_local4]; }; _local3.clip = _arg1; MochiServices.send("events_setNotifications", _local3, null, null); } public static function endGame():void{ var _local1:Number = (new Date().time - gameStart); trigger("end_game", {time:_local1}); } public static function startGame():void{ gameStart = new Date().time; trigger("start_game"); } public static function trigger(_arg1:String, _arg2:Object=null):void{ if (_arg2 == null){ _arg2 = {}; } else { if (_arg2["kind"] != undefined){ trace("WARNING: optional arguements package contains key 'id', it will be overwritten"); _arg2["kind"] = _arg1; }; }; MochiServices.send("events_triggerEvent", {eventObject:_arg2}, null, null); } public static function getVersion():String{ return (MochiServices.getVersion()); } public static function startLevel():void{ levelStart = new Date().time; trigger("start_level"); } public static function endLevel():void{ var _local1:Number = (new Date().time - levelStart); trigger("end_level", {time:_local1}); } } }//package mochi.as3
Section 73
//MochiServices (mochi.as3.MochiServices) package mochi.as3 { import flash.display.*; import flash.events.*; import flash.utils.*; import flash.net.*; import flash.geom.*; import flash.system.*; public class MochiServices { private static var _container:Object; private static var _connected:Boolean = false; private static var _swfVersion:String; private static var _preserved:Object; public static var netupAttempted:Boolean = false; private static var _sendChannel:LocalConnection; public static var servicesSync:MochiSync = new MochiSync(); private static var _clip:MovieClip; private static var _id:String; private static var _services:String = "services.swf"; private static var _servURL:String = "http://www.mochiads.com/static/lib/services/"; public static var widget:Boolean = false; private static var _timer:Timer; private static var _sendChannelName:String; private static var _loader:Loader; private static var _connecting:Boolean = false; private static var _mochiLocalConnection:MovieClip; private static var _listenChannelName:String = "__ms_"; public static var onError:Object; public static var netup:Boolean = true; private static var _mochiLC:String = "MochiLC.swf"; public static function isNetworkAvailable():Boolean{ return (!((Security.sandboxType == "localWithFile"))); } public static function get connected():Boolean{ return (_connected); } private static function onReceive(_arg1:Object):void{ var methodName:String; var pkg = _arg1; var cb:String = pkg.callbackID; var cblst:Object = _clip._callbacks[cb]; if (!cblst){ return; }; var method:* = cblst.callbackMethod; methodName = ""; var obj:Object = cblst.callbackObject; if (((obj) && ((typeof(method) == "string")))){ methodName = method; if (obj[method] != null){ method = obj[method]; } else { trace((("Error: Method " + method) + " does not exist.")); }; }; if (method != undefined){ try { method.apply(obj, pkg.args); } catch(error:Error) { trace(((("Error invoking callback method '" + methodName) + "': ") + error.toString())); }; } else { if (obj != null){ try { obj(pkg.args); } catch(error:Error) { trace(("Error invoking method on object: " + error.toString())); }; }; }; delete _clip._callbacks[cb]; } public static function get childClip():Object{ return (_clip); } public static function send(_arg1:String, _arg2:Object=null, _arg3:Object=null, _arg4:Object=null):void{ if (_connected){ _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); } else { if ((((_clip == null)) || (!(_connecting)))){ trace(("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + _arg1)); handleError(_arg2, _arg3, _arg4); flush(true); return; }; _clip._queue.push({methodName:_arg1, args:_arg2, callbackID:_clip._nextcallbackID}); }; if (_clip != null){ if (((!((_clip._callbacks == null))) && (!((_clip._nextcallbackID == null))))){ _clip._callbacks[_clip._nextcallbackID] = {callbackObject:_arg3, callbackMethod:_arg4}; _clip._nextcallbackID++; }; }; } private static function init(_arg1:String, _arg2:Object):void{ _id = _arg1; if (_arg2 != null){ _container = _arg2; loadCommunicator(_arg1, _container); }; } private static function clickMovie(_arg1:String, _arg2:Function):MovieClip{ var _local4:int; var _local14:Loader; var _local3:Array = [150, 21, 0, 7, 1, 0, 0, 0, 0, 98, 116, 110, 0, 7, 2, 0, 0, 0, 0, 116, 104, 105, 115, 0, 28, 150, 22, 0, 0, 99, 114, 101, 97, 116, 101, 69, 109, 112, 116, 121, 77, 111, 118, 105, 101, 67, 108, 105, 112, 0, 82, 135, 1, 0, 0, 23, 150, 13, 0, 4, 0, 0, 111, 110, 82, 101, 108, 101, 97, 115, 101, 0, 142, 8, 0, 0, 0, 0, 2, 42, 0, 114, 0, 150, 17, 0, 0, 32, 0, 7, 1, 0, 0, 0, 8, 0, 0, 115, 112, 108, 105, 116, 0, 82, 135, 1, 0, 1, 23, 150, 7, 0, 4, 1, 7, 0, 0, 0, 0, 78, 150, 8, 0, 0, 95, 98, 108, 97, 110, 107, 0, 154, 1, 0, 0, 150, 7, 0, 0, 99, 108, 105, 99, 107, 0, 150, 7, 0, 4, 1, 7, 1, 0, 0, 0, 78, 150, 27, 0, 7, 2, 0, 0, 0, 7, 0, 0, 0, 0, 0, 76, 111, 99, 97, 108, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 64, 150, 6, 0, 0, 115, 101, 110, 100, 0, 82, 79, 150, 15, 0, 4, 0, 0, 95, 97, 108, 112, 104, 97, 0, 7, 0, 0, 0, 0, 79, 150, 23, 0, 7, 0xFF, 0, 0xFF, 0, 7, 1, 0, 0, 0, 4, 0, 0, 98, 101, 103, 105, 110, 70, 105, 108, 108, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 109, 111, 118, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 100, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 100, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 25, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, 2, 0, 0, 0, 4, 0, 0, 108, 105, 110, 101, 84, 111, 0, 82, 23, 150, 16, 0, 7, 0, 0, 0, 0, 4, 0, 0, 101, 110, 100, 70, 105, 108, 108, 0, 82, 23]; var _local5:Array = [104, 0, 31, 64, 0, 7, 208, 0, 0, 12, 1, 0, 67, 2, 0xFF, 0xFF, 0xFF, 63, 3]; var _local6:Array = [0, 64, 0, 0, 0]; var _local7:MovieClip = new MovieClip(); var _local8:LocalConnection = new LocalConnection(); var _local9:String = ((("_click_" + Math.floor((Math.random() * 999999))) + "_") + Math.floor(new Date().time)); _local8 = new LocalConnection(); _local7.lc = _local8; _local7.click = _arg2; _local8.client = _local7; _local8.connect(_local9); var _local10:ByteArray = new ByteArray(); var _local11:ByteArray = new ByteArray(); _local11.endian = Endian.LITTLE_ENDIAN; _local11.writeShort(1); _local11.writeUTFBytes(((_arg1 + " ") + _local9)); _local11.writeByte(0); var _local12:uint = ((_local3.length + _local11.length) + 4); var _local13:uint = (_local12 + 35); _local10.endian = Endian.LITTLE_ENDIAN; _local10.writeUTFBytes("FWS"); _local10.writeByte(8); _local10.writeUnsignedInt(_local13); for each (_local4 in _local5) { _local10.writeByte(_local4); }; _local10.writeUnsignedInt(_local12); _local10.writeByte(136); _local10.writeShort(_local11.length); _local10.writeBytes(_local11); for each (_local4 in _local3) { _local10.writeByte(_local4); }; for each (_local4 in _local6) { _local10.writeByte(_local4); }; _local14 = new Loader(); _local14.loadBytes(_local10); _local7.addChild(_local14); return (_local7); } public static function stayOnTop():void{ _container.addEventListener(Event.ENTER_FRAME, MochiServices.bringToTop, false, 0, true); if (_clip != null){ _clip.visible = true; }; } public static function addLinkEvent(_arg1:String, _arg2:String, _arg3:DisplayObjectContainer, _arg4:Function=null):void{ var avm1Click:DisplayObject; var x:String; var req:URLRequest; var loader:Loader; var setURL:Function; var err:Function; var complete:Function; var url = _arg1; var burl = _arg2; var btn = _arg3; var onClick = _arg4; var vars:Object = new Object(); vars["mav"] = getVersion(); vars["swfv"] = "9"; vars["swfurl"] = btn.loaderInfo.loaderURL; vars["fv"] = Capabilities.version; vars["os"] = Capabilities.os; vars["lang"] = Capabilities.language; vars["scres"] = ((Capabilities.screenResolutionX + "x") + Capabilities.screenResolutionY); var s = "?"; var i:Number = 0; for (x in vars) { if (i != 0){ s = (s + "&"); }; i = (i + 1); s = (((s + x) + "=") + escape(vars[x])); }; req = new URLRequest("http://x.mochiads.com/linkping.swf"); loader = new Loader(); setURL = function (_arg1:String):void{ if (avm1Click){ btn.removeChild(avm1Click); }; avm1Click = clickMovie(_arg1, onClick); var _local2:Rectangle = btn.getBounds(btn); btn.addChild(avm1Click); avm1Click.x = _local2.x; avm1Click.y = _local2.y; avm1Click.scaleX = (0.01 * _local2.width); avm1Click.scaleY = (0.01 * _local2.height); }; err = function (_arg1:Object):void{ netup = false; _arg1.target.removeEventListener(_arg1.type, arguments.callee); setURL(burl); }; complete = function (_arg1:Object):void{ _arg1.target.removeEventListener(_arg1.type, arguments.callee); }; if (netup){ setURL((url + s)); } else { setURL(burl); }; if (!((netupAttempted) || (_connected))){ netupAttempted = true; loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, err); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.load(req); }; } public static function warnID(_arg1:String, _arg2:Boolean):void{ _arg1 = _arg1.toLowerCase(); if (_arg1.length != 16){ trace((("WARNING: " + (_arg2) ? "board" : "game") + " ID is not the appropriate length")); return; } else { if (_arg1 == "1e113c7239048b3f"){ if (_arg2){ trace("WARNING: Using testing board ID"); } else { trace("WARNING: Using testing board ID as game ID"); }; return; } else { if (_arg1 == "84993a1de4031cd8"){ if (_arg2){ trace("WARNING: Using testing game ID as board ID"); } else { trace("WARNING: Using testing game ID"); }; return; }; }; }; var _local3:Number = 0; while (_local3 < _arg1.length) { switch (_arg1.charAt(_local3)){ case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": case "a": case "b": case "c": case "d": case "e": case "f": break; default: trace(("WARNING: Board ID contains illegal characters: " + _arg1)); return; }; _local3++; }; } public static function disconnect():void{ if (((_connected) || (_connecting))){ if (_clip != null){ if (_clip.parent != null){ if ((_clip.parent is Sprite)){ Sprite(_clip.parent).removeChild(_clip); _clip = null; }; }; }; _connecting = (_connected = false); flush(true); try { _mochiLocalConnection.close(); } catch(error:Error) { }; }; if (_timer != null){ try { _timer.stop(); } catch(error:Error) { }; }; } public static function allowDomains(_arg1:String):String{ var _local2:String; if (Security.sandboxType != "application"){ Security.allowDomain("*"); Security.allowInsecureDomain("*"); }; if (_arg1.indexOf("http://") != -1){ _local2 = _arg1.split("/")[2].split(":")[0]; if (Security.sandboxType != "application"){ Security.allowDomain(_local2); Security.allowInsecureDomain(_local2); }; }; return (_local2); } public static function getVersion():String{ return ("3.3 as3"); } public static function doClose():void{ _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); } private static function flush(_arg1:Boolean):void{ var _local2:Object; var _local3:Object; if (((_clip) && (_clip._queue))){ while (_clip._queue.length > 0) { _local2 = _clip._queue.shift(); _local3 = null; if (_local2 != null){ if (_local2.callbackID != null){ _local3 = _clip._callbacks[_local2.callbackID]; }; delete _clip._callbacks[_local2.callbackID]; if (((_arg1) && (!((_local3 == null))))){ handleError(_local2.args, _local3.callbackObject, _local3.callbackMethod); }; }; }; }; } public static function get id():String{ return (_id); } private static function onEvent(_arg1:Object):void{ var _local2:String = _arg1.target; var _local3:String = _arg1.event; switch (_local2){ case "events": MochiEvents.triggerEvent(_arg1.event, _arg1.args); break; case "coins": MochiCoins.triggerEvent(_arg1.event, _arg1.args); break; case "sync": servicesSync.triggerEvent(_arg1.event, _arg1.args); break; }; } private static function urlOptions(_arg1:Object):Object{ var _local3:String; var _local4:Array; var _local5:Number; var _local6:Array; var _local2:Object = {}; if (_arg1.stage){ _local3 = _arg1.stage.loaderInfo.parameters.mochiad_options; } else { _local3 = _arg1.loaderInfo.parameters.mochiad_options; }; if (_local3){ _local4 = _local3.split("&"); _local5 = 0; while (_local5 < _local4.length) { _local6 = _local4[_local5].split("="); _local2[unescape(_local6[0])] = unescape(_local6[1]); _local5++; }; }; return (_local2); } public static function setContainer(_arg1:Object=null, _arg2:Boolean=true):void{ if (_arg1 != null){ if ((_arg1 is Sprite)){ _container = _arg1; }; }; if (_arg2){ if ((_container is Sprite)){ Sprite(_container).addChild(_clip); }; }; } private static function handleError(_arg1:Object, _arg2:Object, _arg3:Object):void{ var args = _arg1; var callbackObject = _arg2; var callbackMethod = _arg3; if (args != null){ if (args.onError != null){ args.onError.apply(null, ["NotConnected"]); }; if (((!((args.options == null))) && (!((args.options.onError == null))))){ args.options.onError.apply(null, ["NotConnected"]); }; }; if (callbackMethod != null){ args = {}; args.error = true; args.errorCode = "NotConnected"; if (((!((callbackObject == null))) && ((callbackMethod is String)))){ try { var _local5 = callbackObject; _local5[callbackMethod](args); } catch(error:Error) { }; } else { if (callbackMethod != null){ try { callbackMethod.apply(args); } catch(error:Error) { }; }; }; }; } private static function loadError(_arg1:Object):void{ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load."); MochiServices.disconnect(); MochiServices.onError("IOError"); } private static function initComChannels():void{ if (!_connected){ trace("[SERVICES_API] connected!"); _connecting = false; _connected = true; _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"}); _mochiLocalConnection.send(_sendChannelName, "onReceive", {methodName:"registerGame", preserved:_preserved, id:_id, clip:_container, version:getVersion(), parentURL:_container.loaderInfo.loaderURL}); _clip.onReceive = onReceive; _clip.onEvent = onEvent; _clip.onError = function ():void{ MochiServices.onError("IOError"); }; while (_clip._queue.length > 0) { _mochiLocalConnection.send(_sendChannelName, "onReceive", _clip._queue.shift()); }; }; } private static function loadLCBridge(_arg1:Object):void{ var loader:Loader; var clip = _arg1; loader = new Loader(); var mochiLCURL:String = (_servURL + _mochiLC); var req:URLRequest = new URLRequest(mochiLCURL); var complete:Function = function (_arg1:Object):void{ _mochiLocalConnection = MovieClip(loader.content); listen(); }; loader.contentLoaderInfo.addEventListener(Event.COMPLETE, complete); loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError); loader.load(req); clip.addChild(loader); } private static function listen():void{ _mochiLocalConnection.connect(_listenChannelName); _clip.handshake = function (_arg1:Object):void{ MochiServices.comChannelName = _arg1.newChannel; }; trace("Waiting for MochiAds services to connect..."); } public static function get clip():Object{ return (_container); } public static function set comChannelName(_arg1:String):void{ if (_arg1 != null){ if (_arg1.length > 3){ _sendChannelName = (_arg1 + "_fromgame"); initComChannels(); }; }; } private static function loadCommunicator(_arg1:String, _arg2:Object):MovieClip{ var _local3:String = ("_mochiservices_com_" + _arg1); if (_clip != null){ return (_clip); }; if (!MochiServices.isNetworkAvailable()){ return (null); }; if (urlOptions(_arg2).servURL){ _servURL = urlOptions(_arg2).servURL; }; var _local4:String = (_servURL + _services); if (urlOptions(_arg2).servicesURL){ _local4 = urlOptions(_arg2).servicesURL; }; _listenChannelName = (_listenChannelName + ((Math.floor(new Date().time) + "_") + Math.floor((Math.random() * 99999)))); MochiServices.allowDomains(_local4); _clip = createEmptyMovieClip(_arg2, _local3, 10336, false); loadLCBridge(_clip); _loader = new Loader(); _loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, loadError); var _local5:URLRequest = new URLRequest(_local4); var _local6:URLVariables = new URLVariables(); _local6.listenLC = _listenChannelName; _local6.mochiad_options = _arg2.loaderInfo.parameters.mochiad_options; _local6.api_version = getVersion(); if (widget){ _local6.widget = true; }; _local5.data = _local6; _loader.load(_local5); _clip.addChild(_loader); _clip._mochiservices_com = _loader; _sendChannel = new LocalConnection(); _clip._queue = []; _clip._nextcallbackID = 0; _clip._callbacks = {}; _timer = new Timer(10000, 1); _timer.addEventListener(TimerEvent.TIMER, connectWait); _timer.start(); return (_clip); } public static function connect(_arg1:String, _arg2:Object, _arg3:Object=null):void{ var id = _arg1; var clip = _arg2; var onError = _arg3; warnID(id, false); if ((clip is DisplayObject)){ if (((!(_connected)) && ((_clip == null)))){ trace("MochiServices Connecting..."); _connecting = true; init(id, clip); }; } else { trace("Error, MochiServices requires a Sprite, Movieclip or instance of the stage."); }; if (onError != null){ MochiServices.onError = onError; } else { if (MochiServices.onError == null){ MochiServices.onError = function (_arg1:String):void{ trace(_arg1); }; }; }; } public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Boolean=true):MovieClip{ var parent = _arg1; var name = _arg2; var depth = _arg3; var doAdd = _arg4; var mc:MovieClip = new MovieClip(); if (doAdd){ if (((false) && (depth))){ parent.addChildAt(mc, depth); } else { parent.addChild(mc); }; }; try { parent[name] = mc; } catch(e:Error) { throw (new Error("MochiServices requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic.")); }; mc["_name"] = name; return (mc); } public static function bringToTop(_arg1:Event=null):void{ var e = _arg1; if (((!((MochiServices.clip == null))) && (!((MochiServices.childClip == null))))){ try { if (MochiServices.clip.numChildren > 1){ MochiServices.clip.setChildIndex(MochiServices.childClip, (MochiServices.clip.numChildren - 1)); }; } catch(errorObject:Error) { trace("Warning: Depth sort error."); _container.removeEventListener(Event.ENTER_FRAME, MochiServices.bringToTop); }; }; } public static function connectWait(_arg1:TimerEvent):void{ if (!_connected){ _clip._mochiad_ctr_failed = true; trace("MochiServices could not load. (timeout)"); MochiServices.disconnect(); MochiServices.onError("IOError"); }; } } }//package mochi.as3
Section 74
//MochiSync (mochi.as3.MochiSync) package mochi.as3 { import flash.utils.*; public dynamic class MochiSync extends Proxy { private var _syncContainer:Object; public static var SYNC_PROPERTY:String = "UpdateProperty"; public static var SYNC_REQUEST:String = "SyncRequest"; public function MochiSync():void{ _syncContainer = {}; } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function setProperty(_arg1, _arg2):void{ if (_syncContainer[_arg1] == _arg2){ return; }; var _local3:String = _arg1.toString(); _syncContainer[_local3] = _arg2; MochiServices.send("sync_propUpdate", {name:_local3, value:_arg2}); } override "http://www.adobe.com/2006/actionscript/flash/proxy"?? function getProperty(_arg1){ return (_syncContainer[_arg1]); } public function triggerEvent(_arg1:String, _arg2:Object):void{ switch (_arg1){ case SYNC_REQUEST: MochiServices.send("sync_syncronize", _syncContainer); break; case SYNC_PROPERTY: _syncContainer[_arg2.name] = _arg2.value; break; }; } } }//package mochi.as3
Section 75
//diaFrontLaser2btn_45 (Pixelvader_fla.diaFrontLaser2btn_45) package Pixelvader_fla { import flash.display.*; public dynamic class diaFrontLaser2btn_45 extends MovieClip { public var back:MovieClip; public function diaFrontLaser2btn_45(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 76
//diaFrontLaserbtn_31 (Pixelvader_fla.diaFrontLaserbtn_31) package Pixelvader_fla { import flash.display.*; public dynamic class diaFrontLaserbtn_31 extends MovieClip { public var back:MovieClip; public function diaFrontLaserbtn_31(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 77
//diaRearLaser2btn_46 (Pixelvader_fla.diaRearLaser2btn_46) package Pixelvader_fla { import flash.display.*; public dynamic class diaRearLaser2btn_46 extends MovieClip { public var back:MovieClip; public function diaRearLaser2btn_46(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 78
//diaRearLaserbtn_32 (Pixelvader_fla.diaRearLaserbtn_32) package Pixelvader_fla { import flash.display.*; public dynamic class diaRearLaserbtn_32 extends MovieClip { public var back:MovieClip; public function diaRearLaserbtn_32(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 79
//fontLaser2btn_49 (Pixelvader_fla.fontLaser2btn_49) package Pixelvader_fla { import flash.display.*; public dynamic class fontLaser2btn_49 extends MovieClip { public var back:MovieClip; public function fontLaser2btn_49(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 80
//fontLaserbtn_27 (Pixelvader_fla.fontLaserbtn_27) package Pixelvader_fla { import flash.display.*; public dynamic class fontLaserbtn_27 extends MovieClip { public var back:MovieClip; public function fontLaserbtn_27(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 81
//MainTimeline (Pixelvader_fla.MainTimeline) package Pixelvader_fla { import flash.display.*; import flash.events.*; import mochi.as3.*; import flash.utils.*; import flash.media.*; import flash.ui.*; import flash.net.*; import game.general.*; import flash.text.*; import flash.geom.*; import flash.system.*; import adobe.utils.*; import flash.accessibility.*; import flash.errors.*; import flash.external.*; import flash.filters.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.xml.*; public dynamic class MainTimeline extends MovieClip { public var loaderbar:mcLoading; public var localornot:String; public var rightClickMenu:ContextMenu; public var btnSponsor:SimpleButton; public var sponsorLink:URLRequest; public var appli:application; public function MainTimeline(){ addFrameScript(0, frame1, 9, frame10, 39, frame40, 129, frame130); } function frame130(){ appli = new application(); addChild(appli); stop(); } function frame1(){ stop(); rightClickMenu = new ContextMenu(); rightClickMenu.hideBuiltInItems(); rightClickMenu.builtInItems.quality = true; this.contextMenu = rightClickMenu; localornot = this.root.loaderInfo.url.split("/")[0]; if (localornot == "file:"){ addEventListener(Event.ENTER_FRAME, preloader); } else { loaderbar.visible = false; MochiAd.showPreGameAd({clip:root, id:"4423ad02cc0722dd", res:"500x600"}); }; } function frame40(){ sponsorLink = new URLRequest("http://www.aceshootinggames.com/"); btnSponsor.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){ navigateToURL(sponsorLink, "_blank"); }); } function frame10(){ this.gotoAndPlay(40); } public function preloader(_arg1:Event){ var _local2:* = stage.loaderInfo.bytesTotal; var _local3:* = stage.loaderInfo.bytesLoaded; var _local4:int = ((_local3 * 100) / _local2); loaderbar.barreLoading.scaleX = (_local4 / 100); if (_local3 >= _local2){ removeEventListener(Event.ENTER_FRAME, preloader); this.gotoAndPlay(40); }; } } }//package Pixelvader_fla
Section 82
//rearLaser2btn_53 (Pixelvader_fla.rearLaser2btn_53) package Pixelvader_fla { import flash.display.*; public dynamic class rearLaser2btn_53 extends MovieClip { public var back:MovieClip; public function rearLaser2btn_53(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 83
//rearLaserbtn_29 (Pixelvader_fla.rearLaserbtn_29) package Pixelvader_fla { import flash.display.*; public dynamic class rearLaserbtn_29 extends MovieClip { public var back:MovieClip; public function rearLaserbtn_29(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 84
//sideLaser2btn_56 (Pixelvader_fla.sideLaser2btn_56) package Pixelvader_fla { import flash.display.*; public dynamic class sideLaser2btn_56 extends MovieClip { public var back:MovieClip; public function sideLaser2btn_56(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 85
//sideLaserbtn_30 (Pixelvader_fla.sideLaserbtn_30) package Pixelvader_fla { import flash.display.*; public dynamic class sideLaserbtn_30 extends MovieClip { public var back:MovieClip; public function sideLaserbtn_30(){ addFrameScript(0, frame1); } function frame1(){ this.mouseChildren = false; this.buttonMode = true; stop(); } } }//package Pixelvader_fla
Section 86
//achievementPage (achievementPage) package { import flash.display.*; import flash.text.*; public dynamic class achievementPage extends MovieClip { public var achi500Kills:MovieClip; public var achi100Kills:MovieClip; public var achiWithoutHitBonus:MovieClip; public var retourMenubtn:SimpleButton; public var achiWithoutHitAll:MovieClip; public var achiGameCompleted:MovieClip; public var txtNKills:TextField; public var achiWithoutHit15:MovieClip; public var achiWithoutHit610:MovieClip; public var txtDescriptionAchi:TextField; public var achi1MaxLvl:MovieClip; public var achiBonusCompleted:MovieClip; public var achiAllMaxLvl:MovieClip; public var txtNDeaths:TextField; public var txtNHits:TextField; } }//package
Section 87
//backgroundNiveau (backgroundNiveau) package { import flash.display.*; public dynamic class backgroundNiveau extends MovieClip { } }//package
Section 88
//boss01Intro (boss01Intro) package { import flash.display.*; public dynamic class boss01Intro extends MovieClip { public function boss01Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 89
//boss01Mort (boss01Mort) package { import flash.display.*; public dynamic class boss01Mort extends MovieClip { public function boss01Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 90
//boss02Intro (boss02Intro) package { import flash.display.*; public dynamic class boss02Intro extends MovieClip { public function boss02Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 91
//boss02Mort (boss02Mort) package { import flash.display.*; public dynamic class boss02Mort extends MovieClip { public function boss02Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 92
//boss03Intro (boss03Intro) package { import flash.display.*; public dynamic class boss03Intro extends MovieClip { public function boss03Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 93
//boss03Mort (boss03Mort) package { import flash.display.*; public dynamic class boss03Mort extends MovieClip { public function boss03Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 94
//boss04Intro (boss04Intro) package { import flash.display.*; public dynamic class boss04Intro extends MovieClip { public function boss04Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 95
//boss04Mort (boss04Mort) package { import flash.display.*; public dynamic class boss04Mort extends MovieClip { public function boss04Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 96
//boss05Intro (boss05Intro) package { import flash.display.*; public dynamic class boss05Intro extends MovieClip { public function boss05Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 97
//boss05Mort (boss05Mort) package { import flash.display.*; public dynamic class boss05Mort extends MovieClip { public function boss05Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 98
//boss06Intro (boss06Intro) package { import flash.display.*; public dynamic class boss06Intro extends MovieClip { public function boss06Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 99
//boss06Mort (boss06Mort) package { import flash.display.*; public dynamic class boss06Mort extends MovieClip { public function boss06Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 100
//boss07Intro (boss07Intro) package { import flash.display.*; public dynamic class boss07Intro extends MovieClip { public function boss07Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 101
//boss07Mort (boss07Mort) package { import flash.display.*; public dynamic class boss07Mort extends MovieClip { public function boss07Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 102
//boss08Intro (boss08Intro) package { import flash.display.*; public dynamic class boss08Intro extends MovieClip { public function boss08Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 103
//boss08Mort (boss08Mort) package { import flash.display.*; public dynamic class boss08Mort extends MovieClip { public function boss08Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 104
//boss09Intro (boss09Intro) package { import flash.display.*; public dynamic class boss09Intro extends MovieClip { public function boss09Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 105
//boss09Mort (boss09Mort) package { import flash.display.*; public dynamic class boss09Mort extends MovieClip { public function boss09Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 106
//boss10Intro (boss10Intro) package { import flash.display.*; public dynamic class boss10Intro extends MovieClip { public function boss10Intro(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 107
//boss10Mort (boss10Mort) package { import flash.display.*; public dynamic class boss10Mort extends MovieClip { public function boss10Mort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 108
//bossDie (bossDie) package { import flash.media.*; public dynamic class bossDie extends Sound { } }//package
Section 109
//bossLaserTir (bossLaserTir) package { import flash.media.*; public dynamic class bossLaserTir extends Sound { } }//package
Section 110
//controlChoiceMP (controlChoiceMP) package { import flash.display.*; public dynamic class controlChoiceMP extends MovieClip { public var choice3btn:SimpleButton; public var choice2btn:SimpleButton; public var choice1btn:SimpleButton; } }//package
Section 111
//controlChoiceSP (controlChoiceSP) package { import flash.display.*; public dynamic class controlChoiceSP extends MovieClip { public var mouseControlbtn:SimpleButton; public var keyControlbtn:SimpleButton; } }//package
Section 112
//cursorInGame (cursorInGame) package { import flash.display.*; public dynamic class cursorInGame extends MovieClip { } }//package
Section 113
//dWave (dWave) package { import flash.media.*; public dynamic class dWave extends Sound { } }//package
Section 114
//ecranPause (ecranPause) package { import flash.display.*; public dynamic class ecranPause extends MovieClip { public var muteMusicbtn:SimpleButton; public var muteSoundbtn:SimpleButton; public var quitbtn:SimpleButton; public var resumebtn:SimpleButton; } }//package
Section 115
//ecritureFin (ecritureFin) package { import flash.display.*; public dynamic class ecritureFin extends MovieClip { public function ecritureFin(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 116
//ecritureMort (ecritureMort) package { import flash.display.*; public dynamic class ecritureMort extends MovieClip { public function ecritureMort(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 117
//ecritureVictoire (ecritureVictoire) package { import flash.display.*; public dynamic class ecritureVictoire extends MovieClip { public function ecritureVictoire(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 118
//ennemiDie (ennemiDie) package { import flash.media.*; public dynamic class ennemiDie extends Sound { } }//package
Section 119
//ennemiDieBig (ennemiDieBig) package { import flash.media.*; public dynamic class ennemiDieBig extends Sound { } }//package
Section 120
//ennemiHit (ennemiHit) package { import flash.media.*; public dynamic class ennemiHit extends Sound { } }//package
Section 121
//fLaserTir (fLaserTir) package { import flash.media.*; public dynamic class fLaserTir extends Sound { } }//package
Section 122
//fondAttack (fondAttack) package { import flash.display.*; public dynamic class fondAttack extends MovieClip { public function fondAttack(){ addFrameScript(4, frame5); } function frame5(){ stop(); this.parent.removeChild(this); } } }//package
Section 123
//ingameMusic (ingameMusic) package { import flash.media.*; public dynamic class ingameMusic extends Sound { } }//package
Section 124
//ingameMusicIntro (ingameMusicIntro) package { import flash.media.*; public dynamic class ingameMusicIntro extends Sound { } }//package
Section 125
//interfaceMenu (interfaceMenu) package { import flash.display.*; import flash.text.*; public dynamic class interfaceMenu extends MovieClip { public var firerateP1btn:SimpleButton; public var lvlbonusbtn:nivbonus; public var lvl6btn:niv6; public var muteMusicMenu:SimpleButton; public var distanceWaveP1btn:SimpleButton; public var retourMenubtn:SimpleButton; public var lvl2btn:niv2; public var lvl9btn:niv9; public var sideLaserP1btn:MovieClip; public var lvl5btn:niv5; public var lvl1btn:niv1; public var rearLaserP1btn:MovieClip; public var lvl8btn:niv8; public var lvl4btn:niv4; public var diaRearLaserP1btn:MovieClip; public var diaFrontLaserP1btn:MovieClip; public var lifeP1btn:SimpleButton; public var cashtxt:TextField; public var lvl7btn:niv7; public var reloadWaveP1btn:SimpleButton; public var lvl3btn:niv3; public var resetP1btn:SimpleButton; public var powerLaserP1btn:SimpleButton; public var repairP1btn:SimpleButton; public var speedP1btn:SimpleButton; public var muteSoundMenu:SimpleButton; public var frontLaserP1btn:MovieClip; public var lvl10btn:niv10; public var missileP1btn:SimpleButton; public var detailtxt:TextField; } }//package
Section 126
//interfaceMenuMP (interfaceMenuMP) package { import flash.display.*; import flash.text.*; public dynamic class interfaceMenuMP extends MovieClip { public var firerateP1btn:SimpleButton; public var sideLaserP2btn:MovieClip; public var lvl6btn:niv6; public var muteMusicMenu:SimpleButton; public var distanceWaveP1btn:SimpleButton; public var detailtxt:TextField; public var retourMenubtn:SimpleButton; public var lvl2btn:niv2; public var rearLaserP2btn:MovieClip; public var lvl9btn:niv9; public var sideLaserP1btn:MovieClip; public var lvl5btn:niv5; public var lvl1btn:niv1; public var diaRearLaserP2btn:MovieClip; public var powerLaserP2btn:SimpleButton; public var rearLaserP1btn:MovieClip; public var diaFrontLaserP2btn:MovieClip; public var lifeP2btn:SimpleButton; public var lvl8btn:niv8; public var reloadWaveP2btn:SimpleButton; public var repairP2btn:SimpleButton; public var diaRearLaserP1btn:MovieClip; public var lvl4btn:niv4; public var speedP2btn:SimpleButton; public var missileP2btn:SimpleButton; public var diaFrontLaserP1btn:MovieClip; public var lifeP1btn:SimpleButton; public var cashtxt:TextField; public var lvl7btn:niv7; public var reloadWaveP1btn:SimpleButton; public var firerateP2btn:SimpleButton; public var resetP1btn:SimpleButton; public var powerLaserP1btn:SimpleButton; public var repairP1btn:SimpleButton; public var lvl3btn:niv3; public var distanceWaveP2btn:SimpleButton; public var speedP1btn:SimpleButton; public var missileP1btn:SimpleButton; public var frontLaserP1btn:MovieClip; public var frontLaserP2btn:MovieClip; public var lvl10btn:niv10; public var muteSoundMenu:SimpleButton; public var lvlbonusbtn:nivbonus; } }//package
Section 127
//IntroMenu (IntroMenu) package { import flash.display.*; public dynamic class IntroMenu extends MovieClip { public var achievementSPbtn:SimpleButton; public var achievementMPbtn:SimpleButton; public var eraseP2btn:SimpleButton; public var eraseP1btn:SimpleButton; public var MPModebtn:SimpleButton; public var SPModebtn:SimpleButton; public var btnSponsor:SimpleButton; } }//package
Section 128
//introsong (introsong) package { import flash.media.*; public dynamic class introsong extends Sound { } }//package
Section 129
//mcLoading (mcLoading) package { import flash.display.*; public dynamic class mcLoading extends MovieClip { public var barreLoading:MovieClip; } }//package
Section 130
//missileHit (missileHit) package { import flash.media.*; public dynamic class missileHit extends Sound { } }//package
Section 131
//missileMort (missileMort) package { import flash.display.*; public dynamic class missileMort extends MovieClip { public function missileMort(){ addFrameScript(7, frame8); } function frame8(){ stop(); this.parent.removeChild(this); } } }//package
Section 132
//missileMort2 (missileMort2) package { import flash.display.*; public dynamic class missileMort2 extends MovieClip { public function missileMort2(){ addFrameScript(7, frame8); } function frame8(){ stop(); this.parent.removeChild(this); } } }//package
Section 133
//MortJoueur1 (MortJoueur1) package { import flash.display.*; public dynamic class MortJoueur1 extends MovieClip { public function MortJoueur1(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 134
//MortJoueur2 (MortJoueur2) package { import flash.display.*; public dynamic class MortJoueur2 extends MovieClip { public function MortJoueur2(){ addFrameScript(59, frame60); } function frame60(){ stop(); this.parent.removeChild(this); } } }//package
Section 135
//niv1 (niv1) package { import game.general.*; public dynamic class niv1 extends boutonMenu { public function niv1(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 136
//niv10 (niv10) package { import game.general.*; public dynamic class niv10 extends boutonMenu { public function niv10(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 137
//niv2 (niv2) package { import game.general.*; public dynamic class niv2 extends boutonMenu { public function niv2(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 138
//niv3 (niv3) package { import game.general.*; public dynamic class niv3 extends boutonMenu { public function niv3(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 139
//niv4 (niv4) package { import game.general.*; public dynamic class niv4 extends boutonMenu { public function niv4(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 140
//niv5 (niv5) package { import game.general.*; public dynamic class niv5 extends boutonMenu { public function niv5(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 141
//niv6 (niv6) package { import game.general.*; public dynamic class niv6 extends boutonMenu { public function niv6(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 142
//niv7 (niv7) package { import game.general.*; public dynamic class niv7 extends boutonMenu { public function niv7(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 143
//niv8 (niv8) package { import game.general.*; public dynamic class niv8 extends boutonMenu { public function niv8(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 144
//niv9 (niv9) package { import game.general.*; public dynamic class niv9 extends boutonMenu { public function niv9(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 145
//nivbonus (nivbonus) package { import game.general.*; public dynamic class nivbonus extends boutonMenu { public function nivbonus(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package
Section 146
//nomLife1 (nomLife1) package { import flash.display.*; public dynamic class nomLife1 extends MovieClip { } }//package
Section 147
//nomLife2 (nomLife2) package { import flash.display.*; public dynamic class nomLife2 extends MovieClip { } }//package
Section 148
//playerHit (playerHit) package { import flash.media.*; public dynamic class playerHit extends Sound { } }//package
Section 149
//questionErase (questionErase) package { import flash.display.*; public dynamic class questionErase extends MovieClip { public var nobtn:SimpleButton; public var yesbtn:SimpleButton; } }//package
Section 150
//sonimport (sonimport) package { import flash.display.*; public dynamic class sonimport extends MovieClip { } }//package
Section 151
//tutorial (tutorial) package { import flash.display.*; import flash.text.*; public dynamic class tutorial extends MovieClip { public var okbtn:SimpleButton; public var detailtxt:TextField; } }//package
Section 152
//txtPause (txtPause) package { import flash.display.*; public dynamic class txtPause extends MovieClip { } }//package
Section 153
//VictoireJoueur1 (VictoireJoueur1) package { import flash.display.*; public dynamic class VictoireJoueur1 extends MovieClip { public function VictoireJoueur1(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 154
//VictoireJoueur2 (VictoireJoueur2) package { import flash.display.*; public dynamic class VictoireJoueur2 extends MovieClip { public function VictoireJoueur2(){ addFrameScript(89, frame90); } function frame90(){ stop(); this.parent.removeChild(this); } } }//package
Section 155
//xCouperSon (xCouperSon) package { import flash.display.*; public dynamic class xCouperSon extends MovieClip { } }//package
Section 156
//zoneClickWave (zoneClickWave) package { import flash.display.*; public dynamic class zoneClickWave extends MovieClip { } }//package

Library Items

Symbol 1 Sound {ennemiDie}Used by:463
Symbol 2 Sound {playerHit}Used by:463
Symbol 3 Sound {ennemiDieBig}Used by:463
Symbol 4 Sound {missileHit}Used by:463
Symbol 5 Sound {ingameMusicIntro}Used by:463
Symbol 6 Sound {bossDie}Used by:463
Symbol 7 Sound {ennemiHit}Used by:463
Symbol 8 Sound {ingameMusic}Used by:463
Symbol 9 Sound {introsong}Used by:463
Symbol 10 Sound {dWave}Used by:463
Symbol 11 Sound {fLaserTir}Used by:463
Symbol 12 Sound {bossLaserTir}Used by:463
Symbol 13 GraphicUsed by:17
Symbol 14 GraphicUsed by:15 61 69 153 184 188 195 208 238 240
Symbol 15 MovieClipUses:14Used by:17
Symbol 16 GraphicUsed by:17 37 88 90 91 92 93 104 106 108 111 204 208 248 250 484 486 487 488 490
Symbol 17 MovieClip {mcLoading}Uses:13 15 16Used by:Timeline
Symbol 18 GraphicUsed by:62  Timeline
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClip {backgroundNiveau}Uses:19Used by:Timeline
Symbol 21 GraphicUsed by:22 62 158 162 177 196 241 491
Symbol 22 MovieClip {zoneClickWave}Uses:21Used by:Timeline
Symbol 23 FontUsed by:24 26 30 38 41 45 47 49 54 63 64 65 66 71 76 78 80 82 101 112 114 116 141 143 146 159 160 161 169 170 171 173 176 178 180 181 183 185 186 189 191 192 193 194 197 200 210 237 239 244 246 260 262 464 466 467 468 469 470 471 472 473 474 481 485 489
Symbol 24 TextUses:23Used by:32
Symbol 25 GraphicUsed by:29 31
Symbol 26 TextUses:23Used by:29
Symbol 27 GraphicUsed by:29 31
Symbol 28 GraphicUsed by:29 31
Symbol 29 ButtonUses:25 26 27 28Used by:32
Symbol 30 TextUses:23Used by:31
Symbol 31 ButtonUses:25 30 27 28Used by:32
Symbol 32 MovieClip {questionErase}Uses:24 29 31Used by:Timeline
Symbol 33 GraphicUsed by:34 253 257
Symbol 34 MovieClipUses:33Used by:36 37 267 278 290 302 314 324 334 345 356 367  Timeline
Symbol 35 GraphicUsed by:36 120 121 123 125 128 133 135 138 140 249 251
Symbol 36 MovieClip {game.general.player2}Uses:34 35Used by:Timeline
Symbol 37 MovieClip {game.general.player1}Uses:16 34Used by:Timeline
Symbol 38 TextUses:23Used by:39
Symbol 39 MovieClip {txtPause}Uses:38Used by:Timeline
Symbol 40 GraphicUsed by:44 46
Symbol 41 TextUses:23Used by:44
Symbol 42 GraphicUsed by:44 46
Symbol 43 GraphicUsed by:44 46
Symbol 44 ButtonUses:40 41 42 43Used by:62
Symbol 45 TextUses:23Used by:46
Symbol 46 ButtonUses:40 45 42 43Used by:62
Symbol 47 EditableTextUses:23Used by:62
Symbol 48 GraphicUsed by:52
Symbol 49 TextUses:23Used by:52
Symbol 50 GraphicUsed by:52
Symbol 51 GraphicUsed by:52
Symbol 52 ButtonUses:48 49 50 51Used by:62
Symbol 53 GraphicUsed by:57
Symbol 54 TextUses:23Used by:57
Symbol 55 GraphicUsed by:57
Symbol 56 GraphicUsed by:57
Symbol 57 ButtonUses:53 54 55 56Used by:62  Timeline
Symbol 58 BitmapUsed by:59
Symbol 59 GraphicUses:58Used by:60
Symbol 60 MovieClipUses:59Used by:62  Timeline
Symbol 61 ButtonUses:14Used by:62  Timeline
Symbol 62 MovieClip {IntroMenu}Uses:21 44 46 47 52 18 57 60 61Used by:Timeline
Symbol 63 EditableTextUses:23Used by:158
Symbol 64 TextUses:23Used by:158 162
Symbol 65 EditableTextUses:23Used by:158
Symbol 66 TextUses:23Used by:69
Symbol 67 GraphicUsed by:69 150
Symbol 68 GraphicUsed by:69
Symbol 69 ButtonUses:66 67 68 14Used by:158 162
Symbol 70 GraphicUsed by:75 77 79 81 83 102 113 115 117 142 144
Symbol 71 TextUses:23Used by:75
Symbol 72 GraphicUsed by:73
Symbol 73 MovieClipUses:72Used by:75 77 79 81 83 102 113 115 117 142 144 486 487 488 490
Symbol 74 GraphicUsed by:75 77 79 81 83 102 113 115 117 142 144
Symbol 75 MovieClip {niv5}Uses:70 71 73 74Used by:158 162
Symbol 76 TextUses:23Used by:77
Symbol 77 MovieClip {niv8}Uses:70 76 73 74Used by:158 162
Symbol 78 TextUses:23Used by:79
Symbol 79 MovieClip {niv9}Uses:70 78 73 74Used by:158 162
Symbol 80 TextUses:23Used by:81 478
Symbol 81 MovieClip {niv10}Uses:70 80 73 74Used by:158 162
Symbol 82 TextUses:23Used by:83 480
Symbol 83 MovieClip {nivbonus}Uses:70 82 73 74Used by:158 162
Symbol 84 GraphicUsed by:85 95 96 98 100 104 106 108 111 123 124 128 130 132 135 137 140 172 175
Symbol 85 MovieClipUses:84Used by:88 90 91 92 93 95 96 98 100 104 106 108 111 120 121 123 124 125 128 130 132 133 135 137 138 140 172 175 184 188 195 475 476 478 480 482 484 486 487 488 490  Timeline
Symbol 86 GraphicUsed by:88 90 91 92 96
Symbol 87 GraphicUsed by:88 90 91 92 93 96 230 235 475 484
Symbol 88 MovieClip {Pixelvader_fla.fontLaserbtn_27}Uses:85 86 16 87Used by:158 162
Symbol 89 GraphicUsed by:90 93 475 476 482 486 487 488 490
Symbol 90 MovieClip {Pixelvader_fla.rearLaserbtn_29}Uses:85 89 16 86 87Used by:158 162
Symbol 91 MovieClip {Pixelvader_fla.sideLaserbtn_30}Uses:85 86 16 87Used by:158 162
Symbol 92 MovieClip {Pixelvader_fla.diaFrontLaserbtn_31}Uses:85 86 16 87Used by:158 162
Symbol 93 MovieClip {Pixelvader_fla.diaRearLaserbtn_32}Uses:85 89 16 87Used by:158 162
Symbol 94 GraphicUsed by:95
Symbol 95 ButtonUses:94 85 84Used by:158 162
Symbol 96 ButtonUses:86 87 85 84Used by:158 162
Symbol 97 GraphicUsed by:98
Symbol 98 ButtonUses:97 85 84Used by:158 162
Symbol 99 GraphicUsed by:100
Symbol 100 ButtonUses:99 85 84Used by:158 162
Symbol 101 TextUses:23Used by:102
Symbol 102 MovieClip {niv1}Uses:70 101 73 74Used by:158 162
Symbol 103 GraphicUsed by:104
Symbol 104 ButtonUses:103 16 85 84Used by:158 162
Symbol 105 GraphicUsed by:106
Symbol 106 ButtonUses:105 16 85 84Used by:158 162
Symbol 107 GraphicUsed by:108
Symbol 108 ButtonUses:107 16 85 84Used by:158 162
Symbol 109 GraphicUsed by:111
Symbol 110 GraphicUsed by:111 216
Symbol 111 ButtonUses:109 16 110 85 84Used by:158 162
Symbol 112 TextUses:23Used by:113
Symbol 113 MovieClip {niv2}Uses:70 112 73 74Used by:158 162
Symbol 114 TextUses:23Used by:115
Symbol 115 MovieClip {niv3}Uses:70 114 73 74Used by:158 162
Symbol 116 TextUses:23Used by:117
Symbol 117 MovieClip {niv4}Uses:70 116 73 74Used by:158 162
Symbol 118 GraphicUsed by:120 121 124 125 133 138
Symbol 119 GraphicUsed by:120 121 124 125 133 138 236
Symbol 120 MovieClip {Pixelvader_fla.diaFrontLaser2btn_45}Uses:85 35 118 119Used by:158
Symbol 121 MovieClip {Pixelvader_fla.diaRearLaser2btn_46}Uses:85 35 118 119Used by:158
Symbol 122 GraphicUsed by:123
Symbol 123 ButtonUses:122 35 85 84Used by:158
Symbol 124 ButtonUses:118 119 85 84Used by:158
Symbol 125 MovieClip {Pixelvader_fla.fontLaser2btn_49}Uses:85 118 35 119Used by:158
Symbol 126 GraphicUsed by:128
Symbol 127 GraphicUsed by:128 218
Symbol 128 ButtonUses:126 35 127 85 84Used by:158
Symbol 129 GraphicUsed by:130
Symbol 130 ButtonUses:129 85 84Used by:158
Symbol 131 GraphicUsed by:132
Symbol 132 ButtonUses:131 85 84Used by:158
Symbol 133 MovieClip {Pixelvader_fla.rearLaser2btn_53}Uses:85 118 35 119Used by:158
Symbol 134 GraphicUsed by:135
Symbol 135 ButtonUses:134 35 85 84Used by:158
Symbol 136 GraphicUsed by:137
Symbol 137 ButtonUses:136 85 84Used by:158
Symbol 138 MovieClip {Pixelvader_fla.sideLaser2btn_56}Uses:85 118 35 119Used by:158
Symbol 139 GraphicUsed by:140
Symbol 140 ButtonUses:139 35 85 84Used by:158
Symbol 141 TextUses:23Used by:142
Symbol 142 MovieClip {niv6}Uses:70 141 73 74Used by:158 162
Symbol 143 TextUses:23Used by:144
Symbol 144 MovieClip {niv7}Uses:70 143 73 74Used by:158 162
Symbol 145 GraphicUsed by:150
Symbol 146 TextUses:23Used by:150
Symbol 147 GraphicUsed by:150
Symbol 148 GraphicUsed by:150
Symbol 149 GraphicUsed by:150
Symbol 150 ButtonUses:145 146 67 147 148 149Used by:158 162 491
Symbol 151 GraphicUsed by:153
Symbol 152 GraphicUsed by:153
Symbol 153 ButtonUses:151 152 14Used by:158 162 241
Symbol 154 GraphicUsed by:157
Symbol 155 GraphicUsed by:157
Symbol 156 GraphicUsed by:157
Symbol 157 ButtonUses:154 155 156Used by:158 162 241
Symbol 158 MovieClip {interfaceMenuMP}Uses:21 63 64 65 69 75 77 79 81 83 88 90 91 92 93 95 96 98 100 102 104 106 108 111 113 115 117 120 121 123 124 125 128 130 132 133 135 137 138 140 142 144 150 153 157Used by:Timeline
Symbol 159 EditableTextUses:23Used by:162
Symbol 160 EditableTextUses:23Used by:162
Symbol 161 TextUses:23Used by:162
Symbol 162 MovieClip {interfaceMenu}Uses:21 159 64 160 69 75 144 77 79 81 83 150 161 88 90 91 92 93 95 96 98 100 102 104 106 108 111 113 115 117 142 153 157Used by:Timeline
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClip {fondAttack}Uses:163Used by:Timeline
Symbol 165 GraphicUsed by:166
Symbol 166 MovieClip {cursorInGame}Uses:165Used by:Timeline
Symbol 167 GraphicUsed by:172 184
Symbol 168 GraphicUsed by:172 175 184 188 195
Symbol 169 TextUses:23Used by:172 184
Symbol 170 TextUses:23Used by:172 175 184 188 195
Symbol 171 TextUses:23Used by:172 184
Symbol 172 ButtonUses:167 168 169 170 171 85 84Used by:177
Symbol 173 TextUses:23Used by:175 188
Symbol 174 GraphicUsed by:175 188
Symbol 175 ButtonUses:168 173 170 174 85 84Used by:177
Symbol 176 TextUses:23Used by:177 196
Symbol 177 MovieClip {controlChoiceSP}Uses:21 172 175 176Used by:Timeline
Symbol 178 TextUses:23Used by:184 188 195
Symbol 179 GraphicUsed by:184 188 195
Symbol 180 TextUses:23Used by:184
Symbol 181 TextUses:23Used by:184 188 195
Symbol 182 GraphicUsed by:184
Symbol 183 TextUses:23Used by:184 188 195
Symbol 184 ButtonUses:167 168 169 170 171 178 179 180 181 182 183 85 14Used by:196
Symbol 185 TextUses:23Used by:188 195
Symbol 186 TextUses:23Used by:188
Symbol 187 GraphicUsed by:188 195
Symbol 188 ButtonUses:179 185 181 186 187 178 183 168 173 170 174 85 14Used by:196
Symbol 189 TextUses:23Used by:195
Symbol 190 GraphicUsed by:195
Symbol 191 TextUses:23Used by:195
Symbol 192 TextUses:23Used by:195
Symbol 193 TextUses:23Used by:195
Symbol 194 TextUses:23Used by:195
Symbol 195 ButtonUses:178 183 168 189 170 190 191 192 193 194 179 185 181 187 85 14Used by:196
Symbol 196 MovieClip {controlChoiceMP}Uses:21 176 184 188 195Used by:Timeline
Symbol 197 EditableTextUses:23Used by:198
Symbol 198 MovieClip {game.general.cashIngame}Uses:197Used by:Timeline
Symbol 199 GraphicUsed by:214
Symbol 200 TextUses:23Used by:214
Symbol 201 GraphicUsed by:208 214 229 486 487 488 490
Symbol 202 GraphicUsed by:214 231 486 487 488 490
Symbol 203 GraphicUsed by:204 419 475
Symbol 204 MovieClipUses:203 16Used by:214
Symbol 205 GraphicUsed by:208 232
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClipUses:206Used by:208 232 234
Symbol 208 MovieClipUses:16 14 201 205 207Used by:214
Symbol 209 GraphicUsed by:213
Symbol 210 TextUses:23Used by:213
Symbol 211 GraphicUsed by:213
Symbol 212 GraphicUsed by:213
Symbol 213 ButtonUses:209 210 211 212Used by:214
Symbol 214 MovieClip {tutorial}Uses:199 200 201 202 204 208 213Used by:Timeline
Symbol 215 GraphicUsed by:216
Symbol 216 MovieClip {game.projectile.missileP1}Uses:215 110Used by:Timeline
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClip {game.projectile.missileP2}Uses:217 127Used by:Timeline
Symbol 219 GraphicUsed by:223
Symbol 220 GraphicUsed by:223
Symbol 221 GraphicUsed by:223
Symbol 222 GraphicUsed by:223
Symbol 223 MovieClip {missileMort}Uses:219 220 221 222Used by:Timeline
Symbol 224 GraphicUsed by:228
Symbol 225 GraphicUsed by:228
Symbol 226 GraphicUsed by:228
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClip {missileMort2}Uses:224 225 226 227Used by:Timeline
Symbol 229 MovieClip {game.projectile.baseEnnemiLaser}Uses:201Used by:Timeline
Symbol 230 MovieClip {game.projectile.baseLaser}Uses:87Used by:Timeline
Symbol 231 MovieClip {game.projectile.bigEnnemiLaser}Uses:202Used by:Timeline
Symbol 232 MovieClip {game.projectile.ondeP1}Uses:205 207Used by:Timeline
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClip {game.projectile.ondeP2}Uses:233 207Used by:Timeline
Symbol 235 MovieClip {game.projectile.P1Laser1}Uses:87Used by:Timeline
Symbol 236 MovieClip {game.projectile.P2Laser1}Uses:119Used by:Timeline
Symbol 237 TextUses:23Used by:238
Symbol 238 ButtonUses:237 14Used by:241
Symbol 239 TextUses:23Used by:240
Symbol 240 ButtonUses:239 14Used by:241
Symbol 241 MovieClip {ecranPause}Uses:21 153 238 240 157Used by:Timeline
Symbol 242 GraphicUsed by:243
Symbol 243 MovieClip {xCouperSon}Uses:242Used by:Timeline
Symbol 244 EditableTextUses:23Used by:245
Symbol 245 MovieClip {ecritureMort}Uses:244Used by:Timeline
Symbol 246 EditableTextUses:23Used by:247
Symbol 247 MovieClip {ecritureVictoire}Uses:246Used by:Timeline
Symbol 248 MovieClip {MortJoueur1}Uses:16Used by:Timeline
Symbol 249 MovieClip {MortJoueur2}Uses:35Used by:Timeline
Symbol 250 MovieClip {VictoireJoueur1}Uses:16Used by:Timeline
Symbol 251 MovieClip {VictoireJoueur2}Uses:35Used by:Timeline
Symbol 252 GraphicUsed by:255
Symbol 253 MovieClipUses:33Used by:255  Timeline
Symbol 254 GraphicUsed by:255
Symbol 255 MovieClip {game.ennemis.bossLifeBar}Uses:252 253 254Used by:Timeline
Symbol 256 GraphicUsed by:259 264
Symbol 257 MovieClipUses:33Used by:259 264  Timeline
Symbol 258 GraphicUsed by:259 264
Symbol 259 MovieClip {game.general.lifeBar}Uses:256 257 258Used by:Timeline
Symbol 260 EditableTextUses:23Used by:261
Symbol 261 MovieClip {nomLife1}Uses:260Used by:Timeline
Symbol 262 EditableTextUses:23Used by:263
Symbol 263 MovieClip {nomLife2}Uses:262Used by:Timeline
Symbol 264 MovieClip {game.general.waveBar}Uses:256 257 258Used by:Timeline
Symbol 265 GraphicUsed by:266
Symbol 266 MovieClipUses:265Used by:267 268
Symbol 267 MovieClip {game.ennemis.boss01}Uses:266 34Used by:Timeline
Symbol 268 MovieClip {boss01Intro}Uses:266Used by:Timeline
Symbol 269 GraphicUsed by:275
Symbol 270 GraphicUsed by:275
Symbol 271 GraphicUsed by:275
Symbol 272 GraphicUsed by:275
Symbol 273 GraphicUsed by:275
Symbol 274 GraphicUsed by:275
Symbol 275 MovieClip {boss01Mort}Uses:269 270 271 272 273 274Used by:Timeline
Symbol 276 GraphicUsed by:277 279
Symbol 277 MovieClipUses:276Used by:278
Symbol 278 MovieClip {game.ennemis.boss02}Uses:277 34Used by:Timeline
Symbol 279 MovieClip {boss02Intro}Uses:276Used by:Timeline
Symbol 280 GraphicUsed by:287
Symbol 281 GraphicUsed by:287
Symbol 282 GraphicUsed by:287
Symbol 283 GraphicUsed by:287
Symbol 284 GraphicUsed by:287
Symbol 285 GraphicUsed by:287
Symbol 286 GraphicUsed by:287
Symbol 287 MovieClip {boss02Mort}Uses:280 281 282 283 284 285 286Used by:Timeline
Symbol 288 GraphicUsed by:289
Symbol 289 MovieClipUses:288Used by:290 291
Symbol 290 MovieClip {game.ennemis.boss03}Uses:289 34Used by:Timeline
Symbol 291 MovieClip {boss03Intro}Uses:289Used by:Timeline
Symbol 292 GraphicUsed by:299
Symbol 293 GraphicUsed by:299
Symbol 294 GraphicUsed by:299
Symbol 295 GraphicUsed by:299
Symbol 296 GraphicUsed by:299
Symbol 297 GraphicUsed by:299
Symbol 298 GraphicUsed by:299
Symbol 299 MovieClip {boss03Mort}Uses:292 293 294 295 296 297 298Used by:Timeline
Symbol 300 GraphicUsed by:301 303
Symbol 301 MovieClipUses:300Used by:302
Symbol 302 MovieClip {game.ennemis.boss04}Uses:301 34Used by:Timeline
Symbol 303 MovieClip {boss04Intro}Uses:300Used by:Timeline
Symbol 304 GraphicUsed by:311
Symbol 305 GraphicUsed by:311
Symbol 306 GraphicUsed by:311
Symbol 307 GraphicUsed by:311
Symbol 308 GraphicUsed by:311
Symbol 309 GraphicUsed by:311
Symbol 310 GraphicUsed by:311
Symbol 311 MovieClip {boss04Mort}Uses:304 305 306 307 308 309 310Used by:Timeline
Symbol 312 GraphicUsed by:313
Symbol 313 MovieClipUses:312Used by:314 315
Symbol 314 MovieClip {game.ennemis.boss05}Uses:313 34Used by:Timeline
Symbol 315 MovieClip {boss05Intro}Uses:313Used by:Timeline
Symbol 316 GraphicUsed by:321
Symbol 317 GraphicUsed by:321
Symbol 318 GraphicUsed by:321
Symbol 319 GraphicUsed by:321
Symbol 320 GraphicUsed by:321
Symbol 321 MovieClip {boss05Mort}Uses:316 317 318 319 320Used by:Timeline
Symbol 322 GraphicUsed by:323
Symbol 323 MovieClipUses:322Used by:324 325
Symbol 324 MovieClip {game.ennemis.boss06}Uses:323 34Used by:Timeline
Symbol 325 MovieClip {boss06Intro}Uses:323Used by:Timeline
Symbol 326 GraphicUsed by:331
Symbol 327 GraphicUsed by:331
Symbol 328 GraphicUsed by:331
Symbol 329 GraphicUsed by:331
Symbol 330 GraphicUsed by:331
Symbol 331 MovieClip {boss06Mort}Uses:326 327 328 329 330Used by:Timeline
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClipUses:332Used by:334 335
Symbol 334 MovieClip {game.ennemis.boss07}Uses:333 34Used by:Timeline
Symbol 335 MovieClip {boss07Intro}Uses:333Used by:Timeline
Symbol 336 GraphicUsed by:342
Symbol 337 GraphicUsed by:342
Symbol 338 GraphicUsed by:342
Symbol 339 GraphicUsed by:342
Symbol 340 GraphicUsed by:342
Symbol 341 GraphicUsed by:342
Symbol 342 MovieClip {boss07Mort}Uses:336 337 338 339 340 341Used by:Timeline
Symbol 343 GraphicUsed by:344
Symbol 344 MovieClipUses:343Used by:345 346
Symbol 345 MovieClip {game.ennemis.boss08}Uses:344 34Used by:Timeline
Symbol 346 MovieClip {boss08Intro}Uses:344Used by:Timeline
Symbol 347 GraphicUsed by:353
Symbol 348 GraphicUsed by:353
Symbol 349 GraphicUsed by:353
Symbol 350 GraphicUsed by:353
Symbol 351 GraphicUsed by:353
Symbol 352 GraphicUsed by:353
Symbol 353 MovieClip {boss08Mort}Uses:347 348 349 350 351 352Used by:Timeline
Symbol 354 GraphicUsed by:355
Symbol 355 MovieClipUses:354Used by:356 357
Symbol 356 MovieClip {game.ennemis.boss09}Uses:355 34Used by:Timeline
Symbol 357 MovieClip {boss09Intro}Uses:355Used by:Timeline
Symbol 358 GraphicUsed by:364
Symbol 359 GraphicUsed by:364
Symbol 360 GraphicUsed by:364
Symbol 361 GraphicUsed by:364
Symbol 362 GraphicUsed by:364
Symbol 363 GraphicUsed by:364
Symbol 364 MovieClip {boss09Mort}Uses:358 359 360 361 362 363Used by:Timeline
Symbol 365 GraphicUsed by:366
Symbol 366 MovieClipUses:365Used by:367 368
Symbol 367 MovieClip {game.ennemis.boss10}Uses:366 34Used by:Timeline
Symbol 368 MovieClip {boss10Intro}Uses:366Used by:Timeline
Symbol 369 GraphicUsed by:377
Symbol 370 GraphicUsed by:377
Symbol 371 GraphicUsed by:377
Symbol 372 GraphicUsed by:377
Symbol 373 GraphicUsed by:377
Symbol 374 GraphicUsed by:377
Symbol 375 GraphicUsed by:377
Symbol 376 GraphicUsed by:377
Symbol 377 MovieClip {boss10Mort}Uses:369 370 371 372 373 374 375 376Used by:Timeline
Symbol 378 GraphicUsed by:379
Symbol 379 MovieClip {game.ennemis.mediumEnnemi1}Uses:378Used by:Timeline
Symbol 380 GraphicUsed by:386
Symbol 381 GraphicUsed by:386
Symbol 382 GraphicUsed by:386
Symbol 383 GraphicUsed by:386 476
Symbol 384 GraphicUsed by:386
Symbol 385 GraphicUsed by:386
Symbol 386 MovieClip {game.ennemis.mediumEnnemi1Mort}Uses:380 381 382 383 384 385Used by:Timeline
Symbol 387 GraphicUsed by:388
Symbol 388 MovieClip {game.ennemis.mediumEnnemi2}Uses:387Used by:Timeline
Symbol 389 GraphicUsed by:394
Symbol 390 GraphicUsed by:394 476
Symbol 391 GraphicUsed by:394
Symbol 392 GraphicUsed by:394
Symbol 393 GraphicUsed by:394
Symbol 394 MovieClip {game.ennemis.mediumEnnemi2Mort}Uses:389 390 391 392 393Used by:Timeline
Symbol 395 GraphicUsed by:396
Symbol 396 MovieClip {game.ennemis.mediumEnnemi3}Uses:395Used by:Timeline
Symbol 397 GraphicUsed by:401
Symbol 398 GraphicUsed by:401
Symbol 399 GraphicUsed by:401
Symbol 400 GraphicUsed by:401
Symbol 401 MovieClip {game.ennemis.mediumEnnemi3Mort}Uses:397 398 399 400Used by:Timeline
Symbol 402 GraphicUsed by:403
Symbol 403 MovieClip {game.ennemis.miniBoss1}Uses:402Used by:Timeline
Symbol 404 GraphicUsed by:409
Symbol 405 GraphicUsed by:409
Symbol 406 GraphicUsed by:409
Symbol 407 GraphicUsed by:409
Symbol 408 GraphicUsed by:409
Symbol 409 MovieClip {game.ennemis.miniBoss1Mort}Uses:404 405 406 407 408Used by:Timeline
Symbol 410 GraphicUsed by:411
Symbol 411 MovieClip {game.ennemis.miniBoss2}Uses:410Used by:Timeline
Symbol 412 GraphicUsed by:418
Symbol 413 GraphicUsed by:418
Symbol 414 GraphicUsed by:418
Symbol 415 GraphicUsed by:418
Symbol 416 GraphicUsed by:418
Symbol 417 GraphicUsed by:418
Symbol 418 MovieClip {game.ennemis.miniBoss2Mort}Uses:412 413 414 415 416 417Used by:Timeline
Symbol 419 MovieClip {game.ennemis.smallEnnemi1}Uses:203Used by:Timeline
Symbol 420 GraphicUsed by:425 476
Symbol 421 GraphicUsed by:425 476
Symbol 422 GraphicUsed by:425 476
Symbol 423 GraphicUsed by:425
Symbol 424 GraphicUsed by:425
Symbol 425 MovieClip {game.ennemis.smallEnnemi1Mort}Uses:420 421 422 423 424Used by:Timeline
Symbol 426 GraphicUsed by:427
Symbol 427 MovieClip {game.ennemis.smallEnnemi2}Uses:426Used by:Timeline
Symbol 428 GraphicUsed by:433
Symbol 429 GraphicUsed by:433
Symbol 430 GraphicUsed by:433
Symbol 431 GraphicUsed by:433
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClip {game.ennemis.smallEnnemi2Mort}Uses:428 429 430 431 432Used by:Timeline
Symbol 434 GraphicUsed by:435
Symbol 435 MovieClip {game.ennemis.smallEnnemi3}Uses:434Used by:Timeline
Symbol 436 GraphicUsed by:441
Symbol 437 GraphicUsed by:441
Symbol 438 GraphicUsed by:441
Symbol 439 GraphicUsed by:441 476
Symbol 440 GraphicUsed by:441
Symbol 441 MovieClip {game.ennemis.smallEnnemi3Mort}Uses:436 437 438 439 440Used by:Timeline
Symbol 442 GraphicUsed by:443
Symbol 443 MovieClip {game.ennemis.smallEnnemi4}Uses:442Used by:Timeline
Symbol 444 GraphicUsed by:449 476
Symbol 445 GraphicUsed by:449
Symbol 446 GraphicUsed by:449
Symbol 447 GraphicUsed by:449 476
Symbol 448 GraphicUsed by:449
Symbol 449 MovieClip {game.ennemis.smallEnnemi4Mort}Uses:444 445 446 447 448Used by:Timeline
Symbol 450 GraphicUsed by:451
Symbol 451 MovieClip {game.ennemis.smallEnnemi5}Uses:450Used by:Timeline
Symbol 452 GraphicUsed by:456
Symbol 453 GraphicUsed by:456
Symbol 454 GraphicUsed by:456
Symbol 455 GraphicUsed by:456
Symbol 456 MovieClip {game.ennemis.smallEnnemi5Mort}Uses:452 453 454 455Used by:Timeline
Symbol 457 GraphicUsed by:458
Symbol 458 MovieClip {game.ennemis.vSmallEnnemi1}Uses:457Used by:Timeline
Symbol 459 GraphicUsed by:462
Symbol 460 GraphicUsed by:462
Symbol 461 GraphicUsed by:462
Symbol 462 MovieClip {game.ennemis.vSmallEnnemi1Mort}Uses:459 460 461Used by:Timeline
Symbol 463 MovieClip {sonimport}Uses:9 8 6 12 10 1 3 7 11 5 4 2Used by:Timeline
Symbol 464 TextUses:23Used by:465
Symbol 465 MovieClip {ecritureFin}Uses:464Used by:Timeline
Symbol 466 TextUses:23Used by:491
Symbol 467 TextUses:23Used by:491
Symbol 468 TextUses:23Used by:491
Symbol 469 TextUses:23Used by:491
Symbol 470 TextUses:23Used by:491
Symbol 471 EditableTextUses:23Used by:491
Symbol 472 EditableTextUses:23Used by:491
Symbol 473 EditableTextUses:23Used by:491
Symbol 474 EditableTextUses:23Used by:491
Symbol 475 MovieClipUses:85 89 203 87Used by:491
Symbol 476 MovieClipUses:85 89 420 421 422 390 383 447 444 439Used by:491
Symbol 477 GraphicUsed by:478
Symbol 478 MovieClipUses:85 477 80Used by:491
Symbol 479 GraphicUsed by:480
Symbol 480 MovieClipUses:85 479 82Used by:491
Symbol 481 TextUses:23Used by:482
Symbol 482 MovieClipUses:85 89 481Used by:491
Symbol 483 GraphicUsed by:484
Symbol 484 MovieClipUses:85 483 16 87Used by:491
Symbol 485 TextUses:23Used by:486 487
Symbol 486 MovieClipUses:85 89 16 201 202 73 485Used by:491
Symbol 487 MovieClipUses:85 73 485 89 16 201 202Used by:491
Symbol 488 MovieClipUses:85 89 16 201 202 73Used by:491
Symbol 489 TextUses:23Used by:490
Symbol 490 MovieClipUses:85 89 16 201 202 73 489Used by:491
Symbol 491 MovieClip {achievementPage}Uses:21 466 467 468 469 470 471 472 473 474 150 475 476 478 480 482 484 486 487 488 490Used by:Timeline

Instance Names

"loaderbar"Frame 1Symbol 17 MovieClip {mcLoading}
"btnSponsor"Frame 40Symbol 61 Button
"barreLoading"Symbol 17 MovieClip {mcLoading} Frame 1Symbol 15 MovieClip
"nobtn"Symbol 32 MovieClip {questionErase} Frame 1Symbol 29 Button
"yesbtn"Symbol 32 MovieClip {questionErase} Frame 1Symbol 31 Button
"hitB"Symbol 36 MovieClip {game.general.player2} Frame 1Symbol 34 MovieClip
"hitB"Symbol 37 MovieClip {game.general.player1} Frame 1Symbol 34 MovieClip
"MPModebtn"Symbol 62 MovieClip {IntroMenu} Frame 1Symbol 44 Button
"SPModebtn"Symbol 62 MovieClip {IntroMenu} Frame 1Symbol 46 Button
"eraseP1btn"Symbol 62 MovieClip {IntroMenu} Frame 1Symbol 52 Button
"eraseP2btn"Symbol 62 MovieClip {IntroMenu} Frame 1Symbol 52 Button
"achievementSPbtn"Symbol 62 MovieClip {IntroMenu} Frame 1Symbol 57 Button
"achievementMPbtn"Symbol 62 MovieClip {IntroMenu} Frame 1Symbol 57 Button
"btnSponsor"Symbol 62 MovieClip {IntroMenu} Frame 1Symbol 61 Button
"star"Symbol 75 MovieClip {niv5} Frame 1Symbol 73 MovieClip
"star"Symbol 77 MovieClip {niv8} Frame 1Symbol 73 MovieClip
"star"Symbol 79 MovieClip {niv9} Frame 1Symbol 73 MovieClip
"star"Symbol 81 MovieClip {niv10} Frame 1Symbol 73 MovieClip
"star"Symbol 83 MovieClip {nivbonus} Frame 1Symbol 73 MovieClip
"back"Symbol 88 MovieClip {Pixelvader_fla.fontLaserbtn_27} Frame 1Symbol 85 MovieClip
"back"Symbol 90 MovieClip {Pixelvader_fla.rearLaserbtn_29} Frame 1Symbol 85 MovieClip
"back"Symbol 91 MovieClip {Pixelvader_fla.sideLaserbtn_30} Frame 1Symbol 85 MovieClip
"back"Symbol 92 MovieClip {Pixelvader_fla.diaFrontLaserbtn_31} Frame 1Symbol 85 MovieClip
"back"Symbol 93 MovieClip {Pixelvader_fla.diaRearLaserbtn_32} Frame 1Symbol 85 MovieClip
"star"Symbol 102 MovieClip {niv1} Frame 1Symbol 73 MovieClip
"star"Symbol 113 MovieClip {niv2} Frame 1Symbol 73 MovieClip
"star"Symbol 115 MovieClip {niv3} Frame 1Symbol 73 MovieClip
"star"Symbol 117 MovieClip {niv4} Frame 1Symbol 73 MovieClip
"back"Symbol 120 MovieClip {Pixelvader_fla.diaFrontLaser2btn_45} Frame 1Symbol 85 MovieClip
"back"Symbol 121 MovieClip {Pixelvader_fla.diaRearLaser2btn_46} Frame 1Symbol 85 MovieClip
"back"Symbol 125 MovieClip {Pixelvader_fla.fontLaser2btn_49} Frame 1Symbol 85 MovieClip
"back"Symbol 133 MovieClip {Pixelvader_fla.rearLaser2btn_53} Frame 1Symbol 85 MovieClip
"back"Symbol 138 MovieClip {Pixelvader_fla.sideLaser2btn_56} Frame 1Symbol 85 MovieClip
"star"Symbol 142 MovieClip {niv6} Frame 1Symbol 73 MovieClip
"star"Symbol 144 MovieClip {niv7} Frame 1Symbol 73 MovieClip
"cashtxt"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 63 EditableText
"detailtxt"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 65 EditableText
"resetP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 69 Button
"lvl5btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 75 MovieClip {niv5}
"lvl8btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 77 MovieClip {niv8}
"lvl9btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 79 MovieClip {niv9}
"lvl10btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 81 MovieClip {niv10}
"lvlbonusbtn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 83 MovieClip {nivbonus}
"frontLaserP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 88 MovieClip {Pixelvader_fla.fontLaserbtn_27}
"rearLaserP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 90 MovieClip {Pixelvader_fla.rearLaserbtn_29}
"sideLaserP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 91 MovieClip {Pixelvader_fla.sideLaserbtn_30}
"diaFrontLaserP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 92 MovieClip {Pixelvader_fla.diaFrontLaserbtn_31}
"diaRearLaserP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 93 MovieClip {Pixelvader_fla.diaRearLaserbtn_32}
"lifeP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 95 Button
"firerateP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 96 Button
"powerLaserP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 98 Button
"repairP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 100 Button
"lvl1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 102 MovieClip {niv1}
"speedP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 104 Button
"reloadWaveP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 106 Button
"distanceWaveP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 108 Button
"missileP1btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 111 Button
"lvl2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 113 MovieClip {niv2}
"lvl3btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 115 MovieClip {niv3}
"lvl4btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 117 MovieClip {niv4}
"diaFrontLaserP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 120 MovieClip {Pixelvader_fla.diaFrontLaser2btn_45}
"diaRearLaserP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 121 MovieClip {Pixelvader_fla.diaRearLaser2btn_46}
"distanceWaveP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 123 Button
"firerateP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 124 Button
"frontLaserP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 125 MovieClip {Pixelvader_fla.fontLaser2btn_49}
"missileP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 128 Button
"lifeP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 130 Button
"powerLaserP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 132 Button
"rearLaserP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 133 MovieClip {Pixelvader_fla.rearLaser2btn_53}
"reloadWaveP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 135 Button
"repairP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 137 Button
"sideLaserP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 138 MovieClip {Pixelvader_fla.sideLaser2btn_56}
"speedP2btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 140 Button
"lvl6btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 142 MovieClip {niv6}
"lvl7btn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 144 MovieClip {niv7}
"retourMenubtn"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 150 Button
"muteSoundMenu"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 153 Button
"muteMusicMenu"Symbol 158 MovieClip {interfaceMenuMP} Frame 1Symbol 157 Button
"cashtxt"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 159 EditableText
"detailtxt"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 160 EditableText
"resetP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 69 Button
"lvl5btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 75 MovieClip {niv5}
"lvl7btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 144 MovieClip {niv7}
"lvl8btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 77 MovieClip {niv8}
"lvl9btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 79 MovieClip {niv9}
"lvl10btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 81 MovieClip {niv10}
"lvlbonusbtn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 83 MovieClip {nivbonus}
"retourMenubtn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 150 Button
"frontLaserP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 88 MovieClip {Pixelvader_fla.fontLaserbtn_27}
"rearLaserP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 90 MovieClip {Pixelvader_fla.rearLaserbtn_29}
"sideLaserP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 91 MovieClip {Pixelvader_fla.sideLaserbtn_30}
"diaFrontLaserP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 92 MovieClip {Pixelvader_fla.diaFrontLaserbtn_31}
"diaRearLaserP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 93 MovieClip {Pixelvader_fla.diaRearLaserbtn_32}
"lifeP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 95 Button
"firerateP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 96 Button
"powerLaserP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 98 Button
"repairP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 100 Button
"lvl1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 102 MovieClip {niv1}
"speedP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 104 Button
"reloadWaveP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 106 Button
"distanceWaveP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 108 Button
"missileP1btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 111 Button
"lvl2btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 113 MovieClip {niv2}
"lvl3btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 115 MovieClip {niv3}
"lvl4btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 117 MovieClip {niv4}
"lvl6btn"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 142 MovieClip {niv6}
"muteSoundMenu"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 153 Button
"muteMusicMenu"Symbol 162 MovieClip {interfaceMenu} Frame 1Symbol 157 Button
"keyControlbtn"Symbol 177 MovieClip {controlChoiceSP} Frame 1Symbol 172 Button
"mouseControlbtn"Symbol 177 MovieClip {controlChoiceSP} Frame 1Symbol 175 Button
"choice1btn"Symbol 196 MovieClip {controlChoiceMP} Frame 1Symbol 184 Button
"choice2btn"Symbol 196 MovieClip {controlChoiceMP} Frame 1Symbol 188 Button
"choice3btn"Symbol 196 MovieClip {controlChoiceMP} Frame 1Symbol 195 Button
"cash"Symbol 198 MovieClip {game.general.cashIngame} Frame 1Symbol 197 EditableText
"okbtn"Symbol 214 MovieClip {tutorial} Frame 1Symbol 213 Button
"muteSoundbtn"Symbol 241 MovieClip {ecranPause} Frame 1Symbol 153 Button
"resumebtn"Symbol 241 MovieClip {ecranPause} Frame 1Symbol 238 Button
"quitbtn"Symbol 241 MovieClip {ecranPause} Frame 1Symbol 240 Button
"muteMusicbtn"Symbol 241 MovieClip {ecranPause} Frame 1Symbol 157 Button
"hider"Symbol 255 MovieClip {game.ennemis.bossLifeBar} Frame 1Symbol 253 MovieClip
"hider"Symbol 259 MovieClip {game.general.lifeBar} Frame 1Symbol 257 MovieClip
"hider"Symbol 264 MovieClip {game.general.waveBar} Frame 1Symbol 257 MovieClip
"ship"Symbol 267 MovieClip {game.ennemis.boss01} Frame 1Symbol 266 MovieClip
"hitB"Symbol 267 MovieClip {game.ennemis.boss01} Frame 1Symbol 34 MovieClip
"ship"Symbol 278 MovieClip {game.ennemis.boss02} Frame 1Symbol 277 MovieClip
"hitB"Symbol 278 MovieClip {game.ennemis.boss02} Frame 1Symbol 34 MovieClip
"ship"Symbol 290 MovieClip {game.ennemis.boss03} Frame 1Symbol 289 MovieClip
"hitB"Symbol 290 MovieClip {game.ennemis.boss03} Frame 1Symbol 34 MovieClip
"ship"Symbol 302 MovieClip {game.ennemis.boss04} Frame 1Symbol 301 MovieClip
"hitB"Symbol 302 MovieClip {game.ennemis.boss04} Frame 1Symbol 34 MovieClip
"ship"Symbol 314 MovieClip {game.ennemis.boss05} Frame 1Symbol 313 MovieClip
"hitB"Symbol 314 MovieClip {game.ennemis.boss05} Frame 1Symbol 34 MovieClip
"ship"Symbol 324 MovieClip {game.ennemis.boss06} Frame 1Symbol 323 MovieClip
"hitB"Symbol 324 MovieClip {game.ennemis.boss06} Frame 1Symbol 34 MovieClip
"ship"Symbol 334 MovieClip {game.ennemis.boss07} Frame 1Symbol 333 MovieClip
"hitB"Symbol 334 MovieClip {game.ennemis.boss07} Frame 1Symbol 34 MovieClip
"ship"Symbol 345 MovieClip {game.ennemis.boss08} Frame 1Symbol 344 MovieClip
"hitB"Symbol 345 MovieClip {game.ennemis.boss08} Frame 1Symbol 34 MovieClip
"ship"Symbol 356 MovieClip {game.ennemis.boss09} Frame 1Symbol 355 MovieClip
"hitB"Symbol 356 MovieClip {game.ennemis.boss09} Frame 1Symbol 34 MovieClip
"ship"Symbol 367 MovieClip {game.ennemis.boss10} Frame 1Symbol 366 MovieClip
"hitB"Symbol 367 MovieClip {game.ennemis.boss10} Frame 1Symbol 34 MovieClip
"back"Symbol 475 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 476 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 478 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 480 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 482 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 484 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 486 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 487 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 488 MovieClip Frame 1Symbol 85 MovieClip
"back"Symbol 490 MovieClip Frame 1Symbol 85 MovieClip
"txtNDeaths"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 471 EditableText
"txtNHits"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 472 EditableText
"txtNKills"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 473 EditableText
"txtDescriptionAchi"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 474 EditableText
"retourMenubtn"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 150 Button
"achi100Kills"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 475 MovieClip
"achi500Kills"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 476 MovieClip
"achiGameCompleted"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 478 MovieClip
"achiBonusCompleted"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 480 MovieClip
"achi1MaxLvl"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 482 MovieClip
"achiAllMaxLvl"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 484 MovieClip
"achiWithoutHit15"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 486 MovieClip
"achiWithoutHit610"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 487 MovieClip
"achiWithoutHitBonus"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 488 MovieClip
"achiWithoutHitAll"Symbol 491 MovieClip {achievementPage} Frame 1Symbol 490 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/28/135383/info.shtml
Created: 9/2 -2019 13:18:33 Last modified: 9/2 -2019 13:18:33 Server time: 15/05 -2024 20:18:59