Frame 1
stop();
Stage.showMenu = false;
this.onEnterFrame = function () {
var _local1 = this;
sofar = _local1.getBytesLoaded();
total = _local1.getBytesTotal();
Bar._width = int((sofar / total) * 100);
if (sofar == total) {
delete _local1.onEnterFrame;
play();
}
};
Frame 9
gotoAndPlay (10);
Frame 10
function getNetDebugVersion() {
return(1);
}
function NetDebugConfig() {
}
function attachNetDebugConfigFunctions(ndc) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
}
function getDefaultNetDebugConfig(iscontroller) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (iscontroller) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.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) {
var _local1 = this;
_local1.init();
_local1.EventType = "NetDebugError";
_local1.Error = dataobj;
}
function NetDebugTraceEvent(traceobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Trace";
_local1.Trace = traceobj;
}
function NetDebugTraceNetServicesEvent(w, s, n, m) {
var _local1 = this;
_local1.init();
_local1.EventType = "NetServicesTrace";
_local1.Trace = m;
_local1.Who = w;
_local1.Severity = s;
_local1.Number = n;
}
function NetDebugNCEvent() {
}
function NetDebugResultEvent(resultobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Result";
_local1.Result = resultobj;
}
function NetDebugStatusEvent(statusobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Status";
_local1.Status = statusobj;
}
function NetDebugConnectEvent(args) {
var _local1 = this;
var _local2 = args;
_local1.init();
_local1.EventType = "Connect";
_local1.ConnectString = _local2[0];
if (_local2[1] != null) {
_local1.UserName = _local2[1];
}
if (_local2[2] != null) {
_local1.Password = _local2[2];
}
}
function NetDebugCallEvent(args) {
var _local2 = this;
var _local3 = args;
_local2.init();
_local2.EventType = "Call";
_local2.MethodName = _local3[0];
_local2.Parameters = new Array();
var alen = _local3.length;
var _local1 = 2;
while (_local1 < alen) {
_local2.Parameters[_local1 - 2] = _local3[_local1];
_local1++;
}
}
function NetDebugCloseEvent() {
this.init();
this.EventType = "Close";
}
function NetDebugAddHeaderEvent(args) {
var _local1 = this;
var _local2 = args;
_local1.init();
_local1.EventType = "AddHeader";
_local1.HeaderName = _local2[0];
_local1.MustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.HeaderObject = _local2[2];
}
}
function NetDebugRtmpLogEvent(infoobj) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Trace";
_local1.Source = "Flash Communication Server";
_local1.Info = infoobj;
_local1.Trace = infoobj.description;
}
function NetDebugDuplicateNCDErrorEvent() {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.Message = "NCD_ALREADY_RUNNING";
}
function NetDebugFailedSendErrorEvent(ev) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.OriginalEvent = ev;
_local1.Message = "NCD_FAILED_TO_SEND_EVENT";
}
function NetDebugInfoErrorEvent(infoobj, mes) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.Info = infoobj;
if (mes != null) {
_local1.Message = mes;
}
}
function NetDebugReceiveCallEvent(mName, args) {
var _local1 = this;
_local1.init();
_local1.EventType = "ReceivedCall";
_local1.MethodName = mName;
_local1.Parameters = args;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (_local2[0].charAt(4) == ":") {
_local1.m_Protocol = _local3;
} else {
_local1.m_Protocol = _local2[0].substr(0, 5);
}
} else {
_local1.m_Protocol = "http";
}
_local1.sendClientEvent(new NetDebugConnectEvent(_local2));
if (_local1.isRealTime()) {
_local1.m_ConnectString = _local2[0];
getNetDebug().sendCommand(new StartRTMPTraceCommand(_local2[0]));
var ret = _local1.realconnect.apply(_local1, _local2);
_local1.realcall("@getClientID", new RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(_local1.realconnect.apply(_local1, _local2));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugCallEvent(_local2));
_local1.addNetDebugHeader();
if (_local1.m_Config.app_server) {
_local2[1] = new NetDebugResponseProxy(_local1, _local2[1]);
return(_local1.realcall.apply(_local1, _local2));
}
return(_local1.realcall.apply(_local1, _local2));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugCloseEvent());
if (_local1.isRealTime()) {
getNetDebug().sendCommand(new StopRTMPTraceCommand(_local1.m_ConnectString, _local1.m_ClientId));
}
var _local2 = _local1.realclose();
getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugAddHeaderEvent(arguments));
return(_local1.realaddHeader.apply(_local1, 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) {
var _local2 = this;
var _local3 = _global;
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (iscontroller) {
connectname = sToController;
_local2.sendnames = new Array();
_local2.sendnames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendnames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendnames = new Array();
_local2.sendnames.push(sToController);
}
_local2.setDomainName(domainname);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (iscontroller) {
receiver.onReceiveError(new NetDebugDuplicateNCDErrorEvent());
}
}
}
}
}
function LocalCommand() {
}
function UpdateNetDebugConfigCommand(dataobj) {
this.init("updateConfig", dataobj);
}
function GetConfigCommand() {
this.init("getConfig", null);
}
function StartRTMPTraceCommand(cs) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
this.init("startRealTimeTrace", _local1);
}
function AddRTMPClientCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
this.init("addRealTimeClient", _local1);
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
this.init("stopRealTimeTrace", _local1);
}
function NetDebug() {
var _local1 = this;
_local1.m_ncs = new Array();
_local1.m_Config = getDefaultNetDebugConfig();
_local1.m_glc = new GlobalLocalConnection(false, _local1);
_local1.m_glc.sendCommand(new GetConfigCommand());
_local1.m_NextNewId = 0;
}
function getNetDebug() {
return(_global.netDebugInstance);
}
function inserths_Result(result) {
_root.inserthsresult = result;
}
_global.RsDataProviderClass = function () {
this.init();
};
RsDataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
mx.events.EventDispatcher.initialize(_local1);
};
RsDataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {eventName:"updateAll"};
viewRef.modelChanged(_local1);
};
RsDataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if (_local1 < 0) {
} else {
if (_local1 < _local2.length) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(value) == "object") {
_local2.items[_local1] = value;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var _local3 = {eventName:"addItems", firstItem:_local1, lastItem:_local1};
_local2.updateViews(_local3);
}
};
RsDataProviderClass.prototype.addItem = function (value) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.addItemAt(_local1.length, value);
}
};
RsDataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {eventName:"deleteItems", firstItem:_local1, lastItem:_local1};
_local2.updateViews(_local3);
return(tmpItm);
}
return(undefined);
};
RsDataProviderClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items = new Array();
_local1.updateViews({eventName:"removeItems", firstItem:0, lastItem:_local1.length - 1});
}
};
RsDataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = itemObj;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({eventName:"updateItems", firstItem:_local1, lastItem:_local1});
}
};
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) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({eventName:"sort"});
}
};
RsDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({eventName:"sort", fieldName:fieldName, order:order});
}
};
RsDataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = eventObj;
_local2.type = "modelChanged";
this.dispatchEvent(_local2);
var _local3 = this.views.length;
if (_local3 > 0) {
switch (_local2.eventName) {
case "addItems" :
_local2.event = "addRows";
break;
case "updateItems" :
_local2.event = "updateRows";
break;
case "removeItems" :
_local2.event = "deleteRows";
}
_local2.firstRow = _local2.firstItem;
_local2.lastRow = _local2.lastItem;
var _local1 = 0;
while (_local1 < _local3) {
this.views[_local1].modelChanged(_local2);
_local1++;
}
}
};
_global.RecordSet = function (columnNames) {
var _local1 = this;
if (_local1.mTitles != null) {
_local1.views = new Array();
} else {
_local1.init();
if (_local1.serverinfo == null) {
if (_local1.serverInfo != null) {
_local1.serverinfo = _local1.serverInfo;
}
}
if (_local1.serverinfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverinfo.version != 1) {
NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverinfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverinfo.cursor == null) ? 0 : (_local1.serverinfo.cursor - 1)), _local1.serverinfo.initialData);
if (_local1.serverinfo.initialData.length != _local1.serverinfo.totalCount) {
_local1.mRecordSetID = _local1.serverinfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverinfo.serviceName == null) ? "RecordSet" : (_local1.serverinfo.serviceName));
_local1.mTotalCount = _local1.serverinfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverinfo = null;
}
}
};
RecordSet.prototype = new RsDataProviderClass();
Object.registerClass("RecordSet", RecordSet);
RecordSet.prototype._setParentService = function (service) {
this.gateway_conn = service.nc;
};
RecordSet.prototype.getRecordSetService = function () {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordset();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = 0;
}
}
return(_local1.mRecordSetService);
};
RecordSet.prototype.getColumnNames = function () {
return(this.mTitles);
};
RecordSet.prototype.getLength = function () {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
};
RecordSet.prototype.addProperty("length", RecordSet.prototype.getLength, null);
RecordSet.prototype.getItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.length)) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
};
RecordSet.prototype.setField = function (index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews({eventName:"updateItems", firstItem:_local1, lastItem:_local1});
}
};
RecordSet.prototype.filter = function (filterFunction, context) {
if (!this.checkLocal()) {
} else {
var _local3 = new RecordSet(this.mTitles);
var rcount = this.length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = this.getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
};
RecordSet.prototype.sort = function (compareFunc) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews({eventName:"sort"});
}
};
RecordSet.prototype.isLocal = function () {
return(this.mRecordSetID == null);
};
RecordSet.prototype.isFullyPopulated = function () {
return(this.isLocal());
};
RecordSet.prototype.getNumberAvailable = function () {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.length);
}
return(_local1.mRecordsAvailable);
};
RecordSet.prototype.setDeliveryMode = function (mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = mode;
_local1.mDeliveryMode = _local3;
_local1.stopFetchAll();
if (_local3 == "ondemand") {
} else {
if (_local2 == null) {
_local2 = _local1.views[0].getRowCount();
if (_local2 == null) {
_local2 = 25;
}
}
if (_local3 == "page") {
if (numPrefetchPages == null) {
numPrefetchPages = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = numPrefetchPages;
} else if (_local3 == "fetchall") {
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
} else {
NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
};
RecordSet.prototype.getRecords_Result = function (info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews({eventName:"updateItems", firstItem:_local2.Cursor - 1, lastItem:((_local2.Cursor - 1) + _local2.Page.length) - 1});
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews({eventName:"allRows"});
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.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 _local3 = new Object();
var alen = anArray.length;
var _local1 = 0;
while (_local1 < alen) {
var _local2 = this.mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
};
RecordSet.prototype.setData = function (start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local2 = 0;
while (_local2 < datalen) {
var _local3 = _local2 + start;
var rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
NetServices.trace("RecordSet", "warning", 106, "Already got record # " + recordIndex);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
};
RecordSet.prototype.requestOneRecord = function (index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews({eventName:"fetchRows", firstItem:_local2, lastItem:_local2});
}
};
RecordSet.prototype.requestRecord = function (index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.requestRecordRange(_local2, _local3);
}
};
RecordSet.prototype.requestRecordRange = function (index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.length) {
lastIndex = _local2.length - 1;
}
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
var _local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
var last = (_local1 - 1);
if (_local3 <= last) {
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews({eventName:"fetchRows", firstItem:_local3, lastItem:last});
}
}
return(highestRequested);
};
RecordSet.prototype.startFetchAll = function (pagesize) {
var _local1 = this;
_local1.mDataFetcher.disable();
_local1.mDataFetcher = new RsDataFetcher(_local1, 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) {
var _local1 = this;
_local1.mRecordSet = recordSet;
_local1.mRecordSet.addView(_local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
};
RsDataFetcher.prototype.disable = function () {
var _local1 = this;
_local1.mEnabled = false;
_local1.mRecordSet.removeView(_local1);
};
RsDataFetcher.prototype.doNext = function () {
var _local1 = this;
if (!_local1.mEnabled) {
} else {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.length) {
return;
}
_local1.mHighestRequested = _local1.mRecordSet.requestRecordRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
};
RsDataFetcher.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
};
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local3 = result;
var _local1 = this.service.client;
_local3._setParentService(this.service);
var _local2 = this.methodName + "_Result";
if (typeof(_local1[_local2]) == "function") {
_local1[_local2](_local3);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local3);
} else {
NetServices.trace("NetServices", "info", 1, (_local2 + " was received from server: ") + _local3);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local1 = result;
var _local2 = this.service.client;
var _local3 = this.methodName + "_Status";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](_local1);
} else if (typeof(_local2.onStatus) == "function") {
_local2.onStatus(_local1);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local1);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local1);
} else {
NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local1.level) + "> ") + _local1.description);
}
};
_global.NetServiceProxy = function (nc, serviceName, client) {
var _local1 = this;
if (nc != null) {
_local1.nc = nc;
_local1.serviceName = serviceName;
_local1.client = client;
}
};
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local1 = this;
var _local2 = arguments;
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
};
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetConnection.prototype.getService = function (serviceName, client) {
var _local1 = new NetServiceProxy(this, serviceName, client);
return(_local1);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
var _local1 = info;
this.addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
};
NetConnection.prototype.AppendToGatewayUrl = function (urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
};
NetConnection.prototype.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
NetConnection.prototype.clone = function () {
var _local1 = new NetConnection();
_local1.connect(this.uri);
return(_local1);
};
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) {
var _local1 = url;
if (_local1 == undefined) {
_local1 = NetServices.gatewayUrl;
if (_local1 == undefined) {
_local1 = NetServices.defaultGatewayUrl;
}
}
if (_local1 == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _local2 = new NetConnection();
_local2.connect(_local1);
return(_local2);
};
NetServices.getHostUrl = function () {
var _local2 = _root;
if (!NetServices.isHttpUrl(_local2._url)) {
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
return(null);
}
return(_local2._url.substring(0, _local1));
};
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) {
var _local1 = from;
var _local2 = to;
for (var _local3 in _local1) {
if ((_local3 == "__proto__") || (_local3 == "function")) {
continue;
}
if (typeof(_local1[_local3]) == "object") {
if (_local2[_local3] == undefined) {
_local2[_local3] = new _local1[_local3].__proto__.constructor();
}
copyProperties(_local2[_local3], _local1[_local3]);
} else {
_local2[_local3] = _local1[_local3];
}
}
};
_global.copyObject = function (obj) {
var _local2 = obj;
if (typeof(_local2) == "object") {
var _local1 = new _local2.__proto__.constructor();
copyProperties(_local1, _local2);
return(_local1);
}
return(_local2);
};
_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) {
var _local1 = this;
_local1.linerenderer = renderer;
_local1.output = "";
nestedObjectDump(0, null, obj, _local1);
};
StringLineAdder.prototype.getString = function () {
return(this.output);
};
StringLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local1 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local1 != null) {
this.output = this.output + (_local1 + newline);
}
return(true);
};
_global.ListLineAdder = function (listbox, obj, renderer) {
var _local1 = this;
_local1.linerenderer = renderer;
_local1.output_lb = listbox;
nestedObjectDump(0, null, obj, _local1);
};
ListLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local1 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local1 != null) {
this.output_lb.addItem(_local1);
}
return(true);
};
_global.TreeLineRenderer = function (pre, typedelim, valuedelim, post) {
this.init(pre, typedelim, valuedelim, post);
};
TreeLineRenderer.prototype.init = function (pre, typedelim, valuedelim, post) {
var _local1 = this;
_local1.prechar = pre;
_local1.typechar = typedelim;
_local1.valuechar = valuedelim;
_local1.postchar = post;
};
TreeLineRenderer.prototype.getLine = function (level, objname, objtype, objvalue, objnum) {
var _local3 = this;
var _local2 = "";
var _local1 = 0;
while (_local1 < level) {
_local2 = _local2 + "\t";
_local1++;
}
var valuedelim = _local3.valuechar;
if ((objname != null) && (objtype != "object")) {
_local2 = _local2 + (((_local3.prechar + objtype) + _local3.typechar) + objname);
} else if (objtype == "object") {
if (typeof(objvalue) == "number") {
_local2 = _local2 + (((_local3.prechar + objtype) + _local3.typechar) + objname);
_local2 = _local2 + ((valuedelim + "object#") + objvalue);
objvalue = null;
} else {
_local2 = _local2 + (((((_local3.prechar + objtype) + "#") + objnum) + _local3.typechar) + objname);
}
} else {
_local2 = _local2 + (_local3.prechar + objtype);
valuedelim = _local3.typechar;
}
if (objvalue != null) {
_local2 = _local2 + (valuedelim + objvalue);
}
_local2 = _local2 + _local3.postchar;
return(_local2);
};
_global.nestedObjectDump = function (level, objname, obj, lineadder) {
var _local1 = obj;
if (level == 0) {
nestedObjectDump.callcount++;
nestedObjectDump.objcount = -1;
}
if (_local1 == null) {
return(lineadder.addLine(level, objname, "undefined"));
}
if (typeof(_local1) == "function") {
return(lineadder.addLine(level, objname, "function"));
}
if (typeof(_local1) == "object") {
if ((_local1.__nestedObjectDump_id != undefined) && (_local1.__nestedObjectDump_ref == nestedObjectDump.callcount)) {
return(lineadder.addLine(level, objname, "object", _local1.__nestedObjectDump_id));
}
nestedObjectDump.objcount++;
if (lineadder.addLine(level, objname, "object", null, nestedObjectDump.objcount) == nestedObjectDump.skip) {
return(nestedObjectDump.proceed);
}
_local1.__nestedObjectDump_id = nestedObjectDump.objcount;
_local1.__nestedObjectDump_ref = nestedObjectDump.callcount;
var props = new Array();
var _local3 = new Array();
for (var prop in _local1) {
if (((prop == "__proto__") || (prop == "__nestedObjectDump_id")) || (prop == "__nestedObjectDump_ref")) {
continue;
}
if (typeof(_local1[prop]) == "object") {
_local3.push(prop);
} else {
props.push(prop);
}
}
if ((_local3.length == 0) && (props.length == 0)) {
if ((typeof(_local1.toString) == "function") && (_local1.toString() != "")) {
return(lineadder.addLine(level + 1, null, "string", _local1.toString()));
}
if (lineadder.noProps != undefined) {
lineadder.noProps(level + 1);
return(nestedObjectDump.proceed);
}
}
props.sort();
_local3.sort();
var bret = true;
var plen = props.length;
var _local2 = 0;
while (_local2 < plen) {
if (nestedObjectDump(level + 1, props[_local2], _local1[props[_local2]], lineadder) == nestedObjectDump.stop) {
bret = false;
break;
}
_local2++;
}
if (bret) {
var olen = _local3.length;
_local2 = 0;
while (_local2 < olen) {
if (!nestedObjectDump(level + 1, _local3[_local2], _local1[_local3[_local2]], lineadder)) {
bret = false;
}
_local2++;
}
}
return(nestedObjectDump.proceed);
}
return(lineadder.addLine(level, objname, typeof(_local1), _local1));
};
nestedObjectDump.proceed = 1;
nestedObjectDump.skip = 2;
nestedObjectDump.stop = 3;
nestedObjectDump.callcount = 0;
nestedObjectDump.objcount = 0;
Object.registerClass("NetDebugConfig", NetDebugConfig);
NetDebugEvent.prototype.init = function () {
var _local1 = this;
_local1.EventType = "DebugEvent";
_local1.Source = "Client";
_local1.MovieUrl = unescape(_root._url);
_local1.initDate();
};
NetDebugEvent.prototype.initDate = function () {
var _local1 = new Date();
this.Date = _local1;
this.Time = _local1.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 _local1 = ev;
var _local2 = new Object();
if (_local1.EventType != null) {
_local2.EventType = _local1.EventType;
}
if (_local1.Source != null) {
_local2.Source = _local1.Source;
}
if (_local1.MovieUrl != null) {
_local2.MovieUrl = _local1.MovieUrl;
}
if (_local1.Date != null) {
_local2.Date = _local1.Date;
}
if (_local1.Time != null) {
_local2.Time = _local1.Time;
}
if (_local1.Protocol != null) {
_local2.Protocol = _local1.Protocol;
}
if (_local1.DebugId != null) {
_local2.DebugId = _local1.DebugId;
}
return(_local2);
};
NetConnection.prototype.attachDebug = function () {
var _local1 = this;
if (!_local1.m_Attached) {
_local1.m_Attached = true;
_local1.m_HeaderAdded = false;
_local1.m_Config = new NetDebugConfig();
copyProperties(_local1.m_Config, getNetDebug().m_Config);
_local1.m_Protocol = "none";
_local1.m_Id = getNetDebug().addNetConnection(_local1);
}
};
NetConnection.prototype.sendDebugEvent = function (eventobj) {
var _local1 = eventobj;
_local1.Protocol = this.m_Protocol;
_local1.DebugId = this.m_Id;
return(getNetDebug().onEvent(_local1));
};
NetConnection.prototype.sendServerEvent = function (eventobj) {
eventobj.MovieUrl = unescape(_root._url);
if (!this.sendDebugEvent(eventobj)) {
}
};
NetConnection.prototype.sendClientEvent = function (eventobj) {
var _local1 = this;
if (_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) {
if ((_local1.m_Config.client.http && (_local1.m_Protocol == "http")) || (_local1.m_Config.client.rtmp && (_local1.m_Protocol.substr(0, 4) == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
};
NetConnection.prototype.addNetDebugHeader = function () {
var _local1 = this;
if (!_local1.m_HeaderAdded) {
_local1.m_HeaderAdded = true;
if ((_local1.m_Config.m_debug && (_local1.m_Config.app_server.m_debug)) && (_local1.m_Protocol == "http")) {
_local1.realaddHeader("amf_server_debug", true, _local1.m_Config.app_server);
} else {
_local1.realaddHeader("amf_server_debug", true, undefined);
}
}
};
NetConnection.prototype.updateConfig = function (config) {
var _local1 = this;
_local1.attachDebug();
copyProperties(_local1.m_Config, config);
_local1.m_HeaderAdded = false;
};
NetConnection.prototype.isRealTime = function () {
return(this.m_Protocol.substr(0, 4) == "rtmp");
};
NetConnection.prototype.setupRecordset = function () {
var _local1 = this;
_local1.attachDebug();
_local1.m_Config.client.http = _local1.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) {
var _local1 = this;
_local1.attachDebug();
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
_local1.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;
var _local2 = _local3.length;
var _local1 = 0;
while (_local1 < _local2) {
this.m_SourceNC.sendServerEvent(_local3[_local1]);
_local1++;
}
};
NetDebugResponseProxy.prototype.onResult = function (resultobj) {
this.m_SourceNC.sendClientEvent(new NetDebugResultEvent(resultobj));
this.m_OriginalNR.onResult(resultobj);
};
NetDebugResponseProxy.prototype.onStatus = function (statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1.m_SourceNC.sendClientEvent(new NetDebugStatusEvent(_local2));
if (_local1.m_OriginalNR.onStatus != undefined) {
_local1.m_OriginalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
};
NetDebugResponseProxy.prototype.__resolve = function (name) {
this.m_SourceNC.sendClientEvent(new NetDebugReceiveCallEvent(name, arguments));
this.m_OriginalNR[name].apply(arguments);
};
GlobalLocalConnection.prototype.setDomainName = function (domainname) {
var _local1 = domainname;
if ((_local1 != null) && (_local1 != "")) {
this.sendPrefix = _local1 + ":";
} else {
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 _local2 = this;
var _local3 = true;
var snlen = _local2.sendnames.length;
var _local1 = 0;
while (_local1 < snlen) {
_local3 = _local3 & _global.g_NetDebugLocalConnection.send(_local2.sendPrefix + _local2.sendnames[_local1], functionname, obj);
_local1++;
}
return(_local3);
};
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 _local2 = this;
var _local3 = _local2.m_ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (nc == _local2.m_ncs[_local1]) {
_local2.m_ncs.splice(_local1, 1);
return;
}
_local1++;
}
};
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) {
var _local2 = this;
copyProperties(_local2.m_Config, config);
var _local3 = _local2.m_ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2.m_ncs[_local1] != null) {
_local2.m_ncs[_local1].updateConfig(config);
}
_local1++;
}
};
NetDebug.prototype.sendStatus = function (statusobj) {
var _local1 = this;
if (_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) {
return(_local1.m_glc.send(new NetDebugStatusEvent(statusobj)));
}
return(undefined);
};
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) {
var _local1 = this;
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
if (!_local1.sendDebugEvent(new NetDebugTraceNetServicesEvent(who, severity, number, message))) {
}
}
};
NetDebug.prototype.trace = function (traceobj) {
var _local1 = this;
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
if (!_local1.sendDebugEvent(new NetDebugTraceEvent(traceobj))) {
}
}
};
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 _local1 = new DataGlue(dataProvider);
_local1.labelString = labelString;
_local1.dataString = dataString;
_local1.getItemAt = _global.DataGlue.getItemAt_FormatString;
dataConsumer.setDataProvider(_local1);
};
_global.DataGlue.bindFormatFunction = function (dataConsumer, dataProvider, formatFunction) {
var _local1 = new DataGlue(dataProvider);
_local1.formatFunction = formatFunction;
_local1.getItemAt = _global.DataGlue.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local1);
};
_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 _local2 = formatString.split("#");
var _local3 = "";
var tlen = _local2.length;
var _local1 = 0;
while (_local1 < tlen) {
_local3 = _local3 + _local2[_local1];
_local3 = _local3 + ((_local2[_local1 + 1] == "") ? "#" : (record[_local2[_local1 + 1]]));
_local1 = _local1 + 2;
}
return(_local3);
};
_global.DataGlue.getItemAt_FormatString = function (index) {
var _local2 = this;
var _local1 = _local2.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return({label:_local2.format(_local2.labelString, _local1), data:((_local2.dataString == null) ? (_local1) : (_local2.format(_local2.dataString, _local1)))});
};
_global.DataGlue.getItemAt_FormatFunction = function (index) {
var _local1 = this.dataProvider.getItemAt(index);
if ((_local1 == "in progress") || (_local1 == undefined)) {
return(_local1);
}
return(this.formatFunction(_local1));
};
_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;
NetServices.setDefaultGatewayUrl("http://www.egamingzone.com/flashservices/gateway");
gatewayConnection = NetServices.createGatewayConnection();
inserthscfc = gatewayConnection.getService("cfc.inserths", this);
}
Frame 11
function checkhit(bullet) {
xloc = eval (bullet)._x;
yloc = eval (bullet)._y;
e = 0;
while (e < enlist.length) {
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 58 MovieClip "field1" in Frame 11
onClipEvent (load) {
this.swapDepths(2000);
}
Frame 13
action = "intro";
display.gotoAndPlay("in");
stop();
Frame 17
stopAllSounds();
Instance of Symbol 351 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 364 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("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 29
action = "complete";
thislev = "complete";
lastlevel = 1;
display.gotoAndPlay("in");
_root.field1.gotoAndPlay(1);
stop();
Frame 31
stopAllSounds();
Instance of Symbol 351 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 364 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);
stop();
Frame 44
stopAllSounds();
Instance of Symbol 351 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 364 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);
stop();
Frame 58
stopAllSounds();
Instance of Symbol 351 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 364 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);
stop();
Frame 71
stopAllSounds();
Instance of Symbol 351 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 364 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);
stop();
Frame 85
stopAllSounds();
Instance of Symbol 351 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 364 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);
stop();
Frame 98
stopAllSounds();
Instance of Symbol 351 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 364 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 15 MovieClip Frame 3
stop();
Symbol 15 MovieClip Frame 5
gotoAndPlay (1);
Symbol 15 MovieClip Frame 7
gotoAndPlay (1);
Symbol 15 MovieClip Frame 9
gotoAndPlay (1);
Symbol 15 MovieClip Frame 15
gotoAndStop (1);
Symbol 24 MovieClip Frame 2
stop();
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 39 MovieClip Frame 3
stop();
Symbol 39 MovieClip Frame 4
stop();
Symbol 39 MovieClip Frame 5
stop();
Symbol 39 MovieClip Frame 6
stop();
Symbol 39 MovieClip Frame 7
stop();
Symbol 39 MovieClip Frame 8
stop();
Symbol 48 MovieClip Frame 2
stop();
Symbol 48 MovieClip Frame 3
if (thispercent >= 0) {
if (thispercent < 5) {
_root.sound.gotoAndPlay("alarm");
}
percent.percent = thispercent add "%";
} else {
gotoAndPlay ("out");
_parent.field.myon = "false";
}
Symbol 48 MovieClip Frame 11
if (thispercent < 0) {
_parent.field.myon = "false";
} else {
gotoAndPlay (1);
}
Symbol 48 MovieClip Frame 15
stop();
Symbol 51 MovieClip Frame 1
balance._rotation = Math.abs(_root.chopper.chopper._rotation);
Symbol 51 MovieClip Frame 2
balance._rotation = Math.abs(_root.chopper.chopper._rotation);
Symbol 55 MovieClip Frame 1
hitvar = 100 / _root.chopper.hits;
lastalpha = 100;
field1A = 40;
field2A = 70;
field3A = 100;
field1D = -1;
field2D = 1;
speedvar = 10;
myon = "true";
Symbol 55 MovieClip Frame 3
newfield = _root.chopper.hits * hitvar;
newfield = Math.floor(newfield);
if (newfield < lastalpha) {
_alpha = (newfield + 20);
powframe = 8 - Math.floor(newfield / 12.5);
speedvar = newfield * 0.1;
_parent.power.gotoAndStop(powframe);
_parent.percent.thispercent = newfield;
_parent.percent.gotoAndPlay(3);
}
field1A = field1A + (field1D * speedvar);
if ((field1A > 100) or (field1A < 10)) {
field1D = field1D * -1;
field1A = field1A + (field1D * speedvar);
}
field1._xscale = field1A;
field1._alpha = 100 - field1A;
field2A = field2A + (field2D * speedvar);
if ((field2A > 100) or (field2A < 10)) {
field2D = field2D * -1;
field2A = field2A + (field2D * speedvar);
}
field2._xscale = field2A;
field2._alpha = 100 - field2A;
lastalpha = newfield;
if (myon eq "false") {
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 55 MovieClip Frame 4
_alpha = 100;
Symbol 55 MovieClip Frame 14
gotoAndPlay (5);
Symbol 58 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 6
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
bar._width = _parent.hits * _parent.hitvar;
Symbol 91 MovieClip Frame 21
stop();
Symbol 91 MovieClip Frame 28
stop();
Symbol 91 MovieClip Frame 29
play();
Symbol 98 Button
on (release) {
play();
}
Symbol 101 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 107 Button
on (release) {
play();
}
Symbol 109 Button
on (press) {
levnum = _root.thislev.charAt(5);
backlev = _root.thislev.substring(0, 5) add (int(levnum) - 1);
_root.gotoAndPlay(backlev);
gotoAndStop (1);
}
Symbol 110 Button
on (press) {
levnum = _root.thislev.charAt(5);
backlev = _root.thislev.substring(0, 5) add (int(levnum) + 1);
_root.gotoAndPlay(backlev);
gotoAndStop (1);
}
Symbol 123 MovieClip Frame 1
gotoAndStop(_root.thislev);
Symbol 123 MovieClip Frame 2
stop();
Symbol 123 MovieClip Frame 3
stop();
Symbol 123 MovieClip Frame 4
stop();
Symbol 123 MovieClip Frame 5
stop();
Symbol 123 MovieClip Frame 6
stop();
Symbol 123 MovieClip Frame 7
stop();
Symbol 123 MovieClip Frame 8
stop();
Symbol 123 MovieClip Frame 9
_root.arrows.gotoAndStop("blank");
stop();
Symbol 123 MovieClip Frame 10
_root.arrows.gotoAndStop("blank");
stop();
Symbol 123 MovieClip Frame 11
stop();
Symbol 123 MovieClip Frame 12
stop();
Symbol 134 MovieClip Frame 7
stop();
Symbol 158 MovieClip Frame 2
stop();
Symbol 158 MovieClip Frame 6
stop();
Symbol 191 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 12
stop();
Symbol 204 MovieClip Frame 8
stop();
Symbol 215 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 215 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 eq "false") {
if ((myR > -10) and (myL < (_root.stagew + 10))) {
_visible = 1;
targon = "true";
}
} else if ((myL > (_root.stageW + 10)) or (MyR < -10)) {
_visible = 0;
targon = "false";
}
gotoAndPlay(_currentframe - 1);
Symbol 215 MovieClip Frame 18
_root.convoylist.splice(listnum, 1);
e = listnum;
while (e < _root.convoylist.length) {
eval ("_root." add _root.convoylist[e]).listnum = eval ("_root." add _root.convoylist[e]).listnum - 1;
e++;
}
eval ("_root.scanner." add _name)._visible = 0;
_root.gotoAndPlay(_root._currentframe + 2);
Symbol 215 MovieClip Frame 19
stop();
Symbol 223 MovieClip Frame 1
gotoAndStop(_root.thislev);
Symbol 223 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 3
stop();
Symbol 223 MovieClip Frame 4
stop();
Symbol 223 MovieClip Frame 5
stop();
Symbol 223 MovieClip Frame 6
stop();
Symbol 223 MovieClip Frame 7
stop();
Symbol 223 MovieClip Frame 8
stop();
Symbol 239 MovieClip Frame 2
allytocnt = _root.survived;
_root.survived = 0;
Symbol 239 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 239 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 239 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 239 MovieClip Frame 23
if (allytocnt > 0) {
allytocnt = allytocnt - 1;
_root.score = _root.score + 150;
_root.sound.gotoAndPlay("bling");
gotoAndPlay(_currentframe - 4);
}
Symbol 239 MovieClip Frame 24
_parent.play();
stop();
Symbol 244 Button
on (release) {
_root.action = "highs";
_parent.play();
}
Symbol 248 Button
on (release) {
gotoAndPlay (1);
}
Symbol 250 MovieClip Frame 1
text = "SUBMITTING SCORE AND CONTEST ENTRIES";
cnt = 0;
Symbol 250 MovieClip Frame 7
if (text eq "SUBMISSION COMPLETE") {
gotoAndPlay ("out");
}
Symbol 250 MovieClip Frame 8
sub.text = "SUBMITTING SCORE AND CONTEST ENTRIES";
Symbol 250 MovieClip Frame 9
score = _root.score;
level = _root.lastlevel;
Symbol 250 MovieClip Frame 10
loadVariablesNum (_root.sendScoresUrl, 0, "POST");
_root.scoresXML = 0;
Symbol 250 MovieClip Frame 11
cnt = 0;
Symbol 250 MovieClip Frame 13
if (_root.scoresXML != 0) {
if (_root.scoresXML eq "error") {
gotoAndPlay ("failed");
} else if (_root.playsLeft < 1) {
gotoAndPlay ("noneleft");
} else {
text = "SUBMISSION COMPLETE";
gotoAndPlay (2);
}
} else {
cnt = cnt + 1;
if (cnt < 120) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay ("failed");
}
}
Symbol 250 MovieClip Frame 28
_root.action = "highs";
_parent.play();
stop();
Symbol 250 MovieClip Frame 32
stop();
Symbol 250 MovieClip Frame 37
stop();
Symbol 257 MovieClip Frame 2
stop();
Symbol 257 MovieClip Frame 10
stop();
Symbol 258 Button
on (release) {
gotoAndPlay (1);
}
Symbol 259 MovieClip Frame 3
loadVariablesNum (_root.getScoresUrl, 0);
_root.scoresXML = 0;
Symbol 259 MovieClip Frame 4
cnt = 0;
Symbol 259 MovieClip Frame 6
if (_root.scoresXML != 0) {
if (_root.scoresXML eq "error") {
gotoAndPlay ("failed");
} else {
_root.myXML1 = new XML(_root.scoresXML);
_root.myXML1.ignoreWhite = true;
_root.makeHighScores();
gotoAndPlay ("sent");
}
} else {
cnt = cnt + 1;
if (cnt < 120) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay ("failed");
}
}
Symbol 259 MovieClip Frame 10
scnt = -1;
while (scnt < 24) {
eval ("slot" add scnt).score.name = ((scnt + 1) add ". ") add _root.highscores[scnt][0];
eval ("slot" add scnt).score.score = _root.highscores[scnt][1];
scnt++;
}
Symbol 259 MovieClip Frame 11
scnt = 0;
Symbol 259 MovieClip Frame 14
if (scnt < 24) {
eval ("slot" add scnt).gotoAndPlay(3);
scnt = scnt + 1;
gotoAndPlay(_currentframe - 1);
} else {
stop();
}
Symbol 259 MovieClip Frame 30
stop();
Symbol 259 MovieClip Frame 37
stop();
Symbol 263 Button
on (release) {
play();
}
Symbol 266 MovieClip Frame 1
stop();
Instance of Symbol 91 MovieClip "intro" in Symbol 266 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.intermission && (this._currentframe < 14)) {
gotoAndPlay ("intermission");
}
}
Symbol 266 MovieClip Frame 13
gotoAndPlay(_root.action);
_quality = "medium";
Symbol 266 MovieClip Frame 21
_root.action = "intro";
prizenum = 1;
lastlevel = 0;
Symbol 266 MovieClip Frame 33
stop();
Symbol 266 MovieClip Frame 42
if (_root.action eq "highs") {
gotoAndPlay ("highs");
} else {
_root.gotoAndPlay("level1");
}
Symbol 266 MovieClip Frame 43
stop();
Symbol 266 MovieClip Frame 55
stop();
Symbol 266 MovieClip Frame 61
_root.intermission = true;
gotoAndPlay ("intro");
Symbol 266 MovieClip Frame 73
_quality = "HIGH";
_root.intermission = true;
_root.mylev = _root.thislev;
Instance of Symbol 111 MovieClip in Symbol 266 MovieClip Frame 73
onClipEvent (load) {
if (_root.debug != true) {
_visible = false;
}
}
Symbol 266 MovieClip Frame 91
stop();
Symbol 266 MovieClip Frame 103
gotoAndPlay ("out");
Symbol 266 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 266 MovieClip Frame 128
stop();
Symbol 266 MovieClip Frame 131
stop();
Symbol 266 MovieClip Frame 137
stop();
Symbol 266 MovieClip Frame 143
gotoAndPlay(_root.action);
Symbol 266 MovieClip Frame 148
_root.thislev = "submit";
Symbol 266 MovieClip Frame 154
_quality = "HIGH";
stop();
Symbol 266 MovieClip Frame 160
gotoAndPlay(_root.action);
Symbol 266 MovieClip Frame 162
_root.thislev = "highs";
Symbol 266 MovieClip Frame 170
stop();
Symbol 266 MovieClip Frame 176
gotoAndPlay(_root.action);
Symbol 266 MovieClip Frame 187
_quality = "medium";
_root.movevar = 0;
_root.arrows.gotoAndStop("blank");
Symbol 266 MovieClip Frame 209
stop();
Symbol 266 MovieClip Frame 212
stop();
Symbol 266 MovieClip Frame 224
if (_root.prizenum == 7) {
gotoAndPlay ("endofgame");
} else {
_parent.play();
stop();
}
Symbol 266 MovieClip Frame 236
stop();
Symbol 266 MovieClip Frame 244
gotoAndPlay(_root.action);
Symbol 266 MovieClip Frame 246
_root.restart = "true";
_root.scanner.gotoAndPlay("out");
_root.guageson = "false";
_root.gotoAndPlay(1);
removeMovieClip(_root.field1);
gotoAndPlay (1);
Symbol 266 MovieClip Frame 263
_parent.play();
_quality = "MEDIUM";
stop();
Symbol 266 MovieClip Frame 277
stop();
Symbol 272 MovieClip Frame 3
ratio = 0.8;
_x = (_x + (_root.movevar * ratio));
gotoAndPlay(_currentframe - 1);
Symbol 274 MovieClip Frame 1
if (_name eq "stars1") {
buddy = "stars2";
} else {
buddy = "stars1";
}
Symbol 274 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." add buddy)._x - (eval ("_root." add buddy)._width - (_root.movevar * ratio)));
}
} else if (_root.movevar < 0) {
if (myR < 0) {
_x = (eval ("_root." add buddy)._x + (eval ("_root." add buddy)._width + (_root.movevar * ratio)));
}
}
gotoAndPlay(_currentframe - 1);
Symbol 280 MovieClip Frame 1
if (_name eq "mount1") {
buddy = "mount2";
} else {
buddy = "mount1";
}
Symbol 280 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." add buddy)._x - (eval ("_root." add buddy)._width - (_root.movevar * ratio)));
}
} else if (_root.movevar < 0) {
if (myR < -50) {
trace("_root." add buddy);
undefined._x + (eval ("_root." add buddy)._width + (_root.movevar * ratio));
_x = (eval ("_root." add buddy)._x + (eval ("_root." add buddy)._width + (_root.movevar * ratio)));
}
}
gotoAndPlay(_currentframe - 1);
Symbol 282 MovieClip Frame 1
if (_name eq "tread1") {
buddy = "tread2";
} else {
buddy = "tread1";
}
stop();
Symbol 283 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 6
stop();
Symbol 285 MovieClip Frame 8
stop();
Instance of Symbol 286 MovieClip in Symbol 287 MovieClip Frame 13
onClipEvent (load) {
stop();
}
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 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 289 MovieClip Frame 3
_x = (_x + ((speed * direct) + _root.movevar));
Symbol 289 MovieClip Frame 4
myx = _x;
myy = _y;
_x = (myx + ((speed * direct) + _root.movevar));
if (_root.restart eq "true") {
gotoAndPlay ("off");
}
if (targon eq "false") {
if ((myx > (-myw)) and (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 ((myx < (myw * -1)) or (myx > (_root.stageW + myw))) {
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
this._visible = 0;
targon = "false";
}
}
if (bombing eq "false") {
b = b + 1;
if (b > (_root.entarglist.length - 1)) {
b = 0;
}
targ = _root.entarglist[b][0];
bombH = _root.entarglist[b][1];
if ((myx < (eval ("_root." add targ)._x + 300)) and (myx > (eval ("_root." add 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" add mynum, mynum + 100);
eval ("_root.bomb" add mynum)._xscale = eval ("_root.bomb" add mynum)._xscale * direct;
eval ("_root.bomb" add mynum)._x = myx;
eval ("_root.bomb" add mynum)._y = myy;
eval ("_root.bomb" add mynum).speed = speed;
eval ("_root.bomb" add mynum).direct = direct;
eval ("_root.bomb" add mynum).titan = "false";
eval ("_root.bomb" add mynum).targ = targ.substring(0, 4);
eval ("_root.bomb" add 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 289 MovieClip Frame 8
if (hits <= 0) {
_root.shiptocnt = _root.shiptocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay (3);
}
Symbol 289 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 289 MovieClip Frame 17
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
removeMovieClip(eval ("_root.scanner.enemy" add mynum));
gotoAndPlay ("off");
Symbol 289 MovieClip Frame 18
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
gotoAndPlay ("off");
Symbol 289 MovieClip Frame 19
removeMovieClip(eval ("_root.scanner.enemy" add mynum));
_root.manager.gonecnt = _root.manager.gonecnt + 1;
removeMovieClip(this);
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 3
if (targ eq "base") {
floor = 315 - random(50);
} else {
floor = 315;
}
play();
Symbol 291 MovieClip Frame 4
if (_y < floor) {
_x = ((_x + (speed * direct)) + _root.movevar);
_y = (_y + 5);
play();
} else if (titan eq "false") {
gotoAndPlay ("explode");
} else {
gotoAndPlay ("explode2");
}
Symbol 291 MovieClip Frame 5
if (_y < floor) {
_x = ((_x + (speed * direct)) + _root.movevar);
_y = (_y + 5);
gotoAndPlay(_currentframe - 1);
} else if (titan eq "false") {
gotoAndPlay ("explode");
} else {
gotoAndPlay ("explode2");
}
Symbol 291 MovieClip Frame 6
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 291 MovieClip Frame 7
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 291 MovieClip Frame 9
b = 0;
while (b < _root.convoylist.length) {
targ = _root.convoylist[b];
if (hitTest(eval ("_root." add targ))) {
eval ("_root." add targ).hits = eval ("_root." add targ).hits - 1;
eval ("_root." add targ).power.gotoAndPlay(2);
if (eval (("_root.scanner." add targ) add ".power")._currentframe > 1) {
eval ("_root.scanner." add targ).power.refresh = "true";
} else {
eval ("_root.scanner." add targ).power.gotoAndPlay(2);
}
_root.field1.convoy.thistarg = targ;
_root.field1.convoy.gotoAndPlay(3);
}
b++;
}
Symbol 291 MovieClip Frame 12
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 291 MovieClip Frame 13
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 291 MovieClip Frame 14
removeMovieClip(this);
Symbol 291 MovieClip Frame 15
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 291 MovieClip Frame 16
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 291 MovieClip Frame 19
b = 0;
while (b < _root.convoylist.length) {
targ = _root.convoylist[b];
if (hitTest(eval ("_root." add targ))) {
eval ("_root." add targ).hits = eval ("_root." add targ).hits - 4;
eval ("_root." add targ).power.gotoAndPlay(2);
if (eval (("_root.scanner." add targ) add ".power")._currentframe > 1) {
eval ("_root.scanner." add targ).power.refresh = "true";
} else {
eval ("_root.scanner." add targ).power.gotoAndPlay(2);
}
_root.field1.convoy.thistarg = targ;
_root.field1.convoy.gotoAndPlay(3);
}
b++;
}
Symbol 291 MovieClip Frame 21
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 291 MovieClip Frame 22
_x = ((_x + (speed * direct)) + _root.movevar);
Symbol 291 MovieClip Frame 23
removeMovieClip(this);
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 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 293 MovieClip Frame 3
_x = (_x + ((speed * direct) + _root.movevar));
Symbol 293 MovieClip Frame 4
_x = (_x + ((speed * direct) + _root.movevar));
myx = _x;
myy = _y;
if (_root.restart eq "true") {
gotoAndPlay ("off");
}
if (targon eq "false") {
if ((myx > (-myw)) and (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 ((myx < (myw * -1)) or (myx > (_root.stageW + myw))) {
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
this._visible = 0;
targon = "false";
}
}
if (targon eq "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 ((_x > (chopX - 150)) and (_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) / Math.PI;
xmove = Math.cos((Math.PI/180) * myangle) * -10;
ymove = Math.sin((Math.PI/180) * myangle) * -10;
} else {
myradians = Math.atan2(_y - _root.chopper._y, _x - _root.chopper._x);
myangle = (myradians * 100) / Math.PI;
xmove = Math.cos((Math.PI/180) * myangle) * 10;
ymove = Math.sin((Math.PI/180) * myangle) * 10;
}
duplicateMovieClip (_root.bullet2, "enbullet" add _root.encnt, 500 + _root.encnt);
eval ("_root.enbullet" add _root.encnt).xmove = xmove;
eval ("_root.enbullet" add _root.encnt).ymove = ymove;
eval ("_root.enbullet" add _root.encnt).xorg = _x;
eval ("_root.enbullet" add _root.encnt).yorg = _y;
eval ("_root.enbullet" add _root.encnt).gotoAndPlay("fire");
}
}
if (hits < 0) {
_root.fightertocnt = _root.shiptocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 293 MovieClip Frame 8
if (hits < 0) {
_root.fightertocnt = _root.shiptocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay (3);
}
Symbol 293 MovieClip Frame 19
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
targon = "false";
removeMovieClip(eval ("_root.scanner.enemy" add mynum));
gotoAndPlay ("off");
Symbol 293 MovieClip Frame 20
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
targon = "false";
gotoAndPlay ("off");
Symbol 293 MovieClip Frame 21
removeMovieClip(eval ("_root.scanner.enemy" add mynum));
_root.manager.gonecnt = _root.manager.gonecnt + 1;
removeMovieClip(this);
stop();
Symbol 296 MovieClip Frame 2
stop();
Symbol 296 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 (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit2(_name);
}
Symbol 296 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit2(_name);
}
Symbol 296 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit2(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 296 MovieClip Frame 6
_x = (_x + 10);
Symbol 296 MovieClip Frame 7
_x = (_x + 10);
Symbol 296 MovieClip Frame 8
_x = (_x + 10);
Symbol 296 MovieClip Frame 9
_x = (_x + 10);
Symbol 296 MovieClip Frame 10
removeMovieClip(this);
Symbol 299 MovieClip Frame 1
stop();
Symbol 299 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 299 MovieClip Frame 3
_x = (_x + ((speed * direct) + _root.movevar));
Symbol 299 MovieClip Frame 4
_x = (_x + ((speed * direct) + _root.movevar));
myx = _x;
myy = _y;
myw = _width * 0.5;
myh = _height * 0.5;
if (_root.restart eq "true") {
gotoAndPlay ("off");
}
if (targon eq "false") {
if ((myx > (-1 * myw)) and (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 ((myx < (myw * -1)) or (myx > (_root.stageW + myw))) {
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
this._visible = 0;
targon = "false";
}
}
if (bombing eq "false") {
b = b + 1;
if (b > (_root.entarglist.length - 1)) {
b = 0;
}
targ = _root.entarglist[b][0];
bombH = _root.entarglist[b][1];
if ((myx < (eval ("_root." add targ)._x + 100)) and (myx > (eval ("_root." add 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" add mynum, mynum + 100);
eval ("_root.bomb" add mynum)._xscale = eval ("_root.bomb" add mynum)._xscale * direct;
eval ("_root.bomb" add mynum)._x = myx;
eval ("_root.bomb" add mynum)._y = myy;
eval ("_root.bomb" add mynum).speed = speed;
eval ("_root.bomb" add mynum).direct = direct;
eval ("_root.bomb" add mynum).titan = "false";
eval ("_root.bomb" add mynum).targ = targ.substring(0, 4);
eval ("_root.bomb" add 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 299 MovieClip Frame 9
if (hits < 0) {
_root.bombertocnt = _root.bombertocnt + 1;
gotoAndPlay ("explode");
} else {
gotoAndPlay (3);
}
Symbol 299 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 299 MovieClip Frame 22
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
targon = "false";
removeMovieClip(eval ("_root.scanner.enemy" add mynum));
gotoAndPlay ("off");
Symbol 299 MovieClip Frame 23
_root.enlist.splice(listnum, 1);
e = listnum;
while (e < _root.enlist.length) {
eval ("_root." add _root.enlist[e]).listnum = eval ("_root." add _root.enlist[e]).listnum - 1;
e++;
}
targon = "false";
gotoAndPlay ("off");
Symbol 299 MovieClip Frame 24
_root.manager.gonecnt = _root.manager.gonecnt + 1;
removeMovieClip(eval ("_root.scanner.enemy" add mynum));
removeMovieClip(this);
stop();
Symbol 314 MovieClip Frame 1
targon = "false";
mynum = _name.charAt(4);
_visible = 0;
Symbol 314 MovieClip Frame 4
myx = _x;
myW = _width * 0.5;
myR = myx + myw;
myL = myx - myw;
if (targon eq "false") {
if ((myR > -10) and (myL < (_root.stagew + 10))) {
_visible = 1;
targon = "true";
}
} else if ((myL > (_root.stageW + 10)) or (MyR < -10)) {
_visible = 0;
targon = "false";
}
if (_root.truck1._x < (myx - 25)) {
if (_root.convoylist.length > 0) {
gotoAndPlay ("done");
}
}
gotoAndPlay(_currentframe - 1);
Symbol 314 MovieClip Frame 7
truck1._visible = _root.truck1.live;
truck2._visible = _root.truck2.live;
truck3._visible = _root.truck3.live;
Symbol 314 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 314 MovieClip Frame 43
if (_root.dead eq "false") {
_root.complete = "true";
}
stop();
Symbol 318 MovieClip Frame 2
stop();
Symbol 318 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 (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 318 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 318 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 318 MovieClip Frame 8
stop();
removeMovieClip(this);
Symbol 326 MovieClip Frame 2
stop();
Symbol 326 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 (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 326 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 326 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 326 MovieClip Frame 8
removeMovieClip(this);
Symbol 326 MovieClip Frame 10
stop();
Symbol 334 MovieClip Frame 2
stop();
Symbol 334 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 (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 334 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 334 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 334 MovieClip Frame 8
removeMovieClip(this);
Symbol 334 MovieClip Frame 10
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 340 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 (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 340 MovieClip Frame 4
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else {
_root.checkhit(_name);
}
Symbol 340 MovieClip Frame 5
_x = (_x - xmove);
_y = (_y - ymove);
if (((_x < 0) or (_y < 0)) or (_x > _root.stagew)) {
gotoAndPlay ("stop");
} else if (_y > (_root.stageh - 25)) {
gotoAndPlay ("explode");
} else if (exp != "true") {
_root.checkhit(_name);
gotoAndPlay(_currentframe - 1);
}
Symbol 340 MovieClip Frame 8
removeMovieClip(this);
Symbol 340 MovieClip Frame 10
stop();
Symbol 346 MovieClip Frame 27
gotoAndPlay ("loop");
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
stop();
Symbol 351 MovieClip Frame 3
stop();
Symbol 351 MovieClip Frame 15
stop();
Symbol 357 MovieClip Frame 8
stop();
Symbol 361 MovieClip Frame 7
stop();
Symbol 363 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 363 MovieClip Frame 3
if (targon eq "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" add thisnum, (200 * mynum) + cnt);
eval ("_root.truckfire" add thisnum).xmove = 10;
eval ("_root.truckfire" add thisnum).ymove = 10;
eval ("_root.truckfire" add thisnum).xorg = _x + 10;
eval ("_root.truckfire" add thisnum).yorg = _y - 10;
eval ("_root.truckfire" add thisnum)._rotation = 35;
eval ("_root.truckfire" add thisnum).gotoAndPlay("fire");
}
}
if ((_x <= -50) or (_x >= (_root.stagew + 50))) {
targon = "false";
_visible = 0;
}
} else if ((_x > -50) and (_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 363 MovieClip Frame 59
_root.convoylist.splice(listnum, 1);
e = listnum;
while (e < _root.convoylist.length) {
eval ("_root." add _root.convoylist[e]).listnum = eval ("_root." add _root.convoylist[e]).listnum - 1;
e++;
}
eval ("_root.scanner." add _name)._visible = 0;
Symbol 363 MovieClip Frame 60
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 2
_parent._parent.power.gotoAndPlay(2);
Symbol 375 MovieClip Frame 7
gotoAndPlay (1);
Symbol 378 MovieClip Frame 1
function flight() {
var _local1 = _root;
myx = _x;
myy = _y;
myw = _width * 0.5;
myh = _height * 0.5;
_local1.playerT = myy - myh;
_local1.playerB = myy + myh;
_local1.playerR = myx + myw;
_local1.playerL = myx - myw;
_local1.playerX = myx;
_local1.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((Math.PI/180) * chopper._rotation) * (20 + offset)) * direct;
bulletymove = (Math.sin((Math.PI/180) * chopper._rotation) * (20 + offset)) * direct;
bulletxorg = Math.cos((Math.PI/180) * (chopper._rotation - 90)) * 14;
bulletyorg = Math.sin((Math.PI/180) * (chopper._rotation - 90)) * 14;
testx = _x + xmove;
testy = _y + ymove;
if ((testx > 300) and (testx < (_local1.stagew - 300))) {
if (direct > 0) {
_local1.movevar = -3;
} else {
_local1.movevar = 3;
}
} else {
testx2 = _local1.scanner.targbox._x + (xmove * 0.1);
if ((testx2 > 450) and (testx2 < 550)) {
xmove = 0;
_local1.movevar = 0;
} else if ((testx2 < 0) and (testx2 > -100)) {
xmove = 0;
_local1.movevar = 0;
} else {
_local1.movevar = xmove * -1;
_local1.scanner.targbox._x = testx2;
}
}
if ((testy > 24) and (testy < (_local1.stageh - 50))) {
_y = testy;
}
if (butx eq "false") {
if (Math.abs(xmove) > 1) {
xmove = xmove * 0.9;
} else {
xmove = 0;
}
}
if (buty eq "false") {
if (Math.abs(ymove) > 1) {
ymove = ymove * 0.7;
} else {
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 378 MovieClip Frame 2
flip = "false";
Symbol 378 MovieClip Frame 3
flight();
Symbol 378 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, 1000 + cnt);
eval ("_root." add cnt).bullet._xscale = eval ("_root." add cnt).bullet._xscale * direct;
eval ("_root." add cnt).xmove = bulletxmove;
eval ("_root." add cnt).ymove = 0;
eval ("_root." add cnt).xorg = _x + bulletxorg;
eval ("_root." add cnt).yorg = _y - bulletyorg;
eval ("_root." add cnt).gotoAndPlay("fire");
}
gotoAndPlay(_currentframe - 1);
}
if (blink eq "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 378 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 378 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 380 MovieClip Frame 1
popcnt = 0;
gonecnt = 0;
endcnt = 0;
Symbol 380 MovieClip Frame 2
randpop = random(25) + _root.refreshrate;
cnt = 0;
Symbol 380 MovieClip Frame 4
cnt = cnt + 1;
if (_root.thislev eq "level7") {
if (_root.convoylist.length < 2) {
_root.restart = "true";
_root.scanner.gotoAndPlay("out");
_root.play();
}
}
if ((_root.convoylist.length < 1) or (_root.dead eq "true")) {
_root.restart = "true";
_root.scanner.gotoAndPlay("out");
_root.play();
} else if (_root.complete eq "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 eq "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 385 MovieClip Frame 1
stop();
Symbol 385 MovieClip Frame 42
gotoAndPlay ("left");
Symbol 385 MovieClip Frame 80
gotoAndPlay ("right");
Symbol 385 MovieClip Frame 81
stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 2
duplicateMovieClip (_root.ship, "ship" add mynum, 10 + mynum);
eval ("_root.ship" add mynum)._x = (_x - _parent.targbox._x) * 10;
eval ("_root.ship" add mynum)._y = _y * 10;
eval ("_root.ship" add mynum).gotoAndPlay(2);
eval ("_root.ship" add mynum).mynum = mynum;
eval ("_root.ship" add mynum).speed = speed;
eval ("_root.ship" add mynum).direct = direct;
play();
Symbol 388 MovieClip Frame 4
if ((_x > 486) or (_x < -2)) {
eval ("_root.ship" add mynum).gotoAndPlay("off");
} else {
_x = (_parent.targbox._x + (eval ("_root.ship" add mynum)._x * 0.1));
_y = (eval ("_root.ship" add mynum)._y * 0.1);
}
gotoAndPlay(_currentframe - 1);
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 2
duplicateMovieClip (_root.fighter, "ship" add mynum, 10 + mynum);
eval ("_root.ship" add mynum)._x = (_x - _parent.targbox._x) * 10;
eval ("_root.ship" add mynum)._y = _y * 10;
eval ("_root.ship" add mynum).gotoAndPlay(2);
eval ("_root.ship" add mynum).mynum = mynum;
eval ("_root.ship" add mynum).speed = speed;
eval ("_root.ship" add mynum).direct = direct;
play();
Symbol 390 MovieClip Frame 4
if ((_x > 486) or (_x < -2)) {
eval ("_root.ship" add mynum).gotoAndPlay("off");
} else {
_x = (_parent.targbox._x + (eval ("_root.ship" add mynum)._x * 0.1));
_y = (eval ("_root.ship" add mynum)._y * 0.1);
}
gotoAndPlay(_currentframe - 1);
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
duplicateMovieClip (_root.bomber, "ship" add mynum, 10 + mynum);
eval ("_root.ship" add mynum)._x = (_x - _parent.targbox._x) * 10;
eval ("_root.ship" add mynum)._y = _y * 10;
eval ("_root.ship" add mynum).gotoAndPlay(2);
eval ("_root.ship" add mynum).mynum = mynum;
eval ("_root.ship" add mynum).speed = speed;
eval ("_root.ship" add mynum).direct = direct;
play();
Symbol 392 MovieClip Frame 4
if ((_x > 486) or (_x < -2)) {
eval ("_root.ship" add mynum).gotoAndPlay("off");
} else {
_x = (_parent.targbox._x + (eval ("_root.ship" add mynum)._x * 0.1));
_y = (eval ("_root.ship" add mynum)._y * 0.1);
}
gotoAndPlay(_currentframe - 1);
Symbol 394 MovieClip Frame 1
_x = (_root.chopper._x * 0.1);
_y = (_root.chopper._y * 0.1);
Symbol 394 MovieClip Frame 3
_x = (_root.chopper._x * 0.1);
_y = (_root.chopper._y * 0.1);
gotoAndPlay(_currentframe - 1);
Symbol 399 MovieClip Frame 1
cnt = 0;
stop();
Symbol 399 MovieClip Frame 2
refresh = "false";
cnt = 0;
tg2._alpha = 10;
tg2._xscale = 300;
tg2._yscale = 300;
Symbol 399 MovieClip Frame 4
if (refresh eq "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 400 MovieClip Frame 1
alive = "true";
Symbol 400 MovieClip Frame 2
_x = (_x - _root.trucksmove);
eval ("_root." add _name)._x = (_x - _parent.targbox._x) * 10;
Symbol 400 MovieClip Frame 3
if (alive eq "true") {
_x = (_x - _root.trucksmove);
eval ("_root." add _name)._x = (_x - _parent.targbox._x) * 10;
gotoAndPlay(_currentframe - 1);
}
Symbol 400 MovieClip Frame 5
_x = 600;
eval ("_root." add _name)._x = (_x - _parent.targbox._x) * 10;
stop();
Symbol 402 MovieClip Frame 2
eval ("_root." add _name)._x = (_x - _parent.targbox._x) * 10;
Symbol 402 MovieClip Frame 3
eval ("_root." add _name)._x = (_x - _parent.targbox._x) * 10;
gotoAndPlay(_currentframe - 1);
Symbol 404 MovieClip Frame 2
eval ("_root." add _name)._x = (_x - _parent.targbox._x) * 10;
Symbol 404 MovieClip Frame 3
eval ("_root." add _name)._x = (_x - _parent.targbox._x) * 10;
gotoAndPlay(_currentframe - 1);
Symbol 405 MovieClip Frame 1
function populate() {
while (i <= _root.ennum) {
xloc = random(80) * 5;
yloc = random(23) + 5;
if (i <= _root.shipnum) {
duplicateMovieClip (enemy, "enemy" add i, i + 10);
speed = (random(4) + _root.shipspeed) - 2;
} else if (i <= _root.fighternum) {
duplicateMovieClip (fighter, "enemy" add i, i + 10);
speed = (random(5) + _root.fighterspeed) - 3;
} else if (i <= _root.bombernum) {
duplicateMovieClip (bomber, "enemy" add i, i + 10);
speed = random(2) + _root.bomberspeed;
}
eval ("enemy" add i)._x = xloc;
eval ("enemy" add i)._y = yloc;
eval ("enemy" add i).mynum = i;
eval ("enemy" add i).speed = speed;
eval ("enemy" add i).direct = 1;
eval ("enemy" add 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" add i, i + 10);
speed = random(5) + _root.fighterspeed;
} else if ((rand >= 15) and (rand <= 33)) {
duplicateMovieClip (enemy, "enemy" add i, i + 10);
speed = random(3) + _root.shipspeed;
} else {
duplicateMovieClip (bomber, "enemy" add i, i + 10);
speed = random(2) + _root.bomberspeed;
}
eval ("enemy" add i)._x = xloc;
eval ("enemy" add i)._y = yloc;
eval ("enemy" add i).mynum = i;
eval ("enemy" add i).speed = speed;
eval ("enemy" add i).direct = direct;
eval ("enemy" add i).gotoAndPlay(2);
}
i = 0;
stop();
Symbol 405 MovieClip Frame 3
populate();
stop();
Symbol 405 MovieClip Frame 5
stop();
Symbol 405 MovieClip Frame 7
stop();
Symbol 405 MovieClip Frame 9
stop();
Symbol 405 MovieClip Frame 11
stop();
Symbol 405 MovieClip Frame 14
stop();
Symbol 407 MovieClip Frame 1
if (_name eq "stars3") {
buddy = "stars4";
} else {
buddy = "stars3";
}
Symbol 407 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." add buddy)._x - (eval ("_root." add buddy)._width - (_root.movevar * ratio)));
}
} else if (_root.movevar < 0) {
if (myR < 0) {
_x = (eval ("_root." add buddy)._x + (eval ("_root." add buddy)._width + (_root.movevar * ratio)));
}
}
gotoAndPlay(_currentframe - 1);