Section 1
//b_quit_82 (aliosarmy_fla.b_quit_82)
package aliosarmy_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class b_quit_82 extends MovieClip {
public function b_quit_82(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package aliosarmy_fla
Section 2
//blink_77 (aliosarmy_fla.blink_77)
package aliosarmy_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class blink_77 extends MovieClip {
public function blink_77(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package aliosarmy_fla
Section 3
//MainTimeline (aliosarmy_fla.MainTimeline)
package aliosarmy_fla {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class MainTimeline extends MovieClip {
public var mMotor:Sound;
public var b_quit:MovieClip;
public var aAnim:MovieClip;
public var alvohero:DisplayObject;
public var alvo:DisplayObject;
public var resultCor:ColorTransform;
public var tMissel:Timer;
public var b_start:SimpleButton;
public var fundo:MovieClip;
public var cEfeitos:SoundChannel;
public var comboTimer:Timer;
public var mpopup:MovieClip;
public var mRadioDivers:Sound;
public var b_try:SimpleButton;
public var atMultiCombo:int;
public var mRadioChefe:Sound;
public var transforma:SoundTransform;
public var mRadioSeekers:Sound;
public var chapter;
public var movSplash:Splash;
public var b_back:SimpleButton;
public var mMachineg:Sound;
public var pontos;
public var miliTimer:Timer;
public var meuSite:SimpleButton;
public var alvodest:DisplayObject;
public var mRadioBandits:Sound;
public var antstr:String;
public var wave;
public var mExplosao:Sound;
public var mExplosaog:Sound;
public var atCombo:int;
public var tDoubleClick:Timer;
public var mphase:MovieClip;
public var cenario2:MovieClip;
public var cenario1:MovieClip;
public var waveList:Array;
public var mcombo:MovieClip;
public var mpontos:MovieClip;
public var cRadio:SoundChannel;
public var transpTimer:Timer;
public var b_high:SimpleButton;
public var fadeCor:ColorTransform;
public var mMissel:Sound;
public var ativDoubleClick:int;
public var powerCombo:int;
public var tInim:Timer;
public var wavePhrases:Array;
public var mRadioJets:Sound;
public var numInimigos;
public var movHiScores:HiScores;
public var comboCirc:MovieClip;
public var b_playmore:SimpleButton;
public var cMotor:SoundChannel;
public var bossTiros:Timer;
public var rot;
public var mfrase:MovieClip;
public var pContainer:DisplayObjectContainer;
public var hero:MovieClip;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 127, frame128, 266, frame267, 267, frame268, 268, frame269, 269, frame270, 270, frame271, 271, frame272);
}
function frame272(){
movHiScores.setDetails(68, 0, "aliosarmy", false, pontos, pontos.toString(), "points!");
b_try.addEventListener(MouseEvent.CLICK, tentar);
b_back.addEventListener(MouseEvent.CLICK, voltar);
}
public function inimigos(_arg1:Event):void{
var _local2:*;
var _local3:MovieClip;
numInimigos = 0;
_local2 = 0;
while (_local2 <= (pContainer.numChildren - 1)) {
alvo = pContainer.getChildAt(_local2);
switch (alvo.name){
case "medkit":
numInimigos++;
alvo.x = (alvo.x - (alvo["velx"] * alvo["multip"]));
if (alvo["energia"] < 1){
if (alvo["release"] == false){
alvo["release"] = true;
_local3 = new energia();
_local3.x = alvo.x;
_local3.y = alvo.y;
_local3.name = "energia";
_local3.transform.colorTransform = resultCor;
pContainer.addChild(_local3);
};
var _local4 = alvo;
_local4["gotoAndStop"]((alvo["currentFrame"] + 1));
alvo.rotation = (alvo.rotation - 1);
alvo.x = (alvo.x + alvo["velx"]);
alvo.y = (alvo.y + alvo["vely"]);
alvo["velx"] = (alvo["velx"] - 0.01);
alvo["vely"] = (alvo["vely"] + 0.2);
criaFumaca(_local2, 0, 0, 1);
if (alvo.y > 320){
criaExplosao(_local2, 1);
upCombo();
pContainer.removeChild(alvo);
somaPontos(10);
};
};
break;
case "bandit":
numInimigos++;
_local4 = alvo;
_local4["gotoAndStop"](Math.floor((alvo["vely"] * 2)));
alvo.x = (alvo.x - (alvo["velx"] * alvo["multip"]));
if (alvo["energia"] < 1){
alvo.rotation = (alvo.rotation - 1);
alvo.x = (alvo.x + alvo["velx"]);
alvo.y = (alvo.y + alvo["vely"]);
alvo["velx"] = (alvo["velx"] - 0.01);
alvo["vely"] = (alvo["vely"] + 0.2);
criaFumaca(_local2, 0, 0, 1);
if (alvo.y > 320){
criaExplosao(_local2, 1);
upCombo();
pContainer.removeChild(alvo);
somaPontos(10);
};
};
break;
case "diver":
numInimigos++;
_local4 = alvo;
_local4["gotoAndStop"]((Math.floor(alvo["vely"]) + 20));
alvo.x = (alvo.x - (alvo["velx"] * alvo["multip"]));
alvo.y = (alvo.y + alvo["vely"]);
alvo.rotation = -(alvo["vely"]);
if (alvo["energia"] < 1){
alvo["velx"] = (alvo["velx"] - 0.01);
alvo["vely"] = (alvo["vely"] + 0.2);
criaFumaca(_local2, 0, 0, 1);
if (alvo.y > 320){
criaExplosao(_local2, 1);
upCombo();
pContainer.removeChild(alvo);
somaPontos(10);
};
} else {
if (alvo.x < 400){
alvo["vely"] = (alvo["vely"] + ((135 - alvo["origy"]) / 400));
};
};
break;
case "jet":
numInimigos++;
_local4 = alvo;
_local4["gotoAndStop"](Math.floor(alvo["vely"]));
alvo.x = (alvo.x + (alvo["velx"] * alvo["multip"]));
alvo.y = (alvo.y + alvo["vely"]);
alvo.rotation = alvo["vely"];
if (alvo["energia"] < 1){
alvo["velx"] = (alvo["velx"] - 0.01);
alvo["vely"] = (alvo["vely"] + 0.2);
criaFumaca(_local2, 0, 0, 1);
if (alvo.y > 320){
criaExplosao(_local2, 1);
upCombo();
pContainer.removeChild(alvo);
somaPontos(10);
};
};
break;
case "seeker":
numInimigos++;
_local4 = alvo;
_local4["gotoAndStop"](Math.floor(alvo["vely"]));
alvo.x = (alvo.x - alvo["velx"]);
alvo.y = (alvo.y + alvo["vely"]);
if (alvo["energia"] < 1){
alvo["velx"] = (alvo["velx"] - 0.01);
alvo["vely"] = (alvo["vely"] + 0.2);
alvo.rotation = (alvo.rotation - 0.5);
criaFumaca(_local2, 0, 0, 1);
if (alvo.y > 320){
criaExplosao(_local2, 1);
upCombo();
pContainer.removeChild(alvo);
somaPontos(10);
};
} else {
if (alvo.rotation < ((Math.atan2((alvo.y - alvohero.y), (alvo.x - alvohero.x)) * 180) / Math.PI)){
if ((alvo.rotation + 1) < ((Math.atan2((alvo.y - alvohero.y), (alvo.x - alvohero.x)) * 180) / Math.PI)){
alvo.rotation = (alvo.rotation + 1);
};
} else {
alvo.rotation = (alvo.rotation - 1);
};
rot = alvo.rotation;
alvo["velx"] = (Math.cos(((rot * Math.PI) / 180)) * alvo["multip"]);
alvo["vely"] = (-(Math.sin(((rot * Math.PI) / 180))) * alvo["multip"]);
};
break;
case "he11b":
numInimigos++;
_local4 = alvo;
_local4["gotoAndPlay"](Math.floor(alvo["vely"]));
alvo["metral2"].rotation = (180 + ((Math.atan2((alvo.y - hero.y), (alvo.x - hero.x)) * 180) / Math.PI));
alvo.y = (alvo.y + alvo["vely"]);
alvo.x = (alvo.x - 1);
alvo["elice1"].gotoAndPlay((alvo["elice1"].currentFrame + 1));
alvo["elice2"].gotoAndPlay((alvo["elice2"].currentFrame + 1));
if (alvo["energia"] < 1){
alvo.rotation = (alvo.rotation + 0.2);
alvo.x = (alvo.x - alvo["velx"]);
alvo["velx"] = (alvo["velx"] - 0.01);
alvo["vely"] = (alvo["vely"] + 0.1);
criaFumaca(_local2, 0, alvo["currentFrame"], 1);
if (alvo.y > 450){
criaExplosao(_local2, 10);
somaPontos(200);
pContainer.removeChild(alvo);
};
};
break;
case "armstrong":
numInimigos++;
_local4 = alvo;
_local4["gotoAndPlay"](Math.floor(((alvo["vely"] * 5) + 10)));
alvo["metral"].rotation = (180 + ((Math.atan2((alvo.y - hero.y), (alvo.x - hero.x)) * 180) / Math.PI));
alvo.y = (alvo.y + alvo["vely"]);
alvo["elice1"].gotoAndPlay((alvo["elice1"].currentFrame + 1));
alvo["elice2"].gotoAndPlay((alvo["elice2"].currentFrame + 1));
if (alvo["energia"] < 400){
criaFumaca(_local2, -30, -(((alvo["currentFrame"] * 2) - 30)), (3 - ((alvo["energia"] / 400) * 3)));
};
if (alvo["energia"] < 1){
alvo.rotation = (alvo.rotation + 0.2);
alvo.x = (alvo.x - alvo["velx"]);
alvo["velx"] = (alvo["velx"] - 0.01);
alvo["vely"] = (alvo["vely"] + 0.1);
if (alvo.y > 450){
criaExplosao(_local2, 10);
somaPontos(1000);
pContainer.removeChild(alvo);
};
} else {
if (alvo["status"] == 0){
alvo.x = (alvo.x + ((541 - alvo.x) / 50));
};
if ((((alvo["status"] == 0)) && ((alvo.x < 545)))){
alvo["status"] = 1;
};
if (alvo["status"] == 1){
alvo["ciclo"] = (alvo["ciclo"] + 0.04);
alvo["vely"] = (Math.sin(alvo["ciclo"]) * 3.5);
};
};
break;
case "he111":
numInimigos++;
_local4 = alvo;
_local4["gotoAndPlay"](Math.floor(((alvo["vely"] * 5) + 15)));
alvo["metral1"].rotation = (180 + ((Math.atan2((alvo.y - hero.y), (alvo.x - hero.x)) * 180) / Math.PI));
alvo["metral2"].rotation = (180 + ((Math.atan2((alvo.y - hero.y), (alvo.x - hero.x)) * 180) / Math.PI));
alvo.y = (alvo.y + alvo["vely"]);
alvo["elice1"].gotoAndPlay((alvo["elice1"].currentFrame + 1));
alvo["elice2"].gotoAndPlay((alvo["elice2"].currentFrame + 1));
if (alvo["energia"] < 500){
criaFumaca(_local2, -30, -(((alvo["currentFrame"] * 1) - 20)), (3 - ((alvo["energia"] / 500) * 3)));
};
if (alvo["energia"] < 1){
alvo.rotation = (alvo.rotation + 0.2);
alvo.x = (alvo.x - alvo["velx"]);
alvo["velx"] = (alvo["velx"] - 0.01);
alvo["vely"] = (alvo["vely"] + 0.1);
if (alvo.y > 450){
criaExplosao(_local2, 10);
somaPontos(2000);
pContainer.removeChild(alvo);
bossTiros.stop();
};
} else {
if (alvo["status"] == 0){
alvo.x = (alvo.x + ((300 - alvo.x) / 50));
};
if ((((alvo["status"] == 0)) && ((alvo.x < 400)))){
alvo["status"] = 1;
};
if (alvo["status"] == 1){
alvo.x = (alvo.x + alvo["velx"]);
alvo["ciclo"] = (alvo["ciclo"] + 0.02);
alvo["velx"] = (Math.cos(alvo["ciclo"]) * 3);
alvo["vely"] = Math.sin(alvo["ciclo"]);
};
};
break;
case "go229":
numInimigos++;
_local4 = alvo;
_local4["gotoAndPlay"](Math.floor(((alvo["vely"] * 5) + 15)));
alvo.y = (alvo.y + alvo["vely"]);
alvo.x = (alvo.x + alvo["velx"]);
alvo.rotation = alvo["vely"];
if (alvo["energia"] < 400){
criaFumaca(_local2, -60, 0, (3 - ((alvo["energia"] / 400) * 3)));
};
if (alvo["energia"] < 1){
alvo.rotation = (alvo.rotation + 0.2);
alvo["vely"] = (alvo["vely"] + 0.1);
criaFumaca(_local2, -50, 0, 1);
if (alvo.y > 450){
criaExplosao(_local2, 10);
somaPontos(3000);
pContainer.removeChild(alvo);
bossTiros.stop();
};
} else {
if (alvo["status"] == 0){
alvo["velx"] = 20;
};
if ((((alvo["status"] == 0)) && ((alvo.x > alvohero.x)))){
alvo["status"] = 1;
};
if (alvo["status"] == 1){
alvo["vely"] = (alvo["vely"] + 0.2);
alvo["velx"] = (alvo["velx"] - 0.5);
if (alvo.y > 350){
alvo["dest"] = [(alvohero.x + 100), alvohero.y];
alvo["status"] = 0;
alvo.x = -150;
alvo.y = alvo["dest"][1];
alvo["vely"] = 0;
alvo["velx"] = 0;
alvo.rotation = 0;
};
};
};
break;
};
_local2++;
};
if ((((numInimigos == 0)) && ((tInim.running == false)))){
endFase();
};
}
public function downCombo(_arg1:TimerEvent):void{
if (powerCombo > 0){
mcombo.combos.text = atCombo;
mcombo.cBlink.play();
powerCombo--;
miliTimer.reset();
miliTimer.start();
comboTimer.reset();
comboTimer.start();
atCombo = 0;
atMultiCombo = 10;
comboTimer.delay = (comboTimer.delay + 250);
} else {
miliTimer.reset();
miliTimer.stop();
comboTimer.reset();
comboTimer.stop();
atCombo = 0;
};
}
public function meuS(_arg1:MouseEvent):void{
var _local2:*;
var _local3:URLRequest;
_local2 = "http://www.portfoliof.com";
_local3 = new URLRequest(_local2);
navigateToURL(_local3);
}
public function principal(_arg1:Event):void{
var _local2:*;
var _local3:Boolean;
var _local4:*;
var _local5:MovieClip;
comboCirc.gotoAndStop(Math.round((((miliTimer.currentCount * 30) / comboTimer.delay) * 100)));
comboCirc.x = this.root.mouseX;
comboCirc.y = this.root.mouseY;
if (alvohero["energia"] > 0){
alvohero.rotation = (alvohero.rotation + (Math.atan2(alvohero.mouseY, alvohero.mouseX) * 4));
rot = alvohero.rotation;
var _local6 = alvohero;
_local6["gotoAndStop"]((Math.round(rot) + 20));
alvohero.x = (alvohero.x + (((pContainer.mouseX - 80) - alvohero.x) / 5));
alvohero.y = (alvohero.y + ((pContainer.mouseY - alvohero.y) / 8));
if (alvohero["trans"] == false){
setCor(pContainer.getChildIndex(alvohero), "old", 0);
};
} else {
setCor(pContainer.getChildIndex(alvohero), "old", 0);
alvohero.rotation = (alvohero.rotation + 2);
_local6 = alvohero;
_local6["gotoAndStop"]((Math.round(alvohero.rotation) + 22));
alvohero.x = (alvohero.x + (Math.cos(((alvohero.rotation * Math.PI) / 180)) * 6));
alvohero.y = ((alvohero.y / 100) + (alvohero.y + (Math.sin(((alvohero.rotation * Math.PI) / 180)) * 10)));
criaFumaca(pContainer.getChildIndex(alvohero), 0, 0, 1);
if (alvohero.y > 310){
criaExplosao(pContainer.getChildIndex(alvohero), 1);
alvohero["trans"] = true;
herodown();
};
};
_local2 = 0;
while (_local2 <= (pContainer.numChildren - 1)) {
alvo = pContainer.getChildAt(_local2);
switch (alvo.name){
case "explosMissel":
pContainer.setChildIndex(alvo, (pContainer.numChildren - 1));
_local4 = 0;
while (_local4 <= (pContainer.numChildren - 1)) {
alvodest = pContainer.getChildAt(_local4);
if ((((((((((((((((((((alvodest.name == "armstrong")) || ((alvodest.name == "bandit")))) || ((alvodest.name == "medkit")))) || ((alvodest.name == "diver")))) || ((alvodest.name == "jet")))) || ((alvodest.name == "seeker")))) || ((alvodest.name == "bristol")))) || ((alvodest.name == "he111")))) || ((alvodest.name == "go229")))) || ((alvodest.name == "he11b")))){
if (((alvodest.hitTestObject(alvo)) && ((alvodest["energia"] > 0)))){
setCor(_local4, "red", 1);
alvodest["energia"] = (alvodest["energia"] - 2);
somaPontos(5);
};
};
_local4++;
};
if (alvo["currentFrame"] == 30){
pContainer.removeChild(alvo);
};
break;
case "bomba":
_local3 = false;
if (alvo.y > 300){
pContainer.removeChild(alvo);
break;
};
_local4 = 0;
while (_local4 <= (pContainer.numChildren - 1)) {
alvodest = pContainer.getChildAt(_local4);
if ((((((((((((((((((((alvodest.name == "armstrong")) || ((alvodest.name == "bandit")))) || ((alvodest.name == "medkit")))) || ((alvodest.name == "diver")))) || ((alvodest.name == "jet")))) || ((alvodest.name == "seeker")))) || ((alvodest.name == "bristol")))) || ((alvodest.name == "he111")))) || ((alvodest.name == "go229")))) || ((alvodest.name == "he11b")))){
if (((alvodest.hitTestObject(alvo)) && ((alvodest["energia"] > 0)))){
setCor(_local4, "red", 1);
alvodest["energia"] = (alvodest["energia"] - 20);
somaPontos(30);
criaExplosao(alvo, 1);
criaFumaca(_local2, 0, 0, 3);
pContainer.removeChild(alvo);
};
};
_local4++;
};
break;
case "missel":
_local3 = false;
criaFumaca(_local2, -10, 0, 0.7);
break;
case "explosao":
alvo.alpha = (alvo.alpha - 0.5);
if (alvo.alpha == 0){
pContainer.removeChild(alvo);
};
break;
case "tiro":
if ((((alvo.x > 650)) || ((alvo.x < -50)))){
pContainer.removeChild(alvo);
break;
};
_local4 = 0;
while (_local4 <= (pContainer.numChildren - 1)) {
alvodest = pContainer.getChildAt(_local4);
if ((((((((((((((((((((alvodest.name == "armstrong")) || ((alvodest.name == "bandit")))) || ((alvodest.name == "medkit")))) || ((alvodest.name == "diver")))) || ((alvodest.name == "jet")))) || ((alvodest.name == "seeker")))) || ((alvodest.name == "bristol")))) || ((alvodest.name == "he111")))) || ((alvodest.name == "go229")))) || ((alvodest.name == "he11b")))){
if (((alvodest.hitTestPoint(alvo.x, alvo.y, true)) && ((alvodest["energia"] > 0)))){
setCor(_local4, "red", 1);
pContainer.removeChild(alvo);
alvodest["energia"] = (alvodest["energia"] - 1);
somaPontos(1);
};
};
_local4++;
};
case "tiroinim":
if ((((alvo.x > 650)) || ((alvo.x < -50)))){
pContainer.removeChild(alvo);
break;
};
if (((((hero.hitTestPoint(alvo.x, alvo.y, true)) && ((hero["energia"] > 0)))) && ((hero["trans"] == false)))){
removeChild(getChildByName(("shield" + alvohero["energia"])));
pContainer.removeChild(alvo);
alvohero["energia"] = (alvohero["energia"] - 1);
setCor(pContainer.getChildIndex(alvohero), "red", 1);
};
break;
case "medkit":
setCor(_local2, "old", 0);
if ((((alvo.x > 650)) || ((alvo.x < -50)))){
pContainer.removeChild(alvo);
break;
};
break;
case "bandit":
setCor(_local2, "old", 0);
if ((((((alvo.x > 650)) || ((alvo.x < -50)))) && ((alvo["energia"] > 0)))){
pContainer.removeChild(alvo);
break;
};
if (((((alvo.hitTestObject(alvohero)) && ((alvo["energia"] > 0)))) && ((alvohero["trans"] == false)))){
while (alvohero["energia"] > 0) {
removeChild(getChildByName(("shield" + alvohero["energia"])));
alvohero["energia"] = (alvohero["energia"] - 1);
};
alvo["energia"] = 0;
};
break;
case "diver":
setCor(_local2, "old", 0);
if ((((((alvo.x > 650)) || ((alvo.x < -50)))) && ((alvo["energia"] > 0)))){
pContainer.removeChild(alvo);
break;
};
if (((((alvo.hitTestObject(alvohero)) && ((alvo["energia"] > 0)))) && ((alvohero["trans"] == false)))){
while (alvohero["energia"] > 0) {
removeChild(getChildByName(("shield" + alvohero["energia"])));
alvohero["energia"] = (alvohero["energia"] - 1);
};
alvo["energia"] = 0;
};
break;
case "jet":
setCor(_local2, "old", 0);
if ((((((alvo.x > 650)) || ((alvo.x < -200)))) && ((alvo["energia"] > 0)))){
pContainer.removeChild(alvo);
break;
};
if (((((alvo.hitTestObject(alvohero)) && ((alvo["energia"] > 0)))) && ((alvohero["trans"] == false)))){
while (alvohero["energia"] > 0) {
removeChild(getChildByName(("shield" + alvohero["energia"])));
alvohero["energia"] = (alvohero["energia"] - 1);
};
alvo["energia"] = 0;
};
break;
case "seeker":
setCor(_local2, "old", 0);
if ((((((alvo.x > 650)) || ((alvo.x < -10)))) && ((alvo["energia"] > 0)))){
pContainer.removeChild(alvo);
break;
};
if (((((alvo.hitTestObject(alvohero)) && ((alvo["energia"] > 0)))) && ((alvohero["trans"] == false)))){
while (alvohero["energia"] > 0) {
removeChild(getChildByName(("shield" + alvohero["energia"])));
alvohero["energia"] = (alvohero["energia"] - 1);
};
alvo["energia"] = 0;
};
break;
case "he11b":
setCor(_local2, "old", 0);
if ((((((alvo.x > 700)) || ((alvo.x < -50)))) && ((alvo["energia"] > 0)))){
pContainer.removeChild(alvo);
break;
};
if (((((((alvo.hitTestObject(alvohero)) && ((alvo["energia"] > 0)))) && ((alvohero["energia"] > 0)))) && ((alvohero["trans"] == false)))){
if (testImpact(_local2)){
while (alvohero["energia"] > 0) {
removeChild(getChildByName(("shield" + alvohero["energia"])));
alvohero["energia"] = (alvohero["energia"] - 1);
};
alvo["energia"] = (alvo["energia"] - 50);
};
};
break;
case "armstrong":
setCor(_local2, "old", 0);
if (((((((alvo.hitTestObject(alvohero)) && ((alvo["energia"] > 0)))) && ((alvohero["energia"] > 0)))) && ((alvohero["trans"] == false)))){
if (testImpact(_local2)){
while (alvohero["energia"] > 0) {
removeChild(getChildByName(("shield" + alvohero["energia"])));
alvohero["energia"] = (alvohero["energia"] - 1);
};
alvo["energia"] = (alvo["energia"] - 50);
};
};
break;
case "he111":
setCor(_local2, "old", 0);
if (((((((alvo.hitTestObject(alvohero)) && ((alvo["energia"] > 0)))) && ((alvohero["energia"] > 0)))) && ((alvohero["trans"] == false)))){
if (testImpact(_local2)){
while (alvohero["energia"] > 0) {
removeChild(getChildByName(("shield" + alvohero["energia"])));
alvohero["energia"] = (alvohero["energia"] - 1);
};
alvo["energia"] = (alvo["energia"] - 50);
};
};
break;
case "go229":
setCor(_local2, "old", 0);
if (((((((alvo.hitTestObject(alvohero)) && ((alvo["energia"] > 0)))) && ((alvohero["energia"] > 0)))) && ((alvohero["trans"] == false)))){
while (alvohero["energia"] > 0) {
removeChild(getChildByName(("shield" + alvohero["energia"])));
alvohero["energia"] = (alvohero["energia"] - 1);
};
alvo["energia"] = (alvo["energia"] - 50);
};
break;
case "fumaca":
alvo.width = (alvo.width - 1);
alvo.height = (alvo.height - 1);
alvo.x = (alvo.x - 5);
alvo.alpha = (alvo.alpha - 0.05);
if (alvo.alpha < 0.05){
pContainer.removeChild(alvo);
};
break;
case "energia":
alvo.y++;
alvo.x--;
if (alvo.hitTestObject(hero)){
if (hero["vida"] < 4){
_local6 = hero;
var _local7 = "vida";
var _local8 = (_local6[_local7] + 1);
_local6[_local7] = _local8;
_local5 = new vplane();
_local5.x = (hero["vida"] * 25);
_local5.y = 270;
_local5.name = ("plane" + hero["vida"]);
addChild(_local5);
};
pContainer.removeChild(alvo);
};
break;
};
_local2++;
};
}
public function criaMedkit(_arg1:int):void{
var _local2:MovieClip;
_local2 = new medkit();
_local2.x = 649;
_local2.y = ((_arg1 * 40) + 20);
_local2.name = "medkit";
_local2["velx"] = 1;
_local2["vely"] = 0;
_local2["energia"] = 3;
_local2["multip"] = 10;
_local2["release"] = false;
pContainer.addChild(_local2);
}
public function atirari(_arg1:MouseEvent):void{
var _local2:MovieClip;
addEventListener(Event.ENTER_FRAME, atirar);
cEfeitos = mMachineg.play(0, 1);
if (ativDoubleClick == false){
tDoubleClick.start();
ativDoubleClick = true;
} else {
_local2 = new bomba();
_local2.x = (alvohero.x + Math.cos(((rot * Math.PI) / 180)));
_local2.y = ((alvohero.y + 20) + (Math.sin(((rot * Math.PI) / 180)) * 40));
_local2.rotation = rot;
_local2.velx = Math.cos(((rot * Math.PI) / 180));
_local2.vely = Math.sin(((rot * Math.PI) / 180));
_local2.multip = 1;
_local2.name = "bomba";
_local2.transform.colorTransform = resultCor;
pContainer.addChild(_local2);
tDoubleClick.stop();
ativDoubleClick = false;
};
}
public function atirarm(_arg1:KeyboardEvent):void{
var _local2:MovieClip;
_local2 = new missel();
_local2.x = (alvohero.x + (Math.cos(((rot * Math.PI) / 180)) * 40));
_local2.y = ((alvohero.y + 20) + (Math.sin(((rot * Math.PI) / 180)) * 40));
_local2.rotation = rot;
_local2.velx = Math.cos(((rot * Math.PI) / 180));
_local2.vely = Math.sin(((rot * Math.PI) / 180));
_local2.multip = 1;
_local2.name = "missel";
_local2.transform.colorTransform = resultCor;
pContainer.addChild(_local2);
cEfeitos = mMissel.play(0, 0);
pContainer.removeChild(pContainer.getChildByName("rocket"));
tMissel.start();
stage.removeEventListener(KeyboardEvent.KEY_DOWN, atirarm);
}
public function atirarp(_arg1:MouseEvent):void{
removeEventListener(Event.ENTER_FRAME, atirar);
}
public function criaHero():void{
var _local1:int;
var _local2:MovieClip;
var _local3:MovieClip;
alvohero.x = -20;
alvohero.y = 300;
alvohero["velx"] = 0;
alvohero["vely"] = 0;
alvohero["energia"] = 3;
_local1 = 1;
while (_local1 < (alvohero["vida"] + 1)) {
_local2 = new vplane();
_local2.x = (_local1 * 25);
_local2.y = 270;
_local2.name = ("plane" + _local1);
addChild(_local2);
_local1++;
};
_local1 = 1;
while (_local1 < 4) {
_local3 = new vshield();
_local3.x = (105 + (_local1 * 25));
_local3.y = 270;
_local3.name = ("shield" + _local1);
addChild(_local3);
_local1++;
};
}
function frame3(){
MochiBot.track(this, "ad7ff576");
}
function frame4(){
addEventListener(Event.ENTER_FRAME, splashEnterFrame);
stop();
}
public function highscores(_arg1:MouseEvent):void{
this.gotoAndStop(4);
}
function frame1(){
MochiAd.showPreGameAd({clip:root, id:"384a2d303288c1b1", res:"630x300"});
}
public function criaHe111():void{
var _local1:DisplayObject;
_local1 = new he111();
_local1.x = 750;
_local1.y = 100;
_local1.name = "he111";
_local1["velx"] = 1;
_local1["vely"] = 0;
_local1["energia"] = 1000;
_local1["multip"] = 10;
_local1["status"] = 0;
_local1["ciclo"] = 0;
pContainer.addChild(_local1);
bossTiros.reset();
bossTiros.delay = 650;
bossTiros.start();
}
public function criaExplosao(_arg1:int, _arg2:Number){
var _local3:MovieClip;
alvodest = pContainer.getChildAt(_arg1);
_local3 = new explosao();
_local3.x = alvo.x;
_local3.y = alvo.y;
_local3.name = "explosao";
_local3.scaleX = _arg2;
_local3.scaleY = _arg2;
pContainer.addChild(_local3);
if (_arg2 < 3){
cEfeitos = mExplosao.play(0, 0);
} else {
cEfeitos = mExplosaog.play(0, 0);
};
}
public function testImpact(_arg1:int):Boolean{
var _local2:*;
var _local3:Boolean;
_local2 = pContainer.getChildAt(_arg1);
_local3 = false;
if (_local2.hitTestPoint(alvohero.x, alvohero.y, true)){
_local3 = true;
};
return (_local3);
}
public function tentar(_arg1:MouseEvent):void{
wave = (wave - 1);
this.gotoAndStop(2);
}
public function criaGo229():void{
var _local1:DisplayObject;
_local1 = new go229();
_local1.x = -300;
_local1.y = 250;
_local1.name = "go229";
_local1["velx"] = 1;
_local1["vely"] = 0;
_local1["energia"] = 600;
_local1["multip"] = 10;
_local1["status"] = 0;
_local1["dest"] = [0, 0];
pContainer.addChild(_local1);
}
public function heroend():void{
bossTiros.stop();
transpTimer.reset();
transpTimer.stop();
cMotor.stop();
tInim.stop();
removeEventListener(Event.ENTER_FRAME, ambiente);
removeEventListener(Event.ENTER_FRAME, inimigos);
removeEventListener(Event.ENTER_FRAME, principal);
removeEventListener(MouseEvent.MOUSE_DOWN, atirari);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, atirarm);
removeEventListener(MouseEvent.MOUSE_UP, atirarp);
mpopup.addEventListener(MouseEvent.CLICK, faseInic);
addEventListener(Event.ENTER_FRAME, reinicioPopup);
mpopup.mpopup_wc.visible = false;
mpopup.mpopup_go.visible = true;
mpopup.mpopup_go.go_titulo.text = "GAME OVER!";
mpopup.mpopup_go.go_frase.htmlText = "Here, every hero earns a medal. I'ts an honor to have such a brave airmen.";
mpopup.mpopup_go.go_pontos.text = (pontos + " points.");
this.setChildIndex(mpopup, (this.numChildren - 1));
mpopup.mpopup_go.medal.gotoAndStop(Math.round((pontos / 20000)));
this.removeChild(pContainer);
}
public function criaHe11b():void{
var _local1:DisplayObject;
_local1 = new he11b();
_local1.x = 700;
_local1.y = 240;
_local1.name = "he11b";
_local1["velx"] = 1;
_local1["vely"] = 0;
_local1["energia"] = 60;
_local1["multip"] = 10;
_local1["status"] = 0;
_local1["ciclo"] = 0;
pContainer.addChild(_local1);
bossTiros.reset();
bossTiros.delay = 1600;
bossTiros.start();
}
public function criaFase():void{
if (wave < 2){
wave++;
} else {
wave = 0;
chapter++;
};
tInim.reset();
tInim.start();
transpTimer.reset();
transpTimer.start();
criaHero();
setCor(pContainer.getChildIndex(hero), "trans", (1 / 4));
hero["trans"] = true;
mphase.chapter.text = (chapter + 1);
mphase.wave.text = (wave + 1);
cMotor = mMotor.play(0, 1000);
cMotor.soundTransform = transforma;
addEventListener(Event.ENTER_FRAME, ambiente);
addEventListener(Event.ENTER_FRAME, inimigos);
addEventListener(Event.ENTER_FRAME, principal);
addEventListener(MouseEvent.MOUSE_DOWN, atirari);
addEventListener(MouseEvent.MOUSE_UP, atirarp);
removeEventListener(Event.ENTER_FRAME, reinicioPopup);
}
public function criaBandit(_arg1:int):void{
var _local2:MovieClip;
_local2 = new bandit();
_local2.x = 649;
_local2.y = ((_arg1 * 40) + 20);
_local2.name = "bandit";
_local2["velx"] = 1;
_local2["vely"] = 0;
_local2["energia"] = 3;
_local2["multip"] = 10;
pContainer.addChild(_local2);
}
public function misselTimeUp(_arg1:TimerEvent):void{
var _local2:DisplayObject;
var _local3:MovieClip;
_local2 = pContainer.getChildByName("missel");
_local3 = new b_blink();
_local3.x = 0;
_local3.y = 0;
_local3.name = "explosMissel";
pContainer.addChild(_local3);
somaPontos(30);
criaExplosao(pContainer.getChildIndex(_local2), 1);
pContainer.removeChild(_local2);
}
public function criaFumaca(_arg1:int, _arg2:int, _arg3:int, _arg4:Number){
var _local5:MovieClip;
alvodest = pContainer.getChildAt(_arg1);
_local5 = new fumaca();
_local5.x = (alvodest.x + _arg2);
_local5.y = (alvodest.y + _arg3);
_local5.scaleX = _arg4;
_local5.scaleY = _arg4;
fumaca["rotation"] = alvodest.rotation;
_local5.name = "fumaca";
_local5.gotoAndPlay(Math.floor((Math.random() * 30)));
_local5.transform.colorTransform = resultCor;
pContainer.addChild(_local5);
}
public function criaWaveBoss(_arg1:TimerEvent):void{
var _local2:String;
_local2 = waveList[((chapter * 3) + wave)][0];
if (_local2.charAt(0) != "0"){
switch (_local2.charAt(0)){
case "6":
criaArmstrong();
break;
case "7":
criaHe111();
break;
case "8":
criaGo229();
break;
};
mfrase.frase.text = "Here our boss!";
cRadio = mRadioChefe.play(0, 1);
};
}
public function ambiente(_arg1:Event):void{
alvo = fundo.getChildByName("cenario1");
alvodest = fundo.getChildByName("cenario2");
alvo.x = (alvo.x + alvo["velx"]);
alvodest.x = (alvo.x + alvo.width);
fadeCor.alphaOffset = (fadeCor.alphaOffset + ((0 - fadeCor.alphaOffset) / 10));
alvo.transform.colorTransform = fadeCor;
alvodest.transform.colorTransform = fadeCor;
if (alvo.x < -(alvo.width)){
alvo.x = alvodest.x;
alvodest.x = (alvo.x + alvo.width);
};
if (mpopup.y < 300){
mpopup.y = (mpopup.y + ((330 - mpopup.y) / 10));
};
}
public function faseInic(_arg1:MouseEvent):void{
if (mpopup.mpopup_go.visible == false){
mpopup.removeEventListener(MouseEvent.CLICK, faseInic);
pContainer.removeChild(pContainer.getChildByName("aAnim"));
criaFase();
cenario1.gotoAndStop((chapter + 1));
cenario2.gotoAndStop((chapter + 1));
removeEventListener(Event.ENTER_FRAME, reinicioPopup);
} else {
removeEventListener(Event.ENTER_FRAME, reinicioPopup);
removeChild(mpopup);
if (mpopup.mpopup_go.go_titulo.text == "VICTORY!"){
this.gotoAndStop(5);
} else {
this.gotoAndStop(3);
};
};
}
public function transpHero(_arg1:TimerEvent):void{
setCor(pContainer.getChildIndex(alvohero), "trans", 1);
alvohero["trans"] = false;
}
public function reinicioPopup(_arg1:Event):void{
mpopup.y = (mpopup.y + ((40 - mpopup.y) / 10));
if ((((hero.vida > 0)) && (!((pContainer.getChildByName("aAnim") == null))))){
alvo = pContainer.getChildByName("aAnim");
alvo.x = (alvo.x + ((-30 - alvo.x) / 40));
alvo.y = (alvo.y + ((170 - alvo.y) / 30));
};
fadeCor.alphaOffset = (fadeCor.alphaOffset + ((-255 - fadeCor.alphaOffset) / 10));
alvo = fundo.getChildByName("cenario1");
alvodest = fundo.getChildByName("cenario2");
alvo.transform.colorTransform = fadeCor;
alvodest.transform.colorTransform = fadeCor;
}
public function splashEnterFrame(_arg1:Event){
if (movSplash.isComplete()){
this.play();
removeEventListener(Event.ENTER_FRAME, splashEnterFrame);
};
}
public function criaWave(_arg1:TimerEvent):void{
var _local2:String;
_local2 = waveList[((chapter * 3) + wave)][tInim.currentCount];
if (_local2.charAt(0) != "0"){
switch (_local2.charAt(0)){
case "1":
criaBandit(parseInt(_local2.charAt(1)));
mfrase.frase.text = "Bandits ahead lookout!";
if (antstr != "1"){
cRadio = mRadioBandits.play(0, 0);
antstr = "1";
};
break;
case "5":
criaMedkit(parseInt(_local2.charAt(1)));
break;
case "2":
criaDiver(parseInt(_local2.charAt(1)));
mfrase.frase.text = "Divers, check up!";
if (antstr != "3"){
cRadio = mRadioDivers.play(0, 0);
antstr = "3";
};
break;
case "3":
criaJet(parseInt(_local2.charAt(1)));
mfrase.frase.text = "Jets, look back!";
if (antstr != "4"){
cRadio = mRadioJets.play(0, 0);
antstr = "4";
};
break;
case "4":
criaSeeker(parseInt(_local2.charAt(1)));
mfrase.frase.text = "Seekers, shoot quick!";
if (antstr != "5"){
cRadio = mRadioSeekers.play(0, 0);
antstr = "5";
};
break;
case "6":
criaArmstrong();
break;
case "9":
criaHe11b();
break;
};
};
}
public function doubleTimeUp(_arg1:TimerEvent):void{
ativDoubleClick = false;
}
public function jogar(_arg1:MouseEvent):void{
this.nextScene();
}
public function criaJet(_arg1:int):void{
var _local2:MovieClip;
_local2 = new jet();
_local2.x = -200;
_local2.y = ((_arg1 * 40) + 20);
_local2.name = "jet";
_local2["velx"] = 1;
_local2["vely"] = 0;
_local2["energia"] = 2;
_local2["multip"] = 10;
pContainer.addChild(_local2);
}
public function criaDiver(_arg1:int):void{
var _local2:MovieClip;
_local2 = new diver();
_local2.x = 649;
_local2.y = ((_arg1 * 40) + 20);
_local2.name = "diver";
_local2["velx"] = 1;
_local2["vely"] = 0;
_local2["energia"] = 2;
_local2["multip"] = 10;
_local2["origy"] = _local2.y;
pContainer.addChild(_local2);
}
public function bossAtirar(_arg1:TimerEvent):void{
var _local2:*;
var _local3:MovieClip;
var _local4:MovieClip;
var _local5:MovieClip;
_local2 = 0;
while (_local2 <= (pContainer.numChildren - 1)) {
alvo = pContainer.getChildAt(_local2);
switch (alvo.name){
case "he11b":
_local3 = new tiro();
_local3.x = (alvo.x + alvo["metral2"].x);
_local3.y = (alvo.y + alvo["metral2"].y);
_local3.rotation = alvo["metral2"].rotation;
_local3.velx = Math.cos(((_local3.rotation * Math.PI) / 180));
_local3.vely = Math.sin(((_local3.rotation * Math.PI) / 180));
_local3.scaleX = 3;
_local3.scaleY = 3;
_local3.multip = 10;
_local3.name = "tiroinim";
pContainer.addChild(_local3);
break;
case "he111":
if ((((alvo["currentFrame"] > 10)) && ((alvo["currentFrame"] < 20)))){
if (alvohero.y > alvo.y){
_local5 = new tiro();
_local5.x = (alvo.x + alvo["metral1"].x);
_local5.y = (alvo.y + alvo["metral1"].y);
_local5.rotation = alvo["metral1"].rotation;
_local5.velx = Math.cos(((_local5.rotation * Math.PI) / 180));
_local5.vely = Math.sin(((_local5.rotation * Math.PI) / 180));
_local5.scaleX = 3;
_local5.scaleY = 3;
_local5.multip = 10;
_local5.name = "tiroinim";
pContainer.addChild(_local5);
} else {
_local3 = new tiro();
_local3.x = (alvo.x + alvo["metral2"].x);
_local3.y = (alvo.y + alvo["metral2"].y);
_local3.rotation = alvo["metral2"].rotation;
_local3.velx = Math.cos(((_local3.rotation * Math.PI) / 180));
_local3.vely = Math.sin(((_local3.rotation * Math.PI) / 180));
_local3.scaleX = 3;
_local3.scaleY = 3;
_local3.multip = 10;
_local3.name = "tiroinim";
pContainer.addChild(_local3);
};
};
break;
case "armstrong":
alvo = pContainer.getChildAt(_local2);
_local4 = new tiro();
_local4.x = ((alvo.x + Math.cos(((alvo.rotation * Math.PI) / 180))) - 165);
_local4.y = (alvo.y + Math.sin(((alvo.rotation * Math.PI) / 180)));
_local4.rotation = (180 + ((Math.atan2((alvo.y - alvohero.y), (alvo.x - alvohero.x)) * 180) / Math.PI));
_local4.velx = Math.cos(((_local4.rotation * Math.PI) / 180));
_local4.vely = Math.sin(((_local4.rotation * Math.PI) / 180));
_local4.scaleX = 3;
_local4.scaleY = 3;
_local4.multip = 10;
_local4.name = "tiroinim";
pContainer.addChild(_local4);
break;
};
_local2++;
};
}
public function herodown():void{
var _local1:*;
var _local2:MovieClip;
removeEventListener(MouseEvent.MOUSE_DOWN, atirari);
miliTimer.reset();
miliTimer.stop();
comboTimer.reset();
comboTimer.stop();
atCombo = 0;
powerCombo = 0;
transpTimer.reset();
transpTimer.start();
setCor(pContainer.getChildIndex(alvohero), "trans", (1 / 4));
alvohero.x = -20;
alvohero.y = 300;
alvohero.rotation = 0;
if (alvohero["vida"] < 2){
removeChild(getChildByName(("plane" + alvohero["vida"])));
heroend();
} else {
_local1 = (alvohero["energia"] + 1);
while (_local1 < 4) {
_local2 = new vshield();
_local2.x = (105 + (_local1 * 25));
_local2.y = 270;
_local2.name = ("shield" + _local1);
addChild(_local2);
_local1++;
};
removeChild(getChildByName(("plane" + alvohero["vida"])));
alvohero["vida"] = (alvohero["vida"] - 1);
alvohero["energia"] = 3;
addEventListener(MouseEvent.MOUSE_DOWN, atirari);
};
}
function frame128(){
meuSite.addEventListener(MouseEvent.CLICK, meuS);
}
public function somaPontos(_arg1:int):void{
pontos = (pontos + (_arg1 * (atCombo + 1)));
mpontos.pontos.text = pontos;
}
public function upCombo():void{
var _local1:MovieClip;
atCombo++;
mcombo.combos.text = atCombo;
mcombo.cBlink.play();
miliTimer.reset();
miliTimer.start();
comboTimer.reset();
comboTimer.start();
if (atCombo >= atMultiCombo){
comboTimer.delay = (comboTimer.delay - 250);
atMultiCombo = (atMultiCombo + 15);
powerCombo++;
if (pContainer.getChildByName("rocket") == null){
addEventListener(MouseEvent.DOUBLE_CLICK, atirarm);
stage.addEventListener(KeyboardEvent.KEY_DOWN, atirarm);
_local1 = new vmissel();
_local1.x = 205;
_local1.y = 270;
_local1.name = "rocket";
pContainer.addChild(_local1);
};
};
}
public function outros(_arg1:MouseEvent):void{
var _local2:*;
var _local3:URLRequest;
_local2 = "http://www.gimme5games.com";
_local3 = new URLRequest(_local2);
navigateToURL(_local3);
}
public function criaSeeker(_arg1:int):void{
var _local2:MovieClip;
_local2 = new seeker();
_local2.x = 649;
_local2.y = ((_arg1 * 40) + 20);
_local2.name = "seeker";
_local2["velx"] = 1;
_local2["vely"] = 0;
_local2["energia"] = 3;
_local2["multip"] = 10;
pContainer.addChild(_local2);
}
public function endFase():void{
var _local1:MovieClip;
var _local2:int;
bossTiros.stop();
transpTimer.reset();
transpTimer.stop();
cMotor.stop();
removeEventListener(Event.ENTER_FRAME, ambiente);
removeEventListener(Event.ENTER_FRAME, inimigos);
removeEventListener(Event.ENTER_FRAME, principal);
removeEventListener(MouseEvent.MOUSE_DOWN, atirari);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, atirarm);
removeEventListener(MouseEvent.MOUSE_UP, atirarp);
_local1 = new aviaoAnim();
_local1.x = alvohero.x;
_local1.y = alvohero.y;
_local1.name = "aAnim";
_local1.transform.colorTransform = resultCor;
pContainer.addChild(_local1);
alvohero.x = -150;
alvohero.y = 300;
_local2 = alvohero["energia"];
while (_local2 > 0) {
removeChild(getChildByName(("shield" + _local2)));
_local2--;
};
_local2 = alvohero["vida"];
while (_local2 > 0) {
removeChild(getChildByName(("plane" + _local2)));
_local2--;
};
if (pContainer.getChildByName("rocket") != null){
pContainer.removeChild(pContainer.getChildByName("rocket"));
stage.removeEventListener(KeyboardEvent.KEY_DOWN, atirarm);
};
if (((chapter * 3) + (wave + 1)) < 9){
mpopup.mpopup_wc.visible = true;
mpopup.mpopup_go.visible = false;
mpopup.mpopup_wc.wc_titulo.text = (("WAVE " + ((chapter * 3) + (wave + 1))) + " COMPLETE!");
mpopup.mpopup_wc.wc_frase.htmlText = wavePhrases[((chapter * 3) + (wave + 1))];
mpopup.mpopup_wc.wc_pontos.text = (pontos + " points.");
} else {
mpopup.mpopup_wc.visible = false;
mpopup.mpopup_go.visible = true;
mpopup.mpopup_go.go_titulo.text = "VICTORY!";
mpopup.mpopup_go.go_frase.htmlText = "<p>You pass through enemies like wind.</p><p>Earn your Medal of Honor.</p>";
mpopup.mpopup_go.go_pontos.text = ("Final points: " + pontos);
mpopup.mpopup_go.medal.gotoAndStop(Math.round((pontos / 40000)));
};
addEventListener(Event.ENTER_FRAME, reinicioPopup);
mpopup.addEventListener(MouseEvent.CLICK, faseInic);
}
public function setCor(_arg1:int, _arg2:String, _arg3:Number){
var _local4:ColorTransform;
alvodest = pContainer.getChildAt(_arg1);
_local4 = new ColorTransform();
switch (_arg2){
case "old":
_local4.redOffset = 90;
_local4.greenOffset = 40;
_local4.blueOffset = -255;
break;
case "red":
_local4.redOffset = (_arg3 * 150);
break;
case "trans":
_local4.alphaMultiplier = _arg3;
break;
case "black":
_local4.redOffset = 0;
_local4.greenOffset = -100;
_local4.blueOffset = -235;
break;
};
alvodest.transform.colorTransform = _local4;
}
public function atirar(_arg1:Event):void{
var _local2:MovieClip;
_local2 = new tiro();
_local2.x = (alvohero.x + (Math.cos(((rot * Math.PI) / 180)) * 40));
_local2.y = ((alvohero.y - 6) + (Math.sin(((rot * Math.PI) / 180)) * 40));
_local2.rotation = rot;
_local2.velx = Math.cos(((rot * Math.PI) / 180));
_local2.vely = Math.sin(((rot * Math.PI) / 180));
_local2.multip = 20;
_local2.name = "tiro";
pContainer.addChild(_local2);
if (powerCombo > 0){
_local2 = new tiro();
_local2.x = ((alvohero.x - 10) + (Math.cos(((rot * Math.PI) / 180)) * 40));
_local2.y = ((alvohero.y + (alvohero.currentFrame - 20)) + (Math.sin(((rot * Math.PI) / 180)) * 40));
_local2.rotation = (rot + 1);
_local2.velx = Math.cos(((_local2.rotation * Math.PI) / 180));
_local2.vely = Math.sin(((_local2.rotation * Math.PI) / 180));
_local2.multip = 20;
_local2.name = "tiro";
pContainer.addChild(_local2);
};
if (powerCombo > 1){
_local2 = new tiro();
_local2.x = ((alvohero.x - 10) + (Math.cos(((rot * Math.PI) / 180)) * 40));
_local2.y = ((alvohero.y - (alvohero.currentFrame - 20)) + (Math.sin(((rot * Math.PI) / 180)) * 40));
_local2.rotation = (rot - 1);
_local2.velx = Math.cos(((_local2.rotation * Math.PI) / 180));
_local2.vely = Math.sin(((_local2.rotation * Math.PI) / 180));
_local2.multip = 20;
_local2.name = "tiro";
pContainer.addChild(_local2);
};
}
function frame267(){
stop();
b_start.addEventListener(MouseEvent.CLICK, jogar);
b_playmore.addEventListener(MouseEvent.CLICK, outros);
meuSite.addEventListener(MouseEvent.CLICK, meuS);
}
function frame268(){
chapter = 0;
wave = -1;
}
function frame269(){
stop();
waveList = new Array();
waveList[0] = ["0", "00", "00", "13", "00", "12", "00", "13", "00", "12", "00", "00", "12", "12", "00", "14", "14", "00", "13", "00", "12", "00", "14", "00", "13", "00", "00", "00", "00", "21", "21", "21", "21", "00", "11", "00", "12", "00", "11", "00", "12", "00", "14", "00", "15", "00", "14", "00", "15", "90", "00", "25", "00", "25", "00", "25", "00", "25", "51", "00", "11", "11", "00", "12", "12", "00", "11", "11", "00", "12", "12", "00", "00", "25", "25", "25", "25", "00", "00", "21", "21", "21", "21", "00", "00", "90", "11", "00", "12", "00", "11", "00", "12", "00", "00", "14", "00", "15", "00", "14", "00", "15", "00", "00", "25", "25", "00", "25", "25", "00", "00", "21", "21", "00", "21", "21", "00", "11", "12", "13", "14", "15"];
waveList[1] = ["6", "00", "00", "12", "00", "13", "00", "12", "00", "13", "00", "14", "00", "13", "00", "12", "00", "13", "00", "14", "00", "00", "21", "21", "21", "21", "00", "00", "25", "25", "25", "25", "00", "90", "31", "31", "35", "35", "00", "31", "00", "35", "00", "31", "00", "35", "00", "00", "12", "00", "13", "00", "14", "00", "13", "00", "12", "00", "13", "00", "14", "00", "11", "00", "15", "00", "11", "00", "15", "00", "25", "00", "21", "00", "25", "00", "21", "90", "00", "11", "12", "13", "14", "15", "00", "00", "15", "14", "13", "12", "11", "00", "51", "00", "35", "00", "31", "00", "35", "00", "31", "00", "34", "00", "32", "00", "25", "25", "00", "21", "21", "00", "11", "00", "12", "00", "13", "00", "15", "00", "14", "00"];
waveList[2] = ["6", "00", "00", "13", "12", "00", "14", "13", "00", "11", "00", "12", "00", "13", "00", "14", "00", "21", "00", "25", "00", "21", "00", "25", "00", "11", "00", "12", "00", "13", "00", "12", "00", "15", "00", "14", "00", "15", "00", "31", "00", "32", "00", "35", "00", "34", "00", "31", "00", "32", "00", "35", "00", "31", "00", "35", "00", "31", "90", "33", "33", "33", "00", "11", "00", "12", "00", "13", "00", "15", "00", "14", "00", "13", "00", "22", "00", "24", "00", "21", "00", "25", "00", "53", "00", "00", "12", "13", "14", "13", "12", "13", "14", "00", "00", "31", "35", "00", "32", "34", "90", "33", "00", "21", "00", "21", "00", "25", "00", "25", "00", "11", "12", "13", "14", "15", "00", "00", "41", "00", "45", "00"];
waveList[3] = ["0", "90", "00", "11", "00", "15", "00", "14", "00", "12", "00", "13", "00", "35", "00", "31", "00", "34", "00", "32", "00", "15", "00", "14", "90", "13", "00", "12", "00", "11", "00", "11", "12", "13", "14", "15", "00", "21", "21", "00", "25", "25", "00", "22", "00", "24", "00", "42", "00", "43", "44", "00", "44", "00", "43", "42", "00", "53", "90", "00", "00", "31", "00", "35", "00", "31", "00", "35", "00", "34", "00", "33", "00", "32", "00", "43", "00", "42", "00", "44", "00", "43", "00", "11", "12", "00", "15", "14", "00", "11", "12", "00", "15", "14", "00", "00", "11", "00", "15", "00", "11", "90", "15", "21", "00", "25", "00", "21", "00", "24", "00", "22", "00", "45", "00", "45", "41", "42", "45", "44", "00", "43"];
waveList[4] = ["7", "00", "00", "00", "11", "00", "15", "00", "11", "00", "15", "00", "14", "00", "12", "00", "14", "00", "12", "90", "13", "13", "00", "21", "21", "00", "25", "25", "00", "00", "21", "22", "23", "24", "25", "00", "31", "00", "35", "00", "32", "00", "34", "00", "00", "53", "00", "45", "44", "00", "41", "42", "00", "45", "44", "00", "41", "42", "00", "11", "12", "13", "14", "15", "00", "15", "14", "13", "12", "11", "00", "21", "00", "22", "00", "25", "00", "24", "00", "22", "00", "23", "00", "24", "23", "90", "35", "34", "33", "32", "31", "00", "43", "00", "42", "00", "44", "00", "43", "00", "42", "00", "44", "00", "21", "22", "00", "25", "24", "23", "00", "32", "00", "32", "00", "34", "00", "34", "00", "31", "35", "31"];
waveList[5] = ["7", "00", "25", "00", "25", "00", "21", "00", "21", "00", "25", "25", "00", "21", "21", "00", "35", "34", "00", "31", "32", "00", "11", "15", "00", "12", "14", "13", "00", "45", "00", "44", "00", "43", "00", "42", "00", "41", "00", "41", "00", "42", "00", "43", "00", "44", "00", "45", "00", "21", "22", "00", "25", "24", "00", "90", "22", "23", "24", "00", "53", "00", "11", "12", "13", "14", "15", "00", "15", "14", "13", "12", "11", "00", "15", "11", "14", "12", "13", "90", "41", "42", "43", "44", "45", "00", "21", "21", "00", "25", "25", "00", "22", "22", "00", "24", "24", "00", "23", "23", "00", "31", "00", "35", "00", "32", "00", "34", "00", "35", "34", "00", "31", "32", "00", "21", "22", "23", "24", "25", "00", "43"];
waveList[6] = ["0", "90", "11", "12", "13", "14", "15", "00", "31", "31", "00", "35", "35", "00", "34", "32", "33", "00", "15", "15", "15", "14", "13", "12", "11", "11", "11", "00", "25", "25", "21", "21", "25", "25", "00", "45", "44", "43", "42", "41", "90", "23", "22", "24", "23", "22", "24", "23", "21", "25", "00", "11", "15", "12", "14", "13", "00", "11", "15", "12", "14", "13", "13", "13", "00", "52", "00", "23", "22", "24", "21", "25", "00", "31", "32", "33", "00", "35", "34", "33", "00", "31", "35", "90", "41", "42", "43", "44", "45", "00", "45", "41", "44", "42", "43", "00", "13", "13", "13", "15", "11", "15", "11", "00", "25", "25", "00", "21", "21", "00", "24", "24", "22", "22", "23", "23", "00", "22", "24", "23", "21", "25"];
waveList[7] = ["8", "90", "25", "25", "00", "21", "21", "00", "24", "24", "00", "22", "22", "00", "35", "00", "31", "00", "34", "00", "32", "34", "33", "00", "13", "13", "13", "14", "15", "14", "13", "12", "11", "12", "13", "00", "45", "41", "44", "42", "43", "00", "45", "41", "44", "42", "43", "00", "25", "24", "23", "22", "21", "90", "21", "22", "23", "25", "24", "23", "00", "52", "00", "41", "45", "41", "45", "41", "45", "00", "15", "11", "14", "12", "13", "13", "13", "90", "31", "31", "35", "35", "00", "32", "32", "00", "34", "34", "00", "33", "00", "45", "44", "43", "00", "41", "42", "43", "00", "11", "12", "13", "14", "15", "00", "15", "13", "12", "11", "00", "21", "22", "23", "24", "25", "00", "45", "41", "44", "42", "41", "45"];
waveList[8] = ["8", "13", "13", "14", "12", "15", "11", "90", "21", "21", "22", "23", "25", "24", "23", "00", "31", "35", "32", "34", "32", "34", "00", "25", "24", "23", "22", "21", "00", "11", "12", "13", "14", "15", "00", "25", "25", "21", "21", "24", "22", "23", "00", "41", "42", "45", "44", "42", "44", "43", "42", "44", "43", "45", "41", "90", "13", "13", "11", "15", "12", "14", "13", "13", "00", "45", "44", "41", "42", "41", "42", "43", "43", "45", "41", "44", "42", "43", "90", "52", "00", "35", "31", "31", "00", "32", "34", "32", "90", "35", "35", "00", "22", "23", "24", "00", "25", "24", "23", "22", "21", "22", "23", "24", "90", "41", "45", "42", "44", "00", "41", "45", "42", "44", "00", "13", "13", "13", "45", "41", "45", "41"];
wavePhrases = new Array();
wavePhrases[1] = "<p>Just try to shoot the enemy airplanes.</p><p>They take 3 shots to kill them.</p>";
wavePhrases[2] = "<p>Combo's will give you a smart bomb,</p><p>Press space to use it.</p>";
wavePhrases[3] = "<p>Here comes the city,</p><p>You are almost in the heart of the battle.</p>";
wavePhrases[4] = "<p>Now comes another boss.</p><p>Be careful, this will not be easy.</p>";
wavePhrases[5] = "<p>Listen to your wingman on the radio.</p><p>He will save your life.</p>";
wavePhrases[6] = "<p>City ruins everywhere and night is approaching.</p><p>Use your instincts to survive.</p>";
wavePhrases[7] = "<p>Now the boss is going from back.</p><p>Step first and you save lives.</p>";
wavePhrases[8] = "<p>Last wave soldier.</p><p>Do not panic, shoot everything.</p>";
pContainer = new blank();
pContainer.x = 0;
pContainer.y = 0;
this.addChild(pContainer);
hero = new aviao();
hero.name = "hero";
hero["trans"] = false;
hero["vida"] = 3;
hero.x = -60;
hero.y = 300;
pContainer.addChild(hero);
numInimigos = 0;
pontos = 0;
somaPontos(0);
rot = 0;
alvohero = pContainer.getChildByName("hero");
resultCor = new ColorTransform();
resultCor.redOffset = 90;
resultCor.greenOffset = 40;
resultCor.blueOffset = -255;
fadeCor = new ColorTransform();
fadeCor.alphaOffset = -255;
mRadioBandits = new sRadioBandits();
mRadioDivers = new sRadioDivers();
mRadioJets = new sRadioJets();
mRadioSeekers = new sRadioSeekers();
mRadioChefe = new sRadioChefe();
mMotor = new sMotor();
mMachineg = new sMachineg();
mExplosao = new sExplosao();
mExplosaog = new sExplosaog();
mMissel = new sMissel();
transforma = new SoundTransform(0.3, 0);
aAnim = new aviaoAnim();
aAnim.x = -50;
aAnim.y = -50;
aAnim.name = "aAnim";
aAnim.transform.colorTransform = resultCor;
pContainer.addChild(aAnim);
mpopup.mpopup_wc.visible = true;
mpopup.mpopup_go.visible = false;
addEventListener(Event.ENTER_FRAME, reinicioPopup);
mpopup.addEventListener(MouseEvent.CLICK, faseInic);
comboTimer = new Timer(2000, 10);
miliTimer = new Timer(30, 1000);
atCombo = 0;
atMultiCombo = 10;
powerCombo = 0;
comboTimer.addEventListener(TimerEvent.TIMER, downCombo);
tInim = new Timer(500, 120);
tInim.addEventListener(TimerEvent.TIMER, criaWave);
tInim.addEventListener(TimerEvent.TIMER_COMPLETE, criaWaveBoss);
bossTiros = new Timer(1000, 400);
bossTiros.addEventListener(TimerEvent.TIMER, bossAtirar);
transpTimer = new Timer(2000, 1);
transpTimer.addEventListener(TimerEvent.TIMER_COMPLETE, transpHero);
tMissel = new Timer(700, 1);
tMissel.addEventListener(TimerEvent.TIMER_COMPLETE, misselTimeUp);
tDoubleClick = new Timer(500, 1);
tDoubleClick.addEventListener(TimerEvent.TIMER_COMPLETE, doubleTimeUp);
b_quit.addEventListener(MouseEvent.CLICK, sair);
cenario1 = new fundos();
cenario1.x = 0;
cenario1.y = 270;
cenario1.name = "cenario1";
cenario1["velx"] = -2;
fundo.addChild(cenario1);
cenario2 = new fundos();
cenario2.x = 1200;
cenario2.y = 270;
cenario2.name = "cenario2";
cenario2["velx"] = -2;
fundo.addChild(cenario2);
}
public function criaArmstrong():void{
var _local1:DisplayObject;
_local1 = new armstrong();
_local1.x = 750;
_local1.y = 30;
_local1.name = "armstrong";
_local1["velx"] = 1;
_local1["vely"] = 0;
_local1["energia"] = 700;
_local1["multip"] = 10;
_local1["status"] = 0;
_local1["ciclo"] = 0;
pContainer.addChild(_local1);
bossTiros.reset();
bossTiros.delay = 1000;
bossTiros.start();
}
public function sair(_arg1:MouseEvent):void{
if (b_quit.currentFrame > 1){
removeEventListener(Event.ENTER_FRAME, principal);
removeEventListener(Event.ENTER_FRAME, ambiente);
removeEventListener(Event.ENTER_FRAME, inimigos);
removeEventListener(MouseEvent.MOUSE_DOWN, atirari);
removeEventListener(MouseEvent.MOUSE_UP, atirarp);
bossTiros.stop();
tInim.stop();
cMotor.stop();
i = alvohero["energia"];
while (i > 0) {
removeChild(getChildByName(("shield" + i)));
i--;
};
i = alvohero["vida"];
while (i > 0) {
removeChild(getChildByName(("plane" + i)));
i--;
};
if (pContainer.getChildByName("rocket") != null){
pContainer.removeChild(pContainer.getChildByName("rocket"));
stage.removeEventListener(KeyboardEvent.KEY_DOWN, atirarm);
};
removeChild(pContainer);
removeChild(mpopup);
this.prevScene();
} else {
b_quit.play();
};
}
public function voltar(_arg1:MouseEvent):void{
this.gotoAndPlay(1, "menu");
}
function frame270(){
b_try.addEventListener(MouseEvent.CLICK, tentar);
b_high.addEventListener(MouseEvent.CLICK, highscores);
b_back.addEventListener(MouseEvent.CLICK, voltar);
}
function frame271(){
movHiScores.setDetails(68, 0, "aliosarmy", false, pontos, pontos.toString(), "points!");
b_try.addEventListener(MouseEvent.CLICK, tentar);
b_back.addEventListener(MouseEvent.CLICK, voltar);
}
}
}//package aliosarmy_fla
Section 4
//vcombo_76 (aliosarmy_fla.vcombo_76)
package aliosarmy_fla {
import flash.display.*;
import flash.text.*;
public dynamic class vcombo_76 extends MovieClip {
public var combos:TextField;
public var cBlink:MovieClip;
}
}//package aliosarmy_fla
Section 5
//vfrase_73 (aliosarmy_fla.vfrase_73)
package aliosarmy_fla {
import flash.display.*;
import flash.text.*;
public dynamic class vfrase_73 extends MovieClip {
public var frase:TextField;
}
}//package aliosarmy_fla
Section 6
//vphase_74 (aliosarmy_fla.vphase_74)
package aliosarmy_fla {
import flash.display.*;
import flash.text.*;
public dynamic class vphase_74 extends MovieClip {
public var chapter:TextField;
public var wave:TextField;
}
}//package aliosarmy_fla
Section 7
//vpontos_75 (aliosarmy_fla.vpontos_75)
package aliosarmy_fla {
import flash.display.*;
import flash.text.*;
public dynamic class vpontos_75 extends MovieClip {
public var pontos:TextField;
}
}//package aliosarmy_fla
Section 8
//vpopup_78 (aliosarmy_fla.vpopup_78)
package aliosarmy_fla {
import flash.display.*;
public dynamic class vpopup_78 extends MovieClip {
public var mpopup_wc:MovieClip;
public var mpopup_go:MovieClip;
}
}//package aliosarmy_fla
Section 9
//vpopup_go_80 (aliosarmy_fla.vpopup_go_80)
package aliosarmy_fla {
import flash.display.*;
import flash.text.*;
public dynamic class vpopup_go_80 extends MovieClip {
public var medal:MovieClip;
public var go_frase:TextField;
public var go_pontos:TextField;
public var go_titulo:TextField;
}
}//package aliosarmy_fla
Section 10
//vpopup_wc_79 (aliosarmy_fla.vpopup_wc_79)
package aliosarmy_fla {
import flash.display.*;
import flash.text.*;
public dynamic class vpopup_wc_79 extends MovieClip {
public var wc_frase:TextField;
public var wc_pontos:TextField;
public var wc_titulo:TextField;
}
}//package aliosarmy_fla
Section 11
//movEntryScreen_2 (HiScores_fla.movEntryScreen_2)
package HiScores_fla {
import flash.display.*;
import flash.text.*;
public dynamic class movEntryScreen_2 extends MovieClip {
public var txtName:TextField;
public var movCode:MovieClip;
public var txtMsg2:TextField;
public var btnRefreshCode:SimpleButton;
public var txtCode:TextField;
public var txtMsg1:TextField;
public var btnSubmit:SimpleButton;
}
}//package HiScores_fla
Section 12
//movInfoScreen_6 (HiScores_fla.movInfoScreen_6)
package HiScores_fla {
import flash.display.*;
import flash.text.*;
public dynamic class movInfoScreen_6 extends MovieClip {
public var btnView:SimpleButton;
public var txtInfo:TextField;
public var btnBack:SimpleButton;
}
}//package HiScores_fla
Section 13
//armstrong (armstrong)
package {
import flash.display.*;
public dynamic class armstrong extends MovieClip {
public var elice1:MovieClip;
public var elice2:MovieClip;
public var metral:MovieClip;
}
}//package
Section 14
//aviao (aviao)
package {
import flash.display.*;
public dynamic class aviao extends MovieClip {
public var elice:MovieClip;
}
}//package
Section 15
//aviaoAnim (aviaoAnim)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class aviaoAnim extends MovieClip {
public function aviaoAnim(){
addFrameScript(48, frame49);
}
function frame49(){
stop();
}
}
}//package
Section 16
//b_blink (b_blink)
package {
import flash.display.*;
public dynamic class b_blink extends MovieClip {
}
}//package
Section 17
//bandit (bandit)
package {
import flash.display.*;
public dynamic class bandit extends MovieClip {
}
}//package
Section 18
//blank (blank)
package {
import flash.display.*;
public dynamic class blank extends MovieClip {
}
}//package
Section 19
//bomba (bomba)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class bomba extends MovieClip {
public var multip:int;
public var velx;
public var vely;
public function bomba(){
addFrameScript(0, frame1);
}
public function mtiro(_arg1:Event):void{
multip++;
this.x = (this.x + this.velx);
this.y = (this.y + this.vely);
this.velx = (this.velx + ((0 - this.velx) / 50));
this.vely = (this.vely + 0.2);
}
function frame1(){
addEventListener(Event.ENTER_FRAME, mtiro);
}
}
}//package
Section 20
//diver (diver)
package {
import flash.display.*;
public dynamic class diver extends MovieClip {
}
}//package
Section 21
//energia (energia)
package {
import flash.display.*;
public dynamic class energia extends MovieClip {
}
}//package
Section 22
//explosao (explosao)
package {
import flash.display.*;
public dynamic class explosao extends MovieClip {
}
}//package
Section 23
//fumaca (fumaca)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class fumaca extends MovieClip {
public var fatoralpha;
public var fatortamanho;
public function fumaca(){
addFrameScript(0, frame1);
}
function frame1(){
fatortamanho = 1;
fatoralpha = 0.001;
}
}
}//package
Section 24
//fundos (fundos)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class fundos extends MovieClip {
public function fundos(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
stop();
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package
Section 25
//go229 (go229)
package {
import flash.display.*;
public dynamic class go229 extends MovieClip {
public var metral1:MovieClip;
public var metral2:MovieClip;
public var metral3:MovieClip;
public var metral4:MovieClip;
}
}//package
Section 26
//he111 (he111)
package {
import flash.display.*;
public dynamic class he111 extends MovieClip {
public var elice1:MovieClip;
public var elice2:MovieClip;
public var metral1:MovieClip;
public var metral2:MovieClip;
}
}//package
Section 27
//he11b (he11b)
package {
import flash.display.*;
public dynamic class he11b extends MovieClip {
public var elice1:MovieClip;
public var elice2:MovieClip;
public var metral2:MovieClip;
}
}//package
Section 28
//HiScores (HiScores)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class HiScores extends MovieClip {
private var KEY:String;// = "rocket"
private var score:Number;
private var lowIsBest:Boolean;
private var gameId:Number;
private var infoScreen:MovieClip;// = null
public var movEntryScreen:MovieClip;
private var levelId:Number;
private var entryScreen:MovieClip;// = null
public var movInfoScreen:MovieClip;
private var gameCode:String;
public static var HS_SERVLET_URL:String = (SERVER_URL + "/servlet/hiServlet");
public static var SERVER_URL:String = "http://www.gimme5games.com";
public static var INDEX_URL:String = (SERVER_URL + "/index.jsp?id=");
public function HiScores(){
KEY = "rocket";
infoScreen = null;
entryScreen = null;
super();
this.visible = false;
}
public function secCodeLoad():void{
var _local1:Loader;
var _local2:String;
_local1 = new Loader();
_local1.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, secCodeLoadError);
_local2 = ((HS_SERVLET_URL + "?type=genCode&cachebuster=") + new Date().getTime());
_local1.load(new URLRequest(_local2));
entryScreen["movCode"].addChild(_local1);
}
public function submitDetails():void{
var _local1:Boolean;
var _local2:String;
var _local3:String;
var _local4:Number;
var _local5:Number;
var _local6:URLVariables;
var _local7:URLRequest;
var _local8:URLLoader;
entryScreen.visible = false;
infoScreen.visible = true;
_local1 = true;
if (entryScreen["txtName"].text.length == 0){
showInfoMessage("Please enter your name.", true);
} else {
if (entryScreen["txtCode"].text.length != 5){
showInfoMessage("Please enter all 5 letters of the security code.", true);
} else {
showInfoMessage("Submitting hi-score details to the server, please wait.", true);
infoScreen["btnBack"].visible = false;
_local1 = false;
};
};
if (!_local1){
_local2 = ((((((((("save|" + entryScreen["txtName"].text) + "|") + entryScreen["txtCode"].text) + "|") + score) + "|") + gameId) + "|") + levelId);
_local3 = "";
_local4 = 0;
_local5 = 0;
while (_local4 < _local2.length) {
if (_local5 >= KEY.length){
_local5 = 0;
};
_local3 = (_local3 + String.fromCharCode(((_local2.charCodeAt(_local4) ^ KEY.charCodeAt(_local5)) + 1)));
_local4++;
_local5++;
};
_local6 = new URLVariables();
_local6.ffdata = _local3;
_local6.lowIsBest = lowIsBest;
_local7 = new URLRequest(HS_SERVLET_URL);
_local8 = new URLLoader();
_local8.dataFormat = URLLoaderDataFormat.VARIABLES;
_local7.data = _local6;
_local7.method = URLRequestMethod.POST;
_local8.addEventListener(Event.COMPLETE, submitHiScoreHandler);
_local8.addEventListener(IOErrorEvent.IO_ERROR, submitHiScoreError);
_local8.load(_local7);
};
}
public function back():void{
entryScreen.visible = true;
infoScreen.visible = false;
}
public function submitHiScoreHandler(_arg1:Event):void{
var _local2:URLLoader;
var _local3:Number;
_local2 = URLLoader(_arg1.target);
_local3 = _local2.data.res;
if (_local3 == -1){
showInfoMessage("Could not store hi-score details. Click on back, generate a new security code and re-submit.", true);
} else {
if (_local3 == 0){
showInfoMessage("Sorry, a better score already exists with that name.", false);
} else {
if (_local3 == 1){
showInfoMessage("Congratulations! You made it into the\nhi-score table.", false);
};
};
};
}
public function showInfoMessage(_arg1:String, _arg2:Boolean):void{
infoScreen["txtInfo"].text = _arg1;
infoScreen["btnBack"].visible = _arg2;
infoScreen["btnView"].visible = !(_arg2);
}
public function secCodeLoadError(_arg1:IOErrorEvent):void{
entryScreen.visible = false;
infoScreen.visible = true;
showInfoMessage("Could not generate a security code. Click on back and try to refresh the code window.", true);
}
public function setDetails(_arg1:Number, _arg2:Number, _arg3:String, _arg4:Boolean, _arg5:Number, _arg6:String, _arg7:String):void{
this.gameId = _arg1;
this.levelId = _arg2;
this.gameCode = _arg3;
this.lowIsBest = _arg4;
this.score = _arg5;
this.entryScreen = this["movEntryScreen"];
this.infoScreen = this["movInfoScreen"];
entryScreen["txtMsg1"].text = _arg6;
entryScreen["txtMsg2"].text = _arg7;
entryScreen["txtName"].text = "";
entryScreen["txtCode"].text = "";
entryScreen.visible = true;
infoScreen.visible = false;
secCodeLoad();
entryScreen["btnRefreshCode"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
entryScreen["btnSubmit"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
infoScreen["btnView"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
infoScreen["btnBack"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
this.visible = true;
}
public function submitHiScoreError(_arg1:IOErrorEvent):void{
showInfoMessage("A serious problem was encountered with the server, please try again in a few minutes.", true);
}
public function onButtonPress(_arg1:MouseEvent):void{
switch (_arg1.target.name){
case "btnRefreshCode":
secCodeLoad();
break;
case "btnSubmit":
submitDetails();
break;
case "btnView":
viewScore();
break;
case "btnBack":
back();
break;
};
}
public function viewScore():void{
var _local1:URLRequest;
_local1 = new URLRequest(((((((((INDEX_URL + gameCode) + "_hs") + "&name=") + entryScreen["txtName"].text) + "&levelId=") + levelId) + "&cachebuster=") + new Date().getTime()));
navigateToURL(_local1, "_blank");
}
}
}//package
Section 29
//jet (jet)
package {
import flash.display.*;
public dynamic class jet extends MovieClip {
}
}//package
Section 30
//medkit (medkit)
package {
import flash.display.*;
public dynamic class medkit extends MovieClip {
}
}//package
Section 31
//missel (missel)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class missel extends MovieClip {
public var multip:int;
public var velx;
public var vely;
public function missel(){
addFrameScript(0, frame1);
}
public function mtiro(_arg1:Event):void{
multip++;
this.x = (this.x + (this.velx * multip));
this.y = (this.y + (this.vely * multip));
}
function frame1(){
addEventListener(Event.ENTER_FRAME, mtiro);
}
}
}//package
Section 32
//MochiAd (MochiAd)
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
public class MochiAd {
public static function getVersion():String{
return ("2.1");
}
public static function showTimedAd(_arg1:Object):void{
_slot1.showInterLevelAd(_arg1);
}
public static function _allowDomains(_arg1:String):String{
var _local2:String;
_local2 = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function load(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var depth:Number;
var mc:MovieClip;
var wh:Array;
var lv:URLVariables;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var f:Function;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
DEFAULTS = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _slot1._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = _slot1.getVersion();
clip = options.clip;
if (!_slot1._isNetworkAvailable()){
return (null);
};
if (clip._mochiad_loaded){
return (null);
};
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, "_mochiad", depth);
wh = _slot1._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;
};
lv = 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;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
f = function (_arg1:Object):void{
mc._mochiad_ctr_failed = true;
};
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f);
g = function (_arg1:Object):void{
_slot1.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest((server + ".swf"));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function sendHighScore(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{
var _local4:MovieClip;
_local4 = _slot1._loadCommunicator({clip:_arg1.clip, id:_arg1.id});
if (!_local4){
return (false);
};
_local4.doSend(["sendHighScore", _arg1], _arg2, _arg3);
return (true);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local3:Object;
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
_local3 = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
_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++;
};
};
return (_local3);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
_arg1.removeChild(_arg1._mochiad);
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
this.clip.stop();
}, ad_finished:function ():void{
this.clip.play();
}};
options = _slot1._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!_slot1.load(options)){
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
options.ad_finished();
};
wh = _slot1._getRes(options, clip);
w = wh[0];
h = 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{
var _local1:Number;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
_slot1.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
_slot1.unload(clip);
};
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Number;
var _local3:Boolean;
var _local4:Number;
_local1 = this.parent._mochiad_ctr;
_local2 = (getTimer() - this.started);
_local3 = false;
if (!chk.showing){
_local4 = _local1.loaderInfo.bytesTotal;
if ((((_local4 > 0)) || (("number" == "undefined")))){
chk.showing = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
_local3 = true;
};
};
};
if ((((_local2 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){
_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 _getRes(_arg1:Object, _arg2:Object):Array{
var _local3:Object;
var _local4:Number;
var _local5:Number;
var _local6:Array;
_local3 = _arg2.getBounds(_arg2.root);
_local4 = 0;
_local5 = 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 createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip;
_local4 = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _loadCommunicator(_arg1:Object):MovieClip{
var DEFAULTS:Object;
var clip:Object;
var clipname:String;
var server:String;
var depth:Number;
var mc:MovieClip;
var lv:URLVariables;
var k:String;
var lc:LocalConnection;
var name:String;
var req:URLRequest;
var loader:Loader;
var options = _arg1;
DEFAULTS = {com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _slot1._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = _slot1.getVersion();
clip = options.clip;
clipname = ("_mochiad_com_" + options.id);
if (!_slot1._isNetworkAvailable()){
return (null);
};
if (clip[clipname]){
return (clip[clipname]);
};
server = (options.com_server + options.id);
_slot1._allowDomains(server);
delete options.id;
delete options.com_server;
depth = options.depth;
delete options.depth;
mc = createEmptyMovieClip(clip, clipname, depth);
lv = new URLVariables();
for (k in options) {
lv[k] = options[k];
};
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.name = name;
mc.lc = lc;
lv.lc = name;
mc._id = 0;
mc._queue = [];
mc.rpcResult = function (_arg1:Object):void{
var _local3:Array;
var _local4:Array;
var _local5:Number;
var _local6:Object;
var _local7:Object;
_arg1 = parseInt(_arg1.toString());
_local3 = mc._callbacks[_arg1];
if (typeof(_local3) == "undefined"){
return;
};
delete mc._callbacks[_arg1];
_local4 = [];
_local5 = 2;
while (_local5 < _local3.length) {
_local4.push(_local3[_local5]);
_local5++;
};
_local5 = 1;
while (_local5 < arguments.length) {
_local4.push(arguments[_local5]);
_local5++;
};
_local6 = _local3[1];
_local7 = _local3[0];
if (((_local7) && ((typeof(_local6) == "string")))){
_local6 = _local7[_local6];
};
if (typeof(_local6) == "function"){
_local6.apply(_local7, _local4);
};
};
mc._didConnect = function (_arg1:String):void{
var _local2:Array;
var _local3:Function;
var _local4:Number;
var _local5:Array;
mc._endpoint = _arg1;
_local2 = mc._queue;
delete mc._queue;
_local3 = mc.doSend;
_local4 = 0;
while (_local4 < _local2.length) {
_local5 = _local2[_local4];
_local3.apply(this, _local5);
_local4++;
};
};
mc.doSend = function (_arg1:Array, _arg2:Object, _arg3:Object):void{
var _local5:Number;
var _local6:LocalConnection;
var _local7:Array;
var _local8:Number;
if (mc._endpoint == null){
_local7 = [];
_local8 = 0;
while (_local8 < arguments.length) {
_local7.push(arguments[_local8]);
_local8++;
};
mc._queue.push(_local7);
return;
};
mc._id = (mc._id + 1);
_local5 = mc._id;
mc._callbacks[_local5] = [_arg2, ((_arg3) || (_arg2))];
_local6 = new LocalConnection();
_local6.send(mc._endpoint, "rpc", _local5, _arg1);
};
mc._callbacks = {};
mc._callbacks[0] = [mc, "_didConnect"];
lv.st = getTimer();
req = new URLRequest((server + ".swf"));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader = new Loader();
loader.load(req);
mc.addChild(loader);
mc._mochiad_com = loader;
return (mc);
}
public static function showPreGameAd(_arg1:Object):void{
var DEFAULTS:Object;
var clip:Object;
var ad_msec:Number;
var ad_timeout:Number;
var fadeout_time:Number;
var mc:MovieClip;
var wh:Array;
var w:Number;
var h:Number;
var chk:MovieClip;
var bar:MovieClip;
var bar_color:Number;
var bar_background:Number;
var bar_outline:Number;
var backing_mc:MovieClip;
var backing:Object;
var inside_mc:MovieClip;
var inside:Object;
var outline_mc:MovieClip;
var outline:Object;
var complete:Boolean;
var unloaded:Boolean;
var f:Function;
var r:MovieClip;
var options = _arg1;
DEFAULTS = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, ad_started:function ():void{
this.clip.stop();
}, ad_finished:function ():void{
this.clip.play();
}};
options = _slot1._parseOptions(options, DEFAULTS);
clip = options.clip;
ad_msec = 11000;
ad_timeout = options.ad_timeout;
delete options.ad_timeout;
fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!_slot1.load(options)){
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
var fn:Function;
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
wh = _slot1._getRes(options, clip);
w = wh[0];
h = 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);
bar = createEmptyMovieClip(chk, "_mochiad_bar", 4);
bar.x = 10;
bar.y = (h - 20);
bar_color = options.color;
delete options.color;
bar_background = options.background;
delete options.background;
bar_outline = options.outline;
delete options.outline;
backing_mc = createEmptyMovieClip(bar, "_outline", 1);
backing = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
inside_mc = createEmptyMovieClip(bar, "_inside", 2);
inside = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
outline_mc = createEmptyMovieClip(bar, "_outline", 3);
outline = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 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;
_local1 = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
_slot1.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
f = function (_arg1:Event):void{
complete = true;
if (unloaded){
_slot1.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
_slot1.unload(clip);
};
};
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object;
_local2 = mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local1:Object;
var _local2:Object;
var _local3:Number;
var _local4:Boolean;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Object;
var _local10:Number;
var _local11:Number;
if (!this.parent.parent){
delete this["onEnterFrame"];
return;
};
_local1 = this.parent.parent.root;
_local2 = this.parent._mochiad_ctr;
_local3 = (getTimer() - this.started);
_local4 = false;
_local5 = _local1.loaderInfo.bytesTotal;
_local6 = _local1.loaderInfo.bytesLoaded;
_local7 = ((100 * _local6) / _local5);
_local8 = ((100 * _local3) / chk.ad_msec);
_local9 = this._mochiad_bar._inside;
_local10 = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
if (!chk.showing){
_local11 = _local2.loaderInfo.bytesTotal;
if ((((_local11 > 0)) || (("number" == "undefined")))){
chk.showing = true;
chk.started = getTimer();
} else {
if (_local3 > chk.ad_timeout){
_local4 = true;
};
};
};
if ((((_local3 > chk.ad_msec)) || (this.parent._mochiad_ctr_failed))){
_local4 = true;
};
if (((complete) && (_local4))){
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{
_slot1.showPreGameAd(_arg1);
}
public static function fetchHighScores(_arg1:Object, _arg2:Object, _arg3:Object=null):Boolean{
var _local4:MovieClip;
_local4 = _slot1._loadCommunicator({clip:_arg1.clip, id:_arg1.id});
if (!_local4){
return (false);
};
_local4.doSend(["fetchHighScores", _arg1], _arg2, _arg3);
return (true);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var f:Function;
var mc = _arg1;
f = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
mc.removeEventListener(Event.ENTER_FRAME, f);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package
Section 33
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.system.*;
import flash.net.*;
public dynamic class MochiBot extends Sprite {
public static function track(_arg1:Sprite, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
_arg1.addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 34
//seeker (seeker)
package {
import flash.display.*;
public dynamic class seeker extends MovieClip {
}
}//package
Section 35
//sExplosao (sExplosao)
package {
import flash.media.*;
public dynamic class sExplosao extends Sound {
}
}//package
Section 36
//sExplosaog (sExplosaog)
package {
import flash.media.*;
public dynamic class sExplosaog extends Sound {
}
}//package
Section 37
//sMachineg (sMachineg)
package {
import flash.media.*;
public dynamic class sMachineg extends Sound {
}
}//package
Section 38
//sMissel (sMissel)
package {
import flash.media.*;
public dynamic class sMissel extends Sound {
}
}//package
Section 39
//sMotor (sMotor)
package {
import flash.media.*;
public dynamic class sMotor extends Sound {
}
}//package
Section 40
//sndSlap (sndSlap)
package {
import flash.media.*;
public dynamic class sndSlap extends Sound {
}
}//package
Section 41
//Splash (Splash)
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public dynamic class Splash extends MovieClip {
public var hand:MovieClip;
public var btnUrl:SimpleButton;
public static var SERVER_URL:String = "http://www.gimme5games.com";
public function Splash(){
this.addEventListener(Event.ENTER_FRAME, splashEnterFrame);
this["btnUrl"].addEventListener(MouseEvent.MOUSE_DOWN, onButtonPress);
}
public function splashEnterFrame(_arg1:Event):void{
if (this.currentFrame == this.totalFrames){
this.removeEventListener(Event.ENTER_FRAME, splashEnterFrame);
this.stop();
};
}
public function isComplete():Boolean{
return ((this.currentFrame == this.totalFrames));
}
public function onButtonPress(_arg1:MouseEvent):void{
var _local2:URLRequest;
switch (_arg1.target.name){
case "btnUrl":
_local2 = new URLRequest(SERVER_URL);
navigateToURL(_local2, "_blank");
break;
};
}
}
}//package
Section 42
//sRadioBandits (sRadioBandits)
package {
import flash.media.*;
public dynamic class sRadioBandits extends Sound {
}
}//package
Section 43
//sRadioChefe (sRadioChefe)
package {
import flash.media.*;
public dynamic class sRadioChefe extends Sound {
}
}//package
Section 44
//sRadioDivers (sRadioDivers)
package {
import flash.media.*;
public dynamic class sRadioDivers extends Sound {
}
}//package
Section 45
//sRadioJets (sRadioJets)
package {
import flash.media.*;
public dynamic class sRadioJets extends Sound {
}
}//package
Section 46
//sRadioSeekers (sRadioSeekers)
package {
import flash.media.*;
public dynamic class sRadioSeekers extends Sound {
}
}//package
Section 47
//tiro (tiro)
package {
import flash.display.*;
import flash.events.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.system.*;
import flash.net.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.ui.*;
public dynamic class tiro extends MovieClip {
public var multip:int;
public var velx;
public var vely;
public function tiro(){
addFrameScript(0, frame1);
}
public function mtiro(_arg1:Event):void{
this.x = (this.x + (this.velx * multip));
this.y = (this.y + (this.vely * multip));
}
function frame1(){
addEventListener(Event.ENTER_FRAME, mtiro);
}
}
}//package
Section 48
//vmissel (vmissel)
package {
import flash.display.*;
public dynamic class vmissel extends MovieClip {
}
}//package
Section 49
//vplane (vplane)
package {
import flash.display.*;
public dynamic class vplane extends MovieClip {
}
}//package
Section 50
//vshield (vshield)
package {
import flash.display.*;
public dynamic class vshield extends MovieClip {
}
}//package