Section 1
//AdLoader (CPMStar.AdLoader)
package CPMStar {
import flash.events.*;
import flash.display.*;
import flash.system.*;
import flash.net.*;
public class AdLoader extends Sprite {
private var cpmstarLoader:Loader;
private var contentspotid:String;
public function AdLoader(_arg1:String){
this.contentspotid = _arg1;
addEventListener(Event.ADDED, addedHandler);
}
private function dispatchHandler(_arg1:Event):void{
dispatchEvent(_arg1);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED, addedHandler);
Security.allowDomain("server.cpmstar.com");
var _local2 = "http://server.cpmstar.com/adviewas3.swf";
var _local3:DisplayObjectContainer = parent;
cpmstarLoader = new Loader();
cpmstarLoader.contentLoaderInfo.addEventListener(Event.INIT, dispatchHandler);
cpmstarLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, dispatchHandler);
cpmstarLoader.load(new URLRequest(((_local2 + "?contentspotid=") + contentspotid)));
addChild(cpmstarLoader);
}
}
}//package CPMStar
Section 2
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 3
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 4
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 5
//AdPlaceHolder_10 (ScreenPreloader_fla.AdPlaceHolder_10)
package ScreenPreloader_fla {
import flash.events.*;
import flash.display.*;
public dynamic class AdPlaceHolder_10 extends MovieClip {
public var ad:MovieClip;
public var frame:MovieClip;
public var hide:SimpleButton;
public var show:SimpleButton;
public function AdPlaceHolder_10(){
addFrameScript(0, frame1, 9, frame10, 19, frame20);
}
function frame10(){
stop();
frame.visible = false;
ad.visible = false;
show.visible = true;
hide.visible = false;
}
function frame1(){
stop();
frame.visible = true;
ad.visible = true;
show.visible = false;
hide.visible = true;
hide.addEventListener(MouseEvent.CLICK, onClickHide);
show.addEventListener(MouseEvent.CLICK, onClickShow);
}
function frame20(){
gotoAndStop(1);
}
public function onClickShow(_arg1:Event){
frame.visible = true;
ad.visible = true;
show.visible = false;
hide.visible = true;
gotoAndPlay(11);
}
public function onClickHide(_arg1:Event){
gotoAndPlay(2);
}
}
}//package ScreenPreloader_fla
Section 6
//AgLogoButton_4 (ScreenPreloader_fla.AgLogoButton_4)
package ScreenPreloader_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class AgLogoButton_4 extends MovieClip {
public var logo:MovieClip;
public function AgLogoButton_4(){
addFrameScript(0, frame1);
}
public function gotoSponsor(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://armorgames.com"));
}
function frame1(){
logo.addEventListener(MouseEvent.CLICK, gotoSponsor);
logo.buttonMode = true;
}
}
}//package ScreenPreloader_fla
Section 7
//GameTitleBg_2 (ScreenPreloader_fla.GameTitleBg_2)
package ScreenPreloader_fla {
import flash.display.*;
public dynamic class GameTitleBg_2 extends MovieClip {
public var logo:MovieClip;
}
}//package ScreenPreloader_fla
Section 8
//Logo_7 (ScreenPreloader_fla.Logo_7)
package ScreenPreloader_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Logo_7 extends MovieClip {
public var clip:MovieClip;
public function Logo_7(){
addFrameScript(0, frame1);
}
public function gotoSponsor(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://togeproductions.com"));
}
function frame1(){
clip.addEventListener(MouseEvent.CLICK, gotoSponsor);
clip.buttonMode = true;
}
}
}//package ScreenPreloader_fla
Section 9
//blood05 (blood05)
package {
import flash.display.*;
public dynamic class blood05 extends MovieClip {
}
}//package
Section 10
//charCivilFSheridanS (charCivilFSheridanS)
package {
import flash.display.*;
public dynamic class charCivilFSheridanS extends MovieClip {
public var animationDone:Boolean;
public function charCivilFSheridanS(){
addFrameScript(0, frame1, 19, frame20, 70, frame71);
}
function frame71(){
animationDone = true;
stop();
}
function frame1(){
animationDone = false;
}
function frame20(){
gotoAndPlay("panic");
}
}
}//package
Section 11
//charOrcE (charOrcE)
package {
import flash.display.*;
public dynamic class charOrcE extends MovieClip {
public var attackDone:Boolean;
public function charOrcE(){
addFrameScript(0, frame1, 17, frame18, 44, frame45);
}
function frame18(){
gotoAndPlay("walk");
}
function frame1(){
attackDone = false;
}
function frame45(){
attackDone = true;
stop();
stop();
}
}
}//package
Section 12
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class Main extends Sprite {
private const _swf:Class;
public function Main():void{
_swf = Main__swf;
super();
if (stage){
init();
} else {
addEventListener(Event.ADDED_TO_STAGE, init);
};
}
private function init(_arg1:Event=null):void{
var _local2:Loader = new Loader();
addChild(_local2);
_local2.loadBytes((new _swf() as ByteArray));
removeEventListener(Event.ADDED_TO_STAGE, init);
}
}
}//package
Section 13
//Main__swf (Main__swf)
package {
import mx.core.*;
public class Main__swf extends ByteArrayAsset {
}
}//package
Section 14
//Preloader (Preloader)
package {
import flash.events.*;
import flash.display.*;
import CPMStar.*;
import flash.system.*;
import flash.utils.*;
public class Preloader extends MovieClip {
public var siteLockToge:Boolean;// = false
public var siteLockArmor:Boolean;// = false
public var image:MovieClip;
public var wwwSite:String;// = "Local"
public function Preloader(){
var _local1:String;
super();
siteLock();
image = new ScreenPreloader();
addChild(image);
image.x = 350;
image.y = 250;
image.siteLockInfo.visible = false;
if (image){
initAd();
addEventListener(Event.ENTER_FRAME, checkFrame);
loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress);
_local1 = "http://agi.armorgames.com/assets/agi/AGI.swf";
Security.allowDomain(_local1);
};
}
public function initAd():void{
var _local1:DisplayObject;
if (siteLockArmor){
image.adSpace.visible = false;
} else {
_local1 = new AdLoader("2172QC4736100");
image.adSpace.ad.addChild(_local1);
};
}
private function startup():void{
stop();
if (image){
image.visible = false;
};
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress);
var _local1:Class = (getDefinitionByName("Main") as Class);
addChild((new (_local1) as DisplayObject));
}
private function checkFrame(_arg1:Event):void{
if (currentFrame == totalFrames){
removeEventListener(Event.ENTER_FRAME, checkFrame);
image.addEventListener(Event.ENTER_FRAME, checkAnimation);
image.orc.gotoAndPlay("attack");
image.civilian.gotoAndPlay("die");
};
}
private function progress(_arg1:ProgressEvent):void{
var _local2:int = Math.round(_arg1.bytesLoaded);
var _local3:int = Math.round(_arg1.bytesTotal);
var _local4:Number = (_local2 / _local3);
image.loadingText.text = (("Loading....." + int((_local4 * 100))) + "%");
image.orc.x = ((_local4 * 200) + 30);
}
private function siteLock():void{
var _local5:Array;
var _local6:Array;
var _local7:Array;
var _local1:String = stage.loaderInfo.url;
_local1 = _local1.toLowerCase();
var _local2:Array = _local1.split("://");
var _local3:Boolean;
var _local4:int;
if (_local2.length > 0){
_local5 = _local2[1].split("/");
_local6 = _local5[0].split(".");
if (_local6.length > 0){
_local4 = 0;
while (_local4 < _local6.length) {
if (_local6[_local4] == "armorgames"){
siteLockArmor = true;
_local3 = true;
break;
};
if (_local6[_local4] == "togeproductions"){
siteLockToge = true;
_local3 = true;
break;
};
_local4++;
};
};
_local7 = _local6[0].split("@");
if (_local7.length > 0){
_local4 = 0;
while (_local4 < _local7.length) {
if (_local7[_local4] == "armorgames"){
siteLockArmor = true;
_local3 = true;
break;
};
if (_local7[_local4] == "togeproductions"){
siteLockToge = true;
_local3 = true;
break;
};
_local4++;
};
};
if (!_local3){
if (_local5.length > 1){
_local4 = 1;
while (_local4 < _local5.length) {
if (_local5[_local4] == "armorgames"){
siteLockArmor = true;
_local3 = true;
break;
};
_local4++;
};
};
};
wwwSite = _local5[0];
};
}
private function checkAnimation(_arg1:Event):void{
if (image.civilian.animationDone){
image.removeEventListener(Event.ENTER_FRAME, checkAnimation);
startup();
};
}
}
}//package
Section 15
//ScreenPreloader (ScreenPreloader)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
public dynamic class ScreenPreloader extends MovieClip {
public var startButton:SimpleButton;
public var loading1:blood05;
public var loading2:blood05;
public var loading3:blood05;
public var loading7:blood05;
public var loading8:blood05;
public var loading4:blood05;
public var loading0:blood05;
public var loading9:blood05;
public var loadingText:TextField;
public var loading5:blood05;
public var toge:MovieClip;
public var titleBG:MovieClip;
public var loading6:blood05;
public var civilian:charCivilFSheridanS;
public var adSpace:MovieClip;
public var orc:charOrcE;
public var siteLockInfo:SiteLockedText;
public function ScreenPreloader(){
addFrameScript(0, frame1);
}
public function gotoSponsor(_arg1:MouseEvent):void{
navigateToURL(new URLRequest("http://armorgames.com"));
}
function frame1(){
startButton.visible = false;
titleBG.addEventListener(MouseEvent.CLICK, gotoSponsor);
titleBG.buttonMode = true;
}
}
}//package
Section 16
//SiteLockedText (SiteLockedText)
package {
import flash.display.*;
import flash.text.*;
public dynamic class SiteLockedText extends MovieClip {
public var info:TextField;
}
}//package