Frame 1
if ((getBytesLoaded() / getBytesTotal()) >= 1) {
gotoAndStop ("connect");
}
Instance of Symbol 224 MovieClip [API Connector (NewgroundsAPI)] in Frame 1
//component parameters
onClipEvent (construct) {
api_id = "12264:QPMsMOdU ";
encryption_key = "6xAwGVNzQhEgsr49tkMtf5oNFoaF1Ix7 ";
version = "";
fake_session = true;
debug = true;
error_screens = true;
medal_popups = true;
}
Frame 2
gotoAndPlay (1);
Frame 9
function loadXml() {
xml.load("http://www.bootyarcade.com/parsing/index.php?genre=" + selectedGenre);
cps = -1;
}
function playSong() {
s = new Sound();
s.onSoundComplete = playSong;
s.setVolume(100);
mute.gotoAndStop("on");
if (cps == (sa.length - 1)) {
cps = 0;
s.loadSound(sa[cps].earl, true);
} else {
s.loadSound(sa[++cps].earl, true);
}
mp3ArtistUrl.text = sa[cps].authorUrl;
mp3Number.text = sa[cps].musicId;
mp3Genre.text = sa[cps].genre;
playPause.gotoAndStop("pause");
textPos = 0;
}
function playPrevSong() {
s = new Sound();
s.onSoundComplete = playSong;
s.setVolume(100);
mute.gotoAndStop("on");
if (cps == sa.length) {
cps = 0;
s.loadSound(sa[cps].earl, true);
} else {
s.loadSound(sa[--cps].earl, true);
}
mp3ArtistUrl.text = sa[cps].authorUrl;
mp3Number.text = sa[cps].musicId;
mp3Genre.text = sa[cps].genre;
playPause.gotoAndStop("pause");
textPos = 0;
}
function pauseIt() {
pos = s.position;
s.stop();
}
function unPauseIt() {
s.start(pos / 1000);
}
function scroller() {
var _local1 = (sa[cps].artist + " - ") + sa[cps].track;
if ((textPos + size) >= _local1.length) {
trackInfo.text = ((sa[cps].artist + " - ") + sa[cps].track).substring(textPos, textPos + size);
}
if ((textPos + size) < _local1.length) {
textPos++;
trackInfo.text = ((sa[cps].artist + " - ") + sa[cps].track).substring(textPos, textPos + size);
} else {
clearInterval(intervalID);
intervalID = setInterval(scroller2, 1000);
}
}
function scroller2() {
var _local1 = (sa[cps].artist + " - ") + sa[cps].track;
if (textPos > 0) {
textPos--;
trackInfo.text = ((sa[cps].artist + " - ") + sa[cps].track).substring(textPos, textPos + size);
} else {
clearInterval(intervalID);
intervalID = setInterval(scroller, 1000);
}
}
var s = new Sound();
s.onSoundComplete = playSong;
s.setVolume(100);
var sa = new Array();
var history = new Array();
var selectedGenre = "";
var cps = -1;
var stationSelector = Math.ceil(Math.random() * 30);
if (stationSelector == 15) {
selectedGenre = "Heavy Metal";
}
if (stationSelector == 26) {
selectedGenre = "Indie";
}
if (stationSelector == 27) {
selectedGenre = "Pop";
}
if (stationSelector == 4) {
selectedGenre = "Country";
}
if (stationSelector == 2) {
selectedGenre = "Blues";
}
if (stationSelector == 1) {
selectedGenre = "Bluegrass";
}
if (stationSelector == 29) {
selectedGenre = "Ska";
}
if (stationSelector == 30) {
selectedGenre = "Miscellaneous";
}
if (stationSelector == 19) {
selectedGenre = "Latin";
}
if (stationSelector == 28) {
selectedGenre = "Punk";
}
if (stationSelector == 13) {
selectedGenre = "Funk";
}
if (stationSelector == 14) {
selectedGenre = "Goth";
}
if (stationSelector == 20) {
selectedGenre = "New Wave";
}
if (stationSelector == 10) {
selectedGenre = "Techno";
}
if (stationSelector == 11) {
selectedGenre = "Trance";
}
if (stationSelector == 12) {
selectedGenre = "Video Game";
}
if (stationSelector == 17) {
selectedGenre = "Hip Hop - Modern";
}
if (stationSelector == 16) {
selectedGenre = "Hip Hop - Olskool";
}
if (stationSelector == 21) {
selectedGenre = "R n B";
}
if (stationSelector == 25) {
selectedGenre = "Grunge";
}
if (stationSelector == 24) {
selectedGenre = "General Rock";
}
if (stationSelector == 22) {
selectedGenre = "Brit Pop";
}
if (stationSelector == 23) {
selectedGenre = "Classical Rock";
}
if (stationSelector == 8) {
selectedGenre = "Industrial";
}
if (stationSelector == 9) {
selectedGenre = "House";
}
if (stationSelector == 7) {
selectedGenre = "Drum N Bass";
}
if (stationSelector == 6) {
selectedGenre = "Dance";
}
if (stationSelector == 5) {
selectedGenre = "Ambient";
}
if (stationSelector == 18) {
selectedGenre = "Jazz";
}
if (stationSelector == 3) {
selectedGenre = "Classical";
}
var pos;
var xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = function () {
sa = new Array();
var _local3 = this.firstChild.childNodes;
var _local2 = 0;
while (_local2 < _local3.length) {
sa.push(new Song(_local3[_local2].attributes.url, _local3[_local2].attributes.musicId, _local3[_local2].attributes.authorUrl, _local3[_local2].attributes.artist, _local3[_local2].attributes.track, _local3[_local2].attributes.genre));
_local2++;
}
playSong();
};
loadXml();
playPause.onRollOver = function () {
if (this._currentframe == 1) {
this.gotoAndStop("pauseOver");
} else {
this.gotoAndStop("playOver");
}
};
playPause.onRollOut = (playPause.onReleaseOutside = function () {
if (this._currentframe == 10) {
this.gotoAndStop("pause");
} else {
this.gotoAndStop("play");
}
});
playPause.onRelease = function () {
if (this._currentframe == 10) {
this.gotoAndStop("playOver");
this._parent.pauseIt();
} else {
this.gotoAndStop("pauseOver");
this._parent.unPauseIt();
}
};
next.onRollOver = function () {
this.gotoAndStop("nextOver");
};
next.onRollOut = (next.onReleaseOutside = function () {
this.gotoAndStop("next");
});
next.onRelease = function () {
this._parent.playSong();
};
vote.onRollOver = function () {
this.gotoAndStop("voteOver");
};
vote.onRollOut = (vote.onReleaseOutside = function () {
this.gotoAndStop("vote");
});
vote.onRelease = function () {
getURL ("http://www.newgrounds.com/audio/listen/" + _root.sa[cps].musicId, (target = "_blank"));
};
prev.onRollOver = function () {
this.gotoAndStop("prevOver");
};
prev.onRollOut = (prev.onReleaseOutside = function () {
this.gotoAndStop("prev");
});
prev.onRelease = function () {
this._parent.playPrevSong();
};
mute.onRollOver = function () {
if (this._currentframe == 1) {
this.gotoAndStop("onOver");
} else {
this.gotoAndStop("offOver");
}
};
mute.onRollOut = (mute.onReleaseOutside = function () {
if (this._currentframe == 10) {
this.gotoAndStop("on");
} else {
this.gotoAndStop("off");
}
});
mute.onRelease = function () {
if (this._currentframe == 10) {
this.gotoAndStop("offOver");
s.setVolume(0);
} else {
this.gotoAndStop("onOver");
s.setVolume(100);
}
};
var size = 23;
var textPos = 0;
var intervalID = setInterval(scroller, 1000);
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
}
function handleConnection(success) {
if (success && (user_name != undefined)) {
status_txt.text = "Only Authorized Users Can Use That Login Name";
showLogin(true);
validateLogin();
butt_login.onRelease = validateLogin;
} else {
status_txt.text = "Sucks to be you! Chat can only be used by NG members who are logged into their account.";
}
}
function validateLogin() {
if ((login_txt.text.length > 0) && (pwd_txt.text.length >= 0)) {
serverOut.name = login_txt.text;
serverOut.pass = pwd_txt.text;
serverOut.sendAndLoad(serverPage, serverIn, "post");
}
}
function sendLogin() {
if (!_global.isBusy) {
smartfox.login(zone, login_txt.text, pwd_txt.text);
}
}
function showLogin(bool) {
butt_login._visible = bool;
login_txt._visible = bool;
loginBox._visible = bool;
pwd_label_txt._visible = bool;
pwdBox._visible = bool;
pwd_txt._visible = bool;
if (bool) {
Selection.setFocus("login_txt");
}
}
function showWindow(linkageName) {
_global.isBusy = true;
userList_lb.setEnabled(false);
disabler._visible = true;
var _local3 = _root.attachMovie(linkageName, linkageName, 9999);
_local3._x = (stageW / 2) - (_local3._width / 2);
_local3._y = (stageH / 2) - (_local3._height / 2);
return(_local3);
}
function hideWindow(wName) {
this[wName].removeMovieClip();
disabler._visible = false;
_global.isBusy = false;
userList_lb.setEnabled(true);
}
urls_allowed = ["www.newgrounds.com", "uploads.ungrounded.net"];
sitelock(urls_allowed);
stop();
Stage.showMenu = false;
var stageW = 800;
var stageH = 600;
disabler._visible = false;
_global.isBusy = false;
var evtQueue = [];
showLogin(false);
status_txt.text = "Connecting...";
var ip = "216.155.129.213";
var port = 9339;
var zone = "simpleChat";
var serverPage = "http://www.bootyarcade.com/sfsLogin.php";
var serverIn = new LoadVars();
var serverOut = new LoadVars();
var smartfox = (new it.gotoandplay.smartfoxserver.SmartFoxClient());
smartfox.debug = true;
smartfox.onConnection = handleConnection;
smartfox.connect(ip, port);
var user_name = com.newgrounds.API.getUserName();
serverIn.onLoad = function (success) {
if (success) {
if (this.res == "OK") {
sendLogin();
} else {
var _local2 = showWindow("errorWindow");
_local2.errorMsg.text = "UserName/Password Incorrect";
}
} else {
var _local2 = showWindow("errorWindow");
_local2.errorMsg.text = "UserName/Password Incorrect";
}
};
smartfox.onLogin = function (resObj) {
if (resObj.success) {
_global.myName = resObj.name;
} else {
_gloabl.isBusy = true;
var _local3 = showWindow("errorWindow");
_local3.errorMsg.text = resObj.error;
}
};
smartfox.onRoomListUpdate = function (o) {
evtQueue.push(o);
gotoAndStop ("chat");
};
smartfox.onConnectionLost = function () {
gotoAndStop ("connect");
};
Frame 16
var bmp = (new flash.display.BitmapData(this._width, this._height, false));
bmp.draw(this);
this.onMouseMove = function () {
var _local4 = bmp.getPixel(_xmouse, _ymouse);
var _local1 = _local4.toString(16).toUpperCase();
while (_local1.length < 6) {
_local1 = "0" + _local1;
}
var _local3 = Number("0x" + _local1.substr(0, 2));
var _local5 = Number("0x" + _local1.substr(2, 2));
var _local2 = Number("0x" + _local1.substr(4, 2));
testo.text = ((((((("#" + _local1) + " (R:") + _local3) + ", G:") + _local5) + ", B:") + _local2) + ")";
};
colorPicker.onRelease = function () {
var _local3 = bmp.getPixel(_xmouse, _ymouse);
var _local2 = _local3.toString(16).toUpperCase();
while (_local2.length < 6) {
_local2 = "0" + _local2;
}
var _local5 = Number("0x" + _local2.substr(0, 2));
var _local6 = Number("0x" + _local2.substr(2, 2));
var _local4 = Number("0x" + _local2.substr(4, 2));
_root.color = ("<font color='#" + _local2) + "'>";
trace(_root.color);
};
function onEnterKeyDown() {
if (Key.getCode() == 13) {
sendChatMsg();
}
}
function sendChatMsg() {
if (!_global.isBusy) {
String.prototype.stringReplace = function (find, replace) {
return(this.split(find).join(replace));
};
var _local4 = new Array();
var _local3 = input_txt.htmlText.split(" ");
if (((_local3.length > 1) && (input_txt.text.length < 110)) && (_local3[0] == "/me")) {
smartfox.sendPublicMessage(input_txt.text);
input_txt.htmlText = "";
} else if (((_local3.length > 1) && (input_txt.text.length < 110)) && (_local3[0] == "/ignore")) {
userName = _local3[1];
ignoreArray.push(userName);
input_txt.htmlText = "";
} else if (((_local3.length > 1) && (input_txt.text.length < 110)) && (_local3[0] == "/unignore")) {
userName = _local3[1];
cellNum = -1;
arrayLength = ignoreArray.length;
curNum = 0;
while ((cellNum < 0) && (arrayLength > 0)) {
if (ignoreArray[curNum] == userName) {
cellNum = curNum;
}
arrayLength--;
curNum++;
}
ignoreArray.splice(cellNum, 1);
input_txt.htmlText = "";
} else if (((_local3[0] != "") && (input_txt.text.length < 110)) && (_local3[0].length < 15)) {
input_txt.text = input_txt.text.stringReplace("size", "magnitude");
input_txt.text = input_txt.text.stringReplace("SIZE", "magnitude");
input_txt.text = input_txt.text.stringReplace("Size", "magnitude");
input_txt.text = input_txt.text.stringReplace("<br>", "");
input_txt.text = input_txt.text.stringReplace("<Br>", "");
input_txt.text = input_txt.text.stringReplace("<BR>", "");
input_txt.text = input_txt.text.stringReplace("img", "");
input_txt.text = input_txt.text.stringReplace("IMG", "");
input_txt.text = input_txt.text.stringReplace("Img", "");
_local4.unshift(color, input_txt.htmlText);
input_txt.htmlText = _local4.join(" ");
smartfox.sendPublicMessage(input_txt.text);
input_txt.htmlText = "";
}
}
}
function changeRoom() {
if (!_global.isBusy) {
var _local3 = roomList_lb.getSelectedItem();
var _local2 = _local3.data;
if (_local2 != smartfox.activeRoomId) {
var _local4 = smartfox.getRoom(_local2).isPrivate();
if (_local4) {
_global.newRoom = _local2;
showWindow("passwordWindow");
} else {
smartfox.joinRoom(_local3.data);
}
}
}
}
function loginProtectedRoom(pwd) {
hideWindow("passwordWindow");
smartfox.joinRoom(_global.newRoom, pwd);
}
function resetRoomSelected(id) {
var _local4 = roomList_lb.getEnabled();
roomList_lb.setEnabled(true);
var _local1 = 0;
while (_local1 < roomList_lb.getLength()) {
var _local2 = roomList_lb.getItemAt(_local1);
if (_local2.data == id) {
roomList_lb.setSelectedIndex(_local1);
break;
}
_local1++;
}
roomList_lb.setEnabled(_local4);
}
function userSelected() {
if (!_global.isBusy) {
var _local3 = userList_lb.getSelectedItem().data;
if (_local3 != smartfox.myUserId) {
_global.pmUid = _local3;
var _local4 = showWindow("pmWindow");
var _local5 = smartfox.getActiveRoom().getUserList();
var _local2 = _local5[_local3];
_local4.title_txt.text = "Send a private message to " + _local2.getName();
_local4.name_txt.text = _local2.getName();
_global.ignoreName = _local2.getName();
}
}
}
function sendPrivateMessage(m, recipient) {
smartfox.sendPrivateMessage(m, _global.pmUid);
hideWindow("pmWindow");
}
function makeNewRoom() {
showWindow("newRoomWindow");
}
function createRoom(name, pwd, max) {
hideWindow("newRoomWindow");
var _local1 = new Object();
_local1.name = name;
_local1.password = pwd;
_local1.maxUsers = max;
smartfox.createRoom(_local1);
}
function updateRoomStatus(roomId) {
var _local5 = smartfox.roomList[roomId];
var _local3 = ((_local5.getName() + " (") + _local5.getUserCount()) + ")";
var _local1 = 0;
while (_local1 < roomList_lb.getLength()) {
var _local2 = roomList_lb.getItemAt(_local1);
if (roomId == _local2.data) {
roomList_lb.replaceItemAt(_local1, _local3, _local2.data);
break;
}
_local1++;
}
}
function closeConnection() {
smartfox.disconnect();
gotoAndStop ("connect");
}
Key.removeListener(listener);
stop();
roomList_lb.setChangeHandler("changeRoom");
userList_lb.setChangeHandler("userSelected");
var color = "<font color='#FFFFFF'>";
var chatCount = 0;
var ignoreArray = new Array();
ignoreArray[0] = "nobodyever";
userName_txt.text = "" + _global.myName;
input_txt.text = "";
var listener;
listener = new Object();
listener.onKeyDown = onEnterKeyDown;
Key.addListener(listener);
smartfox.onRoomListUpdate = function (roomList) {
roomList_lb.removeAll();
for (var _local4 in roomList) {
var _local2 = roomList[_local4];
roomList_lb.addItem(((_local2.getName() + " (") + _local2.getUserCount()) + ")", _local2.getId());
}
this.imagesMenu.setStyleProperty("textColor", "0xFFFFFF");
roomList_lb.sortItemsBy("label", "ASC");
this.autoJoin();
};
if (evtQueue.length > 0) {
smartfox.onRoomListUpdate(evtQueue[0]);
delete evtQueue;
}
smartfox.onJoinRoom = function (roomObj) {
var _local6 = roomObj.getId();
var _local3 = roomObj.getUserList();
resetRoomSelected(_local6);
_global.currentRoom = roomObj;
chat_txt.htmlText = "";
links.htmlText = "";
userList_lb.removeAll();
for (var _local4 in _local3) {
var _local2 = _local3[_local4];
userList_lb.addItem(_local2.getName(), _local2.getId());
}
userList_lb.sortItemsBy("label", "ASC");
chat_txt.htmlText = chat_txt.htmlText + (("<font color='#FFFFFF'>Welcome to " + roomObj.getName()) + "!</font>");
};
smartfox.onJoinRoomError = function (errorMsg) {
var _local1 = showWindow("errorWindow");
_local1.errorMsg.text = errorMsg;
resetRoomSelected(smartfox.activeRoomId);
};
smartfox.onUserEnterRoom = function (fromRoom, user) {
userList_lb.addItem(user.getName(), user.getId());
userList_lb.sortItemsBy("label", "ASC");
updateRoomStatus(fromRoom);
};
smartfox.onUserLeaveRoom = function (fromRoom, usrId) {
var _local1 = 0;
while (_local1 < userList_lb.getLength()) {
var _local2 = userList_lb.getItemAt(_local1);
if (_local2.data == usrId) {
var _local3 = _local2.label;
userList_lb.removeItemAt(_local1);
break;
}
_local1++;
}
userList_lb.sortItemsBy("label", "ASC");
updateRoomStatus(fromRoom);
main_sb.setScrollPosition(chat_txt.maxscroll);
};
smartfox.onUserCountChange = function (roomObj) {
updateRoomStatus(roomObj.getId());
};
smartfox.onPublicMessage = function (msg, user) {
userList_lb.getItem(user.getName(), user.getId());
var _local6 = user.getName();
var _local3 = msg.split(" ");
i = 0;
while (i < ignoreArray.length) {
ignoreName = ignoreArray[i];
i++;
}
if (ignoreName != _local6) {
if ((_local3.length > 1) && (_local3[0] == "/me")) {
_local3.splice(0, 1);
chat_txt.htmlText = chat_txt.htmlText + (((("<b><font color='#444444'>" + user.getName()) + " ") + _local3.join(" ")) + "</font></b>");
main_sb.setScrollPosition(chat_txt.maxscroll);
} else {
var _local1 = user.getName();
var _local5 = user.getName();
if (((((((((((_local1 == "TomFulp") || (_local1 == "WadeFulp")) || (_local1 == "Stamper")) || (_local1 == "JohnnyUtah")) || (_local1 == "MindChamber")) || (_local1 == "liljim")) || (_local1 == "Tim")) || (_local1 == "Bob")) || (_local1 == "Mike")) || (_local1 == "PsychoGoldfish")) || (_local1 == "Rob")) {
chat_txt.htmlText = chat_txt.htmlText + ((((("<b><font color='#ff0000' size='13'><a href='http://" + user.getName()) + ".newgrounds.com' target='_blank'>") + user.getName()) + "</a></font>:</b> ") + msg);
main_sb.setScrollPosition(chat_txt.maxscroll);
} else if (_local5 == "PoderOdunk") {
chat_txt.htmlText = chat_txt.htmlText + ((((("<b><font color='#ffff00' size='14'><a href='http://" + user.getName()) + ".newgrounds.com' target='_blank'>") + user.getName()) + "</a></font>:</b> ") + msg);
main_sb.setScrollPosition(chat_txt.maxscroll);
} else {
chat_txt.htmlText = chat_txt.htmlText + ((((("<b><font color='#fb7400'><a href='http://" + user.getName()) + ".newgrounds.com' target='_blank'>") + user.getName()) + "</a></font>:</b> ") + msg);
main_sb.setScrollPosition(chat_txt.maxscroll);
}
}
}
};
smartfox.onPrivateMessage = function (msg, user) {
var _local1 = user.getName();
i = 0;
while (i < ignoreArray.length) {
ignoreName = ignoreArray[i];
i++;
}
if (ignoreName != _local1) {
chat_txt.htmlText = chat_txt.htmlText + ((("<b><font color='#009900'>[ PM > " + user.getName()) + " ]:</font></b> ") + msg);
main_sb.setScrollPosition(chat_txt.maxscroll);
}
};
smartfox.onAdminMessage = function (msg, user) {
var _local1 = showWindow("adminWindow");
_local1.errorMsg.text = _local1.errorMsg.text + (msg + newline);
};
smartfox.onRoomAdded = function (roomObj) {
roomList_lb.addItem(((roomObj.getName() + " (") + roomObj.getUserCount()) + ")", roomObj.getId());
roomList_lb.sortItemsBy("label", "ASC");
};
smartfox.onRoomDeleted = function (roomObj) {
var _local1 = 0;
while (_local1 < roomList_lb.getLength()) {
if (roomObj.getId() == roomList_lb.getItemAt(_local1).data) {
roomList_lb.removeItemAt(_local1);
break;
}
_local1++;
}
};
smartfox.onCreateRoomError = function (errorMsg) {
var _local1 = showWindow("errorWindow");
_local1.errorMsg.text = errorMsg;
};
Instance of Symbol 151 MovieClip [FListBoxSymbol] "userList_lb" in Frame 16
//component parameters
onClipEvent (construct) {
selectMultiple = false;
changeHandler = "";
}
Instance of Symbol 151 MovieClip [FListBoxSymbol] "roomList_lb" in Frame 16
//component parameters
onClipEvent (construct) {
selectMultiple = false;
changeHandler = "";
}
Instance of Symbol 140 MovieClip [FScrollBarSymbol] "main_sb" in Frame 16
//component parameters
onClipEvent (construct) {
_targetInstanceName = "chat_txt";
horizontal = false;
}
Symbol 16 Button
on (release) {
closeMe();
}
Symbol 17 MovieClip [adminWindow] Frame 1
function closeMe() {
_parent.hideWindow(this._name);
}
Symbol 20 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 20 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 20 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 23 MovieClip [FLabelSymbol] Frame 1
#initclip 36
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local2 = this.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
this.labelField.embedFonts = _local2;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = ((label == undefined) ? "" : (label));
if (this.labelField.text != "") {
this.labelField._height = this.labelField.textHeight + 2;
}
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var _local2 = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
this.setColor(_local2);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 24 MovieClip [FUIComponentSymbol] Frame 1
#initclip 34
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local19 = parseInt(value);
if (!isNaN(_local19)) {
value = _local19;
}
var _local18 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local18)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.substring(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local15 = propName.substring(4, propName.length);
var _local17 = _local15.substring(0, 1);
_local17 = _local17.toLowerCase();
_local15 = _local17 + _local15.substring(1, _local15.length);
this.textStyle[_local15] = value;
this.invalidate("setSize");
} else {
for (var _local16 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local16]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local18;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 37 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 49 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 58 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 59 MovieClip [UpArrow] Frame 1
stop();
Symbol 59 MovieClip [UpArrow] Frame 2
stop();
Symbol 59 MovieClip [UpArrow] Frame 3
stop();
Symbol 66 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 73 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 78 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 79 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 88 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 96 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 104 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 105 MovieClip [DownArrow] Frame 1
stop();
Symbol 105 MovieClip [DownArrow] Frame 2
stop();
Symbol 105 MovieClip [DownArrow] Frame 3
stop();
Symbol 108 Button
on (release) {
closeMe();
}
Symbol 109 MovieClip [errorWindow] Frame 1
function closeMe() {
_parent.hideWindow(this._name);
}
Selection.setFocus("roomName");
Symbol 114 Button
on (release) {
ignoreUser();
closeMe();
}
Symbol 116 Button
on (release) {
unIgnoreUser();
closeMe();
}
Symbol 119 Button
on (release) {
closeMe();
}
Symbol 120 Button
on (release) {
sendMessage();
}
Symbol 121 MovieClip [pmWindow] Frame 1
function closeMe() {
_parent.hideWindow(this._name);
}
function sendMessage() {
var _local3 = message.text;
if (_local3.length > 0) {
_parent.sendPrivateMessage(_local3, _global.pmUid);
message.text = "";
}
}
function ignoreUser() {
_parent.ignoreArray.push(_global.ignoreName);
trace("This is the ignore list: " + _parent.ignoreArray);
}
function unIgnoreUser() {
cellNum = -1;
arrayLength = _parent.ignoreArray.length;
curNum = 0;
while ((cellNum < 0) && (arrayLength > 0)) {
if (_parent.ignoreArray[curNum] == _global.ignoreName) {
cellNum = curNum;
}
arrayLength--;
curNum++;
}
_parent.ignoreArray.splice(cellNum, 1);
trace("This is the new ignore list: " + _parent.ignoreArray);
}
Selection.setFocus("message");
Symbol 125 Button
on (release) {
login();
}
Symbol 126 MovieClip [passwordWindow] Frame 1
function closeMe() {
_parent.hideWindow(this._name);
}
function login() {
var _local2 = pword.text;
if (_local2.length > 0) {
pword.text = "";
_parent.loginProtectedRoom(_local2);
}
}
Selection.setFocus("roomName");
Symbol 135 Button
on (release) {
create();
}
Symbol 136 MovieClip [newRoomWindow] Frame 1
function closeMe() {
_parent.hideWindow(this._name);
}
function create() {
if ((roomName.text != "") && (Number(maxUsers.text) > 1)) {
rName = roomName.text;
rPwd = pword.text;
max = Number(maxUsers.text);
roomName.text = "";
pword.text = "";
_parent.createRoom(rName, rPwd, max);
}
}
Selection.setFocus("roomName");
Symbol 139 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 140 MovieClip [FScrollBarSymbol] Frame 1
#initclip 37
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yscale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmlText");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 141 MovieClip [FListItemSymbol] Frame 1
#initclip 42
function FListItemClass() {
this.init();
}
FListItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FListItemSymbol", FListItemClass);
#endinitclip
Symbol 142 MovieClip [DataProviderSymbol] Frame 1
#initclip 35
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local2 = {event:"updateAll"};
viewRef.modelChanged(_local2);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var _local4 = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(_local4);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local4 = this.items[index];
this.items.splice(index, 1);
var _local3 = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(_local3);
return(_local4);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var _local4 = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = _local4;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = 0;
while (_local2 < this.views.length) {
this.views[_local2].modelChanged(eventObj);
_local2++;
}
};
#endinitclip
Symbol 143 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 39
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local2 = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:this.controller});
this.fLabel_mc._x = 2;
this.fLabel_mc._y = 0;
this.fLabel_mc.setSize(width - 2);
this.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = "";
if (itmObj.label != undefined) {
_local2 = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
if (this.fLabel_mc.labelField.text != _local2) {
this.fLabel_mc.setLabel(_local2);
}
var _local5 = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (_local5 == undefined) {
_local5 = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(_local5);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highlight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highlight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 144 MovieClip [FSelectableListSymbol] Frame 1
#initclip 38
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var _local2 = this.getItemAt(index);
this.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) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var _local3 in this.selected) {
var _local2 = this.selected[_local3].sIndex;
if (_local2 != undefined) {
return(_local2);
}
}
};
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 _local2 = this.getSelectedItem();
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local2 = 0;
while (_local2 < obj.length) {
var _local4 = ((typeof(obj[_local2]) == "string") ? ({label:obj[_local2]}) : (obj[_local2]));
this.dataProvider.addItem(_local4);
_local2++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var _local4 = Math.min(this.numDisplayed, this.getLength());
var _local3 = 0;
while (_local3 < _local4) {
this.container_mc[("fListItem" + _local3) + "_mc"].setEnabled(this.enable);
_local3++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = 0;
while (_local2 < this.numDisplayed) {
this.container_mc[("fListItem" + _local2) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + _local2), this.isSelected(this.topDisplayed + _local2));
_local2++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + _local3) + "_mc", 10 + _local3, {controller:this, itemNum:_local3});
var _local4 = this.container_mc[("fListItem" + _local3) + "_mc"];
var _local5 = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
_local4.setSize(this.width - _local5, this.itmHgt);
_local4._y = (this.itmHgt - 2) * _local3;
_local3++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local4 = eventObj.firstRow;
var _local6 = eventObj.lastRow;
var _local8 = eventObj.event;
if (_local8 == "addRows") {
for (var _local2 in this.selected) {
if ((this.selected[_local2].sIndex != undefined) && (this.selected[_local2].sIndex >= _local4)) {
this.selected[_local2].sIndex = this.selected[_local2].sIndex + ((_local6 - _local4) + 1);
this.setSelectedIndex(this.selected[_local2].sIndex, false);
}
}
} else if (_local8 == "deleteRows") {
if (_local4 == _local6) {
var _local5 = _local4;
if (this.selectHolder == _local5) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((_local5 - 1) >= 0)) {
this.setSelectedIndex(_local5 - 1, false);
}
} else if (this.selectionDeleted) {
var _local7 = this.getLength();
if (((_local5 == (_local7 - 1)) && (_local7 > 1)) || (_local5 > (_local7 / 2))) {
this.setSelectedIndex(_local5 - 1, false);
} else {
this.setSelectedIndex(_local5, false);
}
}
for (var _local2 in this.selected) {
if (this.selected[_local2].sIndex > _local4) {
this.selected[_local2].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (_local8 == "sort") {
var _local7 = this.getLength();
var _local2 = 0;
while (_local2 < _local7) {
if (this.isSelected(_local2)) {
var _local3 = this.dataProvider.getItemID(_local2);
if (_local3 == this.lastSelID) {
this.lastSelected = _local2;
}
this.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var _local3 in this.selected) {
var _local2 = this.selected[_local3].sIndex;
if (((_local2 != undefined) && (this.topDisplayed <= _local2)) && (_local2 < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (_local2 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local2), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local2 = this.topDisplayed + itemNum;
if (this.getItemAt(_local2 == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(_local2, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(_local2), this.isSelected(_local2));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local3 = this.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(this.getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < this.topDisplayed) || (_local3 >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(_local3);
}
if ((_local2 >= (this.topDisplayed + this.numDisplayed)) || (_local2 < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(_local2 - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local3++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var _local3 = 0;
while (_local3 < this.numDisplayed) {
this.container_mc[("fListItem" + _local3) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local3++;
}
};
#endinitclip
Instance of Symbol 142 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 144 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (construct) {
}
Instance of Symbol 143 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 144 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 145 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 40
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local3 = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(_local3);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = scrollBar.getScrollPosition();
this.topDisplayed = _local2;
if (this.lastPosition != _local2) {
this.updateControl();
}
this.lastPosition = _local2;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var _local2 = 0;
while (_local2 < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[_local2])) {
this.moveSelBy(this.keyIncrs[_local2]);
return(undefined);
}
_local2++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
this.findString(String.fromCharCode(_local2));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var _local4 = this.getSelectedIndex();
var _local6 = 0;
var _local2 = _local4 + 1;
while (_local2 != _local4) {
var _local3 = this.getItemAt(_local2).label.substring(0, str.length);
if ((str == _local3) || (str.toUpperCase() == _local3.toUpperCase())) {
_local6 = _local2 - _local4;
break;
}
if (_local2 >= (this.getLength() - 1)) {
_local2 = -1;
}
_local2++;
}
if (_local6 != 0) {
this.moveSelBy(_local6);
}
};
#endinitclip
Instance of Symbol 140 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 145 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 144 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 145 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 150 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 150 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 151 MovieClip [FListBoxSymbol] Frame 1
#initclip 41
function FListBoxClass() {
this.itemSymbol = "FListItemSymbol";
this.init();
this.permaScrollBar = true;
var _local2 = 0;
while (_local2 < this.labels.length) {
this.addItem(this.labels[_local2], this.data[_local2]);
_local2++;
}
this.boundingBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = this._height;
this._yscale = (this._xscale = 100);
this.setSize(this.width, this.height);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
}
FListBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FListBoxSymbol", FListBoxClass);
FListBoxClass.prototype.getSelectedIndices = function () {
var _local2 = new Array();
for (var _local3 in this.selected) {
_local2.push(this.selected[_local3].sIndex);
}
return(((_local2.length > 0) ? (_local2) : undefined));
};
FListBoxClass.prototype.getSelectedItems = function () {
var _local3 = this.getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(this.getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
};
FListBoxClass.prototype.getSelectMultiple = function () {
return(this.selectMultiple);
};
FListBoxClass.prototype.getRowCount = function () {
return(this.numDisplayed);
};
FListBoxClass.prototype.setSelectedIndices = function (indexArray) {
this.clearSelected();
var _local2 = 0;
while (_local2 < indexArray.length) {
this.selectItem(indexArray[_local2], true);
_local2++;
}
this.updateControl();
};
FListBoxClass.prototype.setSelectMultiple = function (flag) {
this.selectMultiple = flag;
};
FListBoxClass.prototype.setRowCount = function (count) {
var _local2 = (count * (this.itmHgt - 2)) + 2;
this.setSize(this.width, _local2);
};
FListBoxClass.prototype.setWidth = function (wdt) {
this.setSize(wdt, this.height);
};
FListBoxClass.prototype.setSize = function (w, h) {
if (!this.enable) {
return(undefined);
}
w = Math.max(((w == undefined) ? 0 : (w)), 20);
h = Math.max(((h == undefined) ? 0 : (h)), 40);
this.container_mc.removeMovieClip();
this.container_mc = this.createEmptyMovieClip("container", 3);
this.measureItmHgt();
this.numDisplayed = Math.floor(h / (this.itmHgt - 2));
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
};
FListBoxClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndices();
return(super.removeItemAt(index));
};
FListBoxClass.prototype.selectionHandler = function (itemNum) {
if (this.clickFilter) {
var _local3 = this.topDisplayed + itemNum;
if (this.getItemAt(_local3) == undefined) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
if (((!this.selectMultiple) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
this.clearSelected();
this.selectItem(_local3, true);
this.lastSelected = _local3;
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(_local3), this.isSelected(_local3));
} else if (Key.isDown(16) && (this.selectMultiple)) {
if (this.lastSelected == -1) {
this.lastSelected = _local3;
}
var _local4 = ((this.lastSelected < _local3) ? 1 : -1);
this.clearSelected();
var _local2 = this.lastSelected;
while (_local2 != _local3) {
this.selectItem(_local2, true);
if ((_local2 >= this.topDisplayed) && (_local2 < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (_local2 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local2), this.isSelected(_local2));
}
_local2 = _local2 + _local4;
}
this.selectItem(_local3, true);
this.container_mc[("fListItem" + (_local3 - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(_local3), this.isSelected(_local3));
} else if (Key.isDown(17)) {
var _local6 = this.isSelected(_local3);
if (!this.selectMultiple) {
this.clearSelected();
}
if (!((!this.selectMultiple) && (_local6))) {
this.selectItem(_local3, !_local6);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + itemNum), this.isSelected(this.topDisplayed + itemNum));
}
this.lastSelected = _local3;
}
} else {
this.clickFilter = true;
}
};
FListBoxClass.prototype.moveSelBy = function (itemNum) {
super.moveSelBy(itemNum);
this.releaseHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 145 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 151 MovieClip [FListBoxSymbol] Frame 1
//component parameters
onClipEvent (construct) {
}
Symbol 160 MovieClip Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2892 % 511) * true);
return(\x03);
}
var \x01 = (-160 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 162 MovieClip Frame 10
stop();
Symbol 164 MovieClip Frame 37
_parent.setGotoFrame("done");
stop();
Symbol 176 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (737 % 511) * true);
return(\x03);
}
var \x01 = (9 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 176 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 2
medal.attachIcon(icon);
Symbol 176 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 10
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2142 % 511) * true);
return(\x03);
}
var \x01 = (78 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 176 MovieClip [NewgroundsAPIAsset_Medal_Popup] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 182 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 1
// swfAction0xFC hexdata 0x03,0x00 // Unknown action
function \u0004\u0005() {
Set("\x03", (2309 % 511) * true);
return(\x03);
}
var \x01 = (253 + \x04\x05());
// swfAction0x03 // Unknown action
Symbol 182 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 10
stop();
Symbol 182 MovieClip [NewgroundsAPIAsset_Login_Warning] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 185 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 1
!!!ERROR
Symbol 185 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 10
stop();
Symbol 185 MovieClip [NewgroundsAPIAsset_Connection_Error] Frame 21
this.removeMovieClip();
_visible = false;
stop();
Symbol 206 MovieClip [NewgroundsAPIAsset_big_popup_background] Frame 1
!!!ERROR
Symbol 210 Button
on (release) {
!!!ERROR
Symbol 216 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 218 MovieClip [NewgroundsAsset_New_Version_Available] Frame 1
!!!ERROR
Symbol 219 Button
on (release) {
getURL (official_version_url, "_blank");
}
Symbol 223 MovieClip [NewgroundsAsset_Illegal_Host] Frame 1
!!!ERROR
Symbol 224 MovieClip [API Connector (NewgroundsAPI)] Frame 1
#initclip 33
Object.registerClass("API Connector (NewgroundsAPI)", com.newgrounds.components.APIConnector);
#endinitclip
Symbol 224 MovieClip [API Connector (NewgroundsAPI)] Frame 20
_visible = false;
Symbol 270 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 284 Button
on (rollOver) {
gotoAndStop ("up");
}
Symbol 289 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 290 Button
on (release) {
_root.s.setVolume(0);
_root.selectedGenre = "Classical";
_root.loadXml();
}
Symbol 292 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Ska";
_root.loadXml();
gotoAndStop (1);
}
Symbol 293 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Classical";
_root.loadXml();
gotoAndStop (1);
}
Symbol 294 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Trance";
_root.loadXml();
gotoAndStop (1);
}
Symbol 295 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Video Game";
_root.loadXml();
gotoAndStop (1);
}
Symbol 296 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Hip Hop - Modern";
_root.loadXml();
gotoAndStop (1);
}
Symbol 297 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Hip Hop - Olskool";
_root.loadXml();
gotoAndStop (1);
}
Symbol 298 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "R n B";
_root.loadXml();
gotoAndStop (1);
}
Symbol 299 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Brit Pop";
_root.loadXml();
gotoAndStop (1);
}
Symbol 300 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Classical Rock";
_root.loadXml();
gotoAndStop (1);
}
Symbol 301 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "General Rock";
_root.loadXml();
gotoAndStop (1);
}
Symbol 302 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Country";
_root.loadXml();
gotoAndStop (1);
}
Symbol 303 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Heavy Metal";
_root.loadXml();
gotoAndStop (1);
}
Symbol 304 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Jazz";
_root.loadXml();
gotoAndStop (1);
}
Symbol 305 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Ambient";
_root.loadXml();
gotoAndStop (1);
}
Symbol 306 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Dance";
_root.loadXml();
gotoAndStop (1);
}
Symbol 307 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Drum N Bass";
_root.loadXml();
gotoAndStop (1);
}
Symbol 308 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "House";
_root.loadXml();
gotoAndStop (1);
}
Symbol 309 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Industrial";
_root.loadXml();
gotoAndStop (1);
}
Symbol 310 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "New Wave";
_root.loadXml();
gotoAndStop (1);
}
Symbol 311 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Techno";
_root.loadXml();
gotoAndStop (1);
}
Symbol 312 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Grunge";
_root.loadXml();
gotoAndStop (1);
}
Symbol 313 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Indie";
_root.loadXml();
gotoAndStop (1);
}
Symbol 314 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Pop";
_root.loadXml();
gotoAndStop (1);
}
Symbol 315 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Punk";
_root.loadXml();
gotoAndStop (1);
}
Symbol 316 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Funk";
_root.loadXml();
gotoAndStop (1);
}
Symbol 317 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Goth";
_root.loadXml();
gotoAndStop (1);
}
Symbol 318 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Latin";
_root.loadXml();
gotoAndStop (1);
}
Symbol 319 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Miscellaneous";
_root.loadXml();
gotoAndStop (1);
}
Symbol 320 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Bluegrass";
_root.loadXml();
gotoAndStop (1);
}
Symbol 321 Button
on (release) {
_root.s.setVolume(100);
_root.selectedGenre = "Blues";
_root.loadXml();
gotoAndStop (1);
}
Symbol 354 MovieClip Frame 1
stop();
Symbol 359 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/download/" + _root.sa[cps].musicId, (target = "_blank"));
}
Symbol 362 MovieClip Frame 1
stop();
Symbol 364 Button
on (release) {
_root.color = "<font color='#00FF00'>";
}
Symbol 366 Button
on (release) {
_root.color = "<font color='#0000FF'>";
}
Symbol 368 Button
on (release) {
_root.color = "<font color='#FFFF00'>";
}
Symbol 370 Button
on (release) {
_root.color = "<font color='#00FFFF'>";
}
Symbol 372 Button
on (release) {
_root.color = "<font color='#FFFFFF'>";
}
Symbol 374 Button
on (release) {
_root.color = "<font color='#FF00FF'>";
}
Symbol 376 Button
on (release) {
_root.color = "<font color='#996600'>";
}
Symbol 378 Button
on (release) {
_root.color = "<font color='#FF0000'>";
}
Symbol 419 MovieClip [__Packages.Song] Frame 0
!!!ERROR
Symbol 227 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
!!!ERROR
Symbol 225 MovieClip [__Packages.com.newgrounds.APIError] Frame 0
!!!ERROR
Symbol 226 MovieClip [__Packages.com.newgrounds.API] Frame 0
!!!ERROR
Symbol 228 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
!!!ERROR
Symbol 229 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
!!!ERROR
Symbol 232 MovieClip [__Packages.com.newgrounds.SaveGroupQuery] Frame 0
!!!ERROR
Symbol 234 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
!!!ERROR
Symbol 233 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
!!!ERROR
Symbol 243 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
!!!ERROR
Symbol 231 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
!!!ERROR
Symbol 420 MovieClip [__Packages.it.gotoandplay.smartfoxserver.SmartFoxClient] Frame 0
!!!ERROR
Symbol 421 MovieClip [__Packages.it.gotoandplay.smartfoxserver.ObjectSerializer] Frame 0
!!!ERROR
Symbol 422 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.HttpConnection] Frame 0
!!!ERROR
Symbol 423 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.LoaderFactory] Frame 0
!!!ERROR
Symbol 424 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.IHttpProtocolCodec] Frame 0
!!!ERROR
Symbol 425 MovieClip [__Packages.it.gotoandplay.smartfoxserver.http.RawProtocolCodec] Frame 0
!!!ERROR
Symbol 426 MovieClip [__Packages.mx.utils.Delegate] Frame 0
!!!ERROR
Symbol 427 MovieClip [__Packages.it.gotoandplay.smartfoxserver.Room] Frame 0
!!!ERROR
Symbol 428 MovieClip [__Packages.it.gotoandplay.smartfoxserver.User] Frame 0
!!!ERROR
Symbol 429 MovieClip [__Packages.it.gotoandplay.smartfoxserver.JSON] Frame 0
!!!ERROR
Symbol 152 MovieClip [__Packages.com.newgrounds.components.APIConnector] Frame 0
!!!ERROR
Symbol 230 MovieClip [__Packages.com.newgrounds.ValidationTools] Frame 0
!!!ERROR
Symbol 235 MovieClip [__Packages.com.newgrounds.encoders.SerialXML] Frame 0
!!!ERROR
Symbol 236 MovieClip [__Packages.com.newgrounds.encoders.LZW2] Frame 0
!!!ERROR
Symbol 237 MovieClip [__Packages.com.newgrounds.encoders.LZW] Frame 0
!!!ERROR
Symbol 238 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
!!!ERROR
Symbol 239 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
!!!ERROR
Symbol 240 MovieClip [__Packages.com.newgrounds.Score] Frame 0
!!!ERROR
Symbol 241 MovieClip [__Packages.com.newgrounds.encoders.RC4] Frame 0
!!!ERROR
Symbol 242 MovieClip [__Packages.com.newgrounds.encoders.JSON] Frame 0
!!!ERROR
Symbol 244 MovieClip [__Packages.com.newgrounds.encoders.MD5] Frame 0
!!!ERROR
Symbol 408 Button
on (release) {
if (!_global.isBusy) {
makeNewRoom();
}
}
Symbol 410 Button
on (release) {
if (!_global.isBusy) {
makeNewRoom();
}
}
Symbol 412 Button
on (release) {
if (!_global.isBusy) {
sendChatMsg();
}
}
Symbol 413 Button
on (release) {
input_txt.text = "<font color=\"#00FFFF\"><a href=\"http://www.putwebsitehere.com\" target=\"_blank\">Linky";
}