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) {
var _local1 = ndc;
_local1.setDebug = function (setval) {
this.m_debug = setval;
};
_local1.getDebug = function () {
return(this.m_debug);
};
for (var _local2 in _local1) {
if (typeof(_local1[_local2]) == "object") {
attachNetDebugConfigFunctions(_local1[_local2]);
}
}
}
function getDefaultNetDebugConfig(iscontroller) {
var _local1 = _global;
if (_local1.netDebugConfigSO == undefined) {
var _local2 = "TestMovie_Config_Info";
if (iscontroller) {
_local2 = "Controller_Config_Info";
}
_local1.netDebugConfigSO = SharedObject.getLocal(_local2);
}
if (_local1.netDebugConfigSO.data.config == undefined) {
_local1.netDebugConfigSO.data.config = getRealDefaultNetDebugConfig();
}
_local1.netDebugConfigSO.flush();
return(_local1.netDebugConfigSO.data.config);
}
function getRealDefaultNetDebugConfig() {
var _local1 = new NetDebugConfig();
_local1.m_debug = true;
_local1.client = new NetDebugConfig();
_local1.client.m_debug = true;
_local1.client.trace = true;
_local1.client.recordset = true;
_local1.client.http = true;
_local1.client.rtmp = true;
_local1.realtime_server = new NetDebugConfig();
_local1.realtime_server.m_debug = true;
_local1.realtime_server.trace = true;
_local1.app_server = new NetDebugConfig();
_local1.app_server.m_debug = true;
_local1.app_server.trace = true;
_local1.app_server.error = true;
_local1.app_server.recordset = true;
_local1.app_server.httpheaders = false;
_local1.app_server.amf = false;
_local1.app_server.amfheaders = false;
_local1.app_server.coldfusion = true;
return(_local1);
}
function NetDebugEvent() {
}
function NetDebugErrorEvent(dataobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "NetDebugError";
_local1.Error = dataobj;
}
function NetDebugTraceEvent(traceobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Trace";
_local1.Trace = traceobj;
}
function NetDebugTraceNetServicesEvent(w, s, n, m) {
var _local1 = this;
_local1.init();
_local1.EventType = "NetServicesTrace";
_local1.Trace = m;
_local1.Who = w;
_local1.Severity = s;
_local1.Number = n;
}
function NetDebugNCEvent() {
}
function NetDebugResultEvent(resultobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Result";
_local1.Result = resultobj;
}
function NetDebugStatusEvent(statusobj) {
var _local1 = this;
_local1.init();
_local1.EventType = "Status";
_local1.Status = statusobj;
}
function NetDebugConnectEvent(args) {
var _local1 = this;
var _local2 = args;
_local1.init();
_local1.EventType = "Connect";
_local1.ConnectString = _local2[0];
if (_local2[1] != null) {
_local1.UserName = _local2[1];
}
if (_local2[2] != null) {
_local1.Password = _local2[2];
}
}
function NetDebugCallEvent(args) {
var _local2 = this;
var _local3 = args;
_local2.init();
_local2.EventType = "Call";
_local2.MethodName = _local3[0];
_local2.Parameters = new Array();
var alen = _local3.length;
var _local1 = 2;
while (_local1 < alen) {
_local2.Parameters[_local1 - 2] = _local3[_local1];
_local1++;
}
}
function NetDebugCloseEvent() {
this.init();
this.EventType = "Close";
}
function NetDebugAddHeaderEvent(args) {
var _local1 = this;
var _local2 = args;
_local1.init();
_local1.EventType = "AddHeader";
_local1.HeaderName = _local2[0];
_local1.MustUnderstand = _local2[1];
if (_local2[2] != null) {
_local1.HeaderObject = _local2[2];
}
}
function NetDebugRtmpLogEvent(infoobj) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Trace";
_local1.Source = "Flash Communication Server";
_local1.Info = infoobj;
_local1.Trace = infoobj.description;
}
function NetDebugDuplicateNCDErrorEvent() {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.Message = "NCD_ALREADY_RUNNING";
}
function NetDebugFailedSendErrorEvent(ev) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.OriginalEvent = ev;
_local1.Message = "NCD_FAILED_TO_SEND_EVENT";
}
function NetDebugInfoErrorEvent(infoobj, mes) {
var _local1 = this;
_local1.initDate();
_local1.EventType = "Error";
_local1.Source = "NCD";
_local1.Info = infoobj;
if (mes != null) {
_local1.Message = mes;
}
}
function NetDebugReceiveCallEvent(mName, args) {
var _local1 = this;
_local1.init();
_local1.EventType = "ReceivedCall";
_local1.MethodName = mName;
_local1.Parameters = args;
}
function netDebugProxyConnect() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
var _local3 = _local2[0].substr(0, 4);
if ((_local3 == "http") || (_local3.substr(0, 4) == "rtmp")) {
if (_local2[0].charAt(4) == ":") {
_local1.m_Protocol = _local3;
} else {
_local1.m_Protocol = _local2[0].substr(0, 5);
}
} else {
_local1.m_Protocol = "http";
}
_local1.sendClientEvent(new NetDebugConnectEvent(_local2));
if (_local1.isRealTime()) {
_local1.m_ConnectString = _local2[0];
getNetDebug().sendCommand(new StartRTMPTraceCommand(_local2[0]));
var ret = _local1.realconnect.apply(_local1, _local2);
_local1.realcall("@getClientID", new RTMPClientIDResponse(_local2[0], _local1));
return(ret);
}
return(_local1.realconnect.apply(_local1, _local2));
}
function netDebugProxyCall() {
var _local1 = this;
var _local2 = arguments;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugCallEvent(_local2));
_local1.addNetDebugHeader();
if (_local1.m_Config.app_server) {
_local2[1] = new NetDebugResponseProxy(_local1, _local2[1]);
return(_local1.realcall.apply(_local1, _local2));
}
return(_local1.realcall.apply(_local1, _local2));
}
function netDebugProxyClose() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugCloseEvent());
if (_local1.isRealTime()) {
getNetDebug().sendCommand(new StopRTMPTraceCommand(_local1.m_ConnectString, _local1.m_ClientId));
}
var _local2 = _local1.realclose();
getNetDebug().removeNetConnection(_local1);
return(_local2);
}
function netDebugProxyAddHeader() {
var _local1 = this;
_local1.attachDebug();
_local1.sendClientEvent(new NetDebugAddHeaderEvent(arguments));
return(_local1.realaddHeader.apply(_local1, arguments));
}
function RTMPClientIDResponse(cs, nc) {
this.m_ConnectString = cs;
this.m_NC = nc;
}
function NetDebugResponseProxy(source, original) {
this.m_SourceNC = source;
this.m_OriginalNR = original;
}
function GlobalLocalConnection(iscontroller, receiver, domainname) {
var _local2 = this;
var _local3 = _global;
_local2.maxConnections = 10;
var sToMovie = "_NetDebugLocalToDebugMovie";
var sToController = "_NetDebugLocalToController";
var connectname = null;
if (iscontroller) {
connectname = sToController;
_local2.sendnames = new Array();
_local2.sendnames.push(sToMovie);
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
_local2.sendnames.push(sToMovie + _local1);
_local1++;
}
_local2.maxConnections = 0;
} else {
connectname = sToMovie;
_local2.sendnames = new Array();
_local2.sendnames.push(sToController);
}
_local2.setDomainName(domainname);
if (_local3.g_NetDebugLocalConnection == undefined) {
_local3.g_NetDebugLocalConnection = new LocalConnection();
_local3.g_NetDebugLocalConnection.allowDomain = function () {
return(true);
};
}
if (receiver != null) {
_local3.g_NetDebugLocalConnection.m_Receiver = receiver;
_local3.g_NetDebugLocalConnection.onData = function (dataobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceive(dataobj);
};
_local3.g_NetDebugLocalConnection.onCommand = function (commandobj) {
_global.g_NetDebugLocalConnection.m_Receiver.onReceiveCommand(commandobj);
};
if (!_local3.g_NetDebugLocalConnection.connect(connectname)) {
var connected = false;
var _local1 = 0;
while (_local1 < _local2.maxConnections) {
if (_local3.g_NetDebugLocalConnection.connect(connectname + _local1)) {
connected = true;
break;
}
_local1++;
}
if (!connected) {
if (iscontroller) {
receiver.onReceiveError(new NetDebugDuplicateNCDErrorEvent());
}
}
}
}
}
function LocalCommand() {
}
function UpdateNetDebugConfigCommand(dataobj) {
this.init("updateConfig", dataobj);
}
function GetConfigCommand() {
this.init("getConfig", null);
}
function StartRTMPTraceCommand(cs) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
this.init("startRealTimeTrace", _local1);
}
function AddRTMPClientCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
this.init("addRealTimeClient", _local1);
}
function StopRTMPTraceCommand(cs, cid) {
var _local1 = new Object();
_local1.connectstring = cs;
_local1.url = _root._url;
_local1.clientid = cid;
this.init("stopRealTimeTrace", _local1);
}
function NetDebug() {
var _local1 = this;
_local1.m_ncs = new Array();
_local1.m_Config = getDefaultNetDebugConfig();
_local1.m_glc = new GlobalLocalConnection(false, _local1);
_local1.m_glc.sendCommand(new GetConfigCommand());
_local1.m_NextNewId = 0;
}
function getNetDebug() {
return(_global.netDebugInstance);
}
_global.RsDataProviderClass = function () {
this.init();
};
RsDataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
mx.events.EventDispatcher.initialize(_local1);
};
RsDataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {eventName:"updateAll"};
viewRef.modelChanged(_local1);
};
RsDataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if (_local1 < 0) {
} else {
if (_local1 < _local2.length) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(value) == "object") {
_local2.items[_local1] = value;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var _local3 = {eventName:"addItems", firstItem:_local1, lastItem:_local1};
_local2.updateViews(_local3);
}
};
RsDataProviderClass.prototype.addItem = function (value) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.addItemAt(_local1.length, value);
}
};
RsDataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {eventName:"deleteItems", firstItem:_local1, lastItem:_local1};
_local2.updateViews(_local3);
return(tmpItm);
}
return(undefined);
};
RsDataProviderClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items = new Array();
_local1.updateViews({eventName:"removeItems", firstItem:0, lastItem:_local1.length - 1});
}
};
RsDataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
var _local3 = _local2.getItemID(_local1);
_local2.items[_local1] = itemObj;
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({eventName:"updateItems", firstItem:_local1, lastItem:_local1});
}
};
RsDataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
RsDataProviderClass.prototype.addProperty("length", RsDataProviderClass.prototype.getLength, null);
RsDataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
RsDataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
RsDataProviderClass.prototype.sortItems = function (compareFunc, order) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({eventName:"sort"});
}
};
RsDataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({eventName:"sort", fieldName:fieldName, order:order});
}
};
RsDataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = eventObj;
_local2.type = "modelChanged";
this.dispatchEvent(_local2);
var _local3 = this.views.length;
if (_local3 > 0) {
switch (_local2.eventName) {
case "addItems" :
_local2.event = "addRows";
break;
case "updateItems" :
_local2.event = "updateRows";
break;
case "removeItems" :
_local2.event = "deleteRows";
}
_local2.firstRow = _local2.firstItem;
_local2.lastRow = _local2.lastItem;
var _local1 = 0;
while (_local1 < _local3) {
this.views[_local1].modelChanged(_local2);
_local1++;
}
}
};
_global.RecordSet = function (columnNames) {
var _local1 = this;
if (_local1.mTitles != null) {
_local1.views = new Array();
} else {
_local1.init();
if (_local1.serverinfo == null) {
if (_local1.serverInfo != null) {
_local1.serverinfo = _local1.serverInfo;
}
}
if (_local1.serverinfo == null) {
_local1.mTitles = columnNames;
} else if (_local1.serverinfo.version != 1) {
NetServices.trace("RecordSet", "warning", 100, "Received incompatible RecordSet version from server");
} else {
_local1.mTitles = _local1.serverinfo.columnNames;
_local1.mRecordsAvailable = 0;
_local1.setData(((_local1.serverinfo.cursor == null) ? 0 : (_local1.serverinfo.cursor - 1)), _local1.serverinfo.initialData);
if (_local1.serverinfo.initialData.length != _local1.serverinfo.totalCount) {
_local1.mRecordSetID = _local1.serverinfo.id;
if (_local1.mRecordSetID != null) {
_local1.serviceName = ((_local1.serverinfo.serviceName == null) ? "RecordSet" : (_local1.serverinfo.serviceName));
_local1.mTotalCount = _local1.serverinfo.totalCount;
_local1.mDeliveryMode = "ondemand";
_local1.mAllNotified = false;
_local1.mOutstandingRecordCount = 0;
} else {
NetServices.trace("RecordSet", "warning", 102, "Missing some records, but there's no RecordSet id");
}
}
_local1.serverinfo = null;
}
}
};
RecordSet.prototype = new RsDataProviderClass();
Object.registerClass("RecordSet", RecordSet);
RecordSet.prototype._setParentService = function (service) {
this.gateway_conn = service.nc;
};
RecordSet.prototype.getRecordSetService = function () {
var _local1 = this;
if (_local1.mRecordSetService == null) {
if (_local1.gateway_conn == null) {
_local1.gateway_conn = NetServices.createGatewayConnection();
} else if (_global.netDebugInstance != undefined) {
_local1.gateway_conn = _local1.gateway_conn.clone();
}
if (_global.netDebugInstance != undefined) {
_local1.gateway_conn.setupRecordset();
_local1.gateway_conn.setDebugId("RecordSet " + _local1.mRecordSetID);
}
_local1.mRecordSetService = _local1.gateway_conn.getService(_local1.serviceName, _local1);
if (_local1.mRecordSetService == null) {
NetServices.trace("RecordSet", "warning", 101, "Failed to create RecordSet service");
_local1.mRecordSetService = 0;
}
}
return(_local1.mRecordSetService);
};
RecordSet.prototype.getColumnNames = function () {
return(this.mTitles);
};
RecordSet.prototype.getLength = function () {
var _local1 = this;
if (_local1.mRecordSetID != null) {
return(_local1.mTotalCount);
}
return(_local1.items.length);
};
RecordSet.prototype.addProperty("length", RecordSet.prototype.getLength, null);
RecordSet.prototype.getItemAt = function (index) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.length)) {
return(null);
}
if (_local2.mRecordSetID == null) {
return(_local2.items[_local1]);
}
_local2.requestRecord(_local1);
var _local3 = _local2.items[_local1];
if (_local3 == 1) {
return("in progress");
}
return(_local3);
};
RecordSet.prototype.setField = function (index, fieldName, value) {
var _local1 = index;
var _local2 = this;
if (!_local2.checkLocal()) {
} else if ((_local1 < 0) || (_local1 >= _local2.length)) {
} else {
_local2.items[_local1][fieldName] = value;
_local2.updateViews({eventName:"updateItems", firstItem:_local1, lastItem:_local1});
}
};
RecordSet.prototype.filter = function (filterFunction, context) {
if (!this.checkLocal()) {
} else {
var _local3 = new RecordSet(this.mTitles);
var rcount = this.length;
var _local2 = 0;
while (_local2 < rcount) {
var _local1 = this.getItemAt(_local2);
if (((_local1 != null) && (_local1 != 1)) && (filterFunction(_local1, context))) {
_local3.addItem(_local1);
}
_local2++;
}
return(_local3);
}
return(undefined);
};
RecordSet.prototype.sort = function (compareFunc) {
var _local1 = this;
if (!_local1.checkLocal()) {
} else {
_local1.items.sort(compareFunc);
_local1.updateViews({eventName:"sort"});
}
};
RecordSet.prototype.isLocal = function () {
return(this.mRecordSetID == null);
};
RecordSet.prototype.isFullyPopulated = function () {
return(this.isLocal());
};
RecordSet.prototype.getNumberAvailable = function () {
var _local1 = this;
if (_local1.isLocal()) {
return(_local1.length);
}
return(_local1.mRecordsAvailable);
};
RecordSet.prototype.setDeliveryMode = function (mode, pagesize, numPrefetchPages) {
var _local1 = this;
var _local2 = pagesize;
var _local3 = mode;
_local1.mDeliveryMode = _local3;
_local1.stopFetchAll();
if (_local3 == "ondemand") {
} else {
if (_local2 == null) {
_local2 = _local1.views[0].getRowCount();
if (_local2 == null) {
_local2 = 25;
}
}
if (_local3 == "page") {
if (numPrefetchPages == null) {
numPrefetchPages = 0;
}
_local1.mPageSize = _local2;
_local1.mNumPrefetchPages = numPrefetchPages;
} else if (_local3 == "fetchall") {
_local1.stopFetchAll();
_local1.startFetchAll(_local2);
} else {
NetServices.trace("RecordSet", "warning", 107, "SetDeliveryMode: unknown mode string");
}
}
};
RecordSet.prototype.getRecords_Result = function (info) {
var _local1 = this;
var _local2 = info;
_local1.setData(_local2.Cursor - 1, _local2.Page);
_local1.mOutstandingRecordCount = _local1.mOutstandingRecordCount - _local2.Page.length;
_local1.updateViews({eventName:"updateItems", firstItem:_local2.Cursor - 1, lastItem:((_local2.Cursor - 1) + _local2.Page.length) - 1});
if ((_local1.mRecordsAvailable == _local1.mTotalCount) && (!_local1.mAllNotified)) {
_local1.updateViews({eventName:"allRows"});
_local1.mRecordSetService.release();
_local1.mAllNotified = true;
_local1.mRecordSetID = null;
_local1.mRecordSetService = null;
}
};
RecordSet.prototype.release_Result = function () {
};
RecordSet.prototype.arrayToObject = function (anArray) {
if (this.mTitles == null) {
NetServices.trace("RecordSet", "warning", 105, "getItem: titles are not available");
return(null);
}
var _local3 = new Object();
var alen = anArray.length;
var _local1 = 0;
while (_local1 < alen) {
var _local2 = this.mTitles[_local1];
if (_local2 == null) {
_local2 = ("column" + _local1) + 1;
}
_local3[_local2] = anArray[_local1];
_local1++;
}
return(_local3);
};
RecordSet.prototype.setData = function (start, dataArray) {
var _local1 = this;
var datalen = dataArray.length;
var _local2 = 0;
while (_local2 < datalen) {
var _local3 = _local2 + start;
var rec = _local1.items[_local3];
if ((rec != null) && (rec != 1)) {
NetServices.trace("RecordSet", "warning", 106, "Already got record # " + recordIndex);
} else {
_local1.mRecordsAvailable = _local1.mRecordsAvailable + 1;
}
_local1.items[_local3] = _local1.arrayToObject(dataArray[_local2]);
_local1.items[_local3].__ID__ = _local1.uniqueID++;
_local2++;
}
};
RecordSet.prototype.requestOneRecord = function (index) {
var _local1 = this;
var _local2 = index;
if (_local1.items[_local2] == null) {
_local1.getRecordSetService().getRecords(_local1.mRecordSetID, _local2 + 1, 1);
_local1.mOutstandingRecordCount++;
_local1.items[_local2] = 1;
_local1.updateViews({eventName:"fetchRows", firstItem:_local2, lastItem:_local2});
}
};
RecordSet.prototype.requestRecord = function (index) {
var _local1 = this;
if (_local1.mDeliveryMode != "page") {
_local1.requestOneRecord(index);
} else {
var _local2 = int(index / _local1.mPageSize) * _local1.mPageSize;
var _local3 = (_local2 + (_local1.mPageSize * (_local1.mNumPrefetchPages + 1))) - 1;
_local1.requestRecordRange(_local2, _local3);
}
};
RecordSet.prototype.requestRecordRange = function (index, lastIndex) {
var _local1 = index;
var _local2 = this;
var highestRequested = -1;
if (_local1 < 0) {
_local1 = 0;
}
if (lastIndex >= _local2.length) {
lastIndex = _local2.length - 1;
}
while (_local1 <= lastIndex) {
while ((_local1 <= lastIndex) && (_local2.items[_local1] != null)) {
_local1++;
}
var _local3 = _local1;
while ((_local1 <= lastIndex) && (_local2.items[_local1] == null)) {
_local2.mOutstandingRecordCount++;
_local2.items[_local1] = 1;
_local1++;
}
var last = (_local1 - 1);
if (_local3 <= last) {
_local2.getRecordSetService().getRecords(_local2.mRecordSetID, _local3 + 1, (last - _local3) + 1);
highestRequested = last;
_local2.updateViews({eventName:"fetchRows", firstItem:_local3, lastItem:last});
}
}
return(highestRequested);
};
RecordSet.prototype.startFetchAll = function (pagesize) {
var _local1 = this;
_local1.mDataFetcher.disable();
_local1.mDataFetcher = new RsDataFetcher(_local1, pagesize);
};
RecordSet.prototype.stopFetchAll = function () {
this.mDataFetcher.disable();
this.mDataFetcher = null;
};
RecordSet.prototype.checkLocal = function () {
if (this.isLocal()) {
return(true);
}
NetServices.trace("RecordSet", "warning", 108, "Operation not allowed on partial recordset");
return(false);
};
_global.RsDataFetcher = function (recordSet, increment) {
var _local1 = this;
_local1.mRecordSet = recordSet;
_local1.mRecordSet.addView(_local1);
_local1.mIncrement = increment;
_local1.mNextRecord = 0;
_local1.mEnabled = true;
_local1.doNext();
};
RsDataFetcher.prototype.disable = function () {
var _local1 = this;
_local1.mEnabled = false;
_local1.mRecordSet.removeView(_local1);
};
RsDataFetcher.prototype.doNext = function () {
var _local1 = this;
if (!_local1.mEnabled) {
} else {
do {
if (_local1.mNextRecord >= _local1.mRecordSet.length) {
return;
}
_local1.mHighestRequested = _local1.mRecordSet.requestRecordRange(_local1.mNextRecord, (_local1.mNextRecord + _local1.mIncrement) - 1);
_local1.mNextRecord = _local1.mNextRecord + _local1.mIncrement;
} while (_local1.mHighestRequested <= 0);
}
};
RsDataFetcher.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var _local2 = eventObj;
if (((_local2.eventName == "updateItems") && (_local2.firstItem <= _local1.mHighestRequested)) && (_local2.lastItem >= _local1.mHighestRequested)) {
_local1.doNext();
}
if (_local2.eventName == "allRows") {
_local1.disable();
}
};
_global.NetServiceProxyResponder = function (service, methodName) {
this.service = service;
this.methodName = methodName;
};
NetServiceProxyResponder.prototype.onResult = function (result) {
var _local3 = result;
var _local1 = this.service.client;
_local3._setParentService(this.service);
var _local2 = this.methodName + "_Result";
if (typeof(_local1[_local2]) == "function") {
_local1[_local2](_local3);
} else if (typeof(_local1.onResult) == "function") {
_local1.onResult(_local3);
} else {
NetServices.trace("NetServices", "info", 1, (_local2 + " was received from server: ") + _local3);
}
};
NetServiceProxyResponder.prototype.onStatus = function (result) {
var _local1 = result;
var _local2 = this.service.client;
var _local3 = this.methodName + "_Status";
if (typeof(_local2[_local3]) == "function") {
_local2[_local3](_local1);
} else if (typeof(_local2.onStatus) == "function") {
_local2.onStatus(_local1);
} else if (typeof(_root.onStatus) == "function") {
_root.onStatus(_local1);
} else if (typeof(_global.System.onStatus) == "function") {
_global.System.onStatus(_local1);
} else {
NetServices.trace("NetServices", "info", 2, (((_local3 + " was received from server: <") + _local1.level) + "> ") + _local1.description);
}
};
_global.NetServiceProxy = function (nc, serviceName, client) {
var _local1 = this;
if (nc != null) {
_local1.nc = nc;
_local1.serviceName = serviceName;
_local1.client = client;
}
};
NetServiceProxy.prototype._setParentService = function (service) {
this.nc = service.nc;
this.client = service.client;
};
NetServiceProxy.prototype.__resolve = function (methodName) {
var _local1 = this;
var _local2 = arguments;
var _local3 = function () {
var _local1 = this;
var _local2 = arguments;
if (_local1.client != null) {
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
} else if (typeof(_local2[0].onResult) != "function") {
NetServices.trace("NetServices", "warning", 3, "There is no defaultResponder, but no responder was given in call to " + methodName);
_local2.unshift(new NetServiceProxyResponder(_local1, methodName));
}
_local2.unshift((_local1.serviceName + ".") + methodName);
return(_local1.nc.call.apply(_local1.nc, _local2));
};
return(_local3);
};
Object.registerClass("NetServiceProxy", NetServiceProxy);
NetConnection.prototype.getService = function (serviceName, client) {
var _local1 = new NetServiceProxy(this, serviceName, client);
return(_local1);
};
NetConnection.prototype.setCredentials = function (userid, password) {
this.addHeader("Credentials", false, {userid:userid, password:password});
};
NetConnection.prototype.RequestPersistentHeader = function (info) {
var _local1 = info;
this.addHeader(_local1.name, _local1.mustUnderstand, _local1.data);
};
NetConnection.prototype.AppendToGatewayUrl = function (urlSuffix) {
var _local1 = this;
_local1.__urlSuffix = urlSuffix;
if (_local1.__originalUrl == null) {
_local1.__originalUrl = _local1.uri;
}
var _local2 = _local1.__originalUrl + urlSuffix;
_local1.connect(_local2);
};
NetConnection.prototype.ReplaceGatewayUrl = function (newUrl) {
this.connect(newUrl);
};
NetConnection.prototype.clone = function () {
var _local1 = new NetConnection();
_local1.connect(this.uri);
return(_local1);
};
if (_global.NetServices == null) {
_global.NetServices = new Object();
NetServices.gatewayUrl = gatewayUrl;
}
NetServices.setDefaultGatewayUrl = function (url) {
NetServices.defaultGatewayUrl = url;
};
NetServices.setGatewayUrl = function (url) {
NetServices.gatewayUrl = url;
};
NetServices.createGatewayConnection = function (url) {
var _local1 = url;
if (_local1 == undefined) {
_local1 = NetServices.gatewayUrl;
if (_local1 == undefined) {
_local1 = NetServices.defaultGatewayUrl;
}
}
if (_local1 == undefined) {
NetServices.trace("NetServices", "warning", 4, "createGatewayConnection - gateway url is undefined");
return(null);
}
var _local2 = new NetConnection();
_local2.connect(_local1);
return(_local2);
};
NetServices.getHostUrl = function () {
var _local2 = _root;
if (!NetServices.isHttpUrl(_local2._url)) {
return(null);
}
var _local1 = _local2._url.indexOf("/", 8);
if (_local1 < 0) {
return(null);
}
return(_local2._url.substring(0, _local1));
};
NetServices.isHttpUrl = function (url) {
return((url.indexOf("http://") == 0) || (url.indexOf("https://") == 0));
};
NetServices.trace = function (who, severity, number, message) {
var _local1 = (((((who + " ") + severity) + " ") + number) + ": ") + message;
trace(_local1);
NetDebug.traceNetServices(who, severity, number, message);
};
NetServices.getVersion = function () {
return(1);
};
_global.copyProperties = function (to, from) {
var _local1 = from;
var _local2 = to;
for (var _local3 in _local1) {
if ((_local3 == "__proto__") || (_local3 == "function")) {
continue;
}
if (typeof(_local1[_local3]) == "object") {
if (_local2[_local3] == undefined) {
_local2[_local3] = new _local1[_local3].__proto__.constructor();
}
copyProperties(_local2[_local3], _local1[_local3]);
} else {
_local2[_local3] = _local1[_local3];
}
}
};
_global.copyObject = function (obj) {
var _local2 = obj;
if (typeof(_local2) == "object") {
var _local1 = new _local2.__proto__.constructor();
copyProperties(_local1, _local2);
return(_local1);
}
return(_local2);
};
_global.objectToStringTree = function (obj, openstr, typesepstr, valuesepstr, closestr) {
var _local1 = new StringLineAdder(obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
return(_local1.getString());
};
_global.objectToListboxTree = function (listbox, obj, openstr, typesepstr, valuesepstr, closestr) {
new ListLineAdder(listbox, obj, new TreeLineRenderer(((openstr == null) ? "{" : (openstr)), ((typesepstr == null) ? ":" : (typesepstr)), ((valuesepstr == null) ? ", " : (valuesepstr)), ((closestr == null) ? "}" : (closestr))));
};
_global.StringLineAdder = function (obj, renderer) {
var _local1 = this;
_local1.linerenderer = renderer;
_local1.output = "";
nestedObjectDump(0, null, obj, _local1);
};
StringLineAdder.prototype.getString = function () {
return(this.output);
};
StringLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local1 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local1 != null) {
this.output = this.output + (_local1 + newline);
}
return(true);
};
_global.ListLineAdder = function (listbox, obj, renderer) {
var _local1 = this;
_local1.linerenderer = renderer;
_local1.output_lb = listbox;
nestedObjectDump(0, null, obj, _local1);
};
ListLineAdder.prototype.addLine = function (level, objname, objtype, objvalue, objnum) {
var _local1 = this.linerenderer.getLine(level, objname, objtype, objvalue, objnum);
if (_local1 != null) {
this.output_lb.addItem(_local1);
}
return(true);
};
_global.TreeLineRenderer = function (pre, typedelim, valuedelim, post) {
this.init(pre, typedelim, valuedelim, post);
};
TreeLineRenderer.prototype.init = function (pre, typedelim, valuedelim, post) {
var _local1 = this;
_local1.prechar = pre;
_local1.typechar = typedelim;
_local1.valuechar = valuedelim;
_local1.postchar = post;
};
TreeLineRenderer.prototype.getLine = function (level, objname, objtype, objvalue, objnum) {
var _local3 = this;
var _local2 = "";
var _local1 = 0;
while (_local1 < level) {
_local2 = _local2 + "\t";
_local1++;
}
var valuedelim = _local3.valuechar;
if ((objname != null) && (objtype != "object")) {
_local2 = _local2 + (((_local3.prechar + objtype) + _local3.typechar) + objname);
} else if (objtype == "object") {
if (typeof(objvalue) == "number") {
_local2 = _local2 + (((_local3.prechar + objtype) + _local3.typechar) + objname);
_local2 = _local2 + ((valuedelim + "object#") + objvalue);
objvalue = null;
} else {
_local2 = _local2 + (((((_local3.prechar + objtype) + "#") + objnum) + _local3.typechar) + objname);
}
} else {
_local2 = _local2 + (_local3.prechar + objtype);
valuedelim = _local3.typechar;
}
if (objvalue != null) {
_local2 = _local2 + (valuedelim + objvalue);
}
_local2 = _local2 + _local3.postchar;
return(_local2);
};
_global.nestedObjectDump = function (level, objname, obj, lineadder) {
var _local1 = obj;
if (level == 0) {
nestedObjectDump.callcount++;
nestedObjectDump.objcount = -1;
}
if (_local1 == null) {
return(lineadder.addLine(level, objname, "undefined"));
}
if (typeof(_local1) == "function") {
return(lineadder.addLine(level, objname, "function"));
}
if (typeof(_local1) == "object") {
if ((_local1.__nestedObjectDump_id != undefined) && (_local1.__nestedObjectDump_ref == nestedObjectDump.callcount)) {
return(lineadder.addLine(level, objname, "object", _local1.__nestedObjectDump_id));
}
nestedObjectDump.objcount++;
if (lineadder.addLine(level, objname, "object", null, nestedObjectDump.objcount) == nestedObjectDump.skip) {
return(nestedObjectDump.proceed);
}
_local1.__nestedObjectDump_id = nestedObjectDump.objcount;
_local1.__nestedObjectDump_ref = nestedObjectDump.callcount;
var props = new Array();
var _local3 = new Array();
for (var prop in _local1) {
if (((prop == "__proto__") || (prop == "__nestedObjectDump_id")) || (prop == "__nestedObjectDump_ref")) {
continue;
}
if (typeof(_local1[prop]) == "object") {
_local3.push(prop);
} else {
props.push(prop);
}
}
if ((_local3.length == 0) && (props.length == 0)) {
if ((typeof(_local1.toString) == "function") && (_local1.toString() != "")) {
return(lineadder.addLine(level + 1, null, "string", _local1.toString()));
}
if (lineadder.noProps != undefined) {
lineadder.noProps(level + 1);
return(nestedObjectDump.proceed);
}
}
props.sort();
_local3.sort();
var bret = true;
var plen = props.length;
var _local2 = 0;
while (_local2 < plen) {
if (nestedObjectDump(level + 1, props[_local2], _local1[props[_local2]], lineadder) == nestedObjectDump.stop) {
bret = false;
break;
}
_local2++;
}
if (bret) {
var olen = _local3.length;
_local2 = 0;
while (_local2 < olen) {
if (!nestedObjectDump(level + 1, _local3[_local2], _local1[_local3[_local2]], lineadder)) {
bret = false;
}
_local2++;
}
}
return(nestedObjectDump.proceed);
}
return(lineadder.addLine(level, objname, typeof(_local1), _local1));
};
nestedObjectDump.proceed = 1;
nestedObjectDump.skip = 2;
nestedObjectDump.stop = 3;
nestedObjectDump.callcount = 0;
nestedObjectDump.objcount = 0;
Object.registerClass("NetDebugConfig", NetDebugConfig);
NetDebugEvent.prototype.init = function () {
var _local1 = this;
_local1.EventType = "DebugEvent";
_local1.Source = "Client";
_local1.MovieUrl = unescape(_root._url);
_local1.initDate();
};
NetDebugEvent.prototype.initDate = function () {
var _local1 = new Date();
this.Date = _local1;
this.Time = _local1.getTime();
};
NetDebugErrorEvent.prototype = new NetDebugEvent();
NetDebugTraceEvent.prototype = new NetDebugEvent();
NetDebugTraceNetServicesEvent.prototype = new NetDebugEvent();
NetDebugNCEvent.prototype = new NetDebugEvent();
NetDebugResultEvent.prototype = new NetDebugNCEvent();
NetDebugStatusEvent.prototype = new NetDebugNCEvent();
NetDebugConnectEvent.prototype = new NetDebugNCEvent();
NetDebugCallEvent.prototype = new NetDebugNCEvent();
NetDebugCloseEvent.prototype = new NetDebugNCEvent();
NetDebugAddHeaderEvent.prototype = new NetDebugNCEvent();
NetDebugRtmpLogEvent.prototype = new NetDebugNCEvent();
NetDebugDuplicateNCDErrorEvent.prototype = new NetDebugNCEvent();
NetDebugFailedSendErrorEvent.prototype = new NetDebugNCEvent();
NetDebugInfoErrorEvent.prototype = new NetDebugNCEvent();
NetDebugResultEvent.prototype = new NetDebugNCEvent();
_global.StripNCDEventToMinmal = function (ev) {
var _local1 = ev;
var _local2 = new Object();
if (_local1.EventType != null) {
_local2.EventType = _local1.EventType;
}
if (_local1.Source != null) {
_local2.Source = _local1.Source;
}
if (_local1.MovieUrl != null) {
_local2.MovieUrl = _local1.MovieUrl;
}
if (_local1.Date != null) {
_local2.Date = _local1.Date;
}
if (_local1.Time != null) {
_local2.Time = _local1.Time;
}
if (_local1.Protocol != null) {
_local2.Protocol = _local1.Protocol;
}
if (_local1.DebugId != null) {
_local2.DebugId = _local1.DebugId;
}
return(_local2);
};
NetConnection.prototype.attachDebug = function () {
var _local1 = this;
if (!_local1.m_Attached) {
_local1.m_Attached = true;
_local1.m_HeaderAdded = false;
_local1.m_Config = new NetDebugConfig();
copyProperties(_local1.m_Config, getNetDebug().m_Config);
_local1.m_Protocol = "none";
_local1.m_Id = getNetDebug().addNetConnection(_local1);
}
};
NetConnection.prototype.sendDebugEvent = function (eventobj) {
var _local1 = eventobj;
_local1.Protocol = this.m_Protocol;
_local1.DebugId = this.m_Id;
return(getNetDebug().onEvent(_local1));
};
NetConnection.prototype.sendServerEvent = function (eventobj) {
eventobj.MovieUrl = unescape(_root._url);
if (!this.sendDebugEvent(eventobj)) {
}
};
NetConnection.prototype.sendClientEvent = function (eventobj) {
var _local1 = this;
if (_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) {
if ((_local1.m_Config.client.http && (_local1.m_Protocol == "http")) || (_local1.m_Config.client.rtmp && (_local1.m_Protocol.substr(0, 4) == "rtmp"))) {
if (!_local1.sendDebugEvent(eventobj)) {
}
}
}
};
NetConnection.prototype.addNetDebugHeader = function () {
var _local1 = this;
if (!_local1.m_HeaderAdded) {
_local1.m_HeaderAdded = true;
if ((_local1.m_Config.m_debug && (_local1.m_Config.app_server.m_debug)) && (_local1.m_Protocol == "http")) {
_local1.realaddHeader("amf_server_debug", true, _local1.m_Config.app_server);
} else {
_local1.realaddHeader("amf_server_debug", true, undefined);
}
}
};
NetConnection.prototype.updateConfig = function (config) {
var _local1 = this;
_local1.attachDebug();
copyProperties(_local1.m_Config, config);
_local1.m_HeaderAdded = false;
};
NetConnection.prototype.isRealTime = function () {
return(this.m_Protocol.substr(0, 4) == "rtmp");
};
NetConnection.prototype.setupRecordset = function () {
var _local1 = this;
_local1.attachDebug();
_local1.m_Config.client.http = _local1.m_Config.client.recordset;
};
NetConnection.prototype.setDebugId = function (id) {
this.attachDebug();
this.m_Id = id;
};
NetConnection.prototype.getDebugId = function () {
this.attachDebug();
return(this.m_Id);
};
NetConnection.prototype.trace = function (traceobj) {
var _local1 = this;
_local1.attachDebug();
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
_local1.sendDebugEvent(new NetDebugTraceEvent(traceobj));
}
};
NetConnection.prototype.getDebugConfig = function () {
this.attachDebug();
return(this.m_Config);
};
if (!NetConnection.prototype.netDebugProxyFunctions) {
NetConnection.prototype.netDebugProxyFunctions = true;
NetConnection.prototype.realconnect = NetConnection.prototype.connect;
NetConnection.prototype.realcall = NetConnection.prototype.call;
NetConnection.prototype.realclose = NetConnection.prototype.close;
NetConnection.prototype.realaddHeader = NetConnection.prototype.addHeader;
NetConnection.prototype.connect = netDebugProxyConnect;
NetConnection.prototype.call = netDebugProxyCall;
NetConnection.prototype.close = netDebugProxyClose;
NetConnection.prototype.addHeader = netDebugProxyAddHeader;
}
RTMPClientIDResponse.prototype.onResult = function (cid) {
this.m_NC.m_ClientId = cid;
getNetDebug().sendCommand(new AddRTMPClientCommand(this.m_ConnectString, cid));
};
NetDebugResponseProxy.prototype.onDebugEvents = function (debugevents) {
var _local3 = debugevents;
var _local2 = _local3.length;
var _local1 = 0;
while (_local1 < _local2) {
this.m_SourceNC.sendServerEvent(_local3[_local1]);
_local1++;
}
};
NetDebugResponseProxy.prototype.onResult = function (resultobj) {
this.m_SourceNC.sendClientEvent(new NetDebugResultEvent(resultobj));
this.m_OriginalNR.onResult(resultobj);
};
NetDebugResponseProxy.prototype.onStatus = function (statusobj) {
var _local1 = this;
var _local2 = statusobj;
_local1.m_SourceNC.sendClientEvent(new NetDebugStatusEvent(_local2));
if (_local1.m_OriginalNR.onStatus != undefined) {
_local1.m_OriginalNR.onStatus(_local2);
} else {
_global.System.onStatus(_local2);
}
};
NetDebugResponseProxy.prototype.__resolve = function (name) {
this.m_SourceNC.sendClientEvent(new NetDebugReceiveCallEvent(name, arguments));
this.m_OriginalNR[name].apply(arguments);
};
GlobalLocalConnection.prototype.setDomainName = function (domainname) {
var _local1 = domainname;
if ((_local1 != null) && (_local1 != "")) {
this.sendPrefix = _local1 + ":";
} else {
this.sendPrefix = "";
}
};
GlobalLocalConnection.prototype.send = function (dataobj) {
return(this.sendRaw("onData", dataobj));
};
GlobalLocalConnection.prototype.sendCommand = function (commandobj) {
return(this.sendRaw("onCommand", commandobj));
};
GlobalLocalConnection.prototype.sendRaw = function (functionname, obj) {
var _local2 = this;
var _local3 = true;
var snlen = _local2.sendnames.length;
var _local1 = 0;
while (_local1 < snlen) {
_local3 = _local3 & _global.g_NetDebugLocalConnection.send(_local2.sendPrefix + _local2.sendnames[_local1], functionname, obj);
_local1++;
}
return(_local3);
};
LocalCommand.prototype.init = function (commandname, dataobj) {
this.command = commandname;
this.data = dataobj;
};
UpdateNetDebugConfigCommand.prototype = new LocalCommand();
GetConfigCommand.prototype = new LocalCommand();
StartRTMPTraceCommand.prototype = new LocalCommand();
AddRTMPClientCommand.prototype = new LocalCommand();
StopRTMPTraceCommand.prototype = new LocalCommand();
NetDebug.prototype.addNetConnection = function (nc) {
this.m_ncs.push(nc);
return(this.m_NextNewId++);
};
NetDebug.prototype.removeNetConnection = function (nc) {
var _local2 = this;
var _local3 = _local2.m_ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (nc == _local2.m_ncs[_local1]) {
_local2.m_ncs.splice(_local1, 1);
return;
}
_local1++;
}
};
NetDebug.prototype.sendDebugEvent = function (eventobj) {
if (!this.m_glc.send(eventobj)) {
this.m_glc.send(new NetDebugFailedSendErrorEvent(StripNCDEventToMinmal(eventobj)));
return(false);
}
return(true);
};
NetDebug.prototype.sendCommand = function (commandobj) {
return(this.m_glc.sendCommand(commandobj));
};
NetDebug.prototype.requestNewConfig = function () {
return(this.sendCommand(new GetConfigCommand()));
};
NetDebug.prototype.updateConfig = function (config) {
var _local2 = this;
copyProperties(_local2.m_Config, config);
var _local3 = _local2.m_ncs.length;
var _local1 = 0;
while (_local1 < _local3) {
if (_local2.m_ncs[_local1] != null) {
_local2.m_ncs[_local1].updateConfig(config);
}
_local1++;
}
};
NetDebug.prototype.sendStatus = function (statusobj) {
var _local1 = this;
if (_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) {
return(_local1.m_glc.send(new NetDebugStatusEvent(statusobj)));
}
return(undefined);
};
NetDebug.prototype.onEvent = function (eventobj) {
return(this.sendDebugEvent(eventobj));
};
NetDebug.prototype.onEventError = function (errorobj) {
return(this.sendDebugEvent(new NetDebugErrorEvent(errorobj)));
};
NetDebug.prototype.onReceiveCommand = function (commandobj) {
this[commandobj.command](commandobj.data);
};
NetDebug.prototype.onReceiveError = function (errorobj) {
this.sendDebugEvent(new NetDebugErrorEvent(errorobj));
};
NetDebug.prototype.traceNetServices = function (who, severity, number, message) {
var _local1 = this;
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
if (!_local1.sendDebugEvent(new NetDebugTraceNetServicesEvent(who, severity, number, message))) {
}
}
};
NetDebug.prototype.trace = function (traceobj) {
var _local1 = this;
if ((_local1.m_Config.m_debug && (_local1.m_Config.client.m_debug)) && (_local1.m_Config.client.trace)) {
if (!_local1.sendDebugEvent(new NetDebugTraceEvent(traceobj))) {
}
}
};
if (_global.netDebugInstance == undefined) {
_global.netDebugInstance = new NetDebug();
}
NetDebug.trace = function (obj) {
getNetDebug().trace(obj);
};
NetDebug.traceNetServices = function (who, severity, number, message) {
getNetDebug().traceNetServices(who, severity, number, message);
};
NetDebug.getVersion = function () {
return(getNetDebugVersion());
};
NetDebug.globalOnStatus = function (statusobj) {
getNetDebug().sendStatus(statusobj);
};
if (_global.System.onStatus == undefined) {
_global.System.onStatus = NetDebug.globalOnStatus;
}
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) {
var _local1 = email;
trace("loggin in: " + _local1);
_root.email = _local1;
euroheaders.loginWithGetDetails(_local1);
}
function loginWithGetDetails_Result(result) {
var _local1 = _root;
var _local2 = result;
trace("loginWithGetName_Result: " + _local2.status);
if (_local2.status != 1) {
_local1.playerLogginIn = true;
leagueID = _local2.leagueid;
trace("leagueID: " + leagueID);
if (leagueID != "") {
trace("in league");
inLeague = true;
} else {
trace("not in league");
inLeague = false;
}
_local1.username = _local2.username;
if (_local1.invited) {
trace("user HAS BEEN CHALLENGED / invited: " + inviteid);
_local1.room = inviteid;
gotoAndPlay ("lobby");
} else if (_local1.leagueInvited) {
trace("user HAS BEEN ADDED TO LEAGUE");
_local1.addPlayerToLeagueFL(_local1.email, _local1.requestid);
} else {
gotoAndPlay ("multi_options");
}
} else {
_local1.help.text = "The email address you entered is not currently registered with us. Please try again, or register below";
}
_local1.myEmail = email;
}
function registerPlayerFL(nickname, email) {
var _local1 = email;
var _local2 = nickname;
trace((("registering: " + _local2) + " email: ") + _local1);
_root.username = _local2;
_root.email = _local1;
euroheaders.registerPlayer(_local2, _local1);
}
function registerPlayer_Result(result) {
var _local1 = result;
trace("registerPlayer_Result: " + _local1);
if (_local1 == 0) {
_root.loginWithGetDetailsFL(_root.email);
} else if (_local1 == 1) {
help.text = "The nickname you have chosen already exists, please choose another";
} else if (_local1 == 2) {
help.text = "The email you have entered already exists in our database, please login, or enter a different address";
} else if (_local1 == 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 ("lobby");
}
function createLeagueFL(ownerEmail, leagueName, emailArray) {
trace((((("building new league: " + ownerEmail) + " : ") + leagueName) + " : ") + emailArray);
euroheaders.createLeague(ownerEmail, leagueName, emailArray);
}
function createLeague_Result(result) {
var _local1 = result;
var _local2 = _root;
trace("createLeague_Result: " + _local1.leagueID);
if (_local1.status == 0) {
trace("successful league creation");
_local2.leagueID = _local1.leagueID;
_local2.room = _local2.leagueID;
trace("held leagueID: " + _local2.leagueID);
_local2.getLeagueNameFL(_local2.leagueID);
} else if (_local1.status == 2) {
trace("email address confict");
i = 0;
while (i < _local1.emails.length) {
trace((("email " + i) + " is ") + _local1.emails[i]);
if (!_local1.emails[i]) {
_local2.help.text = _local2.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) {
var _local1 = result;
var _local2 = _root;
trace("addPlayerToLeague_Result" + _local1);
if (_local1 == 0) {
_local2.room = _local2.requestid;
gotoAndPlay ("lobby");
} else if (_local1 == -1) {
_local2.help.text = "This login is already associated with a league and connot join another. Please enter a new address.";
} else if (_local1 == 1) {
_local2.help.text = "";
} else if (_local1 == 2) {
_local2.help.text = "The league your are joining does not exist.";
} else if (_local1 == 3) {
_local2.help.text = "There has been an error with joining this league. Please try again";
}
}
function newGameFL(winnerEmail, looserEmail, winCountry, looseCountry, gameTime, goalTime) {
var _local1 = winCountry;
var _local2 = looseCountry;
switch (_local1) {
case "Portugal" :
trace("Portugal");
_local1 = "PT";
break;
case "Greece" :
trace("Greece");
_local1 = "GR";
break;
case "Spain" :
trace("Spain");
_local1 = "ES";
break;
case "Russia" :
trace("Russia");
_local1 = "RU";
break;
case "France" :
trace("France");
_local1 = "FR";
break;
case "England" :
trace("England");
_local1 = "UK";
break;
case "Switzerland" :
trace("Switzerland");
_local1 = "CH";
break;
case "Croatia" :
trace("Croatia");
_local1 = "HR";
break;
case "Sweden" :
trace("Sweden");
_local1 = "SE";
break;
case "Bulgaria" :
trace("Bulgaria");
_local1 = "BG";
break;
case "Denmark" :
trace("Denmark");
_local1 = "DK";
break;
case "Italy" :
trace("Italy");
_local1 = "IT";
break;
case "Czech Rep" :
trace("Czech Rep");
_local1 = "CZ";
break;
case "Latvia" :
trace("Latvia");
_local1 = "LV";
break;
case "Germany" :
trace("Germany");
_local1 = "DE";
break;
case "Holland" :
trace("Holland");
_local1 = "NL";
}
switch (_local2) {
case "Portugal" :
trace("Portugal");
_local2 = "PT";
break;
case "Greece" :
trace("Greece");
_local2 = "GR";
break;
case "Spain" :
trace("Spain");
_local2 = "ES";
break;
case "Russia" :
trace("Russia");
_local2 = "RU";
break;
case "France" :
trace("France");
_local2 = "FR";
break;
case "England" :
trace("England");
_local2 = "UK";
break;
case "Switzerland" :
trace("Switzerland");
_local2 = "CH";
break;
case "Croatia" :
trace("Croatia");
_local2 = "HR";
break;
case "Sweden" :
trace("Sweden");
_local2 = "SE";
break;
case "Bulgaria" :
trace("Bulgaria");
_local2 = "BG";
break;
case "Denmark" :
trace("Denmark");
_local2 = "DK";
break;
case "Italy" :
trace("Italy");
_local2 = "IT";
break;
case "Czech Rep" :
trace("Czech Rep");
_local2 = "CZ";
break;
case "Latvia" :
trace("Latvia");
_local2 = "LV";
break;
case "Germany" :
trace("Germany");
_local2 = "DE";
break;
case "Holland" :
trace("Holland");
_local2 = "NL";
}
trace((((((((((("adding a new game to the database: " + winnerEmail) + " : ") + looserEmail) + " : ") + _local1) + " : ") + _local2) + " : ") + gameTime) + " : ") + goalTime);
euroheaders.newGame(winnerEmail, looserEmail, _local1, _local2, 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 ("lobby");
}
function getLeagueTableFL(leagueID, start, limit) {
trace("getting league table: " + leagueID);
_root.target = "league";
euroheaders.getLeagueTable(leagueID, start, limit);
}
function getLeagueTable_Result(result) {
var _local1 = result;
var _local2 = _root;
trace("got league table: " + _local1);
delete _local2.leagueData;
_local2.numRecords = _local1.mRecordsAvailable;
_local2.leagueData = _local1;
gotoAndPlay ("results");
}
function getCountryTableFL(start, limit) {
trace("getting country league table");
_root.target = "country";
euroheaders.getCountryTable(start, limit);
}
function getCountryTable_Result(result) {
var _local1 = result;
var _local2 = _root;
trace("got country league table: " + _local1);
delete _local2.leagueData;
_local2.numRecords = _local1.mRecordsAvailable;
_local2.leagueData = _local1;
gotoAndPlay ("results");
}
function getGlobalTableFL(start, limit) {
trace((("getting global table: " + start) + " : ") + limit);
_root.target = "global";
euroheaders.getGlobalTable(start, limit);
}
function getGlobalTable_Result(result) {
var _local1 = result;
var _local2 = _root;
trace("got global table: " + _local1.mRecordsAvailable);
delete _local2.leagueData;
_local2.numRecords = _local1.mRecordsAvailable;
_local2.leagueData = _local1;
gotoAndPlay ("results");
}
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) {
var _local1 = n;
((_local1 > 16) ? (_local1 = _local1 - 16) : 0);
((_local1 < 1) ? (_local1 = _local1 + 16) : 0);
return(_local1);
}
function playerCharMove(MC) {
var _local1 = MC;
var _local2 = _root;
((_local1.stat == "startLeft") ? ((_local1.stat = "Lmove")(_local1.xmove = _local2.xmove)) : 0);
((_local1.stat == "Lmove") ? ((_local1._x = _local1._x - _local1.xmove)(_local1.xmove = _local1.xmove - _local2.xspeed)((_local1.xmove < 0) ? ((_local1.stat = "finish")) : 0)) : 0);
((_local1.stat == "startRight") ? ((_local1.stat = "Rmove")(_local1.xmove = _local2.xmove)) : 0);
((_local1.stat == "Rmove") ? ((_local1._x = _local1._x + _local1.xmove)(_local1.xmove = _local1.xmove - _local2.xspeed)((_local1.xmove < 0) ? ((_local1.stat = "finish")) : 0)) : 0);
}
function START_PLAYER1_SCROLL(pl) {
var _local1 = _root;
ball.gotoAndPlay(1);
pA_1._x = pA_1.startx;
pA_2._x = pA_2.startx;
pA_3._x = pA_3.startx;
_local1.lastChar = _local1.currentChar;
_local1.currentChar = pl;
_local1.pA_1.playerCharGFX(_local1.currentChar);
_local1.pA_2.playerCharGFX(_local1.lastChar);
_local1.p1_Description = _local1.Country[_local1.player1teamID];
_local1.pA_1.stat = "startRight";
_local1.pA_2.stat = "startRight";
_local1.pA_3.stat = "startRight";
}
function START_PLAYER2_SCROLL(pl) {
START_PLAYER1_SCROLL(pl);
}
function player1Start() {
var _local1 = _root;
_local1.gameType = "2player";
_local1.PL = 1;
_local1.playerToGo = 1;
_local1.player1teamID = _local1.currentChar;
_local1.userName = _local1.userName1;
_local1.FLASHCOM_SEND_START_PLAYER_COUNTRY(1);
((_local1.player2type == "HUMAN") ? (gotoAndPlay ("p1WaitForStarted")) : (gotoAndPlay ("gameInit")));
}
function player2Start() {
var _local1 = _root;
_local1.gameType = "2player";
_local1.PL = 2;
_local1.playerToGo = 1;
_local1.player2teamID = _local1.currentChar;
_local1.userName = _local1.userName2;
_local1.FLASHCOM_SEND_START_PLAYER_COUNTRY(2);
_local1.gotoAndPlay("p2WaitForStarted");
}
function START_FLASHCOM_CONNECT() {
var _local1 = _root;
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);
}
_local1.MUS = true;
_local1.player1type = "HUMAN";
_local1.player2type = "HUMAN";
_local1.Send_btn.setEnabled(false);
client_nc = new NetConnection();
client_nc.onStatus = function (info) {
var _local1 = info;
trace(((("Level: " + _local1.level) + newline) + "Code: ") + _local1.code);
if (_local1.description == "NetConnection.Connect.Closed") {
History.text = "";
_root.People.removeAll();
}
if (_local1.description == "NetConnection.Connect.Success") {
clearInterval(_root.notice.waitAccept);
trace("CONNECTED" + this);
}
};
_local1.client_nc.connect("rtmp://212.100.255.83/euroheaders/" + _local1.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(_local1.client_nc);
playerB_send.connect(_local1.client_nc);
ball1_send.connect(_local1.client_nc);
ball2_send.connect(_local1.client_nc);
ball3_send.connect(_local1.client_nc);
ball4_send.connect(_local1.client_nc);
ball5_send.connect(_local1.client_nc);
ball6_send.connect(_local1.client_nc);
ball7_send.connect(_local1.client_nc);
ball8_send.connect(_local1.client_nc);
ball9_send.connect(_local1.client_nc);
ball10_send.connect(_local1.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;
}
};
_local1.playerA_send.data.char = 0;
_local1.playerA_send.data.userName = 0;
_local1.playerA_send.data.posMove = "";
_local1.playerA_send.data.addBAll = 0;
f = 1;
while (f < 11) {
_local1[("ball" + f) + "_send"].data.flightNum = "";
f++;
}
_local1.playerB_send.data.char = 0;
_local1.playerB_send.data.userName = 0;
_local1.playerB_send.data.posMove = "";
}
function FLASHCOM_SEND_START_PLAYER_COUNTRY(player) {
var _local1 = _root;
if (player == 1) {
_local1.playerA_send.data.char = _local1.player1teamID;
_local1.playerA_send.data.userName = _local1.userName1;
_local1.playerA_send.data.email = _local1.myEmail;
_local1.playerA_send.data.ready = 0;
}
if (player == 2) {
_local1.playerB_send.data.char = _local1.player2teamID;
_local1.playerB_send.data.userName = _local1.userName2;
_local1.playerB_send.data.email = _local1.myEmail;
_local1.playerB_send.data.ready = 0;
}
}
function FLASHCOM_LISTEN_START_OPPONENT_COUNTRY(player) {
var _local1 = _root;
result = false;
if (player == 1) {
_local1.player2teamID = _local1.playerB_send.data.char;
_local1.userName2 = _local1.playerB_send.data.userName;
_local1.oppEmail = _local1.playerB_send.data.email;
if (_local1.player2teamID > 0) {
result = true;
}
}
if (player == 2) {
_local1.player1teamID = _local1.playerA_send.data.char;
_local1.userName1 = _local1.playerA_send.data.userName;
_local1.oppEmail = _local1.playerA_send.data.email;
if (_local1.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_43_mx_tb.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 ("login");
} 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 ("login");
} 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
stop();
help.text = "";
back_btn.onRelease = function () {
gotoAndPlay ("mainMenu");
};
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 ("mainMenu");
};
back_btn.onRollOver = function () {
_root.help.text = "Return to the main menu";
};
back_btn.onRollOut = function () {
_root.help.text = "";
};
challenge_btn.onRelease = function () {
gotoAndPlay ("challenge");
};
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 ("lobby");
};
bench_btn.onRollOver = function () {
_root.help.text = "Join the public game forum";
};
bench_btn.onRollOut = function () {
_root.help.text = "";
};
private_btn.onRelease = function () {
var _local1 = _root;
_local1.room = _local1.leagueID;
_local1.getLeagueNameFL(_local1.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 ("createLeague");
};
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 ("multi_options");
};
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 () {
var _local1 = _root;
if (_local1.validate_mail(yemail) && (_local1.validate_mail(femail))) {
_local1.sendInviteFL(yname, yemail, fname, femail);
}
if ((!_local1.validate_mail(yemail)) && (_local1.validate_mail(femail))) {
_local1.help.text = "Please enter your valid email address";
}
if (_local1.validate_mail(yemail) && (!_local1.validate_mail(femail))) {
_local1.help.text = "Please enter your friend's valid email address";
}
if ((!_local1.validate_mail(yemail)) && (!_local1.validate_mail(femail))) {
_local1.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 ("multi_options");
};
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 () {
var _local1 = _root;
_local1.offset = 0;
_local1.getLeagueTableFL(_local1.leagueID, _local1.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 ("multi_options");
};
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 () {
var _local1 = _root;
_local1.offset = 0;
_local1.getGlobalTableFL(_local1.offset, 10);
};
country_btn.onRelease = function () {
_root.offset = 0;
_root.getCountryTableFL();
};
league_btn.onRelease = function () {
var _local1 = _root;
_local1.offset = 0;
_local1.getLeagueTableFL(_local1.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 () {
var _local1 = _root;
_local1.offset = _local1.offset - 10;
if (_local1.target == "global") {
_local1.getGlobalTableFL(_local1.offset, 10);
} else if (_local1.target == "country") {
_local1.getCountryTableFL(_local1.offset, 10);
} else if (_local1.target == "league") {
_local1.getLeagueTableFL(leagueID, _local1.offset, 10);
}
};
_root.next_btn.onRelease = function () {
var _local1 = _root;
_local1.offset = _local1.offset + 10;
if (_local1.target == "global") {
_local1.getGlobalTableFL(_local1.offset, 10);
} else if (_local1.target == "country") {
_local1.getCountryTableFL(_local1.offset, 10);
} else if (_local1.target == "league") {
_local1.getLeagueTableFL(leagueID, _local1.offset, 10);
}
};
back_btn.onRelease = function () {
gotoAndPlay ("mainMenu");
};
back_btn.onRollOver = function () {
_root.help.text = "Return to the multichoice menu";
};
back_btn.onRollOut = function () {
_root.help.text = "";
};
stop();
Instance of Symbol 423 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._visible = _parent.league_btn._visible;
}
Instance of Symbol 425 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._visible = _parent.next_btn._visible;
}
Instance of Symbol 427 MovieClip in Frame 35
onClipEvent (enterFrame) {
this._visible = _parent.prev_btn._visible;
}
Frame 36
gotoAndStop ("results");
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 648 MovieClip "pA_1" in Frame 49
onClipEvent (load) {
startx = _x;
}
onClipEvent (enterFrame) {
_root.playerCharMove(this);
((stat == "finish") ? ((stat = "done")) : 0);
}
Instance of Symbol 648 MovieClip "pA_2" in Frame 49
onClipEvent (load) {
startx = _x;
}
onClipEvent (enterFrame) {
_root.playerCharMove(this);
((stat == "finish") ? ((stat = "done")) : 0);
}
Instance of Symbol 659 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 648 MovieClip "pA_1" in Frame 50
onClipEvent (load) {
startx = _x;
}
onClipEvent (enterFrame) {
_root.playerCharMove(this);
((stat == "finish") ? ((stat = "done")) : 0);
}
Instance of Symbol 648 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 ("ready")) : 0);
}
play();
Instance of Symbol 648 MovieClip "pA_1" in Frame 53
onClipEvent (enterFrame) {
playerCharGFX(_root.player1teamID);
}
Instance of Symbol 711 MovieClip in Frame 53
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player1teamID);
}
Frame 54
gotoAndPlay ("p1WaitForStarted");
Instance of Symbol 711 MovieClip in Frame 55
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player2teamID);
}
Frame 57
if (_root.PL == 2) {
(_root.FLASHCOM_LISTEN_START_OPPONENT_COUNTRY(2) ? (gotoAndPlay ("ready")) : 0);
}
play();
Instance of Symbol 648 MovieClip "pA_1" in Frame 57
onClipEvent (enterFrame) {
playerCharGFX(_root.player2teamID);
}
Frame 58
gotoAndPlay ("p2WaitForStarted");
Frame 61
Instance of Symbol 648 MovieClip "pA_1" in Frame 61
onClipEvent (enterFrame) {
playerCharGFX(_root.player2teamID);
}
Instance of Symbol 648 MovieClip "pA_1" in Frame 61
onClipEvent (enterFrame) {
playerCharGFX(_root.player1teamID);
}
Instance of Symbol 711 MovieClip in Frame 61
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player2teamID);
}
Instance of Symbol 711 MovieClip in Frame 61
onClipEvent (enterFrame) {
this.gotoAndStop(_root.player1teamID);
}
Frame 62
gotoAndPlay ("ready");
Frame 65
(((_root.PL == 1) and _root.FLASHCOM_LISTEN_FOR_READY(1)) ? (gotoAndPlay ("gameInit")) : 0);
(((_root.PL == 2) and _root.FLASHCOM_LISTEN_FOR_READY(2)) ? (gotoAndPlay ("gameInit")) : 0);
Frame 66
gotoAndPlay ("waitingForPlay");
Instance of Symbol 727 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 727 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 727 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 727 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 727 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 727 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) {
var _local1 = _root;
var _local2 = t2;
var _local3 = t1;
(((_local3 != _local1.player1teamID) and (_local2 != _local1.player1teamID)) ? (((random(2) == 0) ? ((winner = _local3)) : ((winner = _local2)))) : 0);
(((_local3 == _local1.player1teamID) or (_local2 == _local1.player1teamID)) ? ((winner = _local1.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 780 MovieClip "com2" in Frame 72
onClipEvent (load) {
this.swapDepths(9901);
}
Instance of Symbol 782 MovieClip "com1" in Frame 72
onClipEvent (load) {
this.swapDepths(9900);
}
Instance of Symbol 541 MovieClip "team3" in Frame 72
onClipEvent (load) {
this.gotoAndStop(_root.player2teamID);
}
Instance of Symbol 541 MovieClip "team3" in Frame 72
onClipEvent (load) {
this.gotoAndStop(_root.player1teamID);
}
Instance of Symbol 821 MovieClip "ball" in Frame 72
onClipEvent (load) {
function MOVE_BALL() {
var _local1 = _root;
sPoint = _local1["hpos" + Number(flightNum.charAt(3))]._x;
ePoint = _local1["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 (_local1.PL == 1) {
(((_local1.player2type == "HUMAN") and (xx > 0)) ? ((slowWayBack = 1.2)) : ((slowWayBack = 1)));
}
if (_local1.PL == 2) {
(((_local1.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)) {
bstatus = _root.CHECK_BALL_DROP(id, _root.ballDown[id]);
}
}
}
Instance of Symbol 825 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 831 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 833 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 835 MovieClip "goalPostL" in Frame 72
onClipEvent (load) {
this.swapDepths(9990);
}
Instance of Symbol 835 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() {
var _local1 = this;
var _local2 = _root;
_local2.removeBalls();
_local2.numOfBalls = 1;
c = 1;
while (c < maxBalls) {
duplicateMovieClip ("ball", "ball" + c, c);
_local1["ball" + c].id = c;
_local1["ball" + c].ball.id = c;
_local1["ball" + c].name = _local1["ball" + c]._name;
_local1["ball" + c]._y = 151.6;
_local1["ball" + c]._x = 615.1;
_local1["ball" + c]._visible = false;
_local1["ball" + c].flightNum = "";
c++;
}
_local2.hcount = 0;
_local2.ballDown = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_local2.ballStatus = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_local2.ballStart = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_local2.ballCounter = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
if (_local2.PL == 1) {
_local2.ball1.bstatus = "trigger";
_local2.ball1.flightNum = "fl_61";
((_local2.MUS == true) ? ((_local2.ball1_send.data.flightNum = "fl_61")) : 0);
}
_local2.ball1.visible = true;
}
function ADD_EXTRA_BALL() {
var _local1 = _root;
_local1["ball" + _local1.numOfBalls]._visible = true;
_local1.numOfBalls++;
_local1["ball" + _local1.numOfBalls].bstatus = "trigger";
_local1["ball" + _local1.numOfBalls].flightNum = "fl_61";
}
function BALL_BOUNCE(id, landSpot) {
var _local1 = _root;
var _local2 = id;
var _local3 = landSpot;
if (_local3 < 4) {
((_local1.player1type == "CPU") ? (MOVE_CPU(0, _local3, _local2)) : 0);
((_local1.playerPos[0] == "L") ? ((Pn = 1)) : 0);
((_local1.playerPos[0] == "M") ? ((Pn = 2)) : 0);
((_local1.playerPos[0] == "R") ? ((Pn = 3)) : 0);
}
if (_local3 > 3) {
((_local1.player2type == "CPU") ? (MOVE_CPU(1, _local3, _local2)) : 0);
((_local1.playerPos[1] == "L") ? ((Pn = 4)) : 0);
((_local1.playerPos[1] == "M") ? ((Pn = 5)) : 0);
((_local1.playerPos[1] == "R") ? ((Pn = 6)) : 0);
}
if (Pn == _local3) {
if (_local3 < 4) {
playerA.playerJump.gotoAndPlay("playerJump");
if (_local1.PL == 1) {
flightNum = ("fl_" + _local3) + (4 + random(3));
_local1["ball" + _local2].flightNum = flightNum;
_local1["ball" + _local2].bstatus = "trigger";
_local1.ballDown[_local2] = 0;
_local1["s" + _local2]++;
((_local1.MUS == true) ? ((_local1[("ball" + _local2) + "_send"].data.flightNum = flightNum)) : 0);
}
}
if (_local3 > 3) {
playerB.playerJump.gotoAndPlay("playerJump");
if ((_local1.PL == 2) or (_local1.player2type == "CPU")) {
flightNum = ("fl_" + _local3) + (1 + random(3));
_local1["ball" + _local2].flightNum = flightNum;
_local1["ball" + _local2].bstatus = "trigger";
_local1.ballDown[_local2] = 0;
_local1["s" + _local2]++;
((_local1.MUS == true) ? ((_local1[("ball" + _local2) + "_send"].data.flightNum = flightNum)) : 0);
}
}
}
}
function CHECK_BALL_DROP(id, landSpot) {
var _local1 = _root;
var _local2 = landSpot;
if (Pn != _local2) {
if (_local2 < 4) {
if (_local1.PL == 1) {
_local1.playerA_send.data.lostalife = 1;
_local1.ballDropped = 1;
_local1.inGoal = 1;
}
}
if (_local2 > 3) {
if (_local1.PL == 2) {
_local1.playerB_send.data.lostalife = 1;
_local1.ballDropped = 2;
_local1.inGoal = 2;
}
}
}
}
function LOST_A_LIFE(p) {
var _local1 = _root;
if (p == 1) {
_local1.scoreB++;
_local1.playerALives.nextFrame();
_local1.reset();
}
if (p == 2) {
_local1.scoreA++;
_local1.playerBLives.nextFrame();
_local1.reset();
}
}
function PLACE_OPP_PLAYER(flightN) {
var _local1 = _root;
pos = flightN.charAt(3);
if ((_local1.PL == 1) and (pos > 3)) {
_local1.playerB.gotoAndStop("pos" + pos);
_local1.playerB.playerJump.gotoAndPlay("playerJump");
}
if ((_local1.PL == 2) and (pos < 4)) {
_local1.playerA.gotoAndStop("pos" + pos);
_local1.playerA.playerJump.gotoAndPlay("playerJump");
}
}
function MOVE_CPU(player, n) {
var _local1 = player;
var _local2 = _root;
var _local3 = n;
trace((("tracing MOVE_CPU: " + _local1) + " : ") + _local3);
((_local1 == 0) ? ((AorB = "A")) : ((AorB = "B")));
if (((_local3 == 1) and (_local1 == 0)) or ((_local3 == 4) and (_local1 == 1))) {
if ((_local2.playerPos[_local1] == "R") or (_local2.playerPos[_local1] == "M")) {
_local2.playerPos[_local1] = "L";
_local2["player" + AorB].gotoAndPlay("MtoL");
}
}
if (((_local3 == 2) and (_local1 == 0)) or ((_local3 == 5) and (_local1 == 1))) {
if (_local2.playerPos[_local1] == "L") {
_local2.playerPos[_local1] = "M";
_local2["player" + AorB].gotoAndPlay("LtoM");
}
if (_local2.playerPos[_local1] == "R") {
_local2.playerPos[_local1] = "M";
_local2["player" + AorB].gotoAndPlay("RtoM");
}
}
if (((_local3 == 3) and (_local1 == 0)) or ((_local3 == 6) and (_local1 == 1))) {
if ((_local2.playerPos[_local1] == "L") or (_local2.playerPos[_local1] == "M")) {
_local2.playerPos[_local1] = "R";
_local2["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";
if (_root.PL == 1) {
_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 ("end");
}
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 ("gameLoop");
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 ("fixtures");
} else {
gotoAndPlay ("mainMenu");
}
}
if (_root.player2type == "HUMAN") {
trace("clearing listenner");
Key.removeListener(_root.enterListener);
loadMovieNum (reloadURL, 0);
}
}
Frame 79
gotoAndPlay ("endLoop");
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 () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.labelField.embedFonts = _local1.hostComponent.styleTable.embedFonts.value;
_local1.labelField.setNewTextFormat(_local1.hostComponent.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
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 () {
var _local1 = this;
var _local2 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local2.globalStyleFormat == undefined) {
_local2.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local2._focusControl = new Object();
_local2._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local2._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (!_local1.hasOwnProperty("hostStyle")) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
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 () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1._parent.localToGlobal({x:_local1._x, y:_local1._y});
_local1.drawFocusRect();
}
_local1.tabFocused = true;
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, 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 () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("fpb_states", "fpbState_mc", 1);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2);
_local1.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
_local1.setClickHandler(_local1.clickHandler);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.setSize(_local1.width, _local1.height);
_local1.ROLE_SYSTEM_PUSHBUTTON = 43;
_local1.STATE_SYSTEM_PRESSED = 8;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var _local1 = this.fpb_hitArea_mc;
this.hitArea = _local1;
_local1._visible = false;
_local1._width = w;
if (arguments.length > 1) {
_local1._height = h;
}
};
FPushButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
_local1._xscale = 100;
_local1._yscale = 100;
if (_local3 < 6) {
_local3 = 6;
}
if (arguments.length > 1) {
if (_local2 < 6) {
_local2 = 6;
}
}
super.setSize(_local3, _local2);
_local1.setLabel(_local1.getLabel());
_local1.arrangeLabel();
_local1.setHitArea(_local3, _local2);
_local1.boundingBox_mc._width = _local3;
_local1.boundingBox_mc._height = _local2;
_local1.drawFrame();
if (_local1.focused) {
super.myOnSetFocus();
}
};
FPushButtonClass.prototype.arrangeLabel = function () {
var _local3 = this;
var _local1 = _local3.fLabel_mc;
var h = _local3.height;
var w = (_local3.width - 2);
var _local2 = 1;
_local3.fLabel_mc.setSize(w - (_local2 * 4));
_local1._x = _local2 * 3;
_local1._y = (h / 2) - (_local1._height / 2);
};
FPushButtonClass.prototype.txtFormat = function () {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = "center")) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 1)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 1)) : undefined);
if (_local1.fLabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.fLabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var _local3 = this;
var _local2 = 1;
var x1 = 0;
var y1 = 0;
var x2 = _local3.width;
var y2 = _local3.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[_local3.fpbState_mc._currentframe - 1];
var mc = "frame";
var _local1 = 0;
while (_local1 < 6) {
x1 = x1 + ((_local1 % 2) * _local2);
y1 = y1 + ((_local1 % 2) * _local2);
x2 = x2 - (((_local1 + 1) % 2) * _local2);
y2 = y2 - (((_local1 + 1) % 2) * _local2);
var w = (Math.abs(x1 - x2) + (2 * _local2));
var h = (Math.abs(y1 - y2) + (2 * _local2));
_local3.fpbState_mc[frame][mc + _local1]._width = w;
_local3.fpbState_mc[frame][mc + _local1]._height = h;
_local3.fpbState_mc[frame][mc + _local1]._x = x1 - _local2;
_local3.fpbState_mc[frame][mc + _local1]._y = y1 - _local2;
_local1++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((arguments.length < 2) ? (_local1._parent) : (obj));
_local1.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.clickHandler](_local1);
};
FPushButtonClass.prototype.onPress = function () {
var _local1 = this;
_local1.pressFocus();
_local1.labelPosX = _local1.fLabel_mc._x;
_local1.labelPosY = _local1.fLabel_mc._y;
_local1.fLabel_mc._x = _local1.labelPosX + 1;
_local1.fLabel_mc._y = _local1.labelPosY + 1;
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fLabel_mc._x = _local1.labelPosX;
_local1.fLabel_mc._y = _local1.labelPosY;
_local1.fpbState_mc.gotoAndStop(2);
_local1.drawFrame();
_local1.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.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 () {
var _local1 = this;
_local1.fLabel_mc._x = _local1.labelPosX;
_local1.fLabel_mc._y = _local1.labelPosY;
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
var _local1 = this;
_local1.fLabel_mc._x = _local1.labelPosX;
_local1.fLabel_mc._y = _local1.labelPosY;
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
var _local1 = this;
_local1.fLabel_mc._x = _local1.labelPosX + 1;
_local1.fLabel_mc._y = _local1.labelPosY + 1;
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if (enable || (enable == undefined)) {
_local1.gotoFrame(1);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(true);
_local1.enabled = true;
super.setEnabled(true);
} else {
_local1.gotoFrame(4);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(false);
_local1.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
_local1.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1.pressOnce == undefined)) {
_local1.onPress();
_local1.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) {
var _local1 = this;
if (_local1.pressOnce) {
return(_local1.master.STATE_SYSTEM_PRESSED);
}
return(_local1.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 () {
var _local1 = this;
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1._yscale * _local1.scrollTrack_mc._height) / 100;
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollPosition = _local2;
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.isAKludge = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.isAKludge == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.isAKludge = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var pos = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(pos, _local1.textField.maxhscroll));
} else {
var pos = _local1.textField.scroll;
var _local2 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local2, 1, _local1.textField.maxscroll);
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.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 () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
var _local3 = value;
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(_local3) == "object") {
_local2.items[_local1] = _local3;
} else {
_local2.items[_local1].label = _local3;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var eventObj = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
if (typeof(itemObj) == "object") {
_local2.items[_local1] = itemObj;
} else {
_local2.items[_local1].label = itemObj;
}
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
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) {
var _local1 = this;
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
#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 () {
var _local1 = this;
super.init();
_local1.enable = true;
_local1.selected = new Array();
_local1.topDisplayed = (_local1.numDisplayed = 0);
_local1.lastSelected = 0;
_local1.tabChildren = false;
if (_local1._name != undefined) {
_local1.dataProvider = new DataProviderClass();
_local1.dataProvider.addView(_local1);
}
};
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) {
var _local1 = this;
_local1.selectHolder = _local1.getSelectedIndex();
var _local2 = _local1.getItemAt(index);
_local1.dataProvider.removeItemAt(index);
return(_local2);
};
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) {
var _local1 = this;
_local1.lastSelID = _local1.dataProvider.getItemID(_local1.lastSelected);
_local1.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local1 = this;
for (var _local2 in _local1.selected) {
return(_local1.selected[_local2]);
}
return(undefined);
};
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 _local1 = this.getSelectedItem();
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.getLength())) && (_local1.enable)) {
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invalidate("updateControl");
if (flag != false) {
_local1.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
this.clearSelected();
if (_local2 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((typeof(_local2[_local1]) == "string") ? ({label:_local2[_local1]}) : (_local2[_local1]));
this.dataProvider.addItem(_local3);
_local1++;
}
} else {
this.dataProvider = _local2;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local1 = this;
_local1.tmpPos = _local1.getScrollPosition();
_local1.itemSymbol = linkID;
_local1.invalidate("setSize");
_local1.setScrollPosition(_local1.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
super.setEnabled(enabledFlag);
_local2.enable = enabledFlag;
_local2.boundingBox_mc.gotoAndStop((_local2.enable ? "enabled" : "disabled"));
var _local3 = Math.min(_local2.numDisplayed, _local2.getLength());
var _local1 = 0;
while (_local1 < _local3) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].setEnabled(_local2.enable);
_local1++;
}
if (_local2.enable) {
_local2.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].drawItem(_local2.getItemAt(_local2.topDisplayed + _local1), _local2.isSelected(_local2.topDisplayed + _local1));
_local1++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.boundingBox_mc._xscale = (_local1.boundingBox_mc._yscale = 100);
_local1.boundingBox_mc._xscale = (_local1.width * 100) / _local1.boundingBox_mc._width;
_local1.boundingBox_mc._yscale = (_local1.height * 100) / _local1.boundingBox_mc._height;
var _local2 = 0;
while (_local2 < _local1.numDisplayed) {
_local1.container_mc.attachMovie(_local1.itemSymbol, ("fListItem" + _local2) + "_mc", 10 + _local2, {controller:_local1, itemNum:_local2});
var _local3 = _local1.container_mc[("fListItem" + _local2) + "_mc"];
var offset = ((_local1.scrollOffset == undefined) ? 0 : (_local1.scrollOffset));
_local3.setSize(_local1.width - offset, _local1.itmHgt);
_local3._y = (_local1.itmHgt - 2) * _local2;
_local2++;
}
_local1.updateControl();
if (_local1.focused) {
_local1.myOnSetFocus();
}
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2] >= firstRow) {
_local1.selected[_local2] = _local1.selected[_local2] + ((lastRow - firstRow) + 1);
_local1.setSelectedIndex(_local1.selected[_local2], false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (_local1.selectHolder == index) {
_local1.selectionDeleted = true;
}
if (((_local1.topDisplayed + _local1.numDisplayed) >= _local1.getLength()) && (_local1.topDisplayed > 0)) {
_local1.topDisplayed--;
if (_local1.selectionDeleted && ((index - 1) >= 0)) {
_local1.setSelectedIndex(index - 1, false);
}
} else if (_local1.selectionDeleted) {
var len = _local1.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
_local1.setSelectedIndex(index - 1, false);
} else {
_local1.setSelectedIndex(index, false);
}
}
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2] > firstRow) {
_local1.selected[_local2]--;
}
}
} else {
_local1.clearSelected();
_local1.topDisplayed = 0;
}
} else if (event == "sort") {
var len = _local1.getLength();
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var _local3 = _local1.dataProvider.getItemID(_local2);
if (_local3 == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[String(_local3)] = _local2;
}
_local2++;
}
}
_local1.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local1 = this;
_local1.attachMovie(_local1.itemSymbol, "tmpItem_mc", 0, {controller:_local1});
_local1.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local1.itmHgt = _local1.tmpItem_mc._height;
_local1.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local1 = this;
var _local2 = index;
if (selectedFlag && (!_local1.isSelected(_local2))) {
_local1.selected[String(_local1.dataProvider.getItemID(_local2))] = _local2;
} else if (!selectedFlag) {
delete _local1.selected[String(_local1.dataProvider.getItemID(_local2))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))] != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local1 = this;
for (var _local3 in _local1.selected) {
var _local2 = _local1.selected[_local3];
if ((_local1.topDisplayed <= _local2) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), false);
}
}
delete _local1.selected;
_local1.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
var _local2 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local2 == undefined)) {
_local1.changeFlag = false;
} else {
_local1.changeFlag = true;
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local1 = this;
var _local2 = _local1.getSelectedIndex();
var _local3 = _local2 + incr;
if ((_local2 < _local1.topDisplayed) || (_local2 >= (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.setScrollPosition(_local2);
}
if ((_local3 >= (_local1.topDisplayed + _local1.numDisplayed)) || (_local3 < _local1.topDisplayed)) {
_local1.setScrollPosition(_local1.topDisplayed + incr);
}
_local1.selectionHandler(_local3 - _local1.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
if (!_local1.focused) {
_local1.pressFocus();
}
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local1 = this;
if (_local1.changeFlag) {
_local1.executeCallBack();
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local2 = this;
super.myOnSetFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local1++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local2 = this;
super.myOnKillFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local1++;
}
};
#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) {
var _local1 = pos;
var _local2 = this;
if (_local2.enable) {
_local1 = Math.min(_local1, _local2.getLength() - _local2.numDisplayed);
_local1 = Math.max(_local1, 0);
_local2.scrollBar_mc.setScrollPosition(_local1);
}
};
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 _local1 = this;
var _local2 = _local1.getScrollPosition();
super.setSize(w, h);
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.initScrollBar();
_local1.setScrollPosition(_local2);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local1 = this;
if ((!_local1.permaScrollBar) && (_local1.getLength() <= _local1.numDisplayed)) {
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.scrollOffset = undefined;
} else {
if (_local1.scrollBar_mc == undefined) {
_local1.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local1.styleTable});
_local1.scrollBar_mc = _local1.container_mc.scrollBar_mc;
_local1.scrollBar_mc.setChangeHandler("scrollHandler", _local1);
_local1.scrollBar_mc.setSize(_local1.height);
_local1.scrollBar_mc._x = _local1.width - _local1.scrollBar_mc._width;
_local1.scrollBar_mc._y = 0;
_local1.scrollBar_mc.setLargeScroll(_local1.numDisplayed - 1);
_local1.scrollOffset = _local1.scrollBar_mc._width;
_local1.invalidate("setSize");
}
_local1.scrollBar_mc.setScrollProperties(_local1.numDisplayed, 0, _local1.getLength() - _local1.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local1 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local1;
if (_local2.lastPosition != _local1) {
_local2.updateControl();
}
_local2.lastPosition = _local1;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
super.clickHandler(itmNum);
if ((_local1.dragScrolling == undefined) && (_local1.scrollBar_mc != undefined)) {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
super.releaseHandler();
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1.container_mc._ymouse < 0) {
_local1.setScrollPosition(_local1.getScrollPosition() - 1);
_local1.selectionHandler(0);
_local1.scrollInterval = Math.max(25, (-23.8 * (-_local1.container_mc._ymouse)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else if (_local1.container_mc._ymouse > ((_local1.itmHgt - 2) * _local1.numDisplayed)) {
_local1.setScrollPosition(_local1.getScrollPosition() + 1);
_local1.selectionHandler(_local1.numDisplayed - 1);
_local1.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local1.container_mc._ymouse - ((_local1.itmHgt - 2) * _local1.numDisplayed)) - 2)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local2 = this;
if (_local2.focused) {
_local2.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local2.keyIncrs = new Array(1, -1, _local2.numDisplayed - 1, -(_local2.numDisplayed - 1), -_local2.getLength(), _local2.getLength());
var _local1 = 0;
while (_local1 < _local2.keyCodes.length) {
if (Key.isDown(_local2.keyCodes[_local1])) {
_local2.moveSelBy(_local2.keyIncrs[_local1]);
return;
}
_local1++;
}
_local2.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
this.findString(String.fromCharCode(_local1));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
var _local3 = this.getSelectedIndex();
var jump = 0;
var _local1 = _local3 + 1;
while (_local1 != _local3) {
var _local2 = this.getItemAt(_local1).label.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
var jump = (_local1 - _local3);
break;
}
if (_local1 >= (this.getLength() - 1)) {
_local1 = -1;
}
_local1++;
}
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 () {
var _local1 = this;
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:_local1.controller});
_local1.fLabel_mc._x = 2;
_local1.fLabel_mc._y = 0;
_local1.highlighted = false;
};
FSelectableItemClass.prototype.drawLabel = function (itmObj, selected) {
var _local2 = itmObj;
var _local1 = "";
if (_local2.label != undefined) {
_local1 = _local2.label;
} else if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
if (_local3 != "__ID__") {
_local1 = (_local2[_local3] + ", ") + _local1;
}
}
_local1 = _local1.substring(0, _local1.length - 2);
} else {
_local1 = _local2;
}
if (this.fLabel_mc.labelField.text != _local1) {
this.fLabel_mc.setLabel(_local1);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local1 = this;
var _local3 = selected;
_local1.drawLabel(itmObj);
if ((_local1.highlighted != _local3) || ((_local1.controller.focused != _local1.oldFocus) && (_local3))) {
_local1.setHighlighted(_local3);
var _local2 = (_local3 ? (_local1.controller.styleTable.textSelected.value) : (_local1.controller.styleTable.textColor.value));
if (_local2 == undefined) {
_local2 = (_local3 ? 16777215 : 0);
}
_local1.fLabel_mc.setColor(_local2);
}
_local1.oldFocus = _local1.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local1 = this;
_local1.width = width;
_local1.attachMovie("FHighlightSymbol", "highlight_mc", -16000);
_local1.highlight_mc._width = width;
_local1.highlight_mc._height = height;
_local1.highlight_mc.controller = _local1;
_local1.highlight_mc._alpha = 0;
_local1.fLabel_mc.setSize(_local1.width - 2);
_local1.fLabel_mc.labelField.selectable = false;
_local1.highlight_mc.trackAsMenu = true;
_local1.highlight_mc.onPress = function () {
var _local1 = this;
if (_local1.controller.enable) {
_local1.controller.controller.clickHandler(_local1.controller.itemNum);
}
};
_local1.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local1.highlight_mc.useHandCursor = false;
_local1.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local1.enable = _local2;
_local1.fLabel_mc.setEnabled(_local2);
_local1.highlight_mc.gotoAndStop((_local2 ? "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) {
var _local1 = this;
var _local2 = flag;
fade = _local1.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local2)) {
_local1.highlight_mc._alpha = (_local2 ? 100 : 0);
delete _local1.onEnterFrame;
} else {
_local1.fadeN = fade;
_local1.fadeX = 1;
_local1.highLight_mc._alpha = 20;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.highLight_mc._alpha = (60 * Math.sqrt((_local1.fadeX++) / _local1.fadeN)) + 40;
if (_local1.fadeX > _local1.fadeN) {
delete _local1.onEnterFrame;
}
};
}
_local1.highlighted = _local2;
};
#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() {
var _local1 = this;
_local1.itemSymbol = "FListItemSymbol";
_local1.init();
_local1.permaScrollBar = true;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.mcCount = 2;
_local1.boundingBox_mc.gotoAndStop(1);
_local1.width = (_local1._xscale * _local1.boundingBox_mc._width) / 100;
_local1.height = (_local1._yscale * _local1.boundingBox_mc._height) / 100;
_local1._yscale = (_local1._xscale = 100);
_local1.setSize(_local1.width, _local1.height);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var _local1 = this;
var _local2 = new Array();
for (var _local3 in _local1.selected) {
_local2.push(_local1.selected[_local3]);
}
if (_local2.length <= 0) {
return(undefined);
}
return(_local2);
};
FListBoxClass.prototype.getSelectedItems = function () {
var _local2 = this.getSelectedIndices();
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(this.getItemAt(_local2[_local1]));
_local1++;
}
if (_local3.length <= 0) {
return(undefined);
}
return(_local3);
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
var _local2 = indexArray;
var _local3 = this;
_local3.clearSelected();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.selectItem(_local2[_local1], true);
_local1++;
}
_local3.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var _local2 = this;
var _local1 = (count * (_local2.itmHgt - 2)) + 2;
_local2.setSize(_local2.width, _local1);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (!_local1.enable) {
} else {
_local3 = Math.max(_local3, 20);
_local2 = Math.max(_local2, 40);
_local1.container_mc.removeMovieClip();
_local1.mcCount++;
_local1.createEmptyMovieClip("container_mc" + _local1.mcCount, _local1.mcCount);
_local1.container_mc = _local1["container_mc" + _local1.mcCount];
_local1.measureItmHgt();
_local1.numDisplayed = Math.floor(_local2 / (_local1.itmHgt - 2));
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local3, _local1.height);
}
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
if (_local1.isAKludge) {
var _local3 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local3) == undefined) {
_local1.changeFlag = false;
return;
}
_local1.changeFlag = true;
if (((!_local1.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
_local1.clearSelected();
_local1.selectItem(_local3, true);
_local1.lastSelected = _local3;
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local3), _local1.isSelected(_local3));
} else if (Key.isDown(16) && (_local1.selectMultiple)) {
if (_local1.lastSelected == -1) {
_local1.lastSelected = _local3;
}
var incr = ((_local1.lastSelected < _local3) ? 1 : -1);
_local1.clearSelected();
var _local2 = _local1.lastSelected;
while (_local2 != _local3) {
_local1.selectItem(_local2, true);
if ((_local2 >= _local1.topDisplayed) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
_local2 = _local2 + incr;
}
_local1.selectItem(_local3, true);
_local1.container_mc[("fListItem" + (_local3 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local3), _local1.isSelected(_local3));
} else if (key.isDown(17)) {
var selectedFlag = _local1.isSelected(_local3);
if (!_local1.selectMultiple) {
_local1.clearSelected();
}
if (!((!_local1.selectMultiple) && (selectedFlag))) {
_local1.selectItem(_local3, !selectedFlag);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local1.topDisplayed + itemNum), _local1.isSelected(_local1.topDisplayed + itemNum));
}
_local1.lastSelected = _local3;
}
} else {
_local1.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 () {
var _local1 = this;
_local1.name = ((_local1._name == null) ? "_DEFAULT_" : (_local1._name));
_local1.prefix = ("FCInstantMessage." + _local1.name) + ".";
};
FCInstantMessageClass.prototype.onUnload = function () {
this.close();
};
FCInstantMessageClass.prototype.connect = function (nc) {
var _local1 = _root;
var _local2 = this;
_local2.nc = nc;
if (_local2.nc.FCInstantMessage == null) {
_local2.nc.FCInstantMessage = {};
}
_local2.nc.FCInstantMessage[_local2.name] = _local2;
user_so = SharedObject.getRemote("requestMessage", _local2.nc.uri, false);
user_so.owner = _local2;
user_so.onSync = function (list) {
var _local1 = _root;
_local1.clickedUserName = user_so.data.request;
_local1.callername = _local1.clickedUserName[1];
if (_local1.clickedUserName[0] == username) {
if (_local1.clickedUserName[1] != _local1.clickedUserName[0]) {
if (_local1.clickedUserName[2] == "axe") {
_local1.notice.theName = _local1.clickedUserName[1] + " has requested a game...";
_local1.notice.buddy = _local1.clickedUserName[1];
_local1.notice.gotoAndPlay("rec");
} else if (_local1.clickedUserName[3] == "accept") {
_local1.notice.theName = _local1.clickedUserName[1] + " has accepted your challenge!!";
_local1.buddy = _local1.clickedUserName[1];
_local1.notice.gotoAndPlay("rejected");
} else {
_local1.notice.theName = _local1.clickedUserName[1] + " has rejected your challenge!!";
_local1.notice.gotoAndStop("rejected");
}
}
}
};
user_so.connect(_local2.nc);
starter_so = SharedObject.getRemote("starterMessage", _local2.nc.uri, false);
starter_so.owner = _local2;
starter_so.onSync = function (list) {
var _local1 = _root;
trace("sync-ing");
_local1.starterInfo = starter_so.data.request;
_local1.callername = _local1.starterInfo[1];
if (_local1.starterInfo[3] != "loader") {
trace("TRING TRING");
if (_local1.starterInfo[0] == username) {
trace("trang trang");
if (_local1.waiting == 1) {
trace("starting GAME");
_local1.gotoAndPlay("loader2");
}
}
} else {
trace("loader shite");
_local1.lh2.loader._width = _local1.starterInfo[2];
}
};
starter_so.connect(_local2.nc);
};
FCInstantMessageClass.prototype.sendRequest = function (nameRequest) {
var _local1 = nameRequest;
trace("sending packet: " + _local1);
for (i in _local1) {
trace((("i " + i) + " : ") + _local1[i]);
}
privatePacket = new Array();
privatePacket[0] = _local1.label;
privatePacket[1] = username;
privatePacket[2] = "axe";
user_so.data.request = privatePacket;
if (privatePacket[0] != privatePacket[1]) {
_root.notice.theName = ("Waiting for " + _local1.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 _local1 = this;
var fullName = ("FCInstantMessage." + _local1.name);
_local1.nc.call(_local1.prefix + "close", null);
user_so.owner = null;
delete user_so.owner;
delete user_so.onSync;
user_so.close();
user_so = null;
_local1.nc.FCInstantMessage[_local1.name] = null;
_local1.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 () {
var _local1 = this;
if (_local1._name != "itemAsset") {
_local1.highlighted = false;
_local1.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local1 = this;
var _local2 = selected;
_local1.displayContent(itmObj, _local2);
if ((_local1.highlighted != _local2) || ((_local1.controller.focused != _local1.oldFocus) && (_local2))) {
_local1.setHighlighted(_local2);
}
_local1.oldFocus = _local1.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local1 = this;
var _local3 = width;
var _local2 = -16384;
_local1.width = _local3;
_local1.layoutContent(_local3);
_local1.attachMovie("FCFHighlightSymbol", "highlight_mc", _local2);
_local1.highlight_mc._x = 0.5;
_local1.highlight_mc._width = _local3 - 0.5;
_local1.highlight_mc._height = height;
_local1.highlight_mc.controller = _local1;
_local1.highlight_mc._alpha = 0;
_local1.highlight_mc.trackAsMenu = true;
_local1.highlight_mc.onPress = function () {
var _local1 = this;
if (_local1.controller.enable) {
_local1.controller.controller.clickHandler(_local1.controller.itemNum);
}
};
_local1.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local1.highlight_mc.useHandCursor = false;
_local1.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local1.enable = _local2;
_local1.fLabel_mc.setEnabled(_local2);
_local1.highlight_mc.gotoAndStop((_local2 ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
var _local1 = this;
_local1.attachMovie("FCFLabelSymbol", "fLabel_mc", 2, {hostComponent:_local1.controller});
_local1.fLabel_mc._x = 2;
_local1.fLabel_mc._y = 0;
_local1.fLabel_mc.setSize(width - 2);
_local1.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = itmObj;
var _local1 = "";
if (_local2.label != undefined) {
_local1 = _local2.label;
} else if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
if (_local3 != "__ID__") {
_local1 = (_local2[_local3] + ", ") + _local1;
}
}
_local1 = _local1.substring(0, _local1.length - 2);
} else {
_local1 = _local2;
}
if (this.fLabel_mc.labelField.text != _local1) {
this.fLabel_mc.setLabel(_local1);
}
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) {
var _local1 = this;
var _local2 = flag;
fade = _local1.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local2)) {
_local1.highlight_mc._alpha = (_local2 ? 100 : 0);
delete _local1.onEnterFrame;
} else {
_local1.fadeN = fade;
_local1.fadeX = 1;
_local1.highLight_mc._alpha = 20;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.highLight_mc._alpha = (60 * Math.sqrt((_local1.fadeX++) / _local1.fadeN)) + 40;
if (_local1.fadeX > _local1.fadeN) {
delete _local1.onEnterFrame;
}
};
}
_local1.highlighted = _local2;
};
#endinitclip
Symbol 224 MovieClip [FCDataProviderSymbol] Frame 1
#initclip 13
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
var _local3 = value;
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(_local3) == "object") {
_local2.items[_local1] = _local3;
} else {
_local2.items[_local1].label = _local3;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var eventObj = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
if (typeof(itemObj) == "object") {
_local2.items[_local1] = itemObj;
} else {
_local2.items[_local1].label = itemObj;
}
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
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) {
var _local1 = this;
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
#endinitclip
Symbol 225 MovieClip [FCFSelectableListSymbol] Frame 1
#initclip 14
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
var _local1 = this;
super.init();
_local1.enable = true;
_local1.selected = new Array();
_local1.topDisplayed = (_local1.numDisplayed = 0);
_local1.lastSelected = 0;
_local1.tabChildren = false;
if (_local1._name != undefined) {
_local1.dataProvider = new DataProviderClass();
_local1.dataProvider.addView(_local1);
}
};
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) {
var _local1 = this;
_local1.selectHolder = _local1.getSelectedIndex();
var _local2 = _local1.getItemAt(index);
_local1.dataProvider.removeItemAt(index);
return(_local2);
};
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) {
var _local1 = this;
_local1.lastSelID = _local1.dataProvider.getItemID(_local1.lastSelected);
_local1.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local2 = this;
for (var _local3 in _local2.selected) {
var _local1 = _local2.selected[_local3].sIndex;
if (_local1 != undefined) {
return(_local1);
}
}
return(undefined);
};
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 _local1 = this.getSelectedItem();
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.getLength())) && (_local1.enable)) {
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invalidate("updateControl");
if (flag != false) {
_local1.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
this.setScrollPosition(0);
this.clearSelected();
if (_local2 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((typeof(_local2[_local1]) == "string") ? ({label:_local2[_local1]}) : (_local2[_local1]));
this.dataProvider.addItem(_local3);
_local1++;
}
} else {
this.dataProvider = _local2;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local1 = this;
_local1.tmpPos = _local1.getScrollPosition();
_local1.itemSymbol = linkID;
_local1.invalidate("setSize");
_local1.setScrollPosition(_local1.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
_local2.cleanUI();
super.setEnabled(enabledFlag);
_local2.enable = enabledFlag;
_local2.boundingBox_mc.gotoAndStop((_local2.enable ? "enabled" : "disabled"));
var _local3 = Math.min(_local2.numDisplayed, _local2.getLength());
var _local1 = 0;
while (_local1 < _local3) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].setEnabled(_local2.enable);
_local1++;
}
if (_local2.enable) {
_local2.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].drawItem(_local2.getItemAt(_local2.topDisplayed + _local1), _local2.isSelected(_local2.topDisplayed + _local1));
_local1++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.boundingBox_mc._xscale = (_local1.boundingBox_mc._yscale = 100);
_local1.boundingBox_mc._xscale = (_local1.width * 100) / _local1.boundingBox_mc._width;
_local1.boundingBox_mc._yscale = (_local1.height * 100) / _local1.boundingBox_mc._height;
var _local2 = 0;
while (_local2 < _local1.numDisplayed) {
_local1.container_mc.attachMovie(_local1.itemSymbol, ("fListItem" + _local2) + "_mc", 10 + _local2, {controller:_local1, itemNum:_local2});
var _local3 = _local1.container_mc[("fListItem" + _local2) + "_mc"];
var offset = ((_local1.scrollOffset == undefined) ? 0 : (_local1.scrollOffset));
_local3.setSize(_local1.width - offset, _local1.itmHgt);
_local3._y = (_local1.itmHgt - 2) * _local2;
_local2++;
}
_local1.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var _local2 in _local1.selected) {
if ((_local1.selected[_local2].sIndex != undefined) && (_local1.selected[_local2].sIndex >= firstRow)) {
_local1.selected[_local2].sIndex = _local1.selected[_local2].sIndex + ((lastRow - firstRow) + 1);
_local1.setSelectedIndex(_local1.selected[_local2].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (_local1.selectHolder == index) {
_local1.selectionDeleted = true;
}
if (((_local1.topDisplayed + _local1.numDisplayed) >= _local1.getLength()) && (_local1.topDisplayed > 0)) {
_local1.topDisplayed--;
if (_local1.selectionDeleted && ((index - 1) >= 0)) {
_local1.setSelectedIndex(index - 1, false);
}
} else if (_local1.selectionDeleted) {
var len = _local1.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
_local1.setSelectedIndex(index - 1, false);
} else {
_local1.setSelectedIndex(index, false);
}
}
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2].sIndex > firstRow) {
_local1.selected[_local2].sIndex--;
}
}
} else {
_local1.clearSelected();
_local1.topDisplayed = 0;
}
} else if (event == "sort") {
var len = _local1.getLength();
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var _local3 = _local1.dataProvider.getItemID(_local2);
if (_local3 == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
_local1.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local1 = this;
_local1.attachMovie(_local1.itemSymbol, "tmpItem_mc", 0, {controller:_local1});
_local1.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local1.itmHgt = _local1.tmpItem_mc._height;
_local1.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local1 = this;
var _local2 = index;
if (selectedFlag && (!_local1.isSelected(_local2))) {
_local1.selected[String(_local1.dataProvider.getItemID(_local2))] = {sIndex:_local2};
} else if (!selectedFlag) {
delete _local1.selected[String(_local1.dataProvider.getItemID(_local2))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local1 = this;
for (var _local3 in _local1.selected) {
var _local2 = _local1.selected[_local3].sIndex;
if (((_local2 != undefined) && (_local1.topDisplayed <= _local2)) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), false);
}
}
delete _local1.selected;
_local1.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
var _local2 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local2 == undefined)) {
_local1.changeFlag = false;
} else {
_local1.changeFlag = true;
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local1 = this;
var _local3 = _local1.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(_local1.getLength() - 1, _local2);
if (_local2 == _local3) {
} else {
if ((_local3 < _local1.topDisplayed) || (_local3 >= (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.setScrollPosition(_local3);
}
if ((_local2 >= (_local1.topDisplayed + _local1.numDisplayed)) || (_local2 < _local1.topDisplayed)) {
_local1.setScrollPosition(_local1.topDisplayed + incr);
}
_local1.selectionHandler(_local2 - _local1.topDisplayed);
}
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (!_local1.focused) {
_local1.pressFocus();
}
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local1 = this;
if (_local1.changeFlag) {
_local1.executeCallBack();
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local2 = this;
super.myOnSetFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local1++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local2 = this;
super.myOnKillFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local1++;
}
};
#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 () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("FCScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbMidTop_mc = _local1.scrollThumb_mc.mc_sliderMidTop;
_local1.thumbMidFloat_mc = _local1.scrollThumb_mc.mc_sliderMidFloat;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 30);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yscale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbMidTop_mc._height = _local1.thumbMid_mc._height / 2;
_local1.thumbMidTop_mc._y = _local1.thumbTop_mc._height;
_local1.thumbMidFloat_mc._y = _local1.thumbMidTop_mc._y + _local1.thumbMidTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
var _local2 = 20;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
_local1.scrollTrack_mc._height = _local1.scrollTrack_mc._height - _local2;
_local1.scrollTrack_mc._y = _local2 / 2;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("FCUpArrow", "upArrow_mc", 1);
_local1.attachMovie("FCDownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.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) {
var _local1 = pos;
var _local2 = this;
if (_local2.enable) {
_local1 = Math.min(_local1, _local2.getLength() - _local2.numDisplayed);
_local1 = Math.max(_local1, 0);
_local2.scrollBar_mc.setScrollPosition(_local1);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
var _local1 = this;
_local1.permaScrollBar = !flag;
_local1.setSize(_local1.width, _local1.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = _local1.getScrollPosition();
super.setSize(w, h);
if (_local1.scrollBar_mc != undefined) {
_local1.removed = true;
}
_local1.scrollBar_mc = undefined;
_local1.initScrollBar();
_local1.setScrollPosition(_local2);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local1 = this;
if ((!_local1.permaScrollBar) && (_local1.getLength() <= _local1.numDisplayed)) {
if (_local1.removed) {
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.scrollOffset = undefined;
_local1.invalidate("setSize");
}
} else {
if (_local1.scrollBar_mc == undefined) {
_local1.container_mc.attachMovie("FCFScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local1.styleTable});
_local1.scrollBar_mc = _local1.container_mc.scrollBar_mc;
_local1.scrollBar_mc.setChangeHandler("scrollHandler", _local1);
_local1.scrollBar_mc.setSize(_local1.height);
_local1.scrollBar_mc._x = _local1.width - _local1.scrollBar_mc._width;
_local1.scrollBar_mc._y = 0;
_local1.scrollBar_mc.setLargeScroll(_local1.numDisplayed - 1);
_local1.scrollOffset = _local1.scrollBar_mc._width;
_local1.invalidate("setSize");
}
_local1.scrollBar_mc.setScrollProperties(_local1.numDisplayed, 0, _local1.getLength() - _local1.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local1 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local1;
if (_local2.lastPosition != _local1) {
_local2.updateControl();
}
_local2.lastPosition = _local1;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
super.clickHandler(itmNum);
if ((_local1.dragScrolling == undefined) && (_local1.scrollBar_mc != undefined)) {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1.container_mc._ymouse < 0) {
_local1.setScrollPosition(_local1.getScrollPosition() - 1);
_local1.selectionHandler(0);
_local1.scrollInterval = Math.max(25, (-23.8 * (-_local1.container_mc._ymouse)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else if (_local1.container_mc._ymouse > ((_local1.itmHgt - 2) * _local1.numDisplayed)) {
_local1.setScrollPosition(_local1.getScrollPosition() + 1);
_local1.selectionHandler(_local1.numDisplayed - 1);
_local1.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local1.container_mc._ymouse - ((_local1.itmHgt - 2) * _local1.numDisplayed)) - 2)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local2 = this;
if (_local2.focused) {
_local2.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local2.keyIncrs = new Array(1, -1, _local2.numDisplayed - 1, -(_local2.numDisplayed - 1), -_local2.getLength(), _local2.getLength());
var _local1 = 0;
while (_local1 < _local2.keyCodes.length) {
if (Key.isDown(_local2.keyCodes[_local1])) {
_local2.moveSelBy(_local2.keyIncrs[_local1]);
return;
}
_local1++;
}
_local2.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
this.findString(String.fromCharCode(_local1));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
} else {
var _local3 = this.getSelectedIndex();
var jump = 0;
var _local1 = _local3 + 1;
while (_local1 != _local3) {
var _local2 = this.getItemAt(_local1).label.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
var jump = (_local1 - _local3);
break;
}
if (_local1 >= (this.getLength() - 1)) {
_local1 = -1;
}
_local1++;
}
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 () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, 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 () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FCFLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
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 () {
var _local1 = this;
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.attachMovie("FCfpb_states", "fpbState_mc", 1);
_local1.attachMovie("FCFLabelSymbol", "fLabel_mc", 2);
_local1.attachMovie("FCfpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
_local1.btnState = false;
_local1.setClickHandler(_local1.clickHandler);
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
_local1.ROLE_SYSTEM_PUSHBUTTON = 43;
_local1.STATE_SYSTEM_PRESSED = 8;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var _local1 = this.fpb_hitArea_mc;
this.hitArea = _local1;
_local1._visible = false;
_local1._width = w;
_local1._height = ((arguments.length > 1) ? (h) : (_local1._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = w;
var _local3 = h;
_local2 = ((_local2 < 6) ? 6 : (_local2));
if (arguments.length > 1) {
if (_local3 < 6) {
_local3 = 6;
}
}
super.setSize(_local2, _local3);
_local1.setLabel(_local1.getLabel());
_local1.arrangeLabel();
_local1.setHitArea(_local2, _local3);
_local1.boundingBox_mc._width = _local2;
_local1.boundingBox_mc._height = _local3;
_local1.drawFrame();
if (_local1.focused) {
super.myOnSetFocus();
}
_local1.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var _local3 = this;
var _local1 = _local3.fLabel_mc;
var h = _local3.height;
var w = (_local3.width - 2);
var _local2 = 1;
_local3.fLabel_mc.setSize(w - (_local2 * 4));
_local1._x = _local2 * 3;
_local1._y = (h / 2) - (_local1._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
_local1.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if (enable || (enable == undefined)) {
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(true);
_local1.enabled = true;
super.setEnabled(true);
} else {
_local1.fpbState_mc.gotoAndStop(4);
_local1.drawFrame();
_local1.flabel_mc.setEnabled(false);
_local1.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = "center")) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 1)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 1)) : undefined);
if (_local1.fLabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.fLabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.fLabel_mc.labelField.setTextFormat(_local1.textStyle);
_local1.setEnabled(_local1.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var _local3 = this;
var _local2 = 1;
var x1 = 0;
var y1 = 0;
var x2 = _local3.width;
var y2 = _local3.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[_local3.fpbState_mc._currentframe - 1];
var mc = "frame";
var _local1 = 0;
while (_local1 < 6) {
x1 = x1 + ((_local1 % 2) * _local2);
y1 = y1 + ((_local1 % 2) * _local2);
x2 = x2 - (((_local1 + 1) % 2) * _local2);
y2 = y2 - (((_local1 + 1) % 2) * _local2);
var w = (Math.abs(x1 - x2) + (2 * _local2));
var h = (Math.abs(y1 - y2) + (2 * _local2));
_local3.fpbState_mc[frame][mc + _local1]._width = w;
_local3.fpbState_mc[frame][mc + _local1]._height = h;
_local3.fpbState_mc[frame][mc + _local1]._x = x1 - _local2;
_local3.fpbState_mc[frame][mc + _local1]._y = y1 - _local2;
_local1++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((arguments.length < 2) ? (_local1._parent) : (obj));
_local1.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.clickHandler](_local1);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
var _local1 = this;
_local1.incrVal = 1;
_local1.initx = _local1[mc]._x - (_local1.getBtnState() * _local1.incrVal);
_local1.inity = _local1[mc]._y - (_local1.getBtnState() * _local1.incrVal);
_local1.togx = _local1.initx + _local1.incrVal;
_local1.togy = _local1.inity + _local1.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 () {
var _local1 = this;
_local1.pressFocus();
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
_local1.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
var _local1 = this;
_local1.fpbState_mc.gotoAndStop(2);
_local1.drawFrame();
_local1.executeCallBack();
_local1.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.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 () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
var _local1 = this;
_local1.setBtnState(false);
_local1.fpbState_mc.gotoAndStop(1);
_local1.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
var _local1 = this;
_local1.setBtnState(true);
_local1.fpbState_mc.gotoAndStop(3);
_local1.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1.pressOnce == undefined)) {
_local1.onPress();
_local1.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) {
var _local1 = this;
if (_local1.pressOnce) {
return(_local1.master.STATE_SYSTEM_PRESSED);
}
return(_local1.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() {
var _local1 = this;
_local1.itemSymbol = "FCFListItemSymbol";
_local1.init();
_local1.permaScrollBar = true;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.boundingBox_mc.gotoAndStop(1);
_local1.width = _local1._width;
_local1.height = _local1._height;
_local1._yscale = (_local1._xscale = 100);
_local1.setSize(_local1.width, _local1.height);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FCFListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var _local1 = this;
var _local2 = new Array();
for (var _local3 in _local1.selected) {
_local2.push(_local1.selected[_local3].sIndex);
}
if (_local2.length <= 0) {
return(undefined);
}
return(_local2);
};
FListBoxClass.prototype.getSelectedItems = function () {
var _local2 = this.getSelectedIndices();
var _local3 = new Array();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.push(this.getItemAt(_local2[_local1]));
_local1++;
}
if (_local3.length <= 0) {
return(undefined);
}
return(_local3);
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
var _local2 = indexArray;
var _local3 = this;
_local3.clearSelected();
var _local1 = 0;
while (_local1 < _local2.length) {
_local3.selectItem(_local2[_local1], true);
_local1++;
}
_local3.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var _local2 = this;
var _local1 = (count * (_local2.itmHgt - 2)) + 2;
_local2.setSize(_local2.width, _local1);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = h;
var _local3 = w;
if (!_local1.enable) {
} else {
_local3 = Math.max(_local3, 20);
_local2 = Math.max(_local2, 40);
_local1.container_mc.removeMovieClip();
_local1.container_mc = _local1.createEmptyMovieClip("container", 3);
_local1.measureItmHgt();
_local1.numDisplayed = Math.floor(_local2 / (_local1.itmHgt - 2));
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local3, _local1.height);
}
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
if (_local1.clickFilter) {
var _local3 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local3) == undefined) {
_local1.changeFlag = false;
return;
}
_local1.changeFlag = true;
if (((!_local1.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
_local1.clearSelected();
_local1.selectItem(_local3, true);
_local1.lastSelected = _local3;
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local3), _local1.isSelected(_local3));
} else if (Key.isDown(16) && (_local1.selectMultiple)) {
if (_local1.lastSelected == -1) {
_local1.lastSelected = _local3;
}
var incr = ((_local1.lastSelected < _local3) ? 1 : -1);
_local1.clearSelected();
var _local2 = _local1.lastSelected;
while (_local2 != _local3) {
_local1.selectItem(_local2, true);
if ((_local2 >= _local1.topDisplayed) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
_local2 = _local2 + incr;
}
_local1.selectItem(_local3, true);
_local1.container_mc[("fListItem" + (_local3 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local3), _local1.isSelected(_local3));
} else if (key.isDown(17)) {
var selectedFlag = _local1.isSelected(_local3);
if (!_local1.selectMultiple) {
_local1.clearSelected();
}
if (!((!_local1.selectMultiple) && (selectedFlag))) {
_local1.selectItem(_local3, !selectedFlag);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local1.topDisplayed + itemNum), _local1.isSelected(_local1.topDisplayed + itemNum));
}
_local1.lastSelected = _local3;
}
} else {
_local1.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 () {
var _local1 = this;
_local1.name = ((_local1._name == null) ? "_DEFAULT_" : (_local1._name));
_local1.prefix = ("FCSimpleConnect." + _local1.name) + ".";
_local1.username_txt.onKillFocus = function () {
this._parent.hasFocus = false;
};
_local1.username_txt.onSetFocus = function () {
this._parent.hasFocus = true;
};
_local1.enterListener = new Object();
_local1.enterListener.owner = _local1;
_local1.enterListener.onKeyDown = function () {
var _local1 = this;
if (_local1.owner.hasFocus) {
if (Key.isDown(13)) {
_local1.owner.loginChange();
} else {
clearInterval(_local1.owner.intervalID);
_local1.owner.intervalID = setInterval(_local1.owner, "checkName", 10);
}
}
};
Key.addListener(_local1.enterListener);
};
FCSimpleConnectClass.prototype.connect = function (nc) {
var _local1 = this;
_local1.nc = nc;
if (_local1.nc.FCSimpleConnect == null) {
_local1.nc.FCSimpleConnect = {};
}
_local1.nc.FCSimpleConnect[_local1.name] = _local1;
_local1.nc.call(_local1.prefix + "connect", null, _local1.username);
};
FCSimpleConnectClass.prototype.close = function () {
var _local1 = this;
trace("closing me :: bum head");
_local1.main_nc.close();
_local1.nc.call(_local1.prefix + "close", null);
_local1.nc.FCSimpleConnect[_local1.name] = null;
_local1.nc = null;
};
FCSimpleConnectClass.prototype.disconnect = function () {
var _local1 = this;
_local1.nc.call(_local1.prefix + "onDisconnect", null);
_local1.nc.FCSimpleConnect[_local1.name] = null;
_local1.nc = null;
};
FCSimpleConnectClass.prototype.serverConnect = function (username, appInstance) {
var _local1 = this;
var _local3 = username;
trace((("server connecting: " + _local3) + " :: ") + appInstance);
_local1.close();
var _local2 = 0;
while (_local2 < _local1.fcComponents.length) {
_local1._parent[_local1.fcComponents[_local2]].close();
_local2++;
}
_local1.main_nc.close();
_local1.main_nc = new NetConnection();
_local1.main_nc.owner = _local1;
if (appInstance != null) {
_local1.appDirectory = _local1.appDirectory + appInstance;
}
if (_local3 != null) {
_local1.username = _local3;
_local1.changeName_btn._visible = false;
_local1.inputBg_mc._visible = false;
} else {
_local1.local_so = SharedObject.getLocal("FCUsername", "/");
if (_local1.local_so.data.username != null) {
_local1.username = _local1.local_so.data.username;
_local1.changeName_btn.setEnabled(true);
}
}
_local1.main_nc.connect(_local1.removeSpaces(_local1.appDirectory), _local1.username, password);
trace("THIE APP DIRECTORY = " + _local1.appDirectory);
trace("THE USERNAME = " + _local1.username);
_local1.setUsername(_local1.username);
_local1.connect(_local1.main_nc);
_local2 = 0;
while (_local2 < _local1.fcComponents.length) {
_local1._parent[_local1.fcComponents[_local2]].setUsername(_local1.username);
_local1._parent[_local1.fcComponents[_local2]].connect(_local1.main_nc);
_local2++;
}
};
FCSimpleConnectClass.prototype.setUsername = function (newName) {
var _local1 = newName;
var _local2 = this;
if (_local1 == null) {
_local2.username_txt.text = "Your Name";
} else {
_local2.username = _local1;
_local2.username_txt.text = _local1;
}
};
FCSimpleConnectClass.prototype.changedName = function (newName) {
var _local2 = this;
var _local3 = newName;
var _local1 = 0;
while (_local1 < _local2.fcComponents.length) {
_local2._parent[_local2.fcComponents[_local1]].setUsername(_local3);
_local1++;
}
};
FCSimpleConnectClass.prototype.loginChange = function () {
var _local1 = this;
if (_local1.username_txt.text.length == 0) {
_local1.changeName_btn.setEnabled(false);
} else if (_local1.username != _local1.username_txt.text) {
_local1.username = _local1.username_txt.text;
_local1.main_nc.call(_local1.prefix + "changeName", null, _local1.username);
_local1.local_so.data.username = _local1.username;
_local1.local_so.flush();
}
};
FCSimpleConnectClass.prototype.checkName = function () {
var _local3 = this;
clearInterval(_local3.intervalID);
var _local2 = _local3.username_txt.text;
var _local1 = _local3.changeName_btn;
if (_local2.length == 0) {
_local1.setEnabled(false);
} else if (_local2.charAt(0) == " ") {
_local1.setEnabled(false);
} else if (_local1.enabled == false) {
_local1.setEnabled(true);
}
};
FCSimpleConnectClass.prototype.removeSpaces = function (str) {
var _local2 = str;
var _local1 = 0;
while (_local2.charAt(_local1) == " ") {
_local1++;
}
_local2 = _local2.substr(_local1);
_local1 = length(_local2) - 1;
while (_local2.charAt(_local1) == " ") {
_local1--;
}
_local2 = _local2.substr(0, _local1 + 1);
return(_local2);
};
FCSimpleConnectClass.prototype.setSize = function (newWidth, newHeight) {
var _local1 = this;
_local1._xscale = 100;
_local1._yscale = 100;
_local1.username_txt._width = newWidth - 73;
_local1.changeName_btn._x = newWidth - _local1.changeName_btn._width;
_local1.inputBg_mc._width = _local1.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 () {
var _local1 = this;
_local1.name = ((_local1._name == null) ? "_DEFAULT_" : (_local1._name));
_local1.prefix = ("FCPeopleList." + _local1.name) + ".";
};
FCPeopleListClass.prototype.onUnload = function () {
this.close();
};
FCPeopleListClass.prototype.connect = function (nc) {
var _local1 = this;
_local1.nc = nc;
if (_local1.nc.FCPeopleList == null) {
_local1.nc.FCPeopleList = {};
}
_local1.nc.FCPeopleList[_local1.name] = _local1;
_local1.so = SharedObject.getRemote(_local1.prefix + "users", _local1.nc.uri, false);
_local1.so.owner = _local1;
_local1.so.onSync = function (list) {
var _local1 = this;
_local1.owner.people_lb.removeAll();
var _local2 = 0;
var _local3 = 0;
for (var i in _local1.data) {
if (_local1.data[i] == " fc_lurker") {
_local3++;
} else if (_local1.data[i] != null) {
_local2++;
_local1.owner.people_lb.addItem(_local1.data[i]);
}
}
_local1.owner.lurkers = _local3;
_local1.owner.users = _local2;
_local1.owner.people_lb.sortItemsBy("label", "ASC");
};
_local1.so.connect(_local1.nc);
_local1.nc.call(_local1.prefix + "connect", null);
};
FCPeopleListClass.prototype.close = function () {
var _local1 = this;
var fullName = ("FCPeopleList." + _local1.name);
_local1.nc.call(_local1.prefix + "close", null);
_local1.so.owner = null;
delete _local1.so.owner;
delete _local1.so.onSync;
_local1.so.close();
_local1.so = null;
_local1.nc.FCPeopleList[_local1.name] = null;
_local1.nc = null;
};
FCPeopleListClass.prototype.setUsername = function (newName) {
var _local1 = this;
_local1.username = newName;
_local1.nc.call(_local1.prefix + "changeName", null);
};
FCPeopleListClass.prototype.setSize = function (newWidth, newHeight) {
var _local1 = this;
_local1._xscale = 100;
_local1._yscale = 100;
_local1.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 () {
var _local1 = this;
_local1.name = _local1._name;
if ((_local1.name == null) || (_local1.name == "")) {
_local1.name = "_DEFAULT_";
}
_local1.prefix = ("FCConnectionLight." + _local1.name) + ".";
_local1.light_mc.useHandCursor = true;
_local1.light_mc.orig_xscale = _local1.light_mc._xscale;
_local1.light_mc.orig_yscale = _local1.light_mc._yscale;
_local1.light_mc.onPress = function () {
this._xscale = this._xscale * 0.95;
this._yscale = this._yscale * 0.95;
};
_local1.light_mc.onRelease = function () {
var _local1 = this;
if (_local1._parent.details_mc._visible) {
_local1._parent.collapse();
} else {
_local1._parent.expand();
}
_local1._xscale = _local1.orig_xscale;
_local1._yscale = _local1.orig_yscale;
};
_local1.light_mc.onReleaseOutside = function () {
var _local1 = this;
_local1._xscale = _local1.orig_xscale;
_local1._yscale = _local1.orig_yscale;
};
};
FCConnectionLightClass.prototype.onUnload = function () {
this.close();
};
FCConnectionLightClass.prototype.connect = function (nc) {
var _local1 = this;
_local1.nc = nc;
if (_local1.nc.FCConnectionLight == null) {
_local1.nc.FCConnectionLight = {};
}
_local1.nc.FCConnectionLight[_local1.name] = _local1;
_local1.nc.call(_local1.prefix + "connect", null, _local1.interval * 1000);
if (_local1.nc.isConnected) {
_local1.showGreen();
}
_local1.checkInterval = setInterval(_local1, "onCheckInterval", 500);
};
FCConnectionLightClass.prototype.close = function () {
var _local1 = this;
clearInterval(_local1.checkInterval);
var fullName = ("FCConnectionLight." + _local1.name);
_local1.nc.call(_local1.prefix + "close", null);
_local1.nc.FCConnectionLight[_local1.name] = null;
_local1.nc = null;
_local1.showGrey();
_local1.details_mc.latency_txt.text = (_local1.details_mc.bwup_txt.text = (_local1.details_mc.bwdown_txt.text = "--"));
};
FCConnectionLightClass.prototype.onCheckInterval = function () {
var _local1 = this;
if (_local1.nc != null) {
if ((!_local1.isGrey()) && (!_local1.nc.isConnected)) {
_local1.showRed();
_local1.details_mc.latency_txt.text = (_local1.details_mc.bwup_txt.text = (_local1.details_mc.bwdown_txt.text = "--"));
} else if ((!_local1.isGreen()) && (!_local1.isYellow())) {
_local1.showGreen();
}
}
};
FCConnectionLightClass.prototype.expand = function () {
var _local1 = this;
var _local3 = "fc_details_" + _local1.name;
_root.attachMovie("FCDetailsSymbol", _local3, _local1.popUpLevel);
_local1.details_mc = _root[_local3];
_local1.details_mc._visible = false;
var _local2 = {x:_local1.light_mc._x, y:_local1.light_mc._y};
_local1.localToGlobal(_local2);
_local1.details_mc._x = _local2.x + _local1._width;
_local1.details_mc._y = _local2.y + _local1._height;
if (Math.abs(_local2.x - 0) > Math.abs(_local2.x - Stage.width)) {
_local1.details_mc._x = _local2.x - _local1.details_mc._width;
}
if (Math.abs(_local2.y - 0) > Math.abs(_local2.y - Stage.height)) {
_local1.details_mc._y = _local2.y - _local1.details_mc._height;
}
_local1.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) {
var _local1 = this;
if (ping > (1000 * _local1.threshold)) {
_local1.showYellow();
} else {
_local1.showGreen();
}
var _local2 = _local1.formatTime(ping / 1000);
var _local3 = _local1.formatRate(up * 8000);
var dnval = _local1.formatRate(down * 8000);
if (ping < 1) {
_local1.details_mc.latency_txt.text = "< 1 msec";
} else {
_local1.details_mc.latency_txt.text = (_local2.value + " ") + _local2.unit;
}
_local1.details_mc.bwup_txt.text = (_local3.value + " ") + _local3.unit;
_local1.details_mc.bwdown_txt.text = (dnval.value + " ") + dnval.unit;
};
FCConnectionLightClass.prototype.formatNumber = function (value) {
var _local1;
if (value < 0.001) {
_local1 = {value:0, exponent:0};
} else if (value < 1) {
_local1 = {value:value * 1000, exponent:-3};
} else if (value < 1000) {
_local1 = {value:value, exponent:0};
} else if (value < 1000000) {
_local1 = {value:value / 1000, exponent:3};
} else if (value < 1000000000) {
_local1 = {value:value / 1000000, exponent:6};
}
if (_local1.value < 10) {
_local1.value = Math.round(_local1.value * 100) / 100;
} else if (_local1.value < 100) {
_local1.value = Math.round(_local1.value * 10) / 10;
} else {
_local1.value = Math.round(_local1.value);
}
return(_local1);
};
FCConnectionLightClass.prototype.formatTime = function (value) {
var _local1 = this.formatNumber(value);
if (_local1.exponent == -3) {
_local1.unit = "msec";
} else if (_local1.exponent == 0) {
_local1.unit = "sec";
}
return(_local1);
};
FCConnectionLightClass.prototype.formatRate = function (value) {
var _local1 = this.formatNumber(value);
if (_local1.exponent == -3) {
(_local1.value = 0);
(_local1.exponent = 0);
} else if (_local1.exponent == 0) {
_local1.unit = "bit/s";
} else if (_local1.exponent == 3) {
_local1.unit = "kbit/s";
} else if (_local1.exponent == 6) {
_local1.unit = "mbit/s";
}
return(_local1);
};
#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 () {
var _local1 = this;
var _local2 = _root;
_local1.name = ((_local1._name == null) ? "_DEFAULT_" : (_local1._name));
_local1.prefix = ("FCChat." + _local1.name) + ".";
_local1.message_txt.onKillFocus = function () {
this._parent.hasFocus = false;
};
trace("setting up keypress");
_local1.message_txt.onSetFocus = function () {
this._parent.hasFocus = true;
};
_local2.enterListener = new Object();
_local2.enterListener.owner = _local1;
_local2.enterListener.onKeyDown = function () {
if (this.owner.hasFocus && (Key.isDown(13))) {
this.owner.sendMessage();
}
};
Key.addListener(_local2.enterListener);
_local1.username = null;
};
FCChatClass.prototype.onUnload = function () {
this.close();
};
FCChatClass.prototype.setUsername = function (newName) {
var _local1 = newName;
var _local2 = this;
_local2.username = _local1;
_local2.sendButton._visible = _local1 != null;
_local2.message_txt._visible = _local1 != null;
_local2.inputBg_mc._visible = _local1 != null;
};
FCChatClass.prototype.connect = function (nc) {
var _local1 = this;
trace("connecting chat");
_local1.history_txt.htmlText = "";
_local1.nc = nc;
if (_local1.nc.FCChat == null) {
_local1.nc.FCChat = {};
}
_local1.nc.FCChat[_local1.name] = _local1;
_local1.so = SharedObject.getRemote(_local1.prefix + "message", _local1.nc.uri, false);
_local1.so.owner = _local1;
_local1.so.message = function (mesg) {
this.owner.receiveMessage(mesg);
};
_local1.so.clearHistory = function (mesg) {
this.owner.receiveHistory([]);
};
_local1.so.connect(_local1.nc);
_local1.nc.call(_local1.prefix + "connect", null);
};
FCChatClass.prototype.close = function () {
var _local1 = this;
trace("closing chat");
var fullName = ("FCChat." + _local1.name);
_local1.nc.call(_local1.prefix + "close", null);
_local1.so.owner = null;
delete _local1.so.owner;
delete _local1.so.message;
_local1.so.close();
_local1.so = null;
_local1.nc.FCChat[_local1.name] = null;
_local1.nc = null;
};
FCChatClass.prototype.clearHistory = function () {
this.nc.call(this.prefix + "clearHistory", null);
};
FCChatClass.prototype.receiveHistory = function (h) {
var _local2 = h;
var _local3;
var _local1 = 0;
while (_local1 < _local2.length) {
_local3 = _local3 + _local2[_local1];
_local1++;
}
this.history_txt.htmlText = _local3;
this.history_txt.scroll = this.history_txt.maxscroll;
};
FCChatClass.prototype.receiveMessage = function (mesg) {
var _local1 = this;
_local1.history_txt.htmlText = _local1.history_txt.htmlText + mesg;
_local1.history_txt.scroll = _local1.history_txt.maxscroll;
};
FCChatClass.prototype.sendMessage = function (mesg) {
var _local1 = this;
trace("sending message");
_local1.nc.call(("FCChat." + _local1.name) + ".sendMessage", null, _local1.message_txt.text);
_local1.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 ("multi_options");
} else {
gotoAndStop ("login");
}
}
on (rollOver) {
bouncingBall.gotoAndStop("head2head");
}
on (rollOut) {
bouncingBall.gotoAndStop("off");
}
Symbol 294 Button
on (release) {
gotoAndStop ("training");
}
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 ("p1select");
}
on (rollOver) {
bouncingBall.gotoAndStop("1player");
}
on (rollOut) {
bouncingBall.gotoAndStop("off");
}
Symbol 308 MovieClip Frame 6
stop();
Symbol 309 MovieClip Frame 1
stop();
Symbol 325 Button
on (release) {
gotoAndStop ("mainMenu");
}
Symbol 327 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 341 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;
} 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 399 Button
on (release) {
gotoAndStop ("multi_options");
}
Symbol 414 Button
on (release) {
trace(buddy);
_root.fc_instant.sendAccReq(buddy, "decline");
gotoAndStop (1);
}
Symbol 418 Button
on (release) {
if (accepted != 1) {
accepted = 1;
_root.opener = 1;
_root.fc_instant.sendAccReq(buddy, "accept");
waitAccept = setInterval(wA, 3000);
}
}
Symbol 420 MovieClip Frame 1
stop();
Symbol 420 MovieClip Frame 6
stop();
Symbol 420 MovieClip Frame 16
function wA() {
var _local1 = _root;
_parent.simpleconnect.close();
if (_local1.opener == 1) {
_local1.opener++;
_local1.challengeInstance = _local1.clickedUserName[0];
_local1.START_FLASHCOM_CONNECT();
_parent.gotoAndStop("p2select");
}
}
stop();
Symbol 420 MovieClip Frame 43
stop();
_parent.simpleconnect.close();
_root.challengeInstance = _root.username;
_root.START_FLASHCOM_CONNECT();
_parent.gotoAndStop("p1select");
Symbol 428 Button
on (release) {
gotoAndStop (3);
}
Symbol 453 Button
on (release) {
gotoAndStop (3);
}
Symbol 467 MovieClip Frame 1
stop();
Symbol 469 Button
on (release) {
_root.player1Start();
}
Symbol 472 MovieClip Frame 7
stop();
Symbol 473 Button
on (release) {
_root.START_PLAYER1_SCROLL(16);
}
Symbol 474 Button
on (release) {
_root.START_PLAYER1_SCROLL(15);
}
Symbol 475 Button
on (release) {
_root.START_PLAYER1_SCROLL(14);
}
Symbol 476 Button
on (release) {
_root.START_PLAYER1_SCROLL(13);
}
Symbol 477 Button
on (release) {
_root.START_PLAYER1_SCROLL(12);
}
Symbol 478 Button
on (release) {
_root.START_PLAYER1_SCROLL(11);
}
Symbol 479 Button
on (release) {
_root.START_PLAYER1_SCROLL(10);
}
Symbol 480 Button
on (release) {
_root.START_PLAYER1_SCROLL(9);
}
Symbol 481 Button
on (release) {
_root.START_PLAYER1_SCROLL(8);
}
Symbol 482 Button
on (release) {
_root.START_PLAYER1_SCROLL(7);
}
Symbol 483 Button
on (release) {
_root.START_PLAYER1_SCROLL(6);
}
Symbol 484 Button
on (release) {
_root.START_PLAYER1_SCROLL(5);
}
Symbol 485 Button
on (release) {
_root.START_PLAYER1_SCROLL(4);
}
Symbol 486 Button
on (release) {
_root.START_PLAYER1_SCROLL(3);
}
Symbol 487 Button
on (release) {
_root.START_PLAYER1_SCROLL(2);
}
Symbol 488 Button
on (release) {
_root.START_PLAYER1_SCROLL(1);
}
Symbol 541 MovieClip Frame 1
Symbol 574 MovieClip Frame 1
stop();
Instance of Symbol 574 MovieClip "player_head" in Symbol 575 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 592 MovieClip Frame 1
stop();
Instance of Symbol 592 MovieClip "player_arm" in Symbol 593 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 610 MovieClip Frame 1
stop();
Instance of Symbol 610 MovieClip "player_body" in Symbol 611 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 627 MovieClip Frame 1
stop();
Instance of Symbol 627 MovieClip "player_shorts" in Symbol 628 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
stop();
Instance of Symbol 645 MovieClip "leg" in Symbol 646 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 645 MovieClip "playerleg" in Symbol 647 MovieClip Frame 1
onClipEvent (load) {
((_parent._parent._parent.id == 0) ? (gotoAndStop(_root.player1teamID)) : 0);
((_parent._parent._parent.id == 1) ? (gotoAndStop(_root.player2teamID)) : 0);
}
Symbol 648 MovieClip Frame 1
function playerCharGFX(char) {
var _local1 = char;
head.player_head.gotoAndStop(_local1);
torso.player_body.gotoAndStop(_local1);
arm.player_arm.gotoAndStop(_local1);
shorts.player_shorts.gotoAndStop(_local1);
legFront.leg.gotoAndStop(_local1);
legBack.leg.gotoAndStop(_local1);
}
stop();
Symbol 648 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 648 MovieClip Frame 12
gotoAndStop (1);
Symbol 648 MovieClip Frame 14
play();
Symbol 648 MovieClip Frame 32
gotoAndStop (1);
Symbol 648 MovieClip Frame 44
play();
Symbol 648 MovieClip Frame 62
gotoAndStop (1);
Symbol 653 Button
on (release) {
_root.soundOn = 1;
gotoAndStop (2);
}
Symbol 656 Button
on (release) {
_root.soundOn = 0;
gotoAndStop (1);
}
Symbol 657 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 2
stop();
Symbol 664 MovieClip Frame 1
stop();
Symbol 664 MovieClip Frame 29
stop();
Symbol 667 MovieClip Frame 1
stop();
Symbol 667 MovieClip Frame 21
stop();
Symbol 670 MovieClip Frame 1
stop();
Symbol 670 MovieClip Frame 10
stop();
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 36
stop();
Symbol 674 Button
on (release) {
_root.player2Start();
}
Symbol 675 Button
on (release) {
_root.START_PLAYER2_SCROLL(16);
}
Symbol 676 Button
on (release) {
_root.START_PLAYER2_SCROLL(15);
}
Symbol 677 Button
on (release) {
_root.START_PLAYER2_SCROLL(14);
}
Symbol 678 Button
on (release) {
_root.START_PLAYER2_SCROLL(13);
}
Symbol 679 Button
on (release) {
_root.START_PLAYER2_SCROLL(12);
}
Symbol 680 Button
on (release) {
_root.START_PLAYER2_SCROLL(11);
}
Symbol 681 Button
on (release) {
_root.START_PLAYER2_SCROLL(10);
}
Symbol 682 Button
on (release) {
_root.START_PLAYER2_SCROLL(9);
}
Symbol 683 Button
on (release) {
_root.START_PLAYER2_SCROLL(8);
}
Symbol 684 Button
on (release) {
_root.START_PLAYER2_SCROLL(7);
}
Symbol 685 Button
on (release) {
_root.START_PLAYER2_SCROLL(6);
}
Symbol 686 Button
on (release) {
_root.START_PLAYER2_SCROLL(5);
}
Symbol 687 Button
on (release) {
_root.START_PLAYER2_SCROLL(4);
}
Symbol 688 Button
on (release) {
_root.START_PLAYER2_SCROLL(3);
}
Symbol 689 Button
on (release) {
_root.START_PLAYER2_SCROLL(2);
}
Symbol 690 Button
on (release) {
_root.START_PLAYER2_SCROLL(1);
}
Symbol 711 MovieClip Frame 1
stop();
Symbol 718 Button
on (release) {
((_root.PL == 1) ? (_root.FLASHCOM_SEND_READY(1)) : (_root.FLASHCOM_SEND_READY(2)));
_root.gotoAndPlay("waitingForPlay");
}
Symbol 734 Button
on (release) {
_root.gotoAndPlay("gameInit");
}
Symbol 735 Button
on (release) {
_root.currentRound++;
gotoAndPlay ("fixtures");
}
Symbol 736 Button
on (release) {
_root.currentRound = 3;
gotoAndPlay ("fixtures");
}
Symbol 737 Button
on (release) {
_root.currentRound = 1;
gotoAndPlay ("fixtures");
}
Symbol 738 Button
on (release) {
_root.currentRound = 2;
gotoAndPlay ("fixtures");
}
Symbol 757 MovieClip Frame 1
stop();
Symbol 775 MovieClip Frame 1
Symbol 780 MovieClip Frame 1
stop();
Symbol 780 MovieClip Frame 66
stop();
Symbol 782 MovieClip Frame 1
stop();
Symbol 782 MovieClip Frame 60
stop();
Instance of Symbol 541 MovieClip "team3" in Symbol 785 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 541 MovieClip "team3" in Symbol 788 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 788 MovieClip Frame 80
((_root.gameOver == 0) ? (_root.reset()) : (_root.GAME_OVER()));
_parent.gotoAndStop(1);
stop();
Symbol 789 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 2
_root.SFXclap.gotoAndPlay(2);
Symbol 794 Button
on (release) {
_root.gotoIntro = true;
}
Symbol 803 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 1
stop();
Instance of Symbol 792 MovieClip in Symbol 804 MovieClip Frame 12
onClipEvent (mouseDown) {
_root.gotoIntro = true;
}
Instance of Symbol 803 MovieClip in Symbol 804 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 804 MovieClip Frame 81
stop();
Symbol 819 MovieClip Frame 16
stop();
Symbol 820 MovieClip Frame 1
stop();
Symbol 820 MovieClip Frame 2
stop();
Symbol 820 MovieClip Frame 3
stop();
Symbol 820 MovieClip Frame 4
_root.gameOver = 1;
Symbol 820 MovieClip Frame 5
stop();
Symbol 821 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 1
_root.playerpos[id] = "R";
stop();
Symbol 831 MovieClip Frame 2
play();
Symbol 831 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 831 MovieClip Frame 6
play();
Symbol 831 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 831 MovieClip Frame 10
play();
Symbol 831 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 831 MovieClip Frame 14
play();
Symbol 831 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 833 MovieClip Frame 1
_root.playerpos[id] = "R";
stop();
Symbol 833 MovieClip Frame 2
play();
Symbol 833 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 833 MovieClip Frame 6
play();
Symbol 833 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 833 MovieClip Frame 10
play();
Symbol 833 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 833 MovieClip Frame 14
play();
Symbol 833 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 835 MovieClip Frame 1
stop();