Frame 1
stop();
Stage.showMenu = false;
this.onEnterFrame = function () {
sofar = this.getBytesLoaded();
total = this.getBytesTotal();
Bar._width = int((sofar / total) * 100);
if (sofar == total) {
delete this.onEnterFrame;
play();
}
};
Instance of Symbol 14 MovieClip in Frame 1
on (release) {
getURL ("http://www.funfastgame.com/");
}
Frame 9
gotoAndPlay (10);
Frame 10
function getNetDebugVersion() {
return(1);
}
function NetDebugConfig() {
}
function attachNetDebugConfigFunctions(ndc) {
ndc.setDebug = function (setval) {
this.m_debug = setval;
};
ndc.getDebug = function () {
return(this.m_debug);
};
for (var _local3 in ndc) {
if (typeof(ndc[_local3]) == "object") {
attachNetDebugConfigFunctions(ndc[_local3]);
}
}
}
function getDefaultNetDebugConfig(iscontroller) {
if (_global.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (iscontroller) {
_local2 = "Controller_Config_Info";
}
_global.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_global.netDebugConfigSO.data.config == undefined) {
_global.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_global.netDebugConfigSO.flush();
return(_global.netDebugConfigSO.data.config);
}
function getRealDefaultNetDebugConfig() {
var _local1 = new NetDebugConfig();
_local1.m_debug = true;
_local1.client = new NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
function NetDebugEvent() {
}
function NetDebugErrorEvent(dataobj) {
this.init();
this.EventType = "NetDebugError";
this.Error = dataobj;
}
function NetDebugTraceEvent(traceobj) {
this.init();
this.EventType = "Trace";
this.Trace = traceobj;
}
function NetDebugTraceNetServicesEvent(w, s, n, m) {
this.init();
this.EventType = "NetServicesTrace";
this.Trace = m;
this.Who = w;
this.Severity = s;
this.Number = n;
}
function NetDebugNCEvent() {
}
function NetDebugResultEvent(resultobj) {
this.init();
this.EventType = "Result";
this.Result = resultobj;
}
function NetDebugStatusEvent(statusobj) {
this.init();
this.EventType = "Status";
this.Status = statusobj;
}
function NetDebugConnectEvent(args) {
this.init();
this.EventType = "Connect";
this.ConnectString = args[0];
if (args[1] != null) {
this.UserName = args[1];
}
if (args[2] != null) {
this.Password = args[2];
}
}
function NetDebugCallEvent(args) {
this.init();
this.EventType = "Call";
this.MethodName = args[0];
this.Parameters = new Array();
var _local4 = args.length;
var _local2 = 2;
for(;;){
if (_local2 >= _local4) {
return(undefined);
}
this.Parameters[_local2 - 2] = args[_local2];
_local2++;
};
}
function NetDebugCloseEvent() {
this.init();
this.EventType = "Close";
}
function NetDebugAddHeaderEvent(args) {
this.init();
this.EventType = "AddHeader";
this.HeaderName = args[0];
this.MustUnderstand = args[1];
if (args[2] != null) {
this.HeaderObject = args[2];
}
}
function NetDebugRtmpLogEvent(infoobj) {
this.initDate();
this.EventType = "Trace";
this.Source = "Flash Communication Server";
this.Info = infoobj;
this.Trace = infoobj.description;
}
function NetDebugDuplicateNCDErrorEvent() {
this.initDate();
this.EventType = "Error";
this.Source = "NCD";
this.Message = "NCD_ALREADY_RUNNING";
}
function NetDebugFailedSendErrorEvent(ev) {
this.initDate();
this.EventType = "Error";
this.Source = "NCD";
this.OriginalEvent = ev;
this.Message = "NCD_FAILED_TO_SEND_EVENT";
}
function NetDebugInfoErrorEvent(infoobj, mes) {
this.initDate();
this.EventType = "Error";
this.Source = "NCD";
this.Info = infoobj;
if (mes != null) {
this.Message = mes;
}
}
function NetDebugReceiveCallEvent(mName, args) {
this.init();
this.EventType = "ReceivedCall";
this.MethodName = mName;
this.Parameters = args;
}
function netDebugProxyConnect() {
this.attachDebug();
var _local3 = arguments[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (arguments[0].charAt(4) == ":") {
this.m_Protocol = _local3;
} else {
this.m_Protocol = arguments[0].substr(0, 5);
}
} else {
this.m_Protocol = "http";
}
this.sendClientEvent(new NetDebugConnectEvent(arguments));
if (this.isRealTime()) {
this.m_ConnectString = arguments[0];
getNetDebug().sendCommand(new StartRTMPTraceCommand(arguments[0]));
var _local4 = this.realconnect.apply(this, arguments);
this.realcall("@getClientID", new RTMPClientIDResponse(arguments[0], this));
return(_local4);
}
return(this.realconnect.apply(this, arguments));
}
function netDebugProxyCall() {
this.attachDebug();
this.sendClientEvent(new NetDebugCallEvent(arguments));
this.addNetDebugHeader();
if (this.m_Config.app_server) {
arguments[1] = new NetDebugResponseProxy(this, arguments[1]);
return(this.realcall.apply(this, arguments));
}
return(this.realcall.apply(this, arguments));
}
function netDebugProxyClose() {
this.attachDebug();
this.sendClientEvent(new NetDebugCloseEvent());
if (this.isRealTime()) {
getNetDebug().sendCommand(new StopRTMPTraceCommand(this.m_ConnectString, this.m_ClientId));
}
var _local2 = this.realclose();
getNetDebug().removeNetConnection(this);
return(_local2);
}
function netDebugProxyAddHeader() {
this.attachDebug();
this.sendClientEvent(new NetDebugAddHeaderEvent(arguments));
return(this.realaddHeader.apply(this, arguments));
}
function RTMPClientIDResponse(cs, nc) {
this.m_ConnectString = cs;
this.m_NC = nc;
}
function NetDebugResponseProxy(source, original) {
this.m_SourceNC = source;
this.m_OriginalNR = original;
}
function GlobalLocalConnection(iscontroller, receiver, domainname) {
this.maxConnections = 10;
var _local5 = "_NetDebugLocalToDebugMovie";
var _local7 = "_NetDebugLocalToController";
var _local4 = null;
if (iscontroller) {
_local4 = _local7;
this.sendnames = new Array();
this.sendnames.push(_local5);
var _local3 = 0;
while (_local3 < this.maxConnections) {
this.sendnames.push(_local5 + _local3);
_local3++;
}
this.maxConnections = 0;
} else {
_local4 = _local5;
this.sendnames = new Array();
this.sendnames.push(_local7);
}
this.setDomainName(domainname);
if (_global.g_NetDebugLocalConnection == undefined) {
_global.g_NetDebugLocalConnection = new LocalConnection();
_global.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_global.g_NetDebugLocalConnection.m_Receiver = receiver;
_global.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_global.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (_global.g_NetDebugLocalConnection.connect(_local4)) {
return(undefined);
}
var _local6 = false;
var _local3 = 0;
while (_local3 < this.maxConnections) {
if (_global.g_NetDebugLocalConnection.connect(_local4 + _local3)) {
_local6 = true;
break;
}
_local3++;
}
if (_local6) {
return(undefined);
}
if (iscontroller) {
receiver.onReceiveError(new NetDebugDuplicateNCDErrorEvent());
return(undefined);
}
}
}
function LocalCommand() {
}
function UpdateNetDebugConfigCommand(dataobj) {
this.init("updateConfig", dataobj);
}
function GetConfigCommand() {
this.init("getConfig", null);
}
function StartRTMPTraceCommand(cs) {
var _local3 = new Object();
_local3.connectstring = cs;
_local3.url = _root._url;
this.init("startRealTimeTrace", _local3);
}
function AddRTMPClientCommand(cs, cid) {
var _local3 = new Object();
_local3.connectstring = cs;
_local3.url = _root._url;
_local3.clientid = cid;
this.init("addRealTimeClient", _local3);
}
function StopRTMPTraceCommand(cs, cid) {
var _local3 = new Object();
_local3.connectstring = cs;
_local3.url = _root._url;
_local3.clientid = cid;
this.init("stopRealTimeTrace", _local3);
}
function NetDebug() {
this.m_ncs = new Array();
this.m_Config = getDefaultNetDebugConfig();
this.m_glc = new GlobalLocalConnection(false, this);
this.m_glc.sendCommand(new GetConfigCommand());
this.m_NextNewId = 0;
}
function getNetDebug() {
return(_global.netDebugInstance);
}
function inserths_Result(result) {
_root.inserthsresult = result;
}
_global.RsDataProviderClass = function () {
this.init();
};
RsDataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
mx.events.EventDispatcher.initialize(this);
};
RsDataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local2 = {eventName:"updateAll"};
viewRef.modelChanged(_local2);
};
RsDataProviderClass.prototype.addItemAt = function (index, value) {
if (this.checkLocal()) {
if (index >= 0) {
if (index < this.length) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
}
this.items[index].__ID__ = this.uniqueID++;
var _local3 = {eventName:"addItems", firstItem:index, lastItem:index};
this.updateViews(_local3);
}
}
};
RsDataProviderClass.prototype.addItem = function (value) {
if (this.checkLocal()) {
this.addItemAt(this.length, value);
}
};
RsDataProviderClass.prototype.removeItemAt = function (index) {
if (this.checkLocal()) {
if (!((index < 0) || (index >= this.length))) {
var _local4 = this.items[index];
this.items.splice(index, 1);
var _local3 = {eventName:"deleteItems", firstItem:index, lastItem:index};
this.updateViews(_local3);
return(_local4);
}
}
};
RsDataProviderClass.prototype.removeAll = function () {
if (this.checkLocal()) {
this.items = new Array();
this.updateViews({eventName:"removeItems", firstItem:0, lastItem:this.length - 1});
}
};
RsDataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if (this.checkLocal()) {
if ((index < 0) || (index >= this.length)) {
return(undefined);
}
var _local3 = this.getItemID(index);
this.items[index] = itemObj;
this.items[index].__ID__ = _local3;
this.updateViews({eventName:"updateItems", firstItem:index, lastItem:index});
}
};
RsDataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
RsDataProviderClass.prototype.addProperty("length", RsDataProviderClass.prototype.getLength, null);
RsDataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
RsDataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
RsDataProviderClass.prototype.sortItems = function (compareFunc, order) {
if (this.checkLocal()) {
this.items.sort(compareFunc);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({eventName:"sort"});
}
};
RsDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
if (this.checkLocal()) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({eventName:"sort", fieldName:fieldName, order:order});
}
};
RsDataProviderClass.prototype.updateViews = function (eventObj) {
eventObj.type = "modelChanged";
this.dispatchEvent(eventObj);
var _local4 = this.views.length;
if (_local4 > 0) {
if (((__reg0 = eventObj.eventName)) === "addItems") {
eventObj.event = "addRows";
} else if (__reg0 === "updateItems") {
eventObj.event = "updateRows";
} else if (__reg0 === "removeItems") {
eventObj.event = "deleteRows";
}
eventObj.firstRow = eventObj.firstItem;
eventObj.lastRow = eventObj.lastItem;
var _local2 = 0;
for(;;){
if (_local2 >= _local4) {
return(undefined);
}
this.views[_local2].modelChanged(eventObj);
_local2++;
};
}
};
_global.RecordSet = function (columnNames) {
if (this.mTitles != null) {
this.views = new Array();
return(undefined);
}
this.init();
if (this.serverinfo == null) {
if (this.serverInfo != null) {
this.serverinfo = this.serverInfo;
}
}
if (this.serverinfo == null) {
this.mTitles = columnNames;
return(undefined);
}
if (this.serverinfo.version != 1) {
NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
return(undefined);
}
this.mTitles = this.serverinfo.columnNames;
this.mRecordsAvailable = 0;
this.setData(((this.serverinfo.cursor == null) ? 0 : (this.serverinfo.cursor - 1)), this.serverinfo.initialData);
if (this.serverinfo.initialData.length != this.serverinfo.totalCount) {
this.mRecordSetID = this.serverinfo.id;
if (this.mRecordSetID == null) {
NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
} else {
this.serviceName = ((this.serverinfo.serviceName == null) ? "RecordSet" : (this.serverinfo.serviceName));
this.mTotalCount = this.serverinfo.totalCount;
this.mDeliveryMode = "ondemand";
this.mAllNotified = false;
this.mOutstandingRecordCount = 0;
}
}
this.serverinfo = null;
};
RecordSet.prototype = new RsDataProviderClass();
Object.registerClass("RecordSet", RecordSet);
RecordSet.prototype._setParentService = function (service) {
this.gateway_conn = service.nc;
};
RecordSet.prototype.getRecordSetService = function () {
if (this.mRecordSetService == null) {
if (this.gateway_conn == null) {
this.gateway_conn = NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
this.gateway_conn = this.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
this.gateway_conn.setupRecordset();
this.gateway_conn.setDebugId("RecordSet " + this.mRecordSetID);
}
this.mRecordSetService = this.gateway_conn.getService(this.serviceName, this);
if (this.mRecordSetService == null) {
NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
this.mRecordSetService = 0;
}
}
return(this.mRecordSetService);
};
RecordSet.prototype.getColumnNames = function () {
return(this.mTitles);
};
RecordSet.prototype.getLength = function () {
if (this.mRecordSetID == null) {
return(this.items.length);
}
return(this.mTotalCount);
};
RecordSet.prototype.addProperty("length", RecordSet.prototype.getLength, null);
RecordSet.prototype.getItemAt = function (index) {
if ((index < 0) || (index >= this.length)) {
return(null);
}
if (this.mRecordSetID == null) {
return(this.items[index]);
}
this.requestRecord(index);
var _local3 = this.items[index];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
};
RecordSet.prototype.setField = function (index, fieldName, value) {
if (this.checkLocal()) {
if ((index < 0) || (index >= this.length)) {
return(undefined);
}
this.items[index][fieldName] = value;
this.updateViews({eventName:"updateItems", firstItem:index, lastItem:index});
}
};
RecordSet.prototype.filter = function (filterFunction, context) {
if (this.checkLocal()) {
var _local4 = new RecordSet(this.mTitles);
var _local5 = this.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = this.getItemAt(_local3);
if (((_local2 != null) && (_local2 != 1)) && (filterFunction(_local2, context))) {
_local4.addItem(_local2);
}
_local3++;
}
return(_local4);
}
};
RecordSet.prototype.sort = function (compareFunc) {
if (this.checkLocal()) {
this.items.sort(compareFunc);
this.updateViews({eventName:"sort"});
}
};
RecordSet.prototype.isLocal = function () {
return(this.mRecordSetID == null);
};
RecordSet.prototype.isFullyPopulated = function () {
return(this.isLocal());
};
RecordSet.prototype.getNumberAvailable = function () {
if (this.isLocal()) {
return(this.length);
}
return(this.mRecordsAvailable);
};
RecordSet.prototype.setDeliveryMode = function (mode, pagesize, numPrefetchPages) {
this.mDeliveryMode = mode;
this.stopFetchAll();
if (mode != "ondemand") {
if (pagesize == null) {
pagesize = this.views[0].getRowCount();
if (pagesize == null) {
pagesize = 25;
}
}
if (mode == "page") {
if (numPrefetchPages == null) {
numPrefetchPages = 0;
}
this.mPageSize = pagesize;
this.mNumPrefetchPages = numPrefetchPages;
return(undefined);
}
if (mode == "fetchall") {
this.stopFetchAll();
this.startFetchAll(pagesize);
return(undefined);
}
NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
};
RecordSet.prototype.getRecords_Result = function (info) {
this.setData(info.Cursor - 1, info.Page);
this.mOutstandingRecordCount = this.mOutstandingRecordCount - info.Page.length;
this.updateViews({eventName:"updateItems", firstItem:info.Cursor - 1, lastItem:((info.Cursor - 1) + info.Page.length) - 1});
if ((this.mRecordsAvailable == this.mTotalCount) && (!this.mAllNotified)) {
this.updateViews({eventName:"allRows"});
this.mRecordSetService.release();
this.mAllNotified = true;
this.mRecordSetID = null;
this.mRecordSetService = null;
}
};
RecordSet.prototype.release_Result = function () {
};
RecordSet.prototype.arrayToObject = function (anArray) {
if (this.mTitles == null) {
NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local4 = new Object();
var _local5 = anArray.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this.mTitles[_local2];
if (_local3 == null) {
_local3 = ("column" + _local2) + 1;
}
_local4[_local3] = anArray[_local2];
_local2++;
}
return(_local4);
};
RecordSet.prototype.setData = function (start, dataArray) {
var _local5 = dataArray.length;
var _local3 = 0;
for(;;){
if (_local3 >= _local5) {
return(undefined);
}
var _local2 = _local3 + start;
var _local4 = this.items[_local2];
if ((_local4 != null) && (_local4 != 1)) {
NetServices.trace("RecordSet", "warning", 106, "Already got record # " + recordIndex);
} else {
this.mRecordsAvailable = this.mRecordsAvailable + 1;
}
this.items[_local2] = this.arrayToObject(dataArray[_local3]);
this.items[_local2].__ID__ = this.uniqueID++;
_local3++;
};
};
RecordSet.prototype.requestOneRecord = function (index) {
if (this.items[index] == null) {
this.getRecordSetService().getRecords(this.mRecordSetID, index + 1, 1);
this.mOutstandingRecordCount++;
this.items[index] = 1;
this.updateViews({eventName:"fetchRows", firstItem:index, lastItem:index});
}
};
RecordSet.prototype.requestRecord = function (index) {
if (this.mDeliveryMode != "page") {
this.requestOneRecord(index);
return(undefined);
}
var _local2 = int(index / this.mPageSize) * this.mPageSize;
var _local3 = (_local2 + (this.mPageSize * (this.mNumPrefetchPages + 1))) - 1;
this.requestRecordRange(_local2, _local3);
};
RecordSet.prototype.requestRecordRange = function (index, lastIndex) {
var _local9 = -1;
if (index < 0) {
index = 0;
}
if (lastIndex >= this.length) {
lastIndex = this.length - 1;
}
while (index <= lastIndex) {
while ((index <= lastIndex) && (this.items[index] != null)) {
index++;
}
var _local4 = index;
while ((index <= lastIndex) && (this.items[index] == null)) {
this.mOutstandingRecordCount++;
this.items[index] = 1;
index++;
}
var _local3 = index - 1;
if (_local4 <= _local3) {
this.getRecordSetService().getRecords(this.mRecordSetID, _local4 + 1, (_local3 - _local4) + 1);
_local9 = _local3;
this.updateViews({eventName:"fetchRows", firstItem:_local4, lastItem:_local3});
}
}
return(_local9);
};
RecordSet.prototype.startFetchAll = function (pagesize) {
this.mDataFetcher.disable();
this.mDataFetcher = new RsDataFetcher(this, pagesize);
};
RecordSet.prototype.stopFetchAll = function () {
this.mDataFetcher.disable();
this.mDataFetcher = null;
};
RecordSet.prototype.checkLocal = function () {
if (this.isLocal()) {
return(true);
}
NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(false);
};
_global.RsDataFetcher = function (recordSet, increment) {
this.mRecordSet = recordSet;
this.mRecordSet.addView(this);
this.mIncrement = increment;
this.mNextRecord = 0;
this.mEnabled = true;
this.doNext();
};
RsDataFetcher.prototype.disable = function () {
this.mEnabled = false;
this.mRecordSet.removeView(this);
};
RsDataFetcher.prototype.doNext = function () {
if (this.mEnabled) {
for(;;){
if (this.mNextRecord >= this.mRecordSet.length) {
return(undefined);
}
this.mHighestRequested = this.mRecordSet.requestRecordRange(this.mNextRecord, (this.mNextRecord + this.mIncrement) - 1);
this.mNextRecord = this.mNextRecord + this.mIncrement;
if (this.mHighestRequested > 0) {
return(undefined);
}
};
}
};
RsDataFetcher.prototype.modelChanged = function (eventObj) {
if (((eventObj.eventName == "updateItems") && (eventObj.firstItem <= this.mHighestRequested)) && (eventObj.lastItem >= this.mHighestRequested)) {
this.doNext();
}
if (eventObj.eventName == "allRows") {
this.disable();
}
};
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local2 = this.service.client;
result._setParentService(this.service);
var _local3 = this.methodName + "_Result";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](result);
return(undefined);
}
if (typeof(_local2.onResult) == "function") {
_local2.onResult(result);
return(undefined);
}
NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + result);
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local5 = this.service.client;
var _local6 = this.methodName + "_Status";
if (typeof(_local5[_local6]) == "function") {
_local5[_local6](result);
return(undefined);
}
if (typeof(_local5.onStatus) == "function") {
_local5.onStatus(result);
return(undefined);
}
if (typeof(_root.onStatus) == "function") {
_root.onStatus(result);
return(undefined);
}
if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(result);
return(undefined);
}
NetServices.trace("NetServices", "info", 2, (((_local6 + " was received from server: <") + result.level) + "> ") + result.description);
};
_global.NetServiceProxy = function (nc, serviceName, client) {
if (nc != null) {
this.nc = nc;
this.serviceName = serviceName;
this.client = client;
}
};
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local3 = function () {
if (this.client == null) {
if (typeof(arguments[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
} else {
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
arguments.unshift((this.serviceName + ".") + methodName);
return(this.nc.call.apply(this.nc, arguments));
};
return(_local3);
};
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetConnection.prototype.getService = function (serviceName, client) {
var _local2 = new NetServiceProxy(this, serviceName, client);
return(_local2);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
this.addHeader(info.name, info.mustUnderstand, info.data);
};
NetConnection.prototype.AppendToGatewayUrl = function (urlSuffix) {
this.__urlSuffix = urlSuffix;
if (this.__originalUrl == null) {
this.__originalUrl = this.uri;
}
var _local2 = this.__originalUrl + urlSuffix;
this.connect(_local2);
};
NetConnection.prototype.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
NetConnection.prototype.clone = function () {
var _local2 = new NetConnection();
_local2.connect(this.uri);
return(_local2);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices.gatewayUrl = gatewayUrl;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
if (url == undefined) {
url = NetServices.gatewayUrl;
if (url == undefined) {
url = NetServices.defaultGatewayUrl;
}
}
if (url == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _local2 = new NetConnection();
_local2.connect(url);
return(_local2);
};
NetServices.getHostUrl = function () {
if (!NetServices.isHttpUrl(_root._url)) {
return(null);
}
var _local2 = _root._url.indexOf("/", 8);
if (_local2 < 0) {
return(null);
}
return(_root._url.substring(0, _local2));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _local1 = (((((who + " ") + severity) + " ") + number) + ": ") + message;
trace(_local1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
_global.copyProperties = function (to, from) {
for (var _local3 in from) {
if ((_local3 == "__proto__") || (_local3 == "function")) {
continue;
}
if (typeof(from[_local3]) == "object") {
if (to[_local3] == undefined) {
to[_local3] = new from[_local3].__proto__.constructor();
}
copyProperties(to[_local3], from[_local3]);
} else {
to[_local3] = from[_local3];
}
}
};
_global.copyObject = function (obj) {
if (typeof(obj) == "object") {
var _local1 = new obj.__proto__.constructor();
copyProperties(_local1, obj);
return(_local1);
}
return(obj);
};
_global.objectToStringTree = function (obj, openstr, typesepstr, valuesepstr, closestr) {
var _local1 = new StringLineAdder(obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
return(_local1.getString());
};
_global.objectToListboxTree = function (listbox, obj, openstr, typesepstr, valuesepstr, closestr) {
new ListLineAdder(listbox, obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
};
_global.StringLineAdder = function (obj, renderer) {
this.linerenderer = renderer;
this.output = "";
nestedObjectDump(0, null, obj, this);
};
StringLineAdder.prototype.getString = function () {
return(this.output);
};
StringLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local2 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local2 != null) {
this.output = this.output + (_local2 + newline);
}
return(true);
};
_global.ListLineAdder = function (listbox, obj, renderer) {
this.linerenderer = renderer;
this.output_lb = listbox;
nestedObjectDump(0, null, obj, this);
};
ListLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local2 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local2 != null) {
this.output_lb.addItem(_local2);
}
return(true);
};
_global.TreeLineRenderer = function (pre, typedelim, valuedelim, post) {
this.init(pre, typedelim, valuedelim, post);
};
TreeLineRenderer.prototype.init = function (pre, typedelim, valuedelim, post) {
this.prechar = pre;
this.typechar = typedelim;
this.valuechar = valuedelim;
this.postchar = post;
};
TreeLineRenderer.prototype.getLine = function (level, objname, objtype, objvalue, objnum) {
var _local2 = "";
var _local3 = 0;
while (_local3 < level) {
_local2 = _local2 + "\t";
_local3++;
}
var _local6 = this.valuechar;
if ((objname != null) && (objtype != "object")) {
_local2 = _local2 + (((this.prechar + objtype) + this.typechar) + objname);
} else if (objtype == "object") {
if (typeof(objvalue) == "number") {
_local2 = _local2 + (((this.prechar + objtype) + this.typechar) + objname);
_local2 = _local2 + ((_local6 + "object#") + objvalue);
objvalue = null;
} else {
_local2 = _local2 + (((((this.prechar + objtype) + "#") + objnum) + this.typechar) + objname);
}
} else {
_local2 = _local2 + (this.prechar + objtype);
_local6 = this.typechar;
}
if (objvalue != null) {
_local2 = _local2 + (_local6 + objvalue);
}
_local2 = _local2 + this.postchar;
return(_local2);
};
_global.nestedObjectDump = function (level, objname, obj, lineadder) {
if (level == 0) {
nestedObjectDump.callcount++;
nestedObjectDump.objcount = -1;
}
if (obj == null) {
return(lineadder.addLine(level, objname, "undefined"));
}
if (typeof(obj) == "function") {
return(lineadder.addLine(level, objname, "function"));
}
if (typeof(obj) == "object") {
if ((obj.__nestedObjectDump_id != undefined) && (obj.__nestedObjectDump_ref == nestedObjectDump.callcount)) {
return(lineadder.addLine(level, objname, "object", obj.__nestedObjectDump_id));
}
nestedObjectDump.objcount++;
if (lineadder.addLine(level, objname, "object", null, nestedObjectDump.objcount) == nestedObjectDump.skip) {
return(nestedObjectDump.proceed);
}
obj.__nestedObjectDump_id = nestedObjectDump.objcount;
obj.__nestedObjectDump_ref = nestedObjectDump.callcount;
var _local4 = new Array();
var _local3 = new Array();
for (var _local10 in obj) {
if (((_local10 == "__proto__") || (_local10 == "__nestedObjectDump_id")) || (_local10 == "__nestedObjectDump_ref")) {
continue;
}
if (typeof(obj[_local10]) == "object") {
_local3.push(_local10);
} else {
_local4.push(_local10);
}
}
if ((_local3.length == 0) && (_local4.length == 0)) {
if ((typeof(obj.toString) == "function") && (obj.toString() != "")) {
return(lineadder.addLine(level + 1, null, "string", obj.toString()));
}
if (lineadder.noProps != undefined) {
lineadder.noProps(level + 1);
return(nestedObjectDump.proceed);
}
}
_local4.sort();
_local3.sort();
var _local7 = true;
var _local8 = _local4.length;
var _local1 = 0;
while (_local1 < _local8) {
if (nestedObjectDump(level + 1, _local4[_local1], obj[_local4[_local1]], lineadder) == nestedObjectDump.stop) {
_local7 = false;
break;
}
_local1++;
}
if (_local7) {
var _local9 = _local3.length;
_local1 = 0;
while (_local1 < _local9) {
if (!nestedObjectDump(level + 1, _local3[_local1], obj[_local3[_local1]], lineadder)) {
_local7 = false;
}
_local1++;
}
}
return(nestedObjectDump.proceed);
}
return(lineadder.addLine(level, objname, typeof(obj), obj));
};
nestedObjectDump.proceed = 1;
nestedObjectDump.skip = 2;
nestedObjectDump.stop = 3;
nestedObjectDump.callcount = 0;
nestedObjectDump.objcount = 0;
Object.registerClass("NetDebugConfig", NetDebugConfig);
NetDebugEvent.prototype.init = function () {
this.EventType = "DebugEvent";
this.Source = "Client";
this.MovieUrl = unescape(_root._url);
this.initDate();
};
NetDebugEvent.prototype.initDate = function () {
var _local2 = new Date();
this.Date = _local2;
this.Time = _local2.getTime();
};
NetDebugErrorEvent.prototype = new NetDebugEvent();
NetDebugTraceEvent.prototype = new NetDebugEvent();
NetDebugTraceNetServicesEvent.prototype = new NetDebugEvent();
NetDebugNCEvent.prototype = new NetDebugEvent();
NetDebugResultEvent.prototype = new NetDebugNCEvent();
NetDebugStatusEvent.prototype = new NetDebugNCEvent();
NetDebugConnectEvent.prototype = new NetDebugNCEvent();
NetDebugCallEvent.prototype = new NetDebugNCEvent();
NetDebugCloseEvent.prototype = new NetDebugNCEvent();
NetDebugAddHeaderEvent.prototype = new NetDebugNCEvent();
NetDebugRtmpLogEvent.prototype = new NetDebugNCEvent();
NetDebugDuplicateNCDErrorEvent.prototype = new NetDebugNCEvent();
NetDebugFailedSendErrorEvent.prototype = new NetDebugNCEvent();
NetDebugInfoErrorEvent.prototype = new NetDebugNCEvent();
NetDebugResultEvent.prototype = new NetDebugNCEvent();
_global.StripNCDEventToMinmal = function (ev) {
var _local2 = new Object();
if (ev.EventType != null) {
_local2.EventType = ev.EventType;
}
if (ev.Source != null) {
_local2.Source = ev.Source;
}
if (ev.MovieUrl != null) {
_local2.MovieUrl = ev.MovieUrl;
}
if (ev.Date != null) {
_local2.Date = ev.Date;
}
if (ev.Time != null) {
_local2.Time = ev.Time;
}
if (ev.Protocol != null) {
_local2.Protocol = ev.Protocol;
}
if (ev.DebugId != null) {
_local2.DebugId = ev.DebugId;
}
return(_local2);
};
NetConnection.prototype.attachDebug = function () {
if (this.m_Attached) {
return(undefined);
}
this.m_Attached = true;
this.m_HeaderAdded = false;
this.m_Config = new NetDebugConfig();
copyProperties(this.m_Config, getNetDebug().m_Config);
this.m_Protocol = "none";
this.m_Id = getNetDebug().addNetConnection(this);
};
NetConnection.prototype.sendDebugEvent = function (eventobj) {
eventobj.Protocol = this.m_Protocol;
eventobj.DebugId = this.m_Id;
return(getNetDebug().onEvent(eventobj));
};
NetConnection.prototype.sendServerEvent = function (eventobj) {
eventobj.MovieUrl = unescape(_root._url);
if (this.sendDebugEvent(eventobj)) {
return(undefined);
}
};
NetConnection.prototype.sendClientEvent = function (eventobj) {
if (this.m_Config.m_debug && (this.m_Config.client.m_debug)) {
if ((this.m_Config.client.http && (this.m_Protocol == "http")) || (this.m_Config.client.rtmp && (this.m_Protocol.substr(0, 4) == "rtmp"))) {
if (this.sendDebugEvent(eventobj)) {
return(undefined);
}
}
}
};
NetConnection.prototype.addNetDebugHeader = function () {
if (this.m_HeaderAdded) {
return(undefined);
}
this.m_HeaderAdded = true;
if ((this.m_Config.m_debug && (this.m_Config.app_server.m_debug)) && (this.m_Protocol == "http")) {
this.realaddHeader("amf_server_debug", true, this.m_Config.app_server);
return(undefined);
}
this.realaddHeader("amf_server_debug", true, undefined);
};
NetConnection.prototype.updateConfig = function (config) {
this.attachDebug();
copyProperties(this.m_Config, config);
this.m_HeaderAdded = false;
};
NetConnection.prototype.isRealTime = function () {
return(this.m_Protocol.substr(0, 4) == "rtmp");
};
NetConnection.prototype.setupRecordset = function () {
this.attachDebug();
this.m_Config.client.http = this.m_Config.client.recordset;
};
NetConnection.prototype.setDebugId = function (id) {
this.attachDebug();
this.m_Id = id;
};
NetConnection.prototype.getDebugId = function () {
this.attachDebug();
return(this.m_Id);
};
NetConnection.prototype.trace = function (traceobj) {
this.attachDebug();
if ((this.m_Config.m_debug && (this.m_Config.client.m_debug)) && (this.m_Config.client.trace)) {
this.sendDebugEvent(new NetDebugTraceEvent(traceobj));
}
};
NetConnection.prototype.getDebugConfig = function () {
this.attachDebug();
return(this.m_Config);
};
if (!NetConnection.prototype.netDebugProxyFunctions) {
NetConnection.prototype.netDebugProxyFunctions = true;
NetConnection.prototype.realconnect = NetConnection.prototype.connect;
NetConnection.prototype.realcall = NetConnection.prototype.call;
NetConnection.prototype.realclose = NetConnection.prototype.close;
NetConnection.prototype.realaddHeader = NetConnection.prototype.addHeader;
NetConnection.prototype.connect = netDebugProxyConnect;
NetConnection.prototype.call = netDebugProxyCall;
NetConnection.prototype.close = netDebugProxyClose;
NetConnection.prototype.addHeader = netDebugProxyAddHeader;
}
RTMPClientIDResponse.prototype.onResult = function (cid) {
this.m_NC.m_ClientId = cid;
getNetDebug().sendCommand(new AddRTMPClientCommand(this.m_ConnectString, cid));
};
NetDebugResponseProxy.prototype.onDebugEvents = function (debugevents) {
var _local3 = debugevents.length;
var _local2 = 0;
for(;;){
if (_local2 >= _local3) {
return(undefined);
}
this.m_SourceNC.sendServerEvent(debugevents[_local2]);
_local2++;
};
};
NetDebugResponseProxy.prototype.onResult = function (resultobj) {
this.m_SourceNC.sendClientEvent(new NetDebugResultEvent(resultobj));
this.m_OriginalNR.onResult(resultobj);
};
NetDebugResponseProxy.prototype.onStatus = function (statusobj) {
this.m_SourceNC.sendClientEvent(new NetDebugStatusEvent(statusobj));
if (this.m_OriginalNR.onStatus != undefined) {
this.m_OriginalNR.onStatus(statusobj);
return(undefined);
}
_global.System.onStatus(statusobj);
};
NetDebugResponseProxy.prototype.__resolve = function (name) {
this.m_SourceNC.sendClientEvent(new NetDebugReceiveCallEvent(name, arguments));
this.m_OriginalNR[name].apply(arguments);
};
GlobalLocalConnection.prototype.setDomainName = function (domainname) {
if ((domainname != null) && (domainname != "")) {
this.sendPrefix = domainname + ":";
return(undefined);
}
this.sendPrefix = "";
};
GlobalLocalConnection.prototype.send = function (dataobj) {
return(this.sendRaw("onData", dataobj));
};
GlobalLocalConnection.prototype.sendCommand = function (commandobj) {
return(this.sendRaw("onCommand", commandobj));
};
GlobalLocalConnection.prototype.sendRaw = function (functionname, obj) {
var _local4 = true;
var _local5 = this.sendnames.length;
var _local3 = 0;
while (_local3 < _local5) {
_local4 = _local4 & _global.g_NetDebugLocalConnection.send(this.sendPrefix + this.sendnames[_local3], functionname, obj);
_local3++;
}
return(_local4);
};
LocalCommand.prototype.init = function (commandname, dataobj) {
this.command = commandname;
this.data = dataobj;
};
UpdateNetDebugConfigCommand.prototype = new LocalCommand();
GetConfigCommand.prototype = new LocalCommand();
StartRTMPTraceCommand.prototype = new LocalCommand();
AddRTMPClientCommand.prototype = new LocalCommand();
StopRTMPTraceCommand.prototype = new LocalCommand();
NetDebug.prototype.addNetConnection = function (nc) {
this.m_ncs.push(nc);
return(this.m_NextNewId++);
};
NetDebug.prototype.removeNetConnection = function (nc) {
var _local3 = this.m_ncs.length;
var _local2 = 0;
for(;;){
if (_local2 >= _local3) {
return(undefined);
}
if (nc == this.m_ncs[_local2]) {
this.m_ncs.splice(_local2, 1);
return(undefined);
}
_local2++;
};
};
NetDebug.prototype.sendDebugEvent = function (eventobj) {
if (!this.m_glc.send(eventobj)) {
this.m_glc.send(new NetDebugFailedSendErrorEvent(StripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
};
NetDebug.prototype.sendCommand = function (commandobj) {
return(this.m_glc.sendCommand(commandobj));
};
NetDebug.prototype.requestNewConfig = function () {
return(this.sendCommand(new GetConfigCommand()));
};
NetDebug.prototype.updateConfig = function (config) {
copyProperties(this.m_Config, config);
var _local3 = this.m_ncs.length;
var _local2 = 0;
for(;;){
if (_local2 >= _local3) {
return(undefined);
}
if (this.m_ncs[_local2] != null) {
this.m_ncs[_local2].updateConfig(config);
}
_local2++;
};
};
NetDebug.prototype.sendStatus = function (statusobj) {
if (this.m_Config.m_debug && (this.m_Config.client.m_debug)) {
return(this.m_glc.send(new NetDebugStatusEvent(statusobj)));
}
};
NetDebug.prototype.onEvent = function (eventobj) {
return(this.sendDebugEvent(eventobj));
};
NetDebug.prototype.onEventError = function (errorobj) {
return(this.sendDebugEvent(new NetDebugErrorEvent(errorobj)));
};
NetDebug.prototype.onReceiveCommand = function (commandobj) {
this[commandobj.command](commandobj.data);
};
NetDebug.prototype.onReceiveError = function (errorobj) {
this.sendDebugEvent(new NetDebugErrorEvent(errorobj));
};
NetDebug.prototype.traceNetServices = function (who, severity, number, message) {
if ((this.m_Config.m_debug && (this.m_Config.client.m_debug)) && (this.m_Config.client.trace)) {
if (this.sendDebugEvent(new NetDebugTraceNetServicesEvent(who, severity, number, message))) {
return(undefined);
}
}
};
NetDebug.prototype.trace = function (traceobj) {
if ((this.m_Config.m_debug && (this.m_Config.client.m_debug)) && (this.m_Config.client.trace)) {
if (this.sendDebugEvent(new NetDebugTraceEvent(traceobj))) {
return(undefined);
}
}
};
if (_global.netDebugInstance == undefined) {
_global.netDebugInstance = new NetDebug();
}
NetDebug.trace = function (obj) {
getNetDebug().trace(obj);
};
NetDebug.traceNetServices = function (who, severity, number, message) {
getNetDebug().traceNetServices(who, severity, number, message);
};
NetDebug.getVersion = function () {
return(getNetDebugVersion());
};
NetDebug.globalOnStatus = function (statusobj) {
getNetDebug().sendStatus(statusobj);
};
if (_global.System.onStatus == undefined) {
_global.System.onStatus = NetDebug.globalOnStatus;
}
_global.DataGlue = function (dataProvider) {
this.dataProvider = dataProvider;
};
_global.DataGlue.bindFormatStrings = function (dataConsumer, dataProvider, labelString, dataString) {
var _local2 = new DataGlue(dataProvider);
_local2.labelString = labelString;
_local2.dataString = dataString;
_local2.getItemAt = _global.DataGlue.getItemAt_FormatString;
dataConsumer.setDataProvider(_local2);
};
_global.DataGlue.bindFormatFunction = function (dataConsumer, dataProvider, formatFunction) {
var _local2 = new DataGlue(dataProvider);
_local2.formatFunction = formatFunction;
_local2.getItemAt = _global.DataGlue.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local2);
};
_global.DataGlue.prototype.addView = function (viewRef) {
return(this.dataProvider.addView(viewRef));
};
_global.DataGlue.prototype.getLength = function () {
return(this.dataProvider.length);
};
_global.DataGlue.prototype.format = function (formatString, record) {
var _local3 = formatString.split("#");
var _local2 = "";
var _local4 = _local3.length;
var _local1 = 0;
while (_local1 < _local4) {
_local2 = _local2 + _local3[_local1];
_local2 = _local2 + ((_local3[_local1 + 1] == "") ? "#" : (record[_local3[_local1 + 1]]));
_local1 = _local1 + 2;
}
return(_local2);
};
_global.DataGlue.getItemAt_FormatString = function (index) {
var _local2 = this.dataProvider.getItemAt(index);
if ((_local2 == "in progress") || (_local2 == undefined)) {
return(_local2);
}
return({label:this.format(this.labelString, _local2), data:((this.dataString == null) ? (_local2) : (this.format(this.dataString, _local2)))});
};
_global.DataGlue.getItemAt_FormatFunction = function (index) {
var _local2 = this.dataProvider.getItemAt(index);
if ((_local2 == "in progress") || (_local2 == undefined)) {
return(_local2);
}
return(this.formatFunction(_local2));
};
_global.DataGlue.prototype.getItemID = function (index) {
return(this.dataProvider.getItemID(index));
};
_global.DataGlue.prototype.addItemAt = function (index, value) {
return(this.dataProvider.addItemAt(index, value));
};
_global.DataGlue.prototype.addItem = function (value) {
return(this.dataProvider.addItem(value));
};
_global.DataGlue.prototype.removeItemAt = function (index) {
return(this.dataProvider.removeItemAt(index));
};
_global.DataGlue.prototype.removeAll = function () {
return(this.dataProvider.removeAll());
};
_global.DataGlue.prototype.replaceItemAt = function (index, itemObj) {
return(this.dataProvider.replaceItemAt(index, itemObj));
};
_global.DataGlue.prototype.sortItemsBy = function (fieldName, order) {
return(this.dataProvider.sortItemsBy(fieldName, order));
};
_global.DataGlue.prototype.sortItems = function (compareFunc, order) {
return(this.dataProvider.sortItems(compareFunc, order));
};
isGatewayOpen = null;
if (isGatewayOpen == null) {
isGatewayOpen = true;
}
Frame 11
function checkhit(bullet) {
xloc = eval (bullet)._x;
yloc = eval (bullet)._y;
e = 0;
for(;;){
if (e >= enlist.length) {
return(undefined);
}
thisen = enlist[e];
if (eval (thisen).hittest(xloc, yloc, false)) {
if (eval (thisen)._currentframe < 6) {
_root.hitSound.start();
eval (bullet).exp = "true";
eval (bullet).gotoAndPlay("explode");
eval (thisen).gotoAndPlay("red");
eval (thisen).power.gotoAndPlay(2);
if (weapon == "bullet") {
eval (thisen).hits = eval (thisen).hits - 1;
} else if (weapon == "laser") {
eval (thisen).hits = eval (thisen).hits - 2;
} else if (weapon == "phaser") {
eval (thisen).hits = eval (thisen).hits - 3;
} else if (weapon == "tazer") {
eval (thisen).hits = eval (thisen).hits - 4;
}
}
}
e++;
};
}
function checkhit2(Ebullet) {
xloc = eval (Ebullet)._x;
yloc = eval (Ebullet)._y;
thisen = "chopper";
if (eval (thisen).hittest(xloc, yloc, false)) {
_root.chopper.hits = _root.chopper.hits - 1;
chopper.chopper.field.gotoAndPlay(2);
eval (Ebullet).exp = "true";
eval (Ebullet).gotoAndPlay("explode");
}
}
_root.survived = 0;
lives = 3;
_root.score = 0;
_root.shiptocnt = 0;
_root.fightertocnt = 0;
_root.bombertocnt = 0;
stagew = 600;
stageh = 350;
guageson = "false";
trucksmove = 0.5;
debug = true;
_root.intermission = false;
_root.weapon = "bullet";
_root.engineSound = new Sound();
_root.engineSound.attachSound("engine");
_root.hitSound = new Sound();
_root.hitSound.attachSound("hit");
_root.collectSound = new Sound();
_root.collectSound.attachSound("collect");
_root.field1.gotoAndPlay(1);
Instance of Symbol 41 MovieClip "field1" in Frame 11
onClipEvent (load) {
this.swapDepths(2000);
}
Frame 13
action = "intro";
display.gotoAndPlay("in");
stop();
Frame 17
stopAllSounds();
Instance of Symbol 419 MovieClip "powerup" in Frame 21
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
powerNum = this._currentframe;
if (active) {
if (this.hitBox.hittest(_root.chopper)) {
trace("Powerup #" + powerNum);
if (powerNum == 1) {
_root.weapon = "laser";
} else if (powerNum == 2) {
_root.weapon = "phaser";
} else if (powerNum == 3) {
_root.weapon = "tazer";
}
this.gotoAndPlay("vanish");
this.active = false;
}
}
this._x = this._x + (_root.movevar * 1.2);
}
Frame 22
_root.shiptocnt = 0;
_root.fightertocnt = 0;
_root.bombertocnt = 0;
action = "breif";
thislev = "level1";
display.gotoAndPlay("breif");
_root.arrows.gotoAndStop("blank");
restart = "false";
dead = "false";
movevar = 0;
truckmove = 3;
enlist = [];
convoylist = [];
convoyx = 2000;
encnt = 0;
convoytotal = 3;
complete = "false";
entarglist = [];
guageson = "false";
_root.shipnum = 16;
_root.shipspeed = 4;
_root.fighternum = 4;
_root.fighterspeed = 5;
_root.bombernum = 0;
_root.bomberspeeed = 2;
_root.ennum = (shipnum + fighternum) + bombernum;
_root.fighternum = _root.fighternum + _root.shipnum;
_root.bombernum = _root.bombernum + _root.fighternum;
_root.generatemulti = 1;
_root.refreshrate = 40;
_root.refreshmax = 200;
_root.refreshtimed = "false";
stop();
Instance of Symbol 437 MovieClip in Frame 23
onClipEvent (enterFrame) {
_x = _root.chopper._x;
_alpha = (_root.chopper._y / 6);
_xscale = ((_root.chopper._y / 6) + 50);
_xscale = ((_root.chopper._y / 6) + 50);
}
Frame 25
_root.scanner.gotoAndPlay("level1");
field1.gotoAndPlay("up");
stop();
Frame 27
action = "failure";
thislev = "failure";
display.gotoAndPlay("failure");
_root.field1.gotoAndPlay(1);
stop();
Frame 29
action = "complete";
thislev = "complete";
lastlevel = 1;
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
_root.gotoAndPlay(35);
stop();
Frame 31
stopAllSounds();
Instance of Symbol 419 MovieClip "powerup" in Frame 34
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
powerNum = this._currentframe;
if (active) {
if (this.hitBox.hittest(_root.chopper)) {
trace("Powerup #" + powerNum);
if (powerNum == 1) {
_root.weapon = "laser";
} else if (powerNum == 2) {
_root.weapon = "phaser";
} else if (powerNum == 3) {
_root.weapon = "tazer";
} else if (powerNum == 4) {
_root.chopper.hits++;
}
this.gotoAndPlay("vanish");
this.active = false;
}
}
this._x = this._x + (_root.movevar * 1.2);
}
Frame 35
_root.shiptocnt = 0;
_root.fightertocnt = 0;
_root.bombertocnt = 0;
action = "breif";
thislev = "level2";
display.gotoAndPlay("breif");
_root.arrows.gotoAndStop("blank");
restart = "false";
dead = "false";
movevar = 0;
truckmove = 3;
enlist = [];
convoylist = [];
convoyx = 2000;
encnt = 0;
convoytotal = 3;
complete = "false";
entarglist = [];
guageson = "false";
_root.shipnum = 18;
_root.shipspeed = 4;
_root.fighternum = 10;
_root.fighterspeed = 6;
_root.bombernum = 0;
_root.bomberspeeed = 2;
_root.ennum = (shipnum + fighternum) + bombernum;
_root.fighternum = _root.fighternum + _root.shipnum;
_root.bombernum = _root.bombernum + _root.fighternum;
_root.generatemulti = 2;
_root.refreshrate = 25;
_root.refreshmax = 200;
_root.refreshtimed = "false";
stop();
Instance of Symbol 437 MovieClip in Frame 36
onClipEvent (enterFrame) {
_x = _root.chopper._x;
_alpha = (_root.chopper._y / 6);
_xscale = ((_root.chopper._y / 6) + 50);
}
Frame 38
_root.scanner.gotoAndPlay("level1");
field1.gotoAndPlay("up");
stop();
Frame 40
action = "failure";
thislev = "failure";
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 42
action = "complete";
thislev = "complete";
lastlevel = 2;
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
_root.gotoAndPlay(48);
stop();
Frame 44
stopAllSounds();
Instance of Symbol 419 MovieClip "powerup" in Frame 47
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
powerNum = this._currentframe;
if (active) {
if (this.hitBox.hittest(_root.chopper)) {
trace("Powerup #" + powerNum);
if (powerNum == 1) {
_root.weapon = "laser";
} else if (powerNum == 2) {
_root.weapon = "phaser";
} else if (powerNum == 3) {
_root.weapon = "tazer";
} else if (powerNum == 4) {
_root.chopper.hits++;
}
this.gotoAndPlay("vanish");
this.active = false;
}
}
this._x = this._x + (_root.movevar * 1.2);
}
Frame 48
_root.shiptocnt = 0;
_root.fightertocnt = 0;
_root.bombertocnt = 0;
action = "breif";
thislev = "level3";
display.gotoAndPlay("breif");
_root.arrows.gotoAndStop("blank");
restart = "false";
dead = "false";
movevar = 0;
truckmove = 3;
enlist = [];
convoylist = [];
convoyx = 2000;
encnt = 0;
convoytotal = 3;
complete = "false";
entarglist = [];
guageson = "false";
_root.shipnum = 20;
_root.shipspeed = 4;
_root.fighternum = 14;
_root.fighterspeed = 6;
_root.bombernum = 4;
_root.bomberspeed = 2;
_root.ennum = (shipnum + fighternum) + bombernum;
_root.fighternum = _root.fighternum + _root.shipnum;
_root.bombernum = _root.bombernum + _root.fighternum;
_root.generatemulti = 2;
_root.refreshrate = 30;
_root.refreshmax = 200;
_root.refreshtimed = "false";
stop();
Instance of Symbol 437 MovieClip in Frame 49
onClipEvent (enterFrame) {
_x = _root.chopper._x;
_alpha = (_root.chopper._y / 6);
_xscale = ((_root.chopper._y / 6) + 50);
}
Frame 51
_root.scanner.gotoAndPlay("level1");
field1.gotoAndPlay("up");
stop();
Frame 53
action = "failure";
thislev = "failure";
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 55
action = "complete";
thislev = "complete";
lastlevel = 3;
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
_root.gotoAndPlay(62);
stop();
Frame 58
stopAllSounds();
Instance of Symbol 419 MovieClip "powerup" in Frame 61
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
powerNum = this._currentframe;
if (active) {
if (this.hitBox.hittest(_root.chopper)) {
trace("Powerup #" + powerNum);
if (powerNum == 1) {
_root.weapon = "laser";
} else if (powerNum == 2) {
_root.weapon = "phaser";
} else if (powerNum == 3) {
_root.weapon = "tazer";
} else if (powerNum == 4) {
_root.chopper.hits++;
}
this.gotoAndPlay("vanish");
this.active = false;
}
}
this._x = this._x + (_root.movevar * 1.2);
}
Frame 62
_root.shiptocnt = 0;
_root.fightertocnt = 0;
_root.bombertocnt = 0;
action = "breif";
thislev = "level4";
display.gotoAndPlay("breif");
restart = "false";
dead = "false";
movevar = 0;
truckmove = 3;
enlist = [];
convoylist = [];
convoyx = 2000;
encnt = 0;
convoytotal = 1;
complete = "false";
entarglist = [];
guageson = "false";
_root.shipspeed = 6;
_root.fighterspeed = 10;
_root.bomberspeed = 2;
_root.ennum = (shipnum + fighternum) + bombernum;
_root.fighternum = _root.fighternum + _root.shipnum;
_root.bombernum = _root.bombernum + _root.fighternum;
_root.generatemulti = 3;
_root.refreshrate = 5;
_root.refreshmax = 25;
_root.refreshtimed = "true";
stop();
Instance of Symbol 437 MovieClip in Frame 63
onClipEvent (enterFrame) {
_x = _root.chopper._x;
_alpha = (_root.chopper._y / 6);
_xscale = ((_root.chopper._y / 6) + 50);
}
Frame 65
_root.scanner.gotoAndPlay("level4");
field1.gotoAndPlay("up");
stop();
Frame 67
action = "failure";
thislev = "failure";
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 69
action = "complete";
thislev = "complete";
lastlevel = 4;
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
_root.gotoAndPlay(75);
stop();
Frame 71
stopAllSounds();
Instance of Symbol 419 MovieClip "powerup" in Frame 74
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
powerNum = this._currentframe;
if (active) {
if (this.hitBox.hittest(_root.chopper)) {
trace("Powerup #" + powerNum);
if (powerNum == 1) {
_root.weapon = "laser";
} else if (powerNum == 2) {
_root.weapon = "phaser";
} else if (powerNum == 3) {
_root.weapon = "tazer";
} else if (powerNum == 4) {
_root.chopper.hits++;
}
this.gotoAndPlay("vanish");
this.active = false;
}
}
this._x = this._x + (_root.movevar * 1.2);
}
Frame 75
_root.shiptocnt = 0;
_root.fightertocnt = 0;
_root.bombertocnt = 0;
action = "breif";
thislev = "level5";
display.gotoAndPlay("breif");
restart = "false";
dead = "false";
movevar = 0;
truckmove = 3;
enlist = [];
convoylist = [];
convoyx = 2000;
encnt = 0;
convoytotal = 2;
complete = "false";
entarglist = [];
guageson = "false";
_root.shipspeed = 6;
_root.fighterspeed = 10;
_root.bomberspeed = 2;
_root.ennum = (shipnum + fighternum) + bombernum;
_root.fighternum = _root.fighternum + _root.shipnum;
_root.bombernum = _root.bombernum + _root.fighternum;
_root.generatemulti = 3;
_root.refreshrate = 5;
_root.refreshmax = 50;
_root.refreshtimed = "true";
stop();
Instance of Symbol 437 MovieClip in Frame 76
onClipEvent (enterFrame) {
_x = _root.chopper._x;
_alpha = (_root.chopper._y / 6);
_xscale = ((_root.chopper._y / 6) + 50);
}
Frame 78
_root.scanner.gotoAndPlay("level5");
field1.gotoAndPlay("up");
stop();
Frame 80
action = "failure";
thislev = "failure";
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 82
action = "complete";
thislev = "complete";
lastlevel = 5;
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
_root.gotoAndPlay(89);
stop();
Frame 85
stopAllSounds();
Instance of Symbol 419 MovieClip "powerup" in Frame 88
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
powerNum = this._currentframe;
if (active) {
if (this.hitBox.hittest(_root.chopper)) {
trace("Powerup #" + powerNum);
if (powerNum == 1) {
_root.weapon = "laser";
} else if (powerNum == 2) {
_root.weapon = "phaser";
} else if (powerNum == 3) {
_root.weapon = "tazer";
} else if (powerNum == 4) {
_root.chopper.hits++;
}
this.gotoAndPlay("vanish");
this.active = false;
}
}
this._x = this._x + (_root.movevar * 1.2);
}
Frame 89
_root.shiptocnt = 0;
_root.fightertocnt = 0;
_root.bombertocnt = 0;
action = "breif";
thislev = "level6";
display.gotoAndPlay("breif");
restart = "false";
dead = "false";
movevar = 0;
truckmove = 3;
enlist = [];
convoylist = [];
convoyx = 2000;
encnt = 0;
convoytotal = 2;
complete = "false";
entarglist = [];
guageson = "false";
_root.shipspeed = 6;
_root.fighterspeed = 10;
_root.bomberspeed = 2;
_root.ennum = (shipnum + fighternum) + bombernum;
_root.fighternum = _root.fighternum + _root.shipnum;
_root.bombernum = _root.bombernum + _root.fighternum;
_root.generatemulti = 3;
_root.refreshrate = 5;
_root.refreshmax = 50;
_root.refreshtimed = "true";
stop();
Instance of Symbol 437 MovieClip in Frame 90
onClipEvent (enterFrame) {
_x = _root.chopper._x;
_alpha = (_root.chopper._y / 6);
_xscale = ((_root.chopper._y / 6) + 50);
}
Frame 92
_root.scanner.gotoAndPlay("level6");
field1.gotoAndPlay("up");
stop();
Frame 94
action = "failure";
thislev = "failure";
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 96
action = "complete";
thislev = "complete";
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
_root.gotoAndPlay(102);
stop();
Frame 98
stopAllSounds();
Instance of Symbol 419 MovieClip "powerup" in Frame 101
onClipEvent (load) {
active = true;
}
onClipEvent (enterFrame) {
powerNum = this._currentframe;
if (active) {
if (this.hitBox.hittest(_root.chopper)) {
trace("Powerup #" + powerNum);
if (powerNum == 1) {
_root.weapon = "laser";
} else if (powerNum == 2) {
_root.weapon = "phaser";
} else if (powerNum == 3) {
_root.weapon = "tazer";
} else if (powerNum == 4) {
_root.chopper.hits++;
}
this.gotoAndPlay("vanish");
this.active = false;
}
}
this._x = this._x + (_root.movevar * 1.2);
}
Frame 102
_root.shiptocnt = 0;
_root.fightertocnt = 0;
_root.bombertocnt = 0;
action = "breif";
thislev = "level7";
display.gotoAndPlay("breif");
restart = "false";
dead = "false";
movevar = 0;
truckmove = 15;
enlist = [];
convoylist = [];
convoyx = 2000;
encnt = 0;
convoytotal = 2;
complete = "false";
entarglist = [];
guageson = "false";
_root.shipspeed = 4;
_root.fighterspeed = 6;
_root.bomberspeed = 2;
_root.ennum = (shipnum + fighternum) + bombernum;
_root.fighternum = _root.fighternum + _root.shipnum;
_root.bombernum = _root.bombernum + _root.fighternum;
_root.generatemulti = 2;
_root.refreshrate = 8;
_root.refreshmax = 200;
_root.refreshtimed = "false";
stop();
Instance of Symbol 437 MovieClip in Frame 103
onClipEvent (enterFrame) {
_x = _root.chopper._x;
_alpha = (_root.chopper._y / 6);
_xscale = ((_root.chopper._y / 6) + 50);
}
Frame 105
_root.scanner.gotoAndPlay("level7");
field1.gotoAndPlay("up");
stop();
Frame 107
action = "failure";
thislev = "failure";
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 109
action = "complete";
thislev = "complete";
lastlevel = 7;
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 112
stopAllSounds();
Symbol 13 Button
on (release) {
getURL ("http://www.funfastgame.com/");
}
Symbol 19 Button
on (release) {
getURL ("http://www.funfastgame.com/");
}
Symbol 23 MovieClip Frame 3
stop();
Symbol 23 MovieClip Frame 5
gotoAndPlay (1);
Symbol 23 MovieClip Frame 7
gotoAndPlay (1);
Symbol 23 MovieClip Frame 9
gotoAndPlay (1);
Symbol 23 MovieClip Frame 15
gotoAndStop (1);
Symbol 41 MovieClip Frame 2
stop();
Symbol 41 MovieClip Frame 6
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
bar._width = _parent.hits * _parent.hitvar;
Symbol 87 MovieClip Frame 21
stop();
Symbol 87 MovieClip Frame 28
stop();
Symbol 87 MovieClip Frame 29
play();
Symbol 95 Button
on (release) {
var st:String;
st = "http:";
var i = 0;
while (i < 2) {
st = st + "/";
i++;
}
i = 0;
while (i < 3) {
st = st + "w";
i++;
}
st = st + ".funfastgame.com/categorylist/3/The-newest-of-Ben-10/views.html";
getURL (st, "_top");
}
Symbol 101 Button
on (release) {
play();
}
Symbol 104 Button
on (press) {
var st:String;
st = "http:";
var i = 0;
while (i < 2) {
st = st + "/";
i++;
}
i = 0;
while (i < 3) {
st = st + "w";
i++;
}
st = st + ".funfastgame.com/";
getURL (st, "_top");
}
Symbol 109 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 126 Button
on (release) {
play();
}
Symbol 128 Button
on (press) {
levnum = _root.thislev.charAt(5);
backlev = _root.thislev.substring(0, 5) + (int(levnum) - 1);
_root.gotoAndPlay(backlev);
gotoAndStop (1);
}
Symbol 129 Button
on (press) {
levnum = _root.thislev.charAt(5);
backlev = _root.thislev.substring(0, 5) + (int(levnum) + 1);
_root.gotoAndPlay(backlev);
gotoAndStop (1);
}
Symbol 142 MovieClip Frame 1
gotoAndStop(_root.thislev);
Symbol 142 MovieClip Frame 2
stop();
Symbol 142 MovieClip Frame 3
stop();
Symbol 142 MovieClip Frame 4
stop();
Symbol 142 MovieClip Frame 5
stop();
Symbol 142 MovieClip Frame 6
stop();
Symbol 142 MovieClip Frame 7
stop();
Symbol 142 MovieClip Frame 8
stop();
Symbol 142 MovieClip Frame 9
_root.arrows.gotoAndStop("blank");
stop();
Symbol 142 MovieClip Frame 10
_root.arrows.gotoAndStop("blank");
stop();
Symbol 142 MovieClip Frame 11
stop();
Symbol 142 MovieClip Frame 12
stop();
Symbol 158 MovieClip Frame 7
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 6
stop();
Symbol 234 MovieClip Frame 2
stop();
Symbol 243 MovieClip Frame 12
stop();
Symbol 246 MovieClip Frame 8
stop();
Symbol 259 MovieClip Frame 2
targon = "false";
_visible = 1;
hits = 10;
hitvar = 50 / hits;
mynum = _name.charAt(4);
mylist = [];
mylist[0] = _name;
mylist[1] = 200;
_root.entarglist[mynum] = mylist;
tempBase = new String();
if (_name.charAt(0) == "b") {
listnum = _root.convoylist.length;
_root.convoylist[_root.convoylist.length] = _name;
}
Symbol 259 MovieClip Frame 4
myx = _x;
myW = _width * 0.5;
myR = myx + myw;
myL = myx - myw;
if (hits < 1) {
colorTransform.rb = 0;
baseColor.setTransform(colorTransform);
gotoAndPlay ("explode");
} else {
baseColor = new Color(this);
colorTransform = new Object();
colorTransform.rb = (10 - hits) * 20;
baseColor.setTransform(colorTransform);
}
if (targon == "false") {
if ((0 != (myR > -10)) & (0 != (myL < (_root.stagew + 10)))) {
_visible = 1;
targon = "true";
}
} else if ((0 != (myL > (_root.stageW + 10))) | (0 != (MyR < -10))) {
_visible = 0;
targon = "false";
}
gotoAndPlay(_currentframe - 1);
Symbol 259 MovieClip Frame 18
_root.convoylist.splice(listnum, 1);
e = listnum;
while (e < _root.convoylist.length) {
eval ("_root." + _root.convoylist[e]).listnum = eval ("_root." + _root.convoylist[e]).listnum - 1;
e++;
}
eval ("_root.scanner." + _name)._visible = 0;
_root.gotoAndPlay(_root._currentframe + 2);
Symbol 259 MovieClip Frame 19
stop();
Symbol 267 MovieClip Frame 1
gotoAndStop(_root.thislev);
Symbol 267 MovieClip Frame 2
stop();
Symbol 267 MovieClip Frame 3
stop();
Symbol 267 MovieClip Frame 4
stop();
Symbol 267 MovieClip Frame 5
stop();
Symbol 267 MovieClip Frame 6
stop();
Symbol 267 MovieClip Frame 7
stop();
Symbol 267 MovieClip Frame 8
stop();
Symbol 285 MovieClip Frame 2
allytocnt = _root.survived;
_root.survived = 0;
Symbol 285 MovieClip Frame 12
if (_root.shiptocnt > 0) {
_root.shiptocnt = _root.shiptocnt - 1;
_root.score = _root.score + 15;
_root.sound.gotoAndPlay("bling");
gotoAndPlay(_currentframe - 1);
}
Symbol 285 MovieClip Frame 15
if (_root.fightertocnt > 0) {
_root.fightertocnt = _root.fightertocnt - 1;
_root.score = _root.score + 5;
_root.sound.gotoAndPlay("bling");
gotoAndPlay(_currentframe - 1);
}
Symbol 285 MovieClip Frame 18
if (_root.bombertocnt > 0) {
_root.bombertocnt = _root.bombertocnt - 1;
_root.score = _root.score + 50;
_root.sound.gotoAndPlay("bling");
gotoAndPlay(_currentframe - 1);
}
Symbol 285 MovieClip Frame 23
if (allytocnt > 0) {
allytocnt = allytocnt - 1;
_root.score = _root.score + 150;
_root.sound.gotoAndPlay("bling");
gotoAndPlay(_currentframe - 4);
}
Symbol 285 MovieClip Frame 24
_parent.play();
stop();
Symbol 293 Button
on (release) {
_root.gotoAndPlay(22);
}
Symbol 294 Button
on (release) {
var st:String;
st = "http:";
var i = 0;
while (i < 2) {
st = st + "/";
i++;
}
i = 0;
while (i < 3) {
st = st + "w";
i++;
}
st = st + ".funfastgame.com/";
getURL (st, "_top");
}
Symbol 300 Button
on (release) {
_root.action = "highs";
_parent.play();
}
Symbol 301 Button
on (release) {
gotoAndPlay (1);
}
Symbol 305 MovieClip Frame 1
text = "SUBMITTING SCORE AND CONTEST ENTRIES";
cnt = 0;
Symbol 305 MovieClip Frame 7
if (text == "SUBMISSION COMPLETE") {
gotoAndPlay ("out");
}
Symbol 305 MovieClip Frame 8
sub.text = "SUBMITTING SCORE AND CONTEST ENTRIES";
Symbol 305 MovieClip Frame 9
score = _root.score;
level = _root.lastlevel;
Symbol 305 MovieClip Frame 10
loadVariablesNum (_root.sendScoresUrl, 0, "POST");
_root.scoresXML = 0;
Symbol 305 MovieClip Frame 11
cnt = 0;
Symbol 305 MovieClip Frame 13
gotoAndPlay (2);
Symbol 305 MovieClip Frame 28
_root.action = "highs";
_parent.play();
stop();
Symbol 305 MovieClip Frame 32
stop();
Symbol 305 MovieClip Frame 37
stop();
Symbol 310 MovieClip Frame 2
stop();
Symbol 310 MovieClip Frame 10
stop();
Symbol 311 Button
on (release) {
gotoAndPlay (1);
}
Symbol 312 MovieClip Frame 3
loadVariablesNum (_root.getScoresUrl, 0);
_root.scoresXML = 0;
Symbol 312 MovieClip Frame 4
cnt = 0;
Symbol 312 MovieClip Frame 6
gotoAndPlay ("failed");
Symbol 312 MovieClip Frame 10
scnt = -1;
while (scnt < 24) {
eval ("slot" + scnt).score.name = ((scnt + 1) + ". ") + _root.highscores[scnt][0];
eval ("slot" + scnt).score.score = _root.highscores[scnt][1];
scnt++;
}
Symbol 312 MovieClip Frame 11
scnt = 0;
Symbol 312 MovieClip Frame 14
if (scnt < 24) {
eval ("slot" + scnt).gotoAndPlay(3);
scnt = scnt + 1;
gotoAndPlay(_currentframe - 1);
} else {
stop();
}
Symbol 312 MovieClip Frame 30
stop();
Symbol 312 MovieClip Frame 37
stop();
Symbol 319 Button
on (release) {
getURL ("http://www.funfastgame.com/");
}
Symbol 321 MovieClip Frame 1
stop();
Instance of Symbol 87 MovieClip "intro" in Symbol 321 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.intermission && (this._currentframe < 14)) {
gotoAndPlay ("intermission");
}
}
Symbol 321 MovieClip Frame 13
gotoAndPlay(_root.action);
_quality = "medium";
Symbol 321 MovieClip Frame 21
_root.action = "intro";
prizenum = 1;
lastlevel = 0;
Symbol 321 MovieClip Frame 33
stop();
Symbol 321 MovieClip Frame 42
if (_root.action == "highs") {
gotoAndPlay ("highs");
} else {
_root.gotoAndPlay("level1");
}
Symbol 321 MovieClip Frame 43
stop();
Symbol 321 MovieClip Frame 55
stop();
Symbol 321 MovieClip Frame 61
_root.intermission = true;
gotoAndPlay ("intro");
Symbol 321 MovieClip Frame 73
_quality = "HIGH";
_root.intermission = true;
_root.mylev = _root.thislev;
Instance of Symbol 130 MovieClip in Symbol 321 MovieClip Frame 73
onClipEvent (load) {
if (_root.debug != true) {
_visible = false;
}
}
Symbol 321 MovieClip Frame 91
stop();
Symbol 321 MovieClip Frame 103
gotoAndPlay ("out");
Symbol 321 MovieClip Frame 107
_quality = "HIGH";
_root.movevar = 0;
if (_level0.u_id == null) {
_level0.u_id = 0;
}
if (_level0.paid == null) {
_level0.paid = 0;
}
_root.inserthscfc.inserths(_level0.u_id, 5, _level0.paid, ((_root.score + (_root.shiptocnt * 15)) + (_root.fightertocnt * 5)) + (_root.bombertocnt * 50));
Symbol 321 MovieClip Frame 128
stop();
Symbol 321 MovieClip Frame 131
stop();
Symbol 321 MovieClip Frame 137
stop();
Symbol 321 MovieClip Frame 143
gotoAndPlay(_root.action);
Symbol 321 MovieClip Frame 148
_root.thislev = "submit";
Symbol 321 MovieClip Frame 154
_quality = "HIGH";
stop();
Symbol 321 MovieClip Frame 160
gotoAndPlay(_root.action);
Symbol 321 MovieClip Frame 162
_root.thislev = "highs";
Symbol 321 MovieClip Frame 170
stop();
Symbol 321 MovieClip Frame 176
gotoAndPlay(_root.action);
Symbol 321 MovieClip Frame 187
_quality = "medium";
_root.movevar = 0;
_root.arrows.gotoAndStop("blank");
Symbol 321 MovieClip Frame 209
stop();
Symbol 321 MovieClip Frame 212
stop();
Symbol 321 MovieClip Frame 224
if (_root.prizenum == 7) {
gotoAndPlay ("endofgame");
} else {
_parent.play();
stop();
}
Symbol 321 MovieClip Frame 236
stop();
Symbol 321 MovieClip Frame 244
gotoAndPlay(_root.action);
Symbol 321 MovieClip Frame 246
_root.restart = "true";
_root.scanner.gotoAndPlay("out");
_root.guageson = "false";
_root.gotoAndPlay(1);
removeMovieClip(_root.field1);
gotoAndPlay (1);
Symbol 321 MovieClip Frame 263
_parent.play();
_quality = "MEDIUM";
stop();
Symbol 321 MovieClip Frame 277
stop();
Symbol 326 MovieClip Frame 3
ratio = 0.8;
_x = (_x + (_root.movevar * ratio));
gotoAndPlay(_currentframe - 1);
Symbol 328 MovieClip Frame 1
if (_name == "stars1") {
buddy = "stars2";
} else {
buddy = "stars1";
}
Symbol 328 MovieClip Frame 3
ratio = 0.5;
_x = (_x + (_root.movevar * ratio));
myR = _x + (_width * 0.5);
myL = _x - (_width * 0.5);
if (_root.movevar > 0) {
if (myL > _root.stagew) {
_x = (eval ("_root." + buddy)._x - (eval ("_root." + buddy)._width - (_root.movevar * ratio)));
}
} else if (_root.movevar < 0) {
if (myR < 0) {
_x = (eval ("_root." + buddy)._x + (eval ("_root." + buddy)._width + (_root.movevar * ratio)));
}
}
gotoAndPlay(_currentframe - 1);
Symbol 334 MovieClip Frame 1
if (_name == "mount1") {
buddy = "mount2";
} else {
buddy = "mount1";
}
Symbol 334 MovieClip Frame 3
ratio = 1;
_x = (_x + (_root.movevar * ratio));
myR = _x + (_width * 0.5);
myL = _x - (_width * 0.5);
if (_root.movevar > 0) {
if (myL > (_root.stagew + 50)) {
_x = (eval ("_root." + buddy)._x - (eval ("_root." + buddy)._width - (_root.movevar * ratio)));
}
} else if (_root.movevar < 0) {
if (myR < -50) {
trace("_root." + buddy);
undefined._x + (eval ("_root." + buddy)._width + (_root.movevar * ratio));
_x = (eval ("_root." + buddy)._x + (eval ("_root." + buddy)._width + (_root.movevar * ratio)));
}
}
gotoAndPlay(_currentframe - 1);
Symbol 336 MovieClip Frame 1
if (_name == "tread1") {
buddy = "tread2";
} else {
buddy = "tread1";
}
stop();
Symbol 337 MovieClip Frame 2
stop();
Symbol 337 MovieClip Frame 6
stop();
Symbol 339 MovieClip Frame 8
stop();
Instance of Symbol 341 MovieClip in Symbol 342 MovieClip Frame 13
onClipEvent (load) {
stop();
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
b = -1;
bombing = "false";
targon = "false";
hits = 3;
hitvar = 50 / hits;
myw = _width;
myh = _height;
this._visible = 0;
_xscale = (_xscale * direct);
play();
Symbol 352 MovieClip Frame 3
_x = (_x + ((speed * direct) + _root.movevar));
Symbol 352 MovieClip Frame 4
myx = _x;
myy = _y;
_x = (myx + ((speed * direct) + _root.movevar));
if (_root.restart == "true") {
gotoAndPlay ("off");
}
if (targon == "false") {
if ((0 != (myx > (-myw))) & (0 != (myx < (_root.stageW + myw)))) {
listnum = _root.enlist.length;
_root.enlist[_root.enlist.length] = _name;
this._visible = 1;
targon = "true";
}
} else {
if (this.hitTest(_root.chopper)) {
_root.hitSound.start();
_root.chopper.hits = _root.chopper.hits - 5;
_root.chopper.chopper.field.gotoAndPlay(2);
if (myx > _root.playerX) {
_root.chopper.xmove = -10;
} else {
_root.chopper.xmove = 10;
}
if (myy > _root.playerY) {
_root.chopper.ymove = -10;
} else {
_root.chopper.ymove = 10;
}
hits = -1;
}
if ((0 != (myx < (myw * -1))) | (0 != (myx > (_root.stageW + myw)))) {
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
this._visible = 0;
targon = "false";
}
}
if (bombing == "false") {
b = b + 1;
if (b > (_root.entarglist.length - 1)) {
b = 0;
}
targ = _root.entarglist[b][0];
bombH = _root.entarglist[b][1];
if ((0 != (myx < (eval ("_root." + targ)._x + 300))) & (0 != (myx > (eval ("_root." + targ)._x - 450)))) {
bombing = "true";
bombcnt = 0;
bombvar = (bombH - _y) * 0.1;
orgbombvar = bombvar;
}
} else {
bombcnt = bombcnt + 1;
if (bombcnt < 15) {
_y = (_y + bombvar);
bombvar = bombvar * 0.95;
} else if (bombcnt == 15) {
duplicateMovieClip (_root.bomb, "bomb" + mynum, 16384 + (mynum + 100));
eval ("_root.bomb" + mynum)._xscale = eval ("_root.bomb" + mynum)._xscale * direct;
eval ("_root.bomb" + mynum)._x = myx;
eval ("_root.bomb" + mynum)._y = myy;
eval ("_root.bomb" + mynum).speed = speed;
eval ("_root.bomb" + mynum).direct = direct;
eval ("_root.bomb" + mynum).titan = "false";
eval ("_root.bomb" + mynum).targ = targ.substring(0, 4);
eval ("_root.bomb" + mynum).gotoAndPlay(3);
bombvar = orgbombvar;
} else if (bombcnt < 30) {
_y = (_y - bombvar);
bombvar = bombvar * 0.95;
}
}
if (hits < 0) {
_root.shiptocnt = _root.shiptocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 352 MovieClip Frame 8
if (hits <= 0) {
_root.shiptocnt = _root.shiptocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay (3);
}
Symbol 352 MovieClip Frame 11
randomRange = random(50);
if (randomRange > 44) {
_root.powerup.gotoAndStop(random(3) + 1);
_root.powerup.active = true;
_root.powerup._x = this._x;
_root.powerup._y = this._y;
}
Symbol 352 MovieClip Frame 17
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
removeMovieClip(eval ("_root.scanner.enemy" + mynum));
gotoAndPlay ("off");
Symbol 352 MovieClip Frame 18
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
gotoAndPlay ("off");
Symbol 352 MovieClip Frame 19
removeMovieClip(eval ("_root.scanner.enemy" + mynum));
_root.manager.gonecnt = _root.manager.gonecnt + 1;
removeMovieClip(this);
stop();
Symbol 354 MovieClip Frame 1
stop();
Symbol 354 MovieClip Frame 3
if (targ == "base") {
floor = 315 - random(50);
} else {
floor = 315;
}
play();
Symbol 354 MovieClip Frame 4
if (_y < floor) {
_x = ((_x + (speed * direct)) + _root.movevar);
_y = (_y + 5);
play();
} else if (titan == "false") {
gotoAndPlay ("explode");
} else {
gotoAndPlay ("explode2");
}
Symbol 354 MovieClip Frame 5
if (_y < floor) {
_x = ((_x + (speed * direct)) + _root.movevar);
_y = (_y + 5);
gotoAndPlay(_currentframe - 1);
} else if (titan == "false") {
gotoAndPlay ("explode");
} else {
gotoAndPlay ("explode2");
}
Symbol 354 MovieClip Frame 6
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 354 MovieClip Frame 7
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 354 MovieClip Frame 9
b = 0;
while (b < _root.convoylist.length) {
targ = _root.convoylist[b];
if (hitTest(eval ("_root." + targ))) {
eval ("_root." + targ).hits = eval ("_root." + targ).hits - 1;
eval ("_root." + targ).power.gotoAndPlay(2);
if (eval (("_root.scanner." + targ) + ".power")._currentframe > 1) {
eval ("_root.scanner." + targ).power.refresh = "true";
} else {
eval ("_root.scanner." + targ).power.gotoAndPlay(2);
}
_root.field1.convoy.thistarg = targ;
_root.field1.convoy.gotoAndPlay(3);
}
b++;
}
Symbol 354 MovieClip Frame 12
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 354 MovieClip Frame 13
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 354 MovieClip Frame 14
removeMovieClip(this);
Symbol 354 MovieClip Frame 15
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 354 MovieClip Frame 16
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 354 MovieClip Frame 19
b = 0;
while (b < _root.convoylist.length) {
targ = _root.convoylist[b];
if (hitTest(eval ("_root." + targ))) {
eval ("_root." + targ).hits = eval ("_root." + targ).hits - 4;
eval ("_root." + targ).power.gotoAndPlay(2);
if (eval (("_root.scanner." + targ) + ".power")._currentframe > 1) {
eval ("_root.scanner." + targ).power.refresh = "true";
} else {
eval ("_root.scanner." + targ).power.gotoAndPlay(2);
}
_root.field1.convoy.thistarg = targ;
_root.field1.convoy.gotoAndPlay(3);
}
b++;
}
Symbol 354 MovieClip Frame 21
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 354 MovieClip Frame 22
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 354 MovieClip Frame 23
removeMovieClip(this);
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
firecnt = 25;
bombing = "false";
targon = "false";
hits = 0;
myw = _width * 0.5;
this._visible = 0;
orgspeed = speed;
_xscale = (_xscale * direct);
myw = _width * 0.5;
myh = _height * 0.5;
cnt = 0;
play();
Symbol 357 MovieClip Frame 3
_x = (_x + ((speed * direct) + _root.movevar));
Symbol 357 MovieClip Frame 4
_x = (_x + ((speed * direct) + _root.movevar));
myx = _x;
myy = _y;
if (_root.restart == "true") {
gotoAndPlay ("off");
}
if (targon == "false") {
if ((0 != (myx > (-myw))) & (0 != (myx < (_root.stageW + myw)))) {
listnum = _root.enlist.length;
_root.enlist[_root.enlist.length] = _name;
this._visible = 1;
targon = "true";
}
} else {
if (hitTest(_root.chopper)) {
_root.chopper.hits = _root.chopper.hits - 5;
_root.chopper.chopper.field.gotoAndPlay(2);
if (myx > _root.playerX) {
_root.chopper.xmove = -20;
} else {
_root.chopper.xmove = 20;
}
if (myy > _root.playerY) {
_root.chopper.ymove = -20;
} else {
_root.chopper.ymove = 20;
}
hits = -1;
}
if ((0 != (myx < (myw * -1))) | (0 != (myx > (_root.stageW + myw)))) {
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
this._visible = 0;
targon = "false";
}
}
if (targon == "true") {
chopY = _root.chopper._y;
chopX = _root.chopper._x;
if (_y > (chopY + 50)) {
_y = (_y - speed);
jet._rotation = -75;
} else if (_y < (chopY - 50)) {
_y = (_y + speed);
jet._rotation = -75;
}
if ((0 != (_x > (chopX - 150))) & (0 != (_x < (chopX + 150)))) {
speed = speed * 0.75;
if (_x < chopX) {
if (direct == -1) {
direct = 1;
_xscale = (_xscale * -1);
}
} else if (direct == 1) {
direct = -1;
_xscale = (_xscale * -1);
}
} else if (speed < orgspeed) {
speed = speed + 1;
jet._rotation = 0;
}
if (random(400) < firecnt) {
if (_root.encnt > 10) {
_root.encnt = 0;
} else {
_root.encnt = _root.encnt + 1;
}
if (direct == 1) {
myradians = Math.atan2(_root.chopper._y - _y, _root.chopper._x - _x);
myangle = (myradians * 100) / 3.14159265359;
xmove = Math.cos(0.0174532925199 * myangle) * -10;
ymove = Math.sin(0.0174532925199 * myangle) * -10;
} else {
myradians = Math.atan2(_y - _root.chopper._y, _x - _root.chopper._x);
myangle = (myradians * 100) / 3.14159265359;
xmove = Math.cos(0.0174532925199 * myangle) * 10;
ymove = Math.sin(0.0174532925199 * myangle) * 10;
}
duplicateMovieClip (_root.bullet2, "enbullet" + _root.encnt, 16384 + (500 + _root.encnt));
eval ("_root.enbullet" + _root.encnt).xmove = xmove;
eval ("_root.enbullet" + _root.encnt).ymove = ymove;
eval ("_root.enbullet" + _root.encnt).xorg = _x;
eval ("_root.enbullet" + _root.encnt).yorg = _y;
eval ("_root.enbullet" + _root.encnt).gotoAndPlay("fire");
}
}
if (hits < 0) {
_root.fightertocnt = _root.shiptocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 357 MovieClip Frame 8
if (hits < 0) {
_root.fightertocnt = _root.shiptocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay (3);
}
Symbol 357 MovieClip Frame 19
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
targon = "false";
removeMovieClip(eval ("_root.scanner.enemy" + mynum));
gotoAndPlay ("off");
Symbol 357 MovieClip Frame 20
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
targon = "false";
gotoAndPlay ("off");
Symbol 357 MovieClip Frame 21
removeMovieClip(eval ("_root.scanner.enemy" + mynum));
_root.manager.gonecnt = _root.manager.gonecnt + 1;
removeMovieClip(this);
stop();
Symbol 360 MovieClip Frame 2
stop();
Symbol 360 MovieClip Frame 3
_x = xorg;
_y = yorg;
exp = "false";
if (_root.chopper.direct > 0) {
_x = (_x - (xmove * 2));
_y = (_y - (ymove * 2));
} else {
_x = (_x - xmove);
_y = (_y - ymove);
}
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit2(_name);
}
Symbol 360 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit2(_name);
}
Symbol 360 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit2(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 360 MovieClip Frame 6
_x = (_x + 10);
Symbol 360 MovieClip Frame 7
_x = (_x + 10);
Symbol 360 MovieClip Frame 8
_x = (_x + 10);
Symbol 360 MovieClip Frame 9
_x = (_x + 10);
Symbol 360 MovieClip Frame 10
removeMovieClip(this);
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 2
b = -1;
bombing = "false";
targon = "false";
hits = 12;
hitvar = 50 / hits;
myw = _width * 0.5;
myh = _height * 0.5;
this._visible = 0;
_xscale = (_xscale * direct);
play();
Symbol 371 MovieClip Frame 3
_x = (_x + ((speed * direct) + _root.movevar));
Symbol 371 MovieClip Frame 4
_x = (_x + ((speed * direct) + _root.movevar));
myx = _x;
myy = _y;
myw = _width * 0.5;
myh = _height * 0.5;
if (_root.restart == "true") {
gotoAndPlay ("off");
}
if (targon == "false") {
if ((0 != (myx > (-1 * myw))) & (0 != (myx < (_root.stageW + myw)))) {
listnum = _root.enlist.length;
_root.enlist[_root.enlist.length] = _name;
this._visible = 1;
targon = "true";
}
} else {
if (hitTest(_root.chopper)) {
_root.chopper.hits = _root.chopper.hits - 5;
_root.chopper.chopper.field.gotoAndPlay(2);
if (myx > _root.playerX) {
_root.chopper.xmove = -20;
_x = (_x + 10);
} else {
_root.chopper.xmove = 20;
_x = (_x - 10);
}
if (myy > _root.playerY) {
_root.chopper.ymove = -20;
_y = (_y + 10);
} else {
_root.chopper.ymove = 20;
_y = (_y - 10);
}
hits = hits - 5;
power.gotoAndPlay(2);
}
if ((0 != (myx < (myw * -1))) | (0 != (myx > (_root.stageW + myw)))) {
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
this._visible = 0;
targon = "false";
}
}
if (bombing == "false") {
b = b + 1;
if (b > (_root.entarglist.length - 1)) {
b = 0;
}
targ = _root.entarglist[b][0];
bombH = _root.entarglist[b][1];
if ((0 != (myx < (eval ("_root." + targ)._x + 100))) & (0 != (myx > (eval ("_root." + targ)._x - 450)))) {
bombing = "true";
bombcnt = 0;
bombvar = (bombH - _y) * 0.1;
orgbombvar = bombvar;
}
} else {
bombcnt = bombcnt + 1;
trace("BombCount= " + bombcnt);
if (bombcnt < 15) {
_y = (_y + 0.5);
bombvar = bombvar * 0.5;
} else if (bombcnt == 15) {
duplicateMovieClip (_root.bomb, "bomb" + mynum, 16384 + (mynum + 100));
eval ("_root.bomb" + mynum)._xscale = eval ("_root.bomb" + mynum)._xscale * direct;
eval ("_root.bomb" + mynum)._x = myx;
eval ("_root.bomb" + mynum)._y = myy;
eval ("_root.bomb" + mynum).speed = speed;
eval ("_root.bomb" + mynum).direct = direct;
eval ("_root.bomb" + mynum).titan = "false";
eval ("_root.bomb" + mynum).targ = targ.substring(0, 4);
eval ("_root.bomb" + mynum).gotoAndPlay(3);
bombvar = orgbombvar;
} else if (bombcnt > 30) {
_y = (_y - 0.5);
bombvar = bombvar * 0.5;
}
}
if (hits < 0) {
_root.bombertocnt = _root.bombertocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 371 MovieClip Frame 9
if (hits < 0) {
_root.bombertocnt = _root.bombertocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay (3);
}
Symbol 371 MovieClip Frame 12
randomRange = random(50);
if (randomRange > 35) {
_root.powerup.gotoAndStop(random(3) + 1);
_root.powerup.active = true;
_root.powerup._x = this._x;
_root.powerup._y = this._y;
}
Symbol 371 MovieClip Frame 22
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
targon = "false";
removeMovieClip(eval ("_root.scanner.enemy" + mynum));
gotoAndPlay ("off");
Symbol 371 MovieClip Frame 23
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." + _root.enlist[e]).listnum = eval ("_root." + _root.enlist[e]).listnum - 1;
e++;
}
targon = "false";
gotoAndPlay ("off");
Symbol 371 MovieClip Frame 24
_root.manager.gonecnt = _root.manager.gonecnt + 1;
removeMovieClip(eval ("_root.scanner.enemy" + mynum));
removeMovieClip(this);
stop();
Symbol 386 MovieClip Frame 1
targon = "false";
mynum = _name.charAt(4);
_visible = 0;
Symbol 386 MovieClip Frame 4
myx = _x;
myW = _width * 0.5;
myR = myx + myw;
myL = myx - myw;
if (targon == "false") {
if ((0 != (myR > -10)) & (0 != (myL < (_root.stagew + 10)))) {
_visible = 1;
targon = "true";
}
} else if ((0 != (myL > (_root.stageW + 10))) | (0 != (MyR < -10))) {
_visible = 0;
targon = "false";
}
if (_root.truck1._x < (myx - 25)) {
if (_root.convoylist.length > 0) {
gotoAndPlay ("done");
}
}
gotoAndPlay(_currentframe - 1);
Symbol 386 MovieClip Frame 7
truck1._visible = _root.truck1.live;
truck2._visible = _root.truck2.live;
truck3._visible = _root.truck3.live;
Symbol 386 MovieClip Frame 8
_root.survived = _root.convoylist.length;
_root.convoylist[10] = "test";
_root.truck1.gotoAndPlay("done");
_root.truck2.gotoAndPlay("done");
_root.truck3.gotoAndPlay("done");
_root.scanner.truck1.gotoAndPlay("off");
_root.scanner.truck2.gotoAndPlay("off");
_root.scanner.truck3.gotoAndPlay("off");
_root.convoyX = 10000;
_root.arrows.gotoAndStop("done");
Symbol 386 MovieClip Frame 43
if (_root.dead == "false") {
_root.complete = "true";
}
stop();
Symbol 390 MovieClip Frame 2
stop();
Symbol 390 MovieClip Frame 3
_x = xorg;
_y = yorg;
exp = "false";
if (_root.chopper.direct > 0) {
_x = (_x - (xmove * 2));
_y = (_y - (ymove * 2));
} else {
_x = (_x - xmove);
_y = (_y - ymove);
}
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 390 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 390 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 390 MovieClip Frame 8
stop();
removeMovieClip(this);
Symbol 398 MovieClip Frame 2
stop();
Symbol 398 MovieClip Frame 3
_x = xorg;
_y = yorg;
exp = "false";
if (_root.chopper.direct > 0) {
_x = (_x - (xmove * 2));
_y = (_y - (ymove * 2));
} else {
_x = (_x - xmove);
_y = (_y - ymove);
}
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 398 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 398 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 398 MovieClip Frame 8
removeMovieClip(this);
Symbol 398 MovieClip Frame 10
stop();
Symbol 406 MovieClip Frame 2
stop();
Symbol 406 MovieClip Frame 3
_x = xorg;
_y = yorg;
exp = "false";
if (_root.chopper.direct > 0) {
_x = (_x - (xmove * 2));
_y = (_y - (ymove * 2));
} else {
_x = (_x - xmove);
_y = (_y - ymove);
}
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 406 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 406 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 406 MovieClip Frame 8
removeMovieClip(this);
Symbol 406 MovieClip Frame 10
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 3
_x = xorg;
_y = yorg;
exp = "false";
if (_root.chopper.direct > 0) {
_x = (_x - (xmove * 2));
_y = (_y - (ymove * 2));
} else {
_x = (_x - xmove);
_y = (_y - ymove);
}
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 412 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 412 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if ((0 != ((0 != (_x < 0)) | (0 != (_y < 0)))) | (0 != (_x > _root.stagew))) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 412 MovieClip Frame 8
removeMovieClip(this);
Symbol 412 MovieClip Frame 10
stop();
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 2
stop();
Symbol 419 MovieClip Frame 3
stop();
Symbol 419 MovieClip Frame 15
stop();
Symbol 429 MovieClip Frame 8
stop();
Symbol 433 MovieClip Frame 7
stop();
Symbol 435 MovieClip Frame 1
listnum = _root.convoylist.length;
_root.convoylist[_root.convoylist.length] = _name;
randattack = 100;
hits = 5;
hitvar = 50 / hits;
cnt = 0;
mynum = _name.charAt(5);
targon = "true";
live = 1;
Symbol 435 MovieClip Frame 3
if (targon == "true") {
if (_root.enlist.length > 0) {
if (random(1000) < randattack) {
if (cnt > 10) {
cnt = 0;
} else {
cnt = cnt + 1;
}
cnt = cnt + 1;
thisnum = cnt;
duplicateMovieClip (_root.bullet, "truckfire" + thisnum, 16384 + ((200 * mynum) + cnt));
eval ("_root.truckfire" + thisnum).xmove = 10;
eval ("_root.truckfire" + thisnum).ymove = 10;
eval ("_root.truckfire" + thisnum).xorg = _x + 10;
eval ("_root.truckfire" + thisnum).yorg = _y - 10;
eval ("_root.truckfire" + thisnum)._rotation = 35;
eval ("_root.truckfire" + thisnum).gotoAndPlay("fire");
}
}
if ((0 != (_x <= -50)) | (0 != (_x >= (_root.stagew + 50)))) {
targon = "false";
_visible = 0;
}
} else if ((0 != (_x > -50)) & (0 != (_x < (_root.stagew + 50)))) {
targon = "true";
_visible = 1;
}
mylist = [];
mylist[0] = _name;
mylist[1] = 250;
_root.entarglist[0] = mylist;
if (hits < 0) {
gotoAndPlay ("explode");
live = 0;
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 435 MovieClip Frame 59
_root.convoylist.splice(listnum, 1);
e = listnum;
while (e < _root.convoylist.length) {
eval ("_root." + _root.convoylist[e]).listnum = eval ("_root." + _root.convoylist[e]).listnum - 1;
e++;
}
eval ("_root.scanner." + _name)._visible = 0;
Symbol 435 MovieClip Frame 60
stop();
Symbol 456 MovieClip Frame 1
function flight() {
myx = _x;
myy = _y;
myw = _width * 0.5;
myh = _height * 0.5;
_root.playerT = myy - myh;
_root.playerB = myy + myh;
_root.playerR = myx + myw;
_root.playerL = myx - myw;
_root.playerX = myx;
_root.playerY = myy;
buty = "false";
butx = "false";
if (key.isdown(key.up)) {
chopper.jet.gotoAndPlay(2);
buty = "true";
if (ymove > -12) {
ymove = ymove - 2;
} else {
ymove = -12;
}
} else if (key.isdown(key.down)) {
buty = "true";
if (ymove < 12) {
ymove = ymove + 2;
} else {
ymove = 12;
}
}
if (direct > 0) {
if (key.isdown(key.left)) {
butx = "true";
chopper.jet.gotoAndPlay(2);
if (xmove > -10) {
xmove = xmove - 3;
} else {
xmove = -10;
}
if (_x < 430) {
_x = (_x + 12);
}
if (chopper._rotation > -30) {
chopper._rotation = chopper._rotation - 5;
chopper.jet._rotation = chopper.jet._rotation - 5;
}
} else {
if (chopper._rotation < 0) {
chopper._rotation = chopper._rotation + 5;
chopper.jet._rotation = chopper.jet._rotation + 5;
}
if (key.isdown(key.right)) {
chopper._xscale = chopper._xscale * -1;
chopper._rotation = chopper._rotation * -1;
direct = direct * -1;
}
}
} else if (key.isdown(key.right)) {
butx = "true";
chopper.jet.gotoAndPlay(2);
if (xmove < 10) {
xmove = xmove + 3;
} else {
xmove = 10;
}
if (_x > 180) {
_x = (_x - 11);
}
if (chopper._rotation < 30) {
chopper._rotation = chopper._rotation + 5;
chopper.jet._rotation = chopper.jet._rotation - 5;
}
} else {
if (chopper._rotation > 0) {
chopper._rotation = chopper._rotation - 5;
chopper.jet._rotation = chopper.jet._rotation + 5;
}
if (key.isdown(key.left)) {
chopper._xscale = chopper._xscale * -1;
chopper._rotation = chopper._rotation * -1;
direct = direct * -1;
}
}
offset = random(6);
bulletxmove = (Math.cos(0.0174532925199 * chopper._rotation) * (20 + offset)) * direct;
bulletymove = (Math.sin(0.0174532925199 * chopper._rotation) * (20 + offset)) * direct;
bulletxorg = Math.cos(0.0174532925199 * (chopper._rotation - 90)) * 14;
bulletyorg = Math.sin(0.0174532925199 * (chopper._rotation - 90)) * 14;
testx = _x + xmove;
testy = _y + ymove;
if ((0 != (testx > 300)) & (0 != (testx < (_root.stagew - 300)))) {
if (direct > 0) {
_root.movevar = -3;
} else {
_root.movevar = 3;
}
} else {
testx2 = _root.scanner.targbox._x + (xmove * 0.1);
if ((0 != (testx2 > 450)) & (0 != (testx2 < 550))) {
xmove = 0;
_root.movevar = 0;
} else if ((0 != (testx2 < 0)) & (0 != (testx2 > -100))) {
xmove = 0;
_root.movevar = 0;
} else {
_root.movevar = xmove * -1;
_root.scanner.targbox._x = testx2;
}
}
if ((0 != (testy > 24)) & (0 != (testy < (_root.stageh - 50)))) {
_y = testy;
}
if (butx == "false") {
if (Math.abs(xmove) > 1) {
xmove = xmove * 0.9;
} else {
xmove = 0;
}
}
if (buty == "false") {
if (Math.abs(ymove) > 1) {
ymove = ymove * 0.7;
return(undefined);
}
ymove = 0;
}
}
move = 10;
cnt = 0;
flip = "false";
blink = "false";
_root.collide = "true";
direct = 1;
hits = 20;
hitvar = 50 / hits;
ymove = 0;
xmove = 0;
buty = "false";
butx = "false";
_root.arrows.gotoAndStop("blank");
Symbol 456 MovieClip Frame 2
flip = "false";
Symbol 456 MovieClip Frame 3
flight();
Symbol 456 MovieClip Frame 4
if (hits < 0) {
gotoAndPlay ("explode");
} else {
flight();
if (key.isdown(key.space)) {
if (cnt > 30) {
cnt = 0;
} else {
cnt = cnt + 1;
}
cnt = cnt + 1;
duplicateMovieClip (eval ("_root." + _root.weapon), cnt, 16384 + (1000 + cnt));
eval ("_root." + cnt).bullet._xscale = eval ("_root." + cnt).bullet._xscale * direct;
eval ("_root." + cnt).xmove = bulletxmove;
eval ("_root." + cnt).ymove = 0;
eval ("_root." + cnt).xorg = _x + bulletxorg;
eval ("_root." + cnt).yorg = _y - bulletyorg;
eval ("_root." + cnt).gotoAndPlay("fire");
}
gotoAndPlay(_currentframe - 1);
}
if (blink == "true") {
_root.weapon = "bullet";
blinkcnt = blinkcnt + 1;
hits = 20;
_root.field1.power.gotoAndStop(1);
_alpha = (_alpha + 2);
if (blinkcnt > 32) {
blink = "false";
_alpha = 100;
}
}
if (_root.arrows._currentframe < 80) {
dist = _root.chopper._x - _root.truck1._x;
if ((dist > 500) && (_root.arrows._currentframe < 5)) {
_root.arrows.gotoAndPlay("left");
} else if ((dist < -500) && (_root.arrows._currentframe < 5)) {
_root.arrows.gotoAndPlay("right");
}
if (Math.abs(dist) < 500) {
_root.arrows.gotoAndStop("blank");
}
}
Symbol 456 MovieClip Frame 5
_root.movevar = 0;
_name = "ghost";
myx = 2000;
myy = 2000;
myw = _width * 0.5;
myh = _height * 0.5;
_root.playerT = myy - myh;
_root.playerB = myy + myh;
_root.playerR = myx + myw;
_root.playerL = myx - myw;
_root.playerX = myx;
_root.playerY = myy;
_root.scanner.targbox.myguy._visible = 0;
_root.arrows.gotoAndStop("blank");
Symbol 456 MovieClip Frame 21
_root.lives = _root.lives - 1;
if (_root.lives < 1) {
_root.dead = "true";
stop();
} else {
_alpha = 35;
hits = 20;
blinkcnt = 0;
blink = "true";
_root.field1.field.gotoAndPlay(1);
_root.field1.percent.gotoAndPlay(1);
_root.collide = "true";
direct = 1;
_name = "chopper";
_root.scanner.targbox.myguy._visible = 1;
gotoAndPlay ("return");
}
Symbol 458 MovieClip Frame 1
popcnt = 0;
gonecnt = 0;
endcnt = 0;
Symbol 458 MovieClip Frame 2
randpop = random(25) + _root.refreshrate;
cnt = 0;
Symbol 458 MovieClip Frame 4
cnt = cnt + 1;
if (_root.thislev == "level7") {
if (_root.convoylist.length < 2) {
_root.restart = "true";
_root.scanner.gotoAndPlay("out");
_root.play();
}
}
if ((0 != (_root.convoylist.length < 1)) | (0 != (_root.dead == "true"))) {
_root.restart = "true";
_root.scanner.gotoAndPlay("out");
_root.play();
} else if (_root.complete == "true") {
_root.restart = "true";
_root.scanner.gotoAndPlay("out");
_root.gotoAndPlay(_root._currentframe + 3);
}
if (popcnt < _root.refreshmax) {
if (cnt > randpop) {
_root.scanner.populate2();
popcnt = popcnt + 1;
gotoAndPlay (2);
} else {
gotoAndPlay(_currentframe - 1);
}
} else {
if (_root.refreshtimed == "true") {
if (gonecnt == popcnt) {
_root.survived = _root.convoylist.length;
endcnt = endcnt + 1;
if (endcnt > 19) {
_root.restart = "true";
_root.scanner.gotoAndPlay("out");
_root.gotoAndPlay(_root._currentframe + 3);
endcnt = 0;
}
}
}
gotoAndPlay(_currentframe - 1);
}
_root.enleft = _root.refreshmax - gonecnt;
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 42
gotoAndPlay ("left");
Symbol 469 MovieClip Frame 80
gotoAndPlay ("right");
Symbol 469 MovieClip Frame 81
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 2
duplicateMovieClip (_root.ship, "ship" + mynum, 16384 + (10 + mynum));
eval ("_root.ship" + mynum)._x = (_x - _parent.targbox._x) * 10;
eval ("_root.ship" + mynum)._y = _y * 10;
eval ("_root.ship" + mynum).gotoAndPlay(2);
eval ("_root.ship" + mynum).mynum = mynum;
eval ("_root.ship" + mynum).speed = speed;
eval ("_root.ship" + mynum).direct = direct;
play();
Symbol 472 MovieClip Frame 4
if ((0 != (_x > 486)) | (0 != (_x < -2))) {
eval ("_root.ship" + mynum).gotoAndPlay("off");
} else {
_x = (_parent.targbox._x + (eval ("_root.ship" + mynum)._x * 0.1));
_y = (eval ("_root.ship" + mynum)._y * 0.1);
}
gotoAndPlay(_currentframe - 1);
Symbol 474 MovieClip Frame 1
stop();
Symbol 474 MovieClip Frame 2
duplicateMovieClip (_root.fighter, "ship" + mynum, 16384 + (10 + mynum));
eval ("_root.ship" + mynum)._x = (_x - _parent.targbox._x) * 10;
eval ("_root.ship" + mynum)._y = _y * 10;
eval ("_root.ship" + mynum).gotoAndPlay(2);
eval ("_root.ship" + mynum).mynum = mynum;
eval ("_root.ship" + mynum).speed = speed;
eval ("_root.ship" + mynum).direct = direct;
play();
Symbol 474 MovieClip Frame 4
if ((0 != (_x > 486)) | (0 != (_x < -2))) {
eval ("_root.ship" + mynum).gotoAndPlay("off");
} else {
_x = (_parent.targbox._x + (eval ("_root.ship" + mynum)._x * 0.1));
_y = (eval ("_root.ship" + mynum)._y * 0.1);
}
gotoAndPlay(_currentframe - 1);
Symbol 476 MovieClip Frame 1
stop();
Symbol 476 MovieClip Frame 2
duplicateMovieClip (_root.bomber, "ship" + mynum, 16384 + (10 + mynum));
eval ("_root.ship" + mynum)._x = (_x - _parent.targbox._x) * 10;
eval ("_root.ship" + mynum)._y = _y * 10;
eval ("_root.ship" + mynum).gotoAndPlay(2);
eval ("_root.ship" + mynum).mynum = mynum;
eval ("_root.ship" + mynum).speed = speed;
eval ("_root.ship" + mynum).direct = direct;
play();
Symbol 476 MovieClip Frame 4
if ((0 != (_x > 486)) | (0 != (_x < -2))) {
eval ("_root.ship" + mynum).gotoAndPlay("off");
} else {
_x = (_parent.targbox._x + (eval ("_root.ship" + mynum)._x * 0.1));
_y = (eval ("_root.ship" + mynum)._y * 0.1);
}
gotoAndPlay(_currentframe - 1);
Symbol 478 MovieClip Frame 1
_x = (_root.chopper._x * 0.1);
_y = (_root.chopper._y * 0.1);
Symbol 478 MovieClip Frame 3
_x = (_root.chopper._x * 0.1);
_y = (_root.chopper._y * 0.1);
gotoAndPlay(_currentframe - 1);
Symbol 483 MovieClip Frame 1
cnt = 0;
stop();
Symbol 483 MovieClip Frame 2
refresh = "false";
cnt = 0;
tg2._alpha = 10;
tg2._xscale = 300;
tg2._yscale = 300;
Symbol 483 MovieClip Frame 4
if (refresh == "false") {
cnt = cnt + 1;
if (cnt < 10) {
tg2._rotation = tg2._rotation - 5;
tg2._alpha = tg2._alpha + 10;
tg2._xscale = tg2._xscale - 10;
tg2._yscale = tg2._yscale - 10;
gotoAndPlay(_currentframe - 1);
} else if (cnt < 40) {
tg2._rotation = tg2._rotation - 5;
gotoAndPlay(_currentframe - 1);
} else if (cnt < 50) {
tg2._rotation = tg2._rotation - 5;
tg2._alpha = tg2._alpha - 10;
tg2._xscale = tg2._xscale + 10;
tg2._yscale = tg2._yscale + 10;
gotoAndPlay(_currentframe - 1);
} else {
gotoAndStop (1);
}
} else {
gotoAndPlay (2);
}
Symbol 484 MovieClip Frame 1
alive = "true";
Symbol 484 MovieClip Frame 2
_x = (_x - _root.trucksmove);
eval ("_root." + _name)._x = (_x - _parent.targbox._x) * 10;
Symbol 484 MovieClip Frame 3
if (alive == "true") {
_x = (_x - _root.trucksmove);
eval ("_root." + _name)._x = (_x - _parent.targbox._x) * 10;
gotoAndPlay(_currentframe - 1);
}
Symbol 484 MovieClip Frame 5
_x = 600;
eval ("_root." + _name)._x = (_x - _parent.targbox._x) * 10;
stop();
Symbol 486 MovieClip Frame 2
eval ("_root." + _name)._x = (_x - _parent.targbox._x) * 10;
Symbol 486 MovieClip Frame 3
eval ("_root." + _name)._x = (_x - _parent.targbox._x) * 10;
gotoAndPlay(_currentframe - 1);
Symbol 488 MovieClip Frame 2
eval ("_root." + _name)._x = (_x - _parent.targbox._x) * 10;
Symbol 488 MovieClip Frame 3
eval ("_root." + _name)._x = (_x - _parent.targbox._x) * 10;
gotoAndPlay(_currentframe - 1);
Symbol 489 MovieClip Frame 1
function populate() {
for(;;){
if (i > _root.ennum) {
return(undefined);
}
xloc = random(80) * 5;
yloc = random(23) + 5;
if (i <= _root.shipnum) {
duplicateMovieClip (enemy, "enemy" + i, 16384 + (i + 10));
speed = (random(4) + _root.shipspeed) - 2;
} else if (i <= _root.fighternum) {
duplicateMovieClip (fighter, "enemy" + i, 16384 + (i + 10));
speed = (random(5) + _root.fighterspeed) - 3;
} else if (i <= _root.bombernum) {
duplicateMovieClip (bomber, "enemy" + i, 16384 + (i + 10));
speed = random(2) + _root.bomberspeed;
}
eval ("enemy" + i)._x = xloc;
eval ("enemy" + i)._y = yloc;
eval ("enemy" + i).mynum = i;
eval ("enemy" + i).speed = speed;
eval ("enemy" + i).direct = 1;
eval ("enemy" + i).gotoAndPlay(2);
i++;
};
}
function populate2() {
rand = random(7) - 3;
i = i + 1;
if (rand > 0) {
xloc = 0;
direct = 1;
} else {
xloc = 484;
direct = -1;
}
yloc = random(23) + 5;
if (_root.generatemulti == 2) {
rand = random(30);
} else if (_root.generatemulti == 3) {
rand = random(35);
} else {
rand = 25;
}
if (rand < 15) {
duplicateMovieClip (fighter, "enemy" + i, 16384 + (i + 10));
speed = random(5) + _root.fighterspeed;
} else if ((0 != (rand >= 15)) & (0 != (rand <= 33))) {
duplicateMovieClip (enemy, "enemy" + i, 16384 + (i + 10));
speed = random(3) + _root.shipspeed;
} else {
duplicateMovieClip (bomber, "enemy" + i, 16384 + (i + 10));
speed = random(2) + _root.bomberspeed;
}
eval ("enemy" + i)._x = xloc;
eval ("enemy" + i)._y = yloc;
eval ("enemy" + i).mynum = i;
eval ("enemy" + i).speed = speed;
eval ("enemy" + i).direct = direct;
eval ("enemy" + i).gotoAndPlay(2);
}
i = 0;
stop();
Symbol 489 MovieClip Frame 3
populate();
stop();
Symbol 489 MovieClip Frame 5
stop();
Symbol 489 MovieClip Frame 7
stop();
Symbol 489 MovieClip Frame 9
stop();
Symbol 489 MovieClip Frame 11
stop();
Symbol 489 MovieClip Frame 14
stop();
Symbol 491 MovieClip Frame 1
if (_name == "stars3") {
buddy = "stars4";
} else {
buddy = "stars3";
}
Symbol 491 MovieClip Frame 3
ratio = 0.3;
_x = (_x + (_root.movevar * ratio));
myR = _x + (_width * 0.5);
myL = _x - (_width * 0.5);
if (_root.movevar > 0) {
if (myL > _root.stagew) {
_x = (eval ("_root." + buddy)._x - (eval ("_root." + buddy)._width - (_root.movevar * ratio)));
}
} else if (_root.movevar < 0) {
if (myR < 0) {
_x = (eval ("_root." + buddy)._x + (eval ("_root." + buddy)._width + (_root.movevar * ratio)));
}
}
gotoAndPlay(_currentframe - 1);