Section 1
//PropTween (com.greensock.core.PropTween)
package com.greensock.core {
public class PropTween {
public var priority:int;
public var start:Number;
public var prevNode:PropTween;
public var change:Number;
public var target:Object;
public var name:String;
public var property:String;
public var nextNode:PropTween;
public var isPlugin:Boolean;
public function PropTween(_arg1:Object, _arg2:String, _arg3:Number, _arg4:Number, _arg5:String, _arg6:Boolean, _arg7:PropTween=null, _arg8:int=0){
this.target = _arg1;
this.property = _arg2;
this.start = _arg3;
this.change = _arg4;
this.name = _arg5;
this.isPlugin = _arg6;
if (_arg7){
_arg7.prevNode = this;
this.nextNode = _arg7;
};
this.priority = _arg8;
}
}
}//package com.greensock.core
Section 2
//SimpleTimeline (com.greensock.core.SimpleTimeline)
package com.greensock.core {
public class SimpleTimeline extends TweenCore {
public var autoRemoveChildren:Boolean;
protected var _lastChild:TweenCore;
protected var _firstChild:TweenCore;
public function SimpleTimeline(_arg1:Object=null){
super(0, _arg1);
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local5:Number;
var _local6:TweenCore;
var _local4:TweenCore = _firstChild;
this.cachedTotalTime = _arg1;
this.cachedTime = _arg1;
while (_local4) {
_local6 = _local4.nextNode;
if (((_local4.active) || ((((((_arg1 >= _local4.cachedStartTime)) && (!(_local4.cachedPaused)))) && (!(_local4.gc)))))){
if (!_local4.cachedReversed){
_local4.renderTime(((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale), _arg2, false);
} else {
_local5 = (_local4.cacheIsDirty) ? _local4.totalDuration : _local4.cachedTotalDuration;
_local4.renderTime((_local5 - ((_arg1 - _local4.cachedStartTime) * _local4.cachedTimeScale)), _arg2, false);
};
};
_local4 = _local6;
};
}
public function addChild(_arg1:TweenCore):void{
if (((!(_arg1.gc)) && (_arg1.timeline))){
_arg1.timeline.remove(_arg1, true);
};
_arg1.timeline = this;
if (_arg1.gc){
_arg1.setEnabled(true, true);
};
if (_firstChild){
_firstChild.prevNode = _arg1;
};
_arg1.nextNode = _firstChild;
_firstChild = _arg1;
_arg1.prevNode = null;
}
public function remove(_arg1:TweenCore, _arg2:Boolean=false):void{
if (_arg1.gc){
return;
};
if (!_arg2){
_arg1.setEnabled(false, true);
};
if (_arg1.nextNode){
_arg1.nextNode.prevNode = _arg1.prevNode;
} else {
if (_lastChild == _arg1){
_lastChild = _arg1.prevNode;
};
};
if (_arg1.prevNode){
_arg1.prevNode.nextNode = _arg1.nextNode;
} else {
if (_firstChild == _arg1){
_firstChild = _arg1.nextNode;
};
};
}
public function get rawTime():Number{
return (this.cachedTotalTime);
}
}
}//package com.greensock.core
Section 3
//TweenCore (com.greensock.core.TweenCore)
package com.greensock.core {
import com.greensock.*;
public class TweenCore {
public var initted:Boolean;
protected var _hasUpdate:Boolean;
public var active:Boolean;
protected var _delay:Number;
public var cachedTime:Number;
public var cachedReversed:Boolean;
public var nextNode:TweenCore;
protected var _rawPrevTime:Number;// = -1
public var vars:Object;
public var cachedTotalTime:Number;
public var timeline:SimpleTimeline;
public var data;
public var cachedStartTime:Number;
public var prevNode:TweenCore;
public var cachedDuration:Number;
public var gc:Boolean;
protected var _pauseTime:Number;
public var cacheIsDirty:Boolean;
public var cachedPaused:Boolean;
public var cachedTimeScale:Number;
public var cachedTotalDuration:Number;
public static const version:Number = 1.13;
protected static var _classInitted:Boolean;
public function TweenCore(_arg1:Number=0, _arg2:Object=null){
this.vars = ((_arg2) || ({}));
this.cachedDuration = (this.cachedTotalDuration = ((_arg1) || (0)));
_delay = ((this.vars.delay) || (0));
this.cachedTimeScale = ((this.vars.timeScale) || (1));
this.active = Boolean((((((_arg1 == 0)) && ((_delay == 0)))) && (!((this.vars.immediateRender == false)))));
this.cachedTotalTime = (this.cachedTime = 0);
this.data = this.vars.data;
if (!_classInitted){
if (isNaN(TweenLite.rootFrame)){
TweenLite.initClass();
_classInitted = true;
} else {
return;
};
};
var _local3:SimpleTimeline = ((this.vars.timeline is SimpleTimeline)) ? this.vars.timeline : (this.vars.useFrames) ? TweenLite.rootFramesTimeline : TweenLite.rootTimeline;
this.cachedStartTime = (_local3.cachedTotalTime + _delay);
_local3.addChild(this);
if (this.vars.reversed){
this.cachedReversed = true;
};
if (this.vars.paused){
this.paused = true;
};
}
public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
}
public function get delay():Number{
return (_delay);
}
public function get duration():Number{
return (this.cachedDuration);
}
public function restart(_arg1:Boolean=false, _arg2:Boolean=true):void{
this.reversed = false;
this.paused = false;
this.setTotalTime((_arg1) ? -(_delay) : 0, _arg2);
}
public function set reversed(_arg1:Boolean):void{
if (_arg1 != this.cachedReversed){
this.cachedReversed = _arg1;
setTotalTime(this.cachedTotalTime, true);
};
}
public function set startTime(_arg1:Number):void{
var _local2:Boolean = Boolean(((!((this.timeline == null))) && (((!((_arg1 == this.cachedStartTime))) || (this.gc)))));
this.cachedStartTime = _arg1;
if (_local2){
this.timeline.addChild(this);
};
}
public function set delay(_arg1:Number):void{
this.startTime = (this.startTime + (_arg1 - _delay));
_delay = _arg1;
}
public function resume():void{
this.paused = false;
}
public function get paused():Boolean{
return (this.cachedPaused);
}
public function play():void{
this.reversed = false;
this.paused = false;
}
public function set duration(_arg1:Number):void{
this.cachedDuration = (this.cachedTotalDuration = _arg1);
setDirtyCache(false);
}
public function complete(_arg1:Boolean=false, _arg2:Boolean=false):void{
if (!_arg1){
renderTime(this.cachedTotalDuration, _arg2, false);
return;
};
if (this.timeline.autoRemoveChildren){
this.setEnabled(false, false);
} else {
this.active = false;
};
if (!_arg2){
if (((((this.vars.onComplete) && ((this.cachedTotalTime == this.cachedTotalDuration)))) && (!(this.cachedReversed)))){
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
} else {
if (((((this.cachedReversed) && ((this.cachedTotalTime == 0)))) && (this.vars.onReverseComplete))){
this.vars.onReverseComplete.apply(null, this.vars.onReverseCompleteParams);
};
};
};
}
public function invalidate():void{
}
public function get totalTime():Number{
return (this.cachedTotalTime);
}
public function get reversed():Boolean{
return (this.cachedReversed);
}
public function get startTime():Number{
return (this.cachedStartTime);
}
public function set currentTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
protected function setDirtyCache(_arg1:Boolean=true):void{
var _local2:TweenCore = (_arg1) ? this : this.timeline;
while (_local2) {
_local2.cacheIsDirty = true;
_local2 = _local2.timeline;
};
}
public function reverse(_arg1:Boolean=true):void{
this.reversed = true;
if (_arg1){
this.paused = false;
} else {
if (this.gc){
this.setEnabled(true, false);
};
};
}
public function set paused(_arg1:Boolean):void{
if (((!((_arg1 == this.cachedPaused))) && (this.timeline))){
if (_arg1){
_pauseTime = this.timeline.rawTime;
} else {
this.cachedStartTime = (this.cachedStartTime + (this.timeline.rawTime - _pauseTime));
_pauseTime = NaN;
setDirtyCache(false);
};
this.cachedPaused = _arg1;
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
};
if (((!(_arg1)) && (this.gc))){
this.setTotalTime(this.cachedTotalTime, false);
this.setEnabled(true, false);
};
}
public function kill():void{
setEnabled(false, false);
}
public function set totalTime(_arg1:Number):void{
setTotalTime(_arg1, false);
}
public function get currentTime():Number{
return (this.cachedTime);
}
protected function setTotalTime(_arg1:Number, _arg2:Boolean=false):void{
var _local3:Number;
var _local4:Number;
if (this.timeline){
_local3 = (((_pauseTime) || ((_pauseTime == 0)))) ? _pauseTime : this.timeline.cachedTotalTime;
if (this.cachedReversed){
_local4 = (this.cacheIsDirty) ? this.totalDuration : this.cachedTotalDuration;
this.cachedStartTime = (_local3 - ((_local4 - _arg1) / this.cachedTimeScale));
} else {
this.cachedStartTime = (_local3 - (_arg1 / this.cachedTimeScale));
};
if (!this.timeline.cacheIsDirty){
setDirtyCache(false);
};
if (this.cachedTotalTime != _arg1){
renderTime(_arg1, _arg2, false);
};
};
}
public function pause():void{
this.paused = true;
}
public function set totalDuration(_arg1:Number):void{
this.duration = _arg1;
}
public function get totalDuration():Number{
return (this.cachedTotalDuration);
}
public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
if (_arg1){
this.active = Boolean(((((!(this.cachedPaused)) && ((this.cachedTotalTime > 0)))) && ((this.cachedTotalTime < this.cachedTotalDuration))));
if (((!(_arg2)) && (this.gc))){
this.timeline.addChild(this);
};
} else {
this.active = false;
if (!_arg2){
this.timeline.remove(this, true);
};
};
this.gc = !(_arg1);
return (false);
}
}
}//package com.greensock.core
Section 4
//Circ (com.greensock.easing.Circ)
package com.greensock.easing {
public class Circ {
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = ((_arg1 / _arg4) - 1);
return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
}
public static function easeIn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
}
public static function easeInOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / (_arg4 * 0.5));
if (_arg1 < 1){
return ((((-(_arg3) * 0.5) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
};
_arg1 = (_arg1 - 2);
return ((((_arg3 * 0.5) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
}
}
}//package com.greensock.easing
Section 5
//TweenLite (com.greensock.TweenLite)
package com.greensock {
import flash.events.*;
import flash.display.*;
import com.greensock.core.*;
import flash.utils.*;
import com.greensock.plugins.*;
public class TweenLite extends TweenCore {
protected var _hasPlugins:Boolean;
public var propTweenLookup:Object;
public var cachedPT1:PropTween;
protected var _overwrite:uint;
protected var _ease:Function;
public var target;
public var ratio:Number;// = 0
protected var _overwrittenProps:Object;
protected var _notifyPluginsOfEnabled:Boolean;
public static const version:Number = 11.133;
public static var rootTimeline:SimpleTimeline;
public static var fastEaseLookup:Dictionary = new Dictionary(false);
public static var onPluginEvent:Function;
public static var rootFramesTimeline:SimpleTimeline;
public static var defaultEase:Function = TweenLite.easeOut;
public static var plugins:Object = {};
public static var masterList:Dictionary = new Dictionary(false);
public static var overwriteManager:Object;
public static var rootFrame:Number;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _shape:Shape = new Shape();
protected static var _reservedProps:Object = {ease:1, delay:1, overwrite:1, onComplete:1, onCompleteParams:1, useFrames:1, runBackwards:1, startAt:1, onUpdate:1, onUpdateParams:1, roundProps:1, onStart:1, onStartParams:1, onReverseComplete:1, onReverseCompleteParams:1, onRepeat:1, onRepeatParams:1, proxiedEase:1, easeParams:1, yoyo:1, onCompleteListener:1, onUpdateListener:1, onStartListener:1, onReverseCompleteListener:1, onRepeatListener:1, orientToBezier:1, timeScale:1, immediateRender:1, repeat:1, repeatDelay:1, timeline:1, data:1, paused:1};
public function TweenLite(_arg1, _arg2:Number, _arg3:Object){
var _local5:TweenLite;
super(_arg2, _arg3);
this.target = _arg1;
if ((((this.target is TweenCore)) && (("timeScale" in this.vars)))){
this.cachedTimeScale = 1;
};
propTweenLookup = {};
_ease = defaultEase;
_overwrite = (((!((Number(_arg3.overwrite) > -1))) || (((!(overwriteManager.enabled)) && ((_arg3.overwrite > 1)))))) ? overwriteManager.mode : int(_arg3.overwrite);
var _local4:Array = masterList[_arg1];
if (!_local4){
masterList[_arg1] = [this];
} else {
if (_overwrite == 1){
for each (_local5 in _local4) {
if (!_local5.gc){
_local5.setEnabled(false, false);
};
};
masterList[_arg1] = [this];
} else {
_local4[_local4.length] = this;
};
};
if (((this.active) || (this.vars.immediateRender))){
renderTime(0, false, true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
override public function renderTime(_arg1:Number, _arg2:Boolean=false, _arg3:Boolean=false):void{
var _local4:Boolean;
var _local5:Number = this.cachedTime;
if (_arg1 >= this.cachedDuration){
this.cachedTotalTime = (this.cachedTime = this.cachedDuration);
this.ratio = 1;
_local4 = true;
if (this.cachedDuration == 0){
if ((((((_arg1 == 0)) || ((_rawPrevTime < 0)))) && (!((_rawPrevTime == _arg1))))){
_arg3 = true;
};
_rawPrevTime = _arg1;
};
} else {
if (_arg1 <= 0){
this.cachedTotalTime = (this.cachedTime = (this.ratio = 0));
if (_arg1 < 0){
this.active = false;
if (this.cachedDuration == 0){
if (_rawPrevTime > 0){
_arg3 = true;
_local4 = true;
};
_rawPrevTime = _arg1;
};
};
if (((this.cachedReversed) && (!((_local5 == 0))))){
_local4 = true;
};
} else {
this.cachedTotalTime = (this.cachedTime = _arg1);
this.ratio = _ease(_arg1, 0, 1, this.cachedDuration);
};
};
if ((((this.cachedTime == _local5)) && (!(_arg3)))){
return;
};
if (!this.initted){
init();
if (((!(_local4)) && (this.cachedTime))){
this.ratio = _ease(this.cachedTime, 0, 1, this.cachedDuration);
};
};
if (((!(this.active)) && (!(this.cachedPaused)))){
this.active = true;
};
if ((((((((_local5 == 0)) && (this.vars.onStart))) && (!((this.cachedTime == 0))))) && (!(_arg2)))){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
var _local6:PropTween = this.cachedPT1;
while (_local6) {
_local6.target[_local6.property] = (_local6.start + (this.ratio * _local6.change));
_local6 = _local6.nextNode;
};
if (((_hasUpdate) && (!(_arg2)))){
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
};
if (_local4){
if (((_hasPlugins) && (this.cachedPT1))){
onPluginEvent("onComplete", this);
};
complete(true, _arg2);
};
}
override public function setEnabled(_arg1:Boolean, _arg2:Boolean=false):Boolean{
var _local3:Array;
if (_arg1){
_local3 = TweenLite.masterList[this.target];
if (!_local3){
TweenLite.masterList[this.target] = [this];
} else {
_local3[_local3.length] = this;
};
};
super.setEnabled(_arg1, _arg2);
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
return (onPluginEvent((_arg1) ? "onEnable" : "onDisable", this));
};
return (false);
}
protected function init():void{
var _local1:String;
var _local2:int;
var _local3:*;
var _local4:Boolean;
var _local5:Array;
var _local6:PropTween;
if (typeof(this.vars.ease) == "function"){
_ease = this.vars.ease;
};
if (this.vars.easeParams){
this.vars.proxiedEase = _ease;
_ease = easeProxy;
};
this.cachedPT1 = null;
this.propTweenLookup = {};
for (_local1 in this.vars) {
if ((((_local1 in _reservedProps)) && (!((((_local1 == "timeScale")) && ((this.target is TweenCore))))))){
} else {
if ((((_local1 in plugins)) && (new ((plugins[_local1] as Class)).onInitTween(this.target, this.vars[_local1], this)))){
this.cachedPT1 = new PropTween(_local3, "changeFactor", 0, 1, ((_local3.overwriteProps.length)==1) ? _local3.overwriteProps[0] : "_MULTIPLE_", true, this.cachedPT1);
if (this.cachedPT1.name == "_MULTIPLE_"){
_local2 = _local3.overwriteProps.length;
while (_local2--) {
this.propTweenLookup[_local3.overwriteProps[_local2]] = this.cachedPT1;
};
} else {
this.propTweenLookup[this.cachedPT1.name] = this.cachedPT1;
};
if (_local3.priority){
this.cachedPT1.priority = _local3.priority;
_local4 = true;
};
if (((_local3.onDisable) || (_local3.onEnable))){
_notifyPluginsOfEnabled = true;
};
_hasPlugins = true;
} else {
this.cachedPT1 = new PropTween(this.target, _local1, Number(this.target[_local1]), ((typeof(this.vars[_local1]))=="number") ? (Number(this.vars[_local1]) - this.target[_local1]) : Number(this.vars[_local1]), _local1, false, this.cachedPT1);
this.propTweenLookup[_local1] = this.cachedPT1;
};
};
};
if (_local4){
onPluginEvent("onInit", this);
};
if (this.vars.runBackwards){
_local6 = this.cachedPT1;
while (_local6) {
_local6.start = (_local6.start + _local6.change);
_local6.change = -(_local6.change);
_local6 = _local6.nextNode;
};
};
_hasUpdate = Boolean(!((this.vars.onUpdate == null)));
if (_overwrittenProps){
killVars(_overwrittenProps);
if (this.cachedPT1 == null){
this.setEnabled(false, false);
};
};
if ((((((((_overwrite > 1)) && (this.cachedPT1))) && (masterList[this.target]))) && ((_local5.length > 1)))){
if (overwriteManager.manageOverwrites(this, this.propTweenLookup, _local5, _overwrite)){
init();
};
};
this.initted = true;
}
public function killVars(_arg1:Object, _arg2:Boolean=true):Boolean{
var _local3:String;
var _local4:PropTween;
var _local5:Boolean;
if (_overwrittenProps == null){
_overwrittenProps = {};
};
for (_local3 in _arg1) {
if ((_local3 in propTweenLookup)){
_local4 = propTweenLookup[_local3];
if (((_local4.isPlugin) && ((_local4.name == "_MULTIPLE_")))){
_local4.target.killProps(_arg1);
if (_local4.target.overwriteProps.length == 0){
_local4.name = "";
};
};
if (_local4.name != "_MULTIPLE_"){
if (_local4.nextNode){
_local4.nextNode.prevNode = _local4.prevNode;
};
if (_local4.prevNode){
_local4.prevNode.nextNode = _local4.nextNode;
} else {
if (this.cachedPT1 == _local4){
this.cachedPT1 = _local4.nextNode;
};
};
if (((_local4.isPlugin) && (_local4.target.onDisable))){
_local4.target.onDisable();
if (_local4.target.activeDisable){
_local5 = true;
};
};
delete propTweenLookup[_local3];
};
};
if (_arg2){
_overwrittenProps[_local3] = 1;
};
};
return (_local5);
}
override public function invalidate():void{
if (((_notifyPluginsOfEnabled) && (this.cachedPT1))){
onPluginEvent("onDisable", this);
};
this.cachedPT1 = null;
_overwrittenProps = null;
_hasUpdate = (this.initted = (this.active = (_notifyPluginsOfEnabled = false)));
this.propTweenLookup = {};
}
public static function initClass():void{
rootFrame = 0;
rootTimeline = new SimpleTimeline(null);
rootFramesTimeline = new SimpleTimeline(null);
rootTimeline.cachedStartTime = (getTimer() * 0.001);
rootFramesTimeline.cachedStartTime = rootFrame;
rootTimeline.autoRemoveChildren = true;
rootFramesTimeline.autoRemoveChildren = true;
_shape.addEventListener(Event.ENTER_FRAME, updateAll, false, 0, true);
if (overwriteManager == null){
overwriteManager = {mode:1, enabled:false};
};
}
public static function killTweensOf(_arg1:Object, _arg2:Boolean=false):void{
var _local3:Array;
var _local4:int;
if ((_arg1 in masterList)){
_local3 = masterList[_arg1];
_local4 = _local3.length;
while (_local4--) {
if (!TweenLite(_local3[_local4]).gc){
if (_arg2){
TweenLite(_local3[_local4]).complete(false, false);
} else {
TweenLite(_local3[_local4]).setEnabled(false, false);
};
};
};
delete masterList[_arg1];
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
if (!("immediateRender" in _arg3)){
_arg3.immediateRender = true;
};
return (new TweenLite(_arg1, _arg2, _arg3));
}
protected static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (1 - (_arg1 / _arg4));
return ((1 - (_arg1 * _arg1)));
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4:Boolean=false):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, immediateRender:false, useFrames:_arg4, overwrite:0}));
}
protected static function updateAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:Object;
var _local4:Array;
var _local5:int;
rootTimeline.renderTime((((getTimer() * 0.001) - rootTimeline.cachedStartTime) * rootTimeline.cachedTimeScale), false, false);
rootFrame++;
rootFramesTimeline.renderTime(((rootFrame - rootFramesTimeline.cachedStartTime) * rootFramesTimeline.cachedTimeScale), false, false);
if (!(rootFrame % 60)){
_local2 = masterList;
for (_local3 in _local2) {
_local4 = _local2[_local3];
_local5 = _local4.length;
while (_local5--) {
if (TweenLite(_local4[_local5]).gc){
_local4.splice(_local5, 1);
};
};
if (_local4.length == 0){
delete _local2[_local3];
};
};
};
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package com.greensock
Section 6
//Collision (com.hardcircle.Collision)
package com.hardcircle {
import flash.display.*;
import flash.geom.*;
public class Collision {
public function isColliding(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Boolean{
var _local4:Rectangle = getCollision(_arg1, _arg2, _arg3);
if (((!((_local4 == null))) && ((_local4.size.length > 0)))){
return (true);
};
return (false);
}
private function getAlphaMap(_arg1:DisplayObject, _arg2:Rectangle, _arg3:uint, _arg4:Rectangle):BitmapData{
var _local5:BitmapData = new BitmapData(_arg2.width, _arg2.height, true, 0);
var _local6:Matrix = new Matrix();
var _local7:Number = (_arg1.x - _arg4.x);
var _local8:Number = (_arg1.y - _arg4.y);
var _local9:Number = ((_arg4.x + _local7) - _arg2.x);
var _local10:Number = ((_arg4.y + _local8) - _arg2.y);
_local6.translate(_local9, _local10);
_local5.draw(_arg1, _local6);
var _local11:BitmapData = new BitmapData(_arg2.width, _arg2.height, false, 0);
_local11.copyChannel(_local5, _local5.rect, new Point(0, 0), BitmapDataChannel.ALPHA, _arg3);
return (_local11);
}
public function getCollision(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Rectangle{
var _local4:Rectangle;
var _local5:DisplayObjectContainer;
var _local6:Rectangle;
var _local7:Rectangle;
var _local8:Boolean;
var _local9:Rectangle;
var _local10:BitmapData;
var _local11:BitmapData;
var _local12:uint;
var _local13:Number;
if (_arg1.parent == _arg2.parent){
_local5 = _arg1.parent;
_local6 = _arg1.getBounds(_local5);
_local7 = _arg2.getBounds(_local5);
_local8 = _local6.intersects(_local7);
if (_local8){
_local9 = _local6.union(_local7);
_local10 = getAlphaMap(_arg1, _local9, BitmapDataChannel.RED, _local6);
_local11 = getAlphaMap(_arg2, _local9, BitmapDataChannel.GREEN, _local7);
_local10.draw(_local11, new Matrix(), new ColorTransform(), BlendMode.LIGHTEN);
if (_arg3 > 1){
_arg3 = 1;
};
if (_arg3 < 0){
_arg3 = 0;
};
if (_arg3 == 0){
_local12 = 65792;
} else {
_local13 = Math.round((_arg3 * 0xFF));
_local12 = (((_local13 << 16) | (_local13 << 8)) | 0);
};
_local4 = _local10.getColorBoundsRect(_local12, _local12);
_local10.getColorBoundsRect(_local12, _local12).x = (_local4.x + _local9.x);
_local4.y = (_local4.y + _local9.y);
return (_local4);
};
};
return (_local4);
}
public function getCollisionPoint(_arg1:DisplayObject, _arg2:DisplayObject, _arg3:Number=0):Point{
var _local4:Point;
var _local6:Number;
var _local7:Number;
var _local5:Rectangle = getCollision(_arg1, _arg2, _arg3);
if (((!((_local5 == null))) && ((_local5.size.length > 0)))){
_local6 = ((_local5.left + _local5.right) / 2);
_local7 = ((_local5.top + _local5.bottom) / 2);
_local4 = new Point(_local6, _local7);
};
return (_local4);
}
}
}//package com.hardcircle
Section 7
//KeyObject (com.hardcircle.KeyObject)
package com.hardcircle {
public class KeyObject {
public static const KEY_LEFT:uint = 37;
public static const KEY_ESC:uint = 27;
public static const KEY_Space:uint = 32;
public static const KEY_UP:uint = 38;
public static const KEY_1:uint = 49;
public static const KEY_2:uint = 50;
public static const KEY_3:uint = 51;
public static const KEY_4:uint = 52;
public static const KEY_5:uint = 53;
public static const KEY_DOWN:uint = 40;
public static const KEY_A:uint = 65;
public static const KEY_D:uint = 68;
public static const KEY_J:uint = 74;
public static const KEY_K:uint = 75;
public static const KEY_L:uint = 76;
public static const KEY_Q:uint = 81;
public static const KEY_R:uint = 82;
public static const KEY_S:uint = 83;
public static const KEY_Z:uint = 90;
public static const KEY_SHIFT:uint = 16;
public static const KEY_W:uint = 87;
public static const KEY_RIGHT:uint = 39;
public static var DOWN_W:Boolean;
public static var DOWN_Shift:Boolean;
public static var DOWN_Space:Boolean;
public static var DOWN_Right:Boolean;
public static var DOWN_Left:Boolean;
public static var DOWN_Mouse:Boolean;
public static var DOWN_ESC:Boolean;
public static var DOWN_Down:Boolean;
public static var DOWN_1:Boolean;
public static var DOWN_2:Boolean;
public static var DOWN_3:Boolean;
public static var DOWN_4:Boolean;
public static var DOWN_5:Boolean;
public static var DOWN_A:Boolean;
public static var DOWN_D:Boolean;
public static var DOWN_J:Boolean;
public static var DOWN_K:Boolean;
public static var DOWN_L:Boolean;
public static var DOWN_Q:Boolean;
public static var DOWN_R:Boolean;
public static var DOWN_S:Boolean;
public static var DOWN_Up:Boolean;
public static var DOWN_Z:Boolean;
public static function initAll(){
DOWN_1 = false;
DOWN_2 = false;
DOWN_3 = false;
DOWN_4 = false;
DOWN_5 = false;
DOWN_A = false;
DOWN_D = false;
DOWN_J = false;
DOWN_K = false;
DOWN_L = false;
DOWN_Q = false;
DOWN_R = false;
DOWN_S = false;
DOWN_W = false;
DOWN_Z = false;
DOWN_Space = false;
DOWN_ESC = false;
DOWN_Mouse = false;
DOWN_Up = false;
DOWN_Right = false;
DOWN_Left = false;
DOWN_Down = false;
DOWN_Shift = false;
}
}
}//package com.hardcircle
Section 8
//SoundManager (com.hardcircle.SoundManager)
package com.hardcircle {
import flash.events.*;
import flash.utils.*;
import flash.media.*;
public class SoundManager {
private var _sounds:Array;
private var _soundsDict:Dictionary;
private static var NumSounds:int = 0;
private static var disableSounds:Boolean = false;
private static var MaxNumSound:int = 10;
private static var _instance:SoundManager;
private static var mutedAllSounds:Boolean = false;
private static var _allowInstance:Boolean;
public function SoundManager(){
this._soundsDict = new Dictionary(true);
this._sounds = new Array();
if (!SoundManager._allowInstance){
throw (new Error("Error:Only 1 instance of SoundManager necessary"));
};
}
public function get soundsDisabled():Boolean{
return (disableSounds);
}
public function toggleEnableSounds():void{
disableSounds = !(disableSounds);
if (disableSounds){
disableSound();
} else {
enableSound();
};
}
public function stopAllSounds(_arg1:Boolean=true):void{
var _local3:String;
NumSounds = 0;
var _local2:int;
while (_local2 < this._sounds.length) {
_local3 = this._sounds[_local2].name;
if (_arg1){
if (!this._soundsDict[_local3].paused){
this._soundsDict[_local3].pausedByAll = true;
this.stopSound(_local3);
};
} else {
this.stopSound(_local3);
};
_local2++;
};
}
public function muteAllSounds():void{
var _local2:String;
mutedAllSounds = true;
var _local1:int;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
this.setSoundVolume(_local2, 0);
_local1++;
};
}
public function SoundLimit(_arg1:uint):void{
MaxNumSound = _arg1;
}
public function disableSound():void{
disableSounds = true;
muteAllSounds();
}
public function enableSound():void{
disableSounds = false;
unmuteAllSounds();
}
public function stopSound(_arg1:String):void{
var _local2:Object = this._soundsDict[_arg1];
_local2.paused = true;
_local2.channel.stop();
_local2.position = _local2.channel.position;
}
public function setSoundVolume(_arg1:String, _arg2:Number):void{
var _local3:Object = this._soundsDict[_arg1];
var _local4:SoundTransform = _local3.channel.soundTransform;
_local4.volume = _arg2;
_local3.channel.soundTransform = _local4;
}
private function FreeSoundChannel(_arg1:Event):void{
NumSounds--;
}
public function addLibrarySound(_arg1, _arg2:String):Boolean{
var _local3:int;
while (_local3 < this._sounds.length) {
if (this._sounds[_local3].name == _arg2){
return (false);
};
_local3++;
};
var _local4:Object = new Object();
var _local5:Sound = new (_arg1);
_local4.name = _arg2;
_local4.sound = _local5;
_local4.channel = new SoundChannel();
_local4.position = 0;
_local4.paused = true;
_local4.volume = 1;
_local4.startTime = 0;
_local4.loops = 0;
_local4.pausedByAll = false;
this._soundsDict[_arg2] = _local4;
this._sounds.push(_local4);
return (true);
}
public function getSoundObject(_arg1:String):Object{
return (this._soundsDict[_arg1]);
}
public function unmuteAllSounds():void{
var _local2:String;
var _local3:Object;
var _local4:SoundTransform;
mutedAllSounds = false;
var _local1:int;
while (_local1 < this._sounds.length) {
_local2 = this._sounds[_local1].name;
_local3 = this._soundsDict[_local2];
_local4 = _local3.channel.soundTransform;
_local4.volume = _local3.volume;
_local3.channel.soundTransform = _local4;
_local1++;
};
}
public function playSound(_arg1:String, _arg2:Number=1, _arg3:Number=0, _arg4:int=0):void{
if ((((NumSounds >= MaxNumSound)) || (disableSounds))){
return;
};
NumSounds++;
var _local5:Object = this._soundsDict[_arg1];
_local5.volume = _arg2;
_local5.startTime = _arg3;
_local5.loops = _arg4;
if (_local5.paused){
_local5.channel = _local5.sound.play(_local5.position, _local5.loops, new SoundTransform(_local5.volume));
} else {
_local5.channel = _local5.sound.play(_arg3, _local5.loops, new SoundTransform(_local5.volume));
};
if (mutedAllSounds){
this.setSoundVolume(_arg1, 0);
};
_local5.paused = false;
_local5.channel.addEventListener(Event.SOUND_COMPLETE, FreeSoundChannel);
}
public function toString():String{
return (getQualifiedClassName(this));
}
public static function getInstance():SoundManager{
if (SoundManager._instance == null){
SoundManager._allowInstance = true;
SoundManager._instance = new (SoundManager);
SoundManager._allowInstance = false;
};
return (SoundManager._instance);
}
}
}//package com.hardcircle
Section 9
//ScoreService (com.spilgames.api.ScoreService)
package com.spilgames.api {
public class ScoreService {
public static function submitScore(_arg1:int, _arg2:Function=null):int{
return (SpilGamesServices.getInstance().send("Score", "submitScore", _arg2, {score:_arg1, userName:User.getUserName(), userHash:User.getUserHash()}));
}
}
}//package com.spilgames.api
Section 10
//SpilGamesServices (com.spilgames.api.SpilGamesServices)
package com.spilgames.api {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.net.*;
import flash.system.*;
public class SpilGamesServices extends MovieClip {
private const DEFAULT_CONNECTION_LOCATION:String = "http://www8.agame.com/games/flash/services/ServicesConnection.swf";
private var previousFrameTime:Number;
private var _connected:Boolean;// = false
private var _numConnectionLoadTries:uint;// = 0
private var _request:URLRequest;
private var currentDelay:Number;// = 0
private var _connecting:Boolean;// = false
private var _loader:Loader;
private var _servicesConnection;// = null
private var _alwaysInFront:Boolean;// = false
public static const INVALID_ID:int = -1;
public static const CONFIGURATION_FAILED:String = "configurationFailure";
private static const MAX_CONNECTION_LOAD_RETRIES:uint = 99;
public static const INVALID_DOMAIN:String = "invalidDomain";
private static var _instance:SpilGamesServices = null;
public function SpilGamesServices(_arg1:Private=null){
if (!_arg1){
throw (new Error("Cannot instantiate this class, use SpilGamesServices.getInstance"));
};
}
private function handleRemovedFromStage(_arg1:Event):void{
trace("WARNING: please do not remove SpilGamesServices from the stage");
}
private function handleLoadComplete(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_servicesConnection = LoaderInfo(_arg1.target).content;
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
addChild(_servicesConnection);
}
public function send(_arg1:String, _arg2:String, _arg3:Function, _arg4:Object=null):int{
if (isReady()){
return (_servicesConnection.send(_arg1, _arg2, _arg3, _arg4));
};
return (INVALID_ID);
}
private function handleServicesFailed(_arg1:ErrorEvent):void{
_servicesConnection.addEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.addEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.addEventListener("serviceError", handleServiceError);
_connecting = false;
if (hasEventListener("servicesFailed")){
dispatchEvent(new ErrorEvent("servicesFailed", false, false, _arg1.text));
};
}
public function get version():String{
return ("1.1");
}
public function isReady():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isReady())));
}
private function handleIOError(_arg1:IOErrorEvent):void{
_numConnectionLoadTries++;
if (_numConnectionLoadTries > MAX_CONNECTION_LOAD_RETRIES){
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connecting = false;
trace("ERROR: SpilGamesServices failed to load the connection object");
if (hasEventListener(_arg1.type)){
dispatchEvent(_arg1);
};
} else {
trace(("WARN: SpilGamesServices failed to load the connection object, retry #" + _numConnectionLoadTries));
previousFrameTime = getTimer();
addEventListener(Event.ENTER_FRAME, updateConnectionRetry);
};
}
public function disconnect():void{
if (_servicesConnection){
_servicesConnection.removeEventListener(Event.COMPLETE, handleServicesReady);
_servicesConnection.removeEventListener(ErrorEvent.ERROR, handleServicesFailed);
_servicesConnection.removeEventListener("serviceError", handleServiceError);
if (_connected){
_servicesConnection.disconnect();
};
removeChild(_servicesConnection);
};
_servicesConnection = null;
if (_loader){
try {
_loader.close();
} catch(e:Error) {
} finally {
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
};
_loader = null;
};
removeEventListener(Event.ENTER_FRAME, bringToFront);
removeEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (parent){
parent.removeChild(this);
};
_connected = (_connecting = false);
}
private function handleServicesReady(_arg1:Event):void{
_loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_connected = true;
_connecting = false;
dispatchEvent(new Event("servicesReady"));
}
public function get connection(){
return (_servicesConnection);
}
private function updateConnectionRetry(_arg1:Event):void{
var _local2:Number = getTimer();
var _local3:Number = ((_local2 - previousFrameTime) / 1000);
currentDelay = (currentDelay + _local3);
if (currentDelay >= 2){
trace(("WARN: SpilGamesServices trying to reconnect after: " + currentDelay));
_loader.load(_request);
removeEventListener(Event.ENTER_FRAME, updateConnectionRetry);
currentDelay = 0;
};
previousFrameTime = _local2;
}
private function handleServiceError(_arg1:Event):void{
var _local2:String;
if (hasEventListener("serviceError")){
_local2 = "";
if ((_arg1 is ErrorEvent)){
_local2 = ErrorEvent(_arg1).text;
} else {
_local2 = _arg1.toString();
};
dispatchEvent(new ErrorEvent("serviceError", false, false, _local2));
};
}
public function isServiceAvailable(_arg1:String):Boolean{
return (((isReady()) && (_servicesConnection.isServiceAvailable(_arg1))));
}
public function getSiteID():int{
if (_servicesConnection != null){
return (_servicesConnection.getSiteID());
};
return (INVALID_ID);
}
public function getChannelID():int{
if (_servicesConnection != null){
return (_servicesConnection.getChannelID());
};
return (INVALID_ID);
}
public function set alwaysInFront(_arg1:Boolean):void{
if (_alwaysInFront != _arg1){
_alwaysInFront = _arg1;
if (_alwaysInFront){
addEventListener(Event.ENTER_FRAME, bringToFront);
} else {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public function getItemID():int{
if (_servicesConnection != null){
return (_servicesConnection.getItemID());
};
return (INVALID_ID);
}
public function allowDomain(_arg1:String):void{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}
public function connect(_arg1:DisplayObjectContainer, ... _args):void{
var _local3:String;
var _local4:URLVariables;
var _local5:Date;
if (((!(_connecting)) && (!(_connected)))){
if (!_arg1.stage){
throw (new Error("The given clip must be present in the display list (added to stage)"));
};
_connecting = true;
_arg1.stage.addChild(this);
addEventListener(Event.REMOVED_FROM_STAGE, handleRemovedFromStage);
if (((root.loaderInfo.parameters["servicesLoc"]) && ((root.loaderInfo.parameters["servicesLoc"].length > 0)))){
_local3 = root.loaderInfo.parameters["servicesLoc"];
_request = new URLRequest(_local3);
} else {
_local3 = DEFAULT_CONNECTION_LOCATION;
_local4 = new URLVariables();
_local5 = new Date();
_local4.nocache = ((((_local5.fullYear * 12) + (_local5.month + 1)) * 31) + _local5.day);
_request = new URLRequest(_local3);
_request.data = _local4;
};
allowDomain(_local3);
_loader = new Loader();
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleLoadComplete);
_loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleIOError);
_loader.load(_request);
};
}
public function get alwaysInFront():Boolean{
return (_alwaysInFront);
}
public function get connecting():Boolean{
return (_connecting);
}
public function isDomainAllowed():Boolean{
return (((!((_servicesConnection == null))) && (_servicesConnection.isDomainValid())));
}
public function bringToFront(_arg1:Event=null):void{
var e = _arg1;
if (parent){
try {
parent.setChildIndex(this, (parent.numChildren - 1));
} catch(e:Error) {
removeEventListener(Event.ENTER_FRAME, bringToFront);
};
};
}
public static function getInstance():SpilGamesServices{
if (!_instance){
_instance = new SpilGamesServices(new Private());
};
return (_instance);
}
}
}//package com.spilgames.api
class Private {
private function Private(){
}
}
Section 11
//User (com.spilgames.api.User)
package com.spilgames.api {
import flash.display.*;
public class User {
public static function getUserName():String{
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserName());
};
return ("");
}
public static function isGuest():Boolean{
var _local2:DisplayObject;
var _local3:Object;
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.isGuest());
};
_local2 = SpilGamesServices.getInstance().root;
if (_local2.loaderInfo != null){
_local3 = _local2.loaderInfo.parameters;
return (((((((!(_local3.username)) || ((_local3.username == "")))) || (!(_local3.hash)))) || ((_local3.hash == ""))));
};
return (false);
}
public static function getUserHash():String{
var _local1:* = SpilGamesServices.getInstance().connection;
if (_local1 != null){
return (_local1.getUserHash());
};
return ("");
}
}
}//package com.spilgames.api
Section 12
//Explosion (com.SR2.VFX.Explosion)
package com.SR2.VFX {
import flash.events.*;
import com.SR2.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class Explosion extends Sprite {
private var yOffet:int;
private var xOffet:int;
static const visualEffect = vfx_explosion;
private static var displayMgr:DisplayManager = new DisplayManager();
public function Explosion(_arg1:Point, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
this.x = _arg1.x;
this.y = _arg1.y;
xOffet = _arg2;
yOffet = _arg3;
var _local6:Timer = new Timer(_arg5, _arg4);
_local6.addEventListener(TimerEvent.TIMER, addExplosion);
_local6.addEventListener(TimerEvent.TIMER_COMPLETE, cleanup);
_local6.start();
displayMgr.addVisualFX(this);
}
private function addExplosion(_arg1:TimerEvent):void{
var _local2:MovieClip = new visualEffect();
_local2.x = RandomRange(-(xOffet), xOffet);
_local2.y = -(RandomRange(0, yOffet));
_local2.scaleX = (_local2.scaleY = RandomRange(1, 2));
this.addChild(_local2);
}
private function cleanup(_arg1:TimerEvent):void{
var _local2:Timer = new Timer(1000, 1);
_local2.addEventListener(TimerEvent.TIMER_COMPLETE, removeMe);
_local2.start();
}
private function RandomRange(_arg1:Number, _arg2:Number){
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
private function removeMe(_arg1:TimerEvent):void{
displayMgr.removeObject(this, "vfx");
}
}
}//package com.SR2.VFX
Section 13
//Gib (com.SR2.VFX.Gib)
package com.SR2.VFX {
import flash.events.*;
import com.SR2.*;
import flash.display.*;
import flash.geom.*;
import flash.utils.*;
public class Gib extends Sprite {
private var yOffet:int;
private var xOffet:int;
private var speedHigh:int;
private var speedLow:int;
private var gibParticle:Class;
private var gibArray:Array;
private var launchDegree:int;
private static var displayMgr:DisplayManager = new DisplayManager();
public function Gib(_arg1:String, _arg2:Point, _arg3:int=1, _arg4:int=10, _arg5:int=0, _arg6:int=0, _arg7:int=360){
this.x = _arg2.x;
this.y = _arg2.y;
launchDegree = _arg7;
speedHigh = _arg4;
speedLow = _arg3;
xOffet = _arg5;
yOffet = _arg6;
gibArray = new Array();
gibParticle = (getDefinitionByName((_arg1 + "_gibs")) as Class);
createNewGib();
var _local8:Timer = new Timer(33, 50);
_local8.addEventListener(TimerEvent.TIMER, updateGibs);
_local8.addEventListener(TimerEvent.TIMER_COMPLETE, removeMe);
_local8.start();
displayMgr.addVisualFX(this);
}
private function updateGibs(_arg1:TimerEvent):void{
var _local2:int = (gibArray.length - 1);
while (_local2 > -1) {
gibArray[_local2].x = (gibArray[_local2].x + gibArray[_local2].dx);
gibArray[_local2].y = (gibArray[_local2].y + gibArray[_local2].dy);
gibArray[_local2].rotation = (gibArray[_local2].rotation + 6);
gibArray[_local2].dy = (gibArray[_local2].dy + 0.5);
_local2--;
};
}
private function RandomRange(_arg1:Number, _arg2:Number){
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
private function createNewGib():void{
var _local1:MovieClip = new gibParticle();
var _local2:int = _local1.totalFrames;
while (_local2 > 0) {
_local1 = new gibParticle();
_local1.gotoAndStop(_local2);
_local1.x = RandomRange(-(xOffet), xOffet);
_local1.y = RandomRange(-(yOffet), yOffet);
_local1.speed = RandomRange(speedLow, speedHigh);
_local1.rotation = RandomRange(0, launchDegree);
_local1.dx = (_local1.speed * Math.cos((((2 * Math.PI) * _local1.rotation) / 360)));
_local1.dy = (_local1.speed * Math.sin((((2 * Math.PI) * _local1.rotation) / 360)));
gibArray.push(_local1);
this.addChild(_local1);
_local2--;
};
}
private function removeMe(_arg1:TimerEvent):void{
displayMgr.removeObject(this, "vfx");
}
}
}//package com.SR2.VFX
Section 14
//Actor (com.SR2.Actor)
package com.SR2 {
import flash.display.*;
public class Actor extends Sprite {
private var _costume;
private var _immobile:Boolean;
private var _currentAnimState:String;
protected var _name:String;
private var _newAnimState:String;
public function get costume(){
return (_costume);
}
public function set costume(_arg1):void{
_costume = _arg1;
}
public function getName():String{
return (_name);
}
public function get immobile():Boolean{
return (_immobile);
}
public function get currentAnimState():String{
return (_currentAnimState);
}
public function set newAnimState(_arg1:String):void{
_newAnimState = _arg1;
}
public function set immobile(_arg1:Boolean):void{
_immobile = _arg1;
}
public static function update():void{
}
}
}//package com.SR2
Section 15
//AIManager (com.SR2.AIManager)
package com.SR2 {
import RoboCity.*;
import com.hardcircle.*;
import flash.geom.*;
import flash.utils.*;
import com.SR2.VFX.*;
public class AIManager {
private static var Player;
private static var weaponMgr:WeaponManager = new WeaponManager();
private static var itemMgr:ItemManager = new ItemManager();
private static var sndMgr:SoundManager;
private static var aiArray:Array;
private static var displayMgr:DisplayManager = new DisplayManager();
private static var _updated:Boolean = true;
public function AIManager(){
sndMgr = SoundManager.getInstance();
newArrays();
_updated = true;
}
private function RandomRange(_arg1:Number, _arg2:Number){
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
private function dropItem(_arg1:int):void{
var _local4:Item;
var _local2:HealthPickup = new HealthPickup();
var _local3:AmmoPickup = new AmmoPickup();
var _local5:Number = Math.ceil(RandomRange(0, 1000));
var _local6:Number = Math.ceil(RandomRange(0, 1000));
var _local7:int = (aiArray[_arg1].x - (_local3.width / 3));
if (_local7 < 140){
_local7 = 140;
};
if ((((DataManager.maxPlayerEnergy <= 10)) && ((_local5 < 200)))){
_local4 = new Item(_local3, _local7, (aiArray[_arg1].y - (_local3.height / 3)), "Ammo");
return;
};
if ((((DataManager.maxPlayerEnergy <= 13)) && ((_local5 < 100)))){
_local4 = new Item(_local3, _local7, (aiArray[_arg1].y - (_local3.height / 3)), "Ammo");
return;
};
if ((((DataManager.maxPlayerEnergy < 17)) && ((_local5 < 50)))){
_local4 = new Item(_local3, _local7, (aiArray[_arg1].y - (_local3.height / 3)), "Ammo");
return;
};
if ((((DataManager.maxPlayerHealth <= 10)) && ((_local6 < 200)))){
_local4 = new Item(_local2, _local7, (aiArray[_arg1].y - (_local2.height / 3)), "Health");
return;
};
if ((((DataManager.maxPlayerHealth <= 13)) && ((_local6 < 100)))){
_local4 = new Item(_local2, _local7, (aiArray[_arg1].y - (_local2.height / 3)), "Health");
return;
};
if ((((DataManager.maxPlayerHealth < 18)) && ((_local6 < 20)))){
_local4 = new Item(_local2, _local7, (aiArray[_arg1].y - (_local2.height / 3)), "Health");
return;
};
}
public function unpause():void{
var _local1:int = (aiArray.length - 1);
while (_local1 > -1) {
aiArray[_local1].costume.play();
_local1--;
};
}
private function forceDropItems(_arg1:int):void{
var _local3:Item;
var _local2:HealthPickup = new HealthPickup();
var _local4:int = (aiArray[_arg1].x - (_local2.width / 3));
if (_local4 < 140){
_local4 = 140;
};
_local3 = new Item(_local2, _local4, (aiArray[_arg1].y - (_local2.height / 3)), "Health");
}
public function update():void{
var _local2:Explosion;
var _local3:Gib;
var _local1:int = (aiArray.length - 1);
while (_local1 > -1) {
if ((((aiArray[_local1].health <= 0)) || ((aiArray[_local1].x < 125)))){
if (aiArray[_local1].x > 125){
DataManager.score = (DataManager.score + (((150 * DataManager.waveNumber) + (DataManager.waveNumber * 93)) - 93));
DataManager.enemiesKilled = (DataManager.enemiesKilled + 1);
if ((((((((((((((aiArray[_local1].costume is Enemy_01_Boss)) || ((aiArray[_local1].costume is Enemy_02_Boss)))) || ((aiArray[_local1].costume is Enemy_03_Boss)))) || ((aiArray[_local1].costume is Enemy_04_Boss)))) || ((aiArray[_local1].costume is Enemy_05_Boss)))) || ((aiArray[_local1].costume is Enemy_06_Boss)))) || ((aiArray[_local1].costume is Enemy_07_Boss)))){
forceDropItems(_local1);
} else {
dropItem(_local1);
};
} else {
if ((((aiArray[_local1].x <= 125)) && ((aiArray[_local1].x >= 0)))){
if ((aiArray[_local1].costume is Enemy_00)){
weaponMgr.fireSpecificWeapon("Enemy_00", aiArray[_local1].x, aiArray[_local1].y, 90);
} else {
if ((aiArray[_local1].costume is Enemy_08)){
weaponMgr.fireSpecificWeapon("Enemy_08", aiArray[_local1].x, aiArray[_local1].y, 90);
} else {
if ((aiArray[_local1].costume is Enemy_05)){
weaponMgr.fireSpecificWeapon("Enemy_05", aiArray[_local1].x, aiArray[_local1].y, 90);
} else {
if ((((((((((((((aiArray[_local1].costume is Enemy_01_Boss)) || ((aiArray[_local1].costume is Enemy_02_Boss)))) || ((aiArray[_local1].costume is Enemy_03_Boss)))) || ((aiArray[_local1].costume is Enemy_04_Boss)))) || ((aiArray[_local1].costume is Enemy_05_Boss)))) || ((aiArray[_local1].costume is Enemy_06_Boss)))) || ((aiArray[_local1].costume is Enemy_07_Boss)))){
DataManager.playerHealth = (DataManager.playerHealth + -5);
} else {
if (DataManager.waveNumber >= 25){
DataManager.playerHealth = (DataManager.playerHealth + -2);
} else {
DataManager.playerHealth = (DataManager.playerHealth + -1);
};
};
Player.gotoAndPlay("player_hit");
};
};
};
};
};
sndMgr.playSound("Destroy");
_local2 = new Explosion(new Point(aiArray[_local1].x, aiArray[_local1].y), ((aiArray[_local1].width / 3) * 2), ((aiArray[_local1].height / 4) * 3), 10, 30);
_local3 = new Gib(getQualifiedClassName(aiArray[_local1].costume), new Point(aiArray[_local1].x, aiArray[_local1].y), 15, 20, 0, 0, -180);
DataManager.enemiesKilledThisWave++;
aiArray[_local1].explode();
displayMgr.removeObject(aiArray[_local1], "fore");
aiArray.splice(_local1, 1);
break;
};
aiArray[_local1].Type.update(aiArray[_local1]);
_local1--;
};
}
public function newArrays():void{
var _local1:int;
if (((!((aiArray == null))) && ((aiArray.length > 0)))){
_local1 = (aiArray.length - 1);
while (_local1 > -1) {
displayMgr.removeObject(aiArray[_local1], "fore");
aiArray.splice(_local1, 1);
_local1--;
};
};
aiArray = new Array();
_updated = true;
}
public function pause():void{
var _local1:int = (aiArray.length - 1);
while (_local1 > -1) {
aiArray[_local1].costume.stop();
_local1--;
};
}
public static function addPlayer(_arg1):void{
Player = _arg1;
}
public static function get getAIArray():Array{
_updated = false;
return (aiArray);
}
public static function getPlayer(){
return (Player);
}
public static function addElement(_arg1:Enemy):void{
aiArray.push(_arg1);
displayMgr.addForegroundObject(_arg1);
}
public static function get updated():Boolean{
return (_updated);
}
}
}//package com.SR2
Section 16
//DataManager (com.SR2.DataManager)
package com.SR2 {
import flash.net.*;
public class DataManager {
public static var enemiesKilled:int;
public static var sfx:Boolean = true;
public static var playerEnergy:int;
public static var maxPlayerEnergy:int;
public static var waveSpawn:int;
public static var score:int;
public static var playerHealth:int;
public static var maxPlayerHealth:int;
public static var waveSpawnInterval:int;
public static var waveNumber:int;
public static var enemiesKilledThisWave:int;
public static var pause:Boolean = false;
public static function Load(_arg1:String):int{
var _local2:SharedObject = SharedObject.getLocal("hctest");
if (_local2.data[_arg1] == undefined){
return (0);
};
return (_local2.data[_arg1]);
}
public static function initAll():void{
playerHealth = 6;
maxPlayerEnergy = 6;
maxPlayerHealth = 6;
playerEnergy = 6;
waveNumber = 0;
waveSpawn = 3;
waveSpawnInterval = 1900;
score = 0;
enemiesKilled = 0;
enemiesKilledThisWave = 0;
}
public static function Save(_arg1:String, _arg2:int):void{
var _local3:SharedObject = SharedObject.getLocal("hctest");
_local3.data[_arg1] = _arg2;
_local3.flush();
}
}
}//package com.SR2
Section 17
//DisplayManager (com.SR2.DisplayManager)
package com.SR2 {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
public class DisplayManager {
private static var gameScreen:Sprite;
private static var gameContainer:Sprite;
private static var gamebg:GameBG;
private static var Interface:Sprite;
private static var vfx_layer:Sprite;
private static var gfx_fore_layer:Sprite;
private static var gfx_back_layer:Sprite;
public function removeObject(_arg1, _arg2:String):void{
var obj = _arg1;
var layer = _arg2;
try {
switch (layer){
case "vfx":
vfx_layer.removeChild(obj);
break;
case "fore":
gfx_fore_layer.removeChild(obj);
break;
case "back":
gfx_back_layer.removeChild(obj);
break;
};
} catch(e:Error) {
trace("Ohh well");
};
}
public function addForegroundObject(_arg1):void{
gfx_fore_layer.addChild(_arg1);
}
public function addVisualFX(_arg1):void{
vfx_layer.addChild(_arg1);
}
public function getGameScreen():Sprite{
return (gameScreen);
}
public function newGameScreen(_arg1=null):Sprite{
Interface = new Sprite();
gameScreen = new Sprite();
gameContainer = new Sprite();
vfx_layer = new Sprite();
gfx_back_layer = new Sprite();
gfx_fore_layer = new Sprite();
gamebg = new GameBG();
gameContainer.addChild(gamebg);
gameContainer.addChild(gfx_back_layer);
gameContainer.addChild(gfx_fore_layer);
gameContainer.addChild(vfx_layer);
gameContainer.mask = _arg1;
gameScreen.addChild(gameContainer);
gameScreen.addChild(Interface);
gameScreen.mask = _arg1;
return (gameScreen);
}
public function pause():void{
gamebg.conv.stop();
gamebg.mach.stop();
}
public function addInterface(_arg1):void{
Interface.addChild(_arg1);
}
public function shakeGameScreen(_arg1:int):void{
var resetScreen:Function;
var amt = _arg1;
resetScreen = function (_arg1:TimerEvent){
gameContainer.x = (gameContainer.x + amt);
gameContainer.y = (gameContainer.y - amt);
};
gameContainer.x = (gameContainer.x - amt);
gameContainer.y = (gameContainer.y + amt);
var t:Timer = new Timer(50, 1);
t.addEventListener(TimerEvent.TIMER_COMPLETE, resetScreen);
t.start();
}
public function unpause():void{
gamebg.conv.play();
gamebg.mach.play();
}
public function addBackgroundObject(_arg1):void{
gfx_back_layer.addChild(_arg1);
}
}
}//package com.SR2
Section 18
//ItemManager (com.SR2.ItemManager)
package com.SR2 {
import flash.events.*;
import RoboCity.*;
public class ItemManager {
private static var itemArray:Array;
private static var displayMgr:DisplayManager = new DisplayManager();
public static var _updated:Boolean = false;
public function update():void{
var i:int;
try {
i = (itemArray.length - 1);
while (i > -1) {
Item.update(itemArray[i]);
i = (i - 1);
};
} catch(e:Error) {
};
}
public function newArray():void{
itemArray = new Array();
_updated = true;
}
public static function get getArray():Array{
_updated = false;
return (itemArray);
}
public static function removeElement(_arg1):void{
var _local2:int = (itemArray.length - 1);
while (_local2 > -1) {
if (itemArray[_local2] == _arg1){
itemArray.splice(_local2, 1);
_arg1.decor.gotoAndPlay("On Hit Animation");
_updated = true;
return;
};
_local2--;
};
}
public static function addElement(_arg1, _arg2:String):void{
itemArray.push(_arg1);
displayMgr.addForegroundObject(_arg1);
_updated = true;
}
private static function giveHealth(_arg1:MouseEvent):void{
if (DataManager.maxPlayerHealth < 17){
DataManager.maxPlayerHealth = (DataManager.playerHealth = (DataManager.maxPlayerHealth + 1));
} else {
DataManager.maxPlayerHealth = (DataManager.playerHealth = 17);
trace("Filling Health");
};
ItemManager.removeElement(_arg1.currentTarget);
}
public static function get updated():Boolean{
return (_updated);
}
private static function giveAmmo(_arg1:MouseEvent):void{
if (DataManager.maxPlayerEnergy < 17){
DataManager.maxPlayerEnergy = (DataManager.playerEnergy = (DataManager.maxPlayerEnergy + 1));
} else {
DataManager.maxPlayerEnergy = (DataManager.playerEnergy = 17);
trace("Filling Ammo");
};
ItemManager.removeElement(_arg1.currentTarget);
}
}
}//package com.SR2
Section 19
//Projectile (com.SR2.Projectile)
package com.SR2 {
import flash.display.*;
import flash.geom.*;
public class Projectile extends Sprite {
private var decor;
private var dx:int;
private var dy:int;
public var Type:Class;
private var _kill:Boolean;
public function Projectile(_arg1, _arg2:int, _arg3:int, _arg4:int, _arg5:int){
Type = Projectile;
super();
decor = _arg1;
this.addChild(decor);
decor.rotation = _arg5;
this.x = (_arg2 + (_arg4 * Math.cos((((2 * Math.PI) * _arg5) / 360))));
this.y = (_arg3 + (_arg4 * Math.sin((((2 * Math.PI) * _arg5) / 360))));
dx = (_arg4 * Math.cos((((2 * Math.PI) * _arg5) / 360)));
dy = (_arg4 * Math.sin((((2 * Math.PI) * _arg5) / 360)));
ProjectileManager.addElement(this);
}
public function get costume(){
return (decor);
}
public function set killme(_arg1:Boolean):void{
_kill = _arg1;
}
public function get killme():Boolean{
return (_kill);
}
public function getPos():Point{
return (new Point(this.x, this.y));
}
public static function update(_arg1:Projectile):void{
_arg1.x = (_arg1.x + _arg1.dx);
_arg1.y = (_arg1.y + _arg1.dy);
}
}
}//package com.SR2
Section 20
//ProjectileManager (com.SR2.ProjectileManager)
package com.SR2 {
public class ProjectileManager {
private static var projectileArray:Array;
private static var displayMgr:DisplayManager = new DisplayManager();
private static var _updated:Boolean = true;
public function ProjectileManager(){
newArrays();
_updated = true;
}
public function update():void{
var _local1:int = (projectileArray.length - 1);
while (_local1 > -1) {
projectileArray[_local1].Type.update(projectileArray[_local1]);
if ((((((((projectileArray[_local1].x > 700)) || ((projectileArray[_local1].y < 0)))) || ((projectileArray[_local1].y > 400)))) || (projectileArray[_local1].killme))){
displayMgr.removeObject(projectileArray[_local1], "fore");
projectileArray.splice(_local1, 1);
_updated = true;
};
_local1--;
};
}
public function newArrays():void{
_updated = true;
projectileArray = new Array();
}
public function unpause():void{
var _local1:int = (projectileArray.length - 1);
while (_local1 > -1) {
projectileArray[_local1].costume.play();
_local1--;
};
}
public function pause():void{
var _local1:int = (projectileArray.length - 1);
while (_local1 > -1) {
projectileArray[_local1].costume.stop();
_local1--;
};
}
public static function get getProjectileArray():Array{
_updated = false;
return (projectileArray);
}
public static function addElement(_arg1:Projectile):void{
projectileArray.push(_arg1);
displayMgr.addForegroundObject(_arg1);
_updated = true;
}
public static function get updated():Boolean{
return (_updated);
}
}
}//package com.SR2
Section 21
//Weapon (com.SR2.Weapon)
package com.SR2 {
import flash.events.*;
import flash.utils.*;
public class Weapon {
private var reloadTime:int;
private var _speed:int;
public var rof:int;
private var _maxClip:int;
private var _soundFX:String;
private var _name:String;
private var _clip:int;
private var rofCoolDown:Boolean;
private var _reload:Boolean;
private var _ammoDeco;
private var rofTimer:Timer;
public function Weapon(_arg1:String, _arg2, _arg3:String, _arg4:int, _arg5:int, _arg6:int, _arg7:int){
_name = _arg1;
if (_name == "Cannon"){
_maxClip = (_clip = DataManager.maxPlayerEnergy);
} else {
_maxClip = (_clip = _arg4);
};
_speed = _arg5;
reloadTime = _arg6;
_ammoDeco = _arg2;
_soundFX = _arg3;
rof = _arg7;
}
public function get name():String{
return (_name);
}
public function get clip():int{
return (_clip);
}
public function get reload():Boolean{
return (_reload);
}
public function get maxClip():int{
return (_maxClip);
}
public function set clip(_arg1:int):void{
_clip = _arg1;
}
public function get soundFX():String{
return (_soundFX);
}
public function forceReload():void{
var _local1:Timer;
if (!_reload){
trace(("Reloading " + _name));
_local1 = new Timer(reloadTime, 1);
_local1.addEventListener(TimerEvent.TIMER_COMPLETE, reloadComplete);
_local1.start();
};
_reload = true;
}
private function canFire(_arg1:TimerEvent):void{
rofCoolDown = false;
}
private function reloadComplete(_arg1:TimerEvent):void{
trace(("Reloaded " + _name));
_reload = false;
_clip = DataManager.maxPlayerEnergy;
if (_name == "Cannon"){
DataManager.playerEnergy = _clip;
};
}
public function fire(_arg1:int, _arg2:int, _arg3:int){
if (!rofCoolDown){
_clip--;
if (_clip <= 1){
forceReload();
};
if (_name == "Cannon"){
DataManager.playerEnergy = _clip;
};
rofTimer = new Timer(rof, 1);
rofCoolDown = true;
rofTimer.addEventListener(TimerEvent.TIMER_COMPLETE, canFire);
rofTimer.start();
return (new Projectile(new _ammoDeco(), _arg1, _arg2, _speed, _arg3));
};
}
public function set maxClip(_arg1:int):void{
_maxClip = _arg1;
}
public function set ammoDeco(_arg1):void{
_ammoDeco = _arg1;
}
}
}//package com.SR2
Section 22
//WeaponManager (com.SR2.WeaponManager)
package com.SR2 {
import com.hardcircle.*;
import flash.utils.*;
public class WeaponManager {
private static var sndmgr:SoundManager;
private static var displayMgr:DisplayManager = new DisplayManager();
private static var activeWeaponArray:Array;
private static var fullWeaponArray:Dictionary;
private static var projectileMgr:ProjectileManager = new ProjectileManager();
public function WeaponManager(){
sndmgr = SoundManager.getInstance();
newWeaponArrays();
}
public function forceReloadSpecificWeapon(_arg1:String):void{
fullWeaponArray[_arg1].forceReload();
}
public function fireSpecificWeapon(_arg1:String, _arg2:int, _arg3:int, _arg4:int):void{
var _local6:*;
var _local5:* = fullWeaponArray[_arg1];
if (!_local5.reload){
_local6 = _local5.fire(_arg2, _arg3, _arg4);
if (_local6 != null){
sndmgr.playSound(_local5.soundFX);
ProjectileManager.addElement(_local6);
};
};
}
public function newWeaponArrays():void{
activeWeaponArray = new Array();
fullWeaponArray = new Dictionary();
projectileMgr.newArrays();
}
public function fireActiveWeapons(_arg1:int, _arg2:int, _arg3:int):void{
}
public function addNewWeapon(_arg1:String, _arg2, _arg3:String, _arg4:int, _arg5:int, _arg6:int, _arg7:int):void{
var _local8:Weapon = new Weapon(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
fullWeaponArray[_arg1] = _local8;
}
public function setActiveWeapons(_arg1:Array):void{
activeWeaponArray = _arg1;
}
}
}//package com.SR2
Section 23
//WorldCollisionHandler (com.SR2.WorldCollisionHandler)
package com.SR2 {
import com.hardcircle.*;
import flash.geom.*;
import com.SR2.VFX.*;
public class WorldCollisionHandler {
private static var localProjectileArray:Array = new Array();
private static var localAIArray:Array = new Array();
private static var dispalyMgr:DisplayManager = new DisplayManager();
private static var sndMgr:SoundManager;
private static var collision:Collision = new Collision();
public static var gamePlayer;
private static var localItemArray:Array = new Array();
public static var playerGun;
public function WorldCollisionHandler(){
sndMgr = SoundManager.getInstance();
}
private function runItemHitChecks():void{
var projectileEnt:*;
var j:int;
var itemEnt:*;
var i:int = (localProjectileArray.length - 1);
while (i > -1) {
projectileEnt = localProjectileArray[i];
j = (localItemArray.length - 1);
while (j > -1) {
itemEnt = localItemArray[j];
try {
if (projectileEnt.hitTestObject(itemEnt)){
if (collision.isColliding(projectileEnt, itemEnt)){
trace("&&");
if (itemEnt.Type == "Ammo"){
if (DataManager.maxPlayerEnergy < 17){
DataManager.maxPlayerEnergy = (DataManager.maxPlayerEnergy + 1);
};
gamePlayer.gotoAndPlay("health plus");
playerGun.gotoAndPlay("health plus");
};
if (itemEnt.Type == "Health"){
if (DataManager.maxPlayerHealth < 17){
DataManager.maxPlayerHealth = (DataManager.playerHealth = (DataManager.maxPlayerHealth + 1));
} else {
DataManager.maxPlayerHealth = (DataManager.playerHealth = 17);
trace("Filling Health");
};
gamePlayer.gotoAndPlay("ammo plus");
playerGun.gotoAndPlay("ammo plus");
};
sndMgr.playSound("Pick up", 2.5);
ItemManager.removeElement(itemEnt);
return;
};
};
} catch(e:Error) {
};
j = (j - 1);
};
i = (i - 1);
};
}
public function update():void{
if (ProjectileManager.updated){
localProjectileArray = ProjectileManager.getProjectileArray;
};
if (AIManager.updated){
localAIArray = AIManager.getAIArray;
};
if (ItemManager.updated){
localItemArray = ItemManager.getArray;
};
runOverLapChecks();
runItemHitChecks();
}
private function runOverLapChecks():void{
var _local2:*;
var _local3:int;
var _local4:*;
var _local5:gunFire_onhit;
var _local6:Explosion;
var _local1:int = (localAIArray.length - 1);
while (_local1 > -1) {
_local2 = localAIArray[_local1];
_local3 = (localProjectileArray.length - 1);
while (_local3 > -1) {
_local4 = localProjectileArray[_local3];
if (_local2.hitTestObject(_local4)){
if (collision.isColliding(_local2, _local4)){
_local5 = new gunFire_onhit();
_local5.x = _local4.x;
_local5.y = _local4.y;
_local5.rotation = _local4.costume.rotation;
dispalyMgr.addVisualFX(_local5);
_local4.killme = true;
_local2.takeDamage(1);
sndMgr.playSound("Deflect");
};
};
if (gamePlayer.hitTestObject(_local4)){
if ((_local4.costume is vfx_gunfire)){
return;
};
_local4.killme = true;
if (DataManager.waveNumber >= 25){
DataManager.playerHealth = (DataManager.playerHealth + -2);
} else {
DataManager.playerHealth = (DataManager.playerHealth + -1);
};
gamePlayer.gotoAndPlay("player_hit");
_local6 = new Explosion(new Point(_local4.x, _local4.y), 15, 15, 4, 10);
return;
};
_local3--;
};
_local1--;
};
}
}
}//package com.SR2
Section 24
//Enemy (RoboCity.Enemy)
package RoboCity {
import com.SR2.*;
public class Enemy extends Actor {
private var force:int;
public var fired:Boolean;// = false
public var Type:Class;
private var _health:int;
private var wentBoom:Boolean;// = false
public function Enemy(_arg1:String, _arg2, _arg3:int, _arg4:int, _arg5:int, _arg6:int=-1, _arg7:Boolean=true){
Type = Enemy;
super();
_name = _arg1;
costume = new (_arg2);
this.addChild(costume);
this.x = _arg3;
this.y = _arg4;
immobile = _arg7;
_health = _arg6;
force = _arg5;
AIManager.addElement(this);
}
public function explode():void{
if (this.wentBoom){
return;
};
this.wentBoom = true;
this._health = 0;
}
public function get health():int{
return (_health);
}
public function makeMiniBoss(_arg1, _arg2:int, _arg3:int, _arg4:int, _arg5:int=2, _arg6:int=2):void{
this.removeChild(costume);
costume = new (_arg1);
this.addChild(costume);
force = _arg5;
costume.scaleX = (costume.scaleY = _arg6);
_health = _arg2;
this.x = _arg3;
this.y = _arg4;
}
public function takeDamage(_arg1:int):void{
_health = (_health - _arg1);
}
public static function update(_arg1:Enemy):void{
_arg1.x = (_arg1.x - _arg1.force);
}
}
}//package RoboCity
Section 25
//Item (RoboCity.Item)
package RoboCity {
import com.SR2.*;
import flash.display.*;
public class Item extends Sprite {
public var decor:MovieClip;
private var speed:Number;// = 2
public var dx:Number;
public var dy:Number;
private var rot:Number;
public var Type:String;
public function Item(_arg1:MovieClip, _arg2:int, _arg3:int, _arg4:String){
rot = RandomRange(0, 360);
super();
decor = _arg1;
this.addChild(decor);
this.x = _arg2;
this.y = _arg3;
this.Type = _arg4;
dx = (speed * Math.cos((((2 * Math.PI) * rot) / 360)));
dy = (speed * Math.sin((((2 * Math.PI) * rot) / 360)));
ItemManager.addElement(this, _arg4);
}
private function RandomRange(_arg1:Number, _arg2:Number){
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
public static function update(_arg1:Item):void{
_arg1.y = (_arg1.y + _arg1.dy);
_arg1.dy = (_arg1.dy + 0.5);
if (_arg1.y >= 300){
_arg1.dy = 0;
};
}
}
}//package RoboCity
Section 26
//Main (RoboCity.Main)
package RoboCity {
import flash.events.*;
import com.SR2.*;
import com.hardcircle.*;
import flash.display.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import com.greensock.*;
import com.spilgames.api.*;
import flash.utils.*;
import com.greensock.easing.*;
import com.SR2.VFX.*;
import flash.net.*;
import flash.ui.*;
public class Main extends MovieClip {
private var enemyHealth:int;
private var itemMgr:ItemManager;
public var lBar:LoadBar;
private var energy:int;
private var waveFinished:Boolean;// = false
private var score:int;
private var player_Health:int;
private var wch:WorldCollisionHandler;
private var DisplayMgr:DisplayManager;
public var sndMgr:SoundManager;
private var boss2spawn:int;// = 0
private var spilApi:SpilGamesServices;
private var enemyCostumes:int;// = 2
private var WeaponMgr:WeaponManager;
private var cross:crosshair;
private var timer:Timer;
public var toggle_pause:MovieClip;
private var waveTimer:Timer;
private var aiMgr:AIManager;
public var mnu_gameOver:MovieClip;
private var textb:Gameispaused;
private var scoreDisplay:TextField;
private var health:int;
private var player:Player;
private var player_gun:mc_player_gun;
public var sponsorLogo:MovieClip;
private var gameInterface:GameInterface;
private var projectileMgr:ProjectileManager;
private var pauseBox:Shape;// = null
public var toggle_music:MovieClip;
public var mm_options:MovieClip;
private static const Radian:Number = 57.2957795130823;
public function Main(){
addFrameScript(9, frame10, 91, frame92, 101, frame102, 111, frame112, 121, frame122);
Languages.initialize();
SpilGame.initialize("RoboCity", PortalGroup.TEENS, "RoboCity.html", this, true);
spilApi = SpilGamesServices.getInstance();
spilApi.connect(this);
var _local1:XML = <LocalisedText><textItem identifier="mm_play"><en_us>Play</en_us><en_uk>Play</en_uk><nl>Spelen</nl><fr>Jouer</fr><de>Spielen</de><es>Jugar</es><br>Jogar</br><pt>Jogar</pt><it>Gioca</it><se>Spela</se><pl>Graj</pl><ru>Играть</ru><id>Main</id><ar>Play</ar><jp>Play</jp><cn>Play</cn><es_mx>Jugar</es_mx><es_ar>Jugar</es_ar></textItem><textItem identifier="mm_instructions"><en_us>How to Play</en_us><en_uk>How to Play</en_uk><nl>Spelregels</nl><fr>Instructions</fr><de>Anleitung</de><es>Cómo jugar</es><br>Como Jogar</br><pt>Como jogar</pt><it>Come giocare</it><se>Spelregler</se><pl>Jak grać</pl><ru>Как играть</ru><id>Cara Main</id><ar>How to Play</ar><jp>How to Play</jp><cn>How to Play</cn><es_mx>Cómo jugar</es_mx><es_ar>Cómo jugar</es_ar></textItem><textItem identifier="mm_scores"><en_us>High Scores</en_us><en_uk>Highscores</en_uk><nl>Topscores</nl><fr>Meilleurs scores</fr><de>Highscores</de><es>Puntuaciones máximas</es><br>Recordes</br><pt>Pontuações mais altas</pt><it>Punteggi più alti</it><se>Toppoäng</se><pl>Ranking</pl><ru>Рекорды</ru><id>Skor Tinggi</id><ar>High Scores</ar><jp>High Scores</jp><cn>High Scores</cn><es_mx>Puntuaciones máximas</es_mx><es_ar>Puntuaciones máximas</es_ar></textItem><textItem identifier="mm_credits"><en_us>Credits</en_us><en_uk>Credits</en_uk><nl>De makers</nl><fr>Crédits</fr><de>Credits</de><es>Créditos</es><br>Créditos</br><pt>Créditos</pt><it>Riconoscimenti</it><se>Tacklista</se><pl>Autorzy</pl><ru>Авторы</ru><id>Kredit</id><ar>Credits</ar><jp>Credits</jp><cn>Credits</cn><es_mx>Créditos</es_mx><es_ar>Créditos</es_ar></textItem><textItem identifier="mm_more_games"><en_us>More Games</en_us><en_uk>More Games</en_uk><nl>Meer spellen</nl><fr>Plus de jeux</fr><de>Mehr Spiele</de><es>Más juegos</es><br>Mais jogos</br><pt>Mais jogos</pt><it>Più giochi</it><se>Fler spel</se><pl>Więcej gier</pl><ru>Другие игры</ru><id>Game lainnya</id><ar>More Games</ar><jp>More Games</jp><cn>More Games</cn><es_mx>Más juegos</es_mx><es_ar>Más juegos</es_ar></textItem><textItem identifier="ins_controls"><en_us>Controls:</en_us><en_uk>Controls:</en_uk><nl>Besturing:</nl><fr>Commandes :</fr><de>Steuerung:</de><es>Controles:</es><br>Controles:</br><pt>Controlos:</pt><it>Comandi:</it><se>Kontroller:</se><pl>Sterowanie:</pl><ru>Управление:</ru><id>Kontrol:</id><ar>Controls:</ar><jp>Controls:</jp><cn>Controls:</cn><es_mx>Controles:</es_mx><es_ar>Controles:</es_ar></textItem><textItem identifier="ins_to_aim"><en_us>Use your mouse to aim and shoot.</en_us><en_uk>Use your mouse to aim and shoot.</en_uk><nl>Gebruik je muis om te richten en schieten.</nl><fr>Utilise ta souris pour viser et tirer.</fr><de>Ziele und schieße mit deiner Maus.</de><es>Usa el ratón para apuntar y disparar.</es><br>Use o mouse para mirar e atirar.</br><pt>Usa o teu rato para apontar e disparar.</pt><it>Usa il mouse per prendere la mira e sparare.</it><se>Sikta och skjut med din mus.</se><pl>Użyj myszki do celowania i strzelania.</pl><ru>Используй мышь, чтобы целиться и стрелять.</ru><id>Gunakan mouse untuk mengarahkan dan menembak.</id><ar>Use your mouse to aim and shoot.</ar><jp>Use your mouse to aim and shoot.</jp><cn>Use your mouse to aim and shoot.</cn><es_mx>Usa el ratón para apuntar y disparar.</es_mx><es_ar>Usa el ratón para apuntar y disparar.</es_ar></textItem><textItem identifier="ins_left_shoot"><en_us></en_us><en_uk></en_uk><nl></nl><fr></fr><de></de><es></es><br></br><pt></pt><it></it><se></se><pl></pl><ru></ru><id></id><ar></ar><jp></jp><cn></cn><es_mx></es_mx><es_ar></es_ar></textItem><textItem identifier="ins_shoot_items"><en_us>Shoot an item to pick it up.</en_us><en_uk>Shoot an item to pick it up.</en_uk><nl>Schiet op een voorwerp om het op te pakken.</nl><fr>Tire sur un élément pour le ramasser.</fr><de>Schieße auf ein Objekt, um es aufzusammeln.</de><es>Dispara a un objeto para cogerlo.</es><br>Atire no objeto para pegá-lo.</br><pt>Dispara contra um objecto para o apanhares.</pt><it>Spara su un oggetto per prenderlo.</it><se>Skjut ett föremål för att ta det.</se><pl>Strzel do przedmiotu, aby go podnieść.</pl><ru>Чтобы подобрать предмет, выстрели в него.</ru><id>Tembak benda untuk memungutnya.</id><ar>Shoot an item to pick it up.</ar><jp>Shoot an item to pick it up.</jp><cn>Shoot an item to pick it up.</cn><es_mx>Dispara a un objeto para cogerlo.</es_mx><es_ar>Dispara a un objeto para cogerlo.</es_ar></textItem><textItem identifier="ins_reload"><en_us>Press R or Spacebar to reload.</en_us><en_uk>Press R or Spacebar to reload.</en_uk><nl>Druk op R of op de spatiebalk om te herladen.</nl><fr>Appuie sur R ou sur la barre d'espace afin de recharger.</fr><de>Drücke R oder die Leertaste, um nachzuladen.</de><es>Pulsa R o Espacio para recargar.</es><br>Pressione R ou Espaço para recarregar.</br><pt>Prime R ou Espaço para recarregares.</pt><it>Premi R o Spazio per ricaricare.</it><se>Tryck R eller mellanslag för att ladda om.</se><pl>Naciśnij R lub spację, aby przeładować.</pl><ru>Для перезарядки нажми R или пробел.</ru><id>Tekan R atau Spacebar untuk memuat ulang.</id><ar>Press R or Spacebar to reload.</ar><jp>Press R or Spacebar to reload.</jp><cn>Press R or Spacebar to reload.</cn><es_mx>Pulsa R o Espacio para recargar.</es_mx><es_ar>Pulsa R o Espacio para recargar.</es_ar></textItem><textItem identifier="ins_items"><en_us>Items:</en_us><en_uk>Items:</en_uk><nl>Voorwerpen:</nl><fr>Éléments :</fr><de>Objekte:</de><es>Objetos:</es><br>Itens:</br><pt>Objectos:</pt><it>Oggetti:</it><se>Föremål:</se><pl>Przedmioty:</pl><ru>Предметы:</ru><id>Benda:</id><ar>Items:</ar><jp>Items:</jp><cn>Items:</cn><es_mx>Objetos:</es_mx><es_ar>Objetos:</es_ar></textItem><textItem identifier="ins_health"><en_us>Restore some health points.</en_us><en_uk>Restore some health points.</en_uk><nl>Herstelt wat gezondheidspunten.</nl><fr>Restaure des points de vie.</fr><de>Regeneriert deine Gesundheit.</de><es>Recupera algunos puntos de salud.</es><br>Recuperar alguns pontos de saúde.</br><pt>Repõe alguns pontos de saúde.</pt><it>Ripristina alcuni punti salute.</it><se>Återfå några hälsopoäng.</se><pl>Przywróć część punktów zdrowia.</pl><ru>Восстанавливает часть здоровья.</ru><id>Memulihkan sebagian poin kesehatan.</id><ar>Restore some health points.</ar><jp>Restore some health points.</jp><cn>Restore some health points.</cn><es_mx>Recupera algunos puntos de salud.</es_mx><es_ar>Recupera algunos puntos de salud.</es_ar></textItem><textItem identifier="ins_energy"><en_us>Upgrade to a larger magazine.</en_us><en_uk>Upgrade to a larger magazine.</en_uk><nl>Upgrade voor een groter magazijn.</nl><fr>Upgrade vers un chargeur plus grand.</fr><de>Upgrade auf ein größeres Magazin.</de><es>Mejora la capacidad del cargador.</es><br>Pegar um cartucho maior.</br><pt>Melhora para um carregador maior.</pt><it>Aumenta la capacità del caricatore.</it><se>Uppgradera till ett större magasin.</se><pl>Ulepsz, powiększając magazynek.</pl><ru>Увеличивает размер обоймы.</ru><id>Meningkatkan ke magasin lebih besar.</id><ar>Upgrade to a larger magazine.</ar><jp>Upgrade to a larger magazine.</jp><cn>Upgrade to a larger magazine.</cn><es_mx>Mejora la capacidad del cargador.</es_mx><es_ar>Mejora la capacidad del cargador.</es_ar></textItem><textItem identifier="back"><en_us>Back</en_us><en_uk>Back</en_uk><nl>Terug</nl><fr>Retour</fr><de>Zurück</de><es>Atrás</es><br>Anterior</br><pt>Voltar</pt><it>Indietro</it><se>Bakåt</se><pl>Powrót</pl><ru>Назад</ru><id>Kembali</id><ar>Back</ar><jp>Back</jp><cn>Back</cn><es_mx>Atrás</es_mx><es_ar>Atrás</es_ar></textItem><textItem identifier="crd_game"><en_us>Game By:</en_us><en_uk>Game By:</en_uk><nl>Spel door:</nl><fr>Jeu par :</fr><de>Spiel von:</de><es>Juego de:</es><br>Jogo de:</br><pt>Jogo por:</pt><it>Gioco di:</it><se>Spel av:</se><pl>Gra od:</pl><ru>Разработчики:</ru><id>Game Oleh:</id><ar>Game By:</ar><jp>Game By:</jp><cn>Game By:</cn><es_mx>Juego de:</es_mx><es_ar>Juego de:</es_ar></textItem><textItem identifier="crd_artist"><en_us>Artwork:</en_us><en_uk>Artwork:</en_uk><nl>Vormgeving:</nl><fr>Illustrations :</fr><de>Grafik:</de><es>Gráficos:</es><br>Arte:</br><pt>Arte:</pt><it>Grafica:</it><se>Grafik:</se><pl>Grafika:</pl><ru>Оформление:</ru><id>Karya seni:</id><ar>Artwork:</ar><jp>Artwork:</jp><cn>Artwork:</cn><es_mx>Gráficos:</es_mx><es_ar>Gráficos:</es_ar></textItem><textItem identifier="crd_programmer"><en_us>Programming:</en_us><en_uk>Programming:</en_uk><nl>Programmering:</nl><fr>Programmation :</fr><de>Programmierung:</de><es>Programación:</es><br>Programação:</br><pt>Programação:</pt><it>Programmazione:</it><se>Programmering:</se><pl>Programowanie:</pl><ru>Программирование:</ru><id>Pemograman:</id><ar>Programming:</ar><jp>Programming:</jp><cn>Programming:</cn><es_mx>Programación:</es_mx><es_ar>Programación:</es_ar></textItem><textItem identifier="crd_music"><en_us>Music & Sound Effects:</en_us><en_uk>Music & Sound Effects:</en_uk><nl>Muziek & geluidseffecten:</nl><fr>Musique et effets sonores :</fr><de>Musik & Soundeffekte:</de><es>Música y efectos de sonido:</es><br>Música & Efeitos Sonoros:</br><pt>Música e Efeitos Sonoros:</pt><it>Musica ed effetti audio:</it><se>Musik & ljudeffekter:</se><pl>Muzyka i efekty dźwiękowe:</pl><ru>Музыка и звуковые эффекты:</ru><id>Musik & Efek Suara:</id><ar>Music & Sound Effects:</ar><jp>Music & Sound Effects:</jp><cn>Music & Sound Effects:</cn><es_mx>Música y efectos de sonido:</es_mx><es_ar>Música y efectos de sonido:</es_ar></textItem><textItem identifier="crd_sponsor"><en_us>Sponsored By:</en_us><en_uk>Sponsored By:</en_uk><nl>Gesponsord door:</nl><fr>Sponsorisé par :</fr><de>Gesponsert von:</de><es>Patrocinado por:</es><br>Patrocínio de:</br><pt>Patrocinado por:</pt><it>Sponsorizzato da:</it><se>Sponsrat av:</se><pl>Sponsor:</pl><ru>Спонсоры:</ru><id>Disponsori Oleh:</id><ar>Sponsored By:</ar><jp>Sponsored By:</jp><cn>Sponsored By:</cn><es_mx>Patrocinado por:</es_mx><es_ar>Patrocinado por:</es_ar></textItem><textItem identifier="ig_wave"><en_us>Wave [X]</en_us><en_uk>Wave [X]</en_uk><nl>Golf [X]</nl><fr>Vague [X]</fr><de>Welle [X]</de><es>Oleada [X]</es><br>Onda [X]</br><pt>Onda [X]</pt><it>Ondata [X]</it><se>Våg [X]</se><pl>Fala [X]</pl><ru>Группа [X]</ru><id>Gelombang [X]</id><ar>Wave [X]</ar><jp>Wave [X]</jp><cn>Wave [X]</cn><es_mx>Oleada [X]</es_mx><es_ar>Oleada [X]</es_ar></textItem><textItem identifier="ig_left"><en_us>Remaining Foes: [X]</en_us><en_uk>Remaining Foes: [X]</en_uk><nl>Vijanden over: [X]</nl><fr>Ennemis restants : [X]</fr><de>Verbleibende Feinde: [X]</de><es>Enemigos restantes: [X]</es><br>Inimigos Restantes: [X]</br><pt>Inimigos Restantes: [X]</pt><it>Nemici restanti: [X]</it><se>Kvarvarande fiender: [X]</se><pl>Pozostali wrogowie: [X]</pl><ru>Осталось врагов: [X]</ru><id>Sisa Musuh: [X]</id><ar>Remaining Foes: [X]</ar><jp>Remaining Foes: [X]</jp><cn>Remaining Foes: [X]</cn><es_mx>Enemigos restantes: [X]</es_mx><es_ar>Enemigos restantes: [X]</es_ar></textItem><textItem identifier="ig_reload"><en_us>R/Spacebar = Reload</en_us><en_uk>R/Spacebar = Reload</en_uk><nl>R/spatiebalk = herladen</nl><fr>R/barre d'espace = recharger</fr><de>R/Leertaste = Nachladen</de><es>R/Espacio = recargar</es><br>R/Espaço=Recarregar</br><pt>R/Espaço = Recarregar</pt><it>R/Spazio = ricarica</it><se>R/Mellanslag = Ladda om</se><pl>R/spacja = przeładuj</pl><ru>R/пробел = перезарядка</ru><id>R/Spacebar = Muat Ulang</id><ar>R/Spacebar = Reload</ar><jp>R/Spacebar = Reload</jp><cn>R/Spacebar = Reload</cn><es_mx>R/Espacio = recargar</es_mx><es_ar>R/Espacio = recargar</es_ar></textItem><textItem identifier="go_game_over"><en_us>Game Over</en_us><en_uk>Game Over</en_uk><nl>Game over</nl><fr>Game over</fr><de>Game over</de><es>Fin de partida</es><br>Acabou</br><pt>Fim do Jogo</pt><it>Gioco finito </it><se>Game over</se><pl>Koniec gry</pl><ru>Конец игры</ru><id>Game Tamat</id><ar>Game Over</ar><jp>Game Over</jp><cn>Game Over</cn><es_mx>Fin de partida</es_mx><es_ar>Fin de partida</es_ar></textItem><textItem identifier="go_score"><en_us>Score:</en_us><en_uk>Score:</en_uk><nl>Score:</nl><fr>Score :</fr><de>Punkte:</de><es>Puntuación:</es><br>Pontuação:</br><pt>Pontuação:</pt><it>Punteggio:</it><se>Poäng:</se><pl>Wynik:</pl><ru>Счет:</ru><id>Skor:</id><ar>Score:</ar><jp>Score:</jp><cn>Score:</cn><es_mx>Puntuación:</es_mx><es_ar>Puntuación:</es_ar></textItem><textItem identifier="go_waves_cleared"><en_us>Waves Cleared:</en_us><en_uk>Waves Cleared:</en_uk><nl>Golven tegengehouden:</nl><fr>Vagues d'assaut éliminées :</fr><de>Besiegte Wellen:</de><es>Oleadas eliminadas:</es><br>Ondas Eliminadas:</br><pt>Ondas Eliminadas:</pt><it>Ondate completate:</it><se>Vågor klarade:</se><pl>Zatrzymane fale:</pl><ru>Уничтожено групп:</ru><id>Gelombang Tuntas:</id><ar>Waves Cleared:</ar><jp>Waves Cleared:</jp><cn>Waves Cleared:</cn><es_mx>Oleadas eliminadas:</es_mx><es_ar>Oleadas eliminadas:</es_ar></textItem><textItem identifier="go_kills"><en_us>Foes Killed:</en_us><en_uk>Foes Killed:</en_uk><nl>Vijanden verslagen:</nl><fr>Ennemis tués :</fr><de>Getötete Feinde:</de><es>Enemigos matados:</es><br>Inimigos Exterminados: </br><pt>Inimigos Mortos:</pt><it>Nemici uccisi:</it><se>Fiender dödade:</se><pl>Zabici wrogowie:</pl><ru>Убито врагов:</ru><id>Musuh Dibunuh:</id><ar>Foes Killed:</ar><jp>Foes Killed:</jp><cn>Foes Killed:</cn><es_mx>Enemigos matados:</es_mx><es_ar>Enemigos matados:</es_ar></textItem><textItem identifier="go_rank"><en_us>Rank:</en_us><en_uk>Rank:</en_uk><nl>Plaats:</nl><fr>Rang :</fr><de>Platz:</de><es>Posición:</es><br>Classificação:</br><pt>Lugar:</pt><it>Posizione:</it><se>Plats:</se><pl>Pozycja:</pl><ru>Звание:</ru><id>Peringkat:</id><ar>Rank:</ar><jp>Rank:</jp><cn>Rank:</cn><es_mx>Posición:</es_mx><es_ar>Posición:</es_ar></textItem><textItem identifier="go_retry"><en_us>Try Again</en_us><en_uk>Try again</en_uk><nl>Nog een keer</nl><fr>Essayer de nouveau </fr><de>Nochmal probieren</de><es>¿Volver a intentar?</es><br>Tentar de novo</br><pt>Tentar Novamente</pt><it>Riprova</it><se>Försök igen</se><pl>Spróbuj ponownie</pl><ru>Еще раз</ru><id>Coba Lagi</id><ar>Try Again</ar><jp>Try Again</jp><cn>Try Again</cn><es_mx>¿Volver a intentar?</es_mx><es_ar>¿Volver a intentar?</es_ar></textItem><textItem identifier="go_submit"><en_us>Submit Score</en_us><en_uk>Submit Score</en_uk><nl>Score verzenden</nl><fr>Enregistrer le score</fr><de>Punkte eintragen</de><es>Enviar puntuación</es><br>Enviar pontuação</br><pt>Enviar Pontuação</pt><it>Invia il punteggio</it><se>Skicka poäng</se><pl>Zapisz wynik</pl><ru>Сохранить результат</ru><id>Kirim Skor</id><ar>Submit Score</ar><jp>Submit Score</jp><cn>Submit Score</cn><es_mx>Enviar puntuación</es_mx><es_ar>Enviar puntuación</es_ar></textItem><textItem identifier="ll_paused"><en_us>PAUSED</en_us><en_uk>PAUSED</en_uk><nl>PAUZE</nl><fr>EN PAUSE</fr><de>ANGEHALTEN</de><es>EN PAUSA</es><br>EM PAUSA</br><pt>EM PAUSA</pt><it>IN PAUSA</it><se>PAUSAT</se><pl>PAUZA</pl><ru>ПАУЗА</ru><id>JEDA</id><ar>PAUSED</ar><jp>PAUSED</jp><cn>PAUSED</cn><es_mx>EN PAUSA</es_mx><es_ar>EN PAUSA</es_ar></textItem><textItem identifier="ll_resume"><en_us>Click to Resume</en_us><en_uk>Click to Resume</en_uk><nl>Klik om door te gaan</nl><fr>Clique pour reprendre</fr><de>Klicken zum Weiterspielen</de><es>Haz clic para reanudar</es><br>Clique para Retornar</br><pt>Clica para Retomar</pt><it>Clicca per riprendere</it><se>Klicka för att återgå</se><pl>Kliknij, aby kontynuować</pl><ru>Щелкни для продолжения</ru><id>Klik untuk Lanjutkan Lagi</id><ar>Click to Resume</ar><jp>Click to Resume</jp><cn>Click to Resume</cn><es_mx>Haz clic para reanudar</es_mx><es_ar>Haz clic para reanudar</es_ar></textItem><textItem identifier="scroll_1"><en_us>This update is brought to you by www.hardcircle.com</en_us><en_uk>This update is brought to you by www.hardcircle.com</en_uk><nl>Met dank aan www.hardcircle.com voor deze update.</nl><fr>Cet update t'est proposé par www.hardcircle.com</fr><de>Dieses Update brachte euch www.hardcircle.com</de><es>Esta actualización te la trae
www.hardcircle.com</es><br>Este melhoramento é oferecido por www.hardcircle.com</br><pt>Esta actualização é uma cortesia de www.hardcircle.com</pt><it>Questo aggiornamento è offerto da www.hardcircle.com</it><se>Den här uppdateringen kommer från www.hardcircle.com</se><pl>Tę aktualizację otrzymujesz dzięki www.hardcircle.com</pl><ru>Это обновление предоставлено сайтом www.hardcircle.com</ru><id>Pembaruan ini disampaikan oleh www.hardcircle.com</id><ar>This update is brought to you by www.hardcircle.com</ar><jp>This update is brought to you by www.hardcircle.com</jp><cn>This update is brought to you by www.hardcircle.com</cn><es_mx>Esta actualización te la trae
www.hardcircle.com</es_mx><es_ar>Esta actualización te la trae
www.hardcircle.com</es_ar></textItem><textItem identifier="title"><en_us>Robo City</en_us><en_uk>Robo City</en_uk><nl>Robostad</nl><fr>Roboville</fr><de>Die Roboterstadt</de><es>Ciudad robot</es><br>Cidade dos Robôs</br><pt>Cidade Robótica</pt><it>Robocittà</it><se>Robotstaden</se><pl>Miasto Robotów</pl><ru>Робогород</ru><id>Kota Robo</id><ar>Robo City</ar><jp>Robo City</jp><cn>Robo City</cn><es_mx>Ciudad robot</es_mx><es_ar>Ciudad robot</es_ar></textItem></LocalisedText>
;
SpilGame.importXMLv2(_local1);
trace("Language Data Succesfully included");
stop();
addContextMenu();
this.addEventListener(Event.ADDED_TO_STAGE, startLoading);
}
private function startLoading(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, startLoading);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, checkLoaded);
}
public function startGame():void{
DataManager.pause = false;
DataManager.initAll();
aiMgr.newArrays();
enemyCostumes = 2;
score = 0;
enemyHealth = 6;
boss2spawn = 0;
score = DataManager.score;
health = DataManager.playerHealth;
energy = DataManager.playerEnergy;
addChild(DisplayMgr.newGameScreen(new gameMask()));
gameInterface = new GameInterface();
DisplayMgr.addInterface(gameInterface);
DisplayMgr.addInterface(toggle_music);
DisplayMgr.addInterface(toggle_pause);
addToggleEvents();
projectileMgr.newArrays();
WeaponMgr.setActiveWeapons(new Array("Cannon"));
gameInterface.gui_player_Kills_best.text = formatNumber(DataManager.Load("Kills"));
gameInterface.gui_player_score_best.text = formatNumber(DataManager.Load("Score"));
KeyObject.initAll();
player = new Player();
player.x = 90;
player.y = 340;
player_gun = new mc_player_gun();
player_gun.x = (player.x - 20);
player_gun.y = (player.y - 95);
player_gun.node.visible = false;
WorldCollisionHandler.gamePlayer = player;
WorldCollisionHandler.playerGun = player_gun;
AIManager.addPlayer(player);
DisplayMgr.addBackgroundObject(player);
DisplayMgr.addBackgroundObject(player_gun);
timer = new Timer(33);
timer.addEventListener(TimerEvent.TIMER, update);
timer.start();
stage.addEventListener(MouseEvent.MOUSE_DOWN, mousePressDown);
stage.addEventListener(MouseEvent.MOUSE_UP, mousePressRelease);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressedDown);
stage.addEventListener(MouseEvent.MOUSE_MOVE, updateCannonRotation);
stage.addEventListener(Event.DEACTIVATE, pauseGame);
updateGUI();
startNewWave();
cross = new crosshair();
Mouse.hide();
DisplayMgr.addInterface(cross);
sndMgr.playSound("MM Theme", 1, 0, 999);
sndMgr.playSound("BGA", 1, 0, 999);
}
private function mousePressRelease(_arg1:MouseEvent):void{
KeyObject.DOWN_Mouse = false;
}
private function keyPressedDown(_arg1:KeyboardEvent):void{
if ((((_arg1.keyCode == KeyObject.KEY_R)) || ((_arg1.keyCode == KeyObject.KEY_Space)))){
WeaponMgr.forceReloadSpecificWeapon("Cannon");
};
}
function frame102(){
stop();
}
function frame112(){
startGame();
}
public function sponsorClick(_arg1:Event):void{
navigateToURL(new URLRequest("http://www.agame.com/?utm_medium=brandedgames_internal&utm_campaign=robocity&utm_source=agame.com&utm_content=Mainscreen"), "_blank");
}
private function pauseGame(_arg1:Event):void{
if (pauseBox == null){
pauseBox = new Shape();
pauseBox.graphics.beginFill(0, 1);
pauseBox.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
pauseBox.graphics.endFill();
pauseBox.alpha = 0.5;
textb = new Gameispaused();
textb.x = 350;
textb.y = 195;
DisplayMgr.addVisualFX(pauseBox);
DisplayMgr.addVisualFX(textb);
};
toggle_pause.gotoAndStop("Up");
DataManager.pause = true;
timer.stop();
waveTimer.stop();
DisplayMgr.pause();
projectileMgr.pause();
aiMgr.pause();
}
function frame122(){
stop();
}
private function checkLoaded(_arg1:ProgressEvent):void{
var _local2:Number = Math.ceil(((_arg1.bytesLoaded / _arg1.bytesTotal) * 100));
if (_local2 >= 100){
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, checkLoaded);
gotoAndPlay("Connect");
};
}
public function Init():void{
DataManager.initAll();
sndMgr = SoundManager.getInstance();
DisplayMgr = new DisplayManager();
projectileMgr = new ProjectileManager();
WeaponMgr = new WeaponManager();
aiMgr = new AIManager();
wch = new WorldCollisionHandler();
itemMgr = new ItemManager();
aiMgr.newArrays();
WeaponMgr.newWeaponArrays();
itemMgr.newArray();
WeaponMgr.addNewWeapon("Cannon", vfx_gunfire, "Pew", 17, 17, 1000, 150);
WeaponMgr.addNewWeapon("Enemy_00", e10_drill, "Pew2", 1, 3, 1000, 33);
WeaponMgr.addNewWeapon("Enemy_08", Enemy_08_Projectile, "Pew2", 1, 3, 1000, 33);
WeaponMgr.addNewWeapon("Enemy_05", Enemy_09_Projectile, "Pew2", 1, 3, 1000, 33);
sndMgr.addLibrarySound(sfx_pew_1, "Pew");
sndMgr.addLibrarySound(sfx_pew_2, "Pew2");
sndMgr.addLibrarySound(sfx_deflect_2, "Deflect");
sndMgr.addLibrarySound(sfx_destroy_2, "Destroy");
sndMgr.addLibrarySound(sfx_yuii, "Player Destroy");
sndMgr.addLibrarySound(sfx_fail_2, "Game Over");
sndMgr.addLibrarySound(sfx_shhht, "Open");
sndMgr.addLibrarySound(sfx_beep_1, "Over");
sndMgr.addLibrarySound(sfx_beep_2, "Click");
sndMgr.addLibrarySound(sfx_pickUp, "Pick up");
sndMgr.addLibrarySound(bgm_robocity_ambeance, "BGA");
sndMgr.addLibrarySound(bgm_robocity_theme, "MM Theme");
}
private function updateGUI():void{
gameInterface.gui_health_indi.gotoAndStop(DataManager.playerHealth);
gameInterface.gui_ammo_indi.gotoAndStop(DataManager.playerEnergy);
gameInterface.gui_enemiesLeft.text = String((DataManager.waveSpawn - DataManager.enemiesKilledThisWave));
gameInterface.gui_player_Kills.text = formatNumber(DataManager.enemiesKilled);
}
private function unPauseGame():void{
toggle_pause.gotoAndStop("down");
DataManager.pause = false;
DisplayMgr.unpause();
aiMgr.unpause();
projectileMgr.unpause();
timer.start();
waveTimer.start();
DisplayMgr.removeObject(pauseBox, "vfx");
DisplayMgr.removeObject(textb, "vfx");
pauseBox = null;
}
private function waveEnded(_arg1:TimerEvent):void{
waveFinished = true;
switch (DataManager.waveNumber){
case 3:
enemyCostumes = 4;
enemyHealth = (enemyHealth + 2);
break;
case 5:
enemyCostumes = 6;
enemyHealth = (enemyHealth + 2);
break;
case 7:
enemyCostumes = 7;
break;
case 9:
enemyCostumes = 8;
break;
case 11:
enemyCostumes = 9;
break;
case 13:
enemyCostumes = 10;
break;
};
}
function frame92(){
Init();
}
private function update(_arg1:TimerEvent):void{
var t:Explosion;
var g:Gib;
var e = _arg1;
projectileMgr.update();
aiMgr.update();
wch.update();
itemMgr.update();
if (KeyObject.DOWN_Mouse){
fireWeapon();
};
if (score != DataManager.score){
score = DataManager.score;
updateScore();
};
updateGUI();
if (waveFinished){
if (AIManager.getAIArray.length <= 0){
startNewWave();
};
};
try {
if (((DataManager.playerHealth / DataManager.maxPlayerHealth) * 100) > 95){
player_gun.body.gotoAndStop(1);
player.body.gotoAndStop(1);
} else {
if (((DataManager.playerHealth / DataManager.maxPlayerHealth) * 100) > 50){
player_gun.body.gotoAndStop(2);
player.body.gotoAndStop(2);
} else {
if (((DataManager.playerHealth / DataManager.maxPlayerHealth) * 100) > 25){
player_gun.body.gotoAndStop(3);
player.body.gotoAndStop(3);
} else {
if (((DataManager.playerHealth / DataManager.maxPlayerHealth) * 100) > 0){
player_gun.body.gotoAndStop(4);
player.body.gotoAndStop(4);
};
};
};
};
} catch(e:Error) {
trace("This fucktion is gay");
};
if (DataManager.playerHealth <= 1){
timer.removeEventListener(TimerEvent.TIMER, update);
stage.removeEventListener(MouseEvent.MOUSE_DOWN, mousePressDown);
stage.removeEventListener(MouseEvent.MOUSE_UP, mousePressRelease);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyPressedDown);
stage.removeEventListener(MouseEvent.MOUSE_MOVE, updateCannonRotation);
stage.removeEventListener(Event.DEACTIVATE, pauseGame);
waveTimer.stop();
timer.stop();
DisplayMgr.removeObject(player_gun, "back");
t = new Explosion(new Point(player.x, player.y), ((player.width / 3) * 2), ((player.height / 4) * 3), 20, 20);
g = new Gib("Player", new Point(player.x, player.y), 15, 20, 0, 0, -180);
player.gotoAndPlay("death");
DisplayMgr.addInterface(player);
sndMgr.playSound("Player Destroy");
};
}
private function spawnEnemy(_arg1:TimerEvent):void{
var _local4:Enemy;
var _local5:int;
var _local6:int;
var _local2:int = Math.floor(RandomRange(0, enemyCostumes));
var _local3:Class = (getDefinitionByName(("Enemy_0" + _local2)) as Class);
switch (_local3){
case Enemy_01:
_local5 = 4;
break;
case Enemy_02:
_local5 = 3;
break;
case Enemy_03:
_local5 = 6;
break;
case Enemy_04:
_local5 = 4;
break;
case Enemy_05:
_local5 = 2;
break;
case Enemy_06:
_local5 = 2;
break;
case Enemy_07:
_local5 = 3;
break;
case Enemy_08:
_local5 = 6;
break;
case Enemy_09:
_local5 = 6;
break;
case Enemy_00:
_local5 = 5;
break;
};
if ((((_local2 == 5)) || ((_local2 == 8)))){
_local4 = new Enemy("High", _local3, 750, RandomRange(120, 175), _local5, enemyHealth, false);
} else {
if ((((((_local2 == 0)) || ((_local2 == 3)))) || ((_local2 == 4)))){
_local4 = new Enemy("Mid", _local3, 750, 245, _local5, enemyHealth, false);
} else {
_local4 = new Enemy("Low", _local3, 750, 335, _local5, enemyHealth, false);
};
};
if ((((_arg1.target.currentCount == DataManager.waveSpawn)) && (((DataManager.waveNumber % 2) == 0)))){
boss2spawn++;
if (boss2spawn > 7){
boss2spawn = 1;
};
trace(boss2spawn);
_local3 = (getDefinitionByName((("Enemy_0" + boss2spawn) + "_Boss")) as Class);
_local6 = (30 + (DataManager.waveNumber * 2));
if (_local6 > 55){
_local6 = 55;
};
_local4.makeMiniBoss(_local3, _local6, 750, 335, 3, 1);
};
}
private function updateCannonRotation(_arg1:MouseEvent):void{
var _local2:Point;
cross.x = mouseX;
cross.y = mouseY;
if (!DataManager.pause){
player_gun.rotation = (Math.atan2((mouseY - player_gun.y), (mouseX - player_gun.x)) * Radian);
if (player_gun.rotation < -40){
player_gun.rotation = -40;
} else {
if (player_gun.rotation > 30){
player_gun.rotation = 30;
};
};
_local2 = new Point(player_gun.node.x, player_gun.node.y);
_local2 = player_gun.localToGlobal(_local2);
player_gun.offsets = _local2;
};
}
private function addContextMenu():void{
var _local1:ContextMenu = new ContextMenu();
var _local2:ContextMenuItem = new ContextMenuItem("Copyright © hardcircle.com");
var _local3:ContextMenuItem = new ContextMenuItem("Artists:");
var _local4:ContextMenuItem = new ContextMenuItem(" Bret Measor");
var _local5:ContextMenuItem = new ContextMenuItem(" Michael Opada");
var _local6:ContextMenuItem = new ContextMenuItem("Programmer:");
var _local7:ContextMenuItem = new ContextMenuItem("Jeffrey Feenstra");
_local1.hideBuiltInItems();
_local3.separatorBefore = true;
_local6.separatorBefore = true;
_local4.enabled = false;
_local5.enabled = false;
_local7.enabled = false;
_local1.customItems.push(_local2);
_local1.customItems.push(_local3);
_local1.customItems.push(_local4);
_local1.customItems.push(_local5);
_local1.customItems.push(_local6);
_local1.customItems.push(_local7);
this.contextMenu = _local1;
}
private function updateScore():void{
gameInterface.gui_player_score.text = formatNumber(score);
}
public function Connect():void{
}
function frame10(){
Connect();
sponsorLogo.buttonMode = true;
sponsorLogo.addEventListener(MouseEvent.CLICK, sponsorClick);
}
public function realizeMainMenu():void{
var inst:ui_instructions;
var cred:ui_credits;
trace("Running");
sndMgr.playSound("MM Theme", 1, 0, 999);
toggle_music.addEventListener(MouseEvent.CLICK, toggleAudio);
toggle_music.buttonMode = true;
mm_options.mm_play.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
var e = _arg1;
try {
mm_options.mm_play.gotoAndStop("Over_state");
sndMgr.playSound("Over");
} catch(e:Error) {
trace("Unable to find target");
};
});
mm_options.mm_play.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
var e = _arg1;
try {
mm_options.mm_play.gotoAndStop("Up_state");
} catch(e:Error) {
trace("Unable to find target");
};
});
mm_options.mm_play.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent){
sndMgr.playSound("Click");
sndMgr.stopSound("MM Theme");
toggle_music.removeEventListener(MouseEvent.CLICK, toggleAudio);
gotoAndStop("Game");
});
mm_options.mm_instructions.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
var e = _arg1;
try {
mm_options.mm_instructions.gotoAndStop("Over_state");
sndMgr.playSound("Over");
} catch(e:Error) {
trace("Unable to find target");
};
});
mm_options.mm_instructions.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
var e = _arg1;
try {
mm_options.mm_instructions.gotoAndStop("Up_state");
} catch(e:Error) {
trace("Unable to find target");
};
});
mm_options.mm_instructions.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent){
var e = _arg1;
inst = new ui_instructions();
inst.x = 350;
inst.y = 195;
addChild(inst);
inst.inst_back.buttonMode = true;
inst.inst_back.stop();
sndMgr.playSound("Click");
inst.inst_back.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){
sndMgr.playSound("Click");
removeChild(inst);
});
inst.inst_back.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
var e = _arg1;
try {
inst.inst_back.gotoAndStop("Over_state");
sndMgr.playSound("Over");
} catch(e:Error) {
trace("Unable to find target");
};
});
inst.inst_back.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
var e = _arg1;
try {
inst.inst_back.gotoAndStop("Up_state");
} catch(e:Error) {
trace("Unable to find target");
};
});
});
mm_options.mm_credits.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
var e = _arg1;
try {
mm_options.mm_credits.gotoAndStop("Over_state");
sndMgr.playSound("Over");
} catch(e:Error) {
trace("Unable to find target");
};
});
mm_options.mm_credits.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
var e = _arg1;
try {
mm_options.mm_credits.gotoAndStop("Up_state");
} catch(e:Error) {
trace("Unable to find target");
};
});
mm_options.mm_credits.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent){
var e = _arg1;
cred = new ui_credits();
cred.x = 187.5;
cred.y = 40;
addChild(cred);
cred.cred_back.buttonMode = true;
sndMgr.playSound("Click");
cred.cred_back.stop();
cred.cred_back.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){
sndMgr.playSound("Click");
removeChild(cred);
});
cred.cred_back.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
var e = _arg1;
try {
cred.cred_back.gotoAndStop("Over_state");
sndMgr.playSound("Over");
} catch(e:Error) {
trace("Unable to find target");
};
});
cred.cred_back.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
var e = _arg1;
try {
cred.cred_back.gotoAndStop("Up_state");
} catch(e:Error) {
trace("Unable to find target");
};
});
});
}
private function mousePressDown(_arg1:MouseEvent):void{
KeyObject.DOWN_Mouse = true;
if (DataManager.pause){
unPauseGame();
};
}
public function gameOver():void{
var box:Shape;
var bcount:int;
var blur:Function;
blur = function (_arg1:Event){
bcount++;
if (bcount == 1){
bcount = 0;
box.alpha = (box.alpha + 0.02);
};
if (box.alpha >= 1){
timer.stop();
timer.removeEventListener(TimerEvent.TIMER, update);
box.removeEventListener(Event.ENTER_FRAME, blur);
removeChild(DisplayMgr.getGameScreen());
sndMgr.stopSound("BGA");
gotoAndStop("Game Over");
};
};
Mouse.show();
box = new Shape();
box.graphics.beginFill(0, 1);
box.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
box.graphics.endFill();
box.alpha = 0;
DisplayMgr.addVisualFX(box);
box.addEventListener(Event.ENTER_FRAME, blur);
bcount = 0;
if (DataManager.Load("Score") < score){
DataManager.Save("Score", score);
};
if (DataManager.Load("Kills") < DataManager.enemiesKilled){
DataManager.Save("Kills", DataManager.enemiesKilled);
};
}
private function toggleAudio(_arg1:MouseEvent):void{
if (toggle_music.currentLabel == "Up"){
sndMgr.muteAllSounds();
DataManager.sfx = false;
toggle_music.gotoAndStop("down");
} else {
DataManager.sfx = true;
sndMgr.unmuteAllSounds();
toggle_music.gotoAndStop("Up");
};
}
private function addToggleEvents():void{
if (DataManager.sfx){
toggle_music.gotoAndStop("Up");
} else {
toggle_music.gotoAndStop("down");
};
toggle_music.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
toggle_music.gotoAndStop("over");
});
toggle_music.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
if (DataManager.sfx){
toggle_music.gotoAndStop("Up");
} else {
toggle_music.gotoAndStop("down");
};
});
toggle_music.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent){
if (DataManager.sfx){
toggle_music.gotoAndStop("down");
DataManager.sfx = false;
sndMgr.muteAllSounds();
sndMgr.disableSound();
} else {
toggle_music.gotoAndStop("Up");
DataManager.sfx = true;
sndMgr.unmuteAllSounds();
sndMgr.enableSound();
};
});
toggle_pause.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
toggle_pause.gotoAndStop("over");
});
toggle_pause.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
if (!DataManager.pause){
toggle_pause.gotoAndStop("Up");
} else {
toggle_pause.gotoAndStop("down");
};
});
toggle_pause.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent){
if (DataManager.pause){
} else {
toggle_pause.gotoAndStop("Up");
DataManager.pause = true;
timer.stop();
waveTimer.stop();
DisplayMgr.pause();
projectileMgr.pause();
aiMgr.pause();
if (pauseBox == null){
pauseBox = new Shape();
pauseBox.graphics.beginFill(0, 1);
pauseBox.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
pauseBox.graphics.endFill();
pauseBox.alpha = 0.5;
textb = new Gameispaused();
textb.x = 350;
textb.y = 195;
DisplayMgr.addVisualFX(pauseBox);
DisplayMgr.addVisualFX(textb);
};
};
});
}
private function fireWeapon():void{
if (!DataManager.pause){
WeaponMgr.fireSpecificWeapon("Cannon", player_gun.offsets.x, player_gun.offsets.y, player_gun.rotation);
};
}
private function startNewWave():void{
var waveT:WaveTicker;
DataManager.waveNumber = (DataManager.waveNumber + 1);
DataManager.waveSpawn = (DataManager.waveSpawn + 2);
if (DataManager.waveSpawn > 20){
DataManager.waveSpawn = 20;
};
DataManager.waveSpawnInterval = (DataManager.waveSpawnInterval + -50);
if (DataManager.waveSpawnInterval < 1250){
DataManager.waveSpawnInterval = 1250;
};
gameInterface.gui_waveNumber.text = String(DataManager.waveNumber);
DataManager.enemiesKilledThisWave = 0;
waveFinished = false;
waveTimer = new Timer(DataManager.waveSpawnInterval, DataManager.waveSpawn);
waveTimer.addEventListener(TimerEvent.TIMER_COMPLETE, waveEnded);
waveTimer.addEventListener(TimerEvent.TIMER, spawnEnemy);
waveTimer.start();
waveT = new WaveTicker();
waveT.x = -320;
waveT.y = 100;
waveT.gotoAndStop(DataManager.waveNumber);
DisplayMgr.addVisualFX(waveT);
var t:TweenLite = new TweenLite(waveT, 1, {x:187.5, ease:Circ.easeOut, overwrite:0, onComplete:function (){
t = new TweenLite(waveT, 1, {x:695, ease:Circ.easeIn, overwrite:0, onComplete:function (){
DisplayMgr.removeObject(waveT, "vfx");
}});
}});
}
public function realizeGameOver():void{
var rank:String;
stop();
sndMgr.stopAllSounds();
sndMgr.playSound("Game Over");
mnu_gameOver.mnu_gameOVer_retry.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
var e = _arg1;
try {
mnu_gameOver.mnu_gameOVer_retry.gotoAndStop("Over_state");
sndMgr.playSound("Over");
} catch(e:Error) {
trace("Unable to find target");
};
});
mnu_gameOver.mnu_gameOVer_retry.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
var e = _arg1;
try {
mnu_gameOver.mnu_gameOVer_retry.gotoAndStop("Up_state");
} catch(e:Error) {
trace("Unable to find target");
};
});
mnu_gameOver.mnu_gameOVer_retry.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent){
sndMgr.playSound("Click");
gotoAndStop("Game");
});
mnu_gameOver.sub.addEventListener(MouseEvent.MOUSE_UP, function (_arg1:MouseEvent){
sndMgr.playSound("Click");
ScoreService.submitScore(score);
});
mnu_gameOver.sub.addEventListener(MouseEvent.MOUSE_OUT, function (_arg1:MouseEvent){
var e = _arg1;
try {
mnu_gameOver.mnu_gameOVer_retry.gotoAndStop("Up_state");
} catch(e:Error) {
trace("Unable to find target");
};
});
mnu_gameOver.addEventListener(MouseEvent.MOUSE_OVER, function (_arg1:MouseEvent){
var e = _arg1;
try {
mnu_gameOver.mnu_gameOVer_retry.gotoAndStop("Over_state");
sndMgr.playSound("Over");
} catch(e:Error) {
trace("Unable to find target");
};
});
mnu_gameOver.go_score_text.text = formatNumber(score);
mnu_gameOver.go_waves_text.text = (DataManager.waveNumber - 1);
mnu_gameOver.go_foes_text.text = DataManager.enemiesKilled;
var wc:int = (DataManager.waveNumber - 1);
if (wc < 5){
rank = "F";
} else {
if (wc < 10){
rank = "D-";
} else {
if (wc < 13){
rank = "D";
} else {
if (wc < 16){
rank = "D+";
} else {
if (wc < 19){
rank = "C-";
} else {
if (wc < 22){
rank = "C";
} else {
if (wc < 25){
rank = "C+";
} else {
if (wc < 28){
rank = "B-";
} else {
if (wc < 31){
rank = "B";
} else {
if (wc < 34){
rank = "B+";
} else {
if (wc < 37){
rank = "A-";
} else {
if (wc < 40){
rank = "A";
} else {
rank = "A+";
};
};
};
};
};
};
};
};
};
};
};
};
mnu_gameOver.go_rank_text.text = rank;
}
private static function formatNumber(_arg1:Number):String{
var _local4:String;
var _local2:String = _arg1.toString();
var _local3 = "";
while (_local2.length > 3) {
_local4 = _local2.substr(-3);
_local2 = _local2.substr(0, (_local2.length - 3));
_local3 = (("," + _local4) + _local3);
};
if (_local2.length > 0){
_local3 = (_local2 + _local3);
};
return (_local3);
}
private static function RandomRange(_arg1:Number, _arg2:Number){
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
}
}//package RoboCity
Section 27
//Brand (spill.localisation.Brand)
package spill.localisation {
import flash.xml.*;
public class Brand {
public var domain:String;
public var emailPage:String;
public var name:String;
public var site_id:uint;
public var isExternal:Boolean;// = false
public var id:Number;
public var hostingDomain:String;// = ""
public var preferedLanguage:String;// = ""
public var moreLink:String;// = ""
public var hasSendToFriendLink:Boolean;// = true
public var emailLink:String;// = "game"
public var portalGroup:uint;
public var useGoogleAnalitics:Boolean;// = true
private static const topLevelDoubles:String = ((((((((((((((("ac.cn,ac.jp,ac.uk,ad.jp,adm.br,adv.br,agr.br," + "ah.cn,am.br,arq.br,art.br,asn.au,ato.br,av.tr,bel.tr,bio.br,biz.tr,bj.cn,bmd.br,") + "cim.br,cng.br,cnt.br,co.at,co.jp,co.uk,com.au,com.br,com.cn,com.eg,com.hk,com.mx,") + "com.ru,com.tr,com.tw,conf.au,cq.cn,csiro.au,dr.tr,ecn.br,edu.au,edu.br,edu.tr,") + "emu.id.au,eng.br,esp.br,etc.br,eti.br,eun.eg,far.br,fj.cn,fm.br,fnd.br,fot.br,") + "fst.br,g12.br,gb.com,gb.net,gd.cn,gen.tr,ggf.br,gob.mx,gov.au,gov.br,gov.cn,") + "gov.hk,gov.tr,gr.jp,gs.cn,gx.cn,gz.cn,ha.cn,hb.cn,he.cn,hi.cn,hk.cn,hl.cn,hn.cn,") + "id.au,idv.tw,imb.br,ind.br,inf.br,info.au,info.tr,jl.cn,jor.br,js.cn,jx.cn,k12.tr,") + "lel.br,ln.cn,ltd.uk,mat.br,me.uk,med.br,mil.br,mil.tr,mo.cn,mus.br,name.tr,ne.jp,") + "net.au,net.br,net.cn,net.eg,net.hk,net.lu,net.mx,net.ru,net.tr,net.tw,net.uk,") + "nm.cn,no.com,nom.br,not.br,ntr.br,nx.cn,odo.br,oop.br,or.at,or.jp,org.au,org.br,") + "org.cn,org.hk,org.lu,org.ru,org.tr,org.tw,org.uk,plc.uk,pol.tr,pp.ru,ppg.br,pro.br,") + "psc.br,psi.br,qh.cn,qsl.br,rec.br,sc.cn,sd.cn,se.com,se.net,sh.cn,slg.br,sn.cn,") + "srv.br,sx.cn,tel.tr,tj.cn,tmp.br,trd.br,tur.br,tv.br,tw.cn,uk.com,uk.net,vet.br,") + "wattle.id.au,web.tr,xj.cn,xz.cn,yn.cn,zj.cn,zlg.br,co.nr,co.nz,com.fr,com.ph,com.ar,") + "com.id,com.in");
private function get utm_campaign():String{
if (isExternal){
return (("utm_campaign=" + hostingDomain));
};
return ("");
}
public function exportXML():XML{
var _local3:XML;
var _local1:XML = <portal/>
;
_local1.@id = site_id;
_local1.@language = preferedLanguage;
_local1.@channel = portalGroup;
var _local2:XML = <domain/>
;
_local2.appendChild(new XMLNode(3, domain));
_local1.appendChild(_local2);
if (moreLink){
_local3 = <more_games_path/>
;
_local3.appendChild(new XMLNode(3, moreLink));
_local1.appendChild(_local3);
};
_local2 = <game_path/>
;
_local2.appendChild(new XMLNode(3, emailLink));
_local1.appendChild(_local2);
if (!useGoogleAnalitics){
_local1.attributes.noGoogleAnalitics = true;
};
if (!hasSendToFriendLink){
_local1.attributes.noSendToFriendLink = true;
};
return (_local1);
}
public function getPromotionLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String="", _arg5:String=""):String{
var _local6:String = ("http://" + domain);
_local6 = (_local6 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local6 = (_local6 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local6 = (_local6 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
trace(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local6 = (_local6 + ("&utm_source=" + _arg4));
if (((!((_arg5 == ""))) && (!((_arg5 == null))))){
_local6 = (_local6 + ("&utm_content=" + _arg5));
};
};
return (_local6);
}
private function get utm_source():String{
return (("utm_source=brandedgames_" + (isExternal) ? "external" : "internal"));
}
public function getMoreGamesLink(_arg1:String, _arg2:Boolean, _arg3:String="", _arg4:String=""):String{
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ("/" + moreLink));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg2) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg3 = stripSubDomain(_arg3);
if (_arg3 == "localhost"){
_arg3 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg3));
if (((!((_arg4 == ""))) && (!((_arg4 == null))))){
_local5 = (_local5 + ("&utm_content=" + _arg4));
};
};
return (_local5);
}
public function get backgroundColor():uint{
return (PortalGroup.backgroundColors[portalGroup]);
}
private function get utm_term():String{
return ("utm_term=");
}
public function importXML(_arg1:XMLNode):void{
}
public function getSendToFriendLink(_arg1:String, _arg2:String, _arg3:Boolean, _arg4:String=""):String{
if (!hasSendToFriendLink){
return (getMoreGamesLink(_arg1, _arg3));
};
var _local5:String = ("http://" + domain);
_local5 = (_local5 + ((("/" + emailLink) + "/") + _arg2));
if (useGoogleAnalitics){
_local5 = (_local5 + ("?utm_medium=brandedgames_" + (_arg3) ? "external" : "internal"));
_local5 = (_local5 + ("&utm_campaign=" + _arg1));
_arg4 = stripSubDomain(_arg4);
if (_arg4 == "localhost"){
_arg4 = "offline_play";
};
_local5 = (_local5 + ("&utm_source=" + _arg4));
_local5 = (_local5 + "&utm_content=send_to_friend");
};
return (_local5);
}
public static function stripSubDomain(_arg1:String):String{
if (!_arg1){
return ("");
};
var _local2:Array = _arg1.split(".");
if (_local2.length <= 2){
return (_arg1);
};
_local2 = _local2.reverse();
if (topLevelDoubles.indexOf((((_local2[1] + ".") + _local2[0]) + ",")) > 0){
return (((((_local2[2] + ".") + _local2[1]) + ".") + _local2[0]));
};
return (((_local2[1] + ".") + _local2[0]));
}
}
}//package spill.localisation
Section 28
//BrandingLogo (spill.localisation.BrandingLogo)
package spill.localisation {
import flash.events.*;
import flash.display.*;
public class BrandingLogo extends MovieClip {
public function BrandingLogo(){
addFrameScript(0, frame1);
super();
stop();
mouseEnabled = false;
mouseChildren = false;
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
if (stage){
added();
};
brandingChanged();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("brandingChanged", brandingChanged, false, 0, true);
brandingChanged();
}
private function brandingChanged(_arg1:Event=null):void{
if (SpilGame.currentBranding){
gotoAndStop(SpilGame.currentBranding.domain);
};
}
function frame1(){
stop();
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("brandingChanged", brandingChanged);
}
}
}//package spill.localisation
Section 29
//Brandings (spill.localisation.Brandings)
package spill.localisation {
public class Brandings {
private static var brands_by_id:Object = new Object();
private static var brands_by_domain:Object = new Object();
public static function getBrandByID(_arg1:Number):Brand{
return (brands_by_id[_arg1]);
}
public static function getBrandsArray():Array{
var _local2:Brand;
var _local1:Array = new Array();
for each (_local2 in brands_by_domain) {
_local1.push(_local2);
};
return (_local1);
}
private static function addBrand(_arg1:Brand):Brand{
if (brands_by_domain[_arg1.domain]){
trace(("ERROR: Attempting to add duplicate brand by domain: " + _arg1.domain));
} else {
brands_by_domain[_arg1.domain] = _arg1;
};
if (brands_by_id[_arg1.site_id]){
trace(("ERROR: Attempting to add duplicate brand by id: " + _arg1.site_id));
} else {
brands_by_id[_arg1.site_id] = _arg1;
};
return (_arg1);
}
public static function initialize():void{
var _local1:Brand;
_local1 = new Brand();
_local1.site_id = 79;
_local1.domain = "www.agame.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 88;
_local1.domain = "www.gamesgames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 90;
_local1.domain = "www.girlsgogames.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 45;
_local1.domain = "www.a10.com";
_local1.preferedLanguage = "en_us";
_local1.portalGroup = PortalGroup.YOUNG_ADULTS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 92;
_local1.domain = "www.games.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 107;
_local1.domain = "www.agame.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.TEENS;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 102;
_local1.domain = "www.girlsgogames.co.uk";
_local1.preferedLanguage = "en_uk";
_local1.portalGroup = PortalGroup.GIRL;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 2;
_local1.domain = "www.game.com.cn";
_local1.moreLink = "moregames/";
_local1.preferedLanguage = "cn";
_local1.portalGroup = PortalGroup.NONE;
_local1.useGoogleAnalitics = false;
_local1.hasSendToFriendLink = false;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 25;
_local1.domain = "www.spel.nl";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 1;
_local1.domain = "www.spelletjes.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 93;
_local1.domain = "www.girlsgogames.nl";
_local1.emailLink = "spel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 12;
_local1.domain = "www.jeu.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 95;
_local1.domain = "www.girlsgogames.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 11;
_local1.domain = "www.jeux.fr";
_local1.emailLink = "jeu";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "fr";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 26;
_local1.domain = "www.spielen.com";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 94;
_local1.domain = "www.girlsgogames.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 5;
_local1.domain = "www.jetztspielen.de";
_local1.emailLink = "spiel";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "de";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 109;
_local1.domain = "www.minigry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 16;
_local1.domain = "www.gry.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 98;
_local1.domain = "www.girlsgogames.pl";
_local1.emailLink = "gra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "pl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 108;
_local1.domain = "www.spel.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 100;
_local1.domain = "www.girlsgogames.se";
_local1.emailLink = "spel_";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "se";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 44;
_local1.domain = "www.spela.se";
_local1.emailLink = "spel_";
_local1.preferedLanguage = "se";
_local1.portalGroup = PortalGroup.FAMILY;
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 106;
_local1.domain = "www.giocaregratis.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 15;
_local1.domain = "www.gioco.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 99;
_local1.domain = "www.girlsgogames.it";
_local1.emailLink = "gioco";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "it";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 97;
_local1.domain = "www.zapjuegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 86;
_local1.domain = "www.juegos.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 96;
_local1.domain = "www.juegosdechicas.com";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 122;
_local1.domain = "www.girlsgogames.es";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 125;
_local1.domain = "www.juegos.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 126;
_local1.domain = "www.juegosdechicas.mx";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 127;
_local1.domain = "www.juegos.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 128;
_local1.domain = "www.juegosdechicas.com.ar";
_local1.emailLink = "juego";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "es";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 91;
_local1.domain = "www.clickjogos.com";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 101;
_local1.domain = "www.girlsgogames.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 50;
_local1.domain = "www.ojogos.com.br";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "br";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 55;
_local1.domain = "www.games.co.id";
_local1.emailLink = "permainanme";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "id";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 105;
_local1.domain = "www.flashgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 104;
_local1.domain = "www.girlsgogames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.GIRL;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 103;
_local1.domain = "www.ourgames.ru";
_local1.emailLink = "igra";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "ru";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 24;
_local1.domain = "www.game.co.in";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "in";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 87;
_local1.domain = "www.ojogos.pt";
_local1.emailLink = "jogo";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "pt";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 120;
_local1.domain = "www.egames.jp";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.TEENS;
_local1.preferedLanguage = "jp";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 121;
_local1.domain = "www.dailygame.com";
_local1.emailLink = "/game/";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 123;
_local1.domain = "www.zapapa.com";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.ZAPAPA;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 124;
_local1.domain = "www.zapapa.nl";
_local1.emailLink = "game";
_local1.portalGroup = PortalGroup.HYVES;
_local1.preferedLanguage = "nl";
addBrand(_local1);
_local1 = new Brand();
_local1.site_id = 0;
_local1.domain = "gamedev.dev.spilgames.com";
_local1.portalGroup = PortalGroup.FAMILY;
_local1.preferedLanguage = "en_us";
addBrand(_local1);
}
public static function exportXML():XML{
var _local2:Brand;
var _local1:XML = <portals/>
;
for each (_local2 in brands_by_domain) {
_local1.appendChild(_local2.exportXML());
};
return (_local1);
}
public static function getBrandByDomain(_arg1:String):Brand{
return (brands_by_domain[_arg1]);
}
public static function hasDomain(_arg1:String):Boolean{
return (!((brands_by_domain[_arg1] == null)));
}
}
}//package spill.localisation
Section 30
//Language (spill.localisation.Language)
package spill.localisation {
import flash.xml.*;
public class Language {
public var portal_groups:Array;
public var references:Array;
public var name:String;
public var embedInputFonts:Boolean;// = true
public var id:uint;
public var forceFont:String;// = null
public var textLanguage:String;
public var bwcId:int;
public var embedFonts:Boolean;// = true
public var displayName:String;// = ""
public var dname:String;
public function Language(_arg1:String, _arg2:String=null){
references = [];
super();
name = _arg1;
dname = _arg2;
portal_groups = new Array();
}
public function exportXML():XMLNode{
var _local1:XMLNode = new XMLNode(1, "language");
_local1.attributes.name = name;
if (textLanguage != null){
_local1.attributes.textLanguage = textLanguage;
};
if (references.length){
_local1.attributes.references = references.toString();
};
_local1.attributes.id = bwcId;
var _local2:XMLNode = new XMLNode(1, "display_name");
_local2.firstChild = new XMLNode(3, displayName);
_local1.appendChild(_local2);
var _local3:Array = [];
var _local4:Array = PortalGroup.channelNames;
var _local5:int;
while (_local5 < _local4.length) {
_local3.push(Brandings.getBrandByDomain(portal_groups[_local5]).site_id);
_local5++;
};
_local1.attributes.channels = _local3.join(",");
return (_local1);
}
public function get p_teen():String{
return (portal_groups[PortalGroup.YOUNG_ADULTS]);
}
public function set p_hyves(_arg1:String):void{
portal_groups[PortalGroup.HYVES] = _arg1;
}
public function set p_teen(_arg1:String):void{
portal_groups[PortalGroup.YOUNG_ADULTS] = _arg1;
}
public function get p_tween():String{
return (portal_groups[PortalGroup.TEENS]);
}
public function get p_family():String{
return (portal_groups[PortalGroup.FAMILY]);
}
public function get p_girl():String{
trace("Language", portal_groups[PortalGroup.GIRL]);
return (portal_groups[PortalGroup.GIRL]);
}
public function get p_hyves():String{
return (portal_groups[PortalGroup.HYVES]);
}
public function set p_girl(_arg1:String):void{
portal_groups[PortalGroup.GIRL] = _arg1;
}
public function set p_zapapa(_arg1:String):void{
portal_groups[PortalGroup.ZAPAPA] = _arg1;
}
public function get displayAcronim():String{
return ((dname) ? dname : name);
}
public function set p_family(_arg1:String):void{
portal_groups[PortalGroup.FAMILY] = _arg1;
}
public function set p_tween(_arg1:String):void{
portal_groups[PortalGroup.TEENS] = _arg1;
}
public function get p_zapapa():String{
return (portal_groups[PortalGroup.ZAPAPA]);
}
}
}//package spill.localisation
Section 31
//Languages (spill.localisation.Languages)
package spill.localisation {
import flash.xml.*;
public class Languages {
public static var languages:Object = new Object();
private static var _init:Boolean = false;
public static function initialize():void{
var _local1:Language;
if (_init){
return;
};
_init = true;
_local1 = new Language("nl");
_local1.displayName = "Nederlands";
_local1.p_family = "www.spelletjes.nl";
_local1.p_tween = "www.spel.nl";
_local1.p_girl = "www.girlsgogames.nl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.p_hyves = "www.zapapa.nl";
_local1.bwcId = 3;
addLanguage(_local1);
_local1 = new Language("es");
_local1.displayName = "Español";
_local1.p_family = "www.juegos.com";
_local1.p_tween = "www.zapjuegos.com";
_local1.p_girl = "www.girlsgogames.es";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 9;
addLanguage(_local1);
_local1 = new Language("pl");
_local1.displayName = "Polski";
_local1.p_family = "www.gry.pl";
_local1.p_tween = "www.gry.pl";
_local1.p_girl = "www.girlsgogames.pl";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 6;
addLanguage(_local1);
_local1 = new Language("fr");
_local1.displayName = "Français";
_local1.p_family = "www.jeux.fr";
_local1.p_tween = "www.jeu.fr";
_local1.p_girl = "www.girlsgogames.fr";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 4;
addLanguage(_local1);
_local1 = new Language("en_us", "us");
_local1.displayName = "English";
_local1.p_family = "www.gamesgames.com";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 1;
addLanguage(_local1);
addReference(_local1, "en");
_local1 = new Language("id");
_local1.displayName = "Bahasa Ind.";
_local1.p_family = "www.games.co.id";
_local1.p_tween = "www.games.co.id";
_local1.p_girl = "www.games.co.id";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 11;
addLanguage(_local1);
_local1 = new Language("ru");
_local1.displayName = "Русский";
_local1.p_family = "www.ourgames.ru";
_local1.p_tween = "www.flashgames.ru";
_local1.p_girl = "www.girlsgogames.ru";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 12;
addLanguage(_local1);
_local1 = new Language("se");
_local1.displayName = "Svenska";
_local1.p_family = "www.spela.se";
_local1.p_tween = "www.spel.se";
_local1.p_girl = "www.girlsgogames.se";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 7;
addLanguage(_local1);
addReference(_local1, "sv");
_local1 = new Language("it");
_local1.displayName = "Italiano";
_local1.p_family = "www.gioco.it";
_local1.p_tween = "www.gioco.it";
_local1.p_girl = "www.girlsgogames.it";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 8;
addLanguage(_local1);
_local1 = new Language("en_uk", "uk");
_local1.displayName = "English";
_local1.p_family = "www.games.co.uk";
_local1.p_tween = "www.agame.com";
_local1.p_girl = "www.girlsgogames.co.uk";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 13;
addLanguage(_local1);
_local1 = new Language("cn");
_local1.displayName = "中文";
_local1.p_family = "www.game.com.cn";
_local1.p_tween = "www.game.com.cn";
_local1.p_girl = "www.game.com.cn";
_local1.p_teen = "www.game.com.cn";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 2;
_local1.embedInputFonts = false;
addLanguage(_local1);
addReference(_local1, "zh-CN");
addReference(_local1, "zh-TW");
_local1 = new Language("pt");
_local1.displayName = "Português";
_local1.p_family = "www.ojogos.pt";
_local1.p_tween = "www.ojogos.pt";
_local1.p_girl = "www.ojogos.pt";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 17;
addLanguage(_local1);
_local1 = new Language("in");
_local1.displayName = "English";
_local1.p_family = "www.game.co.in";
_local1.p_tween = "www.game.co.in";
_local1.p_girl = "www.game.co.in";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.textLanguage = "en_uk";
_local1.bwcId = 14;
addLanguage(_local1);
_local1 = new Language("de");
_local1.displayName = "Deutsch";
_local1.p_family = "www.jetztspielen.de";
_local1.p_tween = "www.spielen.com";
_local1.p_girl = "www.girlsgogames.de";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 5;
addLanguage(_local1);
_local1 = new Language("br");
_local1.displayName = "Português (BR)";
_local1.p_family = "www.ojogos.com.br";
_local1.p_tween = "www.clickjogos.com";
_local1.p_girl = "www.girlsgogames.com.br";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 10;
addLanguage(_local1);
_local1 = new Language("jp");
_local1.displayName = "日本語";
_local1.p_family = "www.egames.jp";
_local1.p_tween = "www.egames.jp";
_local1.p_girl = "www.egames.jp";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.embedInputFonts = false;
_local1.bwcId = 19;
addLanguage(_local1);
addReference(_local1, "ja");
_local1 = new Language("ar");
_local1.displayName = "English";
_local1.p_family = "www.dailygame.com";
_local1.p_tween = "www.dailygame.com";
_local1.p_girl = "www.dailygame.com";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
_local1.bwcId = 20;
addLanguage(_local1);
addReference(_local1, "ar");
_local1 = new Language("es_mx", "mx");
_local1.displayName = "Español (mx)";
_local1.p_family = "www.juegos.mx";
_local1.p_tween = "www.juegos.mx";
_local1.p_girl = "www.juegosdechicas.mx";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
addLanguage(_local1);
addReference(_local1, "mx");
_local1 = new Language("es_ar", "arg");
_local1.displayName = "Español (ar)";
_local1.p_family = "www.juegos.com.ar";
_local1.p_tween = "www.juegos.com.ar";
_local1.p_girl = "www.juegosdechicas.com.ar";
_local1.p_teen = "www.a10.com";
_local1.p_zapapa = "www.zapapa.com";
addLanguage(_local1);
addReference(_local1, "arg");
}
public static function exportXML():XMLNode{
var _local3:Language;
var _local1:Array = getLanguagesArray();
var _local2:XMLNode = new XMLNode(1, "languages");
for each (_local3 in _local1) {
_local2.appendChild(_local3.exportXML());
};
return (_local2);
}
public static function getLanguagesArray():Array{
var _local3:Language;
var _local1:Array = new Array();
var _local2:Object = new Object();
for each (_local3 in languages) {
if (!_local2[_local3.name]){
_local1.push(_local3);
_local2[_local3.name] = true;
};
};
return (_local1);
}
public static function getLanguage(_arg1:String):Language{
return (languages[_arg1]);
}
private static function addLanguage(_arg1:Language):void{
languages[_arg1.name] = _arg1;
}
private static function addReference(_arg1:Language, _arg2:String):void{
languages[_arg2] = _arg1;
_arg1.references.push(_arg2);
}
public static function getLanguageByOldID(_arg1:int):Language{
var _local2:Language;
for each (_local2 in languages) {
if (_local2.bwcId == _arg1){
return (_local2);
};
};
return (null);
}
}
}//package spill.localisation
Section 32
//LanguageSelectBox (spill.localisation.LanguageSelectBox)
package spill.localisation {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class LanguageSelectBox extends MovieClip {
private var flag:MovieClip;
private var languageName_text:TextField;
private var popup:MovieClip;
private var mc:MovieClip;
public function LanguageSelectBox(){
trace("new langselecbox");
super();
if (numChildren > 0){
removeChildAt(0);
};
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
addEventListener(MouseEvent.MOUSE_OVER, mouseOver, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, mouseOut, false, 0, true);
Languages.initialize();
popup = new LanguageSelectPopup_mc();
x = Math.round(x);
y = Math.round(y);
popup.y = (-(Math.floor(popup.height)) + 1);
popup.visible = false;
addChild(popup);
mc = new LanguageSelectBox_mc();
addChild(mc);
flag = mc.flag;
languageName_text = mc.languageName_text;
if (stage){
added();
};
init();
languageChanged();
}
private function added(_arg1:Event=null):void{
trace("addedselebnox");
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
}
private function mouseOut(_arg1:MouseEvent):void{
popup.visible = false;
}
public function set popupLocation(_arg1:String):void{
trace(("popupLocation = " + _arg1));
if (_arg1 == "bottom"){
popup.y = Math.floor(mc.height);
} else {
popup.y = (-(Math.floor(mc.height)) + 1);
};
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
public function init():void{
var _local3:MovieClip;
var _local4:Language;
trace("initselectbox");
var _local1:Array = new Array(popup.l_br, popup.l_de, popup.l_en_us, popup.l_fr, popup.l_in, popup.l_jp, popup.l_pt, popup.l_ru, popup.l_ar, popup.l_cn, popup.l_en_uk, popup.l_es, popup.l_id, popup.l_it, popup.l_nl, popup.l_pl, popup.l_se, popup.l_es_mx, popup.l_es_ar);
var _local2:int;
while (_local2 < _local1.length) {
_local3 = MovieClip(_local1[_local2]);
if (_local3){
_local3.addEventListener(MouseEvent.CLICK, itemClicked, true, 0, true);
_local3.flag.gotoAndStop(_local3.name.substr(2));
_local3.flag.mouseEnabled = false;
_local3.text.mouseEnabled = false;
_local4 = Languages.getLanguage(_local3.name.substr(2));
if (_local4){
_local3.text.text = _local4.displayAcronim;
} else {
trace((("Error, '" + _local3.name.substr(2)) + "' language not found"));
};
} else {
trace((((("Error, btn number '" + _local2) + "' is not a MovieClip or there is no button '") + _local1[_local2]) + "'"));
};
_local2++;
};
}
private function itemClicked(_arg1:MouseEvent):void{
SpilGame.changeLanguage(_arg1.currentTarget.name.substr(2));
popup.visible = false;
}
private function mouseOver(_arg1:MouseEvent):void{
popup.visible = true;
}
private function languageChanged(_arg1:Event=null):void{
if (SpilGame.currentLanguage){
if ((((SpilGame.portalGroup == PortalGroup.HYVES)) && ((SpilGame.currentLanguage.name == "nl")))){
this.visible = false;
return;
};
this.visible = true;
flag.gotoAndStop(SpilGame.currentLanguage.name);
languageName_text.text = SpilGame.currentLanguage.displayName;
languageName_text.embedFonts = SpilGame.currentLanguage.embedInputFonts;
};
}
}
}//package spill.localisation
Section 33
//LanguageSelectBox_mc (spill.localisation.LanguageSelectBox_mc)
package spill.localisation {
import flash.display.*;
import flash.text.*;
public dynamic class LanguageSelectBox_mc extends MovieClip {
public var languageName_text:TextField;
public var flag:MovieClip;
}
}//package spill.localisation
Section 34
//LanguageSelectPopup_mc (spill.localisation.LanguageSelectPopup_mc)
package spill.localisation {
import flash.display.*;
public dynamic class LanguageSelectPopup_mc extends MovieClip {
public var l_cn:MovieClip;
public var l_br:MovieClip;
public var l_se:MovieClip;
public var l_id:MovieClip;
public var l_es_ar:MovieClip;
public var l_es_mx:MovieClip;
public var l_in:MovieClip;
public var l_en_uk:MovieClip;
public var l_en_us:MovieClip;
public var l_es:MovieClip;
public var l_ar:MovieClip;
public var l_it:MovieClip;
public var l_pl:MovieClip;
public var l_nl:MovieClip;
public var l_de:MovieClip;
public var l_ru:MovieClip;
public var l_pt:MovieClip;
public var l_jp:MovieClip;
public var l_fr:MovieClip;
}
}//package spill.localisation
Section 35
//LocalizedTextField (spill.localisation.LocalizedTextField)
package spill.localisation {
import flash.events.*;
public class LocalizedTextField extends TextFieldFit {
private var regex:RegExp;
private var originalText:String;
public function LocalizedTextField(){
regex = /{([^{}]*)}/g;
super();
addEventListener(Event.ADDED_TO_STAGE, added, false, 0, true);
addEventListener(Event.REMOVED_FROM_STAGE, removed, false, 0, true);
added();
}
private function added(_arg1:Event=null):void{
SpilGame.addEventListener("languageChanged", languageChanged, false, 0, true);
text = originalText;
}
private function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
private function removed(_arg1:Event):void{
SpilGame.removeEventListener("languageChanged", languageChanged);
}
override public function set text(_arg1:String):void{
originalText = _arg1;
if ((_arg1 is String)){
super.text = _arg1.replace(regex, replaceFn);
} else {
super.text = "";
};
trace(super.text);
}
private function languageChanged(_arg1:Event):void{
text = originalText;
updateProperties();
}
}
}//package spill.localisation
Section 36
//PortalGroup (spill.localisation.PortalGroup)
package spill.localisation {
import flash.xml.*;
public class PortalGroup {
public static const YOUNG_ADULTS:uint = 3;
public static const FAMILY:uint = 0;
public static const channelNames:Array = ["family", "tween", "girl", "teen", "zapapa", "hyves"];
public static const ZAPAPA:uint = 4;
public static const HYVES:uint = 5;
public static const TEENS:uint = 1;
public static const GIRL:uint = 2;
public static const backgroundColors:Array = [0xFFFFFF, 0xFFFFFF, 16742331, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF];
public static const NONE:uint = 6;
public static function getName(_arg1:int):String{
return (channelNames[_arg1]);
}
public static function exportXML():XMLNode{
var _local3:XMLNode;
var _local1:XMLNode = new XMLNode(1, "channels");
var _local2:int;
while (_local2 < 5) {
_local3 = new XMLNode(1, "channel");
_local3.attributes.name = channelNames[_local2];
_local3.attributes.id = _local2;
_local1.appendChild(_local3);
_local2++;
};
return (_local1);
}
}
}//package spill.localisation
Section 37
//spil_internal (spill.localisation.spil_internal)
package spill.localisation {
public namespace spil_internal = "spill.localisation";
}//package spill.localisation
Section 38
//SpilGame (spill.localisation.SpilGame)
package spill.localisation {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
public class SpilGame {
private static const cookieName:String = "spilgames_language_v100";
private static const cookiePath:String = "/";
private static const cookieLanguageVar:String = "savedLang";
public static const LANGUAGE_CHANGED:String = "languageChanged";
public static const BRANDING_CHANGED:String = "brandingChanged";
private static var strings:Object = new Object();
public static var currentBranding:Brand;
private static var contexMenuItem:ContextMenuItem;
spil_internal static var gameName:String;
spil_internal static var debugHostDomain:String = "";
private static var localDomains:Object = new Object();
spil_internal static var emailPage:String;
private static var channelLock:Boolean = false;
spil_internal static var debugEmbedDomain:String = "";
private static var eventDispatcher:EventDispatcher;
private static var _init:Boolean = false;
public static var currentLanguage:Language;
spil_internal static var portalGroup:uint;
private static var stage:Sprite;
public static function getSpilCompanyLink():String{
var _local1 = "http://www.gameportal.net/";
_local1 = (_local1 + ("?utm_medium=brandedgames_" + (isExternal) ? "external" : "internal"));
_local1 = (_local1 + ("&utm_campaign=" + gameName));
_local1 = (_local1 + ("&utm_source=" + Brand.stripSubDomain((embedDomain) ? embedDomain : hostingDomain)));
_local1 = (_local1 + "&utm_content=Branding_Link");
return (_local1);
}
public static function getPromotionLink(_arg1:String="feature_promotion"):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getPromotionLink(gameName, emailPage, isExternal, _local2, _arg1));
}
public static function traceAllBrands():void{
trace(outputAllBrands());
}
public static function getString(_arg1:String):String{
var _local2:Object = strings[_arg1];
if (_local2){
if (currentLanguage.textLanguage){
return (_local2[currentLanguage.textLanguage]);
};
if (_local2[currentLanguage.name]){
return (_local2[currentLanguage.name]);
};
return (_local2["en_us"]);
//unresolved jump
};
return ("");
}
public static function initialize(_arg1:String, _arg2:int, _arg3:String, _arg4:Sprite, _arg5:Boolean=false):void{
stage = _arg4;
if (_init){
trace("ERROR: LocalisationManager already initialised");
return;
};
_init = true;
localDomains["localhost"] = true;
localDomains["www8.agame.com"] = true;
localDomains["gamedev.dev.spilgames.com"] = true;
localDomains["stg.spel.nl"] = true;
localDomains["stg.girlsgogames.nl"] = true;
localDomains["stg.pl.spel.nl"] = true;
localDomains["stg.pl.girlsgogames.nl"] = true;
trace(localDomains["stg.girlsgogames.nl"]);
Brandings.initialize();
Languages.initialize();
initContexMenu(_arg4);
channelLock = _arg5;
gameName = _arg1.replace(" ", "_");
portalGroup = _arg2;
emailPage = _arg3;
chooseLanguage();
chooseBranding();
if (portalGroup == PortalGroup.HYVES){
changeLanguage("nl");
};
}
public static function get isExternal():Boolean{
return (((((!(Brandings.hasDomain(embedDomain))) && (!(localDomains[embedDomain])))) && (!(isStagingDomain))));
}
private static function initContexMenu(_arg1:Sprite):void{
contexMenuItem = new ContextMenuItem("");
_arg1.contextMenu = new ContextMenu();
_arg1.contextMenu.customItems.push(contexMenuItem);
contexMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contexMenuClicked);
}
private static function replaceFn():String{
var _local2:String = SpilGame.getString(arguments[1]);
if (((!(_local2)) || ((_local2 == "")))){
return ((("{" + arguments[1]) + "}"));
};
return (_local2);
}
spil_internal static function get hostingDomain():String{
var _local1:LocalConnection;
if (debugHostDomain != ""){
return (debugHostDomain);
};
_local1 = new LocalConnection();
return (_local1.domain);
}
spil_internal static function chooseLanguage():void{
if (cookieLanguage != null){
currentLanguage = cookieLanguage;
} else {
if (isExternal){
currentLanguage = systemLanguage;
} else {
currentLanguage = portalLanguage;
if (!currentLanguage){
currentLanguage = systemLanguage;
};
};
};
if (!currentLanguage){
trace("Unable to determine language, using 'English US'");
currentLanguage = Languages.getLanguage("en_us");
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
private static function contexMenuClicked(_arg1:ContextMenuEvent):void{
navigateToURL(new URLRequest(getMoreGamesLink("Contex_Menu")));
}
public static function initTextField(_arg1:TextField):void{
var _local2:TextFormat;
trace(_arg1.text);
_arg1.text = _arg1.text.replace(/{([^{}]*)}/g, replaceFn);
trace(_arg1.text);
_arg1.embedFonts = currentLanguage.embedFonts;
if (currentLanguage.forceFont != ""){
_local2 = new TextFormat();
_local2.font = currentLanguage.forceFont;
_arg1.setTextFormat(_local2);
};
}
public static function importXMLv2(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.attribute("identifier")] = new Object());
for each (_local4 in _local2.children()) {
if (_local4.children().length() > 0){
_local3[_local4.name()] = _local4.children()[0].toString();
} else {
_local3[_local4.name()] = "";
};
};
};
}
spil_internal static function changeLanguage(_arg1:String):void{
var _local2:Language = Languages.getLanguage(_arg1);
if (!_local2){
trace("ERROR: Supplied language string does not have a matching language");
} else {
cookieLanguage = _local2;
currentLanguage = _local2;
};
TextFieldFit.embedFonts = currentLanguage.embedFonts;
TextFieldFit.forceFont = currentLanguage.forceFont;
chooseBranding();
dispatchEvent(new Event(LANGUAGE_CHANGED));
}
public static function getSendToFriendLink():String{
return (currentBranding.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain));
}
spil_internal static function chooseBranding():void{
currentBranding = Brandings.getBrandByDomain(currentLanguage.portal_groups[portalGroup]);
if (!(currentBranding is Brand)){
currentBranding = Brandings.getBrandByDomain("www.agame.com");
};
contexMenuItem.caption = ("More Games: " + currentBranding.domain);
dispatchEvent(new Event(BRANDING_CHANGED));
}
spil_internal static function get systemLanguage():Language{
return (Languages.getLanguage(Capabilities.language));
}
spil_internal static function set cookieLanguage(_arg1:Language):void{
var _local2:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
if (_arg1 == null){
_local2.data[cookieLanguageVar] = null;
} else {
_local2.data[cookieLanguageVar] = _arg1.name;
};
_local2.flush();
}
public static function importXML(_arg1:XML):void{
var _local2:XML;
var _local3:Object;
var _local4:XML;
for each (_local2 in _arg1.children()) {
_local3 = (strings[_local2.identifier] = new Object());
for each (_local4 in _local2.children()) {
_local3[_local4.name()] = _local4.children()[0].toString();
};
};
}
spil_internal static function dispatchEvent(_arg1:Event):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.dispatchEvent(_arg1);
}
private static function getDomain(_arg1:String):String{
var _local2:String;
var _local3:uint;
if (_arg1.indexOf("file") == 0){
return ("offline_play");
};
_local2 = new String();
_local3 = 7;
while (_local3 < _arg1.length) {
if (_arg1.charAt(_local3) == "/"){
break;
};
_local2 = (_local2 + _arg1.charAt(_local3));
_local3++;
};
if (_local2 == "localhost"){
_local2 = "offline_play";
};
return (_local2);
}
public static function exportXML():XML{
var _local1:XML = <spil_games/>
;
_local1.appendChild(Brandings.exportXML());
_local1.appendChild(Languages.exportXML());
_local1.appendChild(PortalGroup.exportXML());
return (_local1);
}
public static function removeEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.removeEventListener(_arg1, _arg2, _arg3);
}
public static function outputAllBrands():String{
var _local3:Brand;
var _local1:Array = Brandings.getBrandsArray();
var _local2 = "";
for each (_local3 in _local1) {
_local2 = (_local2 + (_local3.getSendToFriendLink(gameName, emailPage, isExternal, embedDomain) + "\n"));
};
return (_local2);
}
public static function addEventListener(_arg1:String, _arg2:Function, _arg3:Boolean=false, _arg4:int=0, _arg5:Boolean=false):void{
if (!eventDispatcher){
eventDispatcher = new EventDispatcher();
};
eventDispatcher.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
}
public static function getMoreGamesLink(_arg1:String=""):String{
var _local2:String = (embedDomain) ? embedDomain : hostingDomain;
return (currentBranding.getMoreGamesLink(gameName, isExternal, _local2, _arg1));
}
public static function get isStagingDomain():Boolean{
var _local1:String = ("http://" + embedDomain);
return ((_local1.indexOf("http://stg.") >= 0));
}
spil_internal static function get cookieLanguage():Language{
var _local1:SharedObject = SharedObject.getLocal(cookieName, cookiePath);
var _local2:String = String(_local1.data[cookieLanguageVar]);
return (Languages.getLanguage(_local2));
}
private static function get portalLanguage():Language{
var _local1:Brand;
var _local2:String;
var _local3:Language;
if (isExternal){
return (null);
};
if (!embedDomain){
return (null);
};
_local1 = Brandings.getBrandByDomain(embedDomain);
if (!_local1){
return (null);
};
_local2 = _local1.preferedLanguage;
if (!_local2){
return (null);
};
_local3 = Languages.getLanguage(_local2);
if (!_local3){
return (null);
};
return (_local3);
}
spil_internal static function get embedDomain():String{
var loc:String;
if (debugEmbedDomain != ""){
return (debugEmbedDomain);
};
if (ExternalInterface.available){
try {
loc = ExternalInterface.call("window.location.href.toString");
if (((!((loc == ""))) && (!((loc == null))))){
trace(("embed domain = " + getDomain(loc)));
return (getDomain(loc));
};
} catch(e:SecurityError) {
trace(("Security Error connecting to external interface, error = " + e));
} catch(e:Error) {
trace(("Error connecting to external interface, error = " + e));
};
};
return (null);
}
}
}//package spill.localisation
Section 39
//SpilGamesLink (spill.localisation.SpilGamesLink)
package spill.localisation {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class SpilGamesLink extends SimpleButton {
public function SpilGamesLink(){
addEventListener(MouseEvent.CLICK, buttonClicked);
}
private function buttonClicked(_arg1:MouseEvent):void{
navigateToURL(new URLRequest(SpilGame.getSpilCompanyLink()), "_blank");
}
}
}//package spill.localisation
Section 40
//TextFieldFit (spill.localisation.TextFieldFit)
package spill.localisation {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.utils.*;
import flash.filters.*;
public class TextFieldFit extends MovieClip {
protected var _glowQuality:Number;// = 1
protected var _gridFitType:String;// = "pixel"
private var field:TextField;
protected var _text:String;// = "default"
private var debugBounding:Sprite;
protected var _disableWordwrap:Boolean;// = false
protected var _textSize:Number;// = 12
protected var _multiline:Boolean;// = false
protected var _font:String;// = ""
protected var _embedFonts:Boolean;// = true
protected var _underline:Boolean;// = false
protected var _vAlign:String;// = "top"
protected var _italic:Boolean;// = false
protected var _useGlowFilter:Boolean;// = false
protected var _glowColor:uint;// = 0
protected var _bold:Boolean;// = false
private var h:Number;
protected var _antiAliasType:String;// = "advanced"
private var sizeChanged:Boolean;// = true
protected var _numLines:uint;// = 1
private var w:Number;
private var embeddedFonts:Array;
protected var _hAlign:String;// = "left"
protected var _textColor:uint;// = 0
protected var _glowStrength:Number;// = 5
protected var _glowBlur:Number;// = 3
protected var _selectable:Boolean;// = false
private var format:TextFormat;
private var valid:Boolean;// = true
private static const gutter:Number = 2;
spil_internal static var embedFonts:Boolean = true;
spil_internal static var forceAAType:String = null;
spil_internal static var forceFont:String = null;
public static var alwaysCheckWidth:Boolean = false;
public function TextFieldFit(){
var _local1:Boolean = ((!((parent == null))) && ((getQualifiedClassName(parent) == "fl.livepreview::LivePreviewParent")));
var _local2:Number = width;
var _local3:Number = height;
if (numChildren > 0){
removeChildAt(0);
};
if (!field){
field = new TextField();
addChild(field);
};
field.border = false;
field.background = false;
field.type = TextFieldType.DYNAMIC;
mouseEnabled = false;
mouseChildren = false;
format = new TextFormat();
embeddedFonts = Font.enumerateFonts(false);
setSize(_local2, _local3);
validate();
if (stage){
addEventListener(Event.RENDER, init);
stage.invalidate();
};
init();
}
private function resizeText(_arg1:Boolean=false):void{
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
if (format.size <= 3){
trace("WARNING: Text resised to 3px, either an error occured or the text just wont fit");
return;
};
field.setTextFormat(format);
resizeText(true);
} else {
if (_arg1 == false){
while (doesTextFit()) {
if (format.size <= textSize){
format.size = Object((Number(format.size) + 1));
field.setTextFormat(format);
if (!doesTextFit()){
format.size = Object((Number(format.size) - 1));
field.setTextFormat(format);
break;
};
} else {
break;
};
};
};
};
}
public function set bold(_arg1:Boolean):void{
_bold = _arg1;
invalidate();
}
private function init(_arg1:Event=null):void{
removeEventListener(Event.RENDER, init);
updateProperties();
layoutText();
}
private function validate(_arg1:Event=null):void{
updateProperties();
layoutText();
removeEventListener(Event.ENTER_FRAME, validate);
valid = true;
}
public function get numLines():uint{
return (_numLines);
}
public function get glowStrength():Number{
return (_glowStrength);
}
public function set glowBlur(_arg1:Number):void{
_glowBlur = _arg1;
invalidate();
}
public function get vAlign():String{
return (_vAlign);
}
public function get italic():Boolean{
return (_italic);
}
public function set numLines(_arg1:uint):void{
_numLines = _arg1;
invalidate();
}
public function get textColor():uint{
return (_textColor);
}
private function invalidate():void{
if (valid){
addEventListener(Event.ENTER_FRAME, validate);
if (stage){
stage.invalidate();
};
valid = false;
};
}
public function get text():String{
return (_text);
}
public function get useGlowFilter():Boolean{
return (_useGlowFilter);
}
public function get selectable():Boolean{
return (_selectable);
}
public function set text(_arg1:String):void{
_text = _arg1;
invalidate();
}
public function set embedFonts(_arg1:Boolean):void{
_embedFonts = _arg1;
invalidate();
}
public function set vAlign(_arg1:String):void{
_vAlign = _arg1;
invalidate();
}
public function set italic(_arg1:Boolean):void{
_italic = _arg1;
invalidate();
}
public function get font():String{
return (_font);
}
public function get disableWordwrap():Boolean{
return (_disableWordwrap);
}
public function set textColor(_arg1:uint):void{
_textColor = _arg1;
invalidate();
}
public function get antiAliasType():String{
return (_antiAliasType);
}
public function set multiline(_arg1:Boolean):void{
_multiline = _arg1;
invalidate();
}
private function layoutText():void{
resizeText();
field.height = (field.textHeight + (gutter * 2));
if (vAlign == "top"){
field.y = 0;
} else {
if (vAlign == "middle"){
field.y = ((h - field.height) / 2);
} else {
if (vAlign == "bottom"){
field.y = (h - field.height);
};
};
};
}
public function set glowQuality(_arg1:Number):void{
_glowQuality = _arg1;
invalidate();
}
public function get hAlign():String{
return (_hAlign);
}
public function setSize(_arg1:Number, _arg2:Number):void{
w = _arg1;
h = _arg2;
scaleX = (scaleY = 1);
field.width = w;
field.height = h;
invalidate();
}
public function get bold():Boolean{
return (_bold);
}
public function set gridFitType(_arg1:String):void{
_gridFitType = _arg1;
invalidate();
}
public function set underline(_arg1:Boolean):void{
_underline = _arg1;
invalidate();
}
public function get glowBlur():Number{
return (_glowBlur);
}
public function set useGlowFilter(_arg1:Boolean):void{
_useGlowFilter = _arg1;
invalidate();
}
public function set textSize(_arg1:Number):void{
_textSize = _arg1;
sizeChanged = true;
invalidate();
}
public function set font(_arg1:String):void{
_font = _arg1;
invalidate();
}
public function set selectable(_arg1:Boolean):void{
_selectable = _arg1;
invalidate();
}
public function get multiline():Boolean{
return (_multiline);
}
public function get embedFonts():Boolean{
return (_embedFonts);
}
public function set glowColor(_arg1:uint):void{
_glowColor = _arg1;
invalidate();
}
public function set disableWordwrap(_arg1:Boolean):void{
_disableWordwrap = _arg1;
invalidate();
}
public function get glowQuality():Number{
return (_glowQuality);
}
public function get gridFitType():String{
return (_gridFitType);
}
public function get underline():Boolean{
return (_underline);
}
public function get textField():TextField{
return (field);
}
public function get textSize():Number{
return (_textSize);
}
public function get glowColor():uint{
return (_glowColor);
}
public function set antiAliasType(_arg1:String):void{
_antiAliasType = _arg1;
invalidate();
}
protected function updateProperties():void{
var _local1:Boolean;
var _local2:Font;
field.text = _text;
field.multiline = ((((_text.indexOf(" ") < 0)) && ((_text.length < 14)))) ? false : _multiline;
field.wordWrap = ((field.multiline) && (!(_disableWordwrap)));
field.selectable = _selectable;
field.antiAliasType = (forceAAType) ? forceAAType : _antiAliasType;
field.gridFitType = _gridFitType;
embeddedFonts = Font.enumerateFonts(false);
if (((((_embedFonts) && (!((_font == ""))))) && (TextFieldFit.embedFonts))){
_local1 = false;
for each (_local2 in embeddedFonts) {
if (_font == _local2.fontName){
_local1 = true;
break;
};
};
field.embedFonts = _local1;
if (!_local1){
trace(((("WARNING: Embedded font '" + _font) + "' not found, disabling embedding of fonts, text = ") + _text));
} else {
trace((("Found Embedded font '" + _font) + "' using font"));
};
} else {
field.embedFonts = false;
};
if (TextFieldFit.forceFont){
format.font = TextFieldFit.forceFont;
} else {
format.font = _font;
};
if (sizeChanged){
format.size = _textSize;
};
format.color = _textColor;
format.align = _hAlign;
format.bold = _bold;
format.italic = _italic;
format.underline = _underline;
format.leftMargin = 0;
format.rightMargin = 0;
field.setTextFormat(format);
if (_useGlowFilter){
filters = [new GlowFilter(_glowColor, 1, _glowBlur, _glowBlur, _glowStrength, _glowQuality)];
} else {
filters = [];
};
}
public function set glowStrength(_arg1:Number):void{
_glowStrength = _arg1;
invalidate();
}
private function doesTextFit():Boolean{
if (((!(field.multiline)) || (alwaysCheckWidth))){
if (((((field.textHeight + (gutter * 2)) > h)) || (((field.textWidth + (gutter * 2)) > w)))){
return (false);
};
} else {
if (field.multiline){
if (field.numLines > _numLines){
return (false);
};
};
};
return (true);
}
public function set hAlign(_arg1:String):void{
_hAlign = _arg1;
invalidate();
}
}
}//package spill.localisation
Section 41
//btn_credits_249 (Teen_fla.btn_credits_249)
package Teen_fla {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class btn_credits_249 extends MovieClip {
public var __id9_:LocalizedTextField;
public function btn_credits_249(){
addFrameScript(0, frame1);
__setProp___id9__btn_credits_Layer7_0();
}
function __setProp___id9__btn_credits_Layer7_0(){
try {
__id9_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id9_.text = "{mm_credits}";
__id9_.textColor = 0xFFFFFF;
__id9_.textSize = 18;
__id9_.bold = true;
__id9_.disableWordwrap = true;
__id9_.embedFonts = true;
__id9_.font = "Arial";
__id9_.hAlign = "left";
__id9_.multiline = true;
__id9_.vAlign = "top";
__id9_.antiAliasType = "advanced";
__id9_.glowBlur = 3;
__id9_.glowColor = 0;
__id9_.useGlowFilter = true;
__id9_.glowQuality = 1;
__id9_.glowStrength = 5;
__id9_.gridFitType = "pixel";
__id9_.italic = false;
__id9_.selectable = false;
__id9_.underline = false;
try {
__id9_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package Teen_fla
Section 42
//btn_instructions_246 (Teen_fla.btn_instructions_246)
package Teen_fla {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class btn_instructions_246 extends MovieClip {
public var __id10_:LocalizedTextField;
public function btn_instructions_246(){
addFrameScript(0, frame1);
__setProp___id10__btn_instructions_Layer7_0();
}
function __setProp___id10__btn_instructions_Layer7_0(){
try {
__id10_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id10_.text = "{mm_instructions}";
__id10_.textColor = 0xFFFFFF;
__id10_.textSize = 18;
__id10_.bold = true;
__id10_.disableWordwrap = true;
__id10_.embedFonts = true;
__id10_.font = "Arial";
__id10_.hAlign = "left";
__id10_.multiline = true;
__id10_.vAlign = "top";
__id10_.antiAliasType = "advanced";
__id10_.glowBlur = 3;
__id10_.glowColor = 0;
__id10_.useGlowFilter = true;
__id10_.glowQuality = 1;
__id10_.glowStrength = 5;
__id10_.gridFitType = "pixel";
__id10_.italic = false;
__id10_.selectable = false;
__id10_.underline = false;
try {
__id10_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package Teen_fla
Section 43
//btn_music_253 (Teen_fla.btn_music_253)
package Teen_fla {
import flash.display.*;
public dynamic class btn_music_253 extends MovieClip {
public function btn_music_253(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Teen_fla
Section 44
//btn_pause_252 (Teen_fla.btn_pause_252)
package Teen_fla {
import flash.display.*;
public dynamic class btn_pause_252 extends MovieClip {
public function btn_pause_252(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Teen_fla
Section 45
//btn_play_250 (Teen_fla.btn_play_250)
package Teen_fla {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class btn_play_250 extends MovieClip {
public var __id8_:LocalizedTextField;
public function btn_play_250(){
addFrameScript(0, frame1);
__setProp___id8__btn_play_Layer7_0();
}
function __setProp___id8__btn_play_Layer7_0(){
try {
__id8_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id8_.text = "{mm_play}";
__id8_.textColor = 0xFFFFFF;
__id8_.textSize = 18;
__id8_.bold = true;
__id8_.disableWordwrap = true;
__id8_.embedFonts = true;
__id8_.font = "Arial";
__id8_.hAlign = "left";
__id8_.multiline = true;
__id8_.vAlign = "top";
__id8_.antiAliasType = "advanced";
__id8_.glowBlur = 3;
__id8_.glowColor = 0;
__id8_.useGlowFilter = true;
__id8_.glowQuality = 1;
__id8_.glowStrength = 5;
__id8_.gridFitType = "pixel";
__id8_.italic = false;
__id8_.selectable = false;
__id8_.underline = false;
try {
__id8_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package Teen_fla
Section 46
//btn_retry_255 (Teen_fla.btn_retry_255)
package Teen_fla {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class btn_retry_255 extends MovieClip {
public var __id2_:LocalizedTextField;
public function btn_retry_255(){
addFrameScript(0, frame1);
__setProp___id2__btn_retry_Layer7_0();
}
function frame1(){
stop();
}
function __setProp___id2__btn_retry_Layer7_0(){
try {
__id2_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id2_.text = "{go_retry}";
__id2_.textColor = 0xFFFFFF;
__id2_.textSize = 14;
__id2_.bold = false;
__id2_.disableWordwrap = false;
__id2_.embedFonts = true;
__id2_.font = "Arial";
__id2_.hAlign = "left";
__id2_.multiline = false;
__id2_.vAlign = "top";
__id2_.antiAliasType = "advanced";
__id2_.glowBlur = 3;
__id2_.glowColor = 0;
__id2_.useGlowFilter = true;
__id2_.glowQuality = 1;
__id2_.glowStrength = 5;
__id2_.gridFitType = "pixel";
__id2_.italic = false;
__id2_.selectable = false;
__id2_.underline = false;
try {
__id2_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Teen_fla
Section 47
//btn_submitscore_256 (Teen_fla.btn_submitscore_256)
package Teen_fla {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class btn_submitscore_256 extends MovieClip {
public var __id1_:LocalizedTextField;
public function btn_submitscore_256(){
addFrameScript(0, frame1);
__setProp___id1__btn_submitscore_mask_0();
}
function __setProp___id1__btn_submitscore_mask_0(){
try {
__id1_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id1_.text = "{go_submit}";
__id1_.textColor = 0xFFFFFF;
__id1_.textSize = 14;
__id1_.bold = false;
__id1_.disableWordwrap = false;
__id1_.embedFonts = true;
__id1_.font = "Arial";
__id1_.hAlign = "left";
__id1_.multiline = false;
__id1_.vAlign = "top";
__id1_.antiAliasType = "advanced";
__id1_.glowBlur = 3;
__id1_.glowColor = 0;
__id1_.useGlowFilter = true;
__id1_.glowQuality = 1;
__id1_.glowStrength = 5;
__id1_.gridFitType = "pixel";
__id1_.italic = false;
__id1_.selectable = false;
__id1_.underline = false;
try {
__id1_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
stop();
}
}
}//package Teen_fla
Section 48
//convetorbelt_161 (Teen_fla.convetorbelt_161)
package Teen_fla {
import flash.display.*;
public dynamic class convetorbelt_161 extends MovieClip {
public var cube5:MovieClip;
public var cube1:MovieClip;
public var cube3:MovieClip;
public var cube:MovieClip;
public var cube2:MovieClip;
public var cube4:MovieClip;
public function convetorbelt_161(){
addFrameScript(0, frame1, 130, frame131, 241, frame242, 353, frame354, 465, frame466, 521, frame522, 577, frame578, 632, frame633, 655, frame656, 678, frame679);
}
public function RandomRange(_arg1:Number, _arg2:Number){
var _local3:Number = ((Math.random() * (_arg2 - _arg1)) + _arg1);
return (_local3);
}
function frame131(){
cube1.gotoAndStop(Math.ceil(RandomRange(1, 11)));
}
function frame1(){
}
function frame522(){
cube1.gotoAndStop(1);
}
function frame578(){
cube5.gotoAndStop(Math.ceil(RandomRange(1, 11)));
}
function frame679(){
cube4.gotoAndStop(1);
}
function frame354(){
cube3.gotoAndStop(Math.ceil(RandomRange(1, 11)));
}
function frame466(){
cube4.gotoAndStop(Math.ceil(RandomRange(1, 11)));
}
function frame633(){
cube2.gotoAndStop(1);
}
function frame656(){
cube3.gotoAndStop(1);
}
function frame242(){
cube2.gotoAndStop(Math.ceil(RandomRange(1, 11)));
}
}
}//package Teen_fla
Section 49
//e9_claw_ani_35 (Teen_fla.e9_claw_ani_35)
package Teen_fla {
import flash.display.*;
public dynamic class e9_claw_ani_35 extends MovieClip {
public function e9_claw_ani_35(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Teen_fla
Section 50
//flag_icon_266 (Teen_fla.flag_icon_266)
package Teen_fla {
import flash.display.*;
public dynamic class flag_icon_266 extends MovieClip {
public function flag_icon_266(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Teen_fla
Section 51
//gameovermenu_254 (Teen_fla.gameovermenu_254)
package Teen_fla {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class gameovermenu_254 extends MovieClip {
public var sub:MovieClip;
public var __id7_:LocalizedTextField;
public var __id5_:LocalizedTextField;
public var __id3_:LocalizedTextField;
public var go_rank_text:TextField;
public var mnu_gameOVer_retry:MovieClip;
public var __setPropDict:Dictionary;
public var go_foes_text:TextField;
public var __id6_:LocalizedTextField;
public var __id4_:LocalizedTextField;
public var go_waves_text:TextField;
public var go_score_text:TextField;
public function gameovermenu_254(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(0, frame1, 4, frame5);
}
function __setProp___id5__gameovermenu_text_4(){
try {
__id5_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id5_.text = "{ig_wave}";
__id5_.textColor = 0xFFFFFF;
__id5_.textSize = 16;
__id5_.bold = false;
__id5_.disableWordwrap = false;
__id5_.embedFonts = true;
__id5_.font = "Arial";
__id5_.hAlign = "left";
__id5_.multiline = false;
__id5_.vAlign = "top";
__id5_.antiAliasType = "advanced";
__id5_.glowBlur = 3;
__id5_.glowColor = 0;
__id5_.useGlowFilter = true;
__id5_.glowQuality = 1;
__id5_.glowStrength = 5;
__id5_.gridFitType = "pixel";
__id5_.italic = false;
__id5_.selectable = false;
__id5_.underline = false;
try {
__id5_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id4__gameovermenu_text_4(){
try {
__id4_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id4_.text = "{go_score}";
__id4_.textColor = 0xFFFFFF;
__id4_.textSize = 16;
__id4_.bold = false;
__id4_.disableWordwrap = false;
__id4_.embedFonts = true;
__id4_.font = "Arial";
__id4_.hAlign = "left";
__id4_.multiline = false;
__id4_.vAlign = "top";
__id4_.antiAliasType = "advanced";
__id4_.glowBlur = 3;
__id4_.glowColor = 0;
__id4_.useGlowFilter = true;
__id4_.glowQuality = 1;
__id4_.glowStrength = 5;
__id4_.gridFitType = "pixel";
__id4_.italic = false;
__id4_.selectable = false;
__id4_.underline = false;
try {
__id4_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame5(){
if ((((__setPropDict[__id7_] == undefined)) || (!((int(__setPropDict[__id7_]) == 5))))){
__setPropDict[__id7_] = 5;
__setProp___id7__gameovermenu_text_4();
};
if ((((__setPropDict[__id6_] == undefined)) || (!((int(__setPropDict[__id6_]) == 5))))){
__setPropDict[__id6_] = 5;
__setProp___id6__gameovermenu_text_4();
};
if ((((__setPropDict[__id5_] == undefined)) || (!((int(__setPropDict[__id5_]) == 5))))){
__setPropDict[__id5_] = 5;
__setProp___id5__gameovermenu_text_4();
};
if ((((__setPropDict[__id4_] == undefined)) || (!((int(__setPropDict[__id4_]) == 5))))){
__setPropDict[__id4_] = 5;
__setProp___id4__gameovermenu_text_4();
};
if ((((__setPropDict[__id3_] == undefined)) || (!((int(__setPropDict[__id3_]) == 5))))){
__setPropDict[__id3_] = 5;
__setProp___id3__gameovermenu_text_4();
};
stop();
MovieClip(root).realizeGameOver();
}
function __setProp___id6__gameovermenu_text_4(){
try {
__id6_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id6_.text = "{go_rank}";
__id6_.textColor = 0xFFFFFF;
__id6_.textSize = 16;
__id6_.bold = false;
__id6_.disableWordwrap = false;
__id6_.embedFonts = true;
__id6_.font = "Arial";
__id6_.hAlign = "left";
__id6_.multiline = false;
__id6_.vAlign = "top";
__id6_.antiAliasType = "advanced";
__id6_.glowBlur = 3;
__id6_.glowColor = 0;
__id6_.useGlowFilter = true;
__id6_.glowQuality = 1;
__id6_.glowStrength = 5;
__id6_.gridFitType = "pixel";
__id6_.italic = false;
__id6_.selectable = false;
__id6_.underline = false;
try {
__id6_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame1(){
MovieClip(root).sndMgr.playSound("Open");
}
function __setProp___id7__gameovermenu_text_4(){
try {
__id7_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id7_.text = "{go_game_over}";
__id7_.textColor = 0xFF0000;
__id7_.textSize = 46;
__id7_.bold = true;
__id7_.disableWordwrap = true;
__id7_.embedFonts = true;
__id7_.font = "Arial";
__id7_.hAlign = "left";
__id7_.multiline = true;
__id7_.vAlign = "top";
__id7_.antiAliasType = "advanced";
__id7_.glowBlur = 3;
__id7_.glowColor = 0;
__id7_.useGlowFilter = true;
__id7_.glowQuality = 1;
__id7_.glowStrength = 5;
__id7_.gridFitType = "pixel";
__id7_.italic = false;
__id7_.selectable = false;
__id7_.underline = false;
try {
__id7_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id3__gameovermenu_text_4(){
try {
__id3_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id3_.text = "{go_kills}";
__id3_.textColor = 0xFFFFFF;
__id3_.textSize = 16;
__id3_.bold = false;
__id3_.disableWordwrap = false;
__id3_.embedFonts = true;
__id3_.font = "Arial";
__id3_.hAlign = "left";
__id3_.multiline = false;
__id3_.vAlign = "top";
__id3_.antiAliasType = "advanced";
__id3_.glowBlur = 3;
__id3_.glowColor = 0;
__id3_.useGlowFilter = true;
__id3_.glowQuality = 1;
__id3_.glowStrength = 5;
__id3_.gridFitType = "pixel";
__id3_.italic = false;
__id3_.selectable = false;
__id3_.underline = false;
try {
__id3_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package Teen_fla
Section 52
//gui_ammo_indicator_167 (Teen_fla.gui_ammo_indicator_167)
package Teen_fla {
import flash.display.*;
public dynamic class gui_ammo_indicator_167 extends MovieClip {
public function gui_ammo_indicator_167(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package Teen_fla
Section 53
//gui_health_indicator_166 (Teen_fla.gui_health_indicator_166)
package Teen_fla {
import flash.display.*;
public dynamic class gui_health_indicator_166 extends MovieClip {
public function gui_health_indicator_166(){
addFrameScript(16, frame17);
}
function frame17(){
stop();
}
}
}//package Teen_fla
Section 54
//HardcircleLogo_172 (Teen_fla.HardcircleLogo_172)
package Teen_fla {
import flash.display.*;
public dynamic class HardcircleLogo_172 extends MovieClip {
public function HardcircleLogo_172(){
addFrameScript(90, frame91);
}
function frame91(){
stop();
}
}
}//package Teen_fla
Section 55
//mainmenu_optionwindow_245 (Teen_fla.mainmenu_optionwindow_245)
package Teen_fla {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class mainmenu_optionwindow_245 extends MovieClip {
public var mm_play:MovieClip;
public var mm_instructions:MovieClip;
public var mm_credits:MovieClip;
public function mainmenu_optionwindow_245(){
addFrameScript(14, frame15, 24, frame25);
}
function frame25(){
stop();
MovieClip(parent).realizeMainMenu();
}
function frame15(){
MovieClip(root).sndMgr.playSound("Open");
}
}
}//package Teen_fla
Section 56
//metalBlockandenemyPieces_162 (Teen_fla.metalBlockandenemyPieces_162)
package Teen_fla {
import flash.display.*;
public dynamic class metalBlockandenemyPieces_162 extends MovieClip {
public function metalBlockandenemyPieces_162(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Teen_fla
Section 57
//player_death_ani_148 (Teen_fla.player_death_ani_148)
package Teen_fla {
import flash.display.*;
public dynamic class player_death_ani_148 extends MovieClip {
public function player_death_ani_148(){
addFrameScript(19, frame20);
}
function frame20(){
stop();
}
}
}//package Teen_fla
Section 58
//Robocity_logo_243 (Teen_fla.Robocity_logo_243)
package Teen_fla {
import flash.display.*;
public dynamic class Robocity_logo_243 extends MovieClip {
public function Robocity_logo_243(){
addFrameScript(39, frame40);
}
function frame40(){
stop();
}
}
}//package Teen_fla
Section 59
//smoke_164 (Teen_fla.smoke_164)
package Teen_fla {
import flash.display.*;
public dynamic class smoke_164 extends MovieClip {
public function smoke_164(){
addFrameScript(14, frame15);
}
function frame15(){
stop();
}
}
}//package Teen_fla
Section 60
//AmmoPickup (AmmoPickup)
package {
import flash.display.*;
public dynamic class AmmoPickup extends MovieClip {
public var mask_ammo:MovieClip;
public function AmmoPickup(){
addFrameScript(44, frame45, 64, frame65);
}
function frame65(){
stop();
}
function frame45(){
gotoAndPlay("Idle");
}
}
}//package
Section 61
//bgm_robocity_ambeance (bgm_robocity_ambeance)
package {
import flash.media.*;
public dynamic class bgm_robocity_ambeance extends Sound {
}
}//package
Section 62
//bgm_robocity_theme (bgm_robocity_theme)
package {
import flash.media.*;
public dynamic class bgm_robocity_theme extends Sound {
}
}//package
Section 63
//crosshair (crosshair)
package {
import flash.display.*;
public dynamic class crosshair extends Sprite {
}
}//package
Section 64
//e10_drill (e10_drill)
package {
import flash.display.*;
public dynamic class e10_drill extends MovieClip {
}
}//package
Section 65
//Enemy_00 (Enemy_00)
package {
import flash.display.*;
public dynamic class Enemy_00 extends MovieClip {
}
}//package
Section 66
//Enemy_00_gibs (Enemy_00_gibs)
package {
import flash.display.*;
public dynamic class Enemy_00_gibs extends MovieClip {
}
}//package
Section 67
//Enemy_01 (Enemy_01)
package {
import flash.display.*;
public dynamic class Enemy_01 extends MovieClip {
}
}//package
Section 68
//Enemy_01_Boss (Enemy_01_Boss)
package {
import flash.display.*;
public dynamic class Enemy_01_Boss extends MovieClip {
}
}//package
Section 69
//Enemy_01_Boss_gibs (Enemy_01_Boss_gibs)
package {
import flash.display.*;
public dynamic class Enemy_01_Boss_gibs extends MovieClip {
}
}//package
Section 70
//Enemy_01_gibs (Enemy_01_gibs)
package {
import flash.display.*;
public dynamic class Enemy_01_gibs extends MovieClip {
}
}//package
Section 71
//Enemy_02 (Enemy_02)
package {
import flash.display.*;
public dynamic class Enemy_02 extends MovieClip {
}
}//package
Section 72
//Enemy_02_Boss (Enemy_02_Boss)
package {
import flash.display.*;
public dynamic class Enemy_02_Boss extends MovieClip {
}
}//package
Section 73
//Enemy_02_Boss_gibs (Enemy_02_Boss_gibs)
package {
import flash.display.*;
public dynamic class Enemy_02_Boss_gibs extends MovieClip {
}
}//package
Section 74
//Enemy_02_gibs (Enemy_02_gibs)
package {
import flash.display.*;
public dynamic class Enemy_02_gibs extends MovieClip {
}
}//package
Section 75
//Enemy_03 (Enemy_03)
package {
import flash.display.*;
public dynamic class Enemy_03 extends MovieClip {
}
}//package
Section 76
//Enemy_03_Boss (Enemy_03_Boss)
package {
import flash.display.*;
public dynamic class Enemy_03_Boss extends MovieClip {
}
}//package
Section 77
//Enemy_03_Boss_gibs (Enemy_03_Boss_gibs)
package {
import flash.display.*;
public dynamic class Enemy_03_Boss_gibs extends MovieClip {
}
}//package
Section 78
//Enemy_03_gibs (Enemy_03_gibs)
package {
import flash.display.*;
public dynamic class Enemy_03_gibs extends MovieClip {
}
}//package
Section 79
//Enemy_04 (Enemy_04)
package {
import flash.display.*;
public dynamic class Enemy_04 extends MovieClip {
}
}//package
Section 80
//Enemy_04_Boss (Enemy_04_Boss)
package {
import flash.display.*;
public dynamic class Enemy_04_Boss extends MovieClip {
}
}//package
Section 81
//Enemy_04_Boss_gibs (Enemy_04_Boss_gibs)
package {
import flash.display.*;
public dynamic class Enemy_04_Boss_gibs extends MovieClip {
}
}//package
Section 82
//Enemy_04_gibs (Enemy_04_gibs)
package {
import flash.display.*;
public dynamic class Enemy_04_gibs extends MovieClip {
}
}//package
Section 83
//Enemy_05 (Enemy_05)
package {
import flash.display.*;
public dynamic class Enemy_05 extends MovieClip {
}
}//package
Section 84
//Enemy_05_Boss (Enemy_05_Boss)
package {
import flash.display.*;
public dynamic class Enemy_05_Boss extends MovieClip {
}
}//package
Section 85
//Enemy_05_Boss_gibs (Enemy_05_Boss_gibs)
package {
import flash.display.*;
public dynamic class Enemy_05_Boss_gibs extends MovieClip {
}
}//package
Section 86
//Enemy_05_gibs (Enemy_05_gibs)
package {
import flash.display.*;
public dynamic class Enemy_05_gibs extends MovieClip {
}
}//package
Section 87
//Enemy_06 (Enemy_06)
package {
import flash.display.*;
public dynamic class Enemy_06 extends MovieClip {
}
}//package
Section 88
//Enemy_06_Boss (Enemy_06_Boss)
package {
import flash.display.*;
public dynamic class Enemy_06_Boss extends MovieClip {
}
}//package
Section 89
//Enemy_06_Boss_gibs (Enemy_06_Boss_gibs)
package {
import flash.display.*;
public dynamic class Enemy_06_Boss_gibs extends MovieClip {
}
}//package
Section 90
//Enemy_06_gibs (Enemy_06_gibs)
package {
import flash.display.*;
public dynamic class Enemy_06_gibs extends MovieClip {
}
}//package
Section 91
//Enemy_07 (Enemy_07)
package {
import flash.display.*;
public dynamic class Enemy_07 extends MovieClip {
}
}//package
Section 92
//Enemy_07_Boss (Enemy_07_Boss)
package {
import flash.display.*;
public dynamic class Enemy_07_Boss extends MovieClip {
}
}//package
Section 93
//Enemy_07_Boss_gibs (Enemy_07_Boss_gibs)
package {
import flash.display.*;
public dynamic class Enemy_07_Boss_gibs extends MovieClip {
}
}//package
Section 94
//Enemy_07_gibs (Enemy_07_gibs)
package {
import flash.display.*;
public dynamic class Enemy_07_gibs extends MovieClip {
}
}//package
Section 95
//Enemy_08 (Enemy_08)
package {
import flash.display.*;
public dynamic class Enemy_08 extends MovieClip {
}
}//package
Section 96
//Enemy_08_gibs (Enemy_08_gibs)
package {
import flash.display.*;
public dynamic class Enemy_08_gibs extends MovieClip {
}
}//package
Section 97
//Enemy_08_Projectile (Enemy_08_Projectile)
package {
import flash.display.*;
public dynamic class Enemy_08_Projectile extends Sprite {
}
}//package
Section 98
//Enemy_09 (Enemy_09)
package {
import flash.display.*;
public dynamic class Enemy_09 extends MovieClip {
}
}//package
Section 99
//Enemy_09_gibs (Enemy_09_gibs)
package {
import flash.display.*;
public dynamic class Enemy_09_gibs extends MovieClip {
}
}//package
Section 100
//Enemy_09_Projectile (Enemy_09_Projectile)
package {
import flash.display.*;
public dynamic class Enemy_09_Projectile extends Sprite {
}
}//package
Section 101
//GameBG (GameBG)
package {
import flash.display.*;
public dynamic class GameBG extends MovieClip {
public var mach:MovieClip;
public var conv:MovieClip;
}
}//package
Section 102
//GameInterface (GameInterface)
package {
import flash.display.*;
import flash.text.*;
public dynamic class GameInterface extends Sprite {
public var gui_waveNumber:TextField;
public var gui_player_Kills_best:TextField;
public var gui_health_indi:MovieClip;
public var gui_player_score_best:TextField;
public var gui_enemiesLeft:TextField;
public var gui_player_Kills:TextField;
public var gui_ammo_indi:MovieClip;
public var gui_player_score:TextField;
}
}//package
Section 103
//Gameispaused (Gameispaused)
package {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Gameispaused extends MovieClip {
public var __id13_:LocalizedTextField;
public var __id12_:LocalizedTextField;
public function Gameispaused(){
__setProp___id12__Gameispaused_Layer1_0();
__setProp___id13__Gameispaused_Layer2_0();
}
function __setProp___id12__Gameispaused_Layer1_0(){
try {
__id12_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id12_.text = "{ll_paused}";
__id12_.textColor = 0xFFFFFF;
__id12_.textSize = 22;
__id12_.bold = true;
__id12_.disableWordwrap = true;
__id12_.embedFonts = true;
__id12_.font = "Arial";
__id12_.hAlign = "center";
__id12_.multiline = true;
__id12_.vAlign = "top";
__id12_.antiAliasType = "advanced";
__id12_.glowBlur = 3;
__id12_.glowColor = 0xFF;
__id12_.useGlowFilter = false;
__id12_.glowQuality = 1;
__id12_.glowStrength = 5;
__id12_.gridFitType = "pixel";
__id12_.italic = false;
__id12_.selectable = false;
__id12_.underline = false;
try {
__id12_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id13__Gameispaused_Layer2_0(){
try {
__id13_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id13_.text = "{ll_resume}";
__id13_.textColor = 0xFFFFFF;
__id13_.textSize = 20;
__id13_.bold = true;
__id13_.disableWordwrap = true;
__id13_.embedFonts = true;
__id13_.font = "Arial";
__id13_.hAlign = "center";
__id13_.multiline = false;
__id13_.vAlign = "top";
__id13_.antiAliasType = "advanced";
__id13_.glowBlur = 0;
__id13_.glowColor = 0xFFFFFF;
__id13_.useGlowFilter = true;
__id13_.glowQuality = 1;
__id13_.glowStrength = 0;
__id13_.gridFitType = "none";
__id13_.italic = false;
__id13_.selectable = false;
__id13_.underline = false;
try {
__id13_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 104
//gameMask (gameMask)
package {
import flash.display.*;
public dynamic class gameMask extends Sprite {
}
}//package
Section 105
//gunFire_onhit (gunFire_onhit)
package {
import flash.display.*;
public dynamic class gunFire_onhit extends MovieClip {
public function gunFire_onhit(){
addFrameScript(5, frame6);
}
function frame6(){
stop();
}
}
}//package
Section 106
//HealthPickup (HealthPickup)
package {
import flash.display.*;
public dynamic class HealthPickup extends MovieClip {
public var mask_ammo:MovieClip;
public function HealthPickup(){
addFrameScript(44, frame45, 62, frame63);
}
function frame63(){
stop();
}
function frame45(){
gotoAndPlay("Idle");
}
}
}//package
Section 107
//LoadBar (LoadBar)
package {
import flash.display.*;
public dynamic class LoadBar extends MovieClip {
}
}//package
Section 108
//mc_player_gun (mc_player_gun)
package {
import flash.display.*;
public dynamic class mc_player_gun extends MovieClip {
public var node:MovieClip;
public var body:MovieClip;
public function mc_player_gun(){
addFrameScript(0, frame1, 52, frame53, 73, frame74);
}
function frame74(){
gotoAndStop("idle");
}
function frame1(){
stop();
}
function frame53(){
gotoAndStop("idle");
}
}
}//package
Section 109
//Player (Player)
package {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class Player extends MovieClip {
public var body:MovieClip;
public function Player(){
addFrameScript(66, frame67, 76, frame77, 124, frame125, 165, frame166, 193, frame194);
}
function frame166(){
gotoAndPlay("player_idle");
}
function frame125(){
gotoAndPlay("player_idle");
}
function frame77(){
gotoAndPlay("player_idle");
}
function frame67(){
gotoAndPlay("player_idle");
}
function frame194(){
stop();
MovieClip(root).gameOver();
}
}
}//package
Section 110
//Player_gibs (Player_gibs)
package {
import flash.display.*;
public dynamic class Player_gibs extends MovieClip {
}
}//package
Section 111
//sfx_beep_1 (sfx_beep_1)
package {
import flash.media.*;
public dynamic class sfx_beep_1 extends Sound {
}
}//package
Section 112
//sfx_beep_2 (sfx_beep_2)
package {
import flash.media.*;
public dynamic class sfx_beep_2 extends Sound {
}
}//package
Section 113
//sfx_deflect_2 (sfx_deflect_2)
package {
import flash.media.*;
public dynamic class sfx_deflect_2 extends Sound {
}
}//package
Section 114
//sfx_destroy_2 (sfx_destroy_2)
package {
import flash.media.*;
public dynamic class sfx_destroy_2 extends Sound {
}
}//package
Section 115
//sfx_fail_2 (sfx_fail_2)
package {
import flash.media.*;
public dynamic class sfx_fail_2 extends Sound {
}
}//package
Section 116
//sfx_pew_1 (sfx_pew_1)
package {
import flash.media.*;
public dynamic class sfx_pew_1 extends Sound {
}
}//package
Section 117
//sfx_pew_2 (sfx_pew_2)
package {
import flash.media.*;
public dynamic class sfx_pew_2 extends Sound {
}
}//package
Section 118
//sfx_pickUp (sfx_pickUp)
package {
import flash.media.*;
public dynamic class sfx_pickUp extends Sound {
}
}//package
Section 119
//sfx_shhht (sfx_shhht)
package {
import flash.media.*;
public dynamic class sfx_shhht extends Sound {
}
}//package
Section 120
//sfx_yuii (sfx_yuii)
package {
import flash.media.*;
public dynamic class sfx_yuii extends Sound {
}
}//package
Section 121
//ui_credits (ui_credits)
package {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class ui_credits extends MovieClip {
public var __id15_:LocalizedTextField;
public var __id14_:LocalizedTextField;
public var __id19_:LocalizedTextField;
public var __id17_:LocalizedTextField;
public var cred_back:MovieClip;
public var __setPropDict:Dictionary;
public var __id18_:LocalizedTextField;
public var __id16_:LocalizedTextField;
public function ui_credits(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(4, frame5);
}
function __setProp___id19__credits_Text_4(){
try {
__id19_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id19_.text = "{back}";
__id19_.textColor = 0xFFFFFF;
__id19_.textSize = 18;
__id19_.bold = false;
__id19_.disableWordwrap = true;
__id19_.embedFonts = true;
__id19_.font = "Arial";
__id19_.hAlign = "left";
__id19_.multiline = true;
__id19_.vAlign = "top";
__id19_.antiAliasType = "normal";
__id19_.glowBlur = 3;
__id19_.glowColor = 0;
__id19_.useGlowFilter = true;
__id19_.glowQuality = 1;
__id19_.glowStrength = 5;
__id19_.gridFitType = "pixel";
__id19_.italic = false;
__id19_.selectable = false;
__id19_.underline = false;
try {
__id19_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id14__credits_Text_4(){
try {
__id14_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id14_.text = "{crd_game}";
__id14_.textColor = 0xFEFE00;
__id14_.textSize = 16;
__id14_.bold = false;
__id14_.disableWordwrap = true;
__id14_.embedFonts = true;
__id14_.font = "Arial";
__id14_.hAlign = "left";
__id14_.multiline = true;
__id14_.vAlign = "top";
__id14_.antiAliasType = "advanced";
__id14_.glowBlur = 3;
__id14_.glowColor = 0;
__id14_.useGlowFilter = true;
__id14_.glowQuality = 1;
__id14_.glowStrength = 5;
__id14_.gridFitType = "pixel";
__id14_.italic = false;
__id14_.selectable = false;
__id14_.underline = false;
try {
__id14_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id16__credits_Text_4(){
try {
__id16_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id16_.text = "{crd_programmer}";
__id16_.textColor = 0xFEFE00;
__id16_.textSize = 16;
__id16_.bold = false;
__id16_.disableWordwrap = true;
__id16_.embedFonts = true;
__id16_.font = "Arial";
__id16_.hAlign = "left";
__id16_.multiline = true;
__id16_.vAlign = "top";
__id16_.antiAliasType = "advanced";
__id16_.glowBlur = 3;
__id16_.glowColor = 0;
__id16_.useGlowFilter = true;
__id16_.glowQuality = 1;
__id16_.glowStrength = 5;
__id16_.gridFitType = "pixel";
__id16_.italic = false;
__id16_.selectable = false;
__id16_.underline = false;
try {
__id16_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id17__credits_Text_4(){
try {
__id17_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id17_.text = "{crd_music}";
__id17_.textColor = 0xFEFE00;
__id17_.textSize = 16;
__id17_.bold = false;
__id17_.disableWordwrap = true;
__id17_.embedFonts = true;
__id17_.font = "Arial";
__id17_.hAlign = "left";
__id17_.multiline = true;
__id17_.vAlign = "top";
__id17_.antiAliasType = "advanced";
__id17_.glowBlur = 3;
__id17_.glowColor = 0;
__id17_.useGlowFilter = true;
__id17_.glowQuality = 1;
__id17_.glowStrength = 5;
__id17_.gridFitType = "pixel";
__id17_.italic = false;
__id17_.selectable = false;
__id17_.underline = false;
try {
__id17_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id18__credits_Text_4(){
try {
__id18_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id18_.text = "{crd_sponsor}";
__id18_.textColor = 0xFEFE00;
__id18_.textSize = 16;
__id18_.bold = false;
__id18_.disableWordwrap = true;
__id18_.embedFonts = true;
__id18_.font = "Arial";
__id18_.hAlign = "left";
__id18_.multiline = true;
__id18_.vAlign = "top";
__id18_.antiAliasType = "advanced";
__id18_.glowBlur = 3;
__id18_.glowColor = 0;
__id18_.useGlowFilter = true;
__id18_.glowQuality = 1;
__id18_.glowStrength = 5;
__id18_.gridFitType = "pixel";
__id18_.italic = false;
__id18_.selectable = false;
__id18_.underline = false;
try {
__id18_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id15__credits_Text_4(){
try {
__id15_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id15_.text = "{crd_artist}";
__id15_.textColor = 0xFEFE00;
__id15_.textSize = 16;
__id15_.bold = false;
__id15_.disableWordwrap = true;
__id15_.embedFonts = true;
__id15_.font = "Arial";
__id15_.hAlign = "left";
__id15_.multiline = true;
__id15_.vAlign = "top";
__id15_.antiAliasType = "advanced";
__id15_.glowBlur = 3;
__id15_.glowColor = 0;
__id15_.useGlowFilter = true;
__id15_.glowQuality = 1;
__id15_.glowStrength = 5;
__id15_.gridFitType = "pixel";
__id15_.italic = false;
__id15_.selectable = false;
__id15_.underline = false;
try {
__id15_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame5(){
if ((((__setPropDict[__id19_] == undefined)) || (!((int(__setPropDict[__id19_]) == 5))))){
__setPropDict[__id19_] = 5;
__setProp___id19__credits_Text_4();
};
if ((((__setPropDict[__id18_] == undefined)) || (!((int(__setPropDict[__id18_]) == 5))))){
__setPropDict[__id18_] = 5;
__setProp___id18__credits_Text_4();
};
if ((((__setPropDict[__id17_] == undefined)) || (!((int(__setPropDict[__id17_]) == 5))))){
__setPropDict[__id17_] = 5;
__setProp___id17__credits_Text_4();
};
if ((((__setPropDict[__id16_] == undefined)) || (!((int(__setPropDict[__id16_]) == 5))))){
__setPropDict[__id16_] = 5;
__setProp___id16__credits_Text_4();
};
if ((((__setPropDict[__id15_] == undefined)) || (!((int(__setPropDict[__id15_]) == 5))))){
__setPropDict[__id15_] = 5;
__setProp___id15__credits_Text_4();
};
if ((((__setPropDict[__id14_] == undefined)) || (!((int(__setPropDict[__id14_]) == 5))))){
__setPropDict[__id14_] = 5;
__setProp___id14__credits_Text_4();
};
stop();
}
}
}//package
Section 122
//ui_instructions (ui_instructions)
package {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class ui_instructions extends MovieClip {
public var __id26_:LocalizedTextField;
public var __id24_:LocalizedTextField;
public var __id22_:LocalizedTextField;
public var __id20_:LocalizedTextField;
public var inst_back:MovieClip;
public var __setPropDict:Dictionary;
public var __id27_:LocalizedTextField;
public var __id25_:LocalizedTextField;
public var __id23_:LocalizedTextField;
public var __id21_:LocalizedTextField;
public function ui_instructions(){
__setPropDict = new Dictionary(true);
super();
addFrameScript(5, frame6);
__setProp___id20__instructions_backbtn_0();
__setProp___id21__instructions_backbtn_0();
__setProp___id22__instructions_backbtn_0();
}
function __setProp___id22__instructions_backbtn_0(){
try {
__id22_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id22_.text = "{ins_items}";
__id22_.textColor = 0xFEFE00;
__id22_.textSize = 14;
__id22_.bold = false;
__id22_.disableWordwrap = false;
__id22_.embedFonts = true;
__id22_.font = "Arial";
__id22_.hAlign = "left";
__id22_.multiline = false;
__id22_.vAlign = "top";
__id22_.antiAliasType = "advanced";
__id22_.glowBlur = 3;
__id22_.glowColor = 0;
__id22_.useGlowFilter = false;
__id22_.glowQuality = 1;
__id22_.glowStrength = 5;
__id22_.gridFitType = "pixel";
__id22_.italic = false;
__id22_.selectable = false;
__id22_.underline = false;
try {
__id22_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id25__instructions_Layer3_5(){
try {
__id25_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id25_.text = "- {ins_reload}";
__id25_.textColor = 0xFFFFFF;
__id25_.textSize = 14;
__id25_.bold = false;
__id25_.disableWordwrap = true;
__id25_.embedFonts = true;
__id25_.font = "Arial";
__id25_.hAlign = "left";
__id25_.multiline = false;
__id25_.vAlign = "top";
__id25_.antiAliasType = "advanced";
__id25_.glowBlur = 3;
__id25_.glowColor = 0;
__id25_.useGlowFilter = false;
__id25_.glowQuality = 1;
__id25_.glowStrength = 5;
__id25_.gridFitType = "pixel";
__id25_.italic = false;
__id25_.selectable = false;
__id25_.underline = false;
try {
__id25_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id23__instructions_Layer3_5(){
try {
__id23_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id23_.text = "- {ins_to_aim}";
__id23_.textColor = 0xFFFFFF;
__id23_.textSize = 14;
__id23_.bold = false;
__id23_.disableWordwrap = true;
__id23_.embedFonts = true;
__id23_.font = "Arial";
__id23_.hAlign = "left";
__id23_.multiline = false;
__id23_.vAlign = "top";
__id23_.antiAliasType = "advanced";
__id23_.glowBlur = 3;
__id23_.glowColor = 0;
__id23_.useGlowFilter = false;
__id23_.glowQuality = 1;
__id23_.glowStrength = 5;
__id23_.gridFitType = "pixel";
__id23_.italic = false;
__id23_.selectable = false;
__id23_.underline = false;
try {
__id23_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id21__instructions_backbtn_0(){
try {
__id21_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id21_.text = "{ins_controls}";
__id21_.textColor = 0xFEFE00;
__id21_.textSize = 14;
__id21_.bold = false;
__id21_.disableWordwrap = false;
__id21_.embedFonts = true;
__id21_.font = "Arial";
__id21_.hAlign = "left";
__id21_.multiline = false;
__id21_.vAlign = "top";
__id21_.antiAliasType = "advanced";
__id21_.glowBlur = 3;
__id21_.glowColor = 0;
__id21_.useGlowFilter = false;
__id21_.glowQuality = 1;
__id21_.glowStrength = 5;
__id21_.gridFitType = "pixel";
__id21_.italic = false;
__id21_.selectable = false;
__id21_.underline = false;
try {
__id21_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id27__instructions_Layer3_5(){
try {
__id27_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id27_.text = "- {ins_energy}";
__id27_.textColor = 0xFFFFFF;
__id27_.textSize = 14;
__id27_.bold = false;
__id27_.disableWordwrap = true;
__id27_.embedFonts = true;
__id27_.font = "Arial";
__id27_.hAlign = "left";
__id27_.multiline = false;
__id27_.vAlign = "top";
__id27_.antiAliasType = "advanced";
__id27_.glowBlur = 3;
__id27_.glowColor = 0;
__id27_.useGlowFilter = false;
__id27_.glowQuality = 1;
__id27_.glowStrength = 5;
__id27_.gridFitType = "pixel";
__id27_.italic = false;
__id27_.selectable = false;
__id27_.underline = false;
try {
__id27_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function frame6(){
if ((((__setPropDict[__id27_] == undefined)) || (!((int(__setPropDict[__id27_]) == 6))))){
__setPropDict[__id27_] = 6;
__setProp___id27__instructions_Layer3_5();
};
if ((((__setPropDict[__id26_] == undefined)) || (!((int(__setPropDict[__id26_]) == 6))))){
__setPropDict[__id26_] = 6;
__setProp___id26__instructions_Layer3_5();
};
if ((((__setPropDict[__id25_] == undefined)) || (!((int(__setPropDict[__id25_]) == 6))))){
__setPropDict[__id25_] = 6;
__setProp___id25__instructions_Layer3_5();
};
if ((((__setPropDict[__id24_] == undefined)) || (!((int(__setPropDict[__id24_]) == 6))))){
__setPropDict[__id24_] = 6;
__setProp___id24__instructions_Layer3_5();
};
if ((((__setPropDict[__id23_] == undefined)) || (!((int(__setPropDict[__id23_]) == 6))))){
__setPropDict[__id23_] = 6;
__setProp___id23__instructions_Layer3_5();
};
stop();
}
function __setProp___id26__instructions_Layer3_5(){
try {
__id26_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id26_.text = "- {ins_health}";
__id26_.textColor = 0xFFFFFF;
__id26_.textSize = 14;
__id26_.bold = false;
__id26_.disableWordwrap = true;
__id26_.embedFonts = true;
__id26_.font = "Arial";
__id26_.hAlign = "left";
__id26_.multiline = false;
__id26_.vAlign = "top";
__id26_.antiAliasType = "advanced";
__id26_.glowBlur = 3;
__id26_.glowColor = 0;
__id26_.useGlowFilter = false;
__id26_.glowQuality = 1;
__id26_.glowStrength = 5;
__id26_.gridFitType = "pixel";
__id26_.italic = false;
__id26_.selectable = false;
__id26_.underline = false;
try {
__id26_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id24__instructions_Layer3_5(){
try {
__id24_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id24_.text = "- {ins_shoot_items}";
__id24_.textColor = 0xFFFFFF;
__id24_.textSize = 14;
__id24_.bold = false;
__id24_.disableWordwrap = true;
__id24_.embedFonts = true;
__id24_.font = "Arial";
__id24_.hAlign = "left";
__id24_.multiline = false;
__id24_.vAlign = "top";
__id24_.antiAliasType = "advanced";
__id24_.glowBlur = 3;
__id24_.glowColor = 0;
__id24_.useGlowFilter = false;
__id24_.glowQuality = 1;
__id24_.glowStrength = 5;
__id24_.gridFitType = "pixel";
__id24_.italic = false;
__id24_.selectable = false;
__id24_.underline = false;
try {
__id24_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
function __setProp___id20__instructions_backbtn_0(){
try {
__id20_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id20_.text = "{back}";
__id20_.textColor = 0xFFFFFF;
__id20_.textSize = 18;
__id20_.bold = false;
__id20_.disableWordwrap = true;
__id20_.embedFonts = true;
__id20_.font = "Arial";
__id20_.hAlign = "left";
__id20_.multiline = true;
__id20_.vAlign = "top";
__id20_.antiAliasType = "normal";
__id20_.glowBlur = 3;
__id20_.glowColor = 0;
__id20_.useGlowFilter = true;
__id20_.glowQuality = 1;
__id20_.glowStrength = 5;
__id20_.gridFitType = "pixel";
__id20_.italic = false;
__id20_.selectable = false;
__id20_.underline = false;
try {
__id20_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 123
//WaveTicker (WaveTicker)
package {
import flash.events.*;
import flash.display.*;
import flash.xml.*;
import flash.text.*;
import spill.localisation.*;
import flash.geom.*;
import flash.utils.*;
import flash.media.*;
import flash.net.*;
import flash.ui.*;
import flash.system.*;
import flash.external.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.filters.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
public dynamic class WaveTicker extends MovieClip {
public var __id0_:LocalizedTextField;
public function WaveTicker(){
__setProp___id0__wave_complete_Wave_0();
}
function __setProp___id0__wave_complete_Wave_0(){
try {
__id0_["componentInspectorSetting"] = true;
} catch(e:Error) {
};
__id0_.text = "{ig_wave}";
__id0_.textColor = 0xFFFFFF;
__id0_.textSize = 54;
__id0_.bold = false;
__id0_.disableWordwrap = true;
__id0_.embedFonts = true;
__id0_.font = "Arial";
__id0_.hAlign = "left";
__id0_.multiline = true;
__id0_.vAlign = "top";
__id0_.antiAliasType = "normal";
__id0_.glowBlur = 3;
__id0_.glowColor = 0;
__id0_.useGlowFilter = false;
__id0_.glowQuality = 1;
__id0_.glowStrength = 5;
__id0_.gridFitType = "pixel";
__id0_.italic = false;
__id0_.selectable = false;
__id0_.underline = false;
try {
__id0_["componentInspectorSetting"] = false;
} catch(e:Error) {
};
}
}
}//package
Section 124
//vfx_explosion (vfx_explosion)
package {
import flash.display.*;
public dynamic class vfx_explosion extends MovieClip {
public function vfx_explosion(){
addFrameScript(18, frame19);
}
function frame19(){
stop();
}
}
}//package
Section 125
//vfx_gunfire (vfx_gunfire)
package {
import flash.display.*;
public dynamic class vfx_gunfire extends MovieClip {
public function vfx_gunfire(){
addFrameScript(8, frame9);
}
function frame9(){
gotoAndPlay("loop");
}
}
}//package
Section 126
//vfx_muzzle (vfx_muzzle)
package {
import flash.display.*;
public dynamic class vfx_muzzle extends MovieClip {
public function vfx_muzzle(){
addFrameScript(7, frame8);
}
function frame8(){
stop();
}
}
}//package