Section 1
//CartonStart_10 (Fixed_happynewyear_fla.CartonStart_10)
package Fixed_happynewyear_fla {
import flash.events.*;
import flash.display.*;
public dynamic class CartonStart_10 extends MovieClip {
public var cartonstartbtn:SimpleButton;
public function CartonStart_10(){
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_happynewyear_fla
Section 2
//MainTimeline (Fixed_happynewyear_fla.MainTimeline)
package Fixed_happynewyear_fla {
import flash.events.*;
import flash.display.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var Boom:boom;
public var mvmg:Boolean;
public var shoot:Boolean;
public var Fire:fire;
public var Laugh:laugh;
public var n:int;
public var alienb:Alien1;
public var once:Boolean;
public var Hit:hit;
public var curtain:MovieClip;
public var tir:MovieClip;
public var aliena:Alien1;
public var Zone:zone;
public var player:MovieClip;
public var TheStartCarton:MovieClip;
public function MainTimeline(){
addFrameScript(1, frame2, 2, frame3);
}
public function KeyHandler(_arg1:KeyboardEvent):void{
if (_arg1.keyCode == Keyboard.LEFT){
player.x = (player.x - 5);
};
if (_arg1.keyCode == Keyboard.RIGHT){
player.x = (player.x + 5);
};
if (_arg1.keyCode == Keyboard.SPACE){
if (!shoot){
tir.x = player.x;
Fire.play();
};
shoot = true;
};
}
function frame3(){
gotoAndPlay(2);
}
function frame2(){
Fire = new fire();
Hit = new hit();
Boom = new boom();
Laugh = new laugh();
Zone = new zone();
if (TheStartCarton.currentFrame == TheStartCarton.totalFrames){
if (n == 5){
Laugh.play();
};
if (curtain.currentFrame > 80){
if (!once){
curtain.stop();
Boom.play();
once = true;
};
} else {
if (!once){
if (n > 4){
curtain.play();
n++;
} else {
curtain.stop();
};
switch (aliena.currentFrame){
case 1:
aliena.nextFrame();
break;
case 2:
aliena.prevFrame();
break;
};
if (mvmg){
if (aliena.x == 120){
mvmg = !(mvmg);
aliena.y = (aliena.y + 5);
} else {
aliena.x = (aliena.x - 3);
};
} else {
if (aliena.x == 420){
mvmg = !(mvmg);
aliena.y = (aliena.y + 5);
} else {
aliena.x = (aliena.x + 3);
};
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyHandler);
if (shoot){
if (tir.y > 0){
tir.y = (tir.y - 20);
} else {
shoot = false;
tir.x = -30;
tir.y = 360;
};
} else {
tir.x = -30;
tir.y = 360;
};
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)))))){
shoot = false;
if (n == 0){
Zone.play();
};
if (n < 5){
aliena.gotoAndPlay(3);
aliena.width = (aliena.width * 2);
aliena.height = (aliena.height * 2);
n++;
Hit.play();
};
};
};
};
} else {
curtain.stop();
aliena.stop();
};
}
}
}//package Fixed_happynewyear_fla
Section 3
//Symbol4_7 (Fixed_happynewyear_fla.Symbol4_7)
package Fixed_happynewyear_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Symbol4_7 extends MovieClip {
public var url_btn:SimpleButton;
public function Symbol4_7(){
addFrameScript(79, frame80);
}
function frame80(){
url_btn.addEventListener(MouseEvent.CLICK, urlbuttonClickHandler);
}
public function urlbuttonClickHandler(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://www.retrosabotage.com"), "_self");
}
}
}//package Fixed_happynewyear_fla
Section 4
//Alien1 (Alien1)
package {
import flash.display.*;
public dynamic class Alien1 extends MovieClip {
}
}//package
Section 5
//boom (boom)
package {
import flash.media.*;
public dynamic class boom extends Sound {
}
}//package
Section 6
//fire (fire)
package {
import flash.media.*;
public dynamic class fire extends Sound {
}
}//package
Section 7
//hit (hit)
package {
import flash.media.*;
public dynamic class hit extends Sound {
}
}//package
Section 8
//hop (hop)
package {
import flash.media.*;
public dynamic class hop extends Sound {
}
}//package
Section 9
//laugh (laugh)
package {
import flash.media.*;
public dynamic class laugh 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
Section 15
//zone (zone)
package {
import flash.media.*;
public dynamic class zone extends Sound {
}
}//package