Frame 1
function getNetDebugVersion() {
return(1);
}
function NetDebugConfig() {
}
function attachNetDebugConfigFunctions(ndc) {
ndc.setDebug = function (setval) {
this.m_debug = setval;
};
ndc.getDebug = function () {
return(this.m_debug);
};
for (var _local3 in ndc) {
if (typeof(ndc[_local3]) == "object") {
attachNetDebugConfigFunctions(ndc[_local3]);
}
}
}
function getDefaultNetDebugConfig(iscontroller) {
if (_global.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (iscontroller) {
_local2 = "Controller_Config_Info";
}
_global.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_global.netDebugConfigSO.data.config == undefined) {
_global.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_global.netDebugConfigSO.flush();
return(_global.netDebugConfigSO.data.config);
}
function getRealDefaultNetDebugConfig() {
var _local1 = new NetDebugConfig();
_local1.m_debug = true;
_local1.client = new NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
function NetDebugEvent() {
}
function NetDebugErrorEvent(dataobj) {
this.init();
this.EventType = "NetDebugError";
this.Error = dataobj;
}
function NetDebugTraceEvent(traceobj) {
this.init();
this.EventType = "Trace";
this.Trace = traceobj;
}
function NetDebugTraceNetServicesEvent(w, s, n, m) {
this.init();
this.EventType = "NetServicesTrace";
this.Trace = m;
this.Who = w;
this.Severity = s;
this.Number = n;
}
function NetDebugNCEvent() {
}
function NetDebugResultEvent(resultobj) {
this.init();
this.EventType = "Result";
this.Result = resultobj;
}
function NetDebugStatusEvent(statusobj) {
this.init();
this.EventType = "Status";
this.Status = statusobj;
}
function NetDebugConnectEvent(args) {
this.init();
this.EventType = "Connect";
this.ConnectString = args[0];
if (args[1] != null) {
this.UserName = args[1];
}
if (args[2] != null) {
this.Password = args[2];
}
}
function NetDebugCallEvent(args) {
this.init();
this.EventType = "Call";
this.MethodName = args[0];
this.Parameters = new Array();
var _local4 = args.length;
var _local2 = 2;
while (_local2 < _local4) {
this.Parameters[_local2 - 2] = args[_local2];
_local2++;
}
}
function NetDebugCloseEvent() {
this.init();
this.EventType = "Close";
}
function NetDebugAddHeaderEvent(args) {
this.init();
this.EventType = "AddHeader";
this.HeaderName = args[0];
this.MustUnderstand = args[1];
if (args[2] != null) {
this.HeaderObject = args[2];
}
}
function NetDebugRtmpLogEvent(infoobj) {
this.initDate();
this.EventType = "Trace";
this.Source = "Flash Communication Server";
this.Info = infoobj;
this.Trace = infoobj.description;
}
function NetDebugDuplicateNCDErrorEvent() {
this.initDate();
this.EventType = "Error";
this.Source = "NCD";
this.Message = "NCD_ALREADY_RUNNING";
}
function NetDebugFailedSendErrorEvent(ev) {
this.initDate();
this.EventType = "Error";
this.Source = "NCD";
this.OriginalEvent = ev;
this.Message = "NCD_FAILED_TO_SEND_EVENT";
}
function NetDebugInfoErrorEvent(infoobj, mes) {
this.initDate();
this.EventType = "Error";
this.Source = "NCD";
this.Info = infoobj;
if (mes != null) {
this.Message = mes;
}
}
function NetDebugReceiveCallEvent(mName, args) {
this.init();
this.EventType = "ReceivedCall";
this.MethodName = mName;
this.Parameters = args;
}
function netDebugProxyConnect() {
this.attachDebug();
var _local3 = arguments[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (arguments[0].charAt(4) == ":") {
this.m_Protocol = _local3;
} else {
this.m_Protocol = arguments[0].substr(0, 5);
}
} else {
this.m_Protocol = "http";
}
this.sendClientEvent(new NetDebugConnectEvent(arguments));
if (this.isRealTime()) {
this.m_ConnectString = arguments[0];
getNetDebug().sendCommand(new StartRTMPTraceCommand(arguments[0]));
var _local4 = this.realconnect.apply(this, arguments);
this.realcall("@getClientID", new RTMPClientIDResponse(arguments[0], this));
return(_local4);
}
return(this.realconnect.apply(this, arguments));
}
function netDebugProxyCall() {
this.attachDebug();
this.sendClientEvent(new NetDebugCallEvent(arguments));
this.addNetDebugHeader();
if (this.m_Config.app_server) {
arguments[1] = new NetDebugResponseProxy(this, arguments[1]);
return(this.realcall.apply(this, arguments));
}
return(this.realcall.apply(this, arguments));
}
function netDebugProxyClose() {
this.attachDebug();
this.sendClientEvent(new NetDebugCloseEvent());
if (this.isRealTime()) {
getNetDebug().sendCommand(new StopRTMPTraceCommand(this.m_ConnectString, this.m_ClientId));
}
var _local2 = this.realclose();
getNetDebug().removeNetConnection(this);
return(_local2);
}
function netDebugProxyAddHeader() {
this.attachDebug();
this.sendClientEvent(new NetDebugAddHeaderEvent(arguments));
return(this.realaddHeader.apply(this, arguments));
}
function RTMPClientIDResponse(cs, nc) {
this.m_ConnectString = cs;
this.m_NC = nc;
}
function NetDebugResponseProxy(source, original) {
this.m_SourceNC = source;
this.m_OriginalNR = original;
}
function GlobalLocalConnection(iscontroller, receiver, domainname) {
this.maxConnections = 10;
var _local5 = "_NetDebugLocalToDebugMovie";
var _local7 = "_NetDebugLocalToController";
var _local4 = null;
if (iscontroller) {
_local4 = _local7;
this.sendnames = new Array();
this.sendnames.push(_local5);
var _local3 = 0;
while (_local3 < this.maxConnections) {
this.sendnames.push(_local5 + _local3);
_local3++;
}
this.maxConnections = 0;
} else {
_local4 = _local5;
this.sendnames = new Array();
this.sendnames.push(_local7);
}
this.setDomainName(domainname);
if (_global.g_NetDebugLocalConnection == undefined) {
_global.g_NetDebugLocalConnection = new LocalConnection();
_global.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_global.g_NetDebugLocalConnection.m_Receiver = receiver;
_global.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_global.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_global.g_NetDebugLocalConnection.connect(_local4)) {
var _local6 = false;
var _local3 = 0;
while (_local3 < this.maxConnections) {
if (_global.g_NetDebugLocalConnection.connect(_local4 + _local3)) {
_local6 = true;
break;
}
_local3++;
}
if (!_local6) {
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 _local3 = new Object();
_local3.connectstring = cs;
_local3.url = _root._url;
this.init("startRealTimeTrace", _local3);
}
function AddRTMPClientCommand(cs, cid) {
var _local3 = new Object();
_local3.connectstring = cs;
_local3.url = _root._url;
_local3.clientid = cid;
this.init("addRealTimeClient", _local3);
}
function StopRTMPTraceCommand(cs, cid) {
var _local3 = new Object();
_local3.connectstring = cs;
_local3.url = _root._url;
_local3.clientid = cid;
this.init("stopRealTimeTrace", _local3);
}
function NetDebug() {
this.m_ncs = new Array();
this.m_Config = getDefaultNetDebugConfig();
this.m_glc = new GlobalLocalConnection(false, this);
this.m_glc.sendCommand(new GetConfigCommand());
this.m_NextNewId = 0;
}
function getNetDebug() {
return(_global.netDebugInstance);
}
function inserths_Result(result) {
_root.inserthsresult = result;
}
_global.RsDataProviderClass = function () {
this.init();
};
RsDataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
mx.events.EventDispatcher.initialize(this);
};
RsDataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local2 = {eventName:"updateAll"};
viewRef.modelChanged(_local2);
};
RsDataProviderClass.prototype.addItemAt = function (index, value) {
if (!this.checkLocal()) {
return(undefined);
}
if (index < 0) {
return(undefined);
}
if (index < this.length) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
}
this.items[index].__ID__ = this.uniqueID++;
var _local3 = {eventName:"addItems", firstItem:index, lastItem:index};
this.updateViews(_local3);
};
RsDataProviderClass.prototype.addItem = function (value) {
if (!this.checkLocal()) {
return(undefined);
}
this.addItemAt(this.length, value);
};
RsDataProviderClass.prototype.removeItemAt = function (index) {
if (!this.checkLocal()) {
return(undefined);
}
if ((index < 0) || (index >= this.length)) {
return(undefined);
}
var _local4 = this.items[index];
this.items.splice(index, 1);
var _local3 = {eventName:"deleteItems", firstItem:index, lastItem:index};
this.updateViews(_local3);
return(_local4);
};
RsDataProviderClass.prototype.removeAll = function () {
if (!this.checkLocal()) {
return(undefined);
}
this.items = new Array();
this.updateViews({eventName:"removeItems", firstItem:0, lastItem:this.length - 1});
};
RsDataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if (!this.checkLocal()) {
return(undefined);
}
if ((index < 0) || (index >= this.length)) {
return(undefined);
}
var _local3 = this.getItemID(index);
this.items[index] = itemObj;
this.items[index].__ID__ = _local3;
this.updateViews({eventName:"updateItems", firstItem:index, lastItem:index});
};
RsDataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
RsDataProviderClass.prototype.addProperty("length", RsDataProviderClass.prototype.getLength, null);
RsDataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
RsDataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
RsDataProviderClass.prototype.sortItems = function (compareFunc, order) {
if (!this.checkLocal()) {
return(undefined);
}
this.items.sort(compareFunc);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({eventName:"sort"});
};
RsDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
if (!this.checkLocal()) {
return(undefined);
}
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({eventName:"sort", fieldName:fieldName, order:order});
};
RsDataProviderClass.prototype.updateViews = function (eventObj) {
eventObj.type = "modelChanged";
this.dispatchEvent(eventObj);
var _local4 = this.views.length;
if (_local4 > 0) {
switch (eventObj.eventName) {
case "addItems" :
eventObj.event = "addRows";
break;
case "updateItems" :
eventObj.event = "updateRows";
break;
case "removeItems" :
eventObj.event = "deleteRows";
}
eventObj.firstRow = eventObj.firstItem;
eventObj.lastRow = eventObj.lastItem;
var _local2 = 0;
while (_local2 < _local4) {
this.views[_local2].modelChanged(eventObj);
_local2++;
}
}
};
_global.RecordSet = function (columnNames) {
if (this.mTitles != null) {
this.views = new Array();
return(undefined);
}
this.init();
if (this.serverinfo == null) {
if (this.serverInfo != null) {
this.serverinfo = this.serverInfo;
}
}
if (this.serverinfo == null) {
this.mTitles = columnNames;
return(undefined);
}
if (this.serverinfo.version != 1) {
NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
return(undefined);
}
this.mTitles = this.serverinfo.columnNames;
this.mRecordsAvailable = 0;
this.setData(((this.serverinfo.cursor == null) ? 0 : (this.serverinfo.cursor - 1)), this.serverinfo.initialData);
if (this.serverinfo.initialData.length != this.serverinfo.totalCount) {
this.mRecordSetID = this.serverinfo.id;
if (this.mRecordSetID != null) {
this.serviceName = ((this.serverinfo.serviceName == null) ? "RecordSet" : (this.serverinfo.serviceName));
this.mTotalCount = this.serverinfo.totalCount;
this.mDeliveryMode = "ondemand";
this.mAllNotified = false;
this.mOutstandingRecordCount = 0;
} else {
NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
this.serverinfo = null;
};
RecordSet.prototype = new RsDataProviderClass();
Object.registerClass("RecordSet", RecordSet);
RecordSet.prototype._setParentService = function (service) {
this.gateway_conn = service.nc;
};
RecordSet.prototype.getRecordSetService = function () {
if (this.mRecordSetService == null) {
if (this.gateway_conn == null) {
this.gateway_conn = NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
this.gateway_conn = this.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
this.gateway_conn.setupRecordset();
this.gateway_conn.setDebugId("RecordSet " + this.mRecordSetID);
}
this.mRecordSetService = this.gateway_conn.getService(this.serviceName, this);
if (this.mRecordSetService == null) {
NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
this.mRecordSetService = 0;
}
}
return(this.mRecordSetService);
};
RecordSet.prototype.getColumnNames = function () {
return(this.mTitles);
};
RecordSet.prototype.getLength = function () {
if (this.mRecordSetID != null) {
return(this.mTotalCount);
}
return(this.items.length);
};
RecordSet.prototype.addProperty("length", RecordSet.prototype.getLength, null);
RecordSet.prototype.getItemAt = function (index) {
if ((index < 0) || (index >= this.length)) {
return(null);
}
if (this.mRecordSetID == null) {
return(this.items[index]);
}
this.requestRecord(index);
var _local3 = this.items[index];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
};
RecordSet.prototype.setField = function (index, fieldName, value) {
if (!this.checkLocal()) {
return(undefined);
}
if ((index < 0) || (index >= this.length)) {
return(undefined);
}
this.items[index][fieldName] = value;
this.updateViews({eventName:"updateItems", firstItem:index, lastItem:index});
};
RecordSet.prototype.filter = function (filterFunction, context) {
if (!this.checkLocal()) {
return(undefined);
}
var _local4 = new RecordSet(this.mTitles);
var _local5 = this.length;
var _local3 = 0;
while (_local3 < _local5) {
var _local2 = this.getItemAt(_local3);
if (((_local2 != null) && (_local2 != 1)) && (filterFunction(_local2, context))) {
_local4.addItem(_local2);
}
_local3++;
}
return(_local4);
};
RecordSet.prototype.sort = function (compareFunc) {
if (!this.checkLocal()) {
return(undefined);
}
this.items.sort(compareFunc);
this.updateViews({eventName:"sort"});
};
RecordSet.prototype.isLocal = function () {
return(this.mRecordSetID == null);
};
RecordSet.prototype.isFullyPopulated = function () {
return(this.isLocal());
};
RecordSet.prototype.getNumberAvailable = function () {
if (this.isLocal()) {
return(this.length);
}
return(this.mRecordsAvailable);
};
RecordSet.prototype.setDeliveryMode = function (mode, pagesize, numPrefetchPages) {
this.mDeliveryMode = mode;
this.stopFetchAll();
if (mode == "ondemand") {
return(undefined);
}
if (pagesize == null) {
pagesize = this.views[0].getRowCount();
if (pagesize == null) {
pagesize = 25;
}
}
if (mode == "page") {
if (numPrefetchPages == null) {
numPrefetchPages = 0;
}
this.mPageSize = pagesize;
this.mNumPrefetchPages = numPrefetchPages;
} else if (mode == "fetchall") {
this.stopFetchAll();
this.startFetchAll(pagesize);
} else {
NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
};
RecordSet.prototype.getRecords_Result = function (info) {
this.setData(info.Cursor - 1, info.Page);
this.mOutstandingRecordCount = this.mOutstandingRecordCount - info.Page.length;
this.updateViews({eventName:"updateItems", firstItem:info.Cursor - 1, lastItem:((info.Cursor - 1) + info.Page.length) - 1});
if ((this.mRecordsAvailable == this.mTotalCount) && (!this.mAllNotified)) {
this.updateViews({eventName:"allRows"});
this.mRecordSetService.release();
this.mAllNotified = true;
this.mRecordSetID = null;
this.mRecordSetService = null;
}
};
RecordSet.prototype.release_Result = function () {
};
RecordSet.prototype.arrayToObject = function (anArray) {
if (this.mTitles == null) {
NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local4 = new Object();
var _local5 = anArray.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = this.mTitles[_local2];
if (_local3 == null) {
_local3 = ("column" + _local2) + 1;
}
_local4[_local3] = anArray[_local2];
_local2++;
}
return(_local4);
};
RecordSet.prototype.setData = function (start, dataArray) {
var _local5 = dataArray.length;
var _local2 = 0;
while (_local2 < _local5) {
var _local3 = _local2 + start;
var _local4 = this.items[_local3];
if ((_local4 != null) && (_local4 != 1)) {
NetServices.trace("RecordSet", "warning", 106, "Already got record # " + recordIndex);
} else {
this.mRecordsAvailable = this.mRecordsAvailable + 1;
}
this.items[_local3] = this.arrayToObject(dataArray[_local2]);
this.items[_local3].__ID__ = this.uniqueID++;
_local2++;
}
};
RecordSet.prototype.requestOneRecord = function (index) {
if (this.items[index] == null) {
this.getRecordSetService().getRecords(this.mRecordSetID, index + 1, 1);
this.mOutstandingRecordCount++;
this.items[index] = 1;
this.updateViews({eventName:"fetchRows", firstItem:index, lastItem:index});
}
};
RecordSet.prototype.requestRecord = function (index) {
if (this.mDeliveryMode != "page") {
this.requestOneRecord(index);
return(undefined);
}
var _local2 = int(index / this.mPageSize) * this.mPageSize;
var _local3 = (_local2 + (this.mPageSize * (this.mNumPrefetchPages + 1))) - 1;
this.requestRecordRange(_local2, _local3);
};
RecordSet.prototype.requestRecordRange = function (index, lastIndex) {
var _local9 = -1;
if (index < 0) {
index = 0;
}
if (lastIndex >= this.length) {
lastIndex = this.length - 1;
}
while (index <= lastIndex) {
while ((index <= lastIndex) && (this.items[index] != null)) {
index++;
}
var _local3 = index;
while ((index <= lastIndex) && (this.items[index] == null)) {
this.mOutstandingRecordCount++;
this.items[index] = 1;
index++;
}
var _local4 = index - 1;
if (_local3 <= _local4) {
this.getRecordSetService().getRecords(this.mRecordSetID, _local3 + 1, (_local4 - _local3) + 1);
_local9 = _local4;
this.updateViews({eventName:"fetchRows", firstItem:_local3, lastItem:_local4});
}
}
return(_local9);
};
RecordSet.prototype.startFetchAll = function (pagesize) {
this.mDataFetcher.disable();
this.mDataFetcher = new RsDataFetcher(this, pagesize);
};
RecordSet.prototype.stopFetchAll = function () {
this.mDataFetcher.disable();
this.mDataFetcher = null;
};
RecordSet.prototype.checkLocal = function () {
if (this.isLocal()) {
return(true);
}
NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(false);
};
_global.RsDataFetcher = function (recordSet, increment) {
this.mRecordSet = recordSet;
this.mRecordSet.addView(this);
this.mIncrement = increment;
this.mNextRecord = 0;
this.mEnabled = true;
this.doNext();
};
RsDataFetcher.prototype.disable = function () {
this.mEnabled = false;
this.mRecordSet.removeView(this);
};
RsDataFetcher.prototype.doNext = function () {
if (!this.mEnabled) {
return(undefined);
}
while (true) {
if (this.mNextRecord >= this.mRecordSet.length) {
return(undefined);
}
this.mHighestRequested = this.mRecordSet.requestRecordRange(this.mNextRecord, (this.mNextRecord + this.mIncrement) - 1);
this.mNextRecord = this.mNextRecord + this.mIncrement;
if (this.mHighestRequested > 0) {
return(undefined);
}
}
};
RsDataFetcher.prototype.modelChanged = function (eventObj) {
if (((eventObj.eventName == "updateItems") && (eventObj.firstItem <= this.mHighestRequested)) && (eventObj.lastItem >= this.mHighestRequested)) {
this.doNext();
}
if (eventObj.eventName == "allRows") {
this.disable();
}
};
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local2 = this.service.client;
result._setParentService(this.service);
var _local3 = this.methodName + "_Result";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](result);
} else if (typeof(_local2.onResult) == "function") {
_local2.onResult(result);
} else {
NetServices.trace("NetServices", "info", 1, (_local3 + " was received from server: ") + result);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local5 = this.service.client;
var _local6 = this.methodName + "_Status";
if (typeof(_local5[_local6]) == "function") {
_local5[_local6](result);
} else if (typeof(_local5.onStatus) == "function") {
_local5.onStatus(result);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(result);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(result);
} else {
NetServices.trace("NetServices", "info", 2, (((_local6 + " was received from server: <") + result.level) + "> ") + result.description);
}
};
_global.NetServiceProxy = function (nc, serviceName, client) {
if (nc != null) {
this.nc = nc;
this.serviceName = serviceName;
this.client = client;
}
};
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local3 = function () {
if (this.client != null) {
arguments.unshift(new NetServiceProxyResponder(this, methodName));
} else if (typeof(arguments[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
arguments.unshift(new NetServiceProxyResponder(this, methodName));
}
arguments.unshift((this.serviceName + ".") + methodName);
return(this.nc.call.apply(this.nc, arguments));
};
return(_local3);
};
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetConnection.prototype.getService = function (serviceName, client) {
var _local2 = new NetServiceProxy(this, serviceName, client);
return(_local2);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
this.addHeader(info.name, info.mustUnderstand, info.data);
};
NetConnection.prototype.AppendToGatewayUrl = function (urlSuffix) {
this.__urlSuffix = urlSuffix;
if (this.__originalUrl == null) {
this.__originalUrl = this.uri;
}
var _local2 = this.__originalUrl + urlSuffix;
this.connect(_local2);
};
NetConnection.prototype.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
NetConnection.prototype.clone = function () {
var _local2 = new NetConnection();
_local2.connect(this.uri);
return(_local2);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices.gatewayUrl = gatewayUrl;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
if (url == undefined) {
url = NetServices.gatewayUrl;
if (url == undefined) {
url = NetServices.defaultGatewayUrl;
}
}
if (url == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _local2 = new NetConnection();
_local2.connect(url);
return(_local2);
};
NetServices.getHostUrl = function () {
if (!NetServices.isHttpUrl(_root._url)) {
return(null);
}
var _local2 = _root._url.indexOf("/", 8);
if (_local2 < 0) {
return(null);
}
return(_root._url.substring(0, _local2));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _local1 = (((((who + " ") + severity) + " ") + number) + ": ") + message;
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
_global.copyProperties = function (to, from) {
for (var _local3 in from) {
if ((_local3 == "__proto__") || (_local3 == "function")) {
continue;
}
if (typeof(from[_local3]) == "object") {
if (to[_local3] == undefined) {
to[_local3] = new from[_local3].__proto__.constructor();
}
copyProperties(to[_local3], from[_local3]);
} else {
to[_local3] = from[_local3];
}
}
};
_global.copyObject = function (obj) {
if (typeof(obj) == "object") {
var _local1 = new obj.__proto__.constructor();
copyProperties(_local1, obj);
return(_local1);
}
return(obj);
};
_global.objectToStringTree = function (obj, openstr, typesepstr, valuesepstr, closestr) {
var _local1 = new StringLineAdder(obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
return(_local1.getString());
};
_global.objectToListboxTree = function (listbox, obj, openstr, typesepstr, valuesepstr, closestr) {
new ListLineAdder(listbox, obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
};
_global.StringLineAdder = function (obj, renderer) {
this.linerenderer = renderer;
this.output = "";
nestedObjectDump(0, null, obj, this);
};
StringLineAdder.prototype.getString = function () {
return(this.output);
};
StringLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local2 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local2 != null) {
this.output = this.output + (_local2 + newline);
}
return(true);
};
_global.ListLineAdder = function (listbox, obj, renderer) {
this.linerenderer = renderer;
this.output_lb = listbox;
nestedObjectDump(0, null, obj, this);
};
ListLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local2 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local2 != null) {
this.output_lb.addItem(_local2);
}
return(true);
};
_global.TreeLineRenderer = function (pre, typedelim, valuedelim, post) {
this.init(pre, typedelim, valuedelim, post);
};
TreeLineRenderer.prototype.init = function (pre, typedelim, valuedelim, post) {
this.prechar = pre;
this.typechar = typedelim;
this.valuechar = valuedelim;
this.postchar = post;
};
TreeLineRenderer.prototype.getLine = function (level, objname, objtype, objvalue, objnum) {
var _local3 = "";
var _local2 = 0;
while (_local2 < level) {
_local3 = _local3 + "\t";
_local2++;
}
var _local6 = this.valuechar;
if ((objname != null) && (objtype != "object")) {
_local3 = _local3 + (((this.prechar + objtype) + this.typechar) + objname);
} else if (objtype == "object") {
if (typeof(objvalue) == "number") {
_local3 = _local3 + (((this.prechar + objtype) + this.typechar) + objname);
_local3 = _local3 + ((_local6 + "object#") + objvalue);
objvalue = null;
} else {
_local3 = _local3 + (((((this.prechar + objtype) + "#") + objnum) + this.typechar) + objname);
}
} else {
_local3 = _local3 + (this.prechar + objtype);
_local6 = this.typechar;
}
if (objvalue != null) {
_local3 = _local3 + (_local6 + objvalue);
}
_local3 = _local3 + this.postchar;
return(_local3);
};
_global.nestedObjectDump = function (level, objname, obj, lineadder) {
if (level == 0) {
nestedObjectDump.callcount++;
nestedObjectDump.objcount = -1;
}
if (obj == null) {
return(lineadder.addLine(level, objname, "undefined"));
}
if (typeof(obj) == "function") {
return(lineadder.addLine(level, objname, "function"));
}
if (typeof(obj) == "object") {
if ((obj.__nestedObjectDump_id != undefined) && (obj.__nestedObjectDump_ref == nestedObjectDump.callcount)) {
return(lineadder.addLine(level, objname, "object", obj.__nestedObjectDump_id));
}
nestedObjectDump.objcount++;
if (lineadder.addLine(level, objname, "object", null, nestedObjectDump.objcount) == nestedObjectDump.skip) {
return(nestedObjectDump.proceed);
}
obj.__nestedObjectDump_id = nestedObjectDump.objcount;
obj.__nestedObjectDump_ref = nestedObjectDump.callcount;
var _local4 = new Array();
var _local3 = new Array();
for (var _local10 in obj) {
if (((_local10 == "__proto__") || (_local10 == "__nestedObjectDump_id")) || (_local10 == "__nestedObjectDump_ref")) {
continue;
}
if (typeof(obj[_local10]) == "object") {
_local3.push(_local10);
} else {
_local4.push(_local10);
}
}
if ((_local3.length == 0) && (_local4.length == 0)) {
if ((typeof(obj.toString) == "function") && (obj.toString() != "")) {
return(lineadder.addLine(level + 1, null, "string", obj.toString()));
}
if (lineadder.noProps != undefined) {
lineadder.noProps(level + 1);
return(nestedObjectDump.proceed);
}
}
_local4.sort();
_local3.sort();
var _local7 = true;
var _local8 = _local4.length;
var _local2 = 0;
while (_local2 < _local8) {
if (nestedObjectDump(level + 1, _local4[_local2], obj[_local4[_local2]], lineadder) == nestedObjectDump.stop) {
_local7 = false;
break;
}
_local2++;
}
if (_local7) {
var _local9 = _local3.length;
_local2 = 0;
while (_local2 < _local9) {
if (!nestedObjectDump(level + 1, _local3[_local2], obj[_local3[_local2]], lineadder)) {
_local7 = false;
}
_local2++;
}
}
return(nestedObjectDump.proceed);
}
return(lineadder.addLine(level, objname, typeof(obj), obj));
};
nestedObjectDump.proceed = 1;
nestedObjectDump.skip = 2;
nestedObjectDump.stop = 3;
nestedObjectDump.callcount = 0;
nestedObjectDump.objcount = 0;
Object.registerClass("NetDebugConfig", NetDebugConfig);
NetDebugEvent.prototype.init = function () {
this.EventType = "DebugEvent";
this.Source = "Client";
this.MovieUrl = unescape(_root._url);
this.initDate();
};
NetDebugEvent.prototype.initDate = function () {
var _local2 = new Date();
this.Date = _local2;
this.Time = _local2.getTime();
};
NetDebugErrorEvent.prototype = new NetDebugEvent();
NetDebugTraceEvent.prototype = new NetDebugEvent();
NetDebugTraceNetServicesEvent.prototype = new NetDebugEvent();
NetDebugNCEvent.prototype = new NetDebugEvent();
NetDebugResultEvent.prototype = new NetDebugNCEvent();
NetDebugStatusEvent.prototype = new NetDebugNCEvent();
NetDebugConnectEvent.prototype = new NetDebugNCEvent();
NetDebugCallEvent.prototype = new NetDebugNCEvent();
NetDebugCloseEvent.prototype = new NetDebugNCEvent();
NetDebugAddHeaderEvent.prototype = new NetDebugNCEvent();
NetDebugRtmpLogEvent.prototype = new NetDebugNCEvent();
NetDebugDuplicateNCDErrorEvent.prototype = new NetDebugNCEvent();
NetDebugFailedSendErrorEvent.prototype = new NetDebugNCEvent();
NetDebugInfoErrorEvent.prototype = new NetDebugNCEvent();
NetDebugResultEvent.prototype = new NetDebugNCEvent();
_global.StripNCDEventToMinmal = function (ev) {
var _local2 = new Object();
if (ev.EventType != null) {
_local2.EventType = ev.EventType;
}
if (ev.Source != null) {
_local2.Source = ev.Source;
}
if (ev.MovieUrl != null) {
_local2.MovieUrl = ev.MovieUrl;
}
if (ev.Date != null) {
_local2.Date = ev.Date;
}
if (ev.Time != null) {
_local2.Time = ev.Time;
}
if (ev.Protocol != null) {
_local2.Protocol = ev.Protocol;
}
if (ev.DebugId != null) {
_local2.DebugId = ev.DebugId;
}
return(_local2);
};
NetConnection.prototype.attachDebug = function () {
if (!this.m_Attached) {
this.m_Attached = true;
this.m_HeaderAdded = false;
this.m_Config = new NetDebugConfig();
copyProperties(this.m_Config, getNetDebug().m_Config);
this.m_Protocol = "none";
this.m_Id = getNetDebug().addNetConnection(this);
}
};
NetConnection.prototype.sendDebugEvent = function (eventobj) {
eventobj.Protocol = this.m_Protocol;
eventobj.DebugId = this.m_Id;
return(getNetDebug().onEvent(eventobj));
};
NetConnection.prototype.sendServerEvent = function (eventobj) {
eventobj.MovieUrl = unescape(_root._url);
if (!this.sendDebugEvent(eventobj)) {
}
};
NetConnection.prototype.sendClientEvent = function (eventobj) {
if (this.m_Config.m_debug && (this.m_Config.client.m_debug)) {
if ((this.m_Config.client.http && (this.m_Protocol == "http")) || (this.m_Config.client.rtmp && (this.m_Protocol.substr(0, 4) == "rtmp"))) {
if (!this.sendDebugEvent(eventobj)) {
}
}
}
};
NetConnection.prototype.addNetDebugHeader = function () {
if (!this.m_HeaderAdded) {
this.m_HeaderAdded = true;
if ((this.m_Config.m_debug && (this.m_Config.app_server.m_debug)) && (this.m_Protocol == "http")) {
this.realaddHeader("amf_server_debug", true, this.m_Config.app_server);
} else {
this.realaddHeader("amf_server_debug", true, undefined);
}
}
};
NetConnection.prototype.updateConfig = function (config) {
this.attachDebug();
copyProperties(this.m_Config, config);
this.m_HeaderAdded = false;
};
NetConnection.prototype.isRealTime = function () {
return(this.m_Protocol.substr(0, 4) == "rtmp");
};
NetConnection.prototype.setupRecordset = function () {
this.attachDebug();
this.m_Config.client.http = this.m_Config.client.recordset;
};
NetConnection.prototype.setDebugId = function (id) {
this.attachDebug();
this.m_Id = id;
};
NetConnection.prototype.getDebugId = function () {
this.attachDebug();
return(this.m_Id);
};
NetConnection.prototype.trace = function (traceobj) {
this.attachDebug();
if ((this.m_Config.m_debug && (this.m_Config.client.m_debug)) && (this.m_Config.client.trace)) {
this.sendDebugEvent(new NetDebugTraceEvent(traceobj));
}
};
NetConnection.prototype.getDebugConfig = function () {
this.attachDebug();
return(this.m_Config);
};
if (!NetConnection.prototype.netDebugProxyFunctions) {
NetConnection.prototype.netDebugProxyFunctions = true;
NetConnection.prototype.realconnect = NetConnection.prototype.connect;
NetConnection.prototype.realcall = NetConnection.prototype.call;
NetConnection.prototype.realclose = NetConnection.prototype.close;
NetConnection.prototype.realaddHeader = NetConnection.prototype.addHeader;
NetConnection.prototype.connect = netDebugProxyConnect;
NetConnection.prototype.call = netDebugProxyCall;
NetConnection.prototype.close = netDebugProxyClose;
NetConnection.prototype.addHeader = netDebugProxyAddHeader;
}
RTMPClientIDResponse.prototype.onResult = function (cid) {
this.m_NC.m_ClientId = cid;
getNetDebug().sendCommand(new AddRTMPClientCommand(this.m_ConnectString, cid));
};
NetDebugResponseProxy.prototype.onDebugEvents = function (debugevents) {
var _local3 = debugevents.length;
var _local2 = 0;
while (_local2 < _local3) {
this.m_SourceNC.sendServerEvent(debugevents[_local2]);
_local2++;
}
};
NetDebugResponseProxy.prototype.onResult = function (resultobj) {
this.m_SourceNC.sendClientEvent(new NetDebugResultEvent(resultobj));
this.m_OriginalNR.onResult(resultobj);
};
NetDebugResponseProxy.prototype.onStatus = function (statusobj) {
this.m_SourceNC.sendClientEvent(new NetDebugStatusEvent(statusobj));
if (this.m_OriginalNR.onStatus != undefined) {
this.m_OriginalNR.onStatus(statusobj);
} else {
_global.System.onStatus(statusobj);
}
};
NetDebugResponseProxy.prototype.__resolve = function (name) {
this.m_SourceNC.sendClientEvent(new NetDebugReceiveCallEvent(name, arguments));
this.m_OriginalNR[name].apply(arguments);
};
GlobalLocalConnection.prototype.setDomainName = function (domainname) {
if ((domainname != null) && (domainname != "")) {
this.sendPrefix = domainname + ":";
} 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 _local4 = true;
var _local5 = this.sendnames.length;
var _local3 = 0;
while (_local3 < _local5) {
_local4 = _local4 & _global.g_NetDebugLocalConnection.send(this.sendPrefix + this.sendnames[_local3], functionname, obj);
_local3++;
}
return(_local4);
};
LocalCommand.prototype.init = function (commandname, dataobj) {
this.command = commandname;
this.data = dataobj;
};
UpdateNetDebugConfigCommand.prototype = new LocalCommand();
GetConfigCommand.prototype = new LocalCommand();
StartRTMPTraceCommand.prototype = new LocalCommand();
AddRTMPClientCommand.prototype = new LocalCommand();
StopRTMPTraceCommand.prototype = new LocalCommand();
NetDebug.prototype.addNetConnection = function (nc) {
this.m_ncs.push(nc);
return(this.m_NextNewId++);
};
NetDebug.prototype.removeNetConnection = function (nc) {
var _local3 = this.m_ncs.length;
var _local2 = 0;
while (_local2 < _local3) {
if (nc == this.m_ncs[_local2]) {
this.m_ncs.splice(_local2, 1);
break;
}
_local2++;
}
};
NetDebug.prototype.sendDebugEvent = function (eventobj) {
if (!this.m_glc.send(eventobj)) {
this.m_glc.send(new NetDebugFailedSendErrorEvent(StripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
};
NetDebug.prototype.sendCommand = function (commandobj) {
return(this.m_glc.sendCommand(commandobj));
};
NetDebug.prototype.requestNewConfig = function () {
return(this.sendCommand(new GetConfigCommand()));
};
NetDebug.prototype.updateConfig = function (config) {
copyProperties(this.m_Config, config);
var _local3 = this.m_ncs.length;
var _local2 = 0;
while (_local2 < _local3) {
if (this.m_ncs[_local2] != null) {
this.m_ncs[_local2].updateConfig(config);
}
_local2++;
}
};
NetDebug.prototype.sendStatus = function (statusobj) {
if (this.m_Config.m_debug && (this.m_Config.client.m_debug)) {
return(this.m_glc.send(new NetDebugStatusEvent(statusobj)));
}
};
NetDebug.prototype.onEvent = function (eventobj) {
return(this.sendDebugEvent(eventobj));
};
NetDebug.prototype.onEventError = function (errorobj) {
return(this.sendDebugEvent(new NetDebugErrorEvent(errorobj)));
};
NetDebug.prototype.onReceiveCommand = function (commandobj) {
this[commandobj.command](commandobj.data);
};
NetDebug.prototype.onReceiveError = function (errorobj) {
this.sendDebugEvent(new NetDebugErrorEvent(errorobj));
};
NetDebug.prototype.traceNetServices = function (who, severity, number, message) {
if ((this.m_Config.m_debug && (this.m_Config.client.m_debug)) && (this.m_Config.client.trace)) {
if (!this.sendDebugEvent(new NetDebugTraceNetServicesEvent(who, severity, number, message))) {
}
}
};
NetDebug.prototype.trace = function (traceobj) {
if ((this.m_Config.m_debug && (this.m_Config.client.m_debug)) && (this.m_Config.client.trace)) {
if (!this.sendDebugEvent(new NetDebugTraceEvent(traceobj))) {
}
}
};
if (_global.netDebugInstance == undefined) {
_global.netDebugInstance = new NetDebug();
}
NetDebug.trace = function (obj) {
getNetDebug().trace(obj);
};
NetDebug.traceNetServices = function (who, severity, number, message) {
getNetDebug().traceNetServices(who, severity, number, message);
};
NetDebug.getVersion = function () {
return(getNetDebugVersion());
};
NetDebug.globalOnStatus = function (statusobj) {
getNetDebug().sendStatus(statusobj);
};
if (_global.System.onStatus == undefined) {
_global.System.onStatus = NetDebug.globalOnStatus;
}
_global.DataGlue = function (dataProvider) {
this.dataProvider = dataProvider;
};
_global.DataGlue.bindFormatStrings = function (dataConsumer, dataProvider, labelString, dataString) {
var _local2 = new DataGlue(dataProvider);
_local2.labelString = labelString;
_local2.dataString = dataString;
_local2.getItemAt = _global.DataGlue.getItemAt_FormatString;
dataConsumer.setDataProvider(_local2);
};
_global.DataGlue.bindFormatFunction = function (dataConsumer, dataProvider, formatFunction) {
var _local2 = new DataGlue(dataProvider);
_local2.formatFunction = formatFunction;
_local2.getItemAt = _global.DataGlue.getItemAt_FormatFunction;
dataConsumer.setDataProvider(_local2);
};
_global.DataGlue.prototype.addView = function (viewRef) {
return(this.dataProvider.addView(viewRef));
};
_global.DataGlue.prototype.getLength = function () {
return(this.dataProvider.length);
};
_global.DataGlue.prototype.format = function (formatString, record) {
var _local2 = formatString.split("#");
var _local3 = "";
var _local4 = _local2.length;
var _local1 = 0;
while (_local1 < _local4) {
_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.dataProvider.getItemAt(index);
if ((_local2 == "in progress") || (_local2 == undefined)) {
return(_local2);
}
return({label:this.format(this.labelString, _local2), data:((this.dataString == null) ? (_local2) : (this.format(this.dataString, _local2)))});
};
_global.DataGlue.getItemAt_FormatFunction = function (index) {
var _local2 = this.dataProvider.getItemAt(index);
if ((_local2 == "in progress") || (_local2 == undefined)) {
return(_local2);
}
return(this.formatFunction(_local2));
};
_global.DataGlue.prototype.getItemID = function (index) {
return(this.dataProvider.getItemID(index));
};
_global.DataGlue.prototype.addItemAt = function (index, value) {
return(this.dataProvider.addItemAt(index, value));
};
_global.DataGlue.prototype.addItem = function (value) {
return(this.dataProvider.addItem(value));
};
_global.DataGlue.prototype.removeItemAt = function (index) {
return(this.dataProvider.removeItemAt(index));
};
_global.DataGlue.prototype.removeAll = function () {
return(this.dataProvider.removeAll());
};
_global.DataGlue.prototype.replaceItemAt = function (index, itemObj) {
return(this.dataProvider.replaceItemAt(index, itemObj));
};
_global.DataGlue.prototype.sortItemsBy = function (fieldName, order) {
return(this.dataProvider.sortItemsBy(fieldName, order));
};
_global.DataGlue.prototype.sortItems = function (compareFunc, order) {
return(this.dataProvider.sortItems(compareFunc, order));
};
isGatewayOpen = null;
if (isGatewayOpen == null) {
isGatewayOpen = true;
NetServices.setDefaultGatewayUrl("http://www.egamingzone.com/flashservices/gateway");
gatewayConnection = NetServices.createGatewayConnection();
inserthscfc = gatewayConnection.getService("cfc.inserths", this);
}
Frame 2
stop();
Frame 4
function populate(rows) {
_root.ballsUsed = 0;
ballup = random(7) + 2;
nextball = random(7) + 2;
nextball2 = random(7) + 2;
r = 1;
while (r < rows) {
c = 0;
while (c < 17) {
eval ((("balls.R" + r) + "C") + c).gotoAndStop(random(7) + 2);
c++;
}
r++;
}
clean(rows, 7);
}
function clean(rows, count) {
i = 0;
while (i < count) {
_root.iconcnt = _root.iconcnt + 1;
if (_root.iconcnt > 7) {
_root.iconcnt = 1;
}
r = 1;
while (r < rows) {
c = 0;
while (c < 17) {
PopCheckRow(r, c);
c++;
}
r++;
}
i++;
}
}
function PopCheckRow(Row, Col) {
makeIconList(Row, Col);
if (MeIcon == TLIcon) {
matches = matches + 1;
}
if (MeIcon == TRIcon) {
matches = matches + 1;
}
if (MeIcon == LIcon) {
matches = matches + 1;
}
if (MeIcon == RIcon) {
matches = matches + 1;
}
if (MeIcon == BLIcon) {
matches = matches + 1;
}
if (MeIcon == BRIcon) {
matches = matches + 1;
}
if (matches > 1) {
Me.gotoAndStop(9 - _root.iconcnt);
_root.matchCnt = _root.matchCnt + 1;
redo = true;
}
}
function checkMatches() {
ballF = _root.fireball._currentframe;
r = 1;
while (r < 16) {
c = 0;
while (c < 17) {
if (eval ((("balls.R" + r) + "C") + c)._currentframe == ballF) {
CheckRowMatch(r, c);
}
c++;
}
r++;
}
}
function CheckRowMatch(Row, Col) {
makeIconList(Row, Col);
if (MeIcon > 1) {
if (MeIcon == TLIcon) {
matches = matches + 1;
}
if (MeIcon == TRIcon) {
matches = matches + 1;
}
if (MeIcon == LIcon) {
matches = matches + 1;
}
if (MeIcon == RIcon) {
matches = matches + 1;
}
if (MeIcon == BLIcon) {
matches = matches + 1;
}
if (MeIcon == BRIcon) {
matches = matches + 1;
}
if (matches > 1) {
_root.popSound.start();
if (MeIcon == TLIcon) {
MyTL.expl.gotoAndPlay(2);
}
if (MeIcon == TRIcon) {
MyTR.expl.gotoAndPlay(2);
}
if (MeIcon == LIcon) {
MyL.expl.gotoAndPlay(2);
}
if (MeIcon == RIcon) {
MyR.expl.gotoAndPlay(2);
}
if (MeIcon == BLIcon) {
MyBL.expl.gotoAndPlay(2);
}
if (MeIcon == BRIcon) {
MyBR.expl.gotoAndPlay(2);
}
Me.expl.gotoAndPlay(2);
}
}
}
function checkAttached() {
expcnt = 0;
_root.I1Cnt = 0;
_root.I2Cnt = 0;
_root.I3Cnt = 0;
_root.I4Cnt = 0;
_root.I5Cnt = 0;
_root.I6Cnt = 0;
_root.I7Cnt = 0;
c = 0;
while (c < 17) {
thisIcon = eval ("balls.R1C" + c)._currentframe;
if (thisIcon > 1) {
eval ("balls.R1C" + c).attached = true;
eval ("balls.R1C" + c).checks();
}
c++;
}
_root.attachAll = 0;
BallBotY = -3000;
r = 1;
while (r < 16) {
c = 0;
while (c < 17) {
CheckFall(r, c);
c++;
}
r++;
}
r = 0;
while (r <= 8) {
thisI = eval (("_root.I" + r) + "Cnt");
if (thisI == 0) {
l = 0;
while (l <= _root.ballList.length) {
if (_root.ballList[l] == r) {
_root.ballList.splice(l, 1);
if (_root.ballup == (r + 1)) {
_root.ballup = _root.ballList[random(_root.ballList.length)] + 1;
}
if (_root.nextball == (r + 1)) {
_root.nextball = _root.ballList[random(_root.ballList.length)] + 1;
}
if (_root.nextball2 == (r + 1)) {
_root.nextball2 = _root.ballList[random(_root.ballList.length)] + 1;
}
}
l++;
}
}
r++;
}
return(expcnt);
}
function CheckRowAttach(Row, Col, sub) {
Me = eval ((("balls.R" + Row) + "C") + Col);
if (((Me._currentframe > 0) and (Me.sent != true)) and ((sub == false) or (Me.attached == true))) {
makeIconList(Row, Col);
Me.attached = true;
Me.sent = true;
if (TLIcon > 1) {
MyTL.attached = true;
}
if (TRIcon > 1) {
MyTR.attached = true;
}
if (LIcon > 1) {
MyL.attached = true;
}
if (RIcon > 1) {
MyR.attached = true;
}
if (BLIcon > 1) {
MyBL.attached = true;
}
if (BRIcon > 1) {
MyBR.attached = true;
}
}
}
function CheckFall(Row, Col) {
Me = eval ((("balls.R" + Row) + "C") + Col);
if ((Me.attached != true) and (Me._currentframe > 1)) {
expcnt = expcnt + 1;
Me.expl.gotoAndPlay("fall");
if (_root.team != 2) {
_root.celebrate = true;
_root.characters.shooters.ball.gotoAndStop(1);
} else {
_root.characters.shooters.ball.gotoAndPlay(2);
}
_root.characters.shooters.server.gotoAndPlay("celebrate");
_root.fallSound.start();
} else if ((Me.attached == true) and (Me.dead != true)) {
if (Me._y > BallBotY) {
BallBotY = Me._y;
}
MIcon = eval (("_root.I" + (Me._currentframe - 1)) + "Cnt");
Set(("_root.I" + (Me._currentframe - 1)) + "Cnt", MIcon + 1);
_root.attachAll = _root.attachAll + 1;
}
Me.sent = false;
Me.attached = false;
}
function makeIconList(Row, Col) {
ODDEVEN = Row / 2;
if (Math.round(ODDEVEN) != ODDEVEN) {
ovar = 1;
} else {
ovar = 0;
}
Me = eval ((("balls.R" + Row) + "C") + Col);
matches = 0;
MyTL = eval ((("balls.R" + (Row - 1)) + "C") + (Col - ovar));
MyTR = eval ((("balls.R" + (Row - 1)) + "C") + ((Col + 1) - ovar));
MyL = eval ((("balls.R" + Row) + "C") + (Col - 1));
MyR = eval ((("balls.R" + Row) + "C") + (Col + 1));
MyBL = eval ((("balls.R" + (Row + 1)) + "C") + (Col - ovar));
MyBR = eval ((("balls.R" + (Row + 1)) + "C") + ((Col + 1) - ovar));
MeIcon = Me._currentframe;
TLIcon = MyTL._currentframe;
TRIcon = MyTR._currentframe;
LIcon = MyL._currentframe;
RIcon = MyR._currentframe;
BLIcon = MyBL._currentframe;
BRIcon = MyBR._currentframe;
}
function checkHits(xL, yL) {
collision = false;
_root.tracker._x = xL;
_root.tracker._y = yL;
if (balls.top.hitTest(_root.tracker)) {
c = 0;
while (c < 17) {
Me = eval ("balls.R1C" + c);
if (Me._currentframe < 2) {
if (Me.hitTest(_root.fireball.hitarea)) {
Me.gotoAndPlay(_root.fireball._currentframe);
_root.fireball.fireing = false;
_root.fireball._x = 2000;
_root.fireball._y = 2000;
_root.controller.gotoAndPlay(2);
return("stop");
}
}
c++;
}
} else {
hitR = rowLoc(yL);
c = 0;
while (c < 17) {
Me = eval ((("balls.R" + hitR) + "C") + c);
if (Me._currentframe > 1) {
if (Me.hitTest(_root.tracker)) {
collision = true;
thisRow = hitR;
thisCol = c;
_root.fireball._visible = false;
break;
}
}
c++;
}
}
if (collision == true) {
makeIconList(thisRow, thisCol);
if (MyR._currentframe < 2) {
if (MyR.hitTest(_root.fireball.hitarea)) {
MyR.gotoAndPlay(_root.fireball._currentframe);
_root.fireball.fireing = false;
_root.fireball._x = 2000;
_root.fireball._y = 2000;
}
}
if (MyL._currentframe < 2) {
if (MyL.hitTest(_root.fireball.hitarea)) {
MyL.gotoAndPlay(_root.fireball._currentframe);
_root.fireball.fireing = false;
_root.fireball._x = 2000;
_root.fireball._y = 2000;
}
}
if (MyTL._currentframe < 2) {
if (MyTL.hitTest(_root.fireball.hitarea)) {
MyTL.gotoAndPlay(_root.fireball._currentframe);
_root.fireball.fireing = false;
_root.fireball._x = 2000;
_root.fireball._y = 2000;
}
}
if (MyTR._currentframe < 2) {
if (MyTR.hitTest(_root.fireball.hitarea)) {
MyTR.gotoAndPlay(_root.fireball._currentframe);
_root.fireball.fireing = false;
_root.fireball._x = 2000;
_root.fireball._y = 2000;
}
}
if (MyBR._currentframe < 2) {
if (MyBR.hitTest(_root.fireball.hitarea)) {
MyBR.gotoAndPlay(_root.fireball._currentframe);
_root.fireball.fireing = false;
_root.fireball._x = 2000;
_root.fireball._y = 2000;
}
}
if (MyBL._currentframe < 2) {
if (MyBL.hitTest(_root.fireball.hitarea)) {
MyBL.gotoAndPlay(_root.fireball._currentframe);
_root.fireball.fireing = false;
_root.fireball._x = 2000;
_root.fireball._y = 2000;
}
}
_root.controller.gotoAndPlay(2);
return("stop");
}
_root.fireball._x = xL;
_root.fireball._y = yL;
return("none");
}
function rowLoc(Hby) {
point = new Object();
point.x = 0;
point.y = Hby;
balls.globalToLocal(point);
bally = point.y;
r = 1;
while (r < 16) {
NewR = eval (("balls.R" + r) + "C0")._y;
if ((bally < (NewR + 12)) and (bally > (NewR - 12))) {
return(r);
}
r++;
}
}
iconcnt = 1;
_root.score = 0;
Mouse.show();
_root.botLim = 317;
_root.MainBotY = -3000;
_root.popSound = new Sound();
_root.popSound.attachSound("BallPop");
_root.fallSound = new Sound();
_root.fallSound.attachSound("BallFall");
_root.keyleft = false;
_root.keyright = false;
_root.attachCheck = true;
stop();
Frame 14
stop();
Frame 21
stop();
Frame 22
stop();
Instance of Symbol 129 MovieClip in Frame 30
onClipEvent (load) {
gotoAndStop(_root.team);
}
Frame 39
_root.inserthscfc.inserths(_level0.u_id, 9, _level0.paid, _root.score);
Instance of Symbol 143 MovieClip in Frame 39
onClipEvent (load) {
gotoAndStop(_root.team);
}
Instance of Symbol 156 MovieClip in Frame 47
onClipEvent (load) {
gotoAndStop(_root.team);
}
Frame 57
_root.populate(4);
_root.MainBotY = -3000;
_root.attachAll = 1;
_root.ballList = [1, 2, 3, 4, 5, 6, 7];
_root.diespeed = 10;
_root.nextlev = "level2";
stop();
Instance of Symbol 183 MovieClip "fireball" in Frame 57
onClipEvent (load) {
function fire(xloc, yloc, Icon, angle) {
_visible = true;
gotoAndStop(Icon);
fireing = true;
angle = angle - 90;
xmove = Math.cos((Math.PI/180) * angle) * 50;
ymove = Math.sin((Math.PI/180) * angle) * 50;
_x = xloc;
_y = yloc;
_x = (_x + xmove);
_y = (_y + ymove);
myvar = "none";
}
_x = 1000;
_y = 2000;
fireing = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (fireing == true) {
xs = _x;
ys = _y;
tcpx = xmove * 0.05;
tcpy = ymove * 0.05;
cp = 0;
while (cp < 21) {
if (((_x + tcpx) > 424) or ((_x + tcpx) < 24)) {
tcpx = tcpx * -1;
xmove = xmove * -1;
break;
}
xs = xs + tcpx;
ys = ys + tcpy;
myvar = _root.checkHits(xs, ys);
if (myvar == "stop") {
break;
}
cp++;
}
}
}
Instance of Symbol 182 MovieClip "tracker" in Frame 57
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 188 MovieClip in Frame 57
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (unload) {
Mouse.show();
}
Instance of Symbol 202 MovieClip "mech" in Frame 57
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 715 MovieClip "characters" in Frame 57
onClipEvent (load) {
gotoAndStop(_root.team);
}
Frame 68
_root.populate(6);
_root.MainBotY = -3000;
_root.attachAll = 1;
_root.diespeed = 10;
_root.ballList = [1, 2, 3, 4, 5, 6, 7];
_root.nextlev = "level3";
stop();
Instance of Symbol 182 MovieClip "tracker" in Frame 68
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 183 MovieClip "fireball" in Frame 68
onClipEvent (load) {
function fire(xloc, yloc, Icon, angle) {
_visible = true;
gotoAndStop(Icon);
fireing = true;
angle = angle - 90;
xmove = Math.cos((Math.PI/180) * angle) * 50;
ymove = Math.sin((Math.PI/180) * angle) * 50;
_x = xloc;
_y = yloc;
_x = (_x + xmove);
_y = (_y + ymove);
myvar = "none";
}
_x = 1000;
_y = 2000;
fireing = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (fireing == true) {
xs = _x;
ys = _y;
tcpx = xmove * 0.05;
tcpy = ymove * 0.05;
cp = 0;
while (cp < 21) {
if (((_x + tcpx) > 424) or ((_x + tcpx) < 24)) {
tcpx = tcpx * -1;
xmove = xmove * -1;
break;
}
xs = xs + tcpx;
ys = ys + tcpy;
myvar = _root.checkHits(xs, ys);
if (myvar == "stop") {
break;
}
cp++;
}
}
}
Instance of Symbol 188 MovieClip in Frame 68
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (unload) {
Mouse.show();
}
Instance of Symbol 202 MovieClip "mech" in Frame 68
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 715 MovieClip "characters" in Frame 68
onClipEvent (load) {
gotoAndStop(_root.team);
}
Frame 78
_root.populate(7);
_root.MainBotY = -3000;
_root.attachAll = 1;
_root.diespeed = 10;
_root.ballList = [1, 2, 3, 4, 5, 6, 7];
_root.nextlev = "level4";
stop();
Instance of Symbol 182 MovieClip "tracker" in Frame 78
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 183 MovieClip "fireball" in Frame 78
onClipEvent (load) {
function fire(xloc, yloc, Icon, angle) {
_visible = true;
gotoAndStop(Icon);
fireing = true;
angle = angle - 90;
xmove = Math.cos((Math.PI/180) * angle) * 50;
ymove = Math.sin((Math.PI/180) * angle) * 50;
_x = xloc;
_y = yloc;
_x = (_x + xmove);
_y = (_y + ymove);
myvar = "none";
}
_x = 1000;
_y = 2000;
fireing = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (fireing == true) {
xs = _x;
ys = _y;
tcpx = xmove * 0.05;
tcpy = ymove * 0.05;
cp = 0;
while (cp < 21) {
if (((_x + tcpx) > 424) or ((_x + tcpx) < 24)) {
tcpx = tcpx * -1;
xmove = xmove * -1;
break;
}
xs = xs + tcpx;
ys = ys + tcpy;
myvar = _root.checkHits(xs, ys);
if (myvar == "stop") {
break;
}
cp++;
}
}
}
Instance of Symbol 188 MovieClip in Frame 78
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (unload) {
Mouse.show();
}
Instance of Symbol 202 MovieClip "mech" in Frame 78
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 715 MovieClip "characters" in Frame 78
onClipEvent (load) {
gotoAndStop(_root.team);
}
Frame 86
_root.populate(8);
_root.MainBotY = -3000;
_root.attachAll = 1;
_root.diespeed = 10;
_root.ballList = [1, 2, 3, 4, 5, 6, 7];
_root.nextlev = "level5";
stop();
Instance of Symbol 182 MovieClip "tracker" in Frame 86
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 183 MovieClip "fireball" in Frame 86
onClipEvent (load) {
function fire(xloc, yloc, Icon, angle) {
_visible = true;
gotoAndStop(Icon);
fireing = true;
angle = angle - 90;
xmove = Math.cos((Math.PI/180) * angle) * 50;
ymove = Math.sin((Math.PI/180) * angle) * 50;
_x = xloc;
_y = yloc;
_x = (_x + xmove);
_y = (_y + ymove);
myvar = "none";
}
_x = 1000;
_y = 2000;
fireing = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (fireing == true) {
xs = _x;
ys = _y;
tcpx = xmove * 0.05;
tcpy = ymove * 0.05;
cp = 0;
while (cp < 21) {
if (((_x + tcpx) > 424) or ((_x + tcpx) < 24)) {
tcpx = tcpx * -1;
xmove = xmove * -1;
break;
}
xs = xs + tcpx;
ys = ys + tcpy;
myvar = _root.checkHits(xs, ys);
if (myvar == "stop") {
break;
}
cp++;
}
}
}
Instance of Symbol 188 MovieClip in Frame 86
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (unload) {
Mouse.show();
}
Instance of Symbol 202 MovieClip "mech" in Frame 86
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 715 MovieClip "characters" in Frame 86
onClipEvent (load) {
gotoAndStop(_root.team);
}
Frame 94
_root.populate(9);
_root.MainBotY = -3000;
_root.attachAll = 1;
_root.diespeed = 10;
_root.ballList = [1, 2, 3, 4, 5, 6, 7];
_root.nextlev = "winscreen";
stop();
Instance of Symbol 182 MovieClip "tracker" in Frame 94
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 183 MovieClip "fireball" in Frame 94
onClipEvent (load) {
function fire(xloc, yloc, Icon, angle) {
_visible = true;
gotoAndStop(Icon);
fireing = true;
angle = angle - 90;
xmove = Math.cos((Math.PI/180) * angle) * 50;
ymove = Math.sin((Math.PI/180) * angle) * 50;
_x = xloc;
_y = yloc;
_x = (_x + xmove);
_y = (_y + ymove);
myvar = "none";
}
_x = 1000;
_y = 2000;
fireing = false;
_visible = false;
}
onClipEvent (enterFrame) {
if (fireing == true) {
xs = _x;
ys = _y;
tcpx = xmove * 0.05;
tcpy = ymove * 0.05;
cp = 0;
while (cp < 21) {
if (((_x + tcpx) > 424) or ((_x + tcpx) < 24)) {
tcpx = tcpx * -1;
xmove = xmove * -1;
break;
}
xs = xs + tcpx;
ys = ys + tcpy;
myvar = _root.checkHits(xs, ys);
if (myvar == "stop") {
break;
}
cp++;
}
}
}
Instance of Symbol 188 MovieClip in Frame 94
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (unload) {
Mouse.show();
}
Instance of Symbol 202 MovieClip "mech" in Frame 94
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 715 MovieClip "characters" in Frame 94
onClipEvent (load) {
gotoAndStop(_root.team);
}
Frame 109
stop();
Frame 118
stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 9
_root.gotoAndStop(_root.target);
Symbol 848 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialize(object) {
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
object.addEventListener = _fEventDispatcher.addEventListener;
object.removeEventListener = _fEventDispatcher.removeEventListener;
object.dispatchEvent = _fEventDispatcher.dispatchEvent;
object.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local7 = "__q_" + eventObj.type;
var _local4 = queueObj[_local7];
if (_local4 != undefined) {
var _local5;
for (_local5 in _local4) {
var _local1 = _local4[_local5];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent == undefined) {
_local1[eventObj.type](eventObj);
} else {
_local1.handleEvent(eventObj);
}
} else {
_local1.apply(queueObj, [eventObj]);
}
}
}
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
dispatchQueue(this, eventObj);
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
static var _fEventDispatcher = undefined;
}
Instance of Symbol 10 MovieClip in Symbol 15 MovieClip Frame 1
onClipEvent (load) {
myW = _width;
_width = 0;
Total = _root.getBytesTotal();
inc = myW / Total;
}
onClipEvent (enterFrame) {
_width = (inc * _root.getBytesLoaded());
}
Symbol 15 MovieClip Frame 2
Total = _root.getBytesTotal();
Bload = _root.getBytesLoaded();
if (Bload >= Total) {
_root.play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 35 Button
on (release) {
_root.target = "story";
_root.fade.gotoAndPlay(2);
}
Symbol 40 Button
on (release) {
_root.target = "instruct";
_root.fade.gotoAndPlay(2);
}
Symbol 49 Button
on (release) {
_root.target = "story";
_root.fade.gotoAndPlay(2);
}
Symbol 52 Button
on (release) {
_root.target = "selection";
_root.fade.gotoAndPlay(2);
}
Symbol 68 Button
on (rollOver) {
gotoAndStop (2);
}
on (press) {
gotoAndStop (4);
}
Symbol 69 MovieClip Frame 10
stop();
Symbol 70 Button
on (rollOut) {
gotoAndStop (3);
}
on (press) {
gotoAndStop (4);
}
Symbol 71 MovieClip Frame 1
Symbol 71 MovieClip Frame 10
stop();
Symbol 72 Button
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (4);
}
on (rollOver) {
gotoAndStop (2);
}
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 3
stop();
Symbol 73 MovieClip Frame 4
_root.team = 2;
_root.target = "level1";
_root.fade.gotoAndPlay(2);
stop();
Symbol 82 Button
on (rollOver) {
gotoAndStop (2);
}
on (press) {
gotoAndStop (4);
}
Symbol 83 MovieClip Frame 10
stop();
Symbol 84 Button
on (rollOut) {
gotoAndStop (3);
}
on (press) {
gotoAndStop (4);
}
Symbol 85 MovieClip Frame 10
stop();
Symbol 86 Button
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (4);
}
on (rollOver) {
gotoAndStop (2);
}
Symbol 87 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 2
stop();
Symbol 87 MovieClip Frame 3
stop();
Symbol 87 MovieClip Frame 4
_root.team = 1;
_root.target = "level1";
_root.fade.gotoAndPlay(2);
stop();
Symbol 97 Button
on (rollOver) {
gotoAndStop (2);
}
on (press) {
gotoAndStop (4);
}
Symbol 98 MovieClip Frame 10
stop();
Symbol 99 Button
on (rollOut) {
gotoAndStop (3);
}
on (press) {
gotoAndStop (4);
}
Symbol 100 MovieClip Frame 1
Symbol 100 MovieClip Frame 10
stop();
Symbol 101 Button
on (rollOut) {
gotoAndStop (1);
}
on (press) {
gotoAndStop (4);
}
on (rollOver) {
gotoAndStop (2);
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
stop();
Symbol 102 MovieClip Frame 4
_root.team = 3;
_root.target = "level1";
_root.fade.gotoAndPlay(2);
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 3
stop();
Symbol 130 Button
on (release) {
_root.target = _root.nextlev;
_root.fade.gotoAndPlay(2);
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 3
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 2
stop();
Symbol 156 MovieClip Frame 3
stop();
Symbol 157 Button
on (release) {
_root.target = "level1";
_root.fade.gotoAndPlay(2);
}
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 2
_parent.sent = true;
_parent.dead = true;
_parent.attached = true;
_parent._xscale = _parent._xscale - 20;
_parent._yscale = _parent._xscale;
Symbol 168 MovieClip Frame 3
_parent._xscale = _parent._xscale - 40;
_parent._yscale = _parent._xscale;
Symbol 168 MovieClip Frame 4
_root.score = _root.score + 10;
gotoAndStop (1);
_parent.gotoAndStop(1);
_parent.dead = false;
_parent._xscale = 100;
_parent._yscale = 100;
Symbol 168 MovieClip Frame 5
startx = _parent._x;
starty = _parent._y;
xmove = random(15) - 7;
ymove = -10 + random(6);
Symbol 168 MovieClip Frame 6
_parent._x = _parent._x + xmove;
_parent._y = _parent._y + ymove;
ymove = ymove + 3;
if ((_parent._x > 200) or (_parent._x < -200)) {
xmove = xmove * -1;
}
if (_parent._y > 250) {
_parent._x = startx;
_parent._y = starty;
_parent.gotoAndStop(1);
gotoAndStop (1);
}
Symbol 168 MovieClip Frame 7
_parent._x = _parent._x + xmove;
_parent._y = _parent._y + ymove;
ymove = ymove + 3;
if ((_parent._x > 200) or (_parent._x < -200)) {
xmove = xmove * -1;
}
if (_parent._y > 250) {
_parent._x = startx;
_parent._y = starty;
_root.score = _root.score + 50;
_parent.gotoAndStop(1);
gotoAndStop (1);
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 178 MovieClip Frame 1
function checks() {
if ((attached == true) and (sent == false)) {
if (_currentframe > 1) {
ODDEVEN = Row / 2;
if (Math.round(ODDEVEN) != ODDEVEN) {
ovar = 1;
} else {
ovar = 0;
}
Me = eval ((("_root.balls.R" + Row) + "C") + Col);
MyTL = eval ((("_root.balls.R" + (Row - 1)) + "C") + (Col - ovar));
MyTR = eval ((("_root.balls.R" + (Row - 1)) + "C") + ((Col + 1) - ovar));
MyL = eval ((("_root.balls.R" + Row) + "C") + (Col - 1));
MyR = eval ((("_root.balls.R" + Row) + "C") + (Col + 1));
MyBL = eval ((("_root.balls.R" + (Row + 1)) + "C") + (Col - ovar));
MyBR = eval ((("_root.balls.R" + (Row + 1)) + "C") + ((Col + 1) - ovar));
MeIcon = Me._currentframe;
TLIcon = MyTL._currentframe;
TRIcon = MyTR._currentframe;
LIcon = MyL._currentframe;
RIcon = MyR._currentframe;
BLIcon = MyBL._currentframe;
BRIcon = MyBR._currentframe;
Me.sent = true;
Me.attached = true;
if (TLIcon > 1) {
MyTL.attached = true;
MyTL.checks();
}
if (TRIcon > 1) {
MyTR.attached = true;
MyTR.checks();
}
if (LIcon > 1) {
MyL.attached = true;
MyL.checks();
}
if (RIcon > 1) {
MyR.attached = true;
MyR.checks();
}
if (BLIcon > 1) {
MyBL.attached = true;
MyBL.checks();
}
if (BRIcon > 1) {
MyBR.attached = true;
MyBR.checks();
}
}
}
}
stop();
Instance of Symbol 167 MovieClip in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 168 MovieClip "expl" in Symbol 178 MovieClip Frame 1
onClipEvent (load) {
_parent.sent = false;
_parent.attached = false;
rowset = false;
row = "";
col = "";
i = 0;
while (i < _parent._name.length) {
thischar = _parent._name.charAt(i);
if (thischar == "C") {
rowset = true;
}
if ((rowset == false) and (thischar != "R")) {
row = row + thischar;
} else if ((thischar != "C") and (thischar != "R")) {
col = col + thischar;
}
i++;
}
_parent.Row = int(row);
_parent.Col = int(col);
}
onClipEvent (enterFrame) {
}
Symbol 178 MovieClip Frame 2
stop();
Symbol 178 MovieClip Frame 3
stop();
Symbol 178 MovieClip Frame 4
stop();
Symbol 178 MovieClip Frame 5
stop();
Symbol 178 MovieClip Frame 6
stop();
Symbol 178 MovieClip Frame 7
stop();
Symbol 178 MovieClip Frame 8
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 3
_root.checkMatches();
Symbol 181 MovieClip Frame 4
mycnt = _root.checkAttached();
if (mycnt == 0) {
_root.god.flame.bad();
} else {
_root.god.flame.gd(mycnt);
}
Symbol 181 MovieClip Frame 8
if (_root.attachAll < 1) {
_root.score = _root.score + 250;
_root.characters.shooters.gotoAndPlay("win");
} else {
point = new Object();
point.x = 0;
point.y = _root.BallBotY;
_root.balls.localToGlobal(point);
_root.MainBotY = point.y;
if (_root.MainBotY > _root.botLim) {
_root.characters.shooters.gotoAndPlay("lose");
}
}
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 183 MovieClip Frame 3
stop();
Symbol 183 MovieClip Frame 4
stop();
Symbol 183 MovieClip Frame 5
stop();
Symbol 183 MovieClip Frame 6
stop();
Symbol 183 MovieClip Frame 7
stop();
Symbol 183 MovieClip Frame 8
stop();
Symbol 190 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 2
stop();
Symbol 190 MovieClip Frame 3
stop();
Symbol 190 MovieClip Frame 4
stop();
Symbol 190 MovieClip Frame 5
stop();
Symbol 190 MovieClip Frame 6
stop();
Symbol 190 MovieClip Frame 7
stop();
Symbol 190 MovieClip Frame 8
stop();
Symbol 197 MovieClip Frame 1
stop();
Instance of Symbol 190 MovieClip "ball" in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 197 MovieClip Frame 10
if (((_root.MainBotY < _root.botLim) and (_root.attachAll >= 1)) and (_root.characters.shooters.celebrate == false)) {
_root.characters.shooters.gotoAndPlay("receive");
}
stop();
Symbol 197 MovieClip Frame 11
stop();
Symbol 200 MovieClip Frame 1
ball.gotoAndStop(_root.ballup);
ball2.gotoAndStop(_root.nextball);
stop();
Instance of Symbol 190 MovieClip "ball2" in Symbol 200 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.nextball);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.nextball);
}
Instance of Symbol 190 MovieClip "ball" in Symbol 200 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 200 MovieClip Frame 10
if (((_root.MainBotY < _root.botLim) and (_root.attachAll >= 1)) and (_root.characters.shooters.celebrate == false)) {
_root.characters.shooters.gotoAndPlay("receive");
}
stop();
Symbol 200 MovieClip Frame 11
stop();
Symbol 201 MovieClip Frame 1
stop();
Instance of Symbol 190 MovieClip "ball2" in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.nextball);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.nextball);
}
Instance of Symbol 190 MovieClip "ball1" in Symbol 201 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 201 MovieClip Frame 14
if (((_root.MainBotY < _root.botLim) and (_root.attachAll >= 1)) and (_root.characters.shooters.celebrate == false)) {
_root.characters.shooters.gotoAndPlay("receive");
}
stop();
Symbol 201 MovieClip Frame 16
ball1.gotoAndStop(_root.nextball);
ball2.gotoAndStop(_root.nextball2);
Instance of Symbol 190 MovieClip "ball2" in Symbol 201 MovieClip Frame 16
onClipEvent (load) {
gotoAndStop(_root.nextball2);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.nextball2);
}
Instance of Symbol 190 MovieClip "ball1" in Symbol 201 MovieClip Frame 16
onClipEvent (load) {
gotoAndStop(_root.nextball);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.nextball);
}
Symbol 201 MovieClip Frame 25
stop();
Instance of Symbol 190 MovieClip "ball2" in Symbol 201 MovieClip Frame 25
onClipEvent (load) {
gotoAndStop(_root.nextball2);
}
Instance of Symbol 190 MovieClip "ball1" in Symbol 201 MovieClip Frame 25
onClipEvent (load) {
gotoAndStop(_root.nextball);
}
Symbol 201 MovieClip Frame 26
gotoAndPlay ("reload");
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 202 MovieClip Frame 3
stop();
Symbol 218 MovieClip Frame 33
_root.mech.machine.gotoAndPlay(2);
_parent.play();
stop();
Symbol 226 MovieClip Frame 20
stop();
Symbol 301 MovieClip Frame 1
_parent.celebrate = false;
_root.celebrate = false;
stop();
Symbol 301 MovieClip Frame 2
_parent.ball.gotoAndPlay(2);
Symbol 301 MovieClip Frame 7
_root.mech.machine.gotoAndPlay("hold");
Symbol 301 MovieClip Frame 33
stop();
Symbol 301 MovieClip Frame 34
_parent.celebrate = true;
_root.celebrate = true;
_parent.ball2.gotoAndPlay(2);
Symbol 301 MovieClip Frame 52
if (_root.MainBotY > _root.botLim) {
_parent.gotoAndPlay("lose");
_parent.ball.gotoAndStop("hold");
} else {
_parent.server.gotoAndPlay(1);
}
_parent.gotoAndStop("shoot");
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
if (_parent.server._currentframe >= 34) {
gotoAndStop (1);
}
Symbol 302 MovieClip Frame 3
_root.mech.machine.gotoAndStop("hold");
Instance of Symbol 190 MovieClip "ball" in Symbol 302 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 302 MovieClip Frame 22
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 3
_root.mech.machine.gotoAndStop("hold");
Instance of Symbol 190 MovieClip "ball" in Symbol 304 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 304 MovieClip Frame 20
stop();
Symbol 325 MovieClip Frame 1
stop();
Instance of Symbol 190 MovieClip "ball" in Symbol 325 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 325 MovieClip Frame 2
stop();
Instance of Symbol 190 MovieClip "ball" in Symbol 325 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 325 MovieClip Frame 3
stop();
Instance of Symbol 190 MovieClip "ball" in Symbol 325 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 325 MovieClip Frame 4
stop();
Symbol 325 MovieClip Frame 5
stop();
Symbol 333 MovieClip Frame 1
ball.gotoAndStop(_root.ballup);
Instance of Symbol 190 MovieClip "ball" in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 333 MovieClip Frame 2
ball.gotoAndStop(_root.ballup);
Instance of Symbol 190 MovieClip "ball" in Symbol 333 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 333 MovieClip Frame 3
_root.fireball.fire(244, 372, _root.ballup, _parent.angle);
_root.ballsUsed = _root.ballsUsed + 1;
_parent.ball.gotoAndStop("hold");
_root.ballup = _root.nextball;
_root.nextball = _root.nextball2;
_root.nextball2 = _root.ballList[random(_root.ballList.length)] + 1;
Symbol 333 MovieClip Frame 4
_root.mech.machine.gotoAndPlay("reload");
Symbol 333 MovieClip Frame 9
stop();
Symbol 368 MovieClip Frame 12
stop();
Symbol 385 MovieClip Frame 1
stop();
Instance of Symbol 301 MovieClip "server" in Symbol 385 MovieClip Frame 2
/* no clip actions */
Symbol 385 MovieClip Frame 8
stop();
Symbol 385 MovieClip Frame 9
if (!_root.celebrate) {
server.gotoAndPlay(2);
} else {
server.gotoAndPlay(34);
}
Symbol 385 MovieClip Frame 18
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
}
Instance of Symbol 190 MovieClip "ball" in Symbol 385 MovieClip Frame 29
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 385 MovieClip Frame 30
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
}
stop();
Instance of Symbol 314 MovieClip in Symbol 385 MovieClip Frame 30
onClipEvent (load) {
fireListener = new Object();
fireListener.onMouseDown = function () {
_parent.play();
};
Mouse.addListener(fireListener);
}
onClipEvent (unload) {
_parent.angle = _rotation;
Mouse.removeListener(fireListener);
}
onClipEvent (enterFrame) {
Mx = _parent._xmouse;
if (Mx < 0) {
Rx = 0;
} else if (Mx > 600) {
Rx = 600;
} else {
Rx = Mx;
}
_rotation = ((Rx * 0.25) - 75);
if ((_rotation <= 75) and (_rotation >= 45)) {
_parent.shooter.gotoAndStop(2);
} else if ((_rotation < 45) and (_rotation >= 15)) {
_parent.shooter.gotoAndStop(3);
} else if ((_rotation < 15) and (_rotation >= -15)) {
_parent.shooter.gotoAndStop(1);
} else if ((_rotation < -15) and (_rotation >= -45)) {
_parent.shooter.gotoAndStop(4);
} else {
_parent.shooter.gotoAndStop(5);
}
}
Symbol 385 MovieClip Frame 31
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
}
stop();
Symbol 385 MovieClip Frame 59
_root.target = "transition";
_root.fade.gotoAndPlay(2);
stop();
Symbol 385 MovieClip Frame 85
_root.target = "losescreen";
_root.fade.gotoAndPlay(2);
stop();
Symbol 416 MovieClip Frame 50
stop();
Symbol 432 MovieClip Frame 44
_root.mech.machine.gotoAndPlay(2);
_parent.play();
stop();
Symbol 433 MovieClip Frame 1
stop();
Symbol 433 MovieClip Frame 3
_root.mech.machine.gotoAndStop("hold");
Instance of Symbol 190 MovieClip "ball" in Symbol 433 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 433 MovieClip Frame 26
stop();
Symbol 433 MovieClip Frame 27
stop();
Symbol 478 MovieClip Frame 1
_parent.celebrate = false;
stop();
Symbol 478 MovieClip Frame 2
_parent.celebrate = false;
Symbol 478 MovieClip Frame 11
_root.mech.machine.gotoAndPlay("hold");
Symbol 478 MovieClip Frame 34
stop();
Symbol 478 MovieClip Frame 35
_parent.celebrate = true;
Symbol 478 MovieClip Frame 60
if (_root.MainBotY > _root.botLim) {
_parent.gotoAndPlay("lose");
_parent.ball.gotoAndStop("hold");
} else {
_parent.server.gotoAndPlay(1);
}
_parent.gotoAndStop("shoot");
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 503 MovieClip Frame 3
stop();
Symbol 503 MovieClip Frame 4
stop();
Symbol 503 MovieClip Frame 5
stop();
Symbol 518 MovieClip Frame 1
ball.gotoAndStop(_root.ballup);
Symbol 518 MovieClip Frame 2
ball.gotoAndStop(_root.ballup);
Symbol 518 MovieClip Frame 3
ball.gotoAndStop(_root.ballup);
Symbol 518 MovieClip Frame 4
ball.gotoAndStop(_root.ballup);
Symbol 518 MovieClip Frame 5
ball.gotoAndStop(_root.ballup);
Symbol 518 MovieClip Frame 6
ball.gotoAndStop(_root.ballup);
Symbol 518 MovieClip Frame 7
_root.fireball.fire(241, 426, _root.ballup, _parent.angle);
_root.ballsUsed = _root.ballsUsed + 1;
_parent.ball.gotoAndStop("hold");
_root.ballup = _root.nextball;
_root.nextball = _root.nextball2;
_root.nextball2 = _root.ballList[random(_root.ballList.length)] + 1;
Symbol 518 MovieClip Frame 8
_root.mech.machine.gotoAndPlay("reload");
Symbol 518 MovieClip Frame 14
stop();
Symbol 537 MovieClip Frame 12
stop();
Symbol 556 MovieClip Frame 1
stop();
Instance of Symbol 478 MovieClip "server" in Symbol 556 MovieClip Frame 3
/* no clip actions */
Symbol 556 MovieClip Frame 8
stop();
Symbol 556 MovieClip Frame 9
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
} else {
server.gotoAndPlay(2);
ball.gotoAndPlay(2);
}
Symbol 556 MovieClip Frame 20
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
}
Symbol 556 MovieClip Frame 34
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
}
stop();
Instance of Symbol 496 MovieClip "arrow" in Symbol 556 MovieClip Frame 34
onClipEvent (load) {
fireListener = new Object();
fireListener.onMouseDown = function () {
_parent.play();
};
Mouse.addListener(fireListener);
}
onClipEvent (unload) {
_parent.angle = _rotation;
Mouse.removeListener(fireListener);
}
onClipEvent (enterFrame) {
Mx = _parent._xmouse;
if (Mx < 0) {
Rx = 0;
} else if (Mx > 600) {
Rx = 600;
} else {
Rx = Mx;
}
_rotation = ((Rx * 0.25) - 75);
if ((_rotation <= 75) and (_rotation >= 45)) {
_parent.shooter.gotoAndStop(2);
} else if ((_rotation < 45) and (_rotation >= 15)) {
_parent.shooter.gotoAndStop(3);
} else if ((_rotation < 15) and (_rotation >= -15)) {
_parent.shooter.gotoAndStop(1);
} else if ((_rotation < -15) and (_rotation >= -45)) {
_parent.shooter.gotoAndStop(4);
} else {
_parent.shooter.gotoAndStop(5);
}
}
Symbol 556 MovieClip Frame 35
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
}
stop();
Symbol 556 MovieClip Frame 56
_root.target = "transition";
_root.fade.gotoAndPlay(2);
stop();
Symbol 556 MovieClip Frame 75
_root.target = "losescreen";
_root.fade.gotoAndPlay(2);
stop();
Symbol 563 MovieClip Frame 16
stop();
Symbol 586 MovieClip Frame 37
_root.mech.machine.gotoAndPlay(2);
_parent.play();
stop();
Symbol 634 MovieClip Frame 1
_parent.celebrate = false;
stop();
Symbol 634 MovieClip Frame 2
_parent.celebrate = false;
ball.gotoAndStop(_root.ballup);
Symbol 634 MovieClip Frame 3
_root.mech.machine.gotoAndPlay("hold");
Instance of Symbol 190 MovieClip "ball" in Symbol 634 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 634 MovieClip Frame 7
ball.gotoAndStop(_root.ballup);
Instance of Symbol 190 MovieClip "ball" in Symbol 634 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 634 MovieClip Frame 32
stop();
Symbol 634 MovieClip Frame 33
_parent.celebrate = true;
_parent.ball2.gotoAndPlay(2);
Symbol 634 MovieClip Frame 50
if (_root.MainBotY > _root.botLim) {
_parent.gotoAndPlay("lose");
_parent.ball.gotoAndStop("hold");
} else {
_parent.server.gotoAndPlay(1);
}
_parent.gotoAndStop("shoot");
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 2
ball.gotoAndStop(_root.ballup);
Instance of Symbol 190 MovieClip "ball" in Symbol 636 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 636 MovieClip Frame 9
stop();
Instance of Symbol 190 MovieClip "ball" in Symbol 649 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 657 MovieClip Frame 1
ball.gotoAndStop(_root.ballup);
Instance of Symbol 190 MovieClip "ball" in Symbol 657 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 657 MovieClip Frame 2
ball.gotoAndStop(_root.ballup);
Symbol 657 MovieClip Frame 3
_root.fireball.fire(231, 397, _root.ballup, _parent.angle);
_root.ballsUsed = _root.ballsUsed + 1;
_parent.ball.gotoAndStop("hold");
_root.ballup = _root.nextball;
_root.nextball = _root.nextball2;
_root.nextball2 = _root.ballList[random(_root.ballList.length)] + 1;
Symbol 657 MovieClip Frame 8
_root.mech.machine.gotoAndPlay("reload");
stop();
Instance of Symbol 190 MovieClip "ball" in Symbol 657 MovieClip Frame 8
onClipEvent (load) {
gotoAndStop(_root.ballup);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 688 MovieClip Frame 20
stop();
Symbol 700 MovieClip Frame 35
stop();
Symbol 713 MovieClip Frame 15
stop();
Symbol 714 MovieClip Frame 1
stop();
Instance of Symbol 634 MovieClip "server" in Symbol 714 MovieClip Frame 3
/* no clip actions */
Symbol 714 MovieClip Frame 8
stop();
Symbol 714 MovieClip Frame 9
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
} else {
server.gotoAndPlay(2);
}
Symbol 714 MovieClip Frame 17
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
}
Symbol 714 MovieClip Frame 25
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
} else {
ball.gotoAndPlay(2);
}
Symbol 714 MovieClip Frame 32
if (_root.MainBotY > _root.botLim) {
_parent.gotoAndPlay("lose");
_parent.ball.gotoAndStop("hold");
} else {
_parent.server.gotoAndPlay(1);
}
_parent.gotoAndStop("shoot");
stop();
Instance of Symbol 643 MovieClip in Symbol 714 MovieClip Frame 32
onClipEvent (load) {
fireListener = new Object();
fireListener.onMouseDown = function () {
_parent.play();
};
Mouse.addListener(fireListener);
}
onClipEvent (unload) {
_parent.angle = _rotation;
Mouse.removeListener(fireListener);
}
onClipEvent (enterFrame) {
Mx = _parent._xmouse;
if (Mx < 0) {
Rx = 0;
} else if (Mx > 600) {
Rx = 600;
} else {
Rx = Mx;
}
_rotation = ((Rx * 0.25) - 75);
if ((_rotation <= 75) and (_rotation >= 45)) {
_parent.shooter.gotoAndStop(2);
} else if ((_rotation < 45) and (_rotation >= 15)) {
_parent.shooter.gotoAndStop(3);
} else if ((_rotation < 15) and (_rotation >= -15)) {
_parent.shooter.gotoAndStop(1);
} else if ((_rotation < -15) and (_rotation >= -45)) {
_parent.shooter.gotoAndStop(4);
} else {
_parent.shooter.gotoAndStop(5);
}
}
Symbol 714 MovieClip Frame 33
if (_root.MainBotY > _root.botLim) {
gotoAndPlay ("lose");
ball.gotoAndStop("hold");
}
stop();
Symbol 714 MovieClip Frame 54
_root.target = "transition";
_root.fade.gotoAndPlay(2);
stop();
Symbol 714 MovieClip Frame 95
_root.target = "losescreen";
_root.fade.gotoAndPlay(2);
stop();
Symbol 715 MovieClip Frame 1
stop();
Symbol 715 MovieClip Frame 2
stop();
Symbol 715 MovieClip Frame 3
stop();
Symbol 758 MovieClip Frame 20
stop();
Symbol 762 MovieClip Frame 4
_root.balls._y = _root.balls._y + 24;
_root.MainBotY = _root.MainBotY + 24;
if (_root.MainBotY > _root.botLim) {
_root.characters.shooters.gotoAndPlay("lose");
}
Symbol 762 MovieClip Frame 10
_parent._parent.fire._y = _parent._parent.fireStart;
_parent._parent.gotoAndPlay(1);
Symbol 764 MovieClip Frame 2
stop();
Symbol 765 MovieClip Frame 1
function bad() {
targy = fire._y - inc;
gotoAndPlay (3);
cnt = cnt + 1;
}
function gd(num) {
num = int(num);
targy = fire._y + (inc * num);
if (targy > -2) {
targy = -3;
cnt = 0;
} else {
cnt = cnt - num;
}
gotoAndPlay (3);
}
Symbol 765 MovieClip Frame 2
inc = 257 / _root.diespeed;
fireStart = -3;
cnt = 0;
stop();
Symbol 765 MovieClip Frame 4
if ((fire._y < (targy + 1)) and (fire._y > (targy - 1))) {
fire._y = targ._y;
if (cnt == _root.diespeed) {
} else {
stop();
}
} else {
ymove = (targy - fire._y) * 0.5;
fire._y = fire._y + ymove;
gotoAndPlay(_currentframe - 1);
}
Symbol 765 MovieClip Frame 5
stop();
Symbol 776 MovieClip Frame 9
_parent.ball.gotoAndStop("hold");
ball.gotoAndStop(_root.ballup);
Instance of Symbol 190 MovieClip "ball" in Symbol 776 MovieClip Frame 9
onClipEvent (enterFrame) {
gotoAndStop(_root.ballup);
}
Symbol 778 MovieClip Frame 17
stop();
Symbol 814 MovieClip Frame 24
_root.mech.machine.gotoAndPlay(2);
_parent.play();
stop();
Symbol 827 MovieClip Frame 1
ball.gotoAndStop(_root.ballup);
stop();
Symbol 827 MovieClip Frame 2
ball.gotoAndStop(_root.ballup);
stop();
Symbol 827 MovieClip Frame 3
ball.gotoAndStop(_root.ballup);
stop();
Symbol 827 MovieClip Frame 4
ball.gotoAndStop(_root.ballup);
stop();
Symbol 827 MovieClip Frame 5
ball.gotoAndStop(_root.ballup);
stop();
Symbol 835 MovieClip Frame 1
ball.gotoAndStop(_root.ballup);
Symbol 835 MovieClip Frame 2
ball.gotoAndStop(_root.ballup);
Symbol 835 MovieClip Frame 3
_root.fireball.fire(231, 397, _root.ballup, _parent.angle);
_parent.ball.gotoAndStop("hold");
_root.ballup = _root.nextball;
_root.nextball = _root.nextball2;
_root.nextball2 = random(7) + 2;
Symbol 835 MovieClip Frame 8
_root.mech.machine.gotoAndPlay("reload");
stop();
Symbol 843 MovieClip Frame 9
stop();
Symbol 846 MovieClip Frame 12
gotoAndPlay (5);