Section 1
//TweenFilterLite (classes.com.gs.TweenFilterLite)
package classes.com.gs {
import flash.filters.*;
import flash.display.*;
public class TweenFilterLite extends TweenLite {
private var _endMatrix:Array;
private var _hf:Boolean;// = false
private var _matrix:Array;
private var _cmf:ColorMatrixFilter;
private var _clrsa:Array;
private var _filters:Array;
public static var defaultEase:Function = TweenLite.defaultEase;
private static var _idMatrix:Array = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
private static var _lumB:Number = 0.072169;
public static var version:Number = 7.06;
public static var delayedCall:Function = TweenLite.delayedCall;
public static var killTweensOf:Function = TweenLite.killTweensOf;
private static var _lumG:Number = 0.71516;
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
private static var _lumR:Number = 0.212671;
public function TweenFilterLite(_arg1:Object, _arg2:Number, _arg3:Object){
_hf = false;
_filters = [];
super(_arg1, _arg2, _arg3);
if ((((TweenLite.version < 6.11)) || (isNaN(TweenLite.version)))){
trace("ERROR! Please update your TweenLite class. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
};
if (_arg3.type != undefined){
trace((("TweenFilterLite error: " + _arg1) + " is using deprecated syntax. Please update to the new syntax. See http://www.TweenFilterLite.com for details."));
};
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:uint;
var _local4:Object;
var _local5:Object;
var _local6:Object;
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
_arg2 = (_arg2 + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter ");
if ((this.target is DisplayObject)){
if (this.vars.blurFilter != undefined){
_local4 = this.vars.blurFilter;
addFilter("blur", _local4, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, ((_local4.quality) || (2))));
};
if (this.vars.glowFilter != undefined){
_local4 = this.vars.glowFilter;
addFilter("glow", _local4, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, ((_local4.strength) || (1)), ((_local4.quality) || (2)), _local4.inner, _local4.knockout));
};
if (this.vars.colorMatrixFilter != undefined){
_local4 = this.vars.colorMatrixFilter;
_local5 = addFilter("colorMatrix", _local4, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix));
_cmf = _local5.filter;
_matrix = ColorMatrixFilter(_cmf).matrix;
if (((!((_local4.matrix == undefined))) && ((_local4.matrix is Array)))){
_endMatrix = _local4.matrix;
} else {
if (_local4.relative == true){
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
};
_endMatrix = setBrightness(_endMatrix, _local4.brightness);
_endMatrix = setContrast(_endMatrix, _local4.contrast);
_endMatrix = setHue(_endMatrix, _local4.hue);
_endMatrix = setSaturation(_endMatrix, _local4.saturation);
_endMatrix = setThreshold(_endMatrix, _local4.threshold);
if (!isNaN(_local4.colorize)){
_endMatrix = colorize(_endMatrix, _local4.colorize, _local4.amount);
} else {
if (!isNaN(_local4.color)){
_endMatrix = colorize(_endMatrix, _local4.color, _local4.amount);
};
};
};
_local3 = 0;
while (_local3 < _endMatrix.length) {
if (((!((_matrix[_local3] == _endMatrix[_local3]))) && (!((_matrix[_local3] == undefined))))){
this.tweens[("tfl_mtx" + _local3)] = {o:_matrix, p:_local3.toString(), s:_matrix[_local3], c:(_endMatrix[_local3] - _matrix[_local3])};
};
_local3++;
};
};
if (this.vars.dropShadowFilter != undefined){
_local4 = this.vars.dropShadowFilter;
addFilter("dropShadow", _local4, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0, 0, 0, 0, 1, ((_local4.quality) || (2)), _local4.inner, _local4.knockout, _local4.hideObject));
};
if (this.vars.bevelFilter != undefined){
_local4 = this.vars.bevelFilter;
addFilter("bevel", _local4, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0, 0.5, 2, 2, 0, ((_local4.quality) || (2))));
};
if (this.vars.runBackwards == true){
_local3 = 0;
while (_local3 < _clrsa.length) {
_local6 = _clrsa[_local3];
_clrsa[_local3].sr = (_local6.sr + _local6.cr);
_local6.cr = (_local6.cr * -1);
_local6.sg = (_local6.sg + _local6.cg);
_local6.cg = (_local6.cg * -1);
_local6.sb = (_local6.sb + _local6.cb);
_local6.cb = (_local6.cb * -1);
_local6.f[_local6.p] = (((_local6.sr << 16) | (_local6.sg << 8)) | _local6.sb);
_local3++;
};
};
super.initTweenVals(true, _arg2);
} else {
super.initTweenVals(_arg1, _arg2);
};
}
override public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:int;
var _local6:String;
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:int;
var _local11:Array;
_local2 = ((_arg1 - this.startTime) / 1000);
if (_local2 > this.duration){
_local2 = this.duration;
};
_local3 = this.vars.ease(_local2, 0, 1, this.duration);
for (_local6 in this.tweens) {
_local4 = this.tweens[_local6];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
};
if (_hf){
_local5 = 0;
while (_local5 < _clrsa.length) {
_local4 = _clrsa[_local5];
_local7 = (_local4.sr + (_local3 * _local4.cr));
_local8 = (_local4.sg + (_local3 * _local4.cg));
_local9 = (_local4.sb + (_local3 * _local4.cb));
_local4.f[_local4.p] = (((_local7 << 16) | (_local8 << 8)) | _local9);
_local5++;
};
if (_cmf != null){
ColorMatrixFilter(_cmf).matrix = _matrix;
};
_local11 = this.target.filters;
_local5 = 0;
while (_local5 < _filters.length) {
_local10 = (_local11.length - 1);
while (_local10 > -1) {
if ((_local11[_local10] is _filters[_local5].type)){
_local11.splice(_local10, 1, _filters[_local5].filter);
break;
};
_local10--;
};
_local5++;
};
this.target.filters = _local11;
};
if (_hst){
_local5 = 0;
while (_local5 < _subTweens.length) {
_subTweens[_local5].proxy(_subTweens[_local5]);
_local5++;
};
};
if (this.vars.onUpdate != null){
this.vars.onUpdate.apply(this.vars.onUpdateScope, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
super.complete(true);
};
}
private function addFilter(_arg1:String, _arg2:Object, _arg3:Class, _arg4:Array, _arg5:BitmapFilter):Object{
var _local6:Object;
var _local7:Array;
var _local8:int;
var _local9:String;
var _local10:Number;
var _local11:Object;
var _local12:Object;
_local6 = {type:_arg3};
_local7 = this.target.filters;
_local8 = 0;
while (_local8 < _local7.length) {
if ((_local7[_local8] is _arg3)){
_local6.filter = _local7[_local8];
break;
};
_local8++;
};
if (_local6.filter == undefined){
_local6.filter = _arg5;
_local7.push(_local6.filter);
this.target.filters = _local7;
};
_local8 = 0;
while (_local8 < _arg4.length) {
_local9 = _arg4[_local8];
if (_arg2[_local9] != undefined){
if ((((((_local9 == "color")) || ((_local9 == "highlightColor")))) || ((_local9 == "shadowColor")))){
_local11 = HEXtoRGB(_local6.filter[_local9]);
_local12 = HEXtoRGB(_arg2[_local9]);
_clrsa.push({f:_local6.filter, p:_local9, sr:_local11.rb, cr:(_local12.rb - _local11.rb), sg:_local11.gb, cg:(_local12.gb - _local11.gb), sb:_local11.bb, cb:(_local12.bb - _local11.bb)});
} else {
if ((((((((_local9 == "quality")) || ((_local9 == "inner")))) || ((_local9 == "knockout")))) || ((_local9 == "hideObject")))){
_local6.filter[_local9] = _arg2[_local9];
} else {
if (typeof(_arg2[_local9]) == "number"){
_local10 = (_arg2[_local9] - _local6.filter[_local9]);
} else {
_local10 = Number(_arg2[_local9]);
};
this.tweens[(("tfl_" + _arg1) + _local8)] = {o:_local6.filter, p:_local9, s:_local6.filter[_local9], c:_local10};
};
};
};
_local8++;
};
_filters.push(_local6);
_hf = true;
return (_local6);
}
public function HEXtoRGB(_arg1:Number):Object{
return ({rb:(_arg1 >> 16), gb:((_arg1 >> 8) & 0xFF), bb:(_arg1 & 0xFF)});
}
public static function setContrast(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 + 0.01);
_local3 = [_arg2, 0, 0, 0, (128 * (1 - _arg2)), 0, _arg2, 0, 0, (128 * (1 - _arg2)), 0, 0, _arg2, 0, (128 * (1 - _arg2)), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function colorize(_arg1:Array, _arg2:Number, _arg3:Number=100):Array{
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Array;
if (isNaN(_arg2)){
return (_arg1);
};
if (isNaN(_arg3)){
_arg3 = 1;
};
_local4 = (((_arg2 >> 16) & 0xFF) / 0xFF);
_local5 = (((_arg2 >> 8) & 0xFF) / 0xFF);
_local6 = ((_arg2 & 0xFF) / 0xFF);
_local7 = (1 - _arg3);
_local8 = [(_local7 + ((_arg3 * _local4) * _lumR)), ((_arg3 * _local4) * _lumG), ((_arg3 * _local4) * _lumB), 0, 0, ((_arg3 * _local5) * _lumR), (_local7 + ((_arg3 * _local5) * _lumG)), ((_arg3 * _local5) * _lumB), 0, 0, ((_arg3 * _local6) * _lumR), ((_arg3 * _local6) * _lumG), (_local7 + ((_arg3 * _local6) * _lumB)), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local8, _arg1));
}
public static function setBrightness(_arg1:Array, _arg2:Number):Array{
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = ((_arg2 * 100) - 100);
return (applyMatrix([1, 0, 0, 0, _arg2, 0, 1, 0, 0, _arg2, 0, 0, 1, 0, _arg2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], _arg1));
}
public static function setSaturation(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = (1 - _arg2);
_local4 = (_local3 * _lumR);
_local5 = (_local3 * _lumG);
_local6 = (_local3 * _lumB);
_local7 = [(_local4 + _arg2), _local5, _local6, 0, 0, _local4, (_local5 + _arg2), _local6, 0, 0, _local4, _local5, (_local6 + _arg2), 0, 0, 0, 0, 0, 1, 0];
return (applyMatrix(_local7, _arg1));
}
public static function applyMatrix(_arg1:Array, _arg2:Array):Array{
var _local3:Array;
var _local4:int;
var _local5:int;
var _local6:int;
var _local7:int;
if (((!((_arg1 is Array))) || (!((_arg2 is Array))))){
return (_arg2);
};
_local3 = [];
_local4 = 0;
_local5 = 0;
_local6 = 0;
while (_local6 < 4) {
_local7 = 0;
while (_local7 < 5) {
if (_local7 == 4){
_local5 = _arg1[(_local4 + 4)];
} else {
_local5 = 0;
};
_local3[(_local4 + _local7)] = (((((_arg1[_local4] * _arg2[_local7]) + (_arg1[(_local4 + 1)] * _arg2[(_local7 + 5)])) + (_arg1[(_local4 + 2)] * _arg2[(_local7 + 10)])) + (_arg1[(_local4 + 3)] * _arg2[(_local7 + 15)])) + _local5);
_local7++;
};
_local4 = (_local4 + 5);
_local6++;
};
return (_local3);
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
_arg3.runBackwards = true;
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
public static function setThreshold(_arg1:Array, _arg2:Number):Array{
var _local3:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_local3 = [(_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), (_lumR * 0x0100), (_lumG * 0x0100), (_lumB * 0x0100), 0, (-256 * _arg2), 0, 0, 0, 1, 0];
return (applyMatrix(_local3, _arg1));
}
public static function setHue(_arg1:Array, _arg2:Number):Array{
var _local3:Number;
var _local4:Number;
var _local5:Array;
if (isNaN(_arg2)){
return (_arg1);
};
_arg2 = (_arg2 * (Math.PI / 180));
_local3 = Math.cos(_arg2);
_local4 = Math.sin(_arg2);
_local5 = [((_lumR + (_local3 * (1 - _lumR))) + (_local4 * -(_lumR))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * -(_lumG))), ((_lumB + (_local3 * -(_lumB))) + (_local4 * (1 - _lumB))), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * 0.143)), ((_lumG + (_local3 * (1 - _lumG))) + (_local4 * 0.14)), ((_lumB + (_local3 * -(_lumB))) + (_local4 * -0.283)), 0, 0, ((_lumR + (_local3 * -(_lumR))) + (_local4 * -((1 - _lumR)))), ((_lumG + (_local3 * -(_lumG))) + (_local4 * _lumG)), ((_lumB + (_local3 * (1 - _lumB))) + (_local4 * _lumB)), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return (applyMatrix(_local5, _arg1));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenFilterLite{
return (new TweenFilterLite(_arg1, _arg2, _arg3));
}
}
}//package classes.com.gs
Section 2
//TweenLite (classes.com.gs.TweenLite)
package classes.com.gs {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
public class TweenLite {
public var delay:Number;
protected var _initted:Boolean;
protected var _subTweens:Array;
public var startTime:uint;
public var target:Object;
public var duration:Number;
protected var _hst:Boolean;
protected var _active:Boolean;
public var vars:Object;
public var tweens:Object;
public var initTime:uint;
private static var _timer:Timer = new Timer(2000);
private static var _classInitted:Boolean;
public static var defaultEase:Function = TweenLite.easeOut;
public static var version:Number = 6.11;
private static var _sprite:Sprite = new Sprite();
protected static var _all:Dictionary = new Dictionary();
public static var killDelayedCallsTo:Function = killTweensOf;
protected static var _curTime:uint;
private static var _listening:Boolean;
public function TweenLite(_arg1:Object, _arg2:Number, _arg3:Object){
if (_arg1 == null){
return;
};
if (((((!((_arg3.overwrite == false))) && (!((_arg1 == null))))) || ((_all[_arg1] == undefined)))){
delete _all[_arg1];
_all[_arg1] = new Dictionary();
};
_all[_arg1][this] = this;
this.vars = _arg3;
this.duration = ((_arg2) || (0.001));
this.delay = ((_arg3.delay) || (0));
this.target = _arg1;
if (!(this.vars.ease is Function)){
this.vars.ease = defaultEase;
};
if (this.vars.easeParams != null){
this.vars.proxiedEase = this.vars.ease;
this.vars.ease = easeProxy;
};
if (!isNaN(Number(this.vars.autoAlpha))){
this.vars.alpha = Number(this.vars.autoAlpha);
};
this.tweens = {};
_subTweens = [];
_hst = (_initted = false);
_active = (((_arg2 == 0)) && ((this.delay == 0)));
if (!_classInitted){
_curTime = getTimer();
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
_classInitted = true;
};
this.initTime = _curTime;
if ((((((this.vars.runBackwards == true)) && (!((this.vars.renderOnStart == true))))) || (_active))){
initTweenVals();
this.startTime = _curTime;
if (_active){
render((this.startTime + 1));
} else {
render(this.startTime);
};
};
if (((!(_listening)) && (!(_active)))){
_timer.addEventListener("timer", killGarbage);
_timer.start();
_listening = true;
};
}
protected function addSubTween(_arg1:Function, _arg2:Object, _arg3:Object, _arg4:Object=null):void{
var _local5:String;
_subTweens.push({proxy:_arg1, target:_arg2, info:_arg4});
for (_local5 in _arg3) {
if (_arg2.hasOwnProperty(_local5)){
if (typeof(_arg3[_local5]) == "number"){
this.tweens[((("st" + _subTweens.length) + "_") + _local5)] = {o:_arg2, p:_local5, s:_arg2[_local5], c:(_arg3[_local5] - _arg2[_local5])};
} else {
this.tweens[((("st" + _subTweens.length) + "_") + _local5)] = {o:_arg2, p:_local5, s:_arg2[_local5], c:Number(_arg3[_local5])};
};
};
};
_hst = true;
}
public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:Boolean;
var _local4:String;
var _local5:Array;
var _local6:int;
var _local7:ColorTransform;
var _local8:ColorTransform;
var _local9:Object;
_local3 = (this.target is DisplayObject);
if ((this.target is Array)){
_local5 = ((this.vars.endArray) || ([]));
_local6 = 0;
while (_local6 < _local5.length) {
if (((!((this.target[_local6] == _local5[_local6]))) && (!((this.target[_local6] == undefined))))){
this.tweens[_local6.toString()] = {o:this.target, p:_local6.toString(), s:this.target[_local6], c:(_local5[_local6] - this.target[_local6])};
};
_local6++;
};
} else {
for (_local4 in this.vars) {
if ((((((((((((((((((((((((((((((((((_local4 == "ease")) || ((_local4 == "delay")))) || ((_local4 == "overwrite")))) || ((_local4 == "onComplete")))) || ((_local4 == "onCompleteParams")))) || ((_local4 == "onCompleteScope")))) || ((_local4 == "runBackwards")))) || ((_local4 == "onUpdate")))) || ((_local4 == "onUpdateParams")))) || ((_local4 == "onUpdateScope")))) || ((_local4 == "autoAlpha")))) || ((_local4 == "onStart")))) || ((_local4 == "onStartParams")))) || ((_local4 == "onStartScope")))) || ((_local4 == "renderOnStart")))) || ((_local4 == "easeParams")))) || (((_arg1) && (!((_arg2.indexOf(((" " + _local4) + " ")) == -1))))))){
} else {
if ((((_local4 == "tint")) && (_local3))){
_local7 = this.target.transform.colorTransform;
_local8 = new ColorTransform();
if (this.vars.alpha != undefined){
_local8.alphaMultiplier = this.vars.alpha;
delete this.vars.alpha;
delete this.tweens.alpha;
} else {
_local8.alphaMultiplier = this.target.alpha;
};
if (((((!((this.vars[_local4] == null))) && (!((this.vars[_local4] == ""))))) || ((this.vars[_local4] == 0)))){
_local8.color = this.vars[_local4];
};
addSubTween(tintProxy, {progress:0}, {progress:1}, {target:this.target, color:_local7, endColor:_local8});
} else {
if ((((_local4 == "frame")) && (_local3))){
addSubTween(frameProxy, {frame:this.target.currentFrame}, {frame:this.vars[_local4]}, {target:this.target});
} else {
if ((((_local4 == "volume")) && (((_local3) || ((this.target is SoundChannel)))))){
addSubTween(volumeProxy, this.target.soundTransform, {volume:this.vars[_local4]}, {target:this.target});
} else {
if (this.target.hasOwnProperty(_local4)){
if (typeof(this.vars[_local4]) == "number"){
this.tweens[_local4] = {o:this.target, p:_local4, s:this.target[_local4], c:(this.vars[_local4] - this.target[_local4])};
} else {
this.tweens[_local4] = {o:this.target, p:_local4, s:this.target[_local4], c:Number(this.vars[_local4])};
};
};
};
};
};
};
};
};
if (this.vars.runBackwards == true){
for (_local4 in this.tweens) {
_local9 = this.tweens[_local4];
this.tweens[_local4].s = (_local9.s + _local9.c);
_local9.c = (_local9.c * -1);
};
};
if (typeof(this.vars.autoAlpha) == "number"){
this.target.visible = !((((this.vars.runBackwards == true)) && ((this.target.alpha == 0))));
};
_initted = true;
}
public function get active():Boolean{
if (_active){
return (true);
};
if (((_curTime - this.initTime) / 1000) > this.delay){
_active = true;
this.startTime = (this.initTime + (this.delay * 1000));
if (!_initted){
initTweenVals();
} else {
if (typeof(this.vars.autoAlpha) == "number"){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(this.vars.onStartScope, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function render(_arg1:uint):void{
var _local2:Number;
var _local3:Number;
var _local4:Object;
var _local5:String;
var _local6:uint;
_local2 = ((_arg1 - this.startTime) / 1000);
if (_local2 > this.duration){
_local2 = this.duration;
};
_local3 = this.vars.ease(_local2, 0, 1, this.duration);
for (_local5 in this.tweens) {
_local4 = this.tweens[_local5];
_local4.o[_local4.p] = (_local4.s + (_local3 * _local4.c));
};
if (_hst){
_local6 = 0;
while (_local6 < _subTweens.length) {
_subTweens[_local6].proxy(_subTweens[_local6]);
_local6++;
};
};
if (this.vars.onUpdate != null){
this.vars.onUpdate.apply(this.vars.onUpdateScope, this.vars.onUpdateParams);
};
if (_local2 == this.duration){
complete(true);
};
}
protected function easeProxy(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams)));
}
public function complete(_arg1:Boolean=false):void{
if (!_arg1){
if (!_initted){
initTweenVals();
};
render((this.startTime + (this.duration * 1000)));
return;
};
if ((((typeof(this.vars.autoAlpha) == "number")) && ((this.target.alpha == 0)))){
this.target.visible = false;
};
if (this.vars.onComplete != null){
this.vars.onComplete.apply(this.vars.onCompleteScope, this.vars.onCompleteParams);
};
removeTween(this);
}
public static function easeOut(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
_arg1 = (_arg1 / _arg4);
return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
}
public static function frameProxy(_arg1:Object):void{
_arg1.info.target.gotoAndStop(Math.round(_arg1.target.frame));
}
public static function removeTween(_arg1:TweenLite=null):void{
if (((!((_arg1 == null))) && (!((_all[_arg1.target] == undefined))))){
delete _all[_arg1.target][_arg1];
};
}
public static function killTweensOf(_arg1:Object=null, _arg2:Boolean=false):void{
var _local3:Object;
var _local4:*;
if (((!((_arg1 == null))) && (!((_all[_arg1] == undefined))))){
if (_arg2){
_local3 = _all[_arg1];
for (_local4 in _local3) {
_local3[_local4].complete(false);
};
};
delete _all[_arg1];
};
}
public static function delayedCall(_arg1:Number, _arg2:Function, _arg3:Array=null, _arg4=null):TweenLite{
return (new TweenLite(_arg2, 0, {delay:_arg1, onComplete:_arg2, onCompleteParams:_arg3, onCompleteScope:_arg4, overwrite:false}));
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
_arg3.runBackwards = true;
return (new TweenLite(_arg1, _arg2, _arg3));
}
public static function executeAll(_arg1:Event=null):void{
var _local2:Dictionary;
var _local3:uint;
var _local4:Object;
var _local5:Object;
_local2 = _all;
_local3 = (_curTime = getTimer());
if (_listening){
for (_local4 in _local2) {
for (_local5 in _local2[_local4]) {
if (((!((_local2[_local4][_local5] == undefined))) && (_local2[_local4][_local5].active))){
_local2[_local4][_local5].render(_local3);
if (_local2[_local4] == undefined){
break;
};
};
};
};
};
}
public static function volumeProxy(_arg1:Object):void{
_arg1.info.target.soundTransform = _arg1.target;
}
public static function killGarbage(_arg1:TimerEvent):void{
var _local2:uint;
var _local3:Boolean;
var _local4:Object;
var _local5:Object;
var _local6:Object;
_local2 = 0;
for (_local4 in _all) {
_local3 = false;
for (_local5 in _all[_local4]) {
_local3 = true;
break;
};
if (!_local3){
delete _all[_local4];
} else {
_local2++;
};
};
if (_local2 == 0){
_timer.removeEventListener("timer", killGarbage);
_timer.stop();
_listening = false;
};
}
public static function tintProxy(_arg1:Object):void{
var _local2:Number;
var _local3:Number;
_local2 = _arg1.target.progress;
_local3 = (1 - _local2);
_arg1.info.target.transform.colorTransform = new ColorTransform(((_arg1.info.color.redMultiplier * _local3) + (_arg1.info.endColor.redMultiplier * _local2)), ((_arg1.info.color.greenMultiplier * _local3) + (_arg1.info.endColor.greenMultiplier * _local2)), ((_arg1.info.color.blueMultiplier * _local3) + (_arg1.info.endColor.blueMultiplier * _local2)), ((_arg1.info.color.alphaMultiplier * _local3) + (_arg1.info.endColor.alphaMultiplier * _local2)), ((_arg1.info.color.redOffset * _local3) + (_arg1.info.endColor.redOffset * _local2)), ((_arg1.info.color.greenOffset * _local3) + (_arg1.info.endColor.greenOffset * _local2)), ((_arg1.info.color.blueOffset * _local3) + (_arg1.info.endColor.blueOffset * _local2)), ((_arg1.info.color.alphaOffset * _local3) + (_arg1.info.endColor.alphaOffset * _local2)));
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenLite{
return (new TweenLite(_arg1, _arg2, _arg3));
}
}
}//package classes.com.gs
Section 3
//TweenMax (classes.com.gs.TweenMax)
package classes.com.gs {
import flash.utils.*;
public class TweenMax extends TweenFilterLite {
private var _pauseTime:Number;
public static var delayedCall:Function = TweenLite.delayedCall;
public static var killDelayedCallsTo:Function = TweenLite.killDelayedCallsTo;
public static var defaultEase:Function = TweenLite.defaultEase;
public static var removeTween:Function = TweenLite.removeTween;
public static var version:Number = 0.95;
public static var killTweensOf:Function = TweenLite.killTweensOf;
public function TweenMax(_arg1:Object, _arg2:Number, _arg3:Object){
super(_arg1, _arg2, _arg3);
_pauseTime = -1;
if ((((TweenFilterLite.version < 7.06)) || (isNaN(TweenFilterLite.version)))){
trace("TweenMax error! Please update your TweenFilterLite class. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
};
}
override public function initTweenVals(_arg1:Boolean=false, _arg2:String=""):void{
var _local3:String;
var _local4:int;
var _local5:Object;
var _local6:Object;
var _local7:Array;
_arg2 = (_arg2 + " hexColors bezier bezierThrough ");
if (((!((this.vars.bezier == undefined))) && ((this.vars.bezier is Array)))){
_local6 = {};
_local7 = this.vars.bezier;
_local4 = 0;
while (_local4 < _local7.length) {
for (_local3 in _local7[_local4]) {
if (_local6[_local3] == undefined){
_local6[_local3] = [this.target[_local3]];
};
if (typeof(_local7[_local4][_local3]) == "number"){
_local6[_local3].push(_local7[_local4][_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3])));
};
};
_local4++;
};
for (_local3 in _local6) {
if (typeof(this.vars[_local3]) == "number"){
_local6[_local3].push(this.vars[_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(this.vars[_local3])));
};
delete this.vars[_local3];
};
addSubTween(bezierProxy, {t:0}, {t:1}, {props:parseBeziers(_local6, false), target:this.target});
};
if (((!((this.vars.bezierThrough == undefined))) && ((this.vars.bezierThrough is Array)))){
_local6 = {};
_local7 = this.vars.bezierThrough;
_local4 = 0;
while (_local4 < _local7.length) {
for (_local3 in _local7[_local4]) {
if (_local6[_local3] == undefined){
_local6[_local3] = [this.target[_local3]];
};
if (typeof(_local7[_local4][_local3]) == "number"){
_local6[_local3].push(_local7[_local4][_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(_local7[_local4][_local3])));
};
};
_local4++;
};
for (_local3 in _local6) {
if (typeof(this.vars[_local3]) == "number"){
_local6[_local3].push(this.vars[_local3]);
} else {
_local6[_local3].push((this.target[_local3] + Number(this.vars[_local3])));
};
delete this.vars[_local3];
};
addSubTween(bezierProxy, {t:0}, {t:1}, {props:parseBeziers(_local6, true), target:this.target});
};
if (((!((this.vars.hexColors == undefined))) && ((typeof(this.vars.hexColors) == "object")))){
for (_local3 in this.vars.hexColors) {
addSubTween(hexColorsProxy, {r:(this.target[_local3] >> 16), g:((this.target[_local3] >> 8) & 0xFF), b:(this.target[_local3] & 0xFF)}, {r:(this.vars.hexColors[_local3] >> 16), g:((this.vars.hexColors[_local3] >> 8) & 0xFF), b:(this.vars.hexColors[_local3] & 0xFF)}, {prop:_local3, target:this.target});
};
};
super.initTweenVals(true, _arg2);
}
override public function get active():Boolean{
if (_active){
return (true);
};
if (_pauseTime != -1){
return (false);
};
if (((_curTime - this.initTime) / 1000) > this.delay){
_active = true;
this.startTime = (this.initTime + (this.delay * 1000));
if (!_initted){
initTweenVals();
} else {
if (typeof(this.vars.autoAlpha) == "number"){
this.target.visible = true;
};
};
if (this.vars.onStart != null){
this.vars.onStart.apply(null, this.vars.onStartParams);
};
if (this.duration == 0.001){
this.startTime = (this.startTime - 1);
};
return (true);
//unresolved jump
};
return (false);
}
public function set progress(_arg1:Number):void{
var _local2:uint;
var _local3:Number;
var _local4:Boolean;
_local2 = _curTime;
_local3 = (_local2 - ((this.duration * _arg1) * 1000));
this.initTime = (_local3 - (this.delay * 1000));
_local4 = this.active;
this.startTime = _local3;
render(_local2);
}
public function set paused(_arg1:Boolean):void{
if (_arg1){
this.pause();
} else {
this.resume();
};
}
public function resume():void{
var _local1:Number;
if (_pauseTime != -1){
_local1 = (_curTime - _pauseTime);
this.initTime = (this.initTime + _local1);
if (!isNaN(this.startTime)){
this.startTime = (this.startTime + _local1);
};
_pauseTime = -1;
if (((_curTime - this.initTime) / 1000) > this.delay){
_active = true;
};
};
}
public function get paused():Boolean{
if (_pauseTime != -1){
return (true);
};
return (false);
}
public function get progress():Number{
var _local1:Number;
_local1 = (((((_curTime - this.startTime) / 1000) / this.duration)) || (0));
if (_local1 > 1){
return (1);
};
return (_local1);
}
public function pause():void{
if (_pauseTime == -1){
_pauseTime = _curTime;
_active = false;
};
}
public static function sequence(_arg1:Object, _arg2:Array):Array{
var _local3:Boolean;
var _local4:Array;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:uint;
_local3 = true;
if (_arg2[0].overwrite == false){
_local3 = false;
};
_local4 = [];
_local5 = 0;
_local8 = 0;
while (_local8 < _arg2.length) {
_local7 = ((_arg2[_local8].time) || (0));
delete _arg2[_local8].time;
_local6 = ((_arg2[_local8].delay) || (0));
_arg2[_local8].delay = (_local5 + _local6);
_arg2[_local8].overwrite = _local3;
_local4.push(new TweenMax(_arg1, _local7, _arg2[_local8]));
_local5 = (_local5 + (_local7 + _local6));
_local3 = false;
_local8++;
};
return (_local4);
}
public static function hexColorsProxy(_arg1:Object):void{
_arg1.info.target[_arg1.info.prop] = (((_arg1.target.r << 16) | (_arg1.target.g << 8)) | _arg1.target.b);
}
public static function parseBeziers(_arg1:Object, _arg2:Boolean=false):Object{
var _local3:int;
var _local4:Array;
var _local5:Object;
var _local6:String;
var _local7:Object;
_local7 = {};
if (_arg2){
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 2){
_local5.push({s:_local4[0], cp:(_local4[1] - ((_local4[2] - _local4[0]) / 4)), e:_local4[1]});
_local3 = 1;
while (_local3 < (_local4.length - 1)) {
_local5.push({s:_local4[_local3], cp:(_local4[_local3] + (_local4[_local3] - _local5[(_local3 - 1)].cp)), e:_local4[(_local3 + 1)]});
_local3++;
};
} else {
_local5.push({s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]});
};
};
} else {
for (_local6 in _arg1) {
_local4 = _arg1[_local6];
_local5 = [];
_local7[_local6] = _local5;
if (_local4.length > 3){
_local5.push({s:_local4[0], cp:_local4[1], e:((_local4[1] + _local4[2]) / 2)});
_local3 = 2;
while (_local3 < (_local4.length - 2)) {
_local5.push({s:_local5[(_local3 - 2)].e, cp:_local4[_local3], e:((_local4[_local3] + _local4[(_local3 + 1)]) / 2)});
_local3++;
};
_local5.push({s:_local5[(_local5.length - 1)].e, cp:_local4[(_local4.length - 2)], e:_local4[(_local4.length - 1)]});
} else {
if (_local4.length == 3){
_local5.push({s:_local4[0], cp:_local4[1], e:_local4[2]});
} else {
if (_local4.length == 2){
_local5.push({s:_local4[0], cp:((_local4[0] + _local4[1]) / 2), e:_local4[1]});
};
};
};
};
};
return (_local7);
}
public static function callbackProxy(_arg1:Array, _arg2:Array):void{
var _local3:uint;
_local3 = 0;
while (_local3 < _arg1.length) {
_arg1[_local3].apply(null, _arg2[_local3]);
_local3++;
};
}
public static function from(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
_arg3.runBackwards = true;
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function allFrom(_arg1:Array, _arg2:Number, _arg3:Object):Array{
_arg3.runBackwards = true;
return (allTo(_arg1, _arg2, _arg3));
}
public static function bezierProxy(_arg1:Object):void{
var _local2:Number;
var _local3:Object;
var _local4:Object;
var _local5:int;
var _local6:String;
var _local7:Object;
var _local8:Number;
var _local9:uint;
_local2 = _arg1.target.t;
_local3 = _arg1.info.props;
_local4 = _arg1.info.target;
for (_local6 in _local3) {
_local9 = _local3[_local6].length;
if (_local2 < 0){
_local5 = 0;
} else {
if (_local2 >= 1){
_local5 = (_local9 - 1);
} else {
_local5 = int((_local9 * _local2));
};
};
_local8 = ((_local2 - (_local5 * (1 / _local9))) * _local9);
_local7 = _local3[_local6][_local5];
_local4[_local6] = (_local7.s + (_local8 * (((2 * (1 - _local8)) * (_local7.cp - _local7.s)) + (_local8 * (_local7.e - _local7.s)))));
};
}
public static function getAllTweens():Array{
var _local1:Dictionary;
var _local2:Array;
var _local3:Object;
var _local4:Object;
_local1 = _all;
_local2 = [];
for (_local3 in _local1) {
for (_local4 in _local1[_local3]) {
if (_local1[_local3][_local4] != undefined){
_local2.push(_local1[_local3][_local4]);
};
};
};
return (_local2);
}
public static function getTweensOf(_arg1:Object):Array{
var _local2:Dictionary;
var _local3:Array;
var _local4:Object;
_local2 = _all[_arg1];
_local3 = [];
if (_local2 != null){
for (_local4 in _local2) {
if (_local2[_local4].tweens != undefined){
_local3.push(_local2[_local4]);
};
};
};
return (_local3);
}
public static function isTweening(_arg1:Object):Boolean{
var _local2:Array;
var _local3:Number;
_local2 = getTweensOf(_arg1);
_local3 = 0;
while (_local3 < _local2.length) {
if (_local2[_local3].active){
return (true);
};
_local3++;
};
return (false);
}
public static function to(_arg1:Object, _arg2:Number, _arg3:Object):TweenMax{
return (new TweenMax(_arg1, _arg2, _arg3));
}
public static function allTo(_arg1:Array, _arg2:Number, _arg3:Object):Array{
var _local4:int;
var _local5:Object;
var _local6:String;
var _local7:Number;
var _local8:Object;
var _local9:Array;
var _local10:Number;
if (_arg1.length == 0){
return ([]);
};
_local9 = [];
_local10 = ((_arg3.delayIncrement) || (0));
delete _arg3.delayIncrement;
if (_arg3.onCompleteAll == undefined){
_local8 = _arg3;
} else {
_local8 = {};
for (_local6 in _arg3) {
_local8[_local6] = _arg3[_local6];
};
_local8.onCompleteParams = [[_arg3.onComplete, _arg3.onCompleteAll], [_arg3.onCompleteParams, _arg3.onCompleteAllParams]];
_local8.onComplete = _slot1.callbackProxy;
delete _arg3.onCompleteAll;
};
delete _arg3.onCompleteAllParams;
if (_local10 == 0){
_local4 = 0;
while (_local4 < (_arg1.length - 1)) {
_local9.push(new TweenMax(_arg1[_local4], _arg2, _arg3));
_local4++;
};
} else {
_local7 = ((_arg3.delay) || (0));
_local4 = 0;
while (_local4 < (_arg1.length - 1)) {
_local5 = {};
for (_local6 in _arg3) {
_local5[_local6] = _arg3[_local6];
};
_local5.delay = (_local7 + (_local4 * _local10));
_local9.push(new TweenMax(_arg1[_local4], _arg2, _local5));
_local4++;
};
_local8.delay = (_local7 + ((_arg1.length - 1) * _local10));
};
_local9.push(new TweenMax(_arg1[(_arg1.length - 1)], _arg2, _local8));
return (_local9);
}
}
}//package classes.com.gs
Section 4
//info_gameOver_27 (Lockdown_TD_fla.info_gameOver_27)
package Lockdown_TD_fla {
import classes.com.gs.*;
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class info_gameOver_27 extends MovieClip {
public var btn_restart:MovieClip;
public var btn_playMore:MovieClip;
public var url:String;
public var request:URLRequest;
public var desc_txt:TextField;
public function info_gameOver_27(){
addFrameScript(0, frame1);
}
public function playMoreOver(_arg1:MouseEvent):void{
TweenMax.to(btn_playMore, 0.5, {alpha:0.7});
}
public function restartHandler(_arg1:MouseEvent):void{
root.gotoAndStop(2);
}
function frame1(){
btn_playMore.addEventListener(MouseEvent.MOUSE_DOWN, playMoreHandler);
btn_playMore.addEventListener(MouseEvent.ROLL_OUT, playMoreOut);
btn_playMore.addEventListener(MouseEvent.ROLL_OVER, playMoreOver);
url = "http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com";
request = new URLRequest(url);
btn_restart.addEventListener(MouseEvent.MOUSE_DOWN, restartHandler);
btn_restart.addEventListener(MouseEvent.ROLL_OUT, restartOut);
btn_restart.addEventListener(MouseEvent.ROLL_OVER, restartOver);
}
public function playMoreHandler(_arg1:MouseEvent):void{
navigateToURL(request, "_blank");
}
public function restartOver(_arg1:MouseEvent):void{
TweenMax.to(btn_restart, 0.5, {alpha:0.7});
}
public function restartOut(_arg1:MouseEvent):void{
TweenMax.to(btn_restart, 0.5, {alpha:1});
}
public function playMoreOut(_arg1:MouseEvent):void{
TweenMax.to(btn_playMore, 0.5, {alpha:1});
}
}
}//package Lockdown_TD_fla
Section 5
//info_unit_15 (Lockdown_TD_fla.info_unit_15)
package Lockdown_TD_fla {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class info_unit_15 extends MovieClip {
public function info_unit_15(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package Lockdown_TD_fla
Section 6
//info_wave_24 (Lockdown_TD_fla.info_wave_24)
package Lockdown_TD_fla {
import flash.display.*;
import flash.text.*;
public dynamic class info_wave_24 extends MovieClip {
public var level_txt:TextField;
public var desc_txt:TextField;
}
}//package Lockdown_TD_fla
Section 7
//instructions_screen_9 (Lockdown_TD_fla.instructions_screen_9)
package Lockdown_TD_fla {
import flash.display.*;
import flash.text.*;
public dynamic class instructions_screen_9 extends MovieClip {
public var btn_quality:MovieClip;
public var buy1:MovieClip;
public var buy3:MovieClip;
public var buy6:MovieClip;
public var securityDisplay:TextField;
public var info_unit:MovieClip;
public var buy2:MovieClip;
public var buy4:MovieClip;
public var bg3:MovieClip;
public var airliftDisplay:TextField;
public var bg2:MovieClip;
public var levelDisplay:TextField;
public var placeable:MovieClip;
public var moneyDisplay:TextField;
}
}//package Lockdown_TD_fla
Section 8
//intro_1 (Lockdown_TD_fla.intro_1)
package Lockdown_TD_fla {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class intro_1 extends MovieClip {
public var introDone:Boolean;
public var url:String;
public var tag:SimpleButton;
public var request:URLRequest;
public function intro_1(){
addFrameScript(0, frame1, 20, frame21, 179, frame180);
}
function frame180(){
root.gotoAndStop(2);
stop();
}
function frame1(){
introDone = false;
nielsen("game_intro");
}
function frame21(){
tag.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
url = "http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com";
request = new URLRequest(url);
}
public function nielsen(_arg1){
var _local2:String;
var _local3:String;
var _local4:String;
var _local5:URLRequest;
var _local6:Loader;
_local2 = "us-ugo";
_local3 = "ugoplayer_flashgames";
_local4 = escape(_arg1);
_local5 = new URLRequest(((((((("http://secure-us.imrworldwide.com/cgi-bin/m?ci=" + _local2) + "&cg=") + _local3) + "&si=") + _local4) + "&rnd=") + Math.ceil((Math.random() * 100000000))));
_local6 = new Loader();
_local6.load(_local5);
addChild(_local6);
}
public function mouseDown(_arg1:MouseEvent):void{
navigateToURL(request, "_blank");
}
}
}//package Lockdown_TD_fla
Section 9
//as (Mochibot.as)
package Mochibot {
import classes.com.gs.*;
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class as extends MovieClip {
public var pl_airlift:Number;
public var tw_index:uint;
public var tw_type_arr:Array;
public var demo_txt:MovieClip;
public var btn_quality:MovieClip;
public var gm_legalPos:Boolean;
public var pl_security:Number;
public var info_gameOver:MovieClip;
public var cm:ContextMenu;
public var buy1:MovieClip;
public var buy3:MovieClip;
public var buy4:MovieClip;
public var buy6:MovieClip;
public var buy2:MovieClip;
public var info_unit:MovieClip;
public var intro:MovieClip;
public var mn_maxLife_arr:Array;
public var mn_numDelay:uint;
public var request:URLRequest;
public var bg2:MovieClip;
public var bg3:MovieClip;
public var pl_cursorBusy:Boolean;
public var levelDisplay:TextField;
public var info_interact:MovieClip;
public var tw_arr:Array;
public var qState;
public var mn_pathX:Array;
public var mn_numSpawn:uint;
public var mn_type_arr:Array;
public var mn_index:uint;
public var pl_money:Number;
public var btn_start:MovieClip;
public var mn_arr:Array;
public var mn_pathY:Array;
public var btn_newGame:MovieClip;
public var tw_wait_arr:Array;
public var mn_killed:uint;
public var placeable:MovieClip;
public var titleScreen:MovieClip;
public var tw_pDam_arr:Array;
public var gm_level:uint;
public var blackout:MovieClip;
public var mn_pVul_arr:Array;
public var mn_numLife:uint;
public var mn_numEVul:Number;
public var mn_numPVul:Number;
public var info_cancel:MovieClip;
public var btn_playMore:MovieClip;
public var rn_index:uint;
public var tw_cost_arr:Array;
public var mn_numSpeed:Number;
public var tw_eDam_arr:Array;
public var loadBar:MovieClip;
public var mn_speed_arr:Array;
public var securityDisplay:TextField;
public var cm_item1:ContextMenuItem;
public var url:String;
public var mn_life_arr:Array;
public var mn_die_arr:Array;
public var mn_eVul_arr:Array;
public var instructions:MovieClip;
public var airliftDisplay:TextField;
public var pl_valid_y:Number;
public var tw_speed_arr:Array;
public var pl_valid_x:Number;
public var moneyDisplay:TextField;
public var rn_arr:Array;
public var info_wave:MovieClip;
public var pl_useAirlift:Boolean;
public var gm_score:uint;
public var pl_int_index:Number;
public function as(){
addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4);
}
public function newGameOut(_arg1:MouseEvent):void{
TweenMax.to(btn_newGame, 0.5, {alpha:1});
TweenMax.to(titleScreen, 1, {colorMatrixFilter:{amount:1, brightness:1}});
}
public function aimHandler(_arg1:Event):void{
var _local2:uint;
var _local3:Boolean;
var _local4:*;
var _local5:*;
var _local6:*;
var _local7:uint;
var _local8:Number;
var _local9:Number;
var _local10:*;
var _local11:Number;
_local2 = 0;
_local3 = false;
_local6 = _arg1.currentTarget.name.substr(2, _arg1.currentTarget.name.length);
_local7 = 0;
while (_local7 < mn_index) {
if (mn_arr[_local7].hitTestObject(rn_arr[_local6])){
_local2 = _local7;
if (mn_life_arr[_local7] <= 0){
} else {
_local8 = (_arg1.currentTarget.y - mn_arr[_local7].y);
_local9 = (_arg1.currentTarget.x - mn_arr[_local7].x);
_local10 = Math.atan2(_local8, _local9);
_arg1.currentTarget.rotation = (((_local10 / Math.PI) * 180) + 90);
_local3 = true;
break;
};
};
_local7++;
};
if (tw_wait_arr[_local6] < tw_speed_arr[_local6]){
var _local12 = tw_wait_arr;
var _local13 = _local6;
var _local14 = (_local12[_local13] + 1);
_local12[_local13] = _local14;
} else {
if (_local3){
tw_arr[_local6].play();
tw_wait_arr[_local6] = 0;
_local4 = (tw_pDam_arr[_local6] * mn_pVul_arr[_local2]);
_local5 = (tw_eDam_arr[_local6] * mn_eVul_arr[_local2]);
mn_life_arr[_local2] = (mn_life_arr[_local2] - _local4);
mn_life_arr[_local2] = (mn_life_arr[_local2] - _local5);
_local11 = (1 - (mn_life_arr[_local6] / mn_maxLife_arr[_local6]));
TweenMax.to(mn_arr[_local2], 0, {colorMatrixFilter:{colorize:0xFF0000, amount:_local11}});
if ((((_local4 > 0)) || ((_local5 > 0)))){
bloodHandler(mn_arr[_local2]);
};
if (_local5 > _local4){
explosionHandler(mn_arr[_local2]);
if (((!((mn_life_arr[Number((_local2 - 1))] == null))) || (!((mn_life_arr[Number((_local2 - 1))] == undefined))))){
mn_life_arr[Number((_local2 - 1))] = (mn_life_arr[Number((_local2 - 1))] - _local5);
};
if (((!((mn_life_arr[Number((_local2 + 1))] == null))) || (!((mn_life_arr[Number((_local2 + 1))] == undefined))))){
mn_life_arr[Number((_local2 + 1))] = (mn_life_arr[Number((_local2 + 1))] - _local5);
};
};
};
};
}
public function nextLevel():void{
switch (gm_level){
case 1:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 5;
mn_numLife = 4;
mn_numDelay = 1000;
mn_numSpeed = 1.5;
spawnHandler("MN1");
break;
case 2:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 10;
mn_numLife = 6;
mn_numDelay = 1000;
mn_numSpeed = 2;
spawnHandler("MN1");
break;
case 3:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 15;
mn_numLife = 10;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 4:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 20;
mn_numLife = 15;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 5:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 20;
mn_numLife = 21;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 6:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 20;
mn_numLife = 29;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 7:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 20;
mn_numLife = 39;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 8:
reset();
mn_numPVul = 0.5;
mn_numEVul = 1;
mn_numSpawn = 5;
mn_numLife = 48;
mn_numDelay = 2000;
mn_numSpeed = 3;
spawnHandler("MN2");
break;
case 9:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 20;
mn_numLife = 58;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 10:
reset();
mn_numPVul = 0.5;
mn_numEVul = 0.5;
mn_numSpawn = 1;
mn_numLife = 400;
mn_numDelay = 1000;
mn_numSpeed = 3;
spawnHandler("MN3");
break;
case 11:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 25;
mn_numLife = 70;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 12:
reset();
mn_numPVul = 0.25;
mn_numEVul = 1;
mn_numSpawn = 15;
mn_numLife = 80;
mn_numDelay = 1500;
mn_numSpeed = 3;
spawnHandler("MN2");
break;
case 13:
reset();
mn_numPVul = 0.25;
mn_numEVul = 1;
mn_numSpawn = 15;
mn_numLife = 90;
mn_numDelay = 1500;
mn_numSpeed = 3;
spawnHandler("MN2");
break;
case 14:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 25;
mn_numLife = 99;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 15:
reset();
mn_numPVul = 1.25;
mn_numEVul = 1.25;
mn_numSpawn = 5;
mn_numLife = 101;
mn_numDelay = 2000;
mn_numSpeed = 3.5;
spawnHandler("MN4");
break;
case 16:
reset();
mn_numPVul = 0.25;
mn_numEVul = 1;
mn_numSpawn = 20;
mn_numLife = 110;
mn_numDelay = 1500;
mn_numSpeed = 3;
spawnHandler("MN2");
break;
case 17:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 30;
mn_numLife = 121;
mn_numDelay = 1500;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 18:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 105;
mn_numLife = 129;
mn_numDelay = 1500;
mn_numSpeed = 2.5;
spawnHandler("MN1");
break;
case 19:
reset();
mn_numPVul = 1.25;
mn_numEVul = 1.25;
mn_numSpawn = 25;
mn_numLife = 140;
mn_numDelay = 2000;
mn_numSpeed = 3;
spawnHandler("MN4");
break;
case 20:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 30;
mn_numLife = 152;
mn_numDelay = 1500;
mn_numSpeed = 2.5;
spawnHandler("MN5");
break;
case 21:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 30;
mn_numLife = 168;
mn_numDelay = 1500;
mn_numSpeed = 2.5;
spawnHandler("MN5");
break;
case 22:
reset();
mn_numPVul = 0;
mn_numEVul = 1;
mn_numSpawn = 10;
mn_numLife = 180;
mn_numDelay = 1000;
mn_numSpeed = 3.5;
spawnHandler("MN6");
break;
case 23:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 30;
mn_numLife = 191;
mn_numDelay = 2000;
mn_numSpeed = 2.5;
spawnHandler("MN5");
break;
case 24:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 20;
mn_numLife = 205;
mn_numDelay = 2000;
mn_numSpeed = 2.5;
spawnHandler("MN5");
break;
case 25:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 20;
mn_numLife = 220;
mn_numDelay = 2000;
mn_numSpeed = 2;
spawnHandler("MN5");
break;
case 26:
reset();
mn_numPVul = 1;
mn_numEVul = 1;
mn_numSpawn = 10;
mn_numLife = 234;
mn_numDelay = 2000;
mn_numSpeed = 2;
spawnHandler("MN5");
break;
case 27:
reset();
mn_numPVul = 0.5;
mn_numEVul = 1;
mn_numSpawn = 40;
mn_numLife = 250;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN2");
break;
case 28:
reset();
mn_numPVul = 0.5;
mn_numEVul = 1;
mn_numSpawn = 40;
mn_numLife = 260;
mn_numDelay = 1000;
mn_numSpeed = 2.5;
spawnHandler("MN2");
break;
case 29:
reset();
mn_numPVul = 0.5;
mn_numEVul = 1;
mn_numSpawn = 1;
mn_numLife = 2000;
mn_numDelay = 1000;
mn_numSpeed = 3;
spawnHandler("MN5");
break;
case 30:
reset();
mn_numPVul = 0;
mn_numEVul = 0.5;
mn_numSpawn = 1;
mn_numLife = 4000;
mn_numDelay = 1000;
mn_numSpeed = 1;
spawnHandler("MN7");
break;
};
}
public function playMoreHandler(_arg1:MouseEvent):void{
navigateToURL(request, "_blank");
}
public function startOver(_arg1:MouseEvent):void{
TweenMax.to(btn_start, 0.5, {alpha:0.7});
TweenMax.to(instructions, 1, {colorMatrixFilter:{amount:1, brightness:1.5}});
}
function frame3(){
stop();
TweenMax.to(blackout, 1, {alpha:0});
btn_start.addEventListener(MouseEvent.MOUSE_OVER, startOver);
btn_start.addEventListener(MouseEvent.MOUSE_OUT, startOut);
btn_start.addEventListener(MouseEvent.CLICK, startGame);
}
function frame4(){
gm_level = 0;
gm_score = 0;
gm_legalPos = true;
pl_money = 500;
pl_security = 100;
pl_airlift = 100;
pl_cursorBusy = false;
pl_int_index = 0;
pl_valid_x = 0;
pl_valid_y = 0;
pl_useAirlift = false;
tw_arr = new Array();
tw_type_arr = new Array();
tw_cost_arr = new Array();
tw_speed_arr = new Array();
tw_wait_arr = new Array();
tw_pDam_arr = new Array();
tw_eDam_arr = new Array();
tw_index = 0;
rn_arr = new Array();
rn_index = 0;
mn_pathX = [50, 465, 465, 55, 55, 165, 165, 275, 275, 350, 350, 460, 460];
mn_pathY = [75, 75, 185, 185, 460, 460, 250, 250, 460, 460, 250, 250, 550];
mn_arr = new Array();
mn_die_arr = new Array();
mn_type_arr = new Array();
mn_speed_arr = new Array();
mn_life_arr = new Array();
mn_maxLife_arr = new Array();
mn_pVul_arr = new Array();
mn_eVul_arr = new Array();
mn_killed = 0;
mn_numPVul = 1;
mn_numEVul = 1;
mn_index = 0;
mn_numSpawn = 10;
mn_numLife = 10;
mn_numDelay = 1000;
mn_numSpeed = 2;
addEventListener(Event.ENTER_FRAME, levelStateHandler);
addEventListener(Event.ENTER_FRAME, interfaceHandler);
stage.addEventListener(KeyboardEvent.KEY_DOWN, purchaseHandler);
stop();
btn_quality.addEventListener(MouseEvent.ROLL_OVER, qualityOver);
btn_quality.addEventListener(MouseEvent.ROLL_OUT, qualityOut);
btn_quality.addEventListener(MouseEvent.CLICK, quality);
qState = "high";
}
function frame2(){
stop();
TweenMax.to(btn_newGame, 1, {alpha:1});
TweenMax.to(blackout, 1, {alpha:0});
TweenMax.to(demo_txt, 1, {alpha:1});
btn_newGame.addEventListener(MouseEvent.MOUSE_OVER, newGameOver);
btn_newGame.addEventListener(MouseEvent.MOUSE_OUT, newGameOut);
btn_newGame.addEventListener(MouseEvent.CLICK, newGame);
btn_playMore.addEventListener(MouseEvent.MOUSE_DOWN, playMoreHandler);
btn_playMore.addEventListener(MouseEvent.ROLL_OUT, playMoreOut);
btn_playMore.addEventListener(MouseEvent.ROLL_OVER, playMoreOver);
url = "http://secure-us.imrworldwide.com/cgi-bin/b?cg=ugoplayer_flash_games&ci=us-ugclicks&tu=http://www.ugoplayer.com";
request = new URLRequest(url);
cm = new ContextMenu();
cm.hideBuiltInItems();
cm_item1 = new ContextMenuItem("©2008 UGOPLAYER");
cm.customItems.push(cm_item1);
this.contextMenu = cm;
stage.scaleMode = StageScaleMode.NO_SCALE;
}
public function explosionHandler(_arg1:Object):void{
var tmp_numExplosion:*;
var i:uint;
var removeExplosion:*;
var tmp_e:Explosion;
var tmp_mn = _arg1;
removeExplosion = function ():void{
var _local1:uint;
_local1 = 1;
while (_local1 <= tmp_numExplosion) {
removeChild(getChildByName(("ex" + _local1)));
_local1++;
};
};
tmp_numExplosion = 5;
i = 1;
while (i <= tmp_numExplosion) {
tmp_e = new Explosion();
tmp_e.name = ("ex" + i);
addChild(tmp_e);
tmp_e.x = tmp_mn.x;
tmp_e.y = tmp_mn.y;
if (i == tmp_numExplosion){
TweenMax.to(tmp_e, 1, {x:((tmp_mn.x + (Math.random() * 80)) - 40), y:((tmp_mn.y + (Math.random() * 80)) - 40), alpha:0, onComplete:removeExplosion});
} else {
TweenMax.to(tmp_e, 1, {x:((tmp_mn.x + (Math.random() * 80)) - 40), y:((tmp_mn.y + (Math.random() * 80)) - 40), alpha:0});
};
i = (i + 1);
};
}
function frame1(){
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, preloadHandler);
}
public function placementHandler(_arg1:MouseEvent):void{
var _local2:*;
var _local3:*;
_local2 = tw_arr[tw_index];
_local3 = rn_arr[rn_index];
if (((((placeable.hitTestPoint(mouseX, mouseY, true)) && (gm_legalPos))) && (pl_cursorBusy))){
TweenMax.to(info_cancel, 0.5, {alpha:0});
info_unit.gotoAndStop(1);
_local3.alpha = 0;
tw_arr[tw_index] = _local2;
rn_arr[rn_index] = _local3;
tw_wait_arr[tw_index] = 0;
_local2.addEventListener(Event.ENTER_FRAME, aimHandler);
Mouse.show();
pl_money = (pl_money - tw_cost_arr[tw_index]);
tw_index++;
rn_index++;
pl_cursorBusy = false;
gm_legalPos = false;
_local2.addEventListener(MouseEvent.MOUSE_OVER, interactOverHandler);
_local2.addEventListener(MouseEvent.MOUSE_OUT, interactOutHandler);
_local2.removeEventListener(Event.ENTER_FRAME, positionHandler);
_local2.removeEventListener(MouseEvent.CLICK, placementHandler);
};
}
public function interactOutHandler(_arg1:MouseEvent):void{
var _local2:*;
pl_useAirlift = false;
_local2 = _arg1.currentTarget.name.substr(2, _arg1.currentTarget.name.length);
TweenMax.to(tw_arr[_local2], 0.5, {scaleX:1, scaleY:1, blurFilter:{blurX:0, blurY:0}});
rn_arr[_local2].alpha = 0;
TweenMax.to(rn_arr[_local2], 0, {colorMatrixFilter:{colorize:0xFF0000, amount:0}});
TweenMax.to(info_interact, 0.5, {alpha:0});
info_unit.gotoAndStop(1);
}
public function preloadHandler(_arg1:ProgressEvent):void{
var _local2:Number;
_local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100);
loadBar.scaleX = (_local2 / 100);
}
public function quality(_arg1:MouseEvent):void{
if (qState == "high"){
stage.quality = StageQuality.LOW;
qState = "low";
} else {
stage.quality = StageQuality.HIGH;
qState = "high";
};
}
public function purchaseHandler(_arg1:KeyboardEvent):void{
var _local2:*;
var _local3:*;
var _local4:Tw1;
var _local5:Rn1;
var _local6:Tw2;
var _local7:Rn2;
var _local8:Tw3;
var _local9:Rn3;
var _local10:Tw4;
var _local11:Rn4;
var _local12:Tw5;
var _local13:Rn5;
var _local14:Tw6;
var _local15:Rn6;
if (pl_cursorBusy){
switch (_arg1.keyCode){
case Keyboard.SPACE:
info_unit.gotoAndStop(1);
TweenMax.to(info_cancel, 0.5, {alpha:0});
removeChild(tw_arr[tw_index]);
tw_arr[tw_index].removeEventListener(Event.ENTER_FRAME, positionHandler);
tw_arr[tw_index].removeEventListener(Event.ENTER_FRAME, placementHandler);
removeChild(rn_arr[rn_index]);
rn_arr[rn_index].removeEventListener(Event.ENTER_FRAME, positionHandler);
rn_arr[rn_index].removeEventListener(Event.ENTER_FRAME, placementHandler);
tw_arr[tw_index] = null;
pl_cursorBusy = false;
gm_legalPos = false;
Mouse.show();
break;
default:
trace("CURSOR IS BUSY");
};
} else {
if (!pl_cursorBusy){
switch (_arg1.keyCode){
case 49:
pl_cursorBusy = true;
gm_legalPos = true;
_local4 = new Tw1();
_local2 = _local4;
_local2.name = ("tw" + tw_index);
tw_arr[tw_index] = _local2;
tw_speed_arr[tw_index] = 35;
tw_pDam_arr[tw_index] = 3;
tw_eDam_arr[tw_index] = 0;
tw_type_arr[tw_index] = 1;
tw_cost_arr[tw_index] = 150;
_local5 = new Rn1();
_local3 = _local5;
_local3.name = ("rn" + rn_index);
rn_arr[rn_index] = _local3;
break;
case 50:
pl_cursorBusy = true;
gm_legalPos = true;
_local6 = new Tw2();
_local2 = _local6;
_local2.name = ("tw" + tw_index);
tw_speed_arr[tw_index] = 25;
tw_pDam_arr[tw_index] = 6;
tw_eDam_arr[tw_index] = 0;
tw_type_arr[tw_index] = 2;
tw_cost_arr[tw_index] = 400;
_local7 = new Rn2();
_local3 = _local7;
_local3.name = ("rn" + rn_index);
break;
case 51:
pl_cursorBusy = true;
gm_legalPos = true;
_local8 = new Tw3();
_local2 = _local8;
_local2.name = ("tw" + tw_index);
tw_speed_arr[tw_index] = 70;
tw_pDam_arr[tw_index] = 30;
tw_eDam_arr[tw_index] = 0;
tw_type_arr[tw_index] = 3;
tw_cost_arr[tw_index] = 1000;
_local9 = new Rn3();
_local3 = _local9;
_local3.name = ("rn" + rn_index);
break;
case 52:
pl_cursorBusy = true;
gm_legalPos = true;
_local10 = new Tw4();
_local2 = _local10;
_local2.name = ("tw" + tw_index);
tw_speed_arr[tw_index] = 90;
tw_pDam_arr[tw_index] = 0;
tw_eDam_arr[tw_index] = 30;
tw_type_arr[tw_index] = 4;
tw_cost_arr[tw_index] = 600;
_local11 = new Rn4();
_local3 = _local11;
_local3.name = ("rn" + rn_index);
break;
case 53:
pl_cursorBusy = true;
gm_legalPos = true;
_local12 = new Tw5();
_local2 = _local12;
_local2.name = ("tw" + tw_index);
tw_speed_arr[tw_index] = 80;
tw_pDam_arr[tw_index] = 0;
tw_eDam_arr[tw_index] = 50;
tw_type_arr[tw_index] = 5;
tw_cost_arr[tw_index] = 1400;
_local13 = new Rn5();
_local3 = _local13;
_local3.name = ("rn" + rn_index);
break;
case 54:
pl_cursorBusy = true;
gm_legalPos = true;
_local14 = new Tw6();
_local2 = _local14;
_local2.name = ("tw" + tw_index);
tw_speed_arr[tw_index] = 70;
tw_pDam_arr[tw_index] = 0;
tw_eDam_arr[tw_index] = 40;
tw_type_arr[tw_index] = 6;
tw_cost_arr[tw_index] = 2100;
_local15 = new Rn6();
_local3 = _local15;
_local3.name = ("rn" + rn_index);
break;
default:
pl_cursorBusy = false;
gm_legalPos = false;
tw_cost_arr[tw_index] = 999999;
trace("ERROR : UNDEFINED PURCHASEHANDLER() PARAMETER");
};
if ((((((pl_money >= tw_cost_arr[tw_index])) && (pl_cursorBusy))) && (gm_legalPos))){
info_unit.gotoAndStop((Number(tw_type_arr[tw_index]) + 1));
TweenMax.to(info_cancel, 0.5, {alpha:0.7});
Mouse.hide();
addChildAt(_local3, 2);
addChild(_local2);
tw_arr[tw_index] = _local2;
rn_arr[rn_index] = _local3;
_local2.addEventListener(Event.ENTER_FRAME, positionHandler);
} else {
pl_cursorBusy = false;
gm_legalPos = false;
};
};
};
}
public function qualityOver(_arg1:MouseEvent):void{
TweenMax.to(btn_quality, 0.5, {alpha:0.7});
}
public function playMoreOver(_arg1:MouseEvent):void{
TweenMax.to(btn_playMore, 0.5, {alpha:0.7});
TweenMax.to(titleScreen, 1, {colorMatrixFilter:{amount:1, brightness:1.5}});
}
public function reset():void{
mn_arr = [];
mn_die_arr = [];
mn_type_arr = [];
mn_speed_arr = [];
mn_life_arr = [];
mn_maxLife_arr = [];
mn_pVul_arr = [];
mn_eVul_arr = [];
mn_killed = 0;
mn_index = 0;
}
public function levelStateHandler(_arg1:Event):void{
var overInfoWave:*;
var outInfoWave:*;
var closeInfoWave:*;
var nextLevelOver:*;
var nextLevelOut:*;
var nextLevelBegin:*;
var i:*;
var event = _arg1;
if ((((((mn_killed == mn_numSpawn)) || ((gm_level == 29)))) || ((gm_level == 0)))){
overInfoWave = function (_arg1:MouseEvent):void{
TweenMax.to(info_wave, 0.5, {alpha:0.7});
};
outInfoWave = function (_arg1:MouseEvent):void{
TweenMax.to(info_wave, 0.5, {alpha:1});
};
closeInfoWave = function (_arg1:MouseEvent):void{
TweenMax.to(info_wave, 0.5, {alpha:0});
info_wave.removeEventListener(MouseEvent.ROLL_OVER, overInfoWave);
info_wave.removeEventListener(MouseEvent.ROLL_OUT, outInfoWave);
info_wave.removeEventListener(MouseEvent.CLICK, closeInfoWave);
};
nextLevelOver = function (_arg1:MouseEvent):void{
TweenMax.to(btn_start, 0.5, {alpha:0.7});
};
nextLevelOut = function (_arg1:MouseEvent):void{
TweenMax.to(btn_start, 0.5, {alpha:1});
};
nextLevelBegin = function (_arg1:MouseEvent):void{
info_wave.removeEventListener(MouseEvent.ROLL_OVER, overInfoWave);
info_wave.removeEventListener(MouseEvent.ROLL_OUT, outInfoWave);
info_wave.removeEventListener(MouseEvent.CLICK, closeInfoWave);
pl_airlift = 100;
TweenMax.to(info_wave, 0.5, {alpha:0});
TweenMax.to(btn_start, 0.5, {alpha:0});
nextLevel();
btn_start.removeEventListener(MouseEvent.CLICK, nextLevelBegin);
btn_start.removeEventListener(MouseEvent.ROLL_OVER, nextLevelOver);
btn_start.removeEventListener(MouseEvent.ROLL_OUT, nextLevelOut);
};
gm_level++;
if (gm_level == 31){
info_gameOver.desc_txt.text = (("You finished all 30 levels with " + pl_money) + " money to spare!");
TweenMax.to(info_gameOver, 1, {alpha:1});
removeEventListener(Event.ENTER_FRAME, levelStateHandler);
} else {
if (pl_security <= 0){
info_gameOver.desc_txt.text = ("Game over at wave " + Number((gm_level - 1)));
TweenMax.to(info_gameOver, 1, {alpha:1});
TweenMax.to(info_wave, 1, {alpha:0});
removeEventListener(Event.ENTER_FRAME, levelStateHandler);
};
};
if (gm_level != 0){
i = 0;
while (i < mn_killed) {
removeChild(getChildByName(("mn" + i)));
i = (i + 1);
};
};
TweenMax.to(btn_start, 0.5, {alpha:1});
TweenMax.to(info_wave, 0.5, {alpha:0.8});
info_wave.level_txt.text = gm_level;
switch (gm_level){
case 1:
info_wave.desc_txt.text = "Five subjects have broken out of the research facility! Contain the situation by eliminating them immediately.";
break;
case 2:
info_wave.desc_txt.text = "Don't forget about the helicopter dispatched by Security. It can airlift units about the facility to increase tactical ability.";
break;
case 3:
info_wave.desc_txt.text = "If you are over an invalid area when you stop airlifting, the unit will be dropped back on the last legal area.";
break;
case 4:
info_wave.desc_txt.text = "Airlifting is an invaluable tactic in preventing possible escapes, but the more powerful a unit is, the faster it uses up airlift power.";
break;
case 5:
info_wave.desc_txt.text = "Keep in mind that different monsters have different levels of vulnerability to piercing/explosive damage.";
break;
case 6:
info_wave.desc_txt.text = "Airlift is restored at the end and beginning of every wave, so don't stinge on using it if the situation calls for it.";
break;
case 7:
info_wave.desc_txt.text = "If you haven't invested in an explosive-type defense, soon would be a very good time to do so.";
break;
case 8:
info_wave.desc_txt.text = "There's been a breach in the level-2 restricted research wards. Intel suggests these subjects are a step up from the normal threat.";
break;
case 9:
info_wave.desc_txt.text = "We've requested reinforcements, but the other sectors have their hands full as well.";
break;
case 10:
info_wave.desc_txt.text = "A strange electromagnetic anomaly is affecting our radio communications ... our scans detect something large heading our way!";
break;
case 11:
info_wave.desc_txt.text = "Communications are back online. The other sectors are reporting heavy casualties from the fighting.";
break;
case 12:
info_wave.desc_txt.text = "Good news! Most level-1 zones have been purged. The bad news? Breaches are now occurring in the level-2 zones.";
break;
case 13:
info_wave.desc_txt.text = "There have been rumours going on that rival corporate giant Velvet masterminded the breaches to destroy their competition.";
break;
case 14:
info_wave.desc_txt.text = "The outlook is bleak. Sector 1, 12, and 20 were annihilated in the latest wave. Our sector is one of the few remaining.";
break;
case 15:
info_wave.desc_txt.text = "The first level-3 zone breach has been reported, and I suggest we not become complacent from our recent victory.";
break;
case 16:
info_wave.desc_txt.text = "There are conflicting reports from HQ - to wait for reinforcements or pull out, no one can give a definite answer.";
break;
case 17:
info_wave.desc_txt.text = "If we didn't have airlift capability, we'd be goners. A hypothetical situation, of course.";
break;
case 18:
info_wave.desc_txt.text = "Do you think we'll be able to survive the day?";
break;
case 19:
info_wave.desc_txt.text = "The most optimistic reports state that we've destroyed near three-quarters of the facility's subjects.";
break;
case 20:
info_wave.desc_txt.text = "What's going on?! The approaching mob consist of Velvet soldiers!";
break;
case 21:
info_wave.desc_txt.text = "It seems Velvet is taking advantage of the opportunity to deal us the finishing blow. We must hold out against them!";
break;
case 22:
info_wave.desc_txt.text = "Velvet vehicles are on the way, be prepared.";
break;
case 23:
info_wave.desc_txt.text = "The men are putting on a spirited defence, as there are only 7 more wa - I mean, they revel in destroying those Velvet dogs!";
break;
case 24:
info_wave.desc_txt.text = "The enemy forces seem to be thinning, could we be gaining the upper hand?";
break;
case 25:
info_wave.desc_txt.text = "Sector 12 was destroyed in the latest blitz. It seems that we are the last remaining sector.";
break;
case 26:
info_wave.desc_txt.text = "Reports show that the main Velvet force seem to be retreating. There are still some stragglers left though.";
break;
case 27:
info_wave.desc_txt.text = "They've retreated, but something doesn't seem right ...";
break;
case 28:
info_wave.desc_txt.text = "Leftovers.";
break;
case 29:
info_wave.desc_txt.text = "Odd. We detect only one advancing life form.";
break;
case 30:
info_wave.desc_txt.text = "The previous one must have been a scout. We detect a boss-level entity approaching!";
break;
};
info_wave.addEventListener(MouseEvent.ROLL_OVER, overInfoWave);
info_wave.addEventListener(MouseEvent.ROLL_OUT, outInfoWave);
info_wave.addEventListener(MouseEvent.CLICK, closeInfoWave);
btn_start.addEventListener(MouseEvent.CLICK, nextLevelBegin);
btn_start.addEventListener(MouseEvent.ROLL_OVER, nextLevelOver);
btn_start.addEventListener(MouseEvent.ROLL_OUT, nextLevelOut);
pl_airlift = 100;
mn_killed = 0;
};
}
public function kill(_arg1:uint):void{
removeChild(tw_arr[_arg1]);
removeChild(rn_arr[_arg1]);
tw_arr[_arg1].removeEventListener(Event.ENTER_FRAME, aimHandler);
tw_arr[_arg1].removeEventListener(Event.ENTER_FRAME, interactOverHandler);
tw_arr[_arg1].removeEventListener(Event.ENTER_FRAME, interactOutHandler);
tw_cost_arr[_arg1] = null;
tw_pDam_arr[_arg1] = null;
tw_eDam_arr[_arg1] = null;
tw_speed_arr[_arg1] = null;
tw_wait_arr[_arg1] = null;
tw_type_arr[_arg1] = null;
rn_arr[_arg1] = null;
tw_arr[_arg1] = null;
}
public function spawnHandler(_arg1:String){
var tmp_success:Boolean;
var tmp_mn:*;
var tmp_ht:*;
var tmr:Timer;
var tmrHandler:*;
var spawn_type = _arg1;
tmrHandler = function (_arg1:TimerEvent):void{
var mn1:Mn1;
var mn2:Mn2;
var mn3:Mn3;
var mn4:Mn4;
var mn5:Mn5;
var mn6:Mn6;
var mn7:Mn7;
var tmp_numPath:uint;
var behaviorHandler:*;
var event = _arg1;
switch (spawn_type){
case "MN1":
mn1 = new Mn1();
tmp_mn = mn1;
mn_type_arr[mn_index] = 1;
break;
case "MN2":
mn2 = new Mn2();
tmp_mn = mn2;
mn_type_arr[mn_index] = 2;
break;
case "MN3":
mn3 = new Mn3();
tmp_mn = mn3;
mn_type_arr[mn_index] = 3;
break;
case "MN4":
mn4 = new Mn4();
tmp_mn = mn4;
mn_type_arr[mn_index] = 4;
break;
case "MN5":
mn5 = new Mn5();
tmp_mn = mn5;
mn_type_arr[mn_index] = 5;
break;
case "MN6":
mn6 = new Mn6();
tmp_mn = mn6;
mn_type_arr[mn_index] = 6;
break;
case "MN7":
mn7 = new Mn7();
tmp_mn = mn7;
mn_type_arr[mn_index] = 7;
break;
default:
tmp_success = false;
trace("ERROR : UNDEFINED SPAWNHANDLER() PARAMETER");
};
if (tmp_success){
behaviorHandler = function (_arg1:Event):void{
var tmp_mn_index:*;
var distX:Number;
var distY:Number;
var angle:*;
var cleanup:*;
var reward:*;
var event = _arg1;
cleanup = function (_arg1:uint):void{
mn_arr[_arg1].removeEventListener(Event.ENTER_FRAME, behaviorHandler);
};
tmp_mn_index = event.currentTarget.name.substr(2, event.currentTarget.name.length);
distX = ((mn_pathX[tmp_numPath] - getChildByName(("mn" + tmp_mn_index)).x) + Math.round(((Math.random() * 20) - 10)));
distY = ((mn_pathY[tmp_numPath] - getChildByName(("mn" + tmp_mn_index)).y) + Math.round(((Math.random() * 20) - 10)));
if ((Math.abs(distX) + Math.abs(distY)) < 10){
tmp_numPath++;
};
angle = Math.atan2(distY, distX);
getChildByName(("mn" + tmp_mn_index)).x = (event.currentTarget.x + (mn_numSpeed * Math.cos(angle)));
getChildByName(("mn" + tmp_mn_index)).y = (event.currentTarget.y + (mn_numSpeed * Math.sin(angle)));
getChildByName(("mn" + tmp_mn_index)).rotation = (((angle / Math.PI) * 180) - 90);
if (mn_life_arr[tmp_mn_index] <= 0){
TweenMax.to(mn_arr[tmp_mn_index], 0, {colorMatrixFilter:{colorize:0xFF0000, amount:0}});
reward = ((mn_type_arr[tmp_mn_index] * gm_level) * 2);
if (reward > 30){
reward = 30;
};
pl_money = (pl_money + reward);
getChildByName(("mn" + tmp_mn_index)).rotation = (Math.random() * 360);
getChildByName(("mn" + tmp_mn_index)).gotoAndPlay("die");
cleanup(tmp_mn_index);
mn_killed++;
};
if (mn_arr[tmp_mn_index].y > 499){
pl_security = (pl_security - (mn_type_arr[tmp_mn_index] * 2));
cleanup(tmp_mn_index);
mn_killed++;
};
};
tmp_mn.name = ("mn" + mn_index);
addChild(tmp_mn);
tmp_mn.x = 50;
tmp_mn.y = -15;
mn_arr[mn_index] = tmp_mn;
mn_speed_arr[mn_index] = mn_numSpeed;
mn_life_arr[mn_index] = mn_numLife;
mn_maxLife_arr[mn_index] = mn_numLife;
mn_pVul_arr[mn_index] = mn_numPVul;
mn_eVul_arr[mn_index] = mn_numEVul;
tmp_numPath = 0;
tmp_mn.addEventListener(Event.ENTER_FRAME, behaviorHandler);
mn_index++;
};
};
tmp_success = true;
tmr = new Timer(mn_numDelay, mn_numSpawn);
tmr.addEventListener(TimerEvent.TIMER, tmrHandler);
tmr.start();
if (mn_index >= mn_numSpawn){
tmr.stop();
tmr.removeEventListener(TimerEvent.TIMER, tmrHandler);
tmr = null;
};
}
public function startGame(_arg1:MouseEvent):void{
var goToGame:*;
var event = _arg1;
goToGame = function ():void{
gotoAndPlay("game");
};
TweenMax.to(blackout, 1, {alpha:1, onComplete:goToGame});
TweenMax.to(btn_start, 1, {alpha:0});
btn_start.removeEventListener(MouseEvent.MOUSE_OVER, startOver);
btn_start.removeEventListener(MouseEvent.MOUSE_OUT, startOut);
btn_start.removeEventListener(MouseEvent.CLICK, startGame);
}
public function startOut(_arg1:MouseEvent):void{
TweenMax.to(btn_start, 0.5, {alpha:1});
TweenMax.to(instructions, 1, {colorMatrixFilter:{amount:1, brightness:1}});
}
public function newGameOver(_arg1:MouseEvent):void{
TweenMax.to(btn_newGame, 0.5, {alpha:0.7});
TweenMax.to(titleScreen, 1, {colorMatrixFilter:{amount:1, brightness:1.5}});
}
public function newGame(_arg1:MouseEvent):void{
var goToInstructions:*;
var event = _arg1;
goToInstructions = function ():void{
gotoAndPlay("instructions");
};
TweenMax.to(blackout, 1, {alpha:1, onComplete:goToInstructions});
TweenMax.to(btn_newGame, 1, {alpha:0});
TweenMax.to(btn_playMore, 1, {alpha:0});
btn_newGame.removeEventListener(MouseEvent.MOUSE_OVER, newGameOver);
btn_newGame.removeEventListener(MouseEvent.MOUSE_OUT, newGameOut);
btn_newGame.removeEventListener(MouseEvent.CLICK, newGame);
TweenMax.to(demo_txt, 1, {alpha:0});
}
public function interactOverHandler(_arg1:MouseEvent):void{
var actionHandler:*;
var inactionHandler:*;
var event = _arg1;
actionHandler = function (_arg1:KeyboardEvent):void{
var _local2:uint;
if (_arg1.keyCode == 83){
pl_money = (pl_money + (tw_cost_arr[pl_int_index] / 2));
kill(pl_int_index);
} else {
if (_arg1.keyCode == 65){
if (pl_airlift > 0.1){
pl_useAirlift = true;
pl_airlift = (pl_airlift - ((0.05 * tw_type_arr[pl_int_index]) / 2));
pl_cursorBusy = true;
TweenMax.to(tw_arr[pl_int_index], 0.5, {scaleX:1.5, scaleY:1.5, blurFilter:{blurX:5, blurY:5}});
TweenMax.to(rn_arr[pl_int_index], 0.5, {scaleX:1.5, scaleY:1.5});
tw_arr[pl_int_index].x = mouseX;
tw_arr[pl_int_index].y = mouseY;
rn_arr[pl_int_index].x = mouseX;
rn_arr[pl_int_index].y = mouseY;
if (!placeable.hitTestPoint(mouseX, mouseY, true)){
TweenMax.to(rn_arr[pl_int_index], 0.2, {colorMatrixFilter:{colorize:0xFF0000, amount:1}});
} else {
pl_valid_x = mouseX;
pl_valid_y = mouseY;
TweenMax.to(rn_arr[pl_int_index], 0.2, {colorMatrixFilter:{colorize:0xFF0000, amount:0}});
};
_local2 = 0;
while (_local2 < tw_index) {
if (_local2 != pl_int_index){
if (tw_arr[_local2].hitTestPoint(mouseX, mouseY, true)){
TweenMax.to(rn_arr[pl_int_index], 0.2, {colorMatrixFilter:{colorize:0xFF0000, amount:1}});
};
};
_local2++;
};
} else {
if (!placeable.hitTestPoint(mouseX, mouseY, true)){
pl_useAirlift = false;
TweenMax.to(rn_arr[pl_int_index], 0, {colorMatrixFilter:{colorize:0xFF0000, amount:0}});
tw_arr[pl_int_index].x = pl_valid_x;
tw_arr[pl_int_index].y = pl_valid_y;
rn_arr[pl_int_index].x = tw_arr[pl_int_index].x;
rn_arr[pl_int_index].y = tw_arr[pl_int_index].y;
};
};
};
};
};
inactionHandler = function (_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 65){
pl_useAirlift = false;
TweenMax.to(info_interact, 0.5, {alpha:0});
info_unit.gotoAndStop(1);
pl_cursorBusy = false;
if (pl_airlift > 0.1){
TweenMax.to(tw_arr[pl_int_index], 0.5, {scaleX:1, scaleY:1, blurFilter:{blurX:0, blurY:0}});
TweenMax.to(rn_arr[pl_int_index], 0.5, {scaleX:1, scaleY:1});
};
if (!placeable.hitTestPoint(mouseX, mouseY, true)){
TweenMax.to(rn_arr[pl_int_index], 0, {colorMatrixFilter:{colorize:0xFF0000, amount:0}});
tw_arr[pl_int_index].x = pl_valid_x;
tw_arr[pl_int_index].y = pl_valid_y;
rn_arr[pl_int_index].x = tw_arr[pl_int_index].x;
rn_arr[pl_int_index].y = tw_arr[pl_int_index].y;
};
stage.removeEventListener(KeyboardEvent.KEY_DOWN, actionHandler);
stage.removeEventListener(KeyboardEvent.KEY_UP, inactionHandler);
};
};
pl_int_index = event.currentTarget.name.substr(2, event.currentTarget.name.length);
rn_arr[pl_int_index].alpha = 1;
TweenMax.to(info_interact, 0.5, {alpha:0.7});
info_unit.gotoAndStop((Number(tw_type_arr[pl_int_index]) + 1));
stage.addEventListener(KeyboardEvent.KEY_DOWN, actionHandler);
stage.addEventListener(KeyboardEvent.KEY_UP, inactionHandler);
}
public function qualityOut(_arg1:MouseEvent):void{
TweenMax.to(btn_quality, 0.5, {alpha:1});
}
public function interfaceHandler(_arg1:Event):void{
moneyDisplay.text = String(pl_money);
securityDisplay.text = String(pl_security);
airliftDisplay.text = String(pl_airlift);
levelDisplay.text = String(gm_level);
if (pl_money < 0){
pl_money = 0;
};
if (pl_security < 0){
pl_security = 0;
};
if (pl_airlift < 0){
pl_airlift = 0;
};
if (pl_airlift > 100){
pl_airlift = 100;
};
if ((((pl_airlift < 100)) && (!(pl_useAirlift)))){
pl_airlift = (pl_airlift + 0.01);
};
}
public function positionHandler(_arg1:Event):void{
var _local2:*;
var _local3:*;
var _local4:uint;
_local2 = tw_arr[tw_index];
_local3 = rn_arr[rn_index];
_local2.x = mouseX;
_local2.y = mouseY;
_local3.x = mouseX;
_local3.y = mouseY;
if (placeable.hitTestPoint(mouseX, mouseY, true)){
gm_legalPos = true;
TweenMax.to(_local3, 0.2, {colorMatrixFilter:{colorize:0xFF0000, amount:0}});
} else {
gm_legalPos = false;
TweenMax.to(_local3, 0.2, {colorMatrixFilter:{colorize:0xFF0000, amount:1}});
};
_local4 = 0;
while (_local4 < tw_index) {
if (tw_arr[_local4].hitTestPoint(mouseX, mouseY, true)){
gm_legalPos = false;
TweenMax.to(_local3, 0.2, {colorMatrixFilter:{colorize:0xFF0000, amount:1}});
};
_local4++;
};
stage.addEventListener(MouseEvent.CLICK, placementHandler);
}
public function playMoreOut(_arg1:MouseEvent):void{
TweenMax.to(btn_playMore, 0.5, {alpha:1});
TweenMax.to(titleScreen, 1, {colorMatrixFilter:{amount:1, brightness:1}});
}
public function bloodHandler(_arg1:Object):void{
var tmp_numBlood:*;
var i:uint;
var removeBlood:*;
var tmp_b:Blood;
var tmp_mn = _arg1;
removeBlood = function ():void{
var _local1:uint;
_local1 = 1;
while (_local1 <= tmp_numBlood) {
removeChild(getChildByName(("bl" + _local1)));
_local1++;
};
};
tmp_numBlood = 5;
i = 1;
while (i <= tmp_numBlood) {
tmp_b = new Blood();
tmp_b.name = ("bl" + i);
addChild(tmp_b);
tmp_b.x = tmp_mn.x;
tmp_b.y = tmp_mn.y;
if (i == tmp_numBlood){
TweenMax.to(tmp_b, 1, {x:((tmp_mn.x + (Math.random() * 40)) - 20), y:((tmp_mn.y + (Math.random() * 40)) - 20), alpha:0, onComplete:removeBlood});
} else {
TweenMax.to(tmp_b, 1, {x:((tmp_mn.x + (Math.random() * 40)) - 20), y:((tmp_mn.y + (Math.random() * 40)) - 20), alpha:0});
};
i = (i + 1);
};
}
}
}//package Mochibot
Section 10
//Blood (Blood)
package {
import flash.display.*;
public dynamic class Blood extends MovieClip {
}
}//package
Section 11
//Explosion (Explosion)
package {
import flash.display.*;
public dynamic class Explosion extends MovieClip {
}
}//package
Section 12
//healthText (healthText)
package {
import flash.display.*;
import flash.text.*;
public dynamic class healthText extends MovieClip {
public var hT:TextField;
}
}//package
Section 13
//Heli (Heli)
package {
import flash.display.*;
public dynamic class Heli extends MovieClip {
}
}//package
Section 14
//Mn1 (Mn1)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Mn1 extends MovieClip {
public function Mn1(){
addFrameScript(12, frame13, 19, frame20);
}
function frame20(){
stop();
}
function frame13(){
gotoAndPlay(1);
}
}
}//package
Section 15
//Mn2 (Mn2)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Mn2 extends MovieClip {
public function Mn2(){
addFrameScript(12, frame13, 19, frame20);
}
function frame20(){
stop();
}
function frame13(){
gotoAndPlay(1);
}
}
}//package
Section 16
//Mn3 (Mn3)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Mn3 extends MovieClip {
public function Mn3(){
addFrameScript(13, frame14, 19, frame20);
}
function frame14(){
gotoAndPlay(1);
}
function frame20(){
stop();
}
}
}//package
Section 17
//Mn4 (Mn4)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Mn4 extends MovieClip {
public function Mn4(){
addFrameScript(12, frame13, 19, frame20);
}
function frame20(){
stop();
}
function frame13(){
gotoAndPlay(1);
}
}
}//package
Section 18
//Mn5 (Mn5)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Mn5 extends MovieClip {
public function Mn5(){
addFrameScript(12, frame13, 19, frame20);
}
function frame20(){
stop();
}
function frame13(){
gotoAndPlay(1);
}
}
}//package
Section 19
//Mn6 (Mn6)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Mn6 extends MovieClip {
public function Mn6(){
addFrameScript(3, frame4, 12, frame13);
}
function frame13(){
stop();
}
function frame4(){
gotoAndPlay(1);
}
}
}//package
Section 20
//Mn7 (Mn7)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Mn7 extends MovieClip {
public function Mn7(){
addFrameScript(13, frame14, 19, frame20);
}
function frame14(){
gotoAndPlay(1);
}
function frame20(){
stop();
}
}
}//package
Section 21
//MochiBot (MochiBot)
package {
import flash.display.*;
import flash.net.*;
import flash.system.*;
public dynamic class MochiBot extends MovieClip {
public function MochiBot(){
addFrameScript(0, frame1);
}
function frame1(){
_slot1.track(this, "7f641f63");
}
public static function track(_arg1:MovieClip, _arg2:String):MochiBot{
var _local3:MochiBot;
var _local4:String;
var _local5:URLVariables;
var _local6:String;
var _local7:URLRequest;
var _local8:Loader;
if (Security.sandboxType == "localWithFile"){
return (null);
};
_local3 = new (MochiBot);
addChild(_local3);
Security.allowDomain("*");
Security.allowInsecureDomain("*");
_local4 = "http://core.mochibot.com/my/core.swf";
_local5 = new URLVariables();
_local5["sb"] = Security.sandboxType;
_local5["v"] = Capabilities.version;
_local5["swfid"] = _arg2;
_local5["mv"] = "8";
_local5["fv"] = "9";
_local6 = _local3.root.loaderInfo.loaderURL;
if (_local6.indexOf("http") == 0){
_local5["url"] = _local6;
} else {
_local5["url"] = "local";
};
_local7 = new URLRequest(_local4);
_local7.contentType = "application/x-www-form-urlencoded";
_local7.method = URLRequestMethod.POST;
_local7.data = _local5;
_local8 = new Loader();
_local3.addChild(_local8);
_local8.load(_local7);
return (_local3);
}
}
}//package
Section 22
//Rn1 (Rn1)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Rn1 extends MovieClip {
public function Rn1(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 23
//Rn2 (Rn2)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Rn2 extends MovieClip {
public function Rn2(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 24
//Rn3 (Rn3)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Rn3 extends MovieClip {
public function Rn3(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 25
//Rn4 (Rn4)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Rn4 extends MovieClip {
public function Rn4(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 26
//Rn5 (Rn5)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Rn5 extends MovieClip {
public function Rn5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 27
//Rn6 (Rn6)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Rn6 extends MovieClip {
public function Rn6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 28
//Tw1 (Tw1)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Tw1 extends MovieClip {
public var selector:MovieClip;
public function Tw1(){
addFrameScript(0, frame1, 8, frame9);
}
function frame1(){
stop();
}
function frame9(){
gotoAndStop(1);
}
}
}//package
Section 29
//Tw2 (Tw2)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Tw2 extends MovieClip {
public var selector:MovieClip;
public function Tw2(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 30
//Tw3 (Tw3)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Tw3 extends MovieClip {
public var selector:MovieClip;
public function Tw3(){
addFrameScript(0, frame1, 14, frame15);
}
function frame15(){
gotoAndStop(1);
}
function frame1(){
stop();
}
}
}//package
Section 31
//Tw4 (Tw4)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Tw4 extends MovieClip {
public var selector:MovieClip;
public function Tw4(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package
Section 32
//Tw5 (Tw5)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Tw5 extends MovieClip {
public var selector:MovieClip;
public function Tw5(){
addFrameScript(0, frame1, 12, frame13);
}
function frame1(){
stop();
}
function frame13(){
gotoAndStop(1);
}
}
}//package
Section 33
//Tw6 (Tw6)
package {
import flash.events.*;
import flash.filters.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import flash.utils.*;
import flash.geom.*;
import flash.media.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.system.*;
public dynamic class Tw6 extends MovieClip {
public var selector:MovieClip;
public function Tw6(){
addFrameScript(0, frame1, 10, frame11);
}
function frame1(){
stop();
}
function frame11(){
gotoAndStop(1);
}
}
}//package