Section 1
//Canva_3 (Fixed_Invasion_fla.Canva_3)
package Fixed_Invasion_fla {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public dynamic class Canva_3 extends MovieClip {
public var mvmg:Boolean;
public var shoot:Boolean;
public var Fire:fire;
public var dead:Boolean;
public var n:int;
public var k:int;
public var once:Boolean;
public var Hit:hit;
public var ladescente:MovieClip;
public var tir:MovieClip;
public var critical:Boolean;
public var aliena:Alien1;
public var dance:Boolean;
public var lescore:MovieClip;
public var lesvies:MovieClip;
public var player:MovieClip;
public var TheStartCarton:MovieClip;
public function Canva_3(){
addFrameScript(0, frame1, 1, frame2);
}
public function KeyHandler(_arg1:KeyboardEvent):void{
if (!dead){
if (_arg1.keyCode == Keyboard.LEFT){
player.x = (player.x - 5);
};
if (_arg1.keyCode == Keyboard.RIGHT){
player.x = (player.x + 5);
};
if (player.x < 15){
player.x = 15;
};
if (player.x > 535){
player.x = 535;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (((!(shoot)) && (!(critical)))){
tir.x = player.x;
tir.y = player.y;
Fire.play();
shoot = true;
};
};
};
}
function frame1(){
Fire = new fire();
Hit = new hit();
switch (aliena.currentFrame){
case 1:
aliena.nextFrame();
break;
case 2:
aliena.prevFrame();
break;
default:
break;
};
switch (n){
case 0:
dead = true;
player.stop();
ladescente.stop();
lesvies.stop();
lescore.stop();
if (TheStartCarton.currentFrame == TheStartCarton.totalFrames){
n = 1;
};
break;
case 1:
dead = false;
if (mvmg){
if (aliena.x < 100){
mvmg = !(mvmg);
aliena.y = (aliena.y + 10);
} else {
aliena.x = (aliena.x - 3);
};
} else {
if (aliena.x > 450){
mvmg = !(mvmg);
aliena.y = (aliena.y + 10);
} else {
aliena.x = (aliena.x + 3);
};
};
break;
case 2:
aliena.stop();
if (ladescente.currentFrame == ladescente.totalFrames){
ladescente.gotoAndStop(1);
aliena.gotoAndPlay(1);
aliena.x = 139;
aliena.y = 67;
n = 1;
};
break;
};
if (shoot){
if (tir.y > 0){
tir.y = (tir.y - 20);
} else {
shoot = false;
tir.x = -30;
tir.y = 600;
};
} else {
tir.x = -30;
tir.y = 600;
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyHandler);
if ((((((((tir.y < (aliena.y + (aliena.height / 2)))) && ((tir.y > ((aliena.y - (aliena.height / 2)) - 10))))) && ((tir.x < (aliena.x + (aliena.width / 2)))))) && ((tir.x > (aliena.x - (aliena.width / 2)))))){
aliena.gotoAndPlay(3);
Hit.play();
ladescente.gotoAndPlay(2);
lescore.nextFrame();
shoot = false;
k++;
n++;
};
}
function frame2(){
this.gotoAndPlay(1);
}
}
}//package Fixed_Invasion_fla
Section 2
//CartonStart_13 (Fixed_Invasion_fla.CartonStart_13)
package Fixed_Invasion_fla {
import flash.events.*;
import flash.display.*;
public dynamic class CartonStart_13 extends MovieClip {
public var cartonstartbtn:SimpleButton;
public function CartonStart_13(){
addFrameScript(0, frame1, 1, frame2);
}
public function CartonbuttonClickHandler(_arg1:MouseEvent):void{
play();
}
function frame1(){
cartonstartbtn.addEventListener(MouseEvent.CLICK, CartonbuttonClickHandler);
stop();
}
function frame2(){
stop();
}
}
}//package Fixed_Invasion_fla
Section 3
//descente_12 (Fixed_Invasion_fla.descente_12)
package Fixed_Invasion_fla {
import flash.events.*;
import flash.display.*;
public dynamic class descente_12 extends MovieClip {
public var alienb:Alien1;
public function descente_12(){
addFrameScript(1, frame2);
}
public function doEveryFrame(_arg1:Event):void{
if (alienb.currentFrame == 3){
alienb.gotoAndPlay(1);
};
}
function frame2(){
addEventListener(Event.ENTER_FRAME, doEveryFrame);
}
}
}//package Fixed_Invasion_fla
Section 4
//MainTimeline (Fixed_Invasion_fla.MainTimeline)
package Fixed_Invasion_fla {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.text.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var once:Boolean;
public var lecanva:MovieClip;
public var Leave_btn:SimpleButton;
public function MainTimeline(){
addFrameScript(1, frame2, 2, frame3, 605, frame606, 618, frame619);
}
function frame606(){
Leave_btn.addEventListener(MouseEvent.CLICK, urlbuttonClickHandler);
}
function frame3(){
removeEventListener(Event.ENTER_FRAME, doEveryFrame);
}
function frame619(){
stop();
}
function frame2(){
addEventListener(Event.ENTER_FRAME, doEveryFrame);
stop();
}
public function urlbuttonClickHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.retrosabotage.com"), "_self");
}
public function doEveryFrame(_arg1:Event):void{
if (lecanva.k == 2){
play();
once = true;
};
}
}
}//package Fixed_Invasion_fla
Section 5
//Alien1 (Alien1)
package {
import flash.display.*;
public dynamic class Alien1 extends MovieClip {
}
}//package
Section 6
//boom (boom)
package {
import flash.media.*;
public dynamic class boom extends Sound {
}
}//package
Section 7
//fire (fire)
package {
import flash.media.*;
public dynamic class fire extends Sound {
}
}//package
Section 8
//hit (hit)
package {
import flash.media.*;
public dynamic class hit extends Sound {
}
}//package
Section 9
//marche (marche)
package {
import flash.media.*;
public dynamic class marche extends Sound {
}
}//package
Section 10
//note1 (note1)
package {
import flash.media.*;
public dynamic class note1 extends Sound {
}
}//package
Section 11
//note2 (note2)
package {
import flash.media.*;
public dynamic class note2 extends Sound {
}
}//package
Section 12
//note3 (note3)
package {
import flash.media.*;
public dynamic class note3 extends Sound {
}
}//package
Section 13
//note4 (note4)
package {
import flash.media.*;
public dynamic class note4 extends Sound {
}
}//package
Section 14
//Symbol1 (Symbol1)
package {
import flash.display.*;
public dynamic class Symbol1 extends MovieClip {
}
}//package