Section 1
//dead_30 (NinjaRobbers_fla.dead_30)
package NinjaRobbers_fla {
import flash.display.*;
public dynamic class dead_30 extends MovieClip {
public function dead_30(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package NinjaRobbers_fla
Section 2
//MainTimeline (NinjaRobbers_fla.MainTimeline)
package NinjaRobbers_fla {
import flash.display.*;
import flash.text.*;
import flash.events.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var enemy2reach:Boolean;
public var ui1:UI;
public var fence1:fencea;
public var e1walk:Boolean;
public var enemy3hurt:Boolean;
public var monies:int;
public var mobman:MobMan;
public var e4sstime:Number;
public var e5enter:Boolean;
public var roofing:RoofingDoor;
public var score:int;
public var e2enter:Boolean;
public var bgA:BG1;
public var e3speed:Number;
public var enemy3reach:Boolean;
public var e1sstime:Number;
public var enemy2hurt:Boolean;
public var placement:Number;
public var ninja1:NinjaFull;
public var ninja2:NinjaFull2;
public var wave:Number;
public var pris1:Pris1;
public var e3sstime:Number;
public var e4ss:Boolean;
public var house:House;
public var e3enter:Boolean;
public var e4speed:Number;
public var mobdoor1:mobdoor;
public var timer:Number;
public var enemy1hurt:Boolean;
public var enemy4reach:Boolean;
public var e3ss:Boolean;
public var e1speed:Number;
public var enemy1reach:Boolean;
public var border1:border;
public var e2ss:Boolean;
public var e5sstime:Number;
public var enemy1:MovieClip;
public var enemy5:MovieClip;
public var enemy2:MovieClip;
public var enemy3:MovieClip;
public var enemy4:MovieClip;
public var door:Door;
public var enemy4hurt:Boolean;
public var coin1:Coin;
public var coin2:Coin;
public var coin4:Coin;
public var e4enter:Boolean;
public var e1ss:Boolean;
public var coin3:Coin;
public var win1:Win1;
public var win2:Win2;
public var e2sstime:Number;
public var e1alive:Boolean;
public var e1enter:Boolean;
public var e2speed:Number;
public function MainTimeline(){
addFrameScript(0, frame1);
}
function frame1(){
bgA = new BG1();
win1 = new Win1();
win2 = new Win2();
placement = 0;
roofing = new RoofingDoor();
house = new House();
fence1 = new fencea();
monies = 1000;
score = 0;
ui1 = new UI();
border1 = new border();
wave = 1;
timer = 0;
enemy1 = new MovieClip();
enemy2 = new MovieClip();
enemy3 = new MovieClip();
enemy4 = new MovieClip();
enemy5 = new MovieClip();
e1enter = false;
e2enter = false;
e3enter = false;
e4enter = false;
e5enter = false;
e1walk = false;
e1alive = true;
e1speed = 3;
e2speed = 3;
e3speed = 3;
e4speed = 4;
door = new Door();
enemy1reach = false;
enemy2reach = false;
enemy3reach = false;
enemy4reach = false;
enemy1hurt = false;
enemy2hurt = false;
enemy3hurt = false;
enemy4hurt = false;
mobman = new MobMan();
ninja1 = new NinjaFull();
ninja2 = new NinjaFull2();
pris1 = new Pris1();
e1ss = false;
e2ss = false;
e3ss = false;
e4ss = false;
coin1 = new Coin();
coin2 = new Coin();
coin3 = new Coin();
coin4 = new Coin();
mobdoor1 = new mobdoor();
e1sstime = 0;
e2sstime = 0;
e3sstime = 0;
e4sstime = 0;
e5sstime = 0;
addChild(bgA);
addChild(house);
addChild(door);
addChild(roofing);
addChild(enemy1);
addChild(enemy2);
addChild(enemy3);
addChild(enemy4);
addChild(fence1);
addChild(ui1);
addChild(border1);
house.wina.addChild(win1);
house.winb.addChild(win2);
house.x = 0x0200;
house.y = 444;
door.x = 495;
door.y = (house.y + 1);
roofing.x = door.x;
roofing.y = door.y;
ui1.x = 0;
ui1.y = 0;
fence1.x = -270;
fence1.y = 455.8;
border1.x = -1220.8;
border1.y = 237.2;
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouse_Down);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouse_UP);
stage.addEventListener(Event.ENTER_FRAME, GameStart);
}
public function onMouse_Down(_arg1){
if (ui1.menu1.sidemenu.hitTestPoint(mouseX, mouseY, true)){
ui1.menu1.play();
};
if (((coin1.hitTestPoint(mouseX, mouseY, true)) && ((e1ss == false)))){
monies = (monies + 100);
removeChild(coin1);
};
if (((coin2.hitTestPoint(mouseX, mouseY, true)) && ((e2ss == false)))){
monies = (monies + 100);
removeChild(coin2);
};
if (((coin3.hitTestPoint(mouseX, mouseY, true)) && ((e3ss == false)))){
monies = (monies + 100);
removeChild(coin3);
};
if (((coin4.hitTestPoint(mouseX, mouseY, true)) && ((e4ss == false)))){
monies = (monies + 100);
removeChild(coin4);
};
}
public function GameStart(_arg1){
var _local2:Number;
var _local3:Object;
var _local4:Object;
var _local5:Object;
var _local6:Object;
score++;
_local2 = (Math.random() * 10);
if (_local2 < 5){
placement = -100;
} else {
if (_local2 > 5){
placement = 1125;
};
};
trace(_local2);
ui1.money.text = ("" + monies);
ui1.score.text = ("" + score);
if (e1ss == true){
coin1.x = enemy1.x;
coin1.y = 450;
};
if (e2ss == true){
coin2.x = enemy2.x;
coin2.y = 450;
};
if (e3ss == true){
coin3.x = enemy3.x;
coin3.y = 450;
};
if (e4ss == true){
coin4.x = enemy4.x;
coin4.y = 450;
};
trace(timer);
timer++;
if (wave == 2){
if (timer < -5){
timer = 50;
};
if (timer > 100){
_local3 = mobman;
e1speed = 6;
enemy1.removeChild(mobman);
enemy1.addChild(mobman);
_local4 = pris1;
e2speed = 7;
enemy2.removeChild(pris1);
enemy2.addChild(pris1);
_local5 = ninja1;
e3speed = 7;
enemy3.removeChild(ninja1);
enemy3.addChild(ninja1);
_local6 = ninja2;
e4speed = 6;
enemy4.removeChild(ninja2);
enemy4.addChild(ninja2);
if (timer > 700){
timer = -10;
};
if (timer < -5){
wave = 3;
};
};
};
if (wave == 1){
if (timer > 100){
_local3 = mobman;
e1speed = 3;
enemy1.addChild(mobman);
_local4 = pris1;
e2speed = 5;
enemy2.addChild(pris1);
_local5 = ninja1;
e3speed = 5;
enemy3.addChild(ninja1);
_local6 = ninja2;
e4speed = 3;
enemy4.addChild(ninja2);
if (timer > 700){
timer = -10;
};
if (timer < -5){
wave = 2;
};
};
};
if (timer > 100){
if (timer < 106){
e1sstime = 0;
e2sstime = 0;
e3sstime = 0;
e4sstime = 0;
e5sstime = 0;
_local3.gotoAndStop(1);
_local3.y = 450;
e1enter = false;
enemy1reach = false;
e1ss = false;
enemy1.x = placement;
if (enemy1.x < 0){
_local3.scaleX = -1;
} else {
_local3.scaleX = 1;
};
};
if (enemy1hurt == false){
trace(e1sstime);
if (e1sstime > 25){
e1ss = true;
};
if (enemy1.hitTestObject(door) == true){
enemy1reach = true;
door.play();
e1sstime++;
e1enter = true;
} else {
enemy1reach = false;
e1enter = false;
};
if (e1enter == true){
if (_local3.scaleX == 1){
if (e1ss == true){
enemy1.x = (enemy1.x - e1speed);
};
if (e1ss == false){
if (_local3.currentFrame == 1){
monies = (monies - 100);
enemy1reach = true;
_local3.gotoAndStop(2);
};
if (_local3.currentFrame == 2){
_local3.stop();
};
};
} else {
if (_local3.scaleX == -1){
if (e1ss == true){
enemy1.x = (enemy1.x + e1speed);
};
if (e1ss == false){
if (_local3.currentFrame == 1){
door.play();
monies = (monies - 100);
enemy1reach = true;
_local3.gotoAndStop(2);
};
if (_local3.currentFrame == 2){
_local3.stop();
};
};
};
};
} else {
if (e1enter == false){
enemy1reach = false;
if (_local3.scaleX == 1){
enemy1.x = (enemy1.x - e1speed);
} else {
if (_local3.scaleX == -1){
enemy1.x = (enemy1.x + e1speed);
};
};
};
};
} else {
if (enemy1hurt == true){
e1sstime++;
if (e1sstime > 15){
enemy1.x = -1000;
};
if (e1sstime > 100){
enemy1hurt = false;
};
if (_local3.currentFrame < 3){
_local3.gotoAndStop(3);
};
};
};
};
if (timer > 150){
if (timer < 156){
_local4.gotoAndStop(1);
e2enter = false;
enemy2reach = false;
e2ss = false;
_local4.y = 450;
enemy2.x = placement;
if (enemy2.x < 0){
_local4.scaleX = -1;
} else {
_local4.scaleX = 1;
};
};
if (enemy2hurt == false){
if (e2sstime > 100){
e2sstime = 0;
};
if (e2sstime > 25){
e2ss = true;
};
if (enemy2.hitTestObject(win1) == true){
win1.play();
e2enter = true;
enemy2reach = true;
} else {
if (enemy2.hitTestObject(win2) == true){
win2.play();
e2enter = true;
enemy2reach = true;
} else {
e2enter = false;
enemy2reach = false;
};
};
if (e2enter == true){
e2sstime++;
if (_local4.scaleX == 1){
if (e2ss == true){
enemy2.x = (enemy2.x - e2speed);
};
if (e2ss == false){
if (_local4.currentFrame == 1){
monies = (monies - 100);
enemy2reach = true;
_local4.gotoAndStop(2);
};
if (_local4.currentFrame == 2){
_local4.stop();
};
};
} else {
if (_local4.scaleX == -1){
if (e2ss == true){
enemy2.x = (enemy2.x + e2speed);
};
if (e2ss == false){
if (_local4.currentFrame == 1){
monies = (monies - 100);
enemy2reach = true;
_local4.gotoAndStop(2);
};
if (_local4.currentFrame == 2){
_local4.stop();
};
};
};
};
} else {
if (e2enter == false){
enemy2reach = false;
if (_local4.scaleX == 1){
enemy2.x = (enemy2.x - e2speed);
} else {
if (_local4.scaleX == -1){
enemy2.x = (enemy2.x + e2speed);
};
};
};
};
} else {
if (enemy2hurt == true){
e2sstime++;
if (e2sstime > 15){
enemy2.x = -1000;
};
if (e2sstime > 100){
enemy2hurt = false;
};
if (_local4.currentFrame < 3){
_local4.gotoAndStop(3);
};
};
};
};
if (timer > 250){
if (timer < 0x0100){
_local5.gotoAndStop(1);
e3enter = false;
enemy3reach = false;
e3ss = false;
_local5.y = 450;
enemy3.x = placement;
if (enemy3.x < 0){
_local5.scaleX = -1;
} else {
_local5.scaleX = 1;
};
};
if (enemy3hurt == false){
if (e3sstime > 100){
e3sstime = 0;
};
if (e3sstime > 25){
e3ss = true;
};
if (enemy3.hitTestObject(win1) == true){
win1.play();
e3enter = true;
enemy3reach = true;
} else {
if (enemy3.hitTestObject(win2) == true){
win2.play();
e3enter = true;
enemy3reach = true;
} else {
e3enter = false;
enemy3reach = false;
};
};
if (e3enter == true){
e3sstime++;
if (_local5.scaleX == 1){
if (e3ss == true){
enemy3.x = (enemy3.x - e3speed);
};
if (e3ss == false){
if (_local5.currentFrame == 1){
monies = (monies - 100);
enemy3reach = true;
_local5.gotoAndStop(2);
};
if (_local5.currentFrame == 2){
_local5.stop();
};
};
} else {
if (_local5.scaleX == -1){
if (e3ss == true){
enemy3.x = (enemy3.x + e3speed);
};
if (e3ss == false){
if (_local5.currentFrame == 1){
monies = (monies - 100);
enemy3reach = true;
_local5.gotoAndStop(2);
};
if (_local5.currentFrame == 2){
_local5.stop();
};
};
};
};
} else {
if (e3enter == false){
enemy3reach = false;
if (_local5.scaleX == 1){
enemy3.x = (enemy3.x - e3speed);
} else {
if (_local5.scaleX == -1){
enemy3.x = (enemy3.x + e3speed);
};
};
};
};
} else {
if (enemy3hurt == true){
e3sstime++;
if (e3sstime > 15){
enemy3.x = -1000;
};
if (e3sstime > 100){
enemy3hurt = false;
};
if (_local5.currentFrame < 3){
_local5.gotoAndStop(3);
};
};
};
};
if (timer > 350){
if (timer < 356){
_local6.gotoAndStop(1);
e4enter = false;
enemy4reach = false;
e4ss = false;
e4speed = 5;
_local6.y = 450;
enemy4.x = placement;
if (enemy4.x < 0){
_local6.scaleX = -1;
} else {
_local6.scaleX = 1;
};
};
if (enemy4hurt == false){
if (e4sstime > 100){
e4sstime = 0;
};
if (e4sstime > 25){
e4ss = true;
};
if (enemy4.hitTestObject(win1) == true){
win1.play();
e4enter = true;
enemy4reach = true;
} else {
if (enemy4.hitTestObject(win2) == true){
win2.play();
e4enter = true;
enemy4reach = true;
} else {
e4enter = false;
enemy4reach = false;
};
};
if (e4enter == true){
e4sstime++;
if (_local6.scaleX == 1){
if (e4ss == true){
enemy4.x = (enemy4.x - e4speed);
};
if (e4ss == false){
if (_local6.currentFrame == 1){
monies = (monies - 100);
enemy4reach = true;
_local6.gotoAndStop(2);
};
if (_local6.currentFrame == 2){
_local6.stop();
};
};
} else {
if (_local6.scaleX == -1){
if (e4ss == true){
enemy4.x = (enemy4.x + e4speed);
};
if (e4ss == false){
if (_local6.currentFrame == 1){
monies = (monies - 100);
enemy4reach = true;
_local6.gotoAndStop(2);
};
if (_local6.currentFrame == 2){
_local6.stop();
};
};
};
};
} else {
if (e4enter == false){
enemy4reach = false;
if (_local6.scaleX == 1){
enemy4.x = (enemy4.x - e4speed);
} else {
if (_local6.scaleX == -1){
enemy4.x = (enemy4.x + e4speed);
};
};
};
};
} else {
if (enemy4hurt == true){
e4sstime++;
if (e4sstime > 15){
enemy4.x = -1000;
};
if (e4sstime > 100){
enemy4hurt = false;
};
if (_local6.currentFrame < 3){
_local6.gotoAndStop(3);
};
};
};
};
}
public function onMouse_UP(_arg1){
if (enemy4.hitTestPoint(mouseX, mouseY, true)){
if ((((enemy4hurt == false)) && ((enemy4reach == false)))){
if (e4ss == true){
addChild(coin4);
e4ss = false;
};
score = (score + 500);
e4sstime = 0;
enemy4hurt = true;
};
};
if (enemy3.hitTestPoint(mouseX, mouseY, true)){
if ((((enemy3hurt == false)) && ((enemy3reach == false)))){
if (e3ss == true){
addChild(coin3);
e3ss = false;
};
score = (score + 500);
e3sstime = 0;
enemy3hurt = true;
};
};
if (enemy2.hitTestPoint(mouseX, mouseY, true)){
if ((((enemy2hurt == false)) && ((enemy2reach == false)))){
if (e2ss == true){
addChild(coin2);
e2ss = false;
};
score = (score + 500);
e2sstime = 0;
enemy2hurt = true;
};
};
if (enemy1.hitTestPoint(mouseX, mouseY, true)){
if ((((enemy1hurt == false)) && ((enemy1reach == false)))){
if (e1ss == true){
addChild(coin1);
e1ss = false;
};
score = (score + 500);
e1sstime = 0;
enemy1hurt = true;
};
};
}
}
}//package NinjaRobbers_fla
Section 3
//Menu1_53 (NinjaRobbers_fla.Menu1_53)
package NinjaRobbers_fla {
import flash.display.*;
public dynamic class Menu1_53 extends MovieClip {
public var sidemenu:SimpleButton;
public function Menu1_53(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
stop();
}
}
}//package NinjaRobbers_fla
Section 4
//MobManDie_40 (NinjaRobbers_fla.MobManDie_40)
package NinjaRobbers_fla {
import flash.display.*;
public dynamic class MobManDie_40 extends MovieClip {
public function MobManDie_40(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package NinjaRobbers_fla
Section 5
//NinjaDie_24 (NinjaRobbers_fla.NinjaDie_24)
package NinjaRobbers_fla {
import flash.display.*;
public dynamic class NinjaDie_24 extends MovieClip {
public function NinjaDie_24(){
addFrameScript(8, frame9);
}
function frame9(){
stop();
}
}
}//package NinjaRobbers_fla
Section 6
//NinjaFlip_14 (NinjaRobbers_fla.NinjaFlip_14)
package NinjaRobbers_fla {
import flash.display.*;
public dynamic class NinjaFlip_14 extends MovieClip {
public var howdy:MovieClip;
}
}//package NinjaRobbers_fla
Section 7
//NinjaRun_12 (NinjaRobbers_fla.NinjaRun_12)
package NinjaRobbers_fla {
import flash.display.*;
public dynamic class NinjaRun_12 extends MovieClip {
public var norm:MovieClip;
public function NinjaRun_12(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
if (parent.parent.scaleX < 0){
parent.parent.scaleX = 1;
} else {
parent.parent.scaleX = -1;
};
}
}
}//package NinjaRobbers_fla
Section 8
//prisstand_29 (NinjaRobbers_fla.prisstand_29)
package NinjaRobbers_fla {
import flash.display.*;
public dynamic class prisstand_29 extends MovieClip {
public function prisstand_29(){
addFrameScript(40, frame41);
}
function frame41(){
stop();
if (parent.scaleX < 0){
parent.scaleX = 1;
} else {
parent.scaleX = -1;
};
}
}
}//package NinjaRobbers_fla
Section 9
//Symbol6_4 (NinjaRobbers_fla.Symbol6_4)
package NinjaRobbers_fla {
import flash.display.*;
public dynamic class Symbol6_4 extends MovieClip {
public function Symbol6_4(){
addFrameScript(0, frame1, 11, frame12);
}
function frame12(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package NinjaRobbers_fla
Section 10
//BG1 (BG1)
package {
import flash.display.*;
public dynamic class BG1 extends MovieClip {
}
}//package
Section 11
//border (border)
package {
import flash.display.*;
public dynamic class border extends MovieClip {
}
}//package
Section 12
//Coin (Coin)
package {
import flash.display.*;
public dynamic class Coin extends MovieClip {
}
}//package
Section 13
//Door (Door)
package {
import flash.display.*;
public dynamic class Door extends MovieClip {
public function Door(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 14
//fencea (fencea)
package {
import flash.display.*;
public dynamic class fencea extends MovieClip {
}
}//package
Section 15
//House (House)
package {
import flash.display.*;
public dynamic class House extends MovieClip {
public var wina:Win1;
public var winb:Win2;
}
}//package
Section 16
//MainLogo (MainLogo)
package {
import flash.display.*;
public dynamic class MainLogo extends MovieClip {
}
}//package
Section 17
//menu (menu)
package {
import flash.display.*;
public dynamic class menu extends SimpleButton {
}
}//package
Section 18
//menutab (menutab)
package {
import flash.display.*;
public dynamic class menutab extends SimpleButton {
}
}//package
Section 19
//mobdoor (mobdoor)
package {
import flash.display.*;
public dynamic class mobdoor extends MovieClip {
public var e1:MovieClip;
public function mobdoor(){
addFrameScript(41, frame42);
}
function frame42(){
stop();
if (parent.scaleX < 0){
parent.scaleX = 1;
} else {
parent.scaleX = -1;
};
}
}
}//package
Section 20
//MobMan (MobMan)
package {
import flash.display.*;
public dynamic class MobMan extends MovieClip {
public var e1:MovieClip;
public function MobMan(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 21
//NaticaScroll1 (NaticaScroll1)
package {
import flash.display.*;
public dynamic class NaticaScroll1 extends MovieClip {
}
}//package
Section 22
//NinjaFull (NinjaFull)
package {
import flash.display.*;
public dynamic class NinjaFull extends MovieClip {
public var ninj:MovieClip;
public var expl:MovieClip;
public function NinjaFull(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
expl.y = (expl.y - ninj.height);
ninj.alpha = 0;
expl.alpha = 100;
}
function frame1(){
expl.alpha = 0;
ninj.alpha = 100;
stop();
}
function frame2(){
ninj.alpha = 0;
}
}
}//package
Section 23
//NinjaFull2 (NinjaFull2)
package {
import flash.display.*;
public dynamic class NinjaFull2 extends MovieClip {
public var ninj:MovieClip;
public var expl:MovieClip;
public function NinjaFull2(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
expl.y = -(ninj.height);
ninj.alpha = 0;
expl.alpha = 100;
}
function frame1(){
expl.alpha = 0;
ninj.alpha = 100;
stop();
}
function frame2(){
ninj.alpha = 0;
}
}
}//package
Section 24
//Pris1 (Pris1)
package {
import flash.display.*;
public dynamic class Pris1 extends MovieClip {
public function Pris1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 25
//RoofingDoor (RoofingDoor)
package {
import flash.display.*;
public dynamic class RoofingDoor extends MovieClip {
}
}//package
Section 26
//Toucher1 (Toucher1)
package {
import flash.display.*;
public dynamic class Toucher1 extends MovieClip {
public function Toucher1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 27
//Toucher2 (Toucher2)
package {
import flash.display.*;
public dynamic class Toucher2 extends MovieClip {
}
}//package
Section 28
//UI (UI)
package {
import flash.display.*;
import flash.text.*;
public dynamic class UI extends MovieClip {
public var score:TextField;
public var menu1:MovieClip;
public var money:TextField;
}
}//package
Section 29
//Win1 (Win1)
package {
import flash.display.*;
public dynamic class Win1 extends MovieClip {
public function Win1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 30
//Win2 (Win2)
package {
import flash.display.*;
public dynamic class Win2 extends MovieClip {
public function Win2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package