Section 1
//Angler (Functions.Angler)
package Functions {
public function Angler(_arg1:Number, _arg2:Number):Number{
_arg1 = (((_arg2 - _arg1) * 180) / Math.PI);
if (_arg1 >= 180){
_arg1 = (_arg1 - 360);
} else {
if (_arg1 <= -180){
_arg1 = (_arg1 + 360);
};
};
return (((_arg1 * Math.PI) / 180));
}
}//package Functions
Section 2
//Distance2 (Functions.Distance2)
package Functions {
public function Distance2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return ((((_arg3 - _arg1) * (_arg3 - _arg1)) + ((_arg4 - _arg2) * (_arg4 - _arg2))));
}
}//package Functions
Section 3
//LineLine (Functions.LineLine)
package Functions {
public function LineLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number):Boolean{
var _local9:Number = ((((_arg7 - _arg5) * (_arg2 - _arg6)) - ((_arg8 - _arg6) * (_arg1 - _arg5))) / (((_arg8 - _arg6) * (_arg3 - _arg1)) - ((_arg7 - _arg5) * (_arg4 - _arg2))));
var _local10:Number = ((((_arg3 - _arg1) * (_arg2 - _arg6)) - ((_arg4 - _arg2) * (_arg1 - _arg5))) / (((_arg8 - _arg6) * (_arg3 - _arg1)) - ((_arg7 - _arg5) * (_arg4 - _arg2))));
if ((((((((((_local9 < 1)) && ((_local9 > 0)))) && ((_local10 < 1)))) && ((_local10 > 0)))) || ((((_local9 == 0)) && ((_local10 == 0)))))){
return (true);
};
return (false);
}
}//package Functions
Section 4
//LineRect (Functions.LineRect)
package Functions {
public function LineRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:uint, _arg8:uint):Boolean{
var _local9:Boolean;
var _local10:String = (Sign((_arg3 - _arg1)).toString() + Sign((_arg4 - _arg2)).toString());
switch (_local10){
case "-1-1":
_local9 = LineLine(_arg1, _arg2, _arg3, _arg4, (_arg5 + _arg7), _arg6, (_arg5 + _arg7), (_arg6 + _arg8));
if (_local9 == false){
return (LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, (_arg6 + _arg8), (_arg5 + _arg7), (_arg6 + _arg8)));
};
return (_local9);
case "-10":
return (LineLine(_arg1, _arg2, _arg3, _arg4, (_arg5 + _arg7), _arg6, (_arg5 + _arg7), (_arg6 + _arg8)));
case "-11":
_local9 = LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, (_arg5 + _arg7), _arg6);
if (_local9 == false){
return (LineLine(_arg1, _arg2, _arg3, _arg4, (_arg5 + _arg7), _arg6, (_arg5 + _arg7), (_arg6 + _arg8)));
};
return (_local9);
case "0-1":
return (LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, (_arg6 + _arg8), (_arg5 + _arg7), (_arg6 + _arg8)));
case "01":
return (LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, (_arg5 + _arg7), _arg6));
case "1-1":
_local9 = LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, (_arg6 + _arg8), (_arg5 + _arg7), (_arg6 + _arg8));
if (_local9 == false){
return (LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, (_arg5 + _arg7), (_arg6 + _arg8)));
};
return (_local9);
case "10":
return (LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg5, (_arg6 + _arg8)));
case "11":
_local9 = LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg5, (_arg6 + _arg8));
if (_local9 == false){
return (LineLine(_arg1, _arg2, _arg3, _arg4, _arg5, (_arg6 + _arg8), (_arg5 + _arg7), _arg6));
};
return (_local9);
case "00":
return (false);
};
return (false);
}
}//package Functions
Section 5
//RectRect (Functions.RectRect)
package Functions {
public function RectRect(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:uint, _arg5:Number, _arg6:Number, _arg7:uint, _arg8:uint):Boolean{
var _local9:Number = (_arg5 - _arg1);
var _local10:Number = (_arg6 - _arg2);
if ((((((((_local9 <= _arg3)) && ((_local9 >= -(_arg7))))) && ((_local10 <= _arg4)))) && ((_local10 >= -(_arg8))))){
return (true);
};
return (false);
}
}//package Functions
Section 6
//Sign (Functions.Sign)
package Functions {
public function Sign(_arg1:Number):int{
if (_arg1 > 0){
return (1);
};
if (_arg1 < 0){
return (-1);
};
return (0);
}
}//package Functions
Section 7
//MochiAd (Mochi.MochiAd)
package Mochi {
import flash.events.*;
import flash.display.*;
import obs.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MochiAd {
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
var sendHostProgress:Boolean;
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
_local3 = true;
chk.started = getTimer();
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (this.root == null){
_local3 = true;
};
if (_local3){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(_arg1:String):String{
var _local2:String = _arg1.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(_local2);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(_local2);
return (_local2);
}
public static function unload(_arg1:Object):Boolean{
if (((_arg1.clip) && (_arg1.clip._mochiad))){
_arg1 = _arg1.clip;
};
if (_arg1.origFrameRate != undefined){
_arg1.stage.frameRate = _arg1.origFrameRate;
};
if (!_arg1._mochiad){
return (false);
};
if (_arg1._mochiad._containerLCName != undefined){
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "notify", {id:"unload"});
};
if (_arg1._mochiad.onUnload){
_arg1._mochiad.onUnload();
};
delete _arg1._mochiad_loaded;
delete _arg1._mochiad;
return (true);
}
public static function showInterLevelAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = (_arg1 - 250);
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
chk["onEnterFrame"] = function ():void{
var _local4:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var _local1:Object = this.parent._mochiad_ctr;
var _local2:Number = (getTimer() - this.started);
var _local3:Boolean;
if (!chk.showing){
_local4 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local4 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (_local2 > chk.ad_timeout){
options.ad_failed();
_local3 = true;
};
};
};
if (_local2 > chk.ad_msec){
_local3 = true;
};
if (_local3){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(_arg1:Object, _arg2:Object):Object{
var _local4:String;
var _local5:Array;
var _local6:Number;
var _local7:Array;
var _local3:Object = {};
for (_local4 in _arg2) {
_local3[_local4] = _arg2[_local4];
};
if (_arg1){
for (_local4 in _arg1) {
_local3[_local4] = _arg1[_local4];
};
};
if (_local3.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
_arg1 = _local3.clip.loaderInfo.parameters.mochiad_options;
if (_arg1){
_local5 = _arg1.split("&");
_local6 = 0;
while (_local6 < _local5.length) {
_local7 = _local5[_local6].split("=");
_local3[unescape(_local7[0])] = unescape(_local7[1]);
_local6++;
};
};
if (_local3.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (_local3);
}
public static function _cleanup(_arg1:Object):void{
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = _arg1;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
try {
lc.client = null;
lc.close();
} catch(e:Error) {
};
};
setTimeout(f, 0);
};
var idx:Number = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(_arg1:Object):MovieClip{
var clip:Object;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = _arg1;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
try {
if (clip._mochiad_loaded){
return (null);
};
} catch(e:Error) {
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
};
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
var lv:URLVariables = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (_arg1:Object):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(_arg1:Object, _arg2:String, _arg3:Array):Object{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
if (typeof(_arg1[_local4[_local5]]) == "function"){
return (_arg1[_local4[_local5]].apply(_arg1, _arg3));
};
return (undefined);
}
public static function createEmptyMovieClip(_arg1:Object, _arg2:String, _arg3:Number):MovieClip{
var _local4:MovieClip = new MovieClip();
if (((false) && (_arg3))){
_arg1.addChildAt(_local4, _arg3);
} else {
_arg1.addChild(_local4);
};
_arg1[_arg2] = _local4;
_local4["_name"] = _arg2;
return (_local4);
}
public static function _getRes(_arg1:Object, _arg2:Object):Array{
var _local6:Array;
var _local3:Object = _arg2.getBounds(_arg2.root);
var _local4:Number = 0;
var _local5:Number = 0;
if (typeof(_arg1.res) != "undefined"){
_local6 = _arg1.res.split("x");
_local4 = parseFloat(_local6[0]);
_local5 = parseFloat(_local6[1]);
} else {
_local4 = (_local3.xMax - _local3.xMin);
_local5 = (_local3.yMax - _local3.yMin);
};
if ((((_local4 == 0)) || ((_local5 == 0)))){
_local4 = _arg2.stage.stageWidth;
_local5 = _arg2.stage.stageHeight;
};
return ([_local4, _local5]);
}
public static function adShowing(_arg1:Object):void{
_arg1.origFrameRate = _arg1.stage.frameRate;
_arg1.stage.frameRate = 30;
}
public static function getValue(_arg1:Object, _arg2:String):Object{
var _local3:Array = _arg2.split(".");
var _local4:Number = 0;
while (_local4 < (_local3.length - 1)) {
if ((((_arg1[_local3[_local4]] == undefined)) || ((_arg1[_local3[_local4]] == null)))){
return (undefined);
};
_arg1 = _arg1[_local3[_local4]];
_local4++;
};
return (_arg1[_local3[_local4]]);
}
public static function rpc(_arg1:Object, _arg2:Number, _arg3:Object):void{
var _local4:Object;
var _local5:Object;
switch (_arg3.id){
case "setValue":
MochiAd.setValue(_arg1, _arg3.objectName, _arg3.value);
break;
case "getValue":
_local4 = MochiAd.getValue(_arg1, _arg3.objectName);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(_arg1, _arg3.method, _arg3.args);
_arg1._mochiad.lc.send(_arg1._mochiad._containerLCName, "rpcResult", _arg2, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + _arg3.id));
};
}
public static function setValue(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Array = _arg2.split(".");
var _local5:Number = 0;
while (_local5 < (_local4.length - 1)) {
if ((((_arg1[_local4[_local5]] == undefined)) || ((_arg1[_local4[_local5]] == null)))){
return;
};
_arg1 = _arg1[_local4[_local5]];
_local5++;
};
_arg1[_local4[_local5]] = _arg3;
}
public static function showPreGameAd(_arg1:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = _arg1;
var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (_arg1:Number, _arg2:Number):void{
Loading.gfx.alpha = 0;
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (_arg1:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var _local1:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (_local1 > 0){
this.parent.alpha = (_local1 * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var f:Function = function (_arg1:Event):void{
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (_arg1:Number):void{
var _local2:Object = mc._mochiad_wait;
_local2.server_control = true;
_local2.showing = true;
_local2.started = getTimer();
_local2.ad_msec = _arg1;
};
mc.rpc = function (_arg1:Number, _arg2:Object):void{
MochiAd.rpc(clip, _arg1, _arg2);
};
mc.rpcTestFn = function (_arg1:String):Object{
trace(("[MOCHIAD rpcTestFn] " + _arg1));
return (_arg1);
};
mc.regContLC = function (_arg1:String):void{
mc._containerLCName = _arg1;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (_arg1:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var _local11:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _local1:Object = this.parent.parent.root;
var _local2:Object = this.parent._mochiad_ctr;
var _local3:Number = (getTimer() - this.started);
var _local4:Boolean;
var _local5:Number = _local1.loaderInfo.bytesTotal;
var _local6:Number = _local1.loaderInfo.bytesLoaded;
if (complete){
_local6 = Math.max(1, _local6);
_local5 = _local6;
};
var _local7:Number = ((100 * _local6) / _local5);
var _local8:Number = ((100 * _local3) / chk.ad_msec);
var _local9:Object = this._mochiad_bar._inside;
var _local10:Number = Math.min(100, Math.min(((_local7) || (0)), _local8));
_local10 = Math.max(this.last_pcnt, _local10);
this.last_pcnt = _local10;
_local9.scaleX = (_local10 * 0.01);
options.ad_progress(_local10);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local7});
if (_local7 == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
_local11 = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (_local11 > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((_local3 > chk.ad_timeout)) && ((_local7 == 100)))){
options.ad_failed();
_local4 = true;
};
};
};
if (_local3 > chk.ad_msec){
_local4 = true;
};
if (((complete) && (_local4))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(_arg1);
}
public static function showTimedAd(_arg1:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(_arg1);
}
public static function doOnEnterFrame(_arg1:MovieClip):void{
var mc = _arg1;
var f:Function = function (_arg1:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
_arg1.target.removeEventListener(_arg1.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package Mochi
Section 8
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.0.0.0";
public function BitmapAsset(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 9
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.0.0.0";
public function FlexBitmap(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 10
//FontAsset (mx.core.FontAsset)
package mx.core {
import flash.text.*;
public class FontAsset extends Font implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 11
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 12
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(_arg1:Point):Point;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(_arg1:String):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(_arg1:Point):Point;
function get height():Number;
function set blendMode(_arg1:String):void;
function get parent():DisplayObjectContainer;
function getBounds(_arg1:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(_arg1:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(_arg1:Number):void;
function set accessibilityProperties(_arg1:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(_arg1:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(_arg1:Number):void;
function set mask(_arg1:DisplayObject):void;
function getRect(_arg1:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(_arg1:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(_arg1:DisplayObject):Boolean;
function set opaqueBackground(_arg1:Object):void;
function set visible(_arg1:Boolean):void;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get transform():Transform;
function set filters(_arg1:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(_arg1:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 13
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 14
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 15
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.0.0.0";
}
}//package mx.core
Section 16
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.0.0.0";
private static var counter:int = 0;
public static function displayObjectToString(_arg1:DisplayObject):String{
var _local2:String;
var _local4:String;
var _local5:Array;
var _local3:DisplayObject = _arg1;
while (_local3 != null) {
if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){
break;
};
_local4 = _local3.name;
if ((_local3 is IRepeaterClient)){
_local5 = IRepeaterClient(_local3).instanceIndices;
if (_local5){
_local4 = (_local4 + (("[" + _local5.join("][")) + "]"));
};
};
_local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2);
_local3 = _local3.parent;
};
return (_local2);
}
public static function createUniqueName(_arg1:Object):String{
if (!_arg1){
return (null);
};
var _local2:String = getQualifiedClassName(_arg1);
var _local3:int = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
var _local4:int = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 17
//Flasher (obs.Flasher)
package obs {
import flash.display.*;
public class Flasher {
public var gfx:Sprite;
public static var flashering:Number = 0;
public function Flasher(){
gfx = new Sprite();
super();
if (Hud.lives < 0){
return;
};
sfxer.sound("xp3");
gfx.graphics.beginFill(0xFFFFFF);
gfx.graphics.drawRect(0, 0, 500, 500);
gfx.graphics.endFill();
gfx.alpha = 1.3;
Galaga.layerHud.addChild(gfx);
List.EffectAdd(this);
TPlayer.reappear = 200;
}
public function U(_arg1:uint):void{
gfx.alpha = (gfx.alpha - 0.005);
flashering = gfx.alpha;
if (gfx.alpha > 0.6){
while (List.Bullets.length > 0) {
List.Bullets.pop().kill();
};
};
if (gfx.alpha < 0){
Galaga.layerHud.removeChild(gfx);
List.EffectRem(_arg1);
};
}
public function kill():void{
Galaga.layerHud.removeChild(gfx);
}
}
}//package obs
Section 18
//Hud (obs.Hud)
package obs {
import flash.events.*;
import mx.core.*;
import flash.display.*;
import flash.text.*;
public class Hud {
private var b2:Class;
private var b1:Class;
private var g_hud:Class;
public static var n0:Class = Hud_n0;
public static var n1:Class = Hud_n1;
public static var n3:Class = Hud_n3;
public static var n5:Class = Hud_n5;
public static var n7:Class = Hud_n7;
public static var n2:Class = Hud_n2;
public static var n4:Class = Hud_n4;
public static var n6:Class = Hud_n6;
public static var n8:Class = Hud_n8;
public static var bar:BitmapAsset;
public static var n9:Class = Hud_n9;
public static var gWav:Sprite = new Sprite();
public static var lives:int = 3;
public static var bmask2:Sprite = new Sprite();
public static var messer:uint = 0;
public static var wavs:uint = 0;
public static var g1:Class = Hud_g1;
public static var gLiv:Sprite = new Sprite();
public static var multi:uint = 5;
public static var bmask:Sprite = new Sprite();
public static var gPnt:Sprite = new Sprite();
public static var multiplus:uint = 70;
public static var multig:Sprite = new Sprite();
public static var points:uint = 0;
public static var shield:uint = 120;
public static var mess:TextField = new TextField();
public static var bar2:BitmapAsset;
public function Hud(){
b1 = Hud_b1;
b2 = Hud_b2;
g_hud = Hud_g_hud;
super();
mess.embedFonts = true;
mess.textColor = 0xFFFFFF;
mess.autoSize = TextFieldAutoSize.NONE;
mess.wordWrap = true;
mess.width = 500;
var _local1:BitmapAsset = new g_hud();
_local1.y = 500;
multig.x = 279;
multig.y = 529;
bmask.graphics.beginFill(0xFFFFFF);
bmask.graphics.drawRect(0, 0, 154, 16);
bmask.graphics.endFill();
bar = new b1();
bar.x = 334;
bar.y = 508;
bar.mask = bmask;
bmask.x = 334;
bmask.y = 508;
bmask2.graphics.beginFill(0xFFFFFF);
bmask2.graphics.drawRect(0, 0, 154, 16);
bmask2.graphics.endFill();
bar2 = new b2();
bar2.x = 136;
bar2.y = 508;
bar2.mask = bmask2;
bmask2.x = 135;
bmask2.y = 508;
Galaga.layerHud.addChild(mess);
Galaga.layerHud.addChild(_local1);
Galaga.layerHud.addChild(multig);
Galaga.layerHud.addChild(gLiv);
Galaga.layerHud.addChild(gPnt);
Galaga.layerHud.addChild(gWav);
Galaga.layerHud.addChild(bar);
Galaga.layerHud.addChild(bmask);
Galaga.layerHud.addChild(bar2);
Galaga.layerHud.addChild(bmask2);
updLives();
updMult();
updPnt();
updWav();
}
public static function Update():void{
if ((((lives < 0)) && ((Galaga.goverer.alpha == 0)))){
wavs = 0;
Hud.messer = 0;
Weapon.weaplev = 0;
while (Galaga.layerFore.numChildren > 0) {
Galaga.layerFore.removeChildAt(0);
};
while (Galaga.layerMid.numChildren > 0) {
Galaga.layerMid.removeChildAt(0);
};
List.Effects = new Array();
List.Enemies = new Array();
List.Bullets = new Array();
Galaga.Player = null;
lives = 0;
new Flasher();
Galaga.goverer.alpha = 10;
};
if (Galaga.shield){
if ((((shield > 0)) && ((TPlayer.reappear == 0)))){
shield--;
TPlayer.shield.alpha = (0.6 + Math.random());
TPlayer.shield.visible = true;
} else {
TPlayer.shield.visible = false;
};
} else {
TPlayer.shield.visible = false;
};
if ((((multi > 1)) && ((((messer == 0)) || ((messer == 3)))))){
multiplus--;
if (multiplus == 0){
multi--;
multiplus = (160 - (30 * (multi - 2)));
updMult();
};
};
bmask.x = (180 + ((shield * 154) / 120));
bmask2.x = (-18 + ((multiplus * 154) / (160 - (30 * (multi - 2)))));
if (messer == 1){
if (mess.alpha < 2){
mess.alpha = (mess.alpha + 0.03);
};
} else {
if (mess.alpha > 0){
mess.alpha = (mess.alpha - 0.15);
} else {
if (mess.alpha <= 0){
messer = 0;
};
};
};
if (List.Enemies.length == 0){
if (messer == 0){
multi = 5;
multiplus = (160 - (30 * (multi - 2)));
updMult();
wavs++;
Waves.Give(wavs);
updWav();
shield = 120;
};
if (messer == 2){
Waves.Give(wavs);
messer = 3;
};
};
}
public static function updWav():void{
var _local2:BitmapAsset;
Galaga.layerHud.removeChild(gWav);
gWav = new Sprite();
var _local1:String = wavs.toString();
while (_local1.length < 3) {
_local1 = ("0" + _local1);
};
var _local3:uint;
while (_local3 < 3) {
_local2 = giveN((_local1.charCodeAt(_local3) - 48));
_local2.x = (440 + (_local3 * 13));
_local2.y = 529;
gWav.addChild(_local2);
_local3++;
};
Galaga.layerHud.addChild(gWav);
}
public static function cli(_arg1:MouseEvent):void{
if ((((messer == 1)) && ((mess.alpha > 1)))){
messer = 2;
mess.alpha = 1;
};
}
public static function setMes(_arg1:String=""):void{
mess.htmlText = (("<p align='center'><font color='#FFFFFF' face='Fonter' size='20'>" + _arg1) + "\n\n Click to continue!</font></p>");
mess.x = 0;
mess.height = 400;
mess.y = 180;
mess.alpha = 0;
messer = 1;
}
public static function updPnt():void{
var _local2:BitmapAsset;
Galaga.layerHud.removeChild(gPnt);
gPnt = new Sprite();
var _local1:String = points.toString();
while (_local1.length < 10) {
_local1 = ("0" + _local1);
};
var _local3:uint;
while (_local3 < 10) {
_local2 = giveN((_local1.charCodeAt(_local3) - 48));
_local2.x = (200 + (_local3 * 13));
_local2.y = 10;
gPnt.addChild(_local2);
_local3++;
};
Galaga.layerHud.addChild(gPnt);
}
public static function addPnt(_arg1:uint, _arg2:Boolean=true):void{
if (_arg2){
multiplus = (160 - (30 * (multi - 2)));
};
if (_arg2){
shield = Math.min(120, (shield + (multi - 1)));
} else {
shield = Math.min(120, (shield + 2));
};
points = (points + Math.ceil((((_arg1 + ((_arg2 == true)) ? Math.ceil((shield / 10)) : 0) * ((_arg2 == true)) ? multi : 1) * ((Galaga.easyx == true)) ? 0.1 : 1)));
updPnt();
}
public static function giveN(_arg1:uint):BitmapAsset{
switch (_arg1){
case 0:
return (new n0());
case 1:
return (new n1());
case 2:
return (new n2());
case 3:
return (new n3());
case 4:
return (new n4());
case 5:
return (new n5());
case 6:
return (new n6());
case 7:
return (new n7());
case 8:
return (new n8());
case 9:
return (new n9());
default:
return (new n0());
};
}
public static function updLives():void{
var _local1:BitmapAsset;
Galaga.layerHud.removeChild(gLiv);
gLiv = new Sprite();
var _local2:uint;
while (_local2 < lives) {
_local1 = new g1();
_local1.x = (3 + (_local2 * 6));
_local1.y = 503;
gLiv.addChild(_local1);
_local2++;
};
Galaga.layerHud.addChild(gLiv);
}
public static function updMult():void{
while (multig.numChildren > 0) {
multig.removeChildAt(0);
};
multig.addChild(giveN(multi));
}
}
}//package obs
Section 19
//Hud_b1 (obs.Hud_b1)
package obs {
import mx.core.*;
public class Hud_b1 extends BitmapAsset {
}
}//package obs
Section 20
//Hud_b2 (obs.Hud_b2)
package obs {
import mx.core.*;
public class Hud_b2 extends BitmapAsset {
}
}//package obs
Section 21
//Hud_g_hud (obs.Hud_g_hud)
package obs {
import mx.core.*;
public class Hud_g_hud extends BitmapAsset {
}
}//package obs
Section 22
//Hud_g1 (obs.Hud_g1)
package obs {
import mx.core.*;
public class Hud_g1 extends BitmapAsset {
}
}//package obs
Section 23
//Hud_n0 (obs.Hud_n0)
package obs {
import mx.core.*;
public class Hud_n0 extends BitmapAsset {
}
}//package obs
Section 24
//Hud_n1 (obs.Hud_n1)
package obs {
import mx.core.*;
public class Hud_n1 extends BitmapAsset {
}
}//package obs
Section 25
//Hud_n2 (obs.Hud_n2)
package obs {
import mx.core.*;
public class Hud_n2 extends BitmapAsset {
}
}//package obs
Section 26
//Hud_n3 (obs.Hud_n3)
package obs {
import mx.core.*;
public class Hud_n3 extends BitmapAsset {
}
}//package obs
Section 27
//Hud_n4 (obs.Hud_n4)
package obs {
import mx.core.*;
public class Hud_n4 extends BitmapAsset {
}
}//package obs
Section 28
//Hud_n5 (obs.Hud_n5)
package obs {
import mx.core.*;
public class Hud_n5 extends BitmapAsset {
}
}//package obs
Section 29
//Hud_n6 (obs.Hud_n6)
package obs {
import mx.core.*;
public class Hud_n6 extends BitmapAsset {
}
}//package obs
Section 30
//Hud_n7 (obs.Hud_n7)
package obs {
import mx.core.*;
public class Hud_n7 extends BitmapAsset {
}
}//package obs
Section 31
//Hud_n8 (obs.Hud_n8)
package obs {
import mx.core.*;
public class Hud_n8 extends BitmapAsset {
}
}//package obs
Section 32
//Hud_n9 (obs.Hud_n9)
package obs {
import mx.core.*;
public class Hud_n9 extends BitmapAsset {
}
}//package obs
Section 33
//List (obs.List)
package obs {
public class List {
public static var Enemies:Array = new Array();
public static var Bullets:Array = new Array();
public static var Effects:Array = new Array();
public static function EffectRem(_arg1:uint):void{
Effects.splice(_arg1, 1);
}
public static function EffectAdd(_arg1):void{
Effects.push(_arg1);
}
public static function EnemyRem(_arg1:uint):void{
Enemies.splice(_arg1, 1);
}
public static function BulletRem(_arg1:uint):void{
Bullets.splice(_arg1, 1);
}
public static function EnemyAdd(_arg1:TObject):void{
Enemies.push(_arg1);
}
public static function BulletAdd(_arg1:TObject):void{
Bullets.push(_arg1);
}
}
}//package obs
Section 34
//Loading (obs.Loading)
package obs {
import flash.events.*;
import flash.display.*;
import mx.core.*;
import Mochi.*;
import flash.text.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
import CPMStar.*;
public dynamic class Loading extends MovieClip {
public var bb:Shape;
public var loaded:Boolean;// = false
private var gad:Class;
public var logo1r:Sprite;
private var gbar:Class;
public var logo3r:Sprite;
public var texter:Sprite;
public var app:Object;
public var bar:BitmapAsset;
public var logo2:Sprite;
public var logo3:Sprite;
private var gtxt:Class;
public var ad:Sprite;
public var logo:BitmapAsset;
public var logo1:Sprite;
private var GLOGO:Class;
public var barm:Sprite;
private var fonter:Class;
public var ts:Sprite;
public static var lc:LocalConnection = new LocalConnection();
public static var gfx:Sprite = new Sprite();
public static var self:Loading;
public function Loading(){
fonter = Loading_fonter;
gad = Loading_gad;
GLOGO = Loading_GLOGO;
gbar = Loading_gbar;
gtxt = Loading_gtxt;
barm = new Sprite();
texter = new Sprite();
logo1 = new Sprite();
logo1r = new Sprite();
logo2 = new Sprite();
logo3 = new Sprite();
logo3r = new Sprite();
ad = new Sprite();
ts = new Sprite();
bb = new Shape();
super();
bb.graphics.beginFill(0);
bb.graphics.drawRect(0, 0, 500, 550);
bb.graphics.endFill();
addChild(bb);
self = this;
addChild(gfx);
gfx.visible = false;
MochiAd.showPreGameAd({clip:root, id:"8cad40eb2ea57f03", res:"500x550"});
var _local1:Sprite = new Sprite();
_local1.graphics.beginFill(0);
_local1.graphics.drawRect(0, 267, 500, 103);
_local1.graphics.endFill();
var _local2:TextField = new TextField();
_local2.x = 0;
_local2.width = 500;
_local2.y = 267;
_local2.textColor = 0xFFFFFF;
_local2.selectable = false;
_local2.embedFonts = true;
_local2.htmlText = (((("<p align='center'><font face='Fonter' size='18'>Get your own customized site-locked\n" + "version of Galagian Now!\n") + "Or Play more game from Mauft.com!\n") + "Click to Visit!\n") + "opens in new window</font></p>");
logo1r.graphics.beginFill(0xFFFFFF, 0.4);
logo1r.graphics.drawRect(0, 374, 275, 118);
logo1r.graphics.endFill();
logo1r.buttonMode = true;
logo1r.alpha = 0;
logo1.addChild(_local1);
logo1.addChild(_local2);
logo1.visible = false;
logo2.graphics.beginFill(0xFFFFFF, 0.4);
logo2.graphics.drawRect(375, 373, 119, 118);
logo2.graphics.endFill();
logo2.buttonMode = true;
logo2.alpha = 0;
stop();
var _local3:BitmapAsset = new gtxt();
_local3.y = 300;
texter.graphics.beginFill(0);
texter.graphics.drawRect(0, 267, 500, 103);
texter.graphics.endFill();
texter.addChild(_local3);
texter.alpha = 0;
bar = new gbar();
bar.x = 96;
bar.y = 303;
bar.mask = barm;
barm.graphics.beginFill(0xFFFFFF);
barm.graphics.drawRect(96, 303, 307, 28);
barm.graphics.endFill();
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.showDefaultContextMenu = false;
stage.align = StageAlign.TOP_LEFT;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
logo = new GLOGO();
logo.x = 0;
logo.y = 0;
gfx.addChild(logo);
gfx.addChild(bar);
gfx.addChild(barm);
gfx.addChild(logo1r);
gfx.addChild(texter);
gfx.addChild(logo1);
gfx.addChild(logo2);
texter.buttonMode = true;
logo1r.addEventListener(MouseEvent.MOUSE_OVER, log1On);
logo1r.addEventListener(MouseEvent.MOUSE_OUT, log1Off);
logo1r.addEventListener(MouseEvent.CLICK, log1Click);
logo2.addEventListener(MouseEvent.MOUSE_OVER, log2On);
logo2.addEventListener(MouseEvent.MOUSE_OUT, log2Off);
logo2.addEventListener(MouseEvent.CLICK, log2Click);
texter.addEventListener(MouseEvent.CLICK, clickman2);
}
public function log2Click(_arg1:MouseEvent):void{
openWindow("http://cage-ak.deviantart.com/", "_blank");
}
public function onEnterFrame(_arg1:Event):void{
var _local2:Number;
if (gfx.alpha < 1){
gfx.alpha = (gfx.alpha + 0.04);
if (gfx.alpha >= 1){
gfx.alpha = 1;
gfx.visible = true;
loaded = true;
};
};
if ((((((framesLoaded >= totalFrames)) || ((root.loaderInfo.bytesLoaded >= root.loaderInfo.bytesTotal)))) || (loaded))){
if (loaded == false){
init();
};
texter.alpha = (texter.alpha + 0.1);
} else {
_local2 = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
if (_local2 >= 0.99){
init();
texter.alpha = (texter.alpha + 0.1);
};
barm.x = (-307 + (307 * _local2));
};
}
public function log1Off(_arg1:MouseEvent):void{
logo1r.alpha = 0;
}
public function log2On(_arg1:MouseEvent):void{
logo2.alpha = 1;
}
private function init():void{
loaded = true;
texter.alpha = (texter.alpha + 0.1);
}
public function clickman2(_arg1:MouseEvent):void{
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
removeChild(gfx);
removeChild(bb);
nextFrame();
texter.removeEventListener(MouseEvent.CLICK, clickman2);
var _local2:Class = Class(getDefinitionByName("Galaga"));
var _local3:Class = Class(getDefinitionByName("obs.Hud"));
var _local4:Class = Class(getDefinitionByName("obs.Weapon"));
if (_local2){
app = new (_local2);
addChild((app as DisplayObject));
stage.addEventListener(KeyboardEvent.KEY_DOWN, app.keyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, app.keyUp);
stage.addEventListener(MouseEvent.MOUSE_DOWN, _local4.Press);
stage.addEventListener(MouseEvent.MOUSE_UP, _local4.Release);
stage.addEventListener(MouseEvent.CLICK, _local3.cli);
stage.addEventListener(MouseEvent.CLICK, app.clicker);
};
}
public function log1On(_arg1:MouseEvent):void{
logo1r.alpha = 1;
}
public function log2Off(_arg1:MouseEvent):void{
logo2.alpha = 0;
}
public function log1Click(_arg1:MouseEvent):void{
openWindow("http://www.mauft.com", "_blank");
}
public static function openWindow(_arg1:String, _arg2:String="", _arg3:String=""):void{
navigateToURL(new URLRequest(_arg1), _arg2);
}
private static function getBrowserName():String{
var _local1:String;
var _local2:String = ExternalInterface.call("function getBrowser(){return navigator.userAgent;}");
if (((!((_local2 == null))) && ((_local2.indexOf("Firefox") >= 0)))){
_local1 = "Firefox";
} else {
if (((!((_local2 == null))) && ((_local2.indexOf("Safari") >= 0)))){
_local1 = "Safari";
} else {
if (((!((_local2 == null))) && ((_local2.indexOf("MSIE") >= 0)))){
_local1 = "IE";
} else {
if (((!((_local2 == null))) && ((_local2.indexOf("Opera") >= 0)))){
_local1 = "Opera";
} else {
_local1 = "Undefined";
};
};
};
};
return (_local1);
}
}
}//package obs
Section 35
//Loading_fonter (obs.Loading_fonter)
package obs {
import mx.core.*;
public class Loading_fonter extends FontAsset {
}
}//package obs
Section 36
//Loading_gad (obs.Loading_gad)
package obs {
import mx.core.*;
public class Loading_gad extends BitmapAsset {
}
}//package obs
Section 37
//Loading_gbar (obs.Loading_gbar)
package obs {
import mx.core.*;
public class Loading_gbar extends BitmapAsset {
}
}//package obs
Section 38
//Loading_GLOGO (obs.Loading_GLOGO)
package obs {
import mx.core.*;
public class Loading_GLOGO extends BitmapAsset {
}
}//package obs
Section 39
//Loading_gtxt (obs.Loading_gtxt)
package obs {
import mx.core.*;
public class Loading_gtxt extends BitmapAsset {
}
}//package obs
Section 40
//sfxer (obs.sfxer)
package obs {
import flash.media.*;
public class sfxer {
private var stck:Class;
private var sxp1:Class;
private var sxp2:Class;
private var sxp3:Class;
private var ssh1:Class;
private var ssh2:Class;
private var ssh3:Class;
private var ssh4:Class;
private var ssh5:Class;
private var sdmd:Class;
private var smus:Class;
private static var sh5:Sound;
private static var xp2:Sound;
private static var xp3:Sound;
private static var sh2:Sound;
private static var sh3:Sound;
private static var sh4:Sound;
private static var mus:Sound;
private static var tck:Sound;
public static var g_bg:Class = sfxer_g_bg;
public static var snd:uint = 1;
private static var snds:Array = new Array(10);
private static var musch:SoundChannel;
private static var xp1:Sound;
private static var dmd:Sound;
private static var sh1:Sound;
public function sfxer(){
smus = sfxer_smus;
ssh1 = sfxer_ssh1;
ssh2 = sfxer_ssh2;
ssh3 = sfxer_ssh3;
ssh4 = sfxer_ssh4;
ssh5 = sfxer_ssh5;
sxp1 = sfxer_sxp1;
sxp2 = sfxer_sxp2;
sxp3 = sfxer_sxp3;
stck = sfxer_stck;
sdmd = sfxer_sdmd;
super();
mus = new smus();
sh1 = new ssh1();
sh2 = new ssh2();
sh3 = new ssh3();
xp1 = new sxp1();
xp2 = new sxp2();
xp3 = new sxp3();
tck = new stck();
sh4 = new ssh4();
sh5 = new ssh5();
dmd = new sdmd();
snds[0] = 0;
snds[1] = 0;
snds[2] = 0;
snds[3] = 0;
snds[4] = 0;
snds[5] = 0;
snds[6] = 0;
snds[7] = 0;
snds[8] = 0;
snds[9] = 0;
musique();
}
public static function musique():void{
if (musch == null){
musch = mus.play(0, 1000);
} else {
musch.stop();
musch = null;
};
}
public static function reset():void{
snds[0] = 0;
snds[1] = 0;
snds[2] = 0;
snds[3] = 0;
snds[4] = 0;
snds[5] = 0;
snds[6] = Math.max(0, (snds[6] - 1));
snds[7] = 0;
snds[8] = 0;
snds[9] = 0;
}
public static function sound(_arg1:String):void{
if (sfxer.snd == 0){
return;
};
if ((((Flasher.flashering > 0.6)) && (!((_arg1 == "xp3"))))){
return;
};
switch (_arg1){
case "sh1":
if (snds[0] > 0){
return;
};
var _local2 = snds;
var _local3:int;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
sh1.play();
break;
case "sh2":
if (snds[1] > 1){
return;
};
_local2 = snds;
_local3 = 1;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
sh2.play();
break;
case "sh3":
if (snds[2] > 1){
return;
};
_local2 = snds;
_local3 = 2;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
sh3.play();
break;
case "xp1":
if (snds[3] > 1){
return;
};
_local2 = snds;
_local3 = 3;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
xp1.play();
break;
case "xp2":
if (snds[4] > 1){
return;
};
_local2 = snds;
_local3 = 4;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
xp2.play();
break;
case "xp3":
if (snds[5] > 1){
return;
};
_local2 = snds;
_local3 = 5;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
xp3.play();
break;
case "tck":
if (snds[6] > 0){
return;
};
snds[6] = (snds[6] + 2);
tck.play();
break;
case "sh4":
if (snds[7] > 0){
return;
};
_local2 = snds;
_local3 = 7;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
sh4.play();
break;
case "sh5":
if (snds[8] > 0){
return;
};
_local2 = snds;
_local3 = 8;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
sh5.play();
break;
case "dmd":
if (snds[9] > 0){
return;
};
_local2 = snds;
_local3 = 9;
_local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
dmd.play();
break;
};
}
}
}//package obs
Section 41
//sfxer_g_bg (obs.sfxer_g_bg)
package obs {
import mx.core.*;
public class sfxer_g_bg extends BitmapAsset {
}
}//package obs
Section 42
//sfxer_sdmd (obs.sfxer_sdmd)
package obs {
import mx.core.*;
public class sfxer_sdmd extends SoundAsset {
}
}//package obs
Section 43
//sfxer_smus (obs.sfxer_smus)
package obs {
import mx.core.*;
public class sfxer_smus extends SoundAsset {
}
}//package obs
Section 44
//sfxer_ssh1 (obs.sfxer_ssh1)
package obs {
import mx.core.*;
public class sfxer_ssh1 extends SoundAsset {
}
}//package obs
Section 45
//sfxer_ssh2 (obs.sfxer_ssh2)
package obs {
import mx.core.*;
public class sfxer_ssh2 extends SoundAsset {
}
}//package obs
Section 46
//sfxer_ssh3 (obs.sfxer_ssh3)
package obs {
import mx.core.*;
public class sfxer_ssh3 extends SoundAsset {
}
}//package obs
Section 47
//sfxer_ssh4 (obs.sfxer_ssh4)
package obs {
import mx.core.*;
public class sfxer_ssh4 extends SoundAsset {
}
}//package obs
Section 48
//sfxer_ssh5 (obs.sfxer_ssh5)
package obs {
import mx.core.*;
public class sfxer_ssh5 extends SoundAsset {
}
}//package obs
Section 49
//sfxer_stck (obs.sfxer_stck)
package obs {
import mx.core.*;
public class sfxer_stck extends SoundAsset {
}
}//package obs
Section 50
//sfxer_sxp1 (obs.sfxer_sxp1)
package obs {
import mx.core.*;
public class sfxer_sxp1 extends SoundAsset {
}
}//package obs
Section 51
//sfxer_sxp2 (obs.sfxer_sxp2)
package obs {
import mx.core.*;
public class sfxer_sxp2 extends SoundAsset {
}
}//package obs
Section 52
//sfxer_sxp3 (obs.sfxer_sxp3)
package obs {
import mx.core.*;
public class sfxer_sxp3 extends SoundAsset {
}
}//package obs
Section 53
//TAsteroid (obs.TAsteroid)
package obs {
import mx.core.*;
import Functions.*;
public class TAsteroid extends TObject {
public var movex:Number;
public var flyto:uint;
public var movey:Number;
private var g_ship:Class;
public var rotspd:Number;
public static var howMany:uint = 0;
public function TAsteroid(){
g_ship = TAsteroid_g_ship;
super();
howMany++;
x = (50 + (Math.random() * 400));
y = -100;
wid = 42;
hei = 42;
movex = ((Math.random() / 10) - 0.05);
movey = (1 + (Math.random() * 3));
rotspd = ((Math.random() * 40) - 20);
var _local1:BitmapAsset = new g_ship();
_local1.x = -25;
_local1.y = -25;
gfx.addChild(_local1);
Galaga.layerFore.addChild(gfx);
hp = (7 * (Weapon.weaplev + 1));
updategfx(21, 21);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
x = (x + movex);
y = (y + movey);
gfx.rotation = (gfx.rotation + rotspd);
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
if (RectRect(x, y, wid, hei, _local2.x, _local2.y, _local2.wid, _local2.hei)){
_local2.Hit();
};
};
if (y > 600){
kill();
List.EnemyRem(_arg1);
};
updategfx(21, 21);
}
override public function kill():void{
howMany--;
sfxer.sound("xp2");
Hud.addPnt(15);
TCrystal.give((x + 18), (y + 18), 20);
new TExplo((x - 60), (y - 50), 1, 0.5);
Galaga.layerFore.removeChild(gfx);
}
}
}//package obs
Section 54
//TAsteroid_g_ship (obs.TAsteroid_g_ship)
package obs {
import mx.core.*;
public class TAsteroid_g_ship extends BitmapAsset {
}
}//package obs
Section 55
//TBarrier (obs.TBarrier)
package obs {
import mx.core.*;
import Functions.*;
public class TBarrier extends TObject {
public var barr1:BitmapAsset;
private var g_ship:Class;
private var g_ship2:Class;
public var movey:Number;// = 0
public function TBarrier(_arg1:Number, _arg2:Number){
g_ship = TBarrier_g_ship;
g_ship2 = TBarrier_g_ship2;
super();
x = _arg1;
y = _arg2;
wid = 100;
hei = 25;
barr1 = new g_ship2();
barr1.x = 10;
gfx.addChild(barr1);
var _local3:BitmapAsset = new g_ship();
gfx.addChild(_local3);
_local3 = new g_ship();
_local3.x = 75;
gfx.addChild(_local3);
Galaga.layerFore.addChild(gfx);
hp = (50 * Galaga.diffHp);
updategfx();
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(70);
TCrystal.give((x + 6), (y + 8), 2);
TCrystal.give((x + 80), (y + 8), 2);
new TExplo((x - 25), (y - 25), 1, 0.3);
new TExplo((x + 45), (y - 25), 1, 0.3);
Galaga.layerFore.removeChild(gfx);
}
override public function damage(_arg1:Number, _arg2:uint, _arg3:Boolean=true):uint{
movey = Math.max(-1, (movey - 0.3));
return (super.damage(_arg1, _arg2, _arg3));
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
barr1.alpha = (0.8 + (Math.random() / 2));
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
if (RectRect(x, y, wid, (hei + movey), _local2.x, _local2.y, _local2.wid, _local2.hei)){
_local2.Hit();
};
};
movey = (movey + 0.04);
if (movey > 20){
movey = 20;
};
y = (y + movey);
updategfx();
if (y > 700){
y = -200;
};
}
}
}//package obs
Section 56
//TBarrier_g_ship (obs.TBarrier_g_ship)
package obs {
import mx.core.*;
public class TBarrier_g_ship extends BitmapAsset {
}
}//package obs
Section 57
//TBarrier_g_ship2 (obs.TBarrier_g_ship2)
package obs {
import mx.core.*;
public class TBarrier_g_ship2 extends BitmapAsset {
}
}//package obs
Section 58
//TBoarder (obs.TBoarder)
package obs {
import Functions.*;
public class TBoarder extends TObject {
private var g_ship:Class;
public var movex:Number;// = 0
public var movey:Number;// = 0
public function TBoarder(_arg1:Number, _arg2:Number){
g_ship = TBoarder_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 23;
hei = 18;
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (6 * Galaga.diffHp);
movex = (((Math.random() * 4) - 2) * Galaga.diffSpd);
movey = (((Math.random() * 2) + 0.5) * Galaga.diffSpd);
updategfx(-1, -1);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(8);
TCrystal.give((x + 6), (y + 6), 2);
new TExplo((x - 13), (y - 10), 1, 0.2);
Galaga.layerFore.removeChild(gfx);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
x = (x + movex);
y = (y + movey);
if (Math.random() < (0.009 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet1((x + 7), (y + 18), 4));
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
if (y > 500){
y = -(hei);
};
updategfx(-1, -1);
}
}
}//package obs
Section 59
//TBoarder_g_ship (obs.TBoarder_g_ship)
package obs {
import mx.core.*;
public class TBoarder_g_ship extends BitmapAsset {
}
}//package obs
Section 60
//TCannon (obs.TCannon)
package obs {
import mx.core.*;
import flash.display.*;
import Functions.*;
public class TCannon extends TObject {
public var hook:Boolean;// = false
private var g_ship2:Class;
public var movex:Number;// = 0
public var tur:Sprite;
private var g_ship:Class;
public var tox:uint;
public var toy:uint;
public function TCannon(_arg1:Number, _arg2:Number){
g_ship = TCannon_g_ship;
g_ship2 = TCannon_g_ship2;
tur = new Sprite();
super();
x = _arg1;
y = _arg2;
wid = 21;
hei = 21;
tox = (50 + (Math.random() * 400));
toy = (50 + (Math.random() * 150));
var _local3:BitmapAsset = new g_ship2();
tur.addChild(_local3);
_local3.x = -4.5;
_local3.y = -4.5;
tur.x = 13;
tur.y = 13;
_local3 = new g_ship();
gfx.addChild(_local3);
gfx.addChild(tur);
Galaga.layerFore.addChild(gfx);
hp = (15 * Galaga.diffHp);
updategfx(-2, -2);
}
public function Update(_arg1:uint):void{
var _local3:Number;
gfx.blendMode = "normal";
if (!hook){
x = (x + ((tox - x) / 15));
y = (y + ((toy - y) / 15));
if (Distance2(x, y, tox, toy) < 1){
hook = true;
};
} else {
x = (tox + (Math.sin(movex) * 10));
movex = (movex + 0.0785);
};
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
_local3 = Math.atan2(((_local2.midy - y) - 10), ((_local2.midx - x) - 10));
tur.rotation = ((_local3 * 180) / Math.PI);
if (Math.random() < (0.011 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet2(((x + 10) + (Math.cos(_local3) * 17)), ((y + 10) + (Math.sin(_local3) * 17)), 4));
};
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
updategfx(-2, -2);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(35);
TCrystal.give((x + 6), (y + 8), 2);
new TExplo((x - 15), (y - 15), 1, 0.22);
Galaga.layerFore.removeChild(gfx);
}
}
}//package obs
Section 61
//TCannon_g_ship (obs.TCannon_g_ship)
package obs {
import mx.core.*;
public class TCannon_g_ship extends BitmapAsset {
}
}//package obs
Section 62
//TCannon_g_ship2 (obs.TCannon_g_ship2)
package obs {
import mx.core.*;
public class TCannon_g_ship2 extends BitmapAsset {
}
}//package obs
Section 63
//TCore (obs.TCore)
package obs {
import Functions.*;
public class TCore extends TObject {
public var movex:int;
public var midx:uint;
public var midy:uint;
private var g_ship:Class;
public var spd:Number;
public function TCore(_arg1:Number, _arg2:Number){
g_ship = TCore_g_ship;
super();
List.EnemyAdd(new TCoreKid(0, this));
List.EnemyAdd(new TCoreKid(90, this));
List.EnemyAdd(new TCoreKid(180, this));
List.EnemyAdd(new TCoreKid(270, this));
x = _arg1;
y = _arg2;
midx = (x + (wid / 2));
midy = (y + (hei / 2));
wid = 103;
hei = 93;
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (100 * Galaga.diffHp);
movex = ((Math.random() > 0.5)) ? 1 : -1;
spd = ((0.3 + (Math.random() * 10)) * ((Math.random() > 0.5)) ? 1 : -1);
updategfx(-3, -7);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
midx = (x + (wid / 2));
midy = (y + (hei / 2));
if (x < 80){
movex = 1;
} else {
if (x > 320){
movex = -1;
};
};
x = (x + (movex * 0.1));
if (Math.random() < (0.04 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet6((x + 50), (y + 50), 8));
};
if (Math.random() < (0.005 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet7((x + 50), (y + 50), 4));
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
if (y < 30){
y = (y + 0.2);
};
updategfx(-3, -7);
}
override public function kill():void{
sfxer.sound("xp3");
TCrystal.give((x + 50), (y + 45), 20);
Hud.addPnt(500);
new Flasher();
Galaga.layerFore.removeChild(gfx);
new TExplo((x - 70), (y - 70), 2, 1);
spd = 0;
}
}
}//package obs
Section 64
//TCore_g_ship (obs.TCore_g_ship)
package obs {
import mx.core.*;
public class TCore_g_ship extends BitmapAsset {
}
}//package obs
Section 65
//TCoreKid (obs.TCoreKid)
package obs {
import Functions.*;
public class TCoreKid extends TObject {
public var master:TCore;
public var angle:Number;
private var g_ship:Class;
public function TCoreKid(_arg1:Number, _arg2:TCore){
g_ship = TCoreKid_g_ship;
super();
master = _arg2;
angle = _arg1;
wid = 24;
hei = 24;
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (20 * Galaga.diffHp);
updategfx(-3, -3);
}
public function Update(_arg1:uint):void{
var _local2:Number;
gfx.blendMode = "normal";
if (master.spd == 0){
kill();
List.EnemyRem(_arg1);
};
angle = (angle + master.spd);
_local2 = ((angle * Math.PI) / 180);
x = ((master.midx + (Math.cos(_local2) * 80)) - 10);
y = ((master.midy + (Math.sin(_local2) * 80)) - 10);
if (Math.random() < (0.01 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet5((x + 8), y, 7));
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
if (y < 30){
y = (y + 0.2);
};
updategfx(-3, -3);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(50);
TCrystal.give((x + 8), (y + 8), 4);
new TExplo((x - 15), (y - 15), 1, 0.22);
Galaga.layerFore.removeChild(gfx);
}
}
}//package obs
Section 66
//TCoreKid_g_ship (obs.TCoreKid_g_ship)
package obs {
import mx.core.*;
public class TCoreKid_g_ship extends BitmapAsset {
}
}//package obs
Section 67
//TCruiser (obs.TCruiser)
package obs {
import Functions.*;
public class TCruiser extends TObject {
public var movex:Number;// = 0
public var movey:Number;// = 0
private var g_ship:Class;
public var tox:Number;// = 0
public var toy:Number;// = 0
public function TCruiser(_arg1:Number, _arg2:Number){
g_ship = TCruiser_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 29;
hei = 31;
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (16 * Galaga.diffHp);
updategfx(-3, -2);
tox = (50 + (Math.random() * 400));
toy = (50 + (Math.random() * 150));
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(40);
new TExplo((x - 25), (y - 25), 1, 0.3);
TCrystal.give((x + 6), (y + 8), 2);
Galaga.layerFore.removeChild(gfx);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
movex = Math.min(3, (Math.max(-3, (movex + (Sign((tox - x)) / 10))) * Galaga.diffSpd));
movey = Math.min(3, Math.max(-3, (movey + (Sign((toy - y)) / 10))));
x = (x + movex);
y = (y + movey);
if (Math.random() < 0.005){
tox = (50 + (Math.random() * 400));
toy = (50 + (Math.random() * 150));
};
if (Math.random() < (0.014 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet5((x + 11), (y + 5), 5));
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
updategfx(-3, -2);
}
}
}//package obs
Section 68
//TCruiser_g_ship (obs.TCruiser_g_ship)
package obs {
import mx.core.*;
public class TCruiser_g_ship extends BitmapAsset {
}
}//package obs
Section 69
//TCrystal (obs.TCrystal)
package obs {
import Functions.*;
public class TCrystal extends TObject {
public var dirpd:Number;
public var siz:uint;
public var spd:Number;
private var g01:Class;
public var dir:Number;
private var g00:Class;
public function TCrystal(_arg1:int, _arg2:int){
g00 = TCrystal_g00;
g01 = TCrystal_g01;
super();
siz = Math.round((Math.random() * 0.8));
x = _arg1;
y = _arg2;
dir = ((Math.random() * Math.PI) * 2);
dirpd = (Math.random() * 6);
spd = (Math.random() + 0.5);
wid = ((siz == 0)) ? 8 : 12;
hei = wid;
gfx = ((siz == 1)) ? new g00() : new g01();
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function U(_arg1:uint):void{
var _local2:TPlayer;
if (Galaga.shield){
_local2 = Galaga.Player;
if (_local2 != null){
x = (x + Sign(((_local2.midx - x) - 6)));
};
};
x = (x + (Math.cos(dir) * dirpd));
y = (y + (spd + (Math.sin(dir) * dirpd)));
dirpd = (dirpd * 0.95);
if (y > 505){
kill();
List.EffectRem(_arg1);
return;
};
updategfx();
_local2 = Galaga.Player;
if (_local2 == null){
return;
};
if (RectRect(x, y, wid, hei, _local2.x, _local2.y, _local2.wid, _local2.hei)){
kill();
List.EffectRem(_arg1);
Hud.addPnt((4 * (siz + 1)), false);
sfxer.sound("dmd");
};
}
public static function give(_arg1:uint, _arg2:uint, _arg3:uint=1):void{
var _local4:uint;
while (_local4 < _arg3) {
List.EffectAdd(new TCrystal(_arg1, _arg2));
_local4++;
};
}
}
}//package obs
Section 70
//TCrystal_g00 (obs.TCrystal_g00)
package obs {
import mx.core.*;
public class TCrystal_g00 extends BitmapAsset {
}
}//package obs
Section 71
//TCrystal_g01 (obs.TCrystal_g01)
package obs {
import mx.core.*;
public class TCrystal_g01 extends BitmapAsset {
}
}//package obs
Section 72
//TEBullet1 (obs.TEBullet1)
package obs {
import mx.core.*;
import flash.display.*;
import Functions.*;
public class TEBullet1 extends TObject {
private var g_shot:Class;
public var spd:Number;
public var hostile:Boolean;
public function TEBullet1(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:BitmapAsset;
g_shot = TEBullet1_g_shot;
super();
sfxer.sound("sh5");
x = _arg1;
y = _arg2;
wid = 4;
hei = 4;
spd = _arg3;
_local4 = new g_shot();
gfx = new Sprite();
gfx.addChild(_local4);
_local4.x = -7;
_local4.y = -5;
gfx.rotation = 90;
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function checkY():Boolean{
if (y > 500){
return (true);
};
return (false);
}
public function Hit():Boolean{
var _local1:TPlayer = Galaga.Player;
if (_local1 == null){
return (false);
};
if (RectRect(x, (y + spd), wid, (hei - spd), _local1.x, _local1.y, _local1.wid, _local1.hei)){
_local1.Hit();
return (true);
};
return (false);
}
public function Update(_arg1:uint):void{
if (Hit()){
Remove(_arg1);
kill();
return;
};
y = (y + spd);
updategfx();
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
}
}//package obs
Section 73
//TEBullet1_g_shot (obs.TEBullet1_g_shot)
package obs {
import mx.core.*;
public class TEBullet1_g_shot extends BitmapAsset {
}
}//package obs
Section 74
//TEBullet2 (obs.TEBullet2)
package obs {
import mx.core.*;
import flash.display.*;
import Functions.*;
public class TEBullet2 extends TObject {
public var spd:Number;
public var movey:Number;
public var dir:Number;
private var g_shot:Class;
public var movex:Number;
public var addx:Number;
public var addy:Number;
public function TEBullet2(_arg1:Number, _arg2:Number, _arg3:Number){
var _local5:BitmapAsset;
g_shot = TEBullet2_g_shot;
super();
sfxer.sound("sh5");
x = _arg1;
y = _arg2;
spd = _arg3;
var _local4:TPlayer = Galaga.Player;
if (_local4 != null){
dir = Math.atan2((_local4.midy - y), (_local4.midx - x));
} else {
dir = Math.atan2(10, 0);
};
_local5 = new g_shot();
gfx = new Sprite();
gfx.addChild(_local5);
_local5.x = -6;
_local5.y = -8.5;
gfx.rotation = dir;
movex = (Math.cos(dir) * (_arg3 + 5));
movey = (Math.sin(dir) * (_arg3 + 5));
addx = (Math.cos((dir + 90)) * 2.5);
addy = (Math.sin((dir + 90)) * 2.5);
gfx.graphics.beginFill(0xFFFFFF);
gfx.graphics.drawEllipse(0, 0, wid, hei);
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function Hit():Boolean{
var _local1:TPlayer = Galaga.Player;
if (_local1 == null){
return (false);
};
if (((LineRect((x + addx), (y + addy), ((x + addx) + movex), ((y + addy) + movey), _local1.x, _local1.y, _local1.wid, _local1.hei)) || (LineRect((x - addx), (y - addy), ((x - addx) + movex), ((y - addy) + movey), _local1.x, _local1.y, _local1.wid, _local1.hei)))){
_local1.Hit();
return (true);
};
return (false);
}
public function Update(_arg1:uint):void{
if (Hit()){
Remove(_arg1);
kill();
return;
};
x = (x + (Math.cos(dir) * spd));
y = (y + (Math.sin(dir) * spd));
updategfx();
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
public function checkY():Boolean{
if (y > 500){
return (true);
};
return (false);
}
}
}//package obs
Section 75
//TEBullet2_g_shot (obs.TEBullet2_g_shot)
package obs {
import mx.core.*;
public class TEBullet2_g_shot extends BitmapAsset {
}
}//package obs
Section 76
//TEBullet3 (obs.TEBullet3)
package obs {
import mx.core.*;
import flash.display.*;
import Functions.*;
public class TEBullet3 extends TObject {
public var movex:Number;
public var movey:Number;
public var dir:Number;
private var g_shot:Class;
public var spd:Number;
public var addx:Number;
public var addy:Number;
public var life:uint;
public function TEBullet3(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:BitmapAsset;
g_shot = TEBullet3_g_shot;
super();
sfxer.sound("sh3");
x = _arg1;
y = _arg2;
spd = (_arg3 * Galaga.diffSpd);
life = (100 + ((Math.random() * 400) * Galaga.diffAtk));
dir = Math.atan2(10, 0);
_local4 = new g_shot();
gfx = new Sprite();
gfx.addChild(_local4);
_local4.x = -1;
_local4.y = -3.5;
gfx.rotation = ((dir * 180) / Math.PI);
movex = (Math.cos(dir) * (spd + 10));
movey = (Math.sin(dir) * (spd + 10));
addx = (Math.cos((dir + 90)) * 2.5);
addy = (Math.sin((dir + 90)) * 2.5);
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function Hit():Boolean{
var _local1:TPlayer = Galaga.Player;
if (_local1 == null){
return (false);
};
if (((LineRect((x + addx), (y + addy), ((x + addx) + movex), ((y + addy) + movey), _local1.x, _local1.y, _local1.wid, _local1.hei)) || (LineRect((x - addx), (y - addy), ((x - addx) + movex), ((y - addy) + movey), _local1.x, _local1.y, _local1.wid, _local1.hei)))){
_local1.Hit();
return (true);
};
return (false);
}
public function Update(_arg1:uint):void{
var _local3:Number;
life--;
if (life == 0){
Remove(_arg1);
kill();
return;
};
if (Hit()){
Remove(_arg1);
kill();
return;
};
x = (x + (Math.cos(dir) * spd));
y = (y + (Math.sin(dir) * spd));
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
_local3 = Math.atan2((_local2.midy - y), (_local2.midx - x));
_local3 = (Sign(Angler(dir, _local3)) * 0.03);
dir = (dir + _local3);
movex = (Math.cos(dir) * (spd + 10));
movey = (Math.sin(dir) * (spd + 10));
addx = (Math.cos((dir + 90)) * 2.5);
addy = (Math.sin((dir + 90)) * 2.5);
};
gfx.rotation = ((dir * 180) / Math.PI);
updategfx();
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Remove(_arg1:uint):void{
new TExplo(((x - 15) + (Math.cos(dir) * 5)), ((y - 10) + (Math.sin(dir) * 5)), 1, 0.15);
List.BulletRem(_arg1);
}
public function checkY():Boolean{
if (y > 500){
return (true);
};
return (false);
}
}
}//package obs
Section 77
//TEBullet3_g_shot (obs.TEBullet3_g_shot)
package obs {
import mx.core.*;
public class TEBullet3_g_shot extends BitmapAsset {
}
}//package obs
Section 78
//TEBullet4 (obs.TEBullet4)
package obs {
import Functions.*;
public class TEBullet4 extends TObject {
public var movex:Number;
public var movey:Number;
public var dir:Number;
public var rad:Number;// = 9
public var tim:uint;// = 69
private var g_shot0:Class;
private var g_shot1:Class;
private var g_shot2:Class;
private var g_shot3:Class;
private var g_shot4:Class;
private var g_shot5:Class;
public var gfxes:Array;
public var frame:uint;// = 0
public function TEBullet4(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
g_shot0 = TEBullet4_g_shot0;
g_shot1 = TEBullet4_g_shot1;
g_shot2 = TEBullet4_g_shot2;
g_shot3 = TEBullet4_g_shot3;
g_shot4 = TEBullet4_g_shot4;
g_shot5 = TEBullet4_g_shot5;
gfxes = new Array(6);
super();
sfxer.sound("sh4");
gfxes[0] = new g_shot0();
gfxes[1] = new g_shot1();
gfxes[2] = new g_shot2();
gfxes[3] = new g_shot3();
gfxes[4] = new g_shot4();
gfxes[5] = new g_shot5();
gfx.addChild(gfxes[0]);
gfxes[0].x = -37.5;
gfxes[0].y = -37.5;
x = _arg1;
y = _arg2;
dir = _arg4;
var _local5:TPlayer = Galaga.Player;
movex = (Math.cos(dir) * _arg3);
movey = (Math.sin(dir) * _arg3);
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function checkY():Boolean{
if (y > 550){
return (true);
};
return (false);
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
public function Update(_arg1:uint):void{
tim--;
if (tim == 0){
tim = 3;
gfx.removeChild(gfxes[frame]);
frame++;
gfx.addChild(gfxes[frame]);
gfxes[frame].x = -37.5;
gfxes[frame].y = -37.5;
};
if (((Hit()) || ((rad > 25)))){
Remove(_arg1);
kill();
return;
};
rad = (rad + 0.2);
gfx.scaleX = (rad / 37.5);
gfx.scaleY = (rad / 37.5);
x = (x + movex);
y = (y + movey);
updategfx();
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Hit():Boolean{
var _local1:TPlayer = Galaga.Player;
if (_local1 == null){
return (false);
};
if (RectRect((x - (rad / 2)), (y - (rad / 2)), rad, rad, _local1.x, _local1.y, _local1.wid, _local1.hei)){
_local1.Hit();
return (true);
};
return (false);
}
}
}//package obs
Section 79
//TEBullet4_g_shot0 (obs.TEBullet4_g_shot0)
package obs {
import mx.core.*;
public class TEBullet4_g_shot0 extends BitmapAsset {
}
}//package obs
Section 80
//TEBullet4_g_shot1 (obs.TEBullet4_g_shot1)
package obs {
import mx.core.*;
public class TEBullet4_g_shot1 extends BitmapAsset {
}
}//package obs
Section 81
//TEBullet4_g_shot2 (obs.TEBullet4_g_shot2)
package obs {
import mx.core.*;
public class TEBullet4_g_shot2 extends BitmapAsset {
}
}//package obs
Section 82
//TEBullet4_g_shot3 (obs.TEBullet4_g_shot3)
package obs {
import mx.core.*;
public class TEBullet4_g_shot3 extends BitmapAsset {
}
}//package obs
Section 83
//TEBullet4_g_shot4 (obs.TEBullet4_g_shot4)
package obs {
import mx.core.*;
public class TEBullet4_g_shot4 extends BitmapAsset {
}
}//package obs
Section 84
//TEBullet4_g_shot5 (obs.TEBullet4_g_shot5)
package obs {
import mx.core.*;
public class TEBullet4_g_shot5 extends BitmapAsset {
}
}//package obs
Section 85
//TEBullet5 (obs.TEBullet5)
package obs {
import mx.core.*;
import flash.display.*;
import Functions.*;
public class TEBullet5 extends TObject {
private var g_shot:Class;
public var spd:Number;
public var hostile:Boolean;
public function TEBullet5(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:BitmapAsset;
g_shot = TEBullet5_g_shot;
super();
sfxer.sound("sh5");
x = _arg1;
y = _arg2;
wid = 9;
hei = 9;
spd = _arg3;
_local4 = new g_shot();
gfx = new Sprite();
gfx.addChild(_local4);
_local4.x = -11;
_local4.y = -7.5;
gfx.rotation = 90;
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function checkY():Boolean{
if (y > 500){
return (true);
};
return (false);
}
public function Hit():Boolean{
var _local1:TPlayer = Galaga.Player;
if (_local1 == null){
return (false);
};
if (RectRect(x, (y + spd), wid, (hei - spd), _local1.x, _local1.y, _local1.wid, _local1.hei)){
_local1.Hit();
return (true);
};
return (false);
}
public function Update(_arg1:uint):void{
if (Hit()){
Remove(_arg1);
kill();
return;
};
y = (y + spd);
updategfx();
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
}
}//package obs
Section 86
//TEBullet5_g_shot (obs.TEBullet5_g_shot)
package obs {
import mx.core.*;
public class TEBullet5_g_shot extends BitmapAsset {
}
}//package obs
Section 87
//TEBullet6 (obs.TEBullet6)
package obs {
import mx.core.*;
import flash.display.*;
import Functions.*;
public class TEBullet6 extends TObject {
public var spd:Number;
public var movey:Number;
public var dir:Number;
private var g_shot:Class;
public var movex:Number;
public var addx:Number;
public var addy:Number;
public function TEBullet6(_arg1:Number, _arg2:Number, _arg3:Number){
var _local5:BitmapAsset;
g_shot = TEBullet6_g_shot;
super();
sfxer.sound("sh5");
x = _arg1;
y = _arg2;
spd = _arg3;
var _local4:TPlayer = Galaga.Player;
if (_local4 != null){
dir = Math.atan2((_local4.midy - y), (_local4.midx - x));
} else {
dir = Math.atan2(10, 0);
};
_local5 = new g_shot();
gfx = new Sprite();
gfx.addChild(_local5);
_local5.x = -9;
_local5.y = -12.5;
gfx.rotation = ((dir * 180) / Math.PI);
movex = (Math.cos(dir) * (_arg3 + 7));
movey = (Math.sin(dir) * (_arg3 + 7));
addx = (Math.cos((dir + 90)) * 8.5);
addy = (Math.sin((dir + 90)) * 8.5);
gfx.graphics.beginFill(0xFFFFFF);
gfx.graphics.drawEllipse(0, 0, wid, hei);
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function Hit():Boolean{
var _local1:TPlayer = Galaga.Player;
if (_local1 == null){
return (false);
};
if (((LineRect((x + addx), (y + addy), ((x + addx) + movex), ((y + addy) + movey), _local1.x, _local1.y, _local1.wid, _local1.hei)) || (LineRect((x - addx), (y - addy), ((x - addx) + movex), ((y - addy) + movey), _local1.x, _local1.y, _local1.wid, _local1.hei)))){
_local1.Hit();
return (true);
};
return (false);
}
public function Update(_arg1:uint):void{
if (Hit()){
Remove(_arg1);
kill();
return;
};
x = (x + (Math.cos(dir) * spd));
y = (y + (Math.sin(dir) * spd));
updategfx();
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
public function checkY():Boolean{
if (y > 500){
return (true);
};
return (false);
}
}
}//package obs
Section 88
//TEBullet6_g_shot (obs.TEBullet6_g_shot)
package obs {
import mx.core.*;
public class TEBullet6_g_shot extends BitmapAsset {
}
}//package obs
Section 89
//TEBullet7 (obs.TEBullet7)
package obs {
import mx.core.*;
import flash.display.*;
import Functions.*;
public class TEBullet7 extends TObject {
public var movex:Number;
public var movey:Number;
public var dir:Number;
private var g_shot:Class;
public var spd:Number;
public var addx:Number;
public var addy:Number;
public var life:uint;
public function TEBullet7(_arg1:Number, _arg2:Number, _arg3:Number){
var _local5:BitmapAsset;
g_shot = TEBullet7_g_shot;
super();
sfxer.sound("sh3");
x = _arg1;
y = _arg2;
spd = (_arg3 * Galaga.diffSpd);
life = (100 + ((Math.random() * 400) * Galaga.diffAtk));
var _local4:TPlayer = Galaga.Player;
if (_local4 != null){
dir = Math.atan2((_local4.midy - y), (_local4.midx - x));
} else {
dir = Math.atan2(10, 0);
};
_local5 = new g_shot();
gfx = new Sprite();
gfx.addChild(_local5);
_local5.x = -1;
_local5.y = -3.5;
gfx.rotation = ((dir * 180) / Math.PI);
movex = (Math.cos(dir) * (spd + 10));
movey = (Math.sin(dir) * (spd + 10));
addx = (Math.cos((dir + 90)) * 2.5);
addy = (Math.sin((dir + 90)) * 2.5);
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function Hit():Boolean{
var _local1:TPlayer = Galaga.Player;
if (_local1 == null){
return (false);
};
if (((LineRect((x + addx), (y + addy), ((x + addx) + movex), ((y + addy) + movey), _local1.x, _local1.y, _local1.wid, _local1.hei)) || (LineRect((x - addx), (y - addy), ((x - addx) + movex), ((y - addy) + movey), _local1.x, _local1.y, _local1.wid, _local1.hei)))){
_local1.Hit();
return (true);
};
return (false);
}
public function Update(_arg1:uint):void{
var _local3:Number;
life--;
if (life == 0){
Remove(_arg1);
kill();
return;
};
if (Hit()){
Remove(_arg1);
kill();
return;
};
x = (x + (Math.cos(dir) * spd));
y = (y + (Math.sin(dir) * spd));
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
_local3 = Math.atan2((_local2.midy - y), (_local2.midx - x));
_local3 = (Sign(Angler(dir, _local3)) * 0.04);
dir = (dir + _local3);
movex = (Math.cos(dir) * (spd + 10));
movey = (Math.sin(dir) * (spd + 10));
addx = (Math.cos((dir + 90)) * 2.5);
addy = (Math.sin((dir + 90)) * 2.5);
};
gfx.rotation = ((dir * 180) / Math.PI);
updategfx();
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Remove(_arg1:uint):void{
new TExplo(((x - 15) + (Math.cos(dir) * 5)), ((y - 10) + (Math.sin(dir) * 5)), 1, 0.15);
List.BulletRem(_arg1);
}
public function checkY():Boolean{
if (y > 500){
return (true);
};
return (false);
}
}
}//package obs
Section 90
//TEBullet7_g_shot (obs.TEBullet7_g_shot)
package obs {
import mx.core.*;
public class TEBullet7_g_shot extends BitmapAsset {
}
}//package obs
Section 91
//TExplo (obs.TExplo)
package obs {
public class TExplo {
private var b_03:Class;
private var b_04:Class;
private var b_06:Class;
private var b_08:Class;
private var b_05:Class;
private var b_07:Class;
private var b_09:Class;
private var b_01:Class;
private var b_10:Class;
private var gfxes:Array;
private var frame:uint;
private var spd:uint;
private var wait:uint;
private var b_00:Class;
private var b_02:Class;
public function TExplo(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Number){
b_00 = TExplo_b_00;
b_01 = TExplo_b_01;
b_02 = TExplo_b_02;
b_03 = TExplo_b_03;
b_04 = TExplo_b_04;
b_05 = TExplo_b_05;
b_06 = TExplo_b_06;
b_07 = TExplo_b_07;
b_08 = TExplo_b_08;
b_09 = TExplo_b_09;
b_10 = TExplo_b_10;
gfxes = new Array(11);
super();
gfxes[0] = new b_00();
gfxes[1] = new b_01();
gfxes[2] = new b_02();
gfxes[3] = new b_03();
gfxes[4] = new b_04();
gfxes[5] = new b_05();
gfxes[6] = new b_06();
gfxes[7] = new b_07();
gfxes[8] = new b_08();
gfxes[9] = new b_09();
gfxes[10] = new b_10();
var _local5:uint;
while (_local5 < 11) {
gfxes[_local5].x = _arg1;
gfxes[_local5].y = _arg2;
gfxes[_local5].scaleX = _arg4;
gfxes[_local5].scaleY = _arg4;
_local5++;
};
wait = (spd = _arg3);
frame = 0;
Galaga.layerFore.addChild(gfxes[frame]);
List.EffectAdd(this);
}
public function kill():void{
Galaga.layerFore.removeChild(gfxes[frame]);
}
public function U(_arg1:uint):void{
if (wait > 0){
wait--;
} else {
wait = spd;
Galaga.layerFore.removeChild(gfxes[frame]);
frame++;
if (frame == 11){
List.EffectRem(_arg1);
return;
};
Galaga.layerFore.addChild(gfxes[frame]);
};
}
}
}//package obs
Section 92
//TExplo_b_00 (obs.TExplo_b_00)
package obs {
import mx.core.*;
public class TExplo_b_00 extends BitmapAsset {
}
}//package obs
Section 93
//TExplo_b_01 (obs.TExplo_b_01)
package obs {
import mx.core.*;
public class TExplo_b_01 extends BitmapAsset {
}
}//package obs
Section 94
//TExplo_b_02 (obs.TExplo_b_02)
package obs {
import mx.core.*;
public class TExplo_b_02 extends BitmapAsset {
}
}//package obs
Section 95
//TExplo_b_03 (obs.TExplo_b_03)
package obs {
import mx.core.*;
public class TExplo_b_03 extends BitmapAsset {
}
}//package obs
Section 96
//TExplo_b_04 (obs.TExplo_b_04)
package obs {
import mx.core.*;
public class TExplo_b_04 extends BitmapAsset {
}
}//package obs
Section 97
//TExplo_b_05 (obs.TExplo_b_05)
package obs {
import mx.core.*;
public class TExplo_b_05 extends BitmapAsset {
}
}//package obs
Section 98
//TExplo_b_06 (obs.TExplo_b_06)
package obs {
import mx.core.*;
public class TExplo_b_06 extends BitmapAsset {
}
}//package obs
Section 99
//TExplo_b_07 (obs.TExplo_b_07)
package obs {
import mx.core.*;
public class TExplo_b_07 extends BitmapAsset {
}
}//package obs
Section 100
//TExplo_b_08 (obs.TExplo_b_08)
package obs {
import mx.core.*;
public class TExplo_b_08 extends BitmapAsset {
}
}//package obs
Section 101
//TExplo_b_09 (obs.TExplo_b_09)
package obs {
import mx.core.*;
public class TExplo_b_09 extends BitmapAsset {
}
}//package obs
Section 102
//TExplo_b_10 (obs.TExplo_b_10)
package obs {
import mx.core.*;
public class TExplo_b_10 extends BitmapAsset {
}
}//package obs
Section 103
//TFighter (obs.TFighter)
package obs {
import Functions.*;
public class TFighter extends TObject {
private var g_ship:Class;
public var flyto:uint;
public var spd:Number;
public var movex:Number;// = 0
public function TFighter(_arg1:Number, _arg2:Number){
g_ship = TFighter_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 25;
hei = 18;
flyto = (Math.random() * 300);
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (5 * Galaga.diffHp);
spd = (1 + (Math.random() * 4));
updategfx();
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(5);
TCrystal.give((x + 6), (y + 5), 1);
new TExplo((x - 8), (y - 8), 1, 0.18);
Galaga.layerFore.removeChild(gfx);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
movex = Math.min(spd, Math.max(-(spd), (movex + ((Sign(((_local2.midx - x) - 12.5)) / 20) * Galaga.diffSpd))));
} else {
movex = (movex * 0.9);
};
x = (x + movex);
if (Math.random() < (0.008 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet1((x + ((Math.random() < 0.5)) ? 2 : 21), (y + 15), 4));
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
if (y < flyto){
y++;
};
updategfx();
}
}
}//package obs
Section 104
//TFighter_g_ship (obs.TFighter_g_ship)
package obs {
import mx.core.*;
public class TFighter_g_ship extends BitmapAsset {
}
}//package obs
Section 105
//TFlamer (obs.TFlamer)
package obs {
import Functions.*;
public class TFlamer extends TObject {
public var timx:uint;// = 0
public var hook:uint;// = 0
public var dir:Number;// = 0
private var g_ship:Class;
public var tox:uint;
public var toy:uint;
public function TFlamer(_arg1:Number, _arg2:Number){
g_ship = TFlamer_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 29;
hei = 29;
tox = (50 + (Math.random() * 400));
toy = (250 + (Math.random() * 100));
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (25 * Galaga.diffHp);
updategfx(-3, -3);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(120);
TCrystal.give((x + 12), (y + 12), 3);
new TExplo((x - 25), (y - 25), 1, 0.3);
Galaga.layerFore.removeChild(gfx);
}
public function Update(_arg1:uint):void{
var _local2:TPlayer;
gfx.blendMode = "normal";
if (hook == 0){
x = (x + ((tox - x) / 30));
y = (y + ((toy - y) / 30));
if (Distance2(x, y, tox, toy) < 400){
hook = (60 * Galaga.diffAtk);
_local2 = Galaga.Player;
if (_local2 != null){
dir = Math.atan2((_local2.y - y), (_local2.x - x));
};
};
} else {
if ((hook % 8) == 0){
List.BulletAdd(new TEBullet4((x + 14), (y + 15), (2 * Galaga.diffSpd), dir));
};
hook--;
if (hook == 0){
tox = (50 + (Math.random() * 400));
toy = (250 + (Math.random() * 100));
};
};
updategfx(-3, -3);
}
}
}//package obs
Section 106
//TFlamer_g_ship (obs.TFlamer_g_ship)
package obs {
import mx.core.*;
public class TFlamer_g_ship extends BitmapAsset {
}
}//package obs
Section 107
//TKamikaze (obs.TKamikaze)
package obs {
import Functions.*;
public class TKamikaze extends TObject {
public var movex:Number;// = 0
public var flyto:uint;
private var g_ship:Class;
public var fall:Number;// = 0
public var spd:Number;
public function TKamikaze(_arg1:Number, _arg2:Number){
g_ship = TKamikaze_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 17;
hei = 19;
flyto = (20 + (Math.random() * 180));
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (5 * Galaga.diffHp);
spd = (1 + (Math.random() * 2));
updategfx(-4, -2);
}
public function Update(_arg1:uint):void{
var _local2:TPlayer;
gfx.blendMode = "normal";
if (fall == 0){
_local2 = Galaga.Player;
if (_local2 != null){
movex = Math.min(spd, Math.max(-(spd), (movex + ((Sign(((_local2.midx - x) - 8)) / 40) * Galaga.diffSpd))));
} else {
movex = (movex * 0.9);
};
x = (x + movex);
if ((((Math.random() < (0.006 * Galaga.diffAtk))) && ((y > 0)))){
fall = 1;
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
if (y < flyto){
y++;
};
} else {
movex = (movex * 0.9);
fall = (fall + 0.1);
_local2 = Galaga.Player;
if (_local2 != null){
if (RectRect(x, y, wid, (hei + fall), _local2.x, _local2.y, _local2.wid, _local2.hei)){
_local2.Hit();
};
};
x = (x + movex);
y = (y + fall);
if (y > 500){
y = (-50 - (Math.random() * 10));
fall = 0;
flyto = (20 + (Math.random() * 180));
};
};
updategfx(-4, -2);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(6);
TCrystal.give((x + 6), (y + 8), 1);
new TExplo((x - 13), (y - 10), 1, 0.2);
Galaga.layerFore.removeChild(gfx);
}
}
}//package obs
Section 108
//TKamikaze_g_ship (obs.TKamikaze_g_ship)
package obs {
import mx.core.*;
public class TKamikaze_g_ship extends BitmapAsset {
}
}//package obs
Section 109
//TMine (obs.TMine)
package obs {
import Functions.*;
public class TMine extends TObject {
public var gfxes:Array;
public var movey:Number;// = 0
public var frame:uint;// = 0
private var g_ship0:Class;
private var g_ship1:Class;
private var g_ship2:Class;
public var tim:uint;// = 5
public function TMine(_arg1:Number, _arg2:Number){
g_ship0 = TMine_g_ship0;
g_ship1 = TMine_g_ship1;
g_ship2 = TMine_g_ship2;
gfxes = new Array(3);
super();
x = _arg1;
y = _arg2;
wid = 17;
hei = 17;
gfxes[0] = new g_ship0();
gfxes[1] = new g_ship1();
gfxes[2] = new g_ship2();
Galaga.layerFore.addChild(gfxes[0]);
Galaga.layerFore.addChild(gfxes[1]);
Galaga.layerFore.addChild(gfxes[2]);
gfxes[0].visible = (gfxes[1].visible = (gfxes[2].visible = false));
gfx = gfxes[frame];
gfx.visible = true;
hp = (12 * Galaga.diffHp);
movey = (((Math.random() * 2) + 0.5) * Galaga.diffSpd);
updategfx(-4, -4);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(15);
new TExplo((x - 16), (y - 13), 1, 0.2);
Galaga.layerFore.removeChild(gfxes[0]);
Galaga.layerFore.removeChild(gfxes[1]);
Galaga.layerFore.removeChild(gfxes[2]);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
tim--;
if (tim == 0){
tim = 4;
frame++;
if (frame > 2){
frame = 0;
};
gfx.visible = false;
gfx = gfxes[frame];
gfx.visible = true;
};
y = (y + movey);
var _local2:TPlayer = Galaga.Player;
if (y > 500){
y = -50;
x = (15 + (Math.random() * 450));
};
updategfx(-4, -4);
if (_local2 == null){
return;
};
if (RectRect(x, y, wid, (hei + movey), _local2.x, _local2.y, _local2.wid, _local2.hei)){
_local2.Hit();
};
}
}
}//package obs
Section 110
//TMine_g_ship0 (obs.TMine_g_ship0)
package obs {
import mx.core.*;
public class TMine_g_ship0 extends BitmapAsset {
}
}//package obs
Section 111
//TMine_g_ship1 (obs.TMine_g_ship1)
package obs {
import mx.core.*;
public class TMine_g_ship1 extends BitmapAsset {
}
}//package obs
Section 112
//TMine_g_ship2 (obs.TMine_g_ship2)
package obs {
import mx.core.*;
public class TMine_g_ship2 extends BitmapAsset {
}
}//package obs
Section 113
//TMower (obs.TMower)
package obs {
import mx.core.*;
import Functions.*;
public class TMower extends TObject {
public var hi:uint;
public var mode:uint;// = 0
public var movex:Number;// = 0
public var lo:uint;
public var movey:Number;// = 0
private var g_ship:Class;
public var spd:uint;
public function TMower(_arg1:Number, _arg2:Number){
g_ship = TMower_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 39;
hei = 39;
var _local3:BitmapAsset = new g_ship();
_local3.x = -22.5;
_local3.y = -22.5;
gfx.addChild(_local3);
Galaga.layerFore.addChild(gfx);
hp = (25 * Galaga.diffHp);
spd = (2 + (Math.random() * 4));
hi = (50 - (Math.random() * 20));
lo = (370 - (Math.random() * 30));
movex = 0;
movey = 0;
updategfx(19.5, 19.5);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
gfx.rotation = (gfx.rotation - (10 + (y / 40)));
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
movex = Math.min(spd, Math.max(-(spd), (movex + ((Sign(((_local2.midx - x) - 20)) / 25) * Galaga.diffSpd))));
switch (mode){
case 0:
movey = (movey + (0.2 + (Math.random() / 10)));
if (movey > 10){
movey = 10;
};
if (y > lo){
mode = 1;
};
break;
case 1:
movey = (movey - 0.5);
if (movey < -4){
movey = -4;
};
if (y < hi){
mode = 0;
};
};
if (RectRect(x, y, wid, hei, _local2.x, _local2.y, _local2.wid, _local2.hei)){
_local2.Hit();
};
} else {
if (y > 500){
y = -(hei);
};
movex = (movex * 0.9);
};
x = (x + movex);
y = (y + movey);
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
if (y > 500){
y = -(hei);
};
updategfx(19.5, 19.5);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(140);
TCrystal.give((x + 15), (y + 15), 5);
Galaga.layerFore.removeChild(gfx);
new TExplo((x - 40), (y - 30), 1, 0.5);
}
}
}//package obs
Section 114
//TMower_g_ship (obs.TMower_g_ship)
package obs {
import mx.core.*;
public class TMower_g_ship extends BitmapAsset {
}
}//package obs
Section 115
//TObject (obs.TObject)
package obs {
import flash.display.*;
public class TObject {
public var y:Number;
public var hp:Number;
public var hei:uint;
public var gfx;
public var wid:uint;
public var x:Number;
public function TObject(){
gfx = new Sprite();
super();
}
public function damage(_arg1:Number, _arg2:uint, _arg3:Boolean=true):uint{
if (_arg3){
sfxer.sound("tck");
};
gfx.blendMode = "erase";
if (hp > _arg1){
hp = (hp - _arg1);
return (0);
};
_arg1 = (_arg1 - hp);
hp = 0;
kill();
List.EnemyRem(_arg2);
return (_arg1);
}
protected function updategfx(_arg1:int=0, _arg2:int=0):void{
gfx.x = ((x + _arg1) - 2);
gfx.y = ((y + _arg2) - 2);
}
public function kill():void{
Galaga.layerMid.removeChild(gfx);
}
}
}//package obs
Section 116
//TParafighter (obs.TParafighter)
package obs {
import Functions.*;
public class TParafighter extends TObject {
private var g_ship:Class;
public var movex:Number;// = 0
public var movey:Number;// = 0
public function TParafighter(_arg1:Number, _arg2:Number){
g_ship = TParafighter_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 26;
hei = 26;
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (19 * Galaga.diffHp);
movex = (((Math.random() * 6) - 2) * Galaga.diffSpd);
movey = (((Math.random() * 4) + 0.5) * Galaga.diffSpd);
updategfx(-1);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(45);
TCrystal.give((x + 10), (y + 10), 2);
new TExplo((x - 25), (y - 25), 1, 0.3);
Galaga.layerFore.removeChild(gfx);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
x = (x + movex);
y = (y + movey);
if (Math.random() < 0.002){
movex = (movex * -1);
};
if (Math.random() < (0.014 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet5((x + 10), y, 8));
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
if (y > 500){
y = -(hei);
};
updategfx(-1);
}
}
}//package obs
Section 117
//TParafighter_g_ship (obs.TParafighter_g_ship)
package obs {
import mx.core.*;
public class TParafighter_g_ship extends BitmapAsset {
}
}//package obs
Section 118
//TPBullet1 (obs.TPBullet1)
package obs {
import mx.core.*;
import Functions.*;
public class TPBullet1 extends TObject {
private var g_shot:Class;
public var spd:Number;
public function TPBullet1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint=1){
g_shot = TPBullet1_g_shot;
super();
x = _arg1;
y = _arg2;
wid = 4;
hei = 4;
hp = _arg4;
spd = -(_arg3);
var _local5:BitmapAsset = new g_shot();
gfx.addChild(_local5);
_local5.x = -6;
_local5.y = -4;
gfx.rotation = -90;
Galaga.layerMid.addChild(gfx);
updategfx();
}
public function checkY():Boolean{
if ((y + hei) < 0){
return (true);
};
return (false);
}
public function Update(_arg1:uint):void{
y = (y + spd);
if (Hit()){
Remove(_arg1);
kill();
return;
};
updategfx();
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Hit():Boolean{
var _local2:TObject;
var _local1:int = (List.Enemies.length - 1);
while (_local1 >= 0) {
_local2 = List.Enemies[_local1];
if (RectRect(x, y, wid, hei, _local2.x, _local2.y, _local2.wid, _local2.hei)){
hp = List.Enemies[_local1].damage(hp, _local1);
if (hp == 0){
return (true);
};
};
_local1--;
};
return (false);
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
}
}//package obs
Section 119
//TPBullet1_g_shot (obs.TPBullet1_g_shot)
package obs {
import mx.core.*;
public class TPBullet1_g_shot extends BitmapAsset {
}
}//package obs
Section 120
//TPBullet2 (obs.TPBullet2)
package obs {
import mx.core.*;
import Functions.*;
public class TPBullet2 extends TObject {
private var g_shot:Class;
public var mx:Number;
public var my:Number;
public function TPBullet2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint=1){
g_shot = TPBullet2_g_shot;
super();
x = _arg1;
y = _arg2;
wid = 4;
hei = 4;
hp = (_arg5 * 2);
gfx.rotation = _arg4;
_arg4 = ((_arg4 * Math.PI) / 180);
mx = (Math.cos(_arg4) * _arg3);
my = (Math.sin(_arg4) * _arg3);
var _local6:BitmapAsset = new g_shot();
gfx.addChild(_local6);
_local6.x = -8;
_local6.y = -4;
Galaga.layerMid.addChild(gfx);
updategfx(-2, -2);
}
public function checkY():Boolean{
if ((y + hei) < 0){
return (true);
};
return (false);
}
public function Update(_arg1:uint):void{
x = (x + mx);
y = (y + my);
updategfx(-2, -2);
if (Hit()){
Remove(_arg1);
kill();
return;
};
if (checkY()){
Remove(_arg1);
kill();
};
}
public function Hit():Boolean{
var _local2:TObject;
var _local1:int = (List.Enemies.length - 1);
while (_local1 >= 0) {
_local2 = List.Enemies[_local1];
if (RectRect(x, y, wid, hei, _local2.x, _local2.y, _local2.wid, _local2.hei)){
hp = List.Enemies[_local1].damage(hp, _local1);
if (hp == 0){
return (true);
};
};
_local1--;
};
return (false);
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
}
}//package obs
Section 121
//TPBullet2_g_shot (obs.TPBullet2_g_shot)
package obs {
import mx.core.*;
public class TPBullet2_g_shot extends BitmapAsset {
}
}//package obs
Section 122
//TPBullet3 (obs.TPBullet3)
package obs {
import Functions.*;
public class TPBullet3 extends TObject {
public function TPBullet3(_arg1:Number, _arg2:Number, _arg3:uint=1){
x = _arg1;
y = 0;
wid = (_arg3 * 2);
hei = _arg2;
hp = _arg3;
gfx.graphics.beginFill(0xFFFFFF);
gfx.graphics.drawRect(0, 0, wid, hei);
gfx.graphics.endFill();
Galaga.layerMid.addChild(gfx);
updategfx();
if (Flasher.flashering < 0.6){
Hit();
};
}
public function Update(_arg1:uint):void{
gfx.alpha = (gfx.alpha - 0.2);
if (gfx.alpha < 0){
Remove(_arg1);
kill();
};
}
public function Hit():void{
var _local2:TObject;
var _local1:int = (List.Enemies.length - 1);
while (_local1 >= 0) {
_local2 = List.Enemies[_local1];
if (RectRect(x, y, wid, hei, _local2.x, _local2.y, _local2.wid, _local2.hei)){
hp = List.Enemies[_local1].damage(hp, _local1);
};
_local1--;
};
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
}
}//package obs
Section 123
//TPBullet4 (obs.TPBullet4)
package obs {
import Functions.*;
public class TPBullet4 extends TObject {
public function TPBullet4(_arg1:Number, _arg2:Number){
x = (_arg1 - 1);
y = 0;
wid = 3;
hei = _arg2;
hp = 0.12;
gfx.graphics.beginFill(0xFFFF00);
gfx.graphics.drawRect(0, 0, wid, hei);
gfx.graphics.endFill();
Galaga.layerMid.addChild(gfx);
updategfx();
if (Flasher.flashering < 0.6){
Hit();
};
}
public function Update(_arg1:uint):void{
gfx.alpha = (gfx.alpha - 0.6);
if (gfx.alpha <= 0){
Remove(_arg1);
kill();
};
}
public function Hit():void{
var _local2:TObject;
var _local1:int = (List.Enemies.length - 1);
while (_local1 >= 0) {
_local2 = List.Enemies[_local1];
if (RectRect(x, y, wid, hei, _local2.x, _local2.y, _local2.wid, _local2.hei)){
hp = List.Enemies[_local1].damage(hp, _local1, false);
};
_local1--;
};
}
public function Remove(_arg1:uint):void{
List.BulletRem(_arg1);
}
}
}//package obs
Section 124
//TPlayer (obs.TPlayer)
package obs {
import mx.core.*;
import Functions.*;
public class TPlayer extends TObject {
public var speed:uint;// = 500
private var g_ship0:Class;
private var g_ship1:Class;
private var g_ship2:Class;
private var g_ship3:Class;
private var g_ship4:Class;
private var g_sh:Class;
public var gfxes:Array;
public var midx:Number;
public var midy:Number;
public var fram:Number;
public static var minx:uint = 5;
public static var miny:uint = 5;
public static var shield:BitmapAsset;
public static var reappear:uint = 0;
public static var maxx:uint = 475;
public static var maxy:uint = 475;
public function TPlayer(_arg1:uint, _arg2:uint){
g_ship0 = TPlayer_g_ship0;
g_ship1 = TPlayer_g_ship1;
g_ship2 = TPlayer_g_ship2;
g_ship3 = TPlayer_g_ship3;
g_ship4 = TPlayer_g_ship4;
g_sh = TPlayer_g_sh;
gfxes = new Array(5);
super();
reappear = 200;
x = _arg1;
y = _arg2;
wid = 20;
hei = 16;
shield = new g_sh();
shield.blendMode = "add";
gfxes[0] = new g_ship0();
gfxes[1] = new g_ship1();
gfxes[2] = new g_ship2();
gfxes[3] = new g_ship3();
gfxes[4] = new g_ship4();
Galaga.layerFore.addChild(gfxes[0]);
Galaga.layerFore.addChild(gfxes[1]);
Galaga.layerFore.addChild(gfxes[2]);
Galaga.layerFore.addChild(gfxes[3]);
Galaga.layerFore.addChild(gfxes[4]);
Galaga.layerFore.addChild(shield);
shield.visible = false;
gfxes[0].visible = false;
gfxes[1].visible = false;
gfxes[2].visible = false;
gfxes[3].visible = false;
gfxes[4].visible = false;
updategfx(-4, -7);
}
public function Hit():void{
if (((((Galaga.shield) && (Hud.shield))) || ((reappear > 0)))){
return;
};
kill();
}
override public function kill():void{
new TExplo((x - 110), (y - 90), 2, 1);
Hud.lives--;
Hud.updLives();
new Flasher();
Galaga.layerFore.removeChild(shield);
Galaga.layerFore.removeChild(gfxes[0]);
Galaga.layerFore.removeChild(gfxes[1]);
Galaga.layerFore.removeChild(gfxes[2]);
Galaga.layerFore.removeChild(gfxes[3]);
Galaga.layerFore.removeChild(gfxes[4]);
Hud.shield = 120;
Galaga.Player = new TPlayer(0, 0);
}
public function Update(_arg1:uint, _arg2:uint):void{
var _local5:Number;
shield.x = (x - 7);
shield.y = (y - 9);
var _local3:Number = (_arg1 - (wid / 2));
var _local4:Number = (_arg2 - (hei / 2));
if (_local4 > maxy){
_local4 = maxy;
};
if (_local4 < miny){
_local4 = miny;
};
if (_local3 < minx){
_local3 = minx;
};
if (_local3 > maxx){
_local3 = maxx;
};
if (Distance2(_local3, _local4, x, y) > 400){
_local5 = Math.atan2((_local4 - y), (_local3 - x));
_local3 = (Math.cos(_local5) * 20);
_local4 = (Math.sin(_local5) * 20);
} else {
_local3 = (_local3 - x);
_local4 = (_local4 - y);
};
if (_local3 > 10){
fram = 4;
} else {
if (_local3 > 0){
if (fram < 3){
fram = 3;
};
} else {
if (_local3 < -10){
fram = 0;
} else {
if (_local3 < 0){
if (fram > 1){
fram = 1;
};
};
};
};
};
if (fram > 2){
fram = (fram - 0.1);
} else {
fram = (fram + 0.1);
};
flip(Math.round(fram));
x = (x + _local3);
y = (y + _local4);
midx = (x + (wid / 2));
midy = (y + (hei / 2));
if (reappear > 0){
gfx.visible = (Math.floor((reappear / 2)) % 2);
reappear--;
};
updategfx(-2, -7);
}
public function flip(_arg1:uint):void{
gfx.visible = false;
gfx = gfxes[_arg1];
gfx.visible = true;
}
}
}//package obs
Section 125
//TPlayer_g_sh (obs.TPlayer_g_sh)
package obs {
import mx.core.*;
public class TPlayer_g_sh extends BitmapAsset {
}
}//package obs
Section 126
//TPlayer_g_ship0 (obs.TPlayer_g_ship0)
package obs {
import mx.core.*;
public class TPlayer_g_ship0 extends BitmapAsset {
}
}//package obs
Section 127
//TPlayer_g_ship1 (obs.TPlayer_g_ship1)
package obs {
import mx.core.*;
public class TPlayer_g_ship1 extends BitmapAsset {
}
}//package obs
Section 128
//TPlayer_g_ship2 (obs.TPlayer_g_ship2)
package obs {
import mx.core.*;
public class TPlayer_g_ship2 extends BitmapAsset {
}
}//package obs
Section 129
//TPlayer_g_ship3 (obs.TPlayer_g_ship3)
package obs {
import mx.core.*;
public class TPlayer_g_ship3 extends BitmapAsset {
}
}//package obs
Section 130
//TPlayer_g_ship4 (obs.TPlayer_g_ship4)
package obs {
import mx.core.*;
public class TPlayer_g_ship4 extends BitmapAsset {
}
}//package obs
Section 131
//TRocketer (obs.TRocketer)
package obs {
import Functions.*;
public class TRocketer extends TObject {
private var g_ship:Class;
public var movex:Number;// = 0
public function TRocketer(_arg1:Number, _arg2:Number){
g_ship = TRocketer_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 82;
hei = 26;
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (30 * Galaga.diffHp);
updategfx(0, -22);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(90);
TCrystal.give((x + 35), (y + 12), 4);
new TExplo((x - 50), (y - 50), 1, 0.65);
Galaga.layerFore.removeChild(gfx);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
movex = Math.min(1, Math.max(-1, (movex - ((Sign(((_local2.midx - x) - 40)) / 300) * Galaga.diffSpd))));
};
x = (x + movex);
if (Math.random() < (0.012 * Galaga.diffAtk)){
List.BulletAdd(new TEBullet3((x + ((Math.random() < 0.5)) ? 31 : 51), (y + 40), 2));
};
if (x > 500){
x = -(wid);
};
if (x < -(wid)){
x = 500;
};
if (y < 30){
y++;
};
updategfx(0, -22);
}
}
}//package obs
Section 132
//TRocketer_g_ship (obs.TRocketer_g_ship)
package obs {
import mx.core.*;
public class TRocketer_g_ship extends BitmapAsset {
}
}//package obs
Section 133
//TShieldShip (obs.TShieldShip)
package obs {
import Functions.*;
public class TShieldShip extends TObject {
private var g_ship:Class;
public var movex:Number;// = 0
public function TShieldShip(_arg1:Number, _arg2:Number){
g_ship = TShieldShip_g_ship;
super();
x = _arg1;
y = _arg2;
wid = 114;
hei = 89;
gfx = new g_ship();
Galaga.layerFore.addChild(gfx);
hp = (100 * Galaga.diffHp);
updategfx(-3, -3);
}
override public function kill():void{
sfxer.sound("xp2");
Hud.addPnt(30);
new TExplo((x - 60), (y - 50), 1, 0.8);
TCrystal.give((x + 55), (y + 40), 2);
Galaga.layerFore.removeChild(gfx);
}
public function Update(_arg1:uint):void{
gfx.blendMode = "normal";
x = (x + movex);
if (y < 280){
y = (y + ((1 * Galaga.diffSpd) * Galaga.diffAtk));
};
var _local2:TPlayer = Galaga.Player;
if (_local2 != null){
if (RectRect(x, y, wid, hei, _local2.x, _local2.y, _local2.wid, _local2.hei)){
_local2.Hit();
};
};
updategfx(-3, -3);
}
}
}//package obs
Section 134
//TShieldShip_g_ship (obs.TShieldShip_g_ship)
package obs {
import mx.core.*;
public class TShieldShip_g_ship extends BitmapAsset {
}
}//package obs
Section 135
//Waves (obs.Waves)
package obs {
import flash.net.*;
public class Waves {
public static var chl:uint = 1;
public static function sBar(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TBarrier((25 + (Math.random() * 400)), -30));
_local2++;
};
}
public static function sBoa(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TBoarder((25 + (Math.random() * 450)), -30));
_local2++;
};
}
public static function sKam(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TKamikaze((25 + (Math.random() * 450)), -30));
_local2++;
};
}
public static function sFla(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TFlamer((25 + (Math.random() * 450)), -30));
_local2++;
};
}
public static function sMow(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TMower((25 + (Math.random() * 450)), -30));
_local2++;
};
}
public static function sRoc(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TRocketer((25 + (Math.random() * 450)), -60));
_local2++;
};
}
public static function sShi(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TShieldShip((25 + (Math.random() * 350)), -50));
_local2++;
};
}
public static function sFig(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TFighter((25 + (Math.random() * 450)), -30));
_local2++;
};
}
public static function sCor(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TCore(200, -140));
_local2++;
};
}
public static function sPar(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TParafighter((25 + (Math.random() * 450)), -30));
_local2++;
};
}
public static function Give(_arg1:uint):void{
var _local4:String;
var _local5:SharedObject;
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:Boolean;
if ((((((Hud.messer == 0)) && ((Galaga.goverer.alpha == 0)))) && ((Galaga.titler.alpha == 0)))){
_local5 = SharedObject.getLocal("Galagian_Data");
_local6 = Galaga.diffHp;
_local5.data.dH = _local6;
_local7 = Galaga.diffAtk;
_local5.data.dA = _local7;
_local8 = Galaga.diffSpd;
_local5.data.dS = _local8;
_local9 = (Hud.wavs - 1);
_local5.data.wav = _local9;
_local10 = Weapon.weaplev;
_local5.data.wea = _local10;
_local11 = Waves.chl;
_local5.data.chl = _local11;
_local12 = Galaga.easyx;
_local5.data.e = _local12;
};
var _local2:String = _arg1.toString();
while (_local2.length < 3) {
_local2 = ("0" + _local2);
};
var _local3:String = chl.toString();
if (_local3.length < 2){
_local3 = ("0" + _local3);
};
switch ((_arg1 % 44)){
case 1:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Introducing Fighters \n Just gettin' warmed up"));
return;
};
sFig(5);
break;
case 2:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Introducing Boarders"));
return;
};
sFig(8);
sBoa(1);
break;
case 3:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Introducing Kamikazes \n Their touch is deadly..."));
return;
};
sFig(8);
sBoa(4);
sKam(1);
break;
case 4:
if (Hud.messer == 0){
Hud.setMes(("Wave: " + _local2));
return;
};
sFig(6);
sBoa(5);
sKam(5);
break;
case 5:
if (Hud.messer == 0){
Hud.setMes(((("Wave: " + _local2) + "\n Challenge no. ") + _local3));
chl++;
return;
};
sFig(15);
Galaga.diffAtk = (Galaga.diffAtk + 1);
break;
case 6:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n Introducing Cannons \n\n -- EXTRA LIFE ACQUIRED -- ") + _local4));
Hud.lives++;
Hud.updLives();
return;
};
Galaga.diffAtk = (Galaga.diffAtk - 1);
sCan(1);
sFig(4);
sBoa(2);
sKam(5);
break;
case 7:
if (Hud.messer == 0){
Hud.setMes(("Wave: " + _local2));
return;
};
sCan(4);
sKam(8);
break;
case 8:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Introducing Mines \n Their touch is deadly..."));
return;
};
sCan(1);
sMin(4);
sKam(2);
sFig(5);
sBoa(3);
break;
case 9:
if (Hud.messer == 0){
Hud.setMes(((("Wave: " + _local2) + "\n Challenge no. ") + _local3));
chl++;
return;
};
Galaga.diffAtk = (Galaga.diffAtk + 19);
sKam(30);
break;
case 10:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n") + _local4));
return;
};
Galaga.diffAtk = (Galaga.diffAtk - 19);
sCan(5);
sMin(5);
sKam(5);
sFig(8);
sBoa(8);
break;
case 11:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Introducing Cruisers \n\n -- EXTRA LIFE ACQUIRED -- "));
Hud.lives++;
Hud.updLives();
return;
};
sFig(5);
sCru(4);
sCan(2);
sBoa(10);
sKam(2);
break;
case 12:
if (Hud.messer == 0){
Hud.setMes(("Wave: " + _local2));
return;
};
sCru(10);
sKam(10);
sCan(4);
break;
case 13:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Introducing Parafighters"));
return;
};
sCru(2);
sPar(4);
sCan(3);
sMin(2);
sKam(4);
break;
case 14:
if (Hud.messer == 0){
Hud.setMes(((("Wave: " + _local2) + "\n Challenge no. ") + _local3));
chl++;
return;
};
Galaga.diffHp = (Galaga.diffHp + 1);
sCru(4);
sPar(4);
break;
case 15:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n") + _local4));
return;
};
Galaga.diffHp = (Galaga.diffHp - 1);
sMin(20);
sPar(4);
sCan(10);
break;
case 16:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Introducing Flamers \n They will burn you up to the pieces \n\n -- EXTRA LIFE ACQUIRED -- "));
Hud.lives++;
Hud.updLives();
return;
};
sFla(1);
sCan(10);
break;
case 17:
if (Hud.messer == 0){
Hud.setMes(("Wave: " + _local2));
return;
};
sFla(2);
sCan(4);
sMin(5);
sBoa(20);
break;
case 18:
if (Hud.messer == 0){
Hud.setMes(("Wave: " + _local2));
return;
};
sFla(3);
sFig(15);
sCru(4);
break;
case 19:
if (Hud.messer == 0){
Hud.setMes(((("Wave: " + _local2) + " Challenge no. ") + _local3));
chl++;
return;
};
Galaga.diffHp = (Galaga.diffHp + 2);
sFla(10);
sCan(1);
break;
case 20:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n Deja vu... ? \n") + _local4));
return;
};
Galaga.diffHp = (Galaga.diffHp - 2);
sFla(4);
sKam(40);
break;
case 21:
if (Hud.messer == 0){
Hud.setMes((((("Wave: " + _local2) + "\n Challenge no. ") + _local3) + " \n\n Introducing Barriers \n Their touch is deadly... \n\n -- EXTRA LIFE ACQUIRED -- "));
Hud.lives++;
chl++;
Hud.updLives();
return;
};
Galaga.diffHp = (Galaga.diffHp + 1);
sBar(4);
break;
case 22:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n") + _local4));
return;
};
Galaga.diffHp = (Galaga.diffHp - 1);
sBar(2);
sFla(4);
sCan(2);
break;
case 23:
if (Hud.messer == 0){
Hud.setMes(("Wave: " + _local2));
return;
};
sBar(2);
sFla(2);
sCan(6);
sCru(4);
sPar(2);
sKam(8);
break;
case 24:
if (Hud.messer == 0){
Hud.setMes((((("Wave: " + _local2) + "\n Challenge no, ") + _local3) + "\n\n Introducing Shield Ships \n Their touch is deadly..."));
chl++;
return;
};
Galaga.diffSpd = (Galaga.diffSpd + 1);
sFla(6);
sShi(5);
break;
case 25:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n") + _local4));
return;
};
Galaga.diffSpd = (Galaga.diffSpd - 1);
List.EnemyAdd(new TShieldShip(0, -50));
List.EnemyAdd(new TShieldShip(80, -50));
List.EnemyAdd(new TShieldShip(160, -50));
List.EnemyAdd(new TShieldShip(240, -50));
List.EnemyAdd(new TShieldShip(320, -50));
List.EnemyAdd(new TShieldShip(400, -50));
sKam(30);
sBar(1);
sFig(30);
break;
case 26:
if (Hud.messer == 0){
Hud.setMes((((("Wave: " + _local2) + "\n Challenge no. ") + _local3) + " \n\n -- EXTRA LIFE ACQUIRED -- "));
Hud.lives++;
Hud.updLives();
return;
};
Galaga.diffSpd = (Galaga.diffSpd + 1);
List.EnemyAdd(new TShieldShip(0, -50));
List.EnemyAdd(new TShieldShip(80, -50));
List.EnemyAdd(new TShieldShip(160, -50));
List.EnemyAdd(new TShieldShip(240, -50));
List.EnemyAdd(new TShieldShip(320, -50));
List.EnemyAdd(new TShieldShip(400, -50));
sBar(5);
sCru(5);
sKam(8);
sFla(1);
break;
case 27:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n Introducing Rocketers \n") + _local4));
return;
};
Galaga.diffSpd = (Galaga.diffSpd - 1);
sRoc(2);
sShi(2);
sFla(4);
sPar(5);
break;
case 28:
if (Hud.messer == 0){
Hud.setMes(("Wave: " + _local2));
return;
};
sRoc(4);
List.EnemyAdd(new TShieldShip(0, -50));
List.EnemyAdd(new TShieldShip(80, -50));
List.EnemyAdd(new TShieldShip(160, -50));
List.EnemyAdd(new TShieldShip(240, -50));
List.EnemyAdd(new TShieldShip(320, -50));
List.EnemyAdd(new TShieldShip(400, -50));
sBar(3);
break;
case 29:
if (Hud.messer == 0){
Hud.setMes(((("Wave: " + _local2) + "\n Challenge no. ") + _local3));
chl++;
return;
};
Galaga.diffSpd = (Galaga.diffSpd + 1);
Galaga.diffHp = (Galaga.diffHp + 2);
sRoc(3);
sKam(40);
break;
case 30:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n") + _local4));
return;
};
Galaga.diffSpd = (Galaga.diffSpd - 1);
Galaga.diffHp = (Galaga.diffHp - 2);
sRoc(2);
sMin(20);
sCru(6);
sPar(8);
sBar(1);
break;
case 31:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Introducing Mowers \n Their touch is deadly... \n\n -- EXTRA LIFE ACQUIRED -- "));
Hud.lives++;
Hud.updLives();
return;
};
sFla(4);
sMow(5);
sFig(20);
sCan(10);
break;
case 32:
if (Hud.messer == 0){
Hud.setMes(((("Wave: " + _local2) + "\n Challenge no. ") + _local3));
chl++;
return;
};
Galaga.diffHp = (Galaga.diffHp + 2);
sMow(15);
break;
case 33:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n") + _local4));
return;
};
Galaga.diffHp = (Galaga.diffHp - 2);
sMow(5);
sFig(10);
List.EnemyAdd(new TShieldShip(0, -50));
List.EnemyAdd(new TShieldShip(80, -50));
List.EnemyAdd(new TShieldShip(160, -50));
List.EnemyAdd(new TShieldShip(240, -50));
List.EnemyAdd(new TShieldShip(320, -50));
List.EnemyAdd(new TShieldShip(400, -50));
sFla(4);
sRoc(1);
break;
case 34:
if (Hud.messer == 0){
Hud.setMes((("Wave: " + _local2) + "\n Challenge no. 10"));
return;
};
Galaga.diffHp = (Galaga.diffHp + 3);
Galaga.diffSpd = (Galaga.diffSpd + 1);
sMow(1);
sFla(4);
sRoc(2);
break;
case 35:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((("Wave: " + _local2) + "\n") + _local4));
return;
};
Galaga.diffHp = (Galaga.diffHp - 3);
Galaga.diffSpd = (Galaga.diffSpd - 1);
sPar(20);
sKam(30);
sRoc(2);
break;
case 36:
if (Hud.messer == 0){
Hud.setMes((((("Wave: " + _local2) + " \n Challenge no. ") + _local3) + "\n \n Introducing Core \n He is your utter demise \n\n -- EXTRA LIFE ACQUIRED -- "));
chl++;
Hud.lives++;
Hud.updLives();
return;
};
Galaga.diffHp = (Galaga.diffHp + 4);
Galaga.diffAtk = (Galaga.diffAtk + 1);
sCor(1);
break;
case 37:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((((("Wave: " + _local2) + " \n Challenge no. ") + _local3) + " \n") + _local4));
chl++;
return;
};
sCor(1);
sMow(10);
sCan(10);
sPar(8);
break;
case 38:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((((("Wave: " + _local2) + "\n Challenge no. ") + _local3) + " \n") + _local4));
chl++;
return;
};
Galaga.diffHp = (Galaga.diffHp - 1);
Galaga.diffAtk = (Galaga.diffAtk + 0.5);
List.EnemyAdd(new TCore(100, -100));
List.EnemyAdd(new TCore(150, -100));
List.EnemyAdd(new TCore(200, -100));
List.EnemyAdd(new TCore(250, -100));
List.EnemyAdd(new TCore(300, -100));
List.EnemyAdd(new TCore(350, -100));
break;
case 39:
if (Hud.messer == 0){
Weapon.weaplev++;
_local4 = ((Weapon.weaplev < 14)) ? "\n -- WEAPON LEVEL UPGRADED --" : "";
Hud.setMes(((((("Wave: " + _local2) + " \n Challenge no. ") + _local3) + " \n") + _local4));
chl++;
return;
};
Galaga.diffAtk = (Galaga.diffAtk - 0.5);
Galaga.diffHp = (Galaga.diffHp + 3);
sFig(20);
sCru(5);
sPar(5);
sRoc(2);
sMow(5);
sCan(10);
sFla(1);
break;
case 40:
if (Hud.messer == 0){
Hud.setMes((((("Wave: " + _local2) + " \n Challenge no. ") + _local3) + " "));
chl++;
return;
};
Galaga.diffHp = (Galaga.diffHp - 2);
sPar(40);
sRoc(10);
sCru(20);
break;
case 41:
if (Hud.messer == 0){
Hud.setMes((((("Wave: " + _local2) + "\n Challenge no. ") + _local3) + " \n\n -- EXTRA LIFE ACQUIRED -- "));
chl++;
Hud.lives++;
Hud.updLives();
return;
};
Galaga.diffHp = (Galaga.diffHp + 3);
Galaga.diffAtk = (Galaga.diffAtk + 3);
sCor(1);
sShi(2);
break;
case 42:
if (Hud.messer == 0){
Hud.setMes(((("Wave: " + _local2) + " \n Challenge no. ") + _local3));
chl++;
return;
};
Galaga.diffHp = (Galaga.diffHp + 10);
Galaga.diffAtk = (Galaga.diffAtk - 1);
sFig(20);
sKam(20);
sBoa(10);
break;
case 43:
if (Hud.messer == 0){
Hud.setMes("Congratulations! You have completed all the waves! \n Now proceed to conquer your enemies which are \n Twice as fast \n Twice as strong \n Twice as angry \n\n Good Luck!");
return;
};
Galaga.diffHp = (Galaga.diffHp - 14);
Galaga.diffAtk = (Galaga.diffAtk - 2);
Galaga.diffAtk = (Galaga.diffAtk * 2);
Galaga.diffHp = (Galaga.diffHp * 2);
Galaga.diffSpd = (Galaga.diffSpd * 2);
break;
};
}
public static function sCru(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TCruiser((25 + (Math.random() * 450)), -40));
_local2++;
};
}
public static function sCan(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TCannon((25 + (Math.random() * 450)), -30));
_local2++;
};
}
public static function sMin(_arg1:uint):void{
var _local2:uint;
while (_local2 < _arg1) {
List.EnemyAdd(new TMine((25 + (Math.random() * 450)), -30));
_local2++;
};
}
}
}//package obs
Section 136
//Weapon (obs.Weapon)
package obs {
import flash.events.*;
public class Weapon {
public static var weaplev:uint;
public static var autofire:uint = 0;
public static var isDown:Boolean = false;
public static var autofire2:uint = 0;
public static var p:TPlayer;
public function Weapon(){
weaplev = 0;
}
public static function Press(_arg1:MouseEvent):void{
isDown = true;
}
public static function update():void{
if (weaplev > 13){
weaplev = 13;
};
p = Galaga.Player;
autofire = (autofire - ((autofire == 0)) ? 0 : 1);
autofire2 = (autofire2 - ((autofire2 == 0)) ? 0 : 1);
if ((((p == null)) || (!(isDown)))){
return;
};
Fire();
}
public static function Release(_arg1:MouseEvent):void{
autofire = 0;
isDown = false;
}
public static function Fire():void{
switch (weaplev){
case 0:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet1((p.x + 9), p.y, 10));
autofire = 12;
};
break;
case 1:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet1((p.x + 6), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 14), p.y, 10));
autofire = 12;
};
break;
case 2:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -100));
List.BulletAdd(new TPBullet1((p.x + 9), p.y, 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -80));
autofire = 12;
};
break;
case 3:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet1((p.x - 8), (p.y + 2), 10));
List.BulletAdd(new TPBullet1((p.x + 2), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 12), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 22), (p.y + 2), 10));
autofire = 12;
};
break;
case 4:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet1((p.x - 8), (p.y + 2), 10));
List.BulletAdd(new TPBullet1((p.x + 2), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 12), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 22), (p.y + 2), 10));
autofire = 12;
};
if (autofire2 == 0){
sfxer.sound("sh2");
List.BulletAdd(new TPBullet3((p.x + 9), p.y));
autofire2 = 25;
};
break;
case 5:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet1((p.x - 8), (p.y + 2), 10));
List.BulletAdd(new TPBullet1((p.x + 2), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 12), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 22), (p.y + 2), 10));
autofire = 12;
};
if (autofire2 == 0){
sfxer.sound("sh2");
List.BulletAdd(new TPBullet3((p.x + 2), (p.y + 8)));
List.BulletAdd(new TPBullet3((p.x + 16), (p.y + 8)));
autofire2 = 25;
};
break;
case 6:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -110));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -100));
List.BulletAdd(new TPBullet1((p.x + 9), p.y, 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -80));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -70));
autofire = 12;
};
if (autofire2 == 0){
sfxer.sound("sh2");
List.BulletAdd(new TPBullet3((p.x + 2), (p.y + 8)));
List.BulletAdd(new TPBullet3((p.x + 16), (p.y + 8)));
autofire2 = 25;
};
break;
case 7:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -110));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -100));
List.BulletAdd(new TPBullet1((p.x + 5), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 13), p.y, 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -80));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -70));
autofire = 12;
};
if (autofire2 == 0){
sfxer.sound("sh2");
List.BulletAdd(new TPBullet3((p.x + 2), (p.y + 8)));
List.BulletAdd(new TPBullet3((p.x + 16), (p.y + 8)));
autofire2 = 25;
};
break;
case 8:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -110));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -100));
List.BulletAdd(new TPBullet1((p.x + 5), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 13), p.y, 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -80));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -70));
autofire = 12;
};
if (autofire2 == 0){
sfxer.sound("sh2");
List.BulletAdd(new TPBullet3((p.x + 7), p.y, 3));
autofire2 = 25;
};
break;
case 9:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -110));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -100));
List.BulletAdd(new TPBullet1((p.x + 5), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 13), p.y, 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -80));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -70));
autofire = 12;
};
if (autofire2 == 0){
sfxer.sound("sh2");
List.BulletAdd(new TPBullet3(p.x, (p.y + 8), 3));
List.BulletAdd(new TPBullet3((p.x + 14), (p.y + 8), 3));
autofire2 = 25;
};
break;
case 10:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -110));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -100));
List.BulletAdd(new TPBullet1((p.x + 2), (p.y + 2), 10));
List.BulletAdd(new TPBullet1((p.x + 9), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 16), (p.y + 2), 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -80));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -70));
autofire = 12;
};
List.BulletAdd(new TPBullet4((p.x + 9), p.y));
break;
case 11:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -110));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -100));
List.BulletAdd(new TPBullet1((p.x - 8), (p.y + 2), 10));
List.BulletAdd(new TPBullet1((p.x + 2), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 12), p.y, 10));
List.BulletAdd(new TPBullet1((p.x + 22), (p.y + 2), 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -80));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -70));
autofire = 12;
};
List.BulletAdd(new TPBullet4((p.x + 9), p.y));
break;
case 12:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -110));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -105));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -100));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -95));
List.BulletAdd(new TPBullet1((p.x + 9), p.y, 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -85));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -80));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -75));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -70));
autofire = 12;
};
List.BulletAdd(new TPBullet4((p.x + 9), p.y));
break;
case 13:
if (autofire == 0){
sfxer.sound("sh1");
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 8), 10, -110));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -105));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -100));
List.BulletAdd(new TPBullet2((p.x + 6), (p.y + 6), 10, -95));
List.BulletAdd(new TPBullet1((p.x + 9), p.y, 10));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -85));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -80));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 6), 10, -75));
List.BulletAdd(new TPBullet2((p.x + 14), (p.y + 8), 10, -70));
autofire = 12;
};
if (autofire2 == 0){
sfxer.sound("sh2");
List.BulletAdd(new TPBullet3((p.x + 1), (p.y + 8)));
List.BulletAdd(new TPBullet3((p.x + 15), (p.y + 8)));
autofire2 = 25;
};
List.BulletAdd(new TPBullet4((p.x + 7), (p.y + 8)));
List.BulletAdd(new TPBullet4((p.x + 11), (p.y + 8)));
break;
};
}
}
}//package obs
Section 137
//Galaga (Galaga)
package {
import flash.events.*;
import obs.*;
import mx.core.*;
import flash.display.*;
import flash.text.*;
import Functions.*;
import flash.ui.*;
import flash.net.*;
public class Galaga extends Sprite {
private var gove:Class;
private var gtit:Class;
public static var Player:TPlayer;
public static var txt3:TextField = new TextField();
public static var bg:Sprite = new Sprite();
public static var titler:BitmapAsset;
public static var txt2:TextField = new TextField();
public static var self:Galaga;
public static var bgw:uint = 1;
public static var broken:Boolean = false;
public static var modex:Array = new Array(3);
public static var tim:int;
public static var diffAtk:Number = 1;
public static var txtix:TextField = new TextField();
public static var layerHud:Sprite = new Sprite();
public static var layerBack:Sprite = new Sprite();
public static var goverer:Sprite = new Sprite();
public static var diffSpd:Number = 1;
public static var layerFore:Sprite = new Sprite();
public static var mousix:Boolean = true;
public static var govtxt:TextField = new TextField();
public static var diffHp:Number = 1;
public static var easyx:Boolean = false;
public static var shield:Boolean = false;
public static var pauser:Sprite = new Sprite();
public static var layerMid:Sprite = new Sprite();
public function Galaga(){
gtit = Galaga_gtit;
gove = Galaga_gove;
super();
var _local1:Shape = new Shape();
_local1.graphics.beginFill(0);
_local1.graphics.drawRect(0, 0, 500, 550);
_local1.graphics.endFill();
this.mask = _local1;
modex[0] = new Sprite();
modex[1] = new Sprite();
modex[2] = new Sprite();
modex[0].graphics.beginFill(0xFFFFFF, 0.4);
modex[0].graphics.drawRect(224, 92, 112, 35);
modex[0].graphics.endFill();
modex[0].buttonMode = true;
modex[1].graphics.beginFill(0xFFFFFF, 0.4);
modex[1].graphics.drawRect(380, 92, 112, 35);
modex[1].graphics.endFill();
modex[1].buttonMode = true;
modex[2].graphics.beginFill(0xFFFFFF, 0.4);
modex[2].graphics.drawRect(66, 135, 366, 35);
modex[2].graphics.endFill();
modex[2].buttonMode = true;
layerHud.addChild(modex[0]);
layerHud.addChild(modex[1]);
layerHud.addChild(modex[2]);
titler = new gtit();
txtix.embedFonts = true;
txtix.htmlText = "<p align='center'><font face='Fonter' size='16'>Type your nick to send score to online hiscore:</font></p>";
txtix.width = 500;
txtix.height = 35;
txtix.y = 250;
txtix.textColor = 0xFFFFFF;
txtix.visible = false;
govtxt.background = true;
govtxt.backgroundColor = 0x111111;
govtxt.textColor = 0xFFFFFF;
govtxt.type = TextFieldType.INPUT;
govtxt.selectable = true;
govtxt.width = 330;
govtxt.height = 25;
govtxt.x = 85;
govtxt.y = 290;
govtxt.visible = false;
govtxt.border = true;
govtxt.borderColor = 0xFFFFFF;
govtxt.maxChars = 32;
txt2.background = true;
txt2.backgroundColor = 0x111111;
txt2.textColor = 0xFFFFFF;
txt2.embedFonts = true;
txt2.htmlText = "<font face='Fonter' size='20'>Submit</font>";
txt2.width = 83;
txt2.height = 28;
txt2.selectable = false;
txt2.borderColor = 0xFFFFFF;
txt2.border = true;
txt2.x = 120;
txt2.y = 330;
txt3.background = true;
txt3.backgroundColor = 0x111111;
txt3.textColor = 0xFFFFFF;
txt3.embedFonts = true;
txt3.htmlText = "<font face='Fonter' size='20'>Cancel</font>";
txt3.width = 85;
txt3.height = 28;
txt3.selectable = false;
txt3.borderColor = 0xFFFFFF;
txt3.border = true;
txt3.x = 300;
txt3.y = 330;
goverer.addChild(new gove());
goverer.addChild(govtxt);
goverer.addChild(txtix);
goverer.addChild(txt2);
goverer.addChild(txt3);
goverer.alpha = 0;
blendMode = "layer";
var _local2:BitmapAsset = new (sfxer.g_bg);
_local2.y = -1500;
bg.addChild(_local2);
_local2 = new (sfxer.g_bg);
bg.addChild(_local2);
new Weapon();
new Hud();
new sfxer();
pauser.graphics.beginFill(0, 0.6);
pauser.graphics.drawRect(0, 0, 500, 550);
pauser.graphics.endFill();
layerHud.addChild(pauser);
pauser.alpha = 0;
addChild(layerBack);
addChild(layerMid);
addChild(layerFore);
addChild(layerHud);
layerHud.addChild(goverer);
layerHud.addChild(titler);
layerBack.addChild(bg);
bg.alpha = 1;
self = this;
Player = new TPlayer(300, 400);
addEventListener(Event.ENTER_FRAME, Step);
}
public function keyDown(_arg1:KeyboardEvent):void{
if (broken){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
shield = true;
} else {
if (_arg1.keyCode == Keyboard.ESCAPE){
if ((((titler.alpha == 0)) && ((goverer.alpha == 0)))){
pauser.alpha = (1 - pauser.alpha);
};
} else {
if (_arg1.keyCode == 77){
if (goverer.alpha == 0){
sfxer.musique();
};
} else {
if (_arg1.keyCode == 83){
if (goverer.alpha == 0){
sfxer.snd = (1 - sfxer.snd);
};
} else {
if (_arg1.keyCode == 84){
if (mousix == false){
mousix = true;
Mouse.show();
} else {
mousix = false;
Mouse.hide();
};
};
};
};
};
};
}
public function clicker(_arg1:MouseEvent):void{
var _local2:SharedObject;
if (broken){
return;
};
if ((((goverer.alpha > 0)) && ((List.Effects.length == 0)))){
if ((((((((mouseX > 120)) && ((mouseX < 203)))) && ((mouseY > 330)))) && ((mouseY < 358)))){
sentet();
};
if ((((((((mouseX > 300)) && ((mouseX < 385)))) && ((mouseY > 330)))) && ((mouseY < 358)))){
govtxt.visible = false;
txtix.visible = false;
govtxt.text = "";
goverer.alpha = 0;
titler.alpha = 1;
Hud.lives = 3;
Hud.updLives();
Player = new TPlayer(1000, 1000);
Hud.wavs = 1;
Weapon.weaplev = 0;
diffHp = 1;
diffAtk = 1;
diffSpd = 1;
};
};
if (titler.alpha == 0){
return;
};
if ((((((((_arg1.stageX > 224)) && ((_arg1.stageX < 336)))) && ((_arg1.stageY > 92)))) && ((_arg1.stageY < 127)))){
titler.alpha = 0;
Galaga.diffHp = 0.4;
Galaga.diffAtk = 0.6;
Weapon.weaplev = 1;
Waves.chl = 1;
Hud.points = 0;
Hud.updPnt();
easyx = true;
};
if ((((((((_arg1.stageX > 380)) && ((_arg1.stageX < 492)))) && ((_arg1.stageY > 92)))) && ((_arg1.stageY < 127)))){
titler.alpha = 0;
Galaga.diffHp = 1;
Galaga.diffAtk = 1;
Weapon.weaplev = 0;
Waves.chl = 1;
Hud.points = 0;
Hud.updPnt();
easyx = false;
};
if ((((((((_arg1.stageX > 66)) && ((_arg1.stageX < 432)))) && ((_arg1.stageY > 135)))) && ((_arg1.stageY < 170)))){
_local2 = SharedObject.getLocal("Galagian_Data");
if (_local2.data.wav > 0){
titler.alpha = 0;
Galaga.diffHp = _local2.data.dH;
Galaga.diffAtk = _local2.data.dA;
Galaga.diffSpd = _local2.data.dS;
Hud.wavs = _local2.data.wav;
Weapon.weaplev = _local2.data.wea;
Waves.chl = _local2.data.chl;
Galaga.easyx = _local2.data.e;
Waves.chl = 1;
Hud.points = 0;
Hud.messer = 0;
Hud.updPnt();
} else {
titler.alpha = 0;
Galaga.diffHp = 1;
Galaga.diffAtk = 1;
Weapon.weaplev = 0;
Waves.chl = 1;
Hud.points = 0;
Hud.updPnt();
};
};
modex[0].visible = false;
modex[1].visible = false;
modex[2].visible = false;
}
public function sentet():void{
var _local1:uint;
var _local2:uint;
var _local3:uint;
if (broken){
return;
};
if (((!((govtxt.text == ""))) && ((List.Effects.length == 0)))){
if (govtxt.text.length > 32){
govtxt.text = govtxt.text.slice(0, 32);
};
govtxt.text = govtxt.text.replace("&", "");
govtxt.text = govtxt.text.replace("?", "");
govtxt.visible = false;
txtix.visible = false;
goverer.alpha = 0;
titler.alpha = 1;
Hud.lives = 3;
Hud.updLives();
Player = new TPlayer(1000, 1000);
Hud.wavs = 1;
Weapon.weaplev = 0;
diffHp = 1;
diffAtk = 1;
diffSpd = 1;
_local1 = Math.floor(((Math.floor((Hud.points / 2)) + 69) / 13));
_local2 = Math.abs(Math.floor(((Math.floor((Hud.points / 6)) - 7287) / 39)));
_local3 = Math.floor((((Hud.points % 7686) + 645) / 321));
Loading.openWindow(((((((((("http://www.mauft.com/gamedata/galagian.php?a=add&name=" + govtxt.text) + "&score=") + Hud.points) + "&d1=") + _local1) + "&d2=") + _local2) + "&d3=") + _local3), "_blank");
govtxt.text = "";
};
}
public function keyUp(_arg1:KeyboardEvent):void{
if (broken){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
shield = false;
};
}
public function Step(_arg1:Event):void{
var _local2:int;
if (broken){
return;
};
modex[2].graphics.drawRect(66, 135, 366, 35);
if (titler.alpha > 0){
if ((((((((mouseX > 224)) && ((mouseX < 336)))) && ((mouseY > 92)))) && ((mouseY < 127)))){
modex[0].visible = true;
} else {
modex[0].visible = false;
};
if ((((((((mouseX > 380)) && ((mouseX < 492)))) && ((mouseY > 92)))) && ((mouseY < 127)))){
modex[1].visible = true;
} else {
modex[1].visible = false;
};
if ((((((((mouseX > 66)) && ((mouseX < 432)))) && ((mouseY > 135)))) && ((mouseY < 170)))){
modex[2].visible = true;
} else {
modex[2].visible = false;
};
};
stage.scaleMode = StageScaleMode.NO_SCALE;
sfxer.reset();
bgw--;
if (bgw == 0){
bg.y = (bg.y + 1);
if (bg.y > 900){
bg.y = (bg.y - 1500);
};
bgw = 5;
};
if (goverer.alpha > 1){
govtxt.visible = true;
txtix.visible = true;
_local2 = (List.Effects.length - 1);
while (_local2 >= 0) {
List.Effects[_local2].U(_local2);
_local2--;
};
if ((((((((mouseX > 120)) && ((mouseX < 203)))) && ((mouseY > 330)))) && ((mouseY < 358)))){
txt2.backgroundColor = 0x777777;
} else {
txt2.backgroundColor = 0x111111;
};
if ((((((((mouseX > 300)) && ((mouseX < 385)))) && ((mouseY > 330)))) && ((mouseY < 358)))){
txt3.backgroundColor = 0x777777;
} else {
txt3.backgroundColor = 0x111111;
};
};
if ((((((pauser.alpha == 0)) && ((titler.alpha == 0)))) && ((goverer.alpha == 0)))){
if ((((((Math.random() < 0.005)) && ((List.Enemies.length > TAsteroid.howMany)))) && ((Hud.messer == 0)))){
List.EnemyAdd(new TAsteroid());
};
_local2 = (List.Enemies.length - 1);
while (_local2 >= 0) {
List.Enemies[_local2].Update(_local2);
_local2--;
};
if (Player != null){
Player.Update(mouseX, mouseY);
};
Weapon.update();
Hud.Update();
_local2 = (List.Bullets.length - 1);
while (_local2 >= 0) {
List.Bullets[_local2].Update(_local2);
_local2--;
};
_local2 = (List.Effects.length - 1);
while (_local2 >= 0) {
List.Effects[_local2].U(_local2);
_local2--;
};
};
}
}
}//package
Section 138
//Galaga_gove (Galaga_gove)
package {
import mx.core.*;
public class Galaga_gove extends BitmapAsset {
}
}//package
Section 139
//Galaga_gtit (Galaga_gtit)
package {
import mx.core.*;
public class Galaga_gtit extends BitmapAsset {
}
}//package