Frame 1
ifFrameLoaded (86) {
gotoAndPlay (3);
}
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded / total) * 100);
loadBar.gotoAndStop(percent);
Frame 2
gotoAndPlay (1);
Frame 3
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 prop in ndc) {
if (typeof(ndc[prop]) == "object") {
attachNetDebugConfigFunctions(ndc[prop]);
}
}
}
function getDefaultNetDebugConfig(iscontroller) {
if (_global.netDebugConfigSO == undefined) {
var soName = "TestMovie_Config_Info";
if (iscontroller) {
soName = "Controller_Config_Info";
}
_global.netDebugConfigSO = SharedObject.getLocal(soName);
}
if (_global.netDebugConfigSO.data.config == undefined) {
_global.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_global.netDebugConfigSO.flush();
return(_global.netDebugConfigSO.data.config);
}
function getRealDefaultNetDebugConfig() {
var defaultConfig = new NetDebugConfig();
defaultConfig.m_debug = true;
defaultConfig.client = new NetDebugConfig();
defaultConfig.client.m_debug = true;
defaultConfig.client.trace = true;
defaultConfig.client.recordset = true;
defaultConfig.client.http = true;
defaultConfig.client.rtmp = true;
defaultConfig.realtime_server = new NetDebugConfig();
defaultConfig.realtime_server.m_debug = true;
defaultConfig.realtime_server.trace = true;
defaultConfig.app_server = new NetDebugConfig();
defaultConfig.app_server.m_debug = true;
defaultConfig.app_server.trace = true;
defaultConfig.app_server.error = true;
defaultConfig.app_server.recordset = true;
defaultConfig.app_server.httpheaders = false;
defaultConfig.app_server.amf = false;
defaultConfig.app_server.amfheaders = false;
defaultConfig.app_server.coldfusion = true;
return(defaultConfig);
}
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 i = 2;
while (i < args.length) {
this.Parameters[i - 2] = args[i];
i++;
}
}
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 = "RealTime";
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 proto = arguments[0].substr(0, 4);
if ((proto == "http") || (proto == "rtmp")) {
this.m_Protocol = proto;
} 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 ret = this.realconnect.apply(this, arguments);
this.realcall("@getClientID", new RTMPClientIDResponse(arguments[0], this));
return(ret);
}
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 ret = this.realclose();
getNetDebug().removeNetConnection(this);
return(ret);
}
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 sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (iscontroller) {
connectname = sToController;
this.sendnames = new Array();
this.sendnames.push(sToMovie);
var i = 0;
while (i < this.maxConnections) {
this.sendnames.push(sToMovie + i);
i++;
}
this.maxConnections = 0;
} else {
connectname = sToMovie;
this.sendnames = new Array();
this.sendnames.push(sToController);
}
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(connectname)) {
var connected = false;
var i = 0;
while (i < this.maxConnections) {
if (_global.g_NetDebugLocalConnection.connect(connectname + i)) {
connected = true;
break;
}
i++;
}
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 connectinfo = new Object();
connectinfo.connectstring = cs;
connectinfo.url = _root._url;
this.init("startRealTimeTrace", connectinfo);
}
function AddRTMPClientCommand(cs, cid) {
var connectinfo = new Object();
connectinfo.connectstring = cs;
connectinfo.url = _root._url;
connectinfo.clientid = cid;
this.init("addRealTimeClient", connectinfo);
}
function StopRTMPTraceCommand(cs, cid) {
var connectinfo = new Object();
connectinfo.connectstring = cs;
connectinfo.url = _root._url;
connectinfo.clientid = cid;
this.init("stopRealTimeTrace", connectinfo);
}
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);
}
_global.RsDataProviderClass = function () {
this.init();
};
RsDataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
RsDataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var eventObj = {event:"updateAll"};
viewRef.modelChanged(eventObj);
};
RsDataProviderClass.prototype.addItemAt = function (index, value) {
if (!this.checkLocal()) {
return(undefined);
}
if (index < 0) {
return(undefined);
}
if (index < this.getLength()) {
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 eventObj = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
};
RsDataProviderClass.prototype.addItem = function (value) {
if (!this.checkLocal()) {
return(undefined);
}
this.addItemAt(this.getLength(), value);
};
RsDataProviderClass.prototype.removeItemAt = function (index) {
if (!this.checkLocal()) {
return(undefined);
}
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var tmpItm = this.items[index];
this.items.splice(index, 1);
var eventObj = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
return(tmpItm);
};
RsDataProviderClass.prototype.removeAll = function () {
if (!this.checkLocal()) {
return(undefined);
}
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
RsDataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if (!this.checkLocal()) {
return(undefined);
}
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var tmpID = this.getItemID(index);
this.items[index] = itemObj;
this.items[index].__ID__ = tmpID;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
RsDataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
RsDataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
RsDataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
RsDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
if (!this.checkLocal()) {
return(undefined);
}
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
RsDataProviderClass.prototype.updateViews = function (eventObj) {
var i = 0;
while (i < this.views.length) {
this.views[i].modelChanged(eventObj);
i++;
}
};
_global.RecordSet = function (columnNames) {
if (this.mTitles != null) {
this.views = new Array();
return(undefined);
}
this.init();
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.getItemAt = function (index) {
if (this.mRecordSetId == null) {
return(this.items[index]);
}
if ((index < 0) || (index >= this.getLength())) {
NetServices.trace("RecordSet", "warning", 104, ("getItemAt(" + index) + ") index out of range");
return(null);
}
this.requestRecord(index);
var result = this.items[index];
if (result == 1) {
return("in progress");
}
return(result);
};
RecordSet.prototype.setField = function (index, fieldName, value) {
if (!this.checkLocal()) {
return(undefined);
}
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
this.items[index][fieldName] = value;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
RecordSet.prototype.filter = function (filterFunction, context) {
if (!this.checkLocal()) {
return(undefined);
}
var result = new RecordSet(this.mTitles);
var i = 0;
while (i < this.getLength()) {
var item = this.getItemAt(i);
if (((item != null) && (item != 1)) && (filterFunction(item, context))) {
result.addItem(item);
}
i++;
}
return(result);
};
RecordSet.prototype.sort = function (compareFunc) {
if (!this.checkLocal()) {
return(undefined);
}
this.items.sort(compareFunc);
this.updateViews({event:"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.getLength());
}
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({event:"updateRows", firstRow:info.Cursor - 1, lastRow:((info.Cursor - 1) + info.Page.length) - 1});
if ((this.mRecordsAvailable == this.mTotalCount) && (!this.mAllNotified)) {
this.updateViews({event:"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 result = new Object();
var i = 0;
while (i < anArray.length) {
var title = this.mTitles[i];
if (title == null) {
title = ("column" + i) + 1;
}
result[title] = anArray[i];
i++;
}
return(result);
};
RecordSet.prototype.setData = function (start, dataArray) {
var i = 0;
while (i < dataArray.length) {
var index = (i + start);
var rec = this.items[index];
if ((rec != null) && (rec != 1)) {
NetServices.trace("RecordSet", "warning", 106, "Already got record # " + recordIndex);
} else {
this.mRecordsAvailable = this.mRecordsAvailable + 1;
}
this.items[index] = this.arrayToObject(dataArray[i]);
this.items[index].__ID__ = this.uniqueID++;
i++;
}
};
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({event:"fetchRows", firstRow:index, lastRow:index});
}
};
RecordSet.prototype.requestRecord = function (index) {
if (this.mDeliveryMode != "page") {
this.requestOneRecord(index);
return(undefined);
}
var firstIndex = (int(index / this.mPageSize) * this.mPageSize);
var lastIndex = ((firstIndex + (this.mPageSize * (this.mNumPrefetchPages + 1))) - 1);
this.requestRecordRange(firstIndex, lastIndex);
};
RecordSet.prototype.requestRecordRange = function (index, lastIndex) {
var highestRequested = -1;
if (index < 0) {
index = 0;
}
if (lastIndex >= this.getLength()) {
lastIndex = this.getLength() - 1;
}
while (index <= lastIndex) {
while ((index <= lastIndex) && (this.items[index] != null)) {
index++;
}
var first = index;
while ((index <= lastIndex) && (this.items[index] == null)) {
this.mOutstandingRecordCount++;
this.items[index] = 1;
index++;
}
var last = (index - 1);
if (first <= last) {
this.getRecordSetService().getRecords(this.mRecordSetId, first + 1, (last - first) + 1);
highestRequested = last;
this.updateViews({event:"fetchRows", firstRow:first, lastRow:last});
}
}
return(highestRequested);
};
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.getLength()) {
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.event == "updateRows") && (eventObj.firstRow <= this.mHighestRequested)) && (eventObj.lastRow >= this.mHighestRequested)) {
this.doNext();
}
if (eventObj.event == "allRows") {
this.disable();
}
};
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder.prototype.onResult = function (result) {
var client = this.service.client;
result._setParentService(this.service);
var func = (this.methodName + "_Result");
if (typeof(client[func]) == "function") {
client[func](result);
} else if (typeof(client.onResult) == "function") {
client.onResult(result);
} else {
NetServices.trace("NetServices", "info", 1, (func + " was received from server: ") + result);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var client = this.service.client;
var func = (this.methodName + "_Status");
if (typeof(client[func]) == "function") {
client[func](result);
} else if (typeof(client.onStatus) == "function") {
client.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, (((func + " was received from server: ") + result.class) + " ") + result.description);
}
};
Object.registerClass("NetServiceProxy", NetServiceProxy);
_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 f = 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(f);
};
NetConnection.prototype.getService = function (serviceName, client) {
var result = new NetServiceProxy(this, serviceName, client);
return(result);
};
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.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
NetConnection.prototype.clone = function () {
var nc = new NetConnection();
nc.connect(this.uri);
return(nc);
};
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) {
if (NetServices.isHttpUrl(_root._url)) {
url = NetServices.gatewayUrl;
if (url == undefined) {
url = NetServices.defaultGatewayUrl;
if (url != undefined) {
if (NetServices.isHttpUrl(url)) {
var firstSlashPos = url.indexOf("/", 8);
if (firstSlashPos >= 0) {
url = url.substring(firstSlashPos);
}
}
var hostUrl = NetServices.getHostUrl();
if (hostUrl != null) {
url = hostUrl + url;
}
}
}
} else {
url = NetServices.defaultGatewayUrl;
}
}
if (url == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var nc = new NetConnection();
nc.connect(url);
return(nc);
};
NetServices.getHostUrl = function () {
if (!NetServices.isHttpUrl(_root._url)) {
return(null);
}
var firstSlashPos = _root._url.indexOf("/", 8);
if (firstSlashPos < 0) {
return(null);
}
return(_root._url.substring(0, firstSlashPos));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var fullMessage = ((((((who + " ") + severity) + " ") + number) + ": ") + message);
trace(fullMessage);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
_global.copyProperties = function (to, from) {
for (var prop in from) {
if ((prop == "__proto__") || (prop == "function")) {
continue;
}
if (typeof(from[prop]) == "object") {
if (to[prop] == undefined) {
to[prop] = new from[prop].__proto__.constructor();
}
copyProperties(to[prop], from[prop]);
} else {
to[prop] = from[prop];
}
}
};
_global.copyObject = function (obj) {
if (typeof(obj) == "object") {
var ret = (new obj.__proto__.constructor());
copyProperties(ret, obj);
return(ret);
}
return(obj);
};
_global.objectToStringTree = function (obj, openstr, typesepstr, valuesepstr, closestr) {
var st = new StringLineAdder(obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
return(st.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 line = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (line != null) {
this.output = this.output + (line + 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 line = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (line != null) {
this.output_lb.addItem(line);
}
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 sAdd = "";
var i = 0;
while (i < level) {
sAdd = sAdd + "\t";
i++;
}
var valuedelim = this.valuechar;
if ((objname != null) && (objtype != "object")) {
sAdd = sAdd + (((this.prechar + objtype) + this.typechar) + objname);
} else if (objtype == "object") {
if (typeof(objvalue) == "number") {
sAdd = sAdd + (((this.prechar + objtype) + this.typechar) + objname);
sAdd = sAdd + ((valuedelim + "object#") + objvalue);
objvalue = null;
} else {
sAdd = sAdd + (((((this.prechar + objtype) + "#") + objnum) + this.typechar) + objname);
}
} else {
sAdd = sAdd + (this.prechar + objtype);
valuedelim = this.typechar;
}
if (objvalue != null) {
sAdd = sAdd + (valuedelim + objvalue);
}
sAdd = sAdd + this.postchar;
return(sAdd);
};
_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 props = new Array();
var objs = new Array();
for (var prop in obj) {
if (((prop == "__proto__") || (prop == "__nestedObjectDump_id")) || (prop == "__nestedObjectDump_ref")) {
continue;
}
if (typeof(obj[prop]) == "object") {
objs.push(prop);
} else {
props.push(prop);
}
}
if ((objs.length == 0) && (props.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);
}
}
props.sort();
objs.sort();
var bret = true;
var i = 0;
while (i < props.length) {
if (nestedObjectDump(level + 1, props[i], obj[props[i]], lineadder) == nestedObjectDump.stop) {
bret = false;
break;
}
i++;
}
if (bret) {
var i = 0;
while (i < objs.length) {
if (!nestedObjectDump(level + 1, objs[i], obj[objs[i]], lineadder)) {
bret = false;
}
i++;
}
}
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 now = new Date();
this.Date = now;
this.Time = now.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 ret = new Object();
if (ev.EventType != null) {
ret.EventType = ev.EventType;
}
if (ev.Source != null) {
ret.Source = ev.Source;
}
if (ev.MovieUrl != null) {
ret.MovieUrl = ev.MovieUrl;
}
if (ev.Date != null) {
ret.Date = ev.Date;
}
if (ev.Time != null) {
ret.Time = ev.Time;
}
if (ev.Protocol != null) {
ret.Protocol = ev.Protocol;
}
if (ev.DebugId != null) {
ret.DebugId = ev.DebugId;
}
return(ret);
};
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 == "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_Config.m_debug && (this.m_Config.realtime_server.m_debug)) && (this.m_Protocol == "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 i = 0;
while (i < debugevents.length) {
this.m_SourceNC.sendServerEvent(debugevents[i]);
i++;
}
};
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) {
trace("NetDebugResponseProxy.prototype.__resolve name: " + 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 suc = true;
var i = 0;
while (i < this.sendnames.length) {
suc = suc & _global.g_NetDebugLocalConnection.send(this.sendPrefix + this.sendnames[i], functionname, obj);
i++;
}
return(suc);
};
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 i = 0;
while (i < this.m_ncs.length) {
if (nc == this.m_ncs[i]) {
this.m_ncs.splice(i, 1);
return;
}
i++;
}
};
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 i = 0;
while (i < this.m_ncs.length) {
if (this.m_ncs[i] != null) {
this.m_ncs[i].updateConfig(config);
}
i++;
}
};
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;
}
var ServerHost = "live";
var aryServer = _root._url.split("/");
if (ServerHost == "kryten") {
var server = NetServices.createGatewayConnection("http://kryten/flashservices/gateway");
var euroheaders = server.getService("euro04.Euro2004", this);
} else if (ServerHost == "live") {
var server = NetServices.createGatewayConnection("http://rancon.rawnet.com/flashservices/gateway");
var euroheaders = server.getService("euro04.Euro2004", this);
}
function loginWithGetDetailsFL(email) {
trace("loggin in: " + email);
_root.email = email;
euroheaders.loginWithGetDetails(email);
}
function loginWithGetDetails_Result(result) {
trace("loginWithGetName_Result: " + result.status);
if (result.status != 1) {
_root.playerLogginIn = true;
leagueID = result.leagueid;
trace("leagueID: " + leagueID);
if (leagueID != "") {
trace("in league");
inLeague = true;
} else {
trace("not in league");
inLeague = false;
}
_root.username = result.username;
if (_root.invited) {
trace("user HAS BEEN CHALLENGED / invited: " + inviteid);
_root.room = inviteid;
gotoAndPlay (24);
} else if (_root.leagueInvited) {
trace("user HAS BEEN ADDED TO LEAGUE");
_root.addPlayerToLeagueFL(_root.email, _root.requestid);
} else {
gotoAndPlay (12);
}
} else {
_root.help.text = "The email address you entered is not currently registered with us. Please try again, or register below";
}
_root.myEmail = email;
}
function registerPlayerFL(nickname, email) {
trace((("registering: " + nickname) + " email: ") + email);
_root.username = nickname;
euroheaders.registerPlayer(nickname, email);
}
function registerPlayer_Result(result) {
trace("registerPlayer_Result: " + result);
if (result == 0) {
_root.loginWithGetDetailsFL(_root.email);
} else if (result == 1) {
help.text = "The nickname you have chosen already exists, please choose another";
} else if (result == 2) {
help.text = "The email you have entered already exists in our database, please login, or enter a different address";
} else if (result == 3) {
help.text = "The nickname and email you have entered already exist within our database. Please change and try again.";
}
}
function sendInviteFL(fromname, fromemail, toname, toemail) {
trace((((((("initialising new challenge: " + fromname) + " : ") + fromemail) + " : ") + toname) + " : ") + toemail);
euroheaders.sendInvite(fromname, fromemail, toname, toemail);
}
function sendInvite_Result(result) {
trace("sendInvite_Result: " + result);
_root.room = result;
gotoAndPlay (24);
}
function createLeagueFL(ownerEmail, leagueName, emailArray) {
trace((((("building new league: " + ownerEmail) + " : ") + leagueName) + " : ") + emailArray);
euroheaders.createLeague(ownerEmail, leagueName, emailArray);
}
function createLeague_Result(result) {
trace("createLeague_Result: " + result.leagueID);
if (result.status == 0) {
trace("successful league creation");
_root.leagueID = result.leagueID;
_root.room = _root.leagueID;
trace("held leagueID: " + _root.leagueID);
_root.getLeagueNameFL(_root.leagueID);
} else if (result.status == 2) {
trace("email address confict");
i = 0;
while (i < result.emails.length) {
trace((("email " + i) + " is ") + result.emails[i]);
if (!result.emails[i]) {
_root.help.text = _root.help.text + (("\remail " + (i + 1)) + " is already registered with another league and cannot join yours");
}
i++;
}
}
}
function addPlayerToLeagueFL(email, leagueID) {
trace("adding player to league");
euroheaders.addPlayerToLeague(email, leagueID);
}
function addPlayerToLeague_Result(result) {
trace("addPlayerToLeague_Result" + result);
if (result == 0) {
_root.room = _root.requestid;
gotoAndPlay (24);
} else if (result == -1) {
_root.help.text = "This login is already associated with a league and connot join another. Please enter a new address.";
} else if (result == 1) {
_root.help.text = "";
} else if (result == 2) {
_root.help.text = "The league your are joining does not exist.";
} else if (result == 3) {
_root.help.text = "There has been an error with joining this league. Please try again";
}
}
function newGameFL(winnerEmail, looserEmail, winCountry, looseCountry, gameTime, goalTime) {
switch (winCountry) {
case "Portugal" :
trace("Portugal");
winCountry = "PT";
break;
case "Greece" :
trace("Greece");
winCountry = "GR";
break;
case "Spain" :
trace("Spain");
winCountry = "ES";
break;
case "Russia" :
trace("Russia");
winCountry = "RU";
break;
case "France" :
trace("France");
winCountry = "FR";
break;
case "England" :
trace("England");
winCountry = "UK";
break;
case "Switzerland" :
trace("Switzerland");
winCountry = "CH";
break;
case "Croatia" :
trace("Croatia");
winCountry = "HR";
break;
case "Sweden" :
trace("Sweden");
winCountry = "SE";
break;
case "Bulgaria" :
trace("Bulgaria");
winCountry = "BG";
break;
case "Denmark" :
trace("Denmark");
winCountry = "DK";
break;
case "Italy" :
trace("Italy");
winCountry = "IT";
break;
case "Czech Rep" :
trace("Czech Rep");
winCountry = "CZ";
break;
case "Latvia" :
trace("Latvia");
winCountry = "LV";
break;
case "Germany" :
trace("Germany");
winCountry = "DE";
break;
case "Holland" :
trace("Holland");
winCountry = "NL";
}
switch (looseCountry) {
case "Portugal" :
trace("Portugal");
looseCountry = "PT";
break;
case "Greece" :
trace("Greece");
looseCountry = "GR";
break;
case "Spain" :
trace("Spain");
looseCountry = "ES";
break;
case "Russia" :
trace("Russia");
looseCountry = "RU";
break;
case "France" :
trace("France");
looseCountry = "FR";
break;
case "England" :
trace("England");
looseCountry = "UK";
break;
case "Switzerland" :
trace("Switzerland");
looseCountry = "CH";
break;
case "Croatia" :
trace("Croatia");
looseCountry = "HR";
break;
case "Sweden" :
trace("Sweden");
looseCountry = "SE";
break;
case "Bulgaria" :
trace("Bulgaria");
looseCountry = "BG";
break;
case "Denmark" :
trace("Denmark");
looseCountry = "DK";
break;
case "Italy" :
trace("Italy");
looseCountry = "IT";
break;
case "Czech Rep" :
trace("Czech Rep");
looseCountry = "CZ";
break;
case "Latvia" :
trace("Latvia");
looseCountry = "LV";
break;
case "Germany" :
trace("Germany");
looseCountry = "DE";
break;
case "Holland" :
trace("Holland");
looseCountry = "NL";
}
trace((((((((((("adding a new game to the database: " + winnerEmail) + " : ") + looserEmail) + " : ") + winCountry) + " : ") + looseCountry) + " : ") + gameTime) + " : ") + goalTime);
euroheaders.newGame(winnerEmail, looserEmail, winCountry, looseCountry, gameTime, goalTime);
}
function newGame_Results(results) {
trace("new game added to database");
}
function getLeagueNameFL(leagueID) {
trace("getting league name for leagueID: " + leagueID);
euroheaders.getLeagueName(leagueID);
}
function getLeagueName_Result(result) {
trace("got league name: " + result);
_root.leagueName = result;
gotoAndPlay (24);
}
function getLeagueTableFL(leagueID, start, limit) {
trace("getting league table: " + leagueID);
_root.target = "league";
euroheaders.getLeagueTable(leagueID, start, limit);
}
function getLeagueTable_Result(result) {
trace("got league table: " + result);
delete _root.leagueData;
_root.numRecords = result.mRecordsAvailable;
_root.leagueData = result;
gotoAndPlay (35);
}
function getCountryTableFL(start, limit) {
trace("getting country league table");
_root.target = "country";
euroheaders.getCountryTable(start, limit);
}
function getCountryTable_Result(result) {
trace("got country league table: " + result);
delete _root.leagueData;
_root.numRecords = result.mRecordsAvailable;
_root.leagueData = result;
gotoAndPlay (35);
}
function getGlobalTableFL(start, limit) {
trace((("getting global table: " + start) + " : ") + limit);
_root.target = "global";
euroheaders.getGlobalTable(start, limit);
}
function getGlobalTable_Result(result) {
trace("got global table: " + result.mRecordsAvailable);
delete _root.leagueData;
_root.numRecords = result.mRecordsAvailable;
_root.leagueData = result;
gotoAndPlay (35);
}
function getGlobalPositionFL(useremail) {
trace("getting global positions: " + useremail);
euroheaders.getGlobalPosition(useremail);
}
function getGlobalPosition_Result(result) {
trace("got global position: " + result);
}
function validate_mail(mail) {
primo = new String();
primo = mail.toLowerCase();
primo_array = new Array();
primo_array = primo.split("@");
if (primo_array.length == "2") {
prefix = new String();
prefix = primo_array[0];
if (((prefix.length > 0) && (prefix.charAt(0) != ".")) && (prefix.charAt(prefix.length - 1) != ".")) {
suffix = new String();
suffix = primo_array[1];
suffix_array = new Array();
suffix_array = suffix.split(".");
if (suffix_array.length > 1) {
index_of_suffix_array = suffix_array.length - 1;
TLD = new String();
TLD = suffix_array[index_of_suffix_array];
if ((TLD.length > 1) && (TLD.length < 5)) {
suffix_particle = new String();
i = 0;
while (i <= (suffix_array.length - 1)) {
suffix_particle = suffix_array[i];
if (suffix_particle.length > 0) {
if (i == (suffix_array.length - 1)) {
char = new Array();
k = 0;
while (k <= (primo.length - 1)) {
char = primo.slice(k, k + 1);
trace(char);
if ((((((((((((((((((((((((((((((((((((((((char == "a") || (char == "b")) || (char == "c")) || (char == "d")) || (char == "e")) || (char == "f")) || (char == "g")) || (char == "h")) || (char == "i")) || (char == "j")) || (char == "k")) || (char == "l")) || (char == "m")) || (char == "n")) || (char == "o")) || (char == "p")) || (char == "q")) || (char == "r")) || (char == "s")) || (char == "t")) || (char == "u")) || (char == "v")) || (char == "w")) || (char == "x")) || (char == "y")) || (char == "z")) || (char == "0")) || (char == "1")) || (char == "2")) || (char == "3")) || (char == "4")) || (char == "5")) || (char == "6")) || (char == "7")) || (char == "8")) || (char == "9")) || (char == ".")) || (char == "@")) || (char == "_")) || (char == "-")) {
if (k == (primo.length - 1)) {
return(true);
}
} else {
return(false);
}
k++;
}
}
} else {
return(false);
}
i++;
}
// unexpected jump
}
return(false);
} else {
return(false);
}
return;
}
return(false);
}
return(false);
}
function playerCharNum(n) {
((n > 16) ? ((n = n - 16)) : 0);
((n < 1) ? ((n = n + 16)) : 0);
return(n);
}
function playerCharMove(MC) {
((MC.stat == "startLeft") ? ((MC.stat = "Lmove")(MC.xmove = _root.xmove)) : 0);
((MC.stat == "Lmove") ? ((MC._x = MC._x - MC.xmove)(MC.xmove = MC.xmove - _root.xspeed)((MC.xmove < 0) ? ((MC.stat = "finish")) : 0)) : 0);
((MC.stat == "startRight") ? ((MC.stat = "Rmove")(MC.xmove = _root.xmove)) : 0);
((MC.stat == "Rmove") ? ((MC._x = MC._x + MC.xmove)(MC.xmove = MC.xmove - _root.xspeed)((MC.xmove < 0) ? ((MC.stat = "finish")) : 0)) : 0);
}
function START_PLAYER1_SCROLL(pl) {
ball.gotoAndPlay(1);
pA_1._x = pA_1.startx;
pA_2._x = pA_2.startx;
pA_3._x = pA_3.startx;
_root.lastChar = _root.currentChar;
_root.currentChar = pl;
_root.pA_1.playerCharGFX(_root.currentChar);
_root.pA_2.playerCharGFX(_root.lastChar);
_root.p1_Description = _root.Country[_root.player1teamID];
_root.pA_1.stat = "startRight";
_root.pA_2.stat = "startRight";
_root.pA_3.stat = "startRight";
}
function START_PLAYER2_SCROLL(pl) {
START_PLAYER1_SCROLL(pl);
}
function player1Start() {
_root.gameType = "2player";
_root.PL = 1;
_root.playerToGo = 1;
_root.player1teamID = _root.currentChar;
_root.userName = _root.userName1;
_root.FLASHCOM_SEND_START_PLAYER_COUNTRY(1);
((_root.player2type == "HUMAN") ? (gotoAndPlay (53)) : (gotoAndPlay (69)));
}
function player2Start() {
_root.gameType = "2player";
_root.PL = 2;
_root.playerToGo = 1;
_root.player2teamID = _root.currentChar;
_root.userName = _root.userName2;
_root.FLASHCOM_SEND_START_PLAYER_COUNTRY(2);
_root.gotoAndPlay("p2WaitForStarted");
}
function START_FLASHCOM_CONNECT() {
function OKfn(fn) {
pos = fn.charAt(3);
r = false;
(((_root.PL == 1) and (pos > 3)) ? ((r = true)) : 0);
(((_root.PL == 2) and (pos < 4)) ? ((r = true)) : 0);
return(r);
}
_root.MUS = true;
_root.player1type = "HUMAN";
_root.player2type = "HUMAN";
_root.Send_btn.setEnabled(false);
client_nc = new NetConnection();
client_nc.onStatus = function (info) {
trace(((("Level: " + info.level) + newline) + "Code: ") + info.code);
if (info.description == "NetConnection.Connect.Closed") {
History.text = "";
_root.People.removeAll();
}
if (info.description == "NetConnection.Connect.Success") {
clearInterval(_root.notice.waitAccept);
trace("CONNECTED" + this);
}
};
_root.client_nc.connect("rtmp://212.100.255.83/euroheaders/" + _root.challengeInstance);
playerA_send = SharedObject.getRemote("playerA_send", client_nc.uri, false);
playerB_send = SharedObject.getRemote("playerB_send", client_nc.uri, false);
ball1_send = SharedObject.getRemote("ball1_send", client_nc.uri, false);
ball2_send = SharedObject.getRemote("ball2_send", client_nc.uri, false);
ball3_send = SharedObject.getRemote("ball3_send", client_nc.uri, false);
ball4_send = SharedObject.getRemote("ball4_send", client_nc.uri, false);
ball5_send = SharedObject.getRemote("ball5_send", client_nc.uri, false);
ball6_send = SharedObject.getRemote("ball6_send", client_nc.uri, false);
ball7_send = SharedObject.getRemote("ball7_send", client_nc.uri, false);
ball8_send = SharedObject.getRemote("ball8_send", client_nc.uri, false);
ball9_send = SharedObject.getRemote("ball9_send", client_nc.uri, false);
ball10_send = SharedObject.getRemote("ball10_send", client_nc.uri, false);
playerA_send.connect(_root.client_nc);
playerB_send.connect(_root.client_nc);
ball1_send.connect(_root.client_nc);
ball2_send.connect(_root.client_nc);
ball3_send.connect(_root.client_nc);
ball4_send.connect(_root.client_nc);
ball5_send.connect(_root.client_nc);
ball6_send.connect(_root.client_nc);
ball7_send.connect(_root.client_nc);
ball8_send.connect(_root.client_nc);
ball9_send.connect(_root.client_nc);
ball10_send.connect(_root.client_nc);
ball1_send.onSync = function (list) {
fn = ball1_send.data.flightNum;
if (OKfn(fn)) {
_root.r1++;
ball1.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball1.bstatus = "trigger";
_root.hcount++;
}
};
ball2_send.onSync = function (list) {
fn = ball2_send.data.flightNum;
if (OKfn(fn)) {
_root.r2++;
ball2.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball2.bstatus = "trigger";
_root.hcount++;
}
};
ball3_send.onSync = function (list) {
fn = ball3_send.data.flightNum;
if (OKfn(fn)) {
_root.r3++;
ball3.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball3.bstatus = "trigger";
_root.hcount++;
}
};
ball4_send.onSync = function (list) {
fn = ball4_send.data.flightNum;
if (OKfn(fn)) {
_root.r4++;
ball4.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball4.bstatus = "trigger";
_root.hcount++;
}
};
ball5_send.onSync = function (list) {
fn = ball5_send.data.flightNum;
if (OKfn(fn)) {
_root.r5++;
ball5.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball5.bstatus = "trigger";
_root.hcount++;
}
};
ball6_send.onSync = function (list) {
fn = ball6_send.data.flightNum;
if (OKfn(fn)) {
_root.r6++;
ball6.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball6.bstatus = "trigger";
_root.hcount++;
}
};
ball7_send.onSync = function (list) {
fn = ball7_send.data.flightNum;
if (OKfn(fn)) {
_root.r7++;
ball7.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball7.bstatus = "trigger";
_root.hcount++;
}
};
ball8_send.onSync = function (list) {
fn = ball8_send.data.flightNum;
if (OKfn(fn)) {
_root.r8++;
ball8.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball8.bstatus = "trigger";
_root.hcount++;
}
};
ball9_send.onSync = function (list) {
fn = ball9_send.data.flightNum;
if (OKfn(fn)) {
_root.r9++;
ball9.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball9.bstatus = "trigger";
_root.hcount++;
}
};
ball10_send.onSync = function (list) {
fn = ball10_send.data.flightNum;
if (OKfn(fn)) {
_root.r10++;
ball10.flightNum = fn;
PLACE_OPP_PLAYER(fn);
ball10.bstatus = "trigger";
_root.hcount++;
}
};
playerA_send.onSync = function (list) {
if (_root.PL == 2) {
com_a.gotoAndPlay(2);
_root.checkA = true;
}
};
playerB_send.onSync = function (list) {
if (_root.PL == 1) {
com_b.gotoAndPlay(2);
_root.checkB = true;
}
};
_root.playerA_send.data.char = 0;
_root.playerA_send.data.userName = 0;
_root.playerA_send.data.posMove = "";
_root.playerA_send.data.addBAll = 0;
f = 1;
while (f < 11) {
_root[("ball" + f) + "_send"].data.flightNum = "";
f++;
}
_root.playerB_send.data.char = 0;
_root.playerB_send.data.userName = 0;
_root.playerB_send.data.posMove = "";
}
function FLASHCOM_SEND_START_PLAYER_COUNTRY(player) {
if (player == 1) {
_root.playerA_send.data.char = _root.player1teamID;
_root.playerA_send.data.userName = _root.userName1;
_root.playerA_send.data.email = _root.myEmail;
_root.playerA_send.data.ready = 0;
}
if (player == 2) {
_root.playerB_send.data.char = _root.player2teamID;
_root.playerB_send.data.userName = _root.userName2;
_root.playerB_send.data.email = _root.myEmail;
_root.playerB_send.data.ready = 0;
}
}
function FLASHCOM_LISTEN_START_OPPONENT_COUNTRY(player) {
result = false;
if (player == 1) {
_root.player2teamID = _root.playerB_send.data.char;
_root.userName2 = _root.playerB_send.data.userName;
_root.oppEmail = _root.playerB_send.data.email;
if (_root.player2teamID > 0) {
result = true;
}
}
if (player == 2) {
_root.player1teamID = _root.playerA_send.data.char;
_root.userName1 = _root.playerA_send.data.userName;
_root.oppEmail = _root.playerA_send.data.email;
if (_root.player1teamID > 0) {
result = true;
}
}
return(result);
}
function FLASHCOM_SEND_READY(player) {
((player == 1) ? ((_root.playerA_send.data.ready = 1)) : ((_root.playerB_send.data.ready = 1)));
}
function FLASHCOM_LISTEN_FOR_READY(player) {
result = false;
(((player == 1) and (_root.playerB_send.data.ready == 1)) ? ((result = true)) : 0);
(((player == 2) and (_root.playerA_send.data.ready == 1)) ? ((result = true)) : 0);
return(result);
}
reloadURL = "h2h_37_mx.swf";
goalPostR.gotoAndStop(2);
goalPostL.gotoAndStop(2);
_root.group = 1;
_root.currentRound = 1;
_root.CPUskill = new Array(null, 75, 80, 85, 90, 95, 100);
_root.player1teamID = 1;
_root.player2teamID = 1;
_root.lastChar = 1;
_root.currentChar = 1;
_root.xmove = 20;
_root.xspeed = 1.68;
_root.Country = new Array(null, "Portugal", "Greece", "Spain", "Russia", "France", "England", "Switzerland", "Croatia", "Sweden", "Bulgaria", "Denmark", "Italy", "Czech Rep", "Latvia", "Germany", "Holland", null);
_root.p1_Description = _root.Country[_root.player1teamID];
_root.p2_Description = _root.Country[_root.player2teamID];
stop();
trace("inviteid: " + inviteid);
if ((inviteid != null) && (inviteid != undefined)) {
trace("user has been invited");
_root.invited = true;
gotoAndPlay (8);
} else {
trace("user has NOT been invited");
_root.invited = false;
}
if ((requestid != null) && (requestid != undefined)) {
trace("user has been invited to a league");
_root.leagueInvited = true;
gotoAndPlay (8);
} else {
trace("user has NOT been invited to a league");
_root.leagueInvited = false;
}
stop();
Instance of Symbol 231 MovieClip [FCFScrollSelectListSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 225 MovieClip [FCFSelectableListSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 232 MovieClip [FCFUIComponentSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 224 MovieClip [FCDataProviderSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 234 MovieClip [FCFLabelSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 249 MovieClip [FCFPushButtonSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
label = "Push Button";
clickHandler = "";
}
Instance of Symbol 258 MovieClip [FCFListBoxSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "";
}
Instance of Symbol 263 MovieClip [FCSimpleConnectSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
appDirectory = "rtmp:/app_default";
}
Instance of Symbol 283 MovieClip [FCConnectionLightSymbol] in Frame 3
//component parameters
onClipEvent (initialize) {
interval = 2;
threshold = 0.1;
}
Instance of Symbol 309 MovieClip "bouncingBall" in Frame 3
onClipEvent (load) {
gotoAndStop (7);
}
Frame 4
stop();
Frame 8
((_root.loggedIn == true) ? (gotoAndStop (12)) : (stop()));
stop();
help.text = "";
back_btn.onRelease = function () {
gotoAndPlay (4);
};
back_btn.onRollOver = function () {
_root.help.text = "Return to the main menu";
};
back_btn.onRollOut = function () {
_root.help.text = "";
};
Frame 12
stop();
help.text = "";
back_btn.onRelease = function () {
gotoAndPlay (4);
};
back_btn.onRollOver = function () {
_root.help.text = "Return to the main menu";
};
back_btn.onRollOut = function () {
_root.help.text = "";
};
challenge_btn.onRelease = function () {
gotoAndPlay (16);
};
challenge_btn.onRollOver = function () {
_root.help.text = "Challenge a friend via email";
};
challenge_btn.onRollOut = function () {
_root.help.text = "";
};
bench_btn.onRelease = function () {
_root.room = null;
gotoAndPlay (24);
};
bench_btn.onRollOver = function () {
_root.help.text = "Join the public game forum";
};
bench_btn.onRollOut = function () {
_root.help.text = "";
};
private_btn.onRelease = function () {
_root.room = _root.leagueID;
_root.getLeagueNameFL(_root.leagueID);
};
private_btn.onRollOver = function () {
_root.help.text = "Join your private league game forum";
};
private_btn.onRollOut = function () {
_root.help.text = "";
};
create_btn.onRelease = function () {
gotoAndPlay (20);
};
create_btn.onRollOver = function () {
_root.help.text = "Create a private league to compete against your friends";
};
create_btn.onRollOut = function () {
_root.help.text = "";
};
if (inLeague) {
create_btn._visible = false;
} else {
private_btn._visible = false;
}
Frame 16
stop();
help.text = "";
back_btn.onRelease = function () {
gotoAndPlay (12);
};
back_btn.onRollOver = function () {
_root.help.text = "Return to the multichoice menu";
};
back_btn.onRollOut = function () {
_root.help.text = "";
};
yemail = _root.email;
yname = _root.username;
challenge_btn.onRelease = function () {
if (_root.validate_mail(yemail) && (_root.validate_mail(femail))) {
_root.sendInviteFL(yname, yemail, fname, femail);
}
if ((!_root.validate_mail(yemail)) && (_root.validate_mail(femail))) {
_root.help.text = "Please enter your valid email address";
}
if (_root.validate_mail(yemail) && (!_root.validate_mail(femail))) {
_root.help.text = "Please enter your friend's valid email address";
}
if ((!_root.validate_mail(yemail)) && (!_root.validate_mail(femail))) {
_root.help.text = "Please enter valid email addresses";
}
};
Frame 20
stop();
managerName.onSetFocus = function () {
((managerName.text == "League manager name:") ? ((managerName.text = "")) : 0);
};
managerEmail.onSetFocus = function () {
((managerEmail.text == "League manager email:") ? ((managerEmail.text = "")) : 0);
};
_root.help.text = "";
back_btn.onRelease = function () {
gotoAndPlay (12);
};
back_btn.onRollOver = function () {
_root.help.text = "Return to the multichoice menu";
};
back_btn.onRollOut = function () {
_root.help.text = "";
};
create_btn.onRelease = function () {
if (leagueName.text != "") {
trace(("league name:" + leagueName.text) + ":");
ok = true;
count = 1;
total = 6;
invited = 0;
emailArray = new Array();
while (ok && (count <= total)) {
trace("testing email: " + eval ("invite_email" + count).text);
if (eval ("invite_email" + count).text != "") {
if (_root.validate_mail(eval ("invite_email" + count).text)) {
invited++;
emailArray.push(eval ("invite_email" + count).text);
} else {
ok = false;
}
}
count++;
}
if (ok) {
if (invited > 0) {
trace("all emails ok");
_root.createLeagueFL(_root.email, leagueName.text, emailArray);
} else {
trace("no emails entered");
_root.help.text = "You must invite at least one other member to join your league";
}
} else {
trace(("email " + (count - 1)) + " failed");
_root.help.text = ("Please ensure email " + (count - 1)) + "is valid";
}
} else {
trace("no league name");
_root.help.text = "Please enter a league name";
}
};
Frame 24
stop();
if (((_root.leagueID != "") && (_root.leagueID != null)) && (_root.leagueID != undefined)) {
trace("IN LEAGUE");
league_btn._visible = true;
} else {
trace("NOT IN LEAGUE");
league_btn._visible = false;
}
league_btn.onRelease = function () {
_root.offset = 0;
_root.getLeagueTableFL(_root.leagueID, _root.offset, 10);
};
if (_root.room != null) {
trace(("_root.room: " + _root.room) + " IS NOT NULL");
appInstance = _root.room;
simpleconnect.appInstance = _root.room;
} else {
trace(("_root.room: " + _root.room) + " IS NULL");
appInstance = null;
simpleconnect.appInstance = null;
}
simpleconnect.setUsername(_root.username);
if (_root.leagueName != null) {
trace("its a league room");
_root.header.text = ("Welcome to the " + _root.leagueName) + " bench. If any other league members are online they will appear in this room with you.";
} else {
trace("its not a league room");
_root.header.text = "Welcome to the bench";
}
back_btn.onRelease = function () {
gotoAndPlay (12);
};
back_btn.onRollOver = function () {
_root.help.text = "Return to the multichoice menu";
};
back_btn.onRollOut = function () {
_root.help.text = "";
};
Instance of Symbol 134 MovieClip [instant] "fc_instant" in Frame 24
//component parameters
onClipEvent (initialize) {
targetMedia_mc = "enter target mediaplayer instance name";
}
Instance of Symbol 263 MovieClip [FCSimpleConnectSymbol] "simpleconnect" in Frame 24
//component parameters
onClipEvent (initialize) {
appDirectory = "rtmp://212.100.255.83/euroheaders/";
fcComponents = [];
fcComponents[0] = "fc_instant";
fcComponents[1] = "light";
fcComponents[2] = "chat";
fcComponents[3] = "peeps";
}
Instance of Symbol 283 MovieClip [FCConnectionLightSymbol] "light" in Frame 24
//component parameters
onClipEvent (initialize) {
interval = 2;
threshold = 0.1;
}
Frame 35
if (_root.target == "global") {
leagueHeader.text = "Global Player League";
} else if (_root.target == "country") {
leagueHeader.text = "Country League";
} else if (_root.target == "league") {
leagueHeader.text = _root.leagueName + " League";
}
if (((_root.leagueID != "") && (_root.leagueID != null)) && (_root.leagueID != undefined)) {
trace("IN LEAGUE");
league_btn._visible = true;
} else {
trace("NOT IN LEAGUE");
league_btn._visible = false;
}
global_btn.onRelease = function () {
_root.offset = 0;
_root.getGlobalTableFL(_root.offset, 10);
};
country_btn.onRelease = function () {
_root.offset = 0;
_root.getCountryTableFL();
};
league_btn.onRelease = function () {
_root.offset = 0;
_root.getLeagueTableFL(_root.leagueID);
};
totalFields = 10;
i = 1;
while (i < totalFields) {
eval ("resultItem_" + i)._alpha = 0;
trace("hiding: " + eval ("resultItem_" + i)._alpha);
i++;
}
trace("displaying results: " + _root.leagueData.items.length);
added = 0;
i = 0;
while (i < _root.leagueData.items.length) {
trace("ADDING");
eval ("resultItem_" + (i + 1)).position.text = (_root.offset + i) + 1;
eval ("resultItem_" + (i + 1)).name.text = _root.leagueData.items[i].name;
eval ("resultItem_" + (i + 1)).played.text = _root.leagueData.items[i].played;
eval ("resultItem_" + (i + 1)).win.text = _root.leagueData.items[i].wins;
eval ("resultItem_" + (i + 1)).lose.text = _root.leagueData.items[i].played - _root.leagueData.items[i].wins;
if (_root.leagueData.items[i].wintime != undefined) {
eval ("resultItem_" + (i + 1)).wintime.text = Math.round(_root.leagueData.items[i].wintime);
} else {
eval ("resultItem_" + (i + 1)).wintime.text = "n/a";
}
if (_root.leagueData.items[i].goaltime != undefined) {
eval ("resultItem_" + (i + 1)).goaltime.text = Math.round(_root.leagueData.items[i].goaltime);
} else {
eval ("resultItem_" + (i + 1)).goaltime.text = "n/a";
}
added++;
eval ("resultItem_" + (i + 1))._alpha = 100;
i++;
}
trace("added: " + added);
i = added + 1;
while (i <= totalFields) {
trace((("removing: " + i) + " : ") + eval ("resultItem_" + i)._alpha);
eval ("resultItem_" + i)._alpha = 0;
trace((("removed: " + i) + " : ") + eval ("resultItem_" + i)._alpha);
i++;
}
if (_root.offset == 0) {
_root.prev_btn._visible = false;
} else {
_root.prev_btn._visible = true;
}
if (_root.numRecords < 10) {
_root.next_btn._visible = false;
} else {
_root.next_btn._visible = true;
}
_root.prev_btn.onRelease = function () {
_root.offset = _root.offset - 10;
if (_root.target == "global") {
_root.getGlobalTableFL(_root.offset, 10);
} else if (_root.target == "country") {
_root.getCountryTableFL(_root.offset, 10);
} else if (_root.target == "league") {
_root.getLeagueTableFL(leagueID, _root.offset, 10);
}
};
_root.next_btn.onRelease = function () {
_root.offset = _root.offset + 10;
if (_root.target == "global") {
_root.getGlobalTableFL(_root.offset, 10);
} else if (_root.target == "country") {
_root.getCountryTableFL(_root.offset, 10);
} else if (_root.target == "league") {
_root.getLeagueTableFL(leagueID, _root.offset, 10);
}
};
back_btn.onRelease = function () {
gotoAndPlay (4);
};
back_btn.onRollOver = function () {
_root.help.text = "Return to the multichoice menu";
};
back_btn.onRollOut = function () {
_root.help.text = "";
};
stop();
Instance of Symbol 421 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._visible = _parent.league_btn._visible;
}
Instance of Symbol 423 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._visible = _parent.next_btn._visible;
}
Instance of Symbol 425 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._visible = _parent.prev_btn._visible;
}
Frame 36
gotoAndStop (35);
Frame 41
stop();
Frame 49
n = 1;
while (n < _root.Country.length) {
this["team" + n].gotoAndStop(_root.Country[n]);
this["teamText" + n] = _root.Country[n];
n++;
}
_root.userName1 = username;
stop();
Instance of Symbol 308 MovieClip "ball" in Frame 49
onClipEvent (enterFrame) {
this._x = _parent[_root.currentChar]._x - 3;
this._y = _parent[_root.currentChar]._y - 8;
}
onClipEvent (load) {
this._x = _parent[1]._x - 3;
this._y = _parent[1]._y - 8;
}
Instance of Symbol 645 MovieClip "pA_1" in Frame 49
onClipEvent (load) {
startx = _x;
}
onClipEvent (enterFrame) {
_root.playerCharMove(this);
((stat == "finish") ? ((stat = "done")) : 0);
}
Instance of Symbol 645 MovieClip "pA_2" in Frame 49
onClipEvent (load) {
startx = _x;
}
onClipEvent (enterFrame) {
_root.playerCharMove(this);
((stat == "finish") ? ((stat = "done")) : 0);
}
Instance of Symbol 656 MovieClip "menu" in Frame 49
onClipEvent (enterFrame) {
((_root.veryFirstGame != 1) ? ((_root.soundOn = 1)(_root.veryFirstGame = 1)) : 0);
if (_root.soundOn != 1) {
(menuSound.gotoAndStop(1));// not popped
} else {
(menuSound.gotoAndStop(2));// not popped
}
}
Frame 50
n = 1;
while (n < _root.Country.length) {
this["team" + n].gotoAndStop(_root.Country[n]);
this["teamText" + n] = _root.Country[n];
n++;
}
_root.userName2 = username;
stop();
Instance of Symbol 645 MovieClip "pA_1" in Frame 50
onClipEvent (load) {
startx = _x;
}
onClipEvent (enterFrame) {
_root.playerCharMove(this);
((stat == "finish") ? ((stat = "done")) : 0);
}
Instance of Symbol 645 MovieClip "pA_2" in Frame 50
onClipEvent (load) {
startx = _x;
}
onClipEvent (enterFrame) {
_root.playerCharMove(this);
((stat == "finish") ? ((stat = "done")) : 0);
}
Frame 53
if (_root.PL == 1) {
(_root.FLASHCOM_LISTEN_START_OPPONENT_COUNTRY(1) ? (gotoAndPlay (61)) : 0);
}
play();
Instance of Symbol 645 MovieClip "pA_1" in Frame 53
onClipEvent (enterFrame) {
playerCharGFX(_root.player1teamID);
}
Instance of Symbol 708 MovieClip in Frame 53
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player1teamID);
}
Frame 54
gotoAndPlay (53);
Instance of Symbol 708 MovieClip in Frame 55
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player2teamID);
}
Frame 57
if (_root.PL == 2) {
(_root.FLASHCOM_LISTEN_START_OPPONENT_COUNTRY(2) ? (gotoAndPlay (61)) : 0);
}
play();
Instance of Symbol 645 MovieClip "pA_1" in Frame 57
onClipEvent (enterFrame) {
playerCharGFX(_root.player2teamID);
}
Frame 58
gotoAndPlay (57);
Frame 61
Instance of Symbol 645 MovieClip "pA_1" in Frame 61
onClipEvent (enterFrame) {
playerCharGFX(_root.player2teamID);
}
Instance of Symbol 645 MovieClip "pA_1" in Frame 61
onClipEvent (enterFrame) {
playerCharGFX(_root.player1teamID);
}
Instance of Symbol 708 MovieClip in Frame 61
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player2teamID);
}
Instance of Symbol 708 MovieClip in Frame 61
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player1teamID);
}
Frame 62
gotoAndPlay (61);
Frame 65
(((_root.PL == 1) and _root.FLASHCOM_LISTEN_FOR_READY(1)) ? (gotoAndPlay (73)) : 0);
(((_root.PL == 2) and _root.FLASHCOM_LISTEN_FOR_READY(2)) ? (gotoAndPlay (73)) : 0);
Frame 66
gotoAndPlay (65);
Instance of Symbol 725 MovieClip in Frame 68
onClipEvent (enterFrame) {
grNum = 6;
if (_root.currentRound != 6) {
(this.gotoAndStop(2));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
Instance of Symbol 725 MovieClip in Frame 68
onClipEvent (enterFrame) {
grNum = 5;
if (_root.currentRound != 5) {
(this.gotoAndStop(2));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
Instance of Symbol 725 MovieClip in Frame 68
onClipEvent (enterFrame) {
grNum = 4;
if (_root.currentRound != 4) {
(this.gotoAndStop(2));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
Instance of Symbol 725 MovieClip "t3" in Frame 68
onClipEvent (enterFrame) {
grNum = 3;
if (_root.currentRound != 3) {
(this.gotoAndStop(2));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
Instance of Symbol 725 MovieClip "t2" in Frame 68
onClipEvent (enterFrame) {
grNum = 2;
if (_root.currentRound != 2) {
(this.gotoAndStop(2));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
Instance of Symbol 725 MovieClip "t1" in Frame 68
onClipEvent (enterFrame) {
grNum = 1;
if (_root.currentRound != 1) {
(this.gotoAndStop(2));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
Frame 69
function MY_TEAM_WINS(t1, t2) {
(((t1 != _root.player1teamID) and (t2 != _root.player1teamID)) ? (((random(2) == 0) ? ((winner = t1)) : ((winner = t2)))) : 0);
(((t1 == _root.player1teamID) or (t2 == _root.player1teamID)) ? ((winner = _root.player1teamID)) : 0);
return(winner);
}
goalPostR.gotoAndStop(2);
goalPostL.gotoAndStop(2);
_root.myTeam = _root.Country[_root.player1teamID];
if (_root.currentRound == 1) {
_root.Teams_Round2 = new Array();
_root.Teams_Round3 = new Array();
_root.Teams_Round4 = new Array();
}
if (_root.currentRound > 0) {
n = 1;
while (n < 5) {
if (_root.currentRound == 1) {
this[(("r1_" + n) + "_") + 1].gotoAndStop(_root.Country[((n - 1) * 4) + 1]);
this[(("r1_" + n) + "_") + 2].gotoAndStop(_root.Country[((n - 1) * 4) + 2]);
this[(("r1_" + n) + "_") + 3].gotoAndStop(_root.Country[((n - 1) * 4) + 3]);
this[(("r1_" + n) + "_") + 4].gotoAndStop(_root.Country[((n - 1) * 4) + 4]);
c = 1;
while (c < 5) {
if ((((n - 1) * 4) + c) == _root.player1teamID) {
((c == 1) ? ((_root.player2teamID = _root.player1teamID + 1)) : 0);
((c == 2) ? ((_root.player2teamID = _root.player1teamID - 1)) : 0);
((c == 3) ? ((_root.player2teamID = _root.player1teamID + 1)) : 0);
((c == 4) ? ((_root.player2teamID = _root.player1teamID - 1)) : 0);
}
c++;
}
_root.oppTeam = _root.Country[_root.player2teamID];
}
if (_root.currentRound == 2) {
this[(("r1_" + n) + "_") + 1].gotoAndStop(_root.Country[((n - 1) * 4) + 1]);
this[(("r1_" + n) + "_") + 2].gotoAndStop(_root.Country[((n - 1) * 4) + 4]);
this[(("r1_" + n) + "_") + 3].gotoAndStop(_root.Country[((n - 1) * 4) + 2]);
this[(("r1_" + n) + "_") + 4].gotoAndStop(_root.Country[((n - 1) * 4) + 3]);
c = 1;
while (c < 5) {
if ((((n - 1) * 4) + c) == _root.player1teamID) {
((c == 1) ? ((_root.player2teamID = _root.player1teamID + 3)) : 0);
((c == 2) ? ((_root.player2teamID = _root.player1teamID + 1)) : 0);
((c == 3) ? ((_root.player2teamID = _root.player1teamID - 1)) : 0);
((c == 4) ? ((_root.player2teamID = _root.player1teamID - 3)) : 0);
}
c++;
}
_root.oppTeam = _root.Country[_root.player2teamID];
}
if (_root.currentRound > 2) {
this[(("r1_" + n) + "_") + 1].gotoAndStop(_root.Country[((n - 1) * 4) + 1]);
this[(("r1_" + n) + "_") + 2].gotoAndStop(_root.Country[((n - 1) * 4) + 3]);
this[(("r1_" + n) + "_") + 3].gotoAndStop(_root.Country[((n - 1) * 4) + 2]);
this[(("r1_" + n) + "_") + 4].gotoAndStop(_root.Country[((n - 1) * 4) + 4]);
c = 1;
while (c < 5) {
if ((((n - 1) * 4) + c) == _root.player1teamID) {
((c == 1) ? ((_root.player2teamID = _root.player1teamID + 2)) : 0);
((c == 2) ? ((_root.player2teamID = _root.player1teamID + 2)) : 0);
((c == 3) ? ((_root.player2teamID = _root.player1teamID - 2)) : 0);
((c == 4) ? ((_root.player2teamID = _root.player1teamID - 2)) : 0);
}
c++;
}
_root.oppTeam = _root.Country[_root.player2teamID];
}
c = 1;
while (c < 5) {
if (this[(("r1_" + n) + "_") + c]._currentframe != _root.player1teamID) {
(this[(("r1_" + n) + "_") + c].myTeam.gotoAndStop(1));// not popped
} else {
(this[(("r1_" + n) + "_") + c].myTeam.gotoAndStop(2));// not popped
}
c++;
}
n++;
}
}
n = 1;
while (n < 9) {
if (_root.currentRound == 3) {
t1 = 1 + ((n - 1) * 2);
t2 = (1 + ((n - 1) * 2)) + 1;
_root.Teams_Round2[n] = MY_TEAM_WINS(t1, t2);
}
n++;
}
if (_root.currentRound == 4) {
n = 1;
while (n < 9) {
t1 = 1 + ((n - 1) * 2);
t2 = (1 + ((n - 1) * 2)) + 1;
_root.Teams_Round2[n] = MY_TEAM_WINS(t1, t2);
n++;
}
temp1 = _root.Teams_Round2[2];
temp2 = _root.Teams_Round2[4];
_root.Teams_Round2[4] = temp1;
_root.Teams_Round2[2] = temp2;
temp1 = _root.Teams_Round2[6];
temp2 = _root.Teams_Round2[8];
_root.Teams_Round2[8] = temp1;
_root.Teams_Round2[6] = temp2;
}
n = 1;
while (n < 9) {
if (_root.currentRound > 3) {
this["r4_" + n].gotoAndStop(_root.Teams_Round2[n]);
if (_root.Teams_Round2[n] != _root.player1teamID) {
} else {
(this["r4_" + n].myTeam.gotoAndStop(2));// not popped
}
} else {
this["r4_" + n].gotoAndStop("none");
}
n++;
}
if (_root.currentRound == 4) {
n = 1;
while (n < 9) {
if (_root.Teams_Round2[n] == _root.player1teamID) {
(((int(n / 2) * 2) == n) ? ((_root.player2teamID = _root.Teams_Round2[n - 1])) : ((_root.player2teamID = _root.Teams_Round2[n + 1])));
}
n++;
}
_root.oppTeam = _root.Country[_root.player2teamID];
}
if (_root.currentRound == 5) {
n = 1;
while (n < 5) {
t1 = Number(_root.Teams_Round2[1 + ((n - 1) * 2)]);
t2 = Number(_root.Teams_Round2[(1 + ((n - 1) * 2)) + 1]);
_root.Teams_Round3[n] = MY_TEAM_WINS(t1, t2);
n++;
}
temp1 = _root.Teams_Round3[2];
temp2 = _root.Teams_Round3[4];
_root.Teams_Round3[4] = temp1;
_root.Teams_Round3[2] = temp2;
}
n = 1;
while (n < 5) {
if (_root.currentRound > 4) {
this["r5_" + n].gotoAndStop(_root.Teams_Round3[n]);
if (_root.Teams_Round3[n] != _root.player1teamID) {
} else {
(this["r5_" + n].myTeam.gotoAndStop(2));// not popped
}
} else {
this["r5_" + n].gotoAndStop("none");
}
n++;
}
if (_root.currentRound == 5) {
n = 1;
while (n < 5) {
if (_root.Teams_Round3[n] == _root.player1teamID) {
(((int(n / 2) * 2) == n) ? ((_root.player2teamID = _root.Teams_Round3[n - 1])) : ((_root.player2teamID = _root.Teams_Round3[n + 1])));
}
n++;
}
_root.oppTeam = _root.Country[_root.player2teamID];
}
n = 1;
while (n < 3) {
if (_root.currentRound == 6) {
t1 = _root.Teams_Round3[1 + ((n - 1) * 2)];
t2 = _root.Teams_Round3[(1 + ((n - 1) * 2)) + 1];
_root.Teams_Round4[n] = MY_TEAM_WINS(t1, t2);
}
if (_root.currentRound > 5) {
this["r6_" + n].gotoAndStop(_root.Teams_Round4[n]);
if (_root.Teams_Round4[n] != _root.player1teamID) {
} else {
(this["r6_" + n].myTeam.gotoAndStop(2));// not popped
}
} else {
this["r6_" + n].gotoAndStop("none");
}
n++;
}
if (_root.currentRound == 6) {
n = 1;
while (n < 3) {
if (_root.Teams_Round4[n] == _root.player1teamID) {
(((int(n / 2) * 2) == n) ? ((_root.player2teamID = _root.Teams_Round4[n - 1])) : ((_root.player2teamID = _root.Teams_Round4[n + 1])));
}
n++;
}
_root.oppTeam = _root.Country[_root.player2teamID];
}
Frame 70
stop();
Instance of Symbol 764 MovieClip "com2" in Frame 72
onClipEvent (load) {
this.swapDepths(9901);
}
Instance of Symbol 766 MovieClip "com1" in Frame 72
onClipEvent (load) {
this.swapDepths(9900);
}
Instance of Symbol 538 MovieClip "team3" in Frame 72
onClipEvent (load) {
this.gotoAndStop(_root.player2teamID);
}
Instance of Symbol 538 MovieClip "team3" in Frame 72
onClipEvent (load) {
this.gotoAndStop(_root.player1teamID);
}
Instance of Symbol 805 MovieClip "ball" in Frame 72
onClipEvent (load) {
function MOVE_BALL() {
sPoint = _root["hpos" + Number(flightNum.charAt(3))]._x;
ePoint = _root["hpos" + Number(flightNum.charAt(4))]._x - xsp;
dist = ePoint - sPoint;
travd = _x - sPoint;
travdRatio = travd / dist;
((travdRatio < 0.5) ? ((hBias = 0.8 + travdRatio)) : 0);
((travdRatio > 0.5) ? ((hBias = 1.8 - travdRatio)) : 0);
xx = xsp * hBias;
if (_root.PL == 1) {
(((_root.player2type == "HUMAN") and (xx > 0)) ? ((slowWayBack = 1.2)) : ((slowWayBack = 1)));
}
if (_root.PL == 2) {
(((_root.player2type == "HUMAN") and (xx < 0)) ? ((slowWayBack = 1.2)) : ((slowWayBack = 1)));
}
_x = (_x + (xx / slowWayBack));
yinc = Math.sin((travdRatio * 2) - 1);
_y = (_y + ((yinc * 20) / slowWayBack));
}
}
onClipEvent (enterFrame) {
if (bstatus == "trigger") {
this.bspin.gotoAndPlay(2);
bstatus = "moving";
c = 0;
landSpot = Number(flightNum.charAt(3));
_root["ball" + id]._x = _root["hpos" + landSpot]._x;
_root["ball" + id]._y = _root["hpos" + landSpot]._y;
dsp = 12;
sPoint = _root["hpos" + Number(flightNum.charAt(3))]._x;
ePoint = _root["hpos" + Number(flightNum.charAt(4))]._x - xsp;
dist = 500 - Math.abs(ePoint - sPoint);
dsp = dsp - (dist / 50);
((Number(flightNum.charAt(4)) < 4) ? ((xsp = -dsp)) : ((xsp = dsp)));
}
if (bstatus == "moving") {
MOVE_BALL();
if (((_y > 200) and (y < 220)) and (_root.ballDropped == 0)) {
landSpot = Number(flightNum.charAt(4));
_root.ballDown[id] = landSpot;
_root.BALL_BOUNCE(id, _root.ballDown[id]);
_root.hcount++;
if (_root.PL == 1) {
_root.hcount++;
if (_root.hcount > (7 * _root.numOfBalls)) {
_root.hcount = 0;
_root.ADD_EXTRA_BALL();
_root.playerA_send.data.addBAll = 1;
}
}
}
if ((_y > 230) and (_root.ballDropped == 0)) {
_root.CHECK_BALL_DROP(id, _root.ballDown[id]);
}
}
}
Instance of Symbol 809 MovieClip "listener" in Frame 72
onClipEvent (load) {
oldPLa = (Pla = "start");
oldPLb = (PLb = "start");
f = 1;
while (f < (_root.numOfBalls + 1)) {
_root.ballB_send.data["balldata" + f] = "";
_root.ballB_send.data["balldata" + f] = "";
f++;
}
_root.playerA_send.data.posMove = "";
_root.playerB_send.data.posMove = "";
((_root.PL == 1) ? ((_root.player2character = _root.playerB_send.data.char)(_root.playerB_send.data.char = 0)) : 0);
((_root.PL == 2) ? ((_root.player1character = _root.playerA_send.data.char)(_root.playerA_send.data.char = 0)) : 0);
}
onClipEvent (enterFrame) {
if ((_root.PL == 1) and (_root.checkB == true)) {
if (_root.playerB_send.data.lostalife == 1) {
_root.playerB_send.data.lostalife = 0;
_root.ballDropped = 2;
_root.inGoal = 2;
}
oldPLb = _root.playerBsend;
_root.playerBsend = _root.playerB_send.data.posMove;
if ((_root.playerBsend != "") and (oldPLb != _root.playerBsend)) {
strSt2 = _root.playerBsend.split("#");
_root.Bmove = strSt2[2].substr(0, 4);
_root.playerB.gotoAndPlay(_root.Bmove);
_root.playerB_send.data.posMove = "";
}
f = 1;
while (f < 11) {
if (_root.playerB_send.data["balldata" + f] != "") {
flightN = _root.playerB_send.data["balldata" + f];
_root.playerB.gotoAndStop("pos" + flightN.charAt(3));
_root.playerB.playerJump.gotoAndPlay("playerJump");
_root["ball" + f].flightNum = flightN;
_root["ball" + f].bstatus = "trigger";
_root.playerB_send.data["balldata" + f] = "";
_root.hcount++;
}
f++;
}
}
if ((_root.PL == 2) and (_root.checkA == true)) {
if (_root.playerA_send.data.addBAll == 1) {
_root.playerA_send.data.addBAll = 0;
_root.ADD_EXTRA_BALL();
}
if (_root.playerA_send.data.lostalife == 1) {
_root.playerA_send.data.lostalife = 0;
_root.ballDropped = 1;
_root.inGoal = 1;
}
oldPLa = _root.playerAsend;
_root.playerAsend = _root.playerA_send.data.posMove;
if ((_root.playerAsend != "") and (oldPLa != _root.playerAsend)) {
strSt2 = _root.playerAsend.split("#");
_root.Amove = strSt2[2].substr(0, 4);
_root.playerA.gotoAndPlay(_root.Amove);
_root.playerA_send.data.posMove = "";
}
f = 1;
while (f < 11) {
if (_root.playerA_send.data["balldata" + f] != "") {
flightN = _root.playerA_send.data["balldata" + f];
_root.playerA.gotoAndStop("pos" + flightN.charAt(3));
_root.playerA.playerJump.gotoAndPlay("playerJump");
_root["ball" + f].flightNum = flightN;
_root["ball" + f].bstatus = "trigger";
_root.playerA_send.data["balldata" + f] = "";
_root.hcount++;
}
f++;
}
}
}
Instance of Symbol 815 MovieClip "playerB" in Frame 72
onClipEvent (load) {
id = 1;
_root.playerPos[id] = "M";
this.gotoAndStop("pos5");
}
onClipEvent (keyDown) {
if (_root.player2type == "HUMAN") {
if ((_root.PL == 2) and (Key.getCode() == 37)) {
if (_root.playerPos[id] == "M") {
_root.playerPos[id] = "L";
this.gotoAndPlay("MtoL");
_root.playerB_send.data.posMove = ("P#" + id) + "#MtoL";
}
if (_root.playerPos[id] == "R") {
_root.playerPos[id] = "M";
this.gotoAndPlay("RtoM");
_root.playerB_send.data.posMove = ("P#" + id) + "#RtoM";
}
}
if ((_root.PL == 2) and (Key.getCode() == 39)) {
if (_root.playerPos[id] == "M") {
_root.playerPos[id] = "R";
this.gotoAndPlay("MtoR");
_root.playerB_send.data.posMove = ("P#" + id) + "#MtoR";
}
if (_root.playerPos[id] == "L") {
_root.playerPos[id] = "M";
this.gotoAndPlay("LtoM");
_root.playerB_send.data.posMove = ("P#" + id) + "#LtoM";
}
}
}
}
Instance of Symbol 817 MovieClip "playerA" in Frame 72
onClipEvent (load) {
id = 0;
_root.playerPos[id] = "M";
this.gotoAndStop("pos2");
}
onClipEvent (keyDown) {
if (_root.player1type == "HUMAN") {
if ((_root.PL == 1) and (Key.getCode() == 37)) {
if (_root.playerPos[id] == "M") {
_root.playerPos[id] = "L";
this.gotoAndPlay("MtoL");
_root.playerA_send.data.posMove = ("P#" + id) + "#MtoL";
}
if (_root.playerPos[id] == "R") {
_root.playerPos[id] = "M";
this.gotoAndPlay("RtoM");
_root.playerA_send.data.posMove = ("P#" + id) + "#RtoM";
}
}
if ((_root.PL == 1) and (Key.getCode() == 39)) {
if (_root.playerPos[id] == "M") {
_root.playerPos[id] = "R";
this.gotoAndPlay("MtoR");
_root.playerA_send.data.posMove = ("P#" + id) + "#MtoR";
}
if (_root.playerPos[id] == "L") {
_root.playerPos[id] = "M";
this.gotoAndPlay("LtoM");
_root.playerA_send.data.posMove = ("P#" + id) + "#LtoM";
}
}
}
}
Instance of Symbol 819 MovieClip "goalPostL" in Frame 72
onClipEvent (load) {
this.swapDepths(9990);
}
Instance of Symbol 819 MovieClip "goalPostR" in Frame 72
onClipEvent (load) {
this.swapDepths(9999);
}
Frame 73
function removeBalls() {
c = 1;
while (c < 11) {
removeMovieClip("ball" + c);
c++;
}
}
function reset() {
_root.removeBalls();
_root.numOfBalls = 1;
c = 1;
while (c < maxBalls) {
duplicateMovieClip ("ball", "ball" + c, c);
this["ball" + c].id = c;
this["ball" + c].ball.id = c;
this["ball" + c].name = this["ball" + c]._name;
this["ball" + c]._y = 151.6;
this["ball" + c]._x = 615.1;
this["ball" + c]._visible = false;
this["ball" + c].flightNum = "";
c++;
}
_root.hcount = 0;
_root.ballDown = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ballStatus = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ballStart = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.ballCounter = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.CPUtoCatchBall = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
if (_root.PL == 1) {
_root.ball1.bstatus = "trigger";
_root.ball1.flightNum = "fl_61";
((_root.MUS == true) ? ((_root.ball1_send.data.flightNum = "fl_61")) : 0);
}
_root.ball1.visible = true;
}
function ADD_EXTRA_BALL() {
_root["ball" + _root.numOfBalls]._visible = true;
_root.numOfBalls++;
_root["ball" + _root.numOfBalls].bstatus = "trigger";
_root["ball" + _root.numOfBalls].flightNum = "fl_61";
}
function BALL_BOUNCE(id, landSpot) {
if (landSpot < 4) {
((_root.player1type == "CPU") ? (MOVE_CPU(0, landSpot, id)) : 0);
((_root.playerPos[0] == "L") ? ((Pn = 1)) : 0);
((_root.playerPos[0] == "M") ? ((Pn = 2)) : 0);
((_root.playerPos[0] == "R") ? ((Pn = 3)) : 0);
}
if (landSpot > 3) {
if (_root.CPUtoCatchBall[id] == true) {
_root.CPUtoCatchBall[id] = false;
((_root.player2type == "CPU") ? (MOVE_CPU(1, landSpot, id)) : 0);
}
((_root.playerPos[1] == "L") ? ((Pn = 4)) : 0);
((_root.playerPos[1] == "M") ? ((Pn = 5)) : 0);
((_root.playerPos[1] == "R") ? ((Pn = 6)) : 0);
}
if (Pn == landSpot) {
if (landSpot < 4) {
playerA.playerJump.gotoAndPlay("playerJump");
if (_root.PL == 1) {
flightNum = ("fl_" + landSpot) + (4 + random(3));
_root["ball" + id].flightNum = flightNum;
_root["ball" + id].bstatus = "trigger";
((random(100) < _root.CPUskill[id]) ? ((_root.CPUtoCatchBall[id] = true)) : ((_root.CPUtoCatchBall[id] = false)));
_root.ballDown[id] = 0;
_root["s" + id]++;
((_root.MUS == true) ? ((_root[("ball" + id) + "_send"].data.flightNum = flightNum)) : 0);
}
}
if (landSpot > 3) {
playerB.playerJump.gotoAndPlay("playerJump");
if ((_root.PL == 2) or (_root.player2type == "CPU")) {
flightNum = ("fl_" + landSpot) + (1 + random(3));
_root["ball" + id].flightNum = flightNum;
_root["ball" + id].bstatus = "trigger";
_root.ballDown[id] = 0;
_root["s" + id]++;
((_root.MUS == true) ? ((_root[("ball" + id) + "_send"].data.flightNum = flightNum)) : 0);
}
}
}
}
function CHECK_BALL_DROP(id, landSpot) {
if (Pn != landSpot) {
if (landSpot < 4) {
if (_root.PL == 1) {
_root.playerA_send.data.lostalife = 1;
_root.ballDropped = 1;
_root.inGoal = 1;
}
}
if (landSpot > 3) {
if ((_root.PL == 2) or (_root.player2type == "CPU")) {
_root.playerB_send.data.lostalife = 1;
_root.ballDropped = 2;
_root.inGoal = 2;
}
}
}
}
function LOST_A_LIFE(p) {
if (p == 1) {
_root.scoreB++;
_root.playerALives.nextFrame();
_root.reset();
}
if (p == 2) {
_root.scoreA++;
_root.playerBLives.nextFrame();
_root.reset();
}
}
function PLACE_OPP_PLAYER(flightN) {
pos = flightN.charAt(3);
if ((_root.PL == 1) and (pos > 3)) {
_root.playerB.gotoAndStop("pos" + pos);
_root.playerB.playerJump.gotoAndPlay("playerJump");
}
if ((_root.PL == 2) and (pos < 4)) {
_root.playerA.gotoAndStop("pos" + pos);
_root.playerA.playerJump.gotoAndPlay("playerJump");
}
}
function MOVE_CPU(player, n) {
trace((("tracing MOVE_CPU: " + player) + " : ") + n);
((player == 0) ? ((AorB = "A")) : ((AorB = "B")));
if (((n == 1) and (player == 0)) or ((n == 4) and (player == 1))) {
if ((_root.playerPos[player] == "R") or (_root.playerPos[player] == "M")) {
_root.playerPos[player] = "L";
_root["player" + AorB].gotoAndPlay("MtoL");
}
}
if (((n == 2) and (player == 0)) or ((n == 5) and (player == 1))) {
if (_root.playerPos[player] == "L") {
_root.playerPos[player] = "M";
_root["player" + AorB].gotoAndPlay("LtoM");
}
if (_root.playerPos[player] == "R") {
_root.playerPos[player] = "M";
_root["player" + AorB].gotoAndPlay("RtoM");
}
}
if (((n == 3) and (player == 0)) or ((n == 6) and (player == 1))) {
if ((_root.playerPos[player] == "L") or (_root.playerPos[player] == "M")) {
_root.playerPos[player] = "R";
_root["player" + AorB].gotoAndPlay("MtoR");
}
}
}
_root.gameStarted = 0;
_root.myTeam = _root.Country[_root.player1teamID];
_root.oppTeam = _root.Country[_root.player2teamID];
movWidth = 470;
MaxBalls = 10;
gamescore = 0;
gameOver = 0;
BouncePause = 60;
BounceFrms = 80;
_root.scoreA = 0;
_root.scoreB = 0;
_root.ballDropped = 0;
_root.ballsDropped = new Array(0, 0, 0, 0);
_root.playerPos = new Array("M", "M");
_root.r1 = (_root.r2 = (_root.r3 = (_root.r4 = (_root.r5 = (_root.r6 = (_root.r7 = (_root.r8 = 9)))))));
_root.s1 = (_root.s2 = (_root.s3 = (_root.s4 = (_root.s5 = (_root.s6 = (_root.s7 = (_root.s8 = 9)))))));
reset();
play();
Frame 74
if (gameOver == 1) {
if (_root.scoreA > _root.scoreB) {
winCountry = _root.myTeam;
looseCountry = _root.oppTeam;
winnerEmail = _root.myEmail;
looserEmail = _root.oppEmail;
} else {
winCountry = _root.oppTeam;
looseCountry = _root.myTeam;
winnerEmail = _root.oppEmail;
looserEmail = _root.myEmail;
}
gameTime = "123";
goalTime = "123";
_root.newGameFL(winnerEmail, looserEmail, winCountry, looseCountry, gameTime, goalTime);
if (_root.soundOn != 1) {
} else {
(SFXwhistle.gotoAndPlay(2));// not popped
}
gameOver = 0;
removeBalls();
gameOverMC.gotoAndPlay(2);
gotoAndPlay (77);
}
if (_root.ballDropped > 0) {
_root.ballDroppedMC.gotoAndStop(2);
dropCount++;
if (dropCount > 50) {
_root.ballDroppedMC.gotoAndStop(1);
_root.LOST_A_LIFE(_root.ballDropped);
_root.ballDropped = 0;
dropCount = 0;
}
}
c = 1;
while (c < (_root.numOfBalls + 1)) {
_root["ball" + c]._visible = true;
c++;
}
Frame 75
gotoAndPlay (74);
Frame 77
gotTopTen = false;
trace("CLOSING THE MO_FO");
_root.client_nc.close();
Frame 78
_root.goalPostL.gotoAndStop(2);
_root.goalPostR.gotoAndStop(2);
if (_root.gotoIntro == true) {
_root.gotoIntro = false;
if (_root.currentRound == 6) {
gotoAndPlay (3);
}
if ((_root.currentRound < 6) and (_root.player2type == "CPU")) {
if (_root.scoreA > _root.scoreB) {
_root.currentRound++;
gotoAndPlay (69);
} else {
gotoAndPlay (4);
}
}
if (_root.player2type == "HUMAN") {
trace("clearing listenner");
Key.removeListener(_root.enterListener);
loadMovieNum (reloadURL, 0);
}
}
Frame 79
gotoAndPlay (78);
Symbol 7 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 7 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 11 MovieClip [FLabelSymbol] Frame 1
#initclip 11
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
this.labelField.embedFonts = this.hostComponent.styleTable.embedFonts.value;
this.labelField.setNewTextFormat(this.hostComponent.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 26 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 32 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 38 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 39 MovieClip [fpb_states] Frame 1
stop();
Symbol 39 MovieClip [fpb_states] Frame 2
stop();
Symbol 39 MovieClip [fpb_states] Frame 3
stop();
Symbol 39 MovieClip [fpb_states] Frame 4
stop();
Symbol 40 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
Object.registerClass("FUIComponentSymbol", FUIComponentClass);
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (!this.hasOwnProperty("hostStyle")) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
with (this.focusRect) {
lineStyle(1, outer);
moveTo(x, y);
lineTo(x + w, y);
lineTo(x + w, y + h);
lineTo(x, y + h);
lineTo(x, y);
lineStyle(1, inner);
moveTo(x + 1, y + 1);
lineTo((x + w) - 1, y + 1);
lineTo((x + w) - 1, (y + h) - 1);
lineTo(x + 1, (y + h) - 1);
lineTo(x + 1, y + 1);
}
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this._parent.localToGlobal({x:this._x, y:this._y});
this.drawFocusRect();
}
this.tabFocused = true;
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 41 MovieClip [FPushButtonSymbol] Frame 1
#initclip 2
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fpb_states", "fpbState_mc", 1);
this.attachMovie("FLabelSymbol", "fLabel_mc", 2);
this.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.setClickHandler(this.clickHandler);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.setSize(this.width, this.height);
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
if (arguments.length > 1) {
hit._height = h;
}
};
FPushButtonClass.prototype.setSize = function (w, h) {
this._xscale = 100;
this._yscale = 100;
if (w < 6) {
w = 6;
}
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
};
FPushButtonClass.prototype.arrangeLabel = function () {
var label = this.fLabel_mc;
var h = this.height;
var w = (this.width - 2);
var b = 1;
this.fLabel_mc.setSize(w - (b * 4));
label._x = b * 3;
label._y = (h / 2) - (label._height / 2);
};
FPushButtonClass.prototype.txtFormat = function () {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = "center")) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 1)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 1)) : undefined);
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var b = 1;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[this.fpbState_mc._currentframe - 1];
var mc = "frame";
var i = 0;
while (i < 6) {
x1 = x1 + ((i % 2) * b);
y1 = y1 + ((i % 2) * b);
x2 = x2 - (((i + 1) % 2) * b);
y2 = y2 - (((i + 1) % 2) * b);
var w = (Math.abs(x1 - x2) + (2 * b));
var h = (Math.abs(y1 - y2) + (2 * b));
this.fpbState_mc[frame][mc + i]._width = w;
this.fpbState_mc[frame][mc + i]._height = h;
this.fpbState_mc[frame][mc + i]._x = x1 - b;
this.fpbState_mc[frame][mc + i]._y = y1 - b;
i++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = ((arguments.length < 2) ? (this._parent) : (obj));
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.labelPosX = this.fLabel_mc._x;
this.labelPosY = this.fLabel_mc._y;
this.fLabel_mc._x = this.labelPosX + 1;
this.fLabel_mc._y = this.labelPosY + 1;
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fLabel_mc._x = this.labelPosX;
this.fLabel_mc._y = this.labelPosY;
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.fLabel_mc._x = this.labelPosX;
this.fLabel_mc._y = this.labelPosY;
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.fLabel_mc._x = this.labelPosX;
this.fLabel_mc._y = this.labelPosY;
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.fLabel_mc._x = this.labelPosX + 1;
this.fLabel_mc._y = this.labelPosY + 1;
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || (enable == undefined)) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this.pressOnce == undefined)) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return(this.master.STATE_SYSTEM_PRESSED);
}
return(this.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
Instance of Symbol 11 MovieClip [FLabelSymbol] "flabelAsset" in Symbol 41 MovieClip [FPushButtonSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 40 MovieClip [FUIComponentSymbol] "fuiAsset" in Symbol 41 MovieClip [FPushButtonSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 43 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 56 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 66 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 75 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 76 MovieClip [UpArrow] Frame 1
stop();
Symbol 76 MovieClip [UpArrow] Frame 2
stop();
Symbol 76 MovieClip [UpArrow] Frame 3
stop();
Symbol 81 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 88 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 94 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 95 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 104 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 112 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 120 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 121 MovieClip [DownArrow] Frame 1
stop();
Symbol 121 MovieClip [DownArrow] Frame 2
stop();
Symbol 121 MovieClip [DownArrow] Frame 3
stop();
Symbol 122 MovieClip [FScrollBarSymbol] Frame 1
#initclip 3
FScrollBarClass = function () {
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this._yscale * this.scrollTrack_mc._height) / 100;
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollPosition = pos;
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.isAKludge = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.isAKludge == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.isAKludge = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Instance of Symbol 40 MovieClip [FUIComponentSymbol] in Symbol 122 MovieClip [FScrollBarSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 125 MovieClip [DataProviderSymbol] Frame 1
#initclip 4
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var eventObj = {event:"updateAll"};
viewRef.modelChanged(eventObj);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var eventObj = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var tmpItm = this.items[index];
this.items.splice(index, 1);
var eventObj = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var tmpID = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = tmpID;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var i = 0;
while (i < this.views.length) {
this.views[i].modelChanged(eventObj);
i++;
}
};
#endinitclip
Symbol 126 MovieClip [FSelectableListSymbol] Frame 1
#initclip 5
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
Object.registerClass("FSelectableListSymbol", FSelectableListClass);
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var item = this.getItemAt(index);
this.dataProvider.removeItemAt(index);
return(item);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var index in this.selected) {
return(this.selected[index]);
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var item = this.getSelectedItem();
return(((item.data == undefined) ? (item.label) : (item.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var i = 0;
while (i < obj.length) {
var value = ((typeof(obj[i]) == "string") ? ({label:obj[i]}) : (obj[i]));
this.dataProvider.addItem(value);
i++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var limit = Math.min(this.numDisplayed, this.getLength());
var i = 0;
while (i < limit) {
this.container_mc[("fListItem" + i) + "_mc"].setEnabled(this.enable);
i++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + i), this.isSelected(this.topDisplayed + i));
i++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var i = 0;
while (i < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + i) + "_mc", 10 + i, {controller:this, itemNum:i});
var item_mc = this.container_mc[("fListItem" + i) + "_mc"];
var offset = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
item_mc.setSize(this.width - offset, this.itmHgt);
item_mc._y = (this.itmHgt - 2) * i;
i++;
}
this.updateControl();
if (this.focused) {
this.myOnSetFocus();
}
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var i in this.selected) {
if (this.selected[i] >= firstRow) {
this.selected[i] = this.selected[i] + ((lastRow - firstRow) + 1);
this.setSelectedIndex(this.selected[i], false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (this.selectHolder == index) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((index - 1) >= 0)) {
this.setSelectedIndex(index - 1, false);
}
} else if (this.selectionDeleted) {
var len = this.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
this.setSelectedIndex(index - 1, false);
} else {
this.setSelectedIndex(index, false);
}
}
for (var i in this.selected) {
if (this.selected[i] > firstRow) {
this.selected[i]--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (event == "sort") {
var len = this.getLength();
var i = 0;
while (i < len) {
if (this.isSelected(i)) {
var id = this.dataProvider.getItemID(i);
if (id == this.lastSelID) {
this.lastSelected = i;
}
this.selected[String(id)] = i;
}
i++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = index;
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))] != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var uniqueID in this.selected) {
var index = this.selected[uniqueID];
if ((this.topDisplayed <= index) && (index < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var tmpInd = (this.topDisplayed + itemNum);
if (this.getItemAt(tmpInd == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(tmpInd, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(tmpInd), this.isSelected(tmpInd));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var itmNum = this.getSelectedIndex();
var newItm = (itmNum + incr);
if ((itmNum < this.topDisplayed) || (itmNum >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(itmNum);
}
if ((newItm >= (this.topDisplayed + this.numDisplayed)) || (newItm < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(newItm - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("enabled");
i++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("unfocused");
i++;
}
};
#endinitclip
Instance of Symbol 125 MovieClip [DataProviderSymbol] in Symbol 126 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 40 MovieClip [FUIComponentSymbol] in Symbol 126 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 127 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 6
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
Object.registerClass("FScrollSelectListSymbol", FScrollSelectListClass);
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var pos = this.getScrollPosition();
super.setSize(w, h);
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(pos);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var pos = scrollBar.getScrollPosition();
this.topDisplayed = pos;
if (this.lastPosition != pos) {
this.updateControl();
}
this.lastPosition = pos;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
super.releaseHandler();
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var i = 0;
while (i < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[i])) {
this.moveSelBy(this.keyIncrs[i]);
return(undefined);
}
i++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var tmpCode = Key.getAscii();
if ((tmpCode >= 33) && (tmpCode <= 126)) {
this.findString(String.fromCharCode(tmpCode));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
var itemNum = this.getSelectedIndex();
var jump = 0;
var i = (itemNum + 1);
while (i != itemNum) {
var itmStr = this.getItemAt(i).label.substring(0, str.length);
if ((str == itmStr) || (str.toUpperCase() == itmStr.toUpperCase())) {
var jump = (i - itemNum);
break;
}
if (i >= (this.getLength() - 1)) {
i = -1;
}
i++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
};
#endinitclip
Instance of Symbol 126 MovieClip [FSelectableListSymbol] in Symbol 127 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 122 MovieClip [FScrollBarSymbol] in Symbol 127 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 129 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 129 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 129 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 130 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 7
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
Object.registerClass("FSelectableItemSymbol", FSelectableItemClass);
FSelectableItemClass.prototype.init = function () {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.highlighted = false;
};
FSelectableItemClass.prototype.drawLabel = function (itmObj, selected) {
var tmpLabel = "";
if (itmObj.label != undefined) {
tmpLabel = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var i in itmObj) {
if (i != "__ID__") {
tmpLabel = (itmObj[i] + ", ") + tmpLabel;
}
}
tmpLabel = tmpLabel.substring(0, tmpLabel.length - 2);
} else {
tmpLabel = itmObj;
}
if (this.fLabel_mc.labelField.text != tmpLabel) {
this.fLabel_mc.setLabel(tmpLabel);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.drawLabel(itmObj);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
this.width = width;
this.attachMovie("FHighlightSymbol", "highlight_mc", -16000);
this.highlight_mc._width = width;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.fLabel_mc.setSize(this.width - 2);
this.fLabel_mc.labelField.selectable = false;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 131 MovieClip [FListItemSymbol] Frame 1
#initclip 8
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FListItemSymbol", FListItemClass);
#endinitclip
Instance of Symbol 130 MovieClip [FSelectableItemSymbol] in Symbol 131 MovieClip [FListItemSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 11 MovieClip [FLabelSymbol] in Symbol 131 MovieClip [FListItemSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 132 MovieClip [FListBoxSymbol] Frame 1
#initclip 9
function FListBoxClass() {
this.itemSymbol = "FListItemSymbol";
this.init();
this.permaScrollBar = true;
var i = 0;
while (i < this.labels.length) {
this.addItem(this.labels[i], this.data[i]);
i++;
}
this.mcCount = 2;
this.boundingBox_mc.gotoAndStop(1);
this.width = (this._xscale * this.boundingBox_mc._width) / 100;
this.height = (this._yscale * this.boundingBox_mc._height) / 100;
this._yscale = (this._xscale = 100);
this.setSize(this.width, this.height);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var tmpArray = new Array();
for (var i in this.selected) {
tmpArray.push(this.selected[i]);
}
return(((tmpArray.length > 0) ? (tmpArray) : undefined));
};
FListBoxClass.prototype.getSelectedItems = function () {
var indices = this.getSelectedIndices();
var tmpArray = new Array();
var i = 0;
while (i < indices.length) {
tmpArray.push(this.getItemAt(indices[i]));
i++;
}
return(((tmpArray.length > 0) ? (tmpArray) : undefined));
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
this.clearSelected();
var i = 0;
while (i < indexArray.length) {
this.selectItem(indexArray[i], true);
i++;
}
this.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var hgt = ((count * (this.itmHgt - 2)) + 2);
this.setSize(this.width, hgt);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
if (!this.enable) {
return(undefined);
}
w = Math.max(w, 20);
h = Math.max(h, 40);
this.container_mc.removeMovieClip();
this.mcCount++;
this.createEmptyMovieClip("container_mc" + this.mcCount, this.mcCount);
this.container_mc = this["container_mc" + this.mcCount];
this.measureItmHgt();
this.numDisplayed = Math.floor(h / (this.itmHgt - 2));
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
if (this.isAKludge) {
var index = (this.topDisplayed + itemNum);
if (this.getItemAt(index) == undefined) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
if (((!this.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(index), this.isSelected(index));
} else if (Key.isDown(16) && (this.selectMultiple)) {
if (this.lastSelected == -1) {
this.lastSelected = index;
}
var incr = ((this.lastSelected < index) ? 1 : -1);
this.clearSelected();
var i = this.lastSelected;
while (i != index) {
this.selectItem(i, true);
if ((i >= this.topDisplayed) && (i < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (i - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(i), this.isSelected(i));
}
i = i + incr;
}
this.selectItem(index, true);
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), this.isSelected(index));
} else if (key.isDown(17)) {
var selectedFlag = this.isSelected(index);
if (!this.selectMultiple) {
this.clearSelected();
}
if (!((!this.selectMultiple) && (selectedFlag))) {
this.selectItem(index, !selectedFlag);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + itemNum), this.isSelected(this.topDisplayed + itemNum));
}
this.lastSelected = index;
}
} else {
this.isAKludge = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
stop();
Instance of Symbol 127 MovieClip [FScrollSelectListSymbol] in Symbol 132 MovieClip [FListBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 134 MovieClip [instant] Frame 1
#initclip 10
function FCInstantMessageClass() {
this.init();
}
FCInstantMessageClass.prototype = new MovieClip();
Object.registerClass("instant", FCInstantMessageClass);
FCInstantMessageClass.prototype.init = function () {
this.name = ((this._name == null) ? "_DEFAULT_" : (this._name));
this.prefix = ("FCInstantMessage." + this.name) + ".";
};
FCInstantMessageClass.prototype.onUnload = function () {
this.close();
};
FCInstantMessageClass.prototype.connect = function (nc) {
this.nc = nc;
if (this.nc.FCInstantMessage == null) {
this.nc.FCInstantMessage = {};
}
this.nc.FCInstantMessage[this.name] = this;
user_so = SharedObject.getRemote("requestMessage", this.nc.uri, false);
user_so.owner = this;
user_so.onSync = function (list) {
_root.clickedUserName = user_so.data.request;
_root.callername = _root.clickedUserName[1];
if (_root.clickedUserName[0] == username) {
if (_root.clickedUserName[1] != _root.clickedUserName[0]) {
if (_root.clickedUserName[2] == "axe") {
_root.notice.theName = _root.clickedUserName[1] + " has requested a game...";
_root.notice.buddy = _root.clickedUserName[1];
_root.notice.gotoAndPlay("rec");
} else if (_root.clickedUserName[3] == "accept") {
_root.notice.theName = _root.clickedUserName[1] + " has accepted your challenge!!";
_root.buddy = _root.clickedUserName[1];
_root.notice.gotoAndPlay("rejected");
} else {
_root.notice.theName = _root.clickedUserName[1] + " has rejected your challenge!!";
_root.notice.gotoAndStop("rejected");
}
}
}
};
user_so.connect(this.nc);
starter_so = SharedObject.getRemote("starterMessage", this.nc.uri, false);
starter_so.owner = this;
starter_so.onSync = function (list) {
trace("sync-ing");
_root.starterInfo = starter_so.data.request;
_root.callername = _root.starterInfo[1];
if (_root.starterInfo[3] != "loader") {
trace("TRING TRING");
if (_root.starterInfo[0] == username) {
trace("trang trang");
if (_root.waiting == 1) {
trace("starting GAME");
_root.gotoAndPlay("loader2");
}
}
} else {
trace("loader shite");
_root.lh2.loader._width = _root.starterInfo[2];
}
};
starter_so.connect(this.nc);
};
FCInstantMessageClass.prototype.sendRequest = function (nameRequest) {
trace("sending packet: " + nameRequest);
for (i in nameRequest) {
trace((("i " + i) + " : ") + nameRequest[i]);
}
privatePacket = new Array();
privatePacket[0] = nameRequest.label;
privatePacket[1] = username;
privatePacket[2] = "axe";
user_so.data.request = privatePacket;
if (privatePacket[0] != privatePacket[1]) {
_root.notice.theName = ("Waiting for " + nameRequest.label) + " to accept...";
_root.notice.gotoAndPlay("sent");
}
};
FCInstantMessageClass.prototype.sendAccReq = function (nameRequest, accReq) {
trace("replying: sendAccReq: " + username);
privatePacket = new Array();
privatePacket[0] = nameRequest;
privatePacket[1] = username;
privatePacket[2] = "reply";
privatePacket[3] = accReq;
user_so.data.request = privatePacket;
};
FCInstantMessageClass.prototype.sendStart = function (myplayer) {
trace("replying: sendStart");
privatePacket = new Array();
privatePacket[0] = _root.buddy;
privatePacket[1] = username;
privatePacket[2] = myplayer;
starter_so.data.request = privatePacket;
};
FCInstantMessageClass.prototype.updateLoader = function (total) {
trace("sending a loader");
privatePacket = new Array();
privatePacket[0] = _root.buddy;
privatePacket[1] = username;
privatePacket[2] = total;
privatePacket[3] = "loader";
starter_so.data.request = privatePacket;
};
FCInstantMessageClass.prototype.close = function () {
var fullName = ("FCInstantMessage." + this.name);
this.nc.call(this.prefix + "close", null);
user_so.owner = null;
delete user_so.owner;
delete user_so.onSync;
user_so.close();
user_so = null;
this.nc.FCInstantMessage[this.name] = null;
this.nc = null;
};
#endinitclip
Symbol 166 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 167 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 168 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 169 MovieClip [FCUpArrow] Frame 1
stop();
Symbol 169 MovieClip [FCUpArrow] Frame 2
stop();
Symbol 169 MovieClip [FCUpArrow] Frame 3
stop();
Symbol 171 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 173 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 174 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 176 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 177 MovieClip [FCScrollThumb] Frame 1
stop();
Symbol 178 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 179 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 180 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 181 MovieClip [FCDownArrow] Frame 1
stop();
Symbol 181 MovieClip [FCDownArrow] Frame 2
stop();
Symbol 181 MovieClip [FCDownArrow] Frame 3
stop();
Symbol 192 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 200 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 209 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 220 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 221 MovieClip [FCfpb_states] Frame 1
stop();
Symbol 221 MovieClip [FCfpb_states] Frame 2
stop();
Symbol 221 MovieClip [FCfpb_states] Frame 3
stop();
Symbol 221 MovieClip [FCfpb_states] Frame 4
stop();
Symbol 222 MovieClip [FCFListItemSymbol] Frame 1
#initclip 24
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FCFListItemSymbol", FListItemClass);
#endinitclip
Symbol 223 MovieClip [FCFSelectableItemSymbol] Frame 1
#initclip 12
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var LOWEST_DEPTH = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FCFHighlightSymbol", "highlight_mc", LOWEST_DEPTH);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FCFLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var tmpLabel = "";
if (itmObj.label != undefined) {
tmpLabel = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var i in itmObj) {
if (i != "__ID__") {
tmpLabel = (itmObj[i] + ", ") + tmpLabel;
}
}
tmpLabel = tmpLabel.substring(0, tmpLabel.length - 2);
} else {
tmpLabel = itmObj;
}
if (this.fLabel_mc.labelField.text != tmpLabel) {
this.fLabel_mc.setLabel(tmpLabel);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 224 MovieClip [FCDataProviderSymbol] Frame 1
#initclip 13
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var eventObj = {event:"updateAll"};
viewRef.modelChanged(eventObj);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var eventObj = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var tmpItm = this.items[index];
this.items.splice(index, 1);
var eventObj = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var tmpID = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = tmpID;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var i = 0;
while (i < this.views.length) {
this.views[i].modelChanged(eventObj);
i++;
}
};
#endinitclip
Symbol 225 MovieClip [FCFSelectableListSymbol] Frame 1
#initclip 14
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var item = this.getItemAt(index);
this.dataProvider.removeItemAt(index);
return(item);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var uniqueID in this.selected) {
var tmpInd = this.selected[uniqueID].sIndex;
if (tmpInd != undefined) {
return(tmpInd);
}
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var item = this.getSelectedItem();
return(((item.data == undefined) ? (item.label) : (item.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var i = 0;
while (i < obj.length) {
var value = ((typeof(obj[i]) == "string") ? ({label:obj[i]}) : (obj[i]));
this.dataProvider.addItem(value);
i++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var limit = Math.min(this.numDisplayed, this.getLength());
var i = 0;
while (i < limit) {
this.container_mc[("fListItem" + i) + "_mc"].setEnabled(this.enable);
i++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + i), this.isSelected(this.topDisplayed + i));
i++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var i = 0;
while (i < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + i) + "_mc", 10 + i, {controller:this, itemNum:i});
var item_mc = this.container_mc[("fListItem" + i) + "_mc"];
var offset = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
item_mc.setSize(this.width - offset, this.itmHgt);
item_mc._y = (this.itmHgt - 2) * i;
i++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var i in this.selected) {
if ((this.selected[i].sIndex != undefined) && (this.selected[i].sIndex >= firstRow)) {
this.selected[i].sIndex = this.selected[i].sIndex + ((lastRow - firstRow) + 1);
this.setSelectedIndex(this.selected[i].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (this.selectHolder == index) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((index - 1) >= 0)) {
this.setSelectedIndex(index - 1, false);
}
} else if (this.selectionDeleted) {
var len = this.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
this.setSelectedIndex(index - 1, false);
} else {
this.setSelectedIndex(index, false);
}
}
for (var i in this.selected) {
if (this.selected[i].sIndex > firstRow) {
this.selected[i].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (event == "sort") {
var len = this.getLength();
var i = 0;
while (i < len) {
if (this.isSelected(i)) {
var id = this.dataProvider.getItemID(i);
if (id == this.lastSelID) {
this.lastSelected = i;
}
this.selected[String(id)].sIndex = i;
}
i++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var uniqueID in this.selected) {
var index = this.selected[uniqueID].sIndex;
if (((index != undefined) && (this.topDisplayed <= index)) && (index < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var tmpInd = (this.topDisplayed + itemNum);
if (this.getItemAt(tmpInd == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(tmpInd, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(tmpInd), this.isSelected(tmpInd));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var itmNum = this.getSelectedIndex();
var newItm = (itmNum + incr);
newItm = Math.max(0, newItm);
newItm = Math.min(this.getLength() - 1, newItm);
if (newItm == itmNum) {
return(undefined);
}
if ((itmNum < this.topDisplayed) || (itmNum >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(itmNum);
}
if ((newItm >= (this.topDisplayed + this.numDisplayed)) || (newItm < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(newItm - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("enabled");
i++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("unfocused");
i++;
}
};
#endinitclip
Instance of Symbol 223 MovieClip [FCFSelectableItemSymbol] "ItemAsset" in Symbol 225 MovieClip [FCFSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 224 MovieClip [FCDataProviderSymbol] "dPAsset" in Symbol 225 MovieClip [FCFSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 229 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 230 MovieClip [FCFScrollBarSymbol] Frame 1
#initclip 15
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("FCScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbMidTop_mc = this.scrollThumb_mc.mc_sliderMidTop;
this.thumbMidFloat_mc = this.scrollThumb_mc.mc_sliderMidFloat;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 30);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yscale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbMidTop_mc._height = this.thumbMid_mc._height / 2;
this.thumbMidTop_mc._y = this.thumbTop_mc._height;
this.thumbMidFloat_mc._y = this.thumbMidTop_mc._y + this.thumbMidTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var frogSpacing = 20;
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
this.scrollTrack_mc._height = this.scrollTrack_mc._height - frogSpacing;
this.scrollTrack_mc._y = frogSpacing / 2;
if (this.upArrow_mc == undefined) {
this.attachMovie("FCUpArrow", "upArrow_mc", 1);
this.attachMovie("FCDownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FCFScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 231 MovieClip [FCFScrollSelectListSymbol] Frame 1
#initclip 16
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var pos = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(pos);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FCFScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var pos = scrollBar.getScrollPosition();
this.topDisplayed = pos;
if (this.lastPosition != pos) {
this.updateControl();
}
this.lastPosition = pos;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var i = 0;
while (i < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[i])) {
this.moveSelBy(this.keyIncrs[i]);
return(undefined);
}
i++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var tmpCode = Key.getAscii();
if ((tmpCode >= 33) && (tmpCode <= 126)) {
this.findString(String.fromCharCode(tmpCode));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var itemNum = this.getSelectedIndex();
var jump = 0;
var i = (itemNum + 1);
while (i != itemNum) {
var itmStr = this.getItemAt(i).label.substring(0, str.length);
if ((str == itmStr) || (str.toUpperCase() == itmStr.toUpperCase())) {
var jump = (i - itemNum);
break;
}
if (i >= (this.getLength() - 1)) {
i = -1;
}
i++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
};
#endinitclip
Instance of Symbol 225 MovieClip [FCFSelectableListSymbol] "superClassAsset" in Symbol 231 MovieClip [FCFScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 230 MovieClip [FCFScrollBarSymbol] "scrollBarAsset" in Symbol 231 MovieClip [FCFScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Symbol 232 MovieClip [FCFUIComponentSymbol] Frame 1
#initclip 17
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 234 MovieClip [FCFLabelSymbol] Frame 1
#initclip 18
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FCFLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 236 MovieClip [FCFHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 236 MovieClip [FCFHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 236 MovieClip [FCFHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 242 MovieClip [FCFBoundingBox_ListSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 242 MovieClip [FCFBoundingBox_ListSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 246 MovieClip [FCFBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 246 MovieClip [FCFBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 249 MovieClip [FCFPushButtonSymbol] Frame 1
#initclip 19
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FCFPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("FCfpb_states", "fpbState_mc", 1);
this.attachMovie("FCFLabelSymbol", "fLabel_mc", 2);
this.attachMovie("FCfpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
hit._height = ((arguments.length > 1) ? (h) : (hit._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
w = ((w < 6) ? 6 : (w));
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var label = this.fLabel_mc;
var h = this.height;
var w = (this.width - 2);
var b = 1;
this.fLabel_mc.setSize(w - (b * 4));
label._x = b * 3;
label._y = (h / 2) - (label._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || (enable == undefined)) {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.fpbState_mc.gotoAndStop(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = "center")) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 1)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 1)) : undefined);
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var b = 1;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[this.fpbState_mc._currentframe - 1];
var mc = "frame";
var i = 0;
while (i < 6) {
x1 = x1 + ((i % 2) * b);
y1 = y1 + ((i % 2) * b);
x2 = x2 - (((i + 1) % 2) * b);
y2 = y2 - (((i + 1) % 2) * b);
var w = (Math.abs(x1 - x2) + (2 * b));
var h = (Math.abs(y1 - y2) + (2 * b));
this.fpbState_mc[frame][mc + i]._width = w;
this.fpbState_mc[frame][mc + i]._height = h;
this.fpbState_mc[frame][mc + i]._x = x1 - b;
this.fpbState_mc[frame][mc + i]._y = y1 - b;
i++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = ((arguments.length < 2) ? (this._parent) : (obj));
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
this.incrVal = 1;
this.initx = this[mc]._x - (this.getBtnState() * this.incrVal);
this.inity = this[mc]._y - (this.getBtnState() * this.incrVal);
this.togx = this.initx + this.incrVal;
this.togy = this.inity + this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
this.btnState = state;
if (state) {
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this.pressOnce == undefined)) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return(this.master.STATE_SYSTEM_PRESSED);
}
return(this.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
var frogPushStyle = new FStyleFormat();
frogPushStyle.textColor = "0xffffff";
frogPushStyle.addListener(this);
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 258 MovieClip [FCFListBoxSymbol] Frame 1
#initclip 20
function FListBoxClass() {
this.itemSymbol = "FCFListItemSymbol";
this.init();
this.permaScrollBar = true;
var i = 0;
while (i < this.labels.length) {
this.addItem(this.labels[i], this.data[i]);
i++;
}
this.boundingBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = this._height;
this._yscale = (this._xscale = 100);
this.setSize(this.width, this.height);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FCFListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var tmpArray = new Array();
for (var i in this.selected) {
tmpArray.push(this.selected[i].sIndex);
}
return(((tmpArray.length > 0) ? (tmpArray) : undefined));
};
FListBoxClass.prototype.getSelectedItems = function () {
var indices = this.getSelectedIndices();
var tmpArray = new Array();
var i = 0;
while (i < indices.length) {
tmpArray.push(this.getItemAt(indices[i]));
i++;
}
return(((tmpArray.length > 0) ? (tmpArray) : undefined));
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
this.clearSelected();
var i = 0;
while (i < indexArray.length) {
this.selectItem(indexArray[i], true);
i++;
}
this.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var hgt = ((count * (this.itmHgt - 2)) + 2);
this.setSize(this.width, hgt);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
if (!this.enable) {
return(undefined);
}
w = Math.max(w, 20);
h = Math.max(h, 40);
this.container_mc.removeMovieClip();
this.container_mc = this.createEmptyMovieClip("container", 3);
this.measureItmHgt();
this.numDisplayed = Math.floor(h / (this.itmHgt - 2));
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
if (this.clickFilter) {
var index = (this.topDisplayed + itemNum);
if (this.getItemAt(index) == undefined) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
if (((!this.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(index), this.isSelected(index));
} else if (Key.isDown(16) && (this.selectMultiple)) {
if (this.lastSelected == -1) {
this.lastSelected = index;
}
var incr = ((this.lastSelected < index) ? 1 : -1);
this.clearSelected();
var i = this.lastSelected;
while (i != index) {
this.selectItem(i, true);
if ((i >= this.topDisplayed) && (i < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (i - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(i), this.isSelected(i));
}
i = i + incr;
}
this.selectItem(index, true);
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), this.isSelected(index));
} else if (key.isDown(17)) {
var selectedFlag = this.isSelected(index);
if (!this.selectMultiple) {
this.clearSelected();
}
if (!((!this.selectMultiple) && (selectedFlag))) {
this.selectItem(index, !selectedFlag);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + itemNum), this.isSelected(this.topDisplayed + itemNum));
}
this.lastSelected = index;
}
} else {
this.clickFilter = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
var frogStyle = new FStyleFormat();
frogStyle.textColor = "0x000000";
frogStyle.textSelected = "0xff0000";
frogStyle.textDisabled = "0x000000";
frogStyle.selection = "0x8E9F97";
frogStyle.selectionUnfocused = "0xd8feff";
frogStyle.backgroundDisabled = "0xffffff";
frogStyle.addListener(this);
this.deadPreview._visible = false;
Instance of Symbol 231 MovieClip [FCFScrollSelectListSymbol] "superClassAsset" in Symbol 258 MovieClip [FCFListBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 263 MovieClip [FCSimpleConnectSymbol] Frame 1
#initclip 25
function FCSimpleConnectClass() {
this.init();
}
FCSimpleConnectClass.prototype = new MovieClip();
Object.registerClass("FCSimpleConnectSymbol", FCSimpleConnectClass);
FCSimpleConnectClass.prototype.onUnload = function () {
this.close();
};
FCSimpleConnectClass.prototype.init = function () {
this.name = ((this._name == null) ? "_DEFAULT_" : (this._name));
this.prefix = ("FCSimpleConnect." + this.name) + ".";
this.username_txt.onKillFocus = function () {
this._parent.hasFocus = false;
};
this.username_txt.onSetFocus = function () {
this._parent.hasFocus = true;
};
this.enterListener = new Object();
this.enterListener.owner = this;
this.enterListener.onKeyDown = function () {
if (this.owner.hasFocus) {
if (Key.isDown(13)) {
this.owner.loginChange();
} else {
clearInterval(this.owner.intervalID);
this.owner.intervalID = setInterval(this.owner, "checkName", 10);
}
}
};
Key.addListener(this.enterListener);
};
FCSimpleConnectClass.prototype.connect = function (nc) {
this.nc = nc;
if (this.nc.FCSimpleConnect == null) {
this.nc.FCSimpleConnect = {};
}
this.nc.FCSimpleConnect[this.name] = this;
this.nc.call(this.prefix + "connect", null, this.username);
};
FCSimpleConnectClass.prototype.close = function () {
trace("closing me :: bum head");
this.main_nc.close();
this.nc.call(this.prefix + "close", null);
this.nc.FCSimpleConnect[this.name] = null;
this.nc = null;
};
FCSimpleConnectClass.prototype.disconnect = function () {
this.nc.call(this.prefix + "onDisconnect", null);
this.nc.FCSimpleConnect[this.name] = null;
this.nc = null;
};
FCSimpleConnectClass.prototype.serverConnect = function (username, appInstance) {
trace((("server connecting: " + username) + " :: ") + appInstance);
this.close();
var i = 0;
while (i < this.fcComponents.length) {
this._parent[this.fcComponents[i]].close();
i++;
}
this.main_nc.close();
this.main_nc = new NetConnection();
this.main_nc.owner = this;
if (appInstance != null) {
this.appDirectory = this.appDirectory + appInstance;
}
if (username != null) {
this.username = username;
this.changeName_btn._visible = false;
this.inputBg_mc._visible = false;
} else {
this.local_so = SharedObject.getLocal("FCUsername", "/");
if (this.local_so.data.username != null) {
this.username = this.local_so.data.username;
this.changeName_btn.setEnabled(true);
}
}
this.main_nc.connect(this.removeSpaces(this.appDirectory), this.username, password);
trace("THIE APP DIRECTORY = " + this.appDirectory);
trace("THE USERNAME = " + this.username);
this.setUsername(this.username);
this.connect(this.main_nc);
var i = 0;
while (i < this.fcComponents.length) {
this._parent[this.fcComponents[i]].setUsername(this.username);
this._parent[this.fcComponents[i]].connect(this.main_nc);
i++;
}
};
FCSimpleConnectClass.prototype.setUsername = function (newName) {
if (newName == null) {
this.username_txt.text = "Your Name";
} else {
this.username = newName;
this.username_txt.text = newName;
}
};
FCSimpleConnectClass.prototype.changedName = function (newName) {
var i = 0;
while (i < this.fcComponents.length) {
this._parent[this.fcComponents[i]].setUsername(newName);
i++;
}
};
FCSimpleConnectClass.prototype.loginChange = function () {
if (this.username_txt.text.length == 0) {
this.changeName_btn.setEnabled(false);
} else if (this.username != this.username_txt.text) {
this.username = this.username_txt.text;
this.main_nc.call(this.prefix + "changeName", null, this.username);
this.local_so.data.username = this.username;
this.local_so.flush();
}
};
FCSimpleConnectClass.prototype.checkName = function () {
clearInterval(this.intervalID);
var newName = this.username_txt.text;
var btn = this.changeName_btn;
if (newName.length == 0) {
btn.setEnabled(false);
} else if (newName.charAt(0) == " ") {
btn.setEnabled(false);
} else if (btn.enabled == false) {
btn.setEnabled(true);
}
};
FCSimpleConnectClass.prototype.removeSpaces = function (str) {
var i = 0;
while (str.charAt(i) == " ") {
i++;
}
str = str.substr(i);
i = length(str) - 1;
while (str.charAt(i) == " ") {
i--;
}
str = str.substr(0, i + 1);
return(str);
};
FCSimpleConnectClass.prototype.setSize = function (newWidth, newHeight) {
this._xscale = 100;
this._yscale = 100;
this.username_txt._width = newWidth - 73;
this.changeName_btn._x = newWidth - this.changeName_btn._width;
this.inputBg_mc._width = this.username_txt._width;
};
#endinitclip
this.setSize(this._width, this._height);
this.serverConnect(_parent.username, _parent.appInstance);
this.main_nc.call(this.prefix + "changeName", null, this.username);
Instance of Symbol 249 MovieClip [FCFPushButtonSymbol] "changeName_btn" in Symbol 263 MovieClip [FCSimpleConnectSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
label = "Login";
clickHandler = "loginChange";
}
Symbol 265 MovieClip [FCPeopleListSymbol] Frame 1
#initclip 22
function FCPeopleListClass() {
this.init();
}
FCPeopleListClass.prototype = new MovieClip();
Object.registerClass("FCPeopleListSymbol", FCPeopleListClass);
FCPeopleListClass.prototype.init = function () {
this.name = ((this._name == null) ? "_DEFAULT_" : (this._name));
this.prefix = ("FCPeopleList." + this.name) + ".";
};
FCPeopleListClass.prototype.onUnload = function () {
this.close();
};
FCPeopleListClass.prototype.connect = function (nc) {
this.nc = nc;
if (this.nc.FCPeopleList == null) {
this.nc.FCPeopleList = {};
}
this.nc.FCPeopleList[this.name] = this;
this.so = SharedObject.getRemote(this.prefix + "users", this.nc.uri, false);
this.so.owner = this;
this.so.onSync = function (list) {
this.owner.people_lb.removeAll();
var totalUsers = 0;
var totalLurkers = 0;
for (var i in this.data) {
if (this.data[i] == " fc_lurker") {
totalLurkers++;
} else if (this.data[i] != null) {
totalUsers++;
this.owner.people_lb.addItem(this.data[i]);
}
}
this.owner.lurkers = totalLurkers;
this.owner.users = totalUsers;
this.owner.people_lb.sortItemsBy("label", "ASC");
};
this.so.connect(this.nc);
this.nc.call(this.prefix + "connect", null);
};
FCPeopleListClass.prototype.close = function () {
var fullName = ("FCPeopleList." + this.name);
this.nc.call(this.prefix + "close", null);
this.so.owner = null;
delete this.so.owner;
delete this.so.onSync;
this.so.close();
this.so = null;
this.nc.FCPeopleList[this.name] = null;
this.nc = null;
};
FCPeopleListClass.prototype.setUsername = function (newName) {
this.username = newName;
this.nc.call(this.prefix + "changeName", null);
};
FCPeopleListClass.prototype.setSize = function (newWidth, newHeight) {
this._xscale = 100;
this._yscale = 100;
this.people_lb.setSize(newWidth, newHeight);
};
#endinitclip
function double() {
if (Number(getTimer() - lastClick) < 500) {
if (tempClick == this.people_lb.getSelectedItem().data.id) {
if (people_lb.getSelectedItem().label != _parent.username) {
trace("DOUBLE CLICKED!!");
_root.fc_instant.sendRequest(people_lb.getSelectedItem());
}
}
} else {
lastClick = getTimer();
tempClick = people_lb.getSelectedItem().data.id;
}
}
var oneGridFormat = new FStyleFormat({textDisabled:0, textColor:65280, textSelected:16711680, textFont:"Verdana", textSize:12, embedFonts:1});
oneGridFormat.textColor = 0;
oneGridFormat.textDisabled = 0;
oneGridFormat.applyChanges();
oneGridFormat.addListener(people_lb);
this.setSize(this._width, this._height);
Instance of Symbol 258 MovieClip [FCFListBoxSymbol] "people_lb" in Symbol 265 MovieClip [FCPeopleListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
selectMultiple = false;
changeHandler = "double";
}
Symbol 282 MovieClip Frame 1
stop();
Symbol 283 MovieClip [FCConnectionLightSymbol] Frame 1
#initclip 21
function FCConnectionLightClass() {
this.init();
}
FCConnectionLightClass.prototype = new MovieClip();
Object.registerClass("FCConnectionLightSymbol", FCConnectionLightClass);
FCConnectionLightClass.prototype.init = function () {
this.name = this._name;
if ((this.name == null) || (this.name == "")) {
this.name = "_DEFAULT_";
}
this.prefix = ("FCConnectionLight." + this.name) + ".";
this.light_mc.useHandCursor = true;
this.light_mc.orig_xscale = this.light_mc._xscale;
this.light_mc.orig_yscale = this.light_mc._yscale;
this.light_mc.onPress = function () {
this._xscale = this._xscale * 0.95;
this._yscale = this._yscale * 0.95;
};
this.light_mc.onRelease = function () {
if (this._parent.details_mc._visible) {
this._parent.collapse();
} else {
this._parent.expand();
}
this._xscale = this.orig_xscale;
this._yscale = this.orig_yscale;
};
this.light_mc.onReleaseOutside = function () {
this._xscale = this.orig_xscale;
this._yscale = this.orig_yscale;
};
};
FCConnectionLightClass.prototype.onUnload = function () {
this.close();
};
FCConnectionLightClass.prototype.connect = function (nc) {
this.nc = nc;
if (this.nc.FCConnectionLight == null) {
this.nc.FCConnectionLight = {};
}
this.nc.FCConnectionLight[this.name] = this;
this.nc.call(this.prefix + "connect", null, this.interval * 1000);
if (this.nc.isConnected) {
this.showGreen();
}
this.checkInterval = setInterval(this, "onCheckInterval", 500);
};
FCConnectionLightClass.prototype.close = function () {
clearInterval(this.checkInterval);
var fullName = ("FCConnectionLight." + this.name);
this.nc.call(this.prefix + "close", null);
this.nc.FCConnectionLight[this.name] = null;
this.nc = null;
this.showGrey();
this.details_mc.latency_txt.text = (this.details_mc.bwup_txt.text = (this.details_mc.bwdown_txt.text = "--"));
};
FCConnectionLightClass.prototype.onCheckInterval = function () {
if (this.nc != null) {
if ((!this.isGrey()) && (!this.nc.isConnected)) {
this.showRed();
this.details_mc.latency_txt.text = (this.details_mc.bwup_txt.text = (this.details_mc.bwdown_txt.text = "--"));
} else if ((!this.isGreen()) && (!this.isYellow())) {
this.showGreen();
}
}
};
FCConnectionLightClass.prototype.expand = function () {
var name = ("fc_details_" + this.name);
_root.attachMovie("FCDetailsSymbol", name, this.popUpLevel);
this.details_mc = _root[name];
this.details_mc._visible = false;
var p = {x:this.light_mc._x, y:this.light_mc._y};
this.localToGlobal(p);
this.details_mc._x = p.x + this._width;
this.details_mc._y = p.y + this._height;
if (Math.abs(p.x - 0) > Math.abs(p.x - Stage.width)) {
this.details_mc._x = p.x - this.details_mc._width;
}
if (Math.abs(p.y - 0) > Math.abs(p.y - Stage.height)) {
this.details_mc._y = p.y - this.details_mc._height;
}
this.details_mc._visible = true;
};
FCConnectionLightClass.prototype.collapse = function () {
this.details_mc.removeMovieClip();
this.details_mc = null;
};
FCConnectionLightClass.prototype.isGrey = function () {
return(this.light_mc._currentFrame == 1);
};
FCConnectionLightClass.prototype.isGreen = function () {
return(this.light_mc._currentFrame == 2);
};
FCConnectionLightClass.prototype.isYellow = function () {
return(this.light_mc._currentFrame == 3);
};
FCConnectionLightClass.prototype.isRed = function () {
return(this.light_mc._currentFrame == 4);
};
FCConnectionLightClass.prototype.showGrey = function () {
this.light_mc.gotoAndStop(1);
};
FCConnectionLightClass.prototype.showGreen = function () {
this.light_mc.gotoAndStop(2);
};
FCConnectionLightClass.prototype.showYellow = function () {
this.light_mc.gotoAndStop(3);
};
FCConnectionLightClass.prototype.showRed = function () {
this.light_mc.gotoAndStop(4);
};
FCConnectionLightClass.prototype.update = function (ping, up, down) {
if (ping > (1000 * this.threshold)) {
this.showYellow();
} else {
this.showGreen();
}
var latency = this.formatTime(ping / 1000);
var upval = this.formatRate(up * 8000);
var dnval = this.formatRate(down * 8000);
if (ping < 1) {
this.details_mc.latency_txt.text = "< 1 msec";
} else {
this.details_mc.latency_txt.text = (latency.value + " ") + latency.unit;
}
this.details_mc.bwup_txt.text = (upval.value + " ") + upval.unit;
this.details_mc.bwdown_txt.text = (dnval.value + " ") + dnval.unit;
};
FCConnectionLightClass.prototype.formatNumber = function (value) {
var result;
if (value < 0.001) {
result = {value:0, exponent:0};
} else if (value < 1) {
result = {value:value * 1000, exponent:-3};
} else if (value < 1000) {
result = {value:value, exponent:0};
} else if (value < 1000000) {
result = {value:value / 1000, exponent:3};
} else if (value < 1000000000) {
result = {value:value / 1000000, exponent:6};
}
if (result.value < 10) {
result.value = Math.round(result.value * 100) / 100;
} else if (result.value < 100) {
result.value = Math.round(result.value * 10) / 10;
} else {
result.value = Math.round(result.value);
}
return(result);
};
FCConnectionLightClass.prototype.formatTime = function (value) {
var fixp = this.formatNumber(value);
if (fixp.exponent == -3) {
fixp.unit = "msec";
} else if (fixp.exponent == 0) {
fixp.unit = "sec";
}
return(fixp);
};
FCConnectionLightClass.prototype.formatRate = function (value) {
var fixp = this.formatNumber(value);
if (fixp.exponent == -3) {
(fixp.value = 0);
(fixp.exponent = 0);
} else if (fixp.exponent == 0) {
fixp.unit = "bit/s";
} else if (fixp.exponent == 3) {
fixp.unit = "kbit/s";
} else if (fixp.exponent == 6) {
fixp.unit = "mbit/s";
}
return(fixp);
};
#endinitclip
stop();
if (_global._popUpLevel == null) {
_global._popUpLevel = 20000;
}
this.popUpLevel = ++_global._popUpLevel;
_global._popUpLevel++;
Symbol 288 Button
on (release) {
sendMessage(this.message_txt.text);
}
Symbol 291 MovieClip [FCChatSymbol] Frame 1
#initclip 23
function FCChatClass() {
this.init();
}
FCChatClass.prototype = new MovieClip();
Object.registerClass("FCChatSymbol", FCChatClass);
FCChatClass.prototype.init = function () {
this.name = ((this._name == null) ? "_DEFAULT_" : (this._name));
this.prefix = ("FCChat." + this.name) + ".";
this.message_txt.onKillFocus = function () {
this._parent.hasFocus = false;
};
trace("setting up keypress");
this.message_txt.onSetFocus = function () {
this._parent.hasFocus = true;
};
_root.enterListener = new Object();
_root.enterListener.owner = this;
_root.enterListener.onKeyDown = function () {
if (this.owner.hasFocus && (Key.isDown(13))) {
this.owner.sendMessage();
}
};
Key.addListener(_root.enterListener);
this.username = null;
};
FCChatClass.prototype.onUnload = function () {
this.close();
};
FCChatClass.prototype.setUsername = function (newName) {
this.username = newName;
this.sendButton._visible = newName != null;
this.message_txt._visible = newName != null;
this.inputBg_mc._visible = newName != null;
};
FCChatClass.prototype.connect = function (nc) {
trace("connecting chat");
this.history_txt.htmlText = "";
this.nc = nc;
if (this.nc.FCChat == null) {
this.nc.FCChat = {};
}
this.nc.FCChat[this.name] = this;
this.so = SharedObject.getRemote(this.prefix + "message", this.nc.uri, false);
this.so.owner = this;
this.so.message = function (mesg) {
this.owner.receiveMessage(mesg);
};
this.so.clearHistory = function (mesg) {
this.owner.receiveHistory([]);
};
this.so.connect(this.nc);
this.nc.call(this.prefix + "connect", null);
};
FCChatClass.prototype.close = function () {
trace("closing chat");
var fullName = ("FCChat." + this.name);
this.nc.call(this.prefix + "close", null);
this.so.owner = null;
delete this.so.owner;
delete this.so.message;
this.so.close();
this.so = null;
this.nc.FCChat[this.name] = null;
this.nc = null;
};
FCChatClass.prototype.clearHistory = function () {
this.nc.call(this.prefix + "clearHistory", null);
};
FCChatClass.prototype.receiveHistory = function (h) {
var history;
var i = 0;
while (i < h.length) {
history = history + h[i];
i++;
}
this.history_txt.htmlText = history;
this.history_txt.scroll = this.history_txt.maxscroll;
};
FCChatClass.prototype.receiveMessage = function (mesg) {
this.history_txt.htmlText = this.history_txt.htmlText + mesg;
this.history_txt.scroll = this.history_txt.maxscroll;
};
FCChatClass.prototype.sendMessage = function (mesg) {
trace("sending message");
this.nc.call(("FCChat." + this.name) + ".sendMessage", null, this.message_txt.text);
this.message_txt.text = "";
};
FCChatClass.prototype.setSize = function (newWidth, newHeight) {
};
#endinitclip
this.sendButton._visible = this.username != null;
this.message_txt._visible = this.username != null;
this.inputBg_mc._visible = this.username != null;
this.setSize(this._width, this._height);
Instance of Symbol 230 MovieClip [FCFScrollBarSymbol] "chat_sb" in Symbol 291 MovieClip [FCChatSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "history_txt";
horizontal = false;
}
Symbol 293 Button
on (release) {
if (_root.playerLogginIn == true) {
gotoAndStop (12);
} else {
((_root.loggedIn == true) ? (gotoAndStop (12)) : (gotoAndStop (8)));
}
}
on (rollOver) {
bouncingBall.gotoAndStop("head2head");
}
on (rollOut) {
bouncingBall.gotoAndStop("off");
}
Symbol 294 Button
on (release) {
gotoAndStop (41);
}
on (rollOver) {
bouncingBall.gotoAndStop("training");
}
on (rollOut) {
bouncingBall.gotoAndStop("off");
}
Symbol 295 Button
on (release) {
_root.offset = 0;
_root.getGlobalTableFL(0, 10);
}
on (rollOver) {
bouncingBall.gotoAndStop("results");
}
on (rollOut) {
bouncingBall.gotoAndStop("off");
}
Symbol 296 Button
on (release) {
_root.MUS = false;
_root.player1type = "HUMAN";
_root.player2type = "CPU";
gotoAndStop (49);
}
on (rollOver) {
bouncingBall.gotoAndStop("1player");
}
on (rollOut) {
bouncingBall.gotoAndStop("off");
}
Symbol 308 MovieClip Frame 6
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 324 Button
on (release) {
gotoAndStop (3);
}
Symbol 326 Button
on (release) {
_root.help.text = "";
if ((username_reg.text != "") && (email_reg.text != "")) {
if (_root.validate_mail(email_reg.text)) {
_root.registerPlayerFL(username_reg.text, email_reg.text);
_root.help.text = "Registering...";
} else {
_root.help.text = "Please Enter a valid email address";
}
}
}
on (rollOver) {
_root.help.text = "Enter a nickname and your email address to register";
}
Symbol 340 Button
on (release) {
_root.help.text = "";
if (email_log.text != "") {
if (_root.validate_mail(email_log.text)) {
_root.loginWithGetDetailsFL(email_log.text);
_root.help.text = "Loggin in...";
_root.myEmail = email_log.text;
_root.loggedIn = true;
} else {
_root.help.text = "Please enter a valid email address";
}
} else {
_root.help.text = "Please enter a valid email address to login";
}
}
on (rollOver) {
_root.help.text = "If you have played before enter your email address to join the forums";
}
Symbol 412 Button
on (release) {
trace(buddy);
_root.fc_instant.sendAccReq(buddy, "decline");
gotoAndStop (1);
}
Symbol 416 Button
on (release) {
if (accepted != 1) {
accepted = 1;
_root.opener = 1;
_root.fc_instant.sendAccReq(buddy, "accept");
waitAccept = setInterval(wA, 3000);
}
}
Symbol 418 MovieClip Frame 1
stop();
Symbol 418 MovieClip Frame 6
stop();
Symbol 418 MovieClip Frame 16
function wA() {
_parent.simpleconnect.close();
if (_root.opener == 1) {
_root.opener++;
_root.challengeInstance = _root.clickedUserName[0];
_root.START_FLASHCOM_CONNECT();
_parent.gotoAndStop("p2select");
}
}
stop();
Symbol 418 MovieClip Frame 43
stop();
_parent.simpleconnect.close();
_root.challengeInstance = _root.username;
_root.START_FLASHCOM_CONNECT();
_parent.gotoAndStop("p1select");
Symbol 426 Button
on (release) {
gotoAndStop (3);
}
Symbol 464 MovieClip Frame 1
stop();
Symbol 466 Button
on (release) {
_root.player1Start();
}
Symbol 469 MovieClip Frame 7
stop();
Symbol 470 Button
on (release) {
_root.START_PLAYER1_SCROLL(16);
}
Symbol 471 Button
on (release) {
_root.START_PLAYER1_SCROLL(15);
}
Symbol 472 Button
on (release) {
_root.START_PLAYER1_SCROLL(14);
}
Symbol 473 Button
on (release) {
_root.START_PLAYER1_SCROLL(13);
}
Symbol 474 Button
on (release) {
_root.START_PLAYER1_SCROLL(12);
}
Symbol 475 Button
on (release) {
_root.START_PLAYER1_SCROLL(11);
}
Symbol 476 Button
on (release) {
_root.START_PLAYER1_SCROLL(10);
}
Symbol 477 Button
on (release) {
_root.START_PLAYER1_SCROLL(9);
}
Symbol 478 Button
on (release) {
_root.START_PLAYER1_SCROLL(8);
}
Symbol 479 Button
on (release) {
_root.START_PLAYER1_SCROLL(7);
}
Symbol 480 Button
on (release) {
_root.START_PLAYER1_SCROLL(6);
}
Symbol 481 Button
on (release) {
_root.START_PLAYER1_SCROLL(5);
}
Symbol 482 Button
on (release) {
_root.START_PLAYER1_SCROLL(4);
}
Symbol 483 Button
on (release) {
_root.START_PLAYER1_SCROLL(3);
}
Symbol 484 Button
on (release) {
_root.START_PLAYER1_SCROLL(2);
}
Symbol 485 Button
on (release) {
_root.START_PLAYER1_SCROLL(1);
}
Symbol 538 MovieClip Frame 1
Symbol 571 MovieClip Frame 1
stop();
Instance of Symbol 571 MovieClip "player_head" in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 589 MovieClip Frame 1
stop();
Instance of Symbol 589 MovieClip "player_arm" in Symbol 590 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 607 MovieClip Frame 1
stop();
Instance of Symbol 607 MovieClip "player_body" in Symbol 608 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 624 MovieClip Frame 1
stop();
Instance of Symbol 624 MovieClip "player_shorts" in Symbol 625 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 642 MovieClip Frame 1
stop();
Instance of Symbol 642 MovieClip "leg" in Symbol 643 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Instance of Symbol 642 MovieClip "playerleg" in Symbol 644 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 645 MovieClip Frame 1
function playerCharGFX(char) {
head.player_head.gotoAndStop(char);
torso.player_body.gotoAndStop(char);
arm.player_arm.gotoAndStop(char);
shorts.player_shorts.gotoAndStop(char);
legFront.leg.gotoAndStop(char);
legBack.leg.gotoAndStop(char);
}
stop();
Symbol 645 MovieClip Frame 4
hair.bl1.gotoAndPlay(8);
hair.bl2.gotoAndPlay(8);
hair.bl3.gotoAndPlay(8);
hair.bl4.gotoAndPlay(8);
hair.bl5.gotoAndPlay(8);
hair.bl6.gotoAndPlay(8);
hair.bl7.gotoAndPlay(8);
hair.bl8.gotoAndPlay(8);
hair.bl9.gotoAndPlay(8);
hair.br1.gotoAndPlay(8);
hair.br2.gotoAndPlay(8);
hair.br3.gotoAndPlay(8);
hair.br4.gotoAndPlay(8);
hair.br5.gotoAndPlay(8);
hair.br6.gotoAndPlay(8);
hair.br7.gotoAndPlay(8);
hair.br8.gotoAndPlay(8);
hair.br9.gotoAndPlay(8);
Symbol 645 MovieClip Frame 12
gotoAndStop (1);
Symbol 645 MovieClip Frame 14
play();
Symbol 645 MovieClip Frame 32
gotoAndStop (1);
Symbol 645 MovieClip Frame 44
play();
Symbol 645 MovieClip Frame 62
gotoAndStop (1);
Symbol 650 Button
on (release) {
_root.soundOn = 1;
gotoAndStop (2);
}
Symbol 653 Button
on (release) {
_root.soundOn = 0;
gotoAndStop (1);
}
Symbol 654 MovieClip Frame 1
stop();
Symbol 654 MovieClip Frame 2
stop();
Symbol 661 MovieClip Frame 1
stop();
Symbol 661 MovieClip Frame 29
stop();
Symbol 664 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 21
stop();
Symbol 667 MovieClip Frame 1
stop();
Symbol 667 MovieClip Frame 10
stop();
Symbol 670 MovieClip Frame 1
stop();
Symbol 670 MovieClip Frame 36
stop();
Symbol 671 Button
on (release) {
_root.player2Start();
}
Symbol 672 Button
on (release) {
_root.START_PLAYER2_SCROLL(16);
}
Symbol 673 Button
on (release) {
_root.START_PLAYER2_SCROLL(15);
}
Symbol 674 Button
on (release) {
_root.START_PLAYER2_SCROLL(14);
}
Symbol 675 Button
on (release) {
_root.START_PLAYER2_SCROLL(13);
}
Symbol 676 Button
on (release) {
_root.START_PLAYER2_SCROLL(12);
}
Symbol 677 Button
on (release) {
_root.START_PLAYER2_SCROLL(11);
}
Symbol 678 Button
on (release) {
_root.START_PLAYER2_SCROLL(10);
}
Symbol 679 Button
on (release) {
_root.START_PLAYER2_SCROLL(9);
}
Symbol 680 Button
on (release) {
_root.START_PLAYER2_SCROLL(8);
}
Symbol 681 Button
on (release) {
_root.START_PLAYER2_SCROLL(7);
}
Symbol 682 Button
on (release) {
_root.START_PLAYER2_SCROLL(6);
}
Symbol 683 Button
on (release) {
_root.START_PLAYER2_SCROLL(5);
}
Symbol 684 Button
on (release) {
_root.START_PLAYER2_SCROLL(4);
}
Symbol 685 Button
on (release) {
_root.START_PLAYER2_SCROLL(3);
}
Symbol 686 Button
on (release) {
_root.START_PLAYER2_SCROLL(2);
}
Symbol 687 Button
on (release) {
_root.START_PLAYER2_SCROLL(1);
}
Symbol 708 MovieClip Frame 1
stop();
Symbol 715 Button
on (release) {
((_root.PL == 1) ? (_root.FLASHCOM_SEND_READY(1)) : (_root.FLASHCOM_SEND_READY(2)));
_root.gotoAndPlay("waitingForPlay");
}
Symbol 732 Button
on (release) {
_root.gotoAndPlay("gameInit");
}
Symbol 733 Button
on (release) {
_root.currentRound++;
gotoAndPlay (69);
}
Symbol 734 Button
on (release) {
_root.currentRound = 3;
gotoAndPlay (69);
}
Symbol 735 Button
on (release) {
_root.currentRound = 1;
gotoAndPlay (69);
}
Symbol 736 Button
on (release) {
_root.currentRound = 2;
gotoAndPlay (69);
}
Symbol 741 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 1
Symbol 764 MovieClip Frame 1
stop();
Symbol 764 MovieClip Frame 66
stop();
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 60
stop();
Instance of Symbol 538 MovieClip "team3" in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.inGoal != 2) {
} else {
(this.gotoAndStop(_root.player1teamID));// not popped
}
if (_root.inGoal != 1) {
} else {
(this.gotoAndStop(_root.player2teamID));// not popped
}
}
Instance of Symbol 538 MovieClip "team3" in Symbol 772 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.inGoal != 2) {
} else {
(this.gotoAndStop(_root.player1teamID));// not popped
}
if (_root.inGoal != 1) {
} else {
(this.gotoAndStop(_root.player2teamID));// not popped
}
}
Symbol 772 MovieClip Frame 80
((_root.gameOver == 0) ? (_root.reset()) : (_root.GAME_OVER()));
_parent.gotoAndStop(1);
stop();
Symbol 773 MovieClip Frame 1
stop();
Symbol 773 MovieClip Frame 2
_root.SFXclap.gotoAndPlay(2);
Symbol 778 Button
on (release) {
_root.gotoIntro = true;
}
Symbol 787 MovieClip Frame 1
stop();
Symbol 788 MovieClip Frame 1
stop();
Instance of Symbol 776 MovieClip in Symbol 788 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.gotoIntro = true;
}
Instance of Symbol 787 MovieClip in Symbol 788 MovieClip Frame 27
onClipEvent (load) {
if (_root.player2type == "CPU") {
if (_root.currentRound == 6) {
this.gotoAndStop(2);
}
if (_root.currentRound < 6) {
if (_root.scoreA > _root.scoreB) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
if (_root.player2type == "HUMAN") {
if (_root.PL == 1) {
if (_root.scoreA <= _root.scoreB) {
(this.gotoAndStop(2));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
if (_root.PL == 2) {
if (_root.scoreB <= _root.scoreA) {
(this.gotoAndStop(2));// not popped
} else {
(this.gotoAndStop(1));// not popped
}
}
}
}
Symbol 788 MovieClip Frame 81
stop();
Symbol 803 MovieClip Frame 16
stop();
Symbol 804 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 2
stop();
Symbol 804 MovieClip Frame 3
stop();
Symbol 804 MovieClip Frame 4
_root.gameOver = 1;
Symbol 804 MovieClip Frame 5
stop();
Symbol 805 MovieClip Frame 1
stop();
Symbol 815 MovieClip Frame 1
_root.playerpos[id] = "R";
stop();
Symbol 815 MovieClip Frame 2
play();
Symbol 815 MovieClip Frame 5
if (_root.playOK == 1) {
playerJump.gotoAndPlay("leftBend");
playerJump.hair.br1.gotoAndPlay(2);
playerJump.hair.br2.gotoAndPlay(2);
playerJump.hair.br3.gotoAndPlay(2);
playerJump.hair.br4.gotoAndPlay(2);
playerJump.hair.br5.gotoAndPlay(2);
playerJump.hair.br6.gotoAndPlay(2);
playerJump.hair.br7.gotoAndPlay(2);
playerJump.hair.br8.gotoAndPlay(2);
playerJump.hair.br9.gotoAndPlay(2);
playerJump.hair.bl1.gotoAndPlay(15);
playerJump.hair.bl2.gotoAndPlay(15);
playerJump.hair.bl3.gotoAndPlay(15);
playerJump.hair.bl4.gotoAndPlay(15);
playerJump.hair.bl5.gotoAndPlay(15);
playerJump.hair.bl6.gotoAndPlay(15);
playerJump.hair.bl7.gotoAndPlay(15);
playerJump.hair.bl8.gotoAndPlay(15);
playerJump.hair.bl9.gotoAndPlay(15);
}
_root.playerpos[id] = "M";
stop();
Symbol 815 MovieClip Frame 6
play();
Symbol 815 MovieClip Frame 9
playerJump.gotoAndPlay("leftBend");
playerJump.hair.br1.gotoAndPlay(2);
playerJump.hair.br2.gotoAndPlay(2);
playerJump.hair.br3.gotoAndPlay(2);
playerJump.hair.br4.gotoAndPlay(2);
playerJump.hair.br5.gotoAndPlay(2);
playerJump.hair.br6.gotoAndPlay(2);
playerJump.hair.br7.gotoAndPlay(2);
playerJump.hair.br8.gotoAndPlay(2);
playerJump.hair.br9.gotoAndPlay(2);
playerJump.hair.bl1.gotoAndPlay(15);
playerJump.hair.bl2.gotoAndPlay(15);
playerJump.hair.bl3.gotoAndPlay(15);
playerJump.hair.bl4.gotoAndPlay(15);
playerJump.hair.bl5.gotoAndPlay(15);
playerJump.hair.bl6.gotoAndPlay(15);
playerJump.hair.bl7.gotoAndPlay(15);
playerJump.hair.bl8.gotoAndPlay(15);
playerJump.hair.bl9.gotoAndPlay(15);
_root.playerpos[id] = "L";
stop();
Symbol 815 MovieClip Frame 10
play();
Symbol 815 MovieClip Frame 13
playerJump.gotoAndPlay("RightBend");
playerJump.hair.bl1.gotoAndPlay(2);
playerJump.hair.bl2.gotoAndPlay(2);
playerJump.hair.bl3.gotoAndPlay(2);
playerJump.hair.bl4.gotoAndPlay(2);
playerJump.hair.bl5.gotoAndPlay(2);
playerJump.hair.bl6.gotoAndPlay(2);
playerJump.hair.bl7.gotoAndPlay(2);
playerJump.hair.bl8.gotoAndPlay(2);
playerJump.hair.bl9.gotoAndPlay(2);
playerJump.hair.br1.gotoAndPlay(15);
playerJump.hair.br2.gotoAndPlay(15);
playerJump.hair.br3.gotoAndPlay(15);
playerJump.hair.br4.gotoAndPlay(15);
playerJump.hair.br5.gotoAndPlay(15);
playerJump.hair.br6.gotoAndPlay(15);
playerJump.hair.br7.gotoAndPlay(15);
playerJump.hair.br8.gotoAndPlay(15);
playerJump.hair.br9.gotoAndPlay(15);
_root.playerpos[id] = "M";
stop();
Symbol 815 MovieClip Frame 14
play();
Symbol 815 MovieClip Frame 17
playerJump.gotoAndPlay("RightBend");
playerJump.hair.bl1.gotoAndPlay(2);
playerJump.hair.bl2.gotoAndPlay(2);
playerJump.hair.bl3.gotoAndPlay(2);
playerJump.hair.bl4.gotoAndPlay(2);
playerJump.hair.bl5.gotoAndPlay(2);
playerJump.hair.bl6.gotoAndPlay(2);
playerJump.hair.bl7.gotoAndPlay(2);
playerJump.hair.bl8.gotoAndPlay(2);
playerJump.hair.bl9.gotoAndPlay(2);
playerJump.hair.br1.gotoAndPlay(15);
playerJump.hair.br2.gotoAndPlay(15);
playerJump.hair.br3.gotoAndPlay(15);
playerJump.hair.br4.gotoAndPlay(15);
playerJump.hair.br5.gotoAndPlay(15);
playerJump.hair.br6.gotoAndPlay(15);
playerJump.hair.br7.gotoAndPlay(15);
playerJump.hair.br8.gotoAndPlay(15);
playerJump.hair.br9.gotoAndPlay(15);
_root.playerPos[id] = "R";
stop();
Symbol 817 MovieClip Frame 1
_root.playerpos[id] = "R";
stop();
Symbol 817 MovieClip Frame 2
play();
Symbol 817 MovieClip Frame 5
if (_root.playOK == 1) {
playerJump.gotoAndPlay("leftBend");
playerJump.hair.br1.gotoAndPlay(2);
playerJump.hair.br2.gotoAndPlay(2);
playerJump.hair.br3.gotoAndPlay(2);
playerJump.hair.br4.gotoAndPlay(2);
playerJump.hair.br5.gotoAndPlay(2);
playerJump.hair.br6.gotoAndPlay(2);
playerJump.hair.br7.gotoAndPlay(2);
playerJump.hair.br8.gotoAndPlay(2);
playerJump.hair.br9.gotoAndPlay(2);
playerJump.hair.bl1.gotoAndPlay(15);
playerJump.hair.bl2.gotoAndPlay(15);
playerJump.hair.bl3.gotoAndPlay(15);
playerJump.hair.bl4.gotoAndPlay(15);
playerJump.hair.bl5.gotoAndPlay(15);
playerJump.hair.bl6.gotoAndPlay(15);
playerJump.hair.bl7.gotoAndPlay(15);
playerJump.hair.bl8.gotoAndPlay(15);
playerJump.hair.bl9.gotoAndPlay(15);
}
_root.playerpos[id] = "M";
stop();
Symbol 817 MovieClip Frame 6
play();
Symbol 817 MovieClip Frame 9
playerJump.gotoAndPlay("leftBend");
playerJump.hair.br1.gotoAndPlay(2);
playerJump.hair.br2.gotoAndPlay(2);
playerJump.hair.br3.gotoAndPlay(2);
playerJump.hair.br4.gotoAndPlay(2);
playerJump.hair.br5.gotoAndPlay(2);
playerJump.hair.br6.gotoAndPlay(2);
playerJump.hair.br7.gotoAndPlay(2);
playerJump.hair.br8.gotoAndPlay(2);
playerJump.hair.br9.gotoAndPlay(2);
playerJump.hair.bl1.gotoAndPlay(15);
playerJump.hair.bl2.gotoAndPlay(15);
playerJump.hair.bl3.gotoAndPlay(15);
playerJump.hair.bl4.gotoAndPlay(15);
playerJump.hair.bl5.gotoAndPlay(15);
playerJump.hair.bl6.gotoAndPlay(15);
playerJump.hair.bl7.gotoAndPlay(15);
playerJump.hair.bl8.gotoAndPlay(15);
playerJump.hair.bl9.gotoAndPlay(15);
_root.playerpos[id] = "L";
stop();
Symbol 817 MovieClip Frame 10
play();
Symbol 817 MovieClip Frame 13
playerJump.gotoAndPlay("RightBend");
playerJump.hair.bl1.gotoAndPlay(2);
playerJump.hair.bl2.gotoAndPlay(2);
playerJump.hair.bl3.gotoAndPlay(2);
playerJump.hair.bl4.gotoAndPlay(2);
playerJump.hair.bl5.gotoAndPlay(2);
playerJump.hair.bl6.gotoAndPlay(2);
playerJump.hair.bl7.gotoAndPlay(2);
playerJump.hair.bl8.gotoAndPlay(2);
playerJump.hair.bl9.gotoAndPlay(2);
playerJump.hair.br1.gotoAndPlay(15);
playerJump.hair.br2.gotoAndPlay(15);
playerJump.hair.br3.gotoAndPlay(15);
playerJump.hair.br4.gotoAndPlay(15);
playerJump.hair.br5.gotoAndPlay(15);
playerJump.hair.br6.gotoAndPlay(15);
playerJump.hair.br7.gotoAndPlay(15);
playerJump.hair.br8.gotoAndPlay(15);
playerJump.hair.br9.gotoAndPlay(15);
_root.playerpos[id] = "M";
stop();
Symbol 817 MovieClip Frame 14
play();
Symbol 817 MovieClip Frame 17
playerJump.gotoAndPlay("RightBend");
playerJump.hair.bl1.gotoAndPlay(2);
playerJump.hair.bl2.gotoAndPlay(2);
playerJump.hair.bl3.gotoAndPlay(2);
playerJump.hair.bl4.gotoAndPlay(2);
playerJump.hair.bl5.gotoAndPlay(2);
playerJump.hair.bl6.gotoAndPlay(2);
playerJump.hair.bl7.gotoAndPlay(2);
playerJump.hair.bl8.gotoAndPlay(2);
playerJump.hair.bl9.gotoAndPlay(2);
playerJump.hair.br1.gotoAndPlay(15);
playerJump.hair.br2.gotoAndPlay(15);
playerJump.hair.br3.gotoAndPlay(15);
playerJump.hair.br4.gotoAndPlay(15);
playerJump.hair.br5.gotoAndPlay(15);
playerJump.hair.br6.gotoAndPlay(15);
playerJump.hair.br7.gotoAndPlay(15);
playerJump.hair.br8.gotoAndPlay(15);
playerJump.hair.br9.gotoAndPlay(15);
_root.playerPos[id] = "R";
stop();
Symbol 819 MovieClip Frame 1
stop();