Frame 1
Stage.showMenu = false;
protocol = _url.substr(0, _url.indexOf(":"));
if (protocol == "file") {
play();
} else if (protocol == "http") {
doubleSlash = _url.indexOf("//");
server = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
server = server.toUpperCase();
if (server.indexOf("WWW.") != -1) {
server = server.substr(server.indexOf("WWW.") + 4, server.length);
}
if (((server.indexOf("JOHNNYBDESIGN.COM") != -1) or (server.indexOf("NEWGROUNDS.COM") != -1)) or (server.indexOf("UPLOADS.UNGROUNDED.NET") != -1)) {
play();
} else {
gotoAndStop (15);
}
}
box1 = prefix;
Frame 2
ifFrameLoaded (1984) {
gotoAndPlay (18);
}
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
percent_done = int((loaded_bytes / total_bytes) * 100);
Frame 3
gotoAndPlay (2);
Frame 15
stop();
Frame 16
prevFrame();
Frame 17
gotoAndStop (15);
Frame 18
stop();
Frame 117
stop();
Frame 122
stop();
Frame 132
stop();
Frame 182
stop();
Frame 383
ml = "0";
rooms = "0";
ww = "0";
lebrunkeys = "0";
goldkey = "0";
mem = "0";
jb = "0";
sb = "0";
lion = "0";
viewpic = "0";
call2 = "0";
casino = "0";
cash = "0";
beer = "0";
frontdoor = "0";
ace = "0";
samvisit = "0";
knowfred = "0";
viewfred = "0";
viewwill = "0";
backstage = "0";
balcony = "0";
vip = "0";
meetnick = "0";
meetcasino = "0";
meetfred = "0";
meetniece = "0";
cig = "0";
Frame 1130
gotoAndStop (1145);
Frame 1131
stop();
if (lebrunkeys eq 1) {
setProperty("spinflash", _visible , "0");
setProperty("spinflashbutton", _visible , "0");
}
track1 = new Sound(this);
track1.attachSound("track1");
track1.start();
Frame 1132
stop();
lebrunkeys = "1";
Frame 1133
stop();
track2 = new Sound(this);
track2.attachSound("track2");
track2.start();
Frame 1135
stop();
Frame 1136
stop();
Frame 1140
stop();
Frame 1145
stop();
cricket = new Sound(this);
cricket.attachSound("cricket");
cricket.start(0, 2);
Frame 1146
stop();
Frame 1147
stop();
Frame 1150
stop();
_root.ml = "1";
Frame 1151
stop();
Frame 1152
stop();
Frame 1153
stop();
lion = "1";
Frame 1154
stop();
if (ml != 1) {
setProperty("ml", _visible , "0");
setProperty("mlpin", _visible , "0");
}
if (jb != 1) {
setProperty("jb", _visible , "0");
setProperty("jbpin", _visible , "0");
}
if (casino != 1) {
setProperty("casinoarrow", _visible , "0");
}
if (ww != 1) {
setProperty("wwbutton2", _visible , "0");
setProperty("wwbutton1", _visible , "0");
}
if (sb != 1) {
setProperty("sbbutton2", _visible , "0");
setProperty("sbbutton1", _visible , "0");
}
if (call2 eq 1) {
gotoAndStop (1160);
}
if (lion eq 1) {
gotoAndStop (1158);
}
Frame 1158
stop();
Frame 1159
stop();
sb = "1";
lion = "2";
Frame 1160
stop();
Frame 1313
stop();
casino = "1";
call2 = "2";
Frame 1314
stop();
Frame 1315
stop();
Frame 1316
stop();
Frame 1317
stop();
jb = "1";
Frame 1318
stop();
Frame 1319
stop();
Frame 1320
stop();
Frame 1321
stop();
mem = "1";
Frame 1322
stop();
Frame 1550
samvisit = "1";
gotoAndStop (1566);
Frame 1566
stop();
viewsam = "1";
Frame 1567
stop();
Mouse.hide();
tech = new Sound(this);
tech.attachSound("tech");
tech.start(0, 0);
tech.onSoundComplete = function () {
Mouse.show();
};
Frame 1568
stop();
Frame 1569
stop();
Frame 1570
stop();
Frame 1571
stop();
Frame 1572
stop();
Frame 1573
stop();
Frame 1574
stop();
Frame 1624
gotoAndPlay (1575);
Frame 1625
stop();
Frame 1686
stop();
setProperty("arrow1", _visible , "0");
setProperty("arrow2", _visible , "0");
Frame 1701
stop();
Frame 1702
stop();
Frame 1716
stop();
Frame 1717
stop();
Frame 1718
stop();
ace = "1";
Frame 1719
stop();
if (viewpic eq 0) {
tellTarget ("dwarfrole") {
play();
};
viewpic = "1";
}
setProperty("revmike", _visible , "0");
setProperty("revsam", _visible , "0");
setProperty("revwill", _visible , "0");
setProperty("revvince", _visible , "0");
setProperty("revfred", _visible , "0");
setProperty("revnami", _visible , "0");
setProperty("revgerman", _visible , "0");
if (viewfred != 1) {
setProperty("rev2", _visible , "0");
}
if (viewsam != 1) {
setProperty("rev6", _visible , "0");
}
if (viewwill != 1) {
setProperty("rev3", _visible , "0");
}
Frame 1720
stop();
Frame 1721
stop();
Frame 1869
function dialog() {
Mouse.show();
if (_root.WQ3fin eq 1) {
setProperty("_root.WQbutton3", _visible , "0");
setProperty("_root.WQ3", _visible , "0");
} else {
setProperty("_root.WQbutton3", _visible , "100");
setProperty("_root.WQ3", _visible , "100");
}
if (_root.WQ1fin eq 1) {
setProperty("_root.WQbutton1", _visible , "0");
setProperty("_root.WQ1", _visible , "0");
} else {
setProperty("_root.WQbutton1", _visible , "100");
setProperty("_root.WQ1", _visible , "100");
}
}
stop();
viewwill = "1";
_root.dialog();
Frame 1870
stop();
Frame 1982
stop();
meetnick = "1";
Frame 1983
stop();
Frame 1984
stop();
Frame 2051
meetcasino = "1";
Frame 2052
stop();
Frame 2053
stop();
Frame 2054
stop();
rooms = "1";
Frame 2055
stop();
Frame 2056
stop();
Frame 2057
function dialog() {
Mouse.show();
if ((_root.MQ2fin != 1) && (_root.knowfred eq 1)) {
setProperty("_root.MQbutton2", _visible , "100");
setProperty("_root.MQ2", _visible , "100");
} else {
setProperty("_root.MQbutton2", _visible , "0");
setProperty("_root.MQ2", _visible , "0");
}
if (_root.MQ1fin eq 1) {
setProperty("_root.MQbutton1", _visible , "0");
setProperty("_root.MQ1", _visible , "0");
} else {
setProperty("_root.MQbutton1", _visible , "100");
setProperty("_root.MQ1", _visible , "100");
}
}
stop();
_root.dialog();
Frame 2058
stop();
Frame 2059
function dialog() {
Mouse.show();
if (_root.EQ2fin eq 1) {
setProperty("_root.EQbutton2", _visible , "0");
setProperty("_root.EQ2", _visible , "0");
} else {
setProperty("_root.EQbutton2", _visible , "100");
setProperty("_root.EQ2", _visible , "100");
}
if ((_root.EQ1fin != 1) && (_root.knowfred != 0)) {
setProperty("_root.EQbutton1", _visible , "100");
setProperty("_root.EQ1", _visible , "100");
} else {
setProperty("_root.EQbutton1", _visible , "0");
setProperty("_root.EQ1", _visible , "0");
}
}
stop();
_root.dialog();
Frame 2060
stop();
Frame 2061
stop();
Frame 2062
stop();
if (vip eq 0) {
setProperty("vipgard", _visible , "0");
}
if (rooms eq 1) {
setProperty("vipgard", _visible , "0");
}
Frame 2063
stop();
Frame 2064
stop();
Frame 2065
stop();
Frame 2066
stop();
goldkey = "1";
Frame 2067
stop();
cig = "1";
Frame 2068
function dialog() {
Mouse.show();
if (_root.MQ3fin eq 1) {
setProperty("_root.MQbutton3", _visible , "0");
setProperty("_root.MQ3", _visible , "0");
} else {
setProperty("_root.MQbutton3", _visible , "100");
setProperty("_root.MQ3", _visible , "100");
}
}
stop();
_root.dialog();
Frame 2072
function dialog() {
Mouse.show();
if ((_root.cig eq 1) and (_root.CQ2fin != 1)) {
setProperty("_root.GQbutton2", _visible , "100");
setProperty("_root.GQ2", _visible , "100");
} else {
setProperty("_root.GQbutton2", _visible , "0");
setProperty("_root.GQ2", _visible , "0");
}
if (_root.CQ1fin eq 1) {
setProperty("_root.CQbutton1", _visible , "0");
setProperty("_root.CQ1", _visible , "0");
} else {
setProperty("_root.CQbutton1", _visible , "100");
setProperty("_root.CQ1", _visible , "100");
}
}
stop();
_root.dialog();
Frame 2073
stop();
function startGame1() {
showCash();
gotoAndPlay (2074);
}
function showCash() {
cashDisplay = "$" + cash;
}
startGame1();
Frame 2074
function startGame() {
bet = 0;
showBet();
}
function tellBet() {
output1 = bet * 5000;
output2 = bet * 300;
output3 = bet * 100;
output4 = bet * 25;
output5 = bet * 20;
output6 = bet * 10;
output7 = bet * 3;
output8 = bet * 2;
output9 = bet;
}
function startDeal() {
createDeck();
firstDraw();
showCards();
}
function createDeck() {
suits = ["c", "d", "s", "h"];
temp = new Array();
suit = 0;
while (suit < 4) {
num = 1;
while (num < 14) {
temp.push(suits[suit] + num);
num++;
}
suit++;
}
deck = new Array();
while (temp.length > 0) {
r = int(Math.random() * temp.length);
deck.push(temp[r]);
temp.splice(r, 1);
}
}
function firstDraw() {
cards = new Array();
i = 0;
while (i < 5) {
cards.push(deck.pop());
i++;
}
hold = [true, true, true, true, true];
showCards();
handValue1();
}
function showCards() {
i = 0;
while (i < 5) {
_root["card" + i].gotoAndStop(cards[i]);
i++;
}
}
function holdDraw(cardNum) {
if (hold[cardNum]) {
_root["card" + cardNum].gotoAndStop("back");
hold[cardNum] = false;
mysound = new Sound();
mySound.attachSound("select");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
} else {
_root["card" + cardNum].gotoAndStop(cards[cardNum]);
hold[cardNum] = true;
mysound = new Sound();
mySound.attachSound("select");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
}
}
function showFlsh() {
tellTarget ("pair") {
gotoAndStop (1);
};
tellTarget ("2p") {
gotoAndStop (1);
};
tellTarget ("3k") {
gotoAndStop (1);
};
tellTarget ("st8") {
gotoAndStop (1);
};
tellTarget ("flush") {
gotoAndStop (1);
};
tellTarget ("boat") {
gotoAndStop (1);
};
tellTarget ("4k") {
gotoAndStop (1);
};
tellTarget ("st8f") {
gotoAndStop (1);
};
tellTarget ("sf") {
gotoAndStop (1);
};
}
function secondDraw() {
showFlsh();
i = 0;
while (i < 5) {
if (!hold[i]) {
cards[i] = deck.pop();
}
i++;
}
showCards();
handVal = handValue(cards);
winAmt = bet * winnings(handVal);
resultsDisplay = ((handVal + " : ") + "$") + winAmt;
cash = cash + winAmt;
showCash();
gotoAndPlay (2076);
}
function compareHands(a, b) {
numa = Number(a.substr(1, 2));
numb = Number(b.substr(1, 2));
if (numa < numb) {
return(-1);
}
if (numa == numb) {
return(0);
}
if (numa > numb) {
return(1);
}
}
function handValue() {
hand = cards.slice();
hand.sort(compareHands);
suits = new Array();
nums = new Array();
i = 0;
while (i < 5) {
suits.push(hand[i].substr(0, 1));
nums.push(Number(hand[i].substr(1, 2)));
i++;
}
straight = true;
i = 0;
while (i < 4) {
if ((nums[i] + 1) != nums[i + 1]) {
straight = false;
}
i++;
}
if (((((nums[0] == 1) and (nums[1] == 10)) and (nums[2] == 11)) and (nums[3] == 12)) and (nums[4] == 13)) {
straight = true;
}
flush = true;
i = 1;
while (i < 5) {
if (suits[i] != suits[0]) {
flush = false;
}
i++;
}
counts = new Array();
i = 0;
while (i < 14) {
counts.push(0);
i++;
}
i = 0;
while (i < 5) {
counts[nums[i]]++;
i++;
}
pair = false;
twoPair = false;
threeOfAKind = false;
fourOfAKind = false;
i = 1;
while (i < 14) {
if (counts[i] == 2) {
if (pair) {
twoPair = true;
} else {
pair = true;
}
} else if (counts[i] == 3) {
threeOfAKind = true;
} else if (counts[i] == 4) {
fourOfAKind = true;
}
i++;
}
jackOrHigher = false;
i = 1;
while (i < 14) {
if (((i == 1) or (i > 10)) and (counts[i] >= 2)) {
jackOrHigher = true;
}
i++;
}
hasAce = false;
if (counts[1] > 0) {
hasAce = true;
}
if ((straight and flush) and hasAce) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Royal Flush");
}
if (straight and flush) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Straight Flush");
}
if (fourOfAKind) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Four Of A Kind");
}
if (pair and threeOfAKind) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Full House");
}
if (flush) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Flush");
}
if (straight) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Straight");
}
if (threeOfAKind) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Three Of A Kind");
}
if (twoPair) {
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
return("Two Pair");
}
if (pair) {
tellTarget ("pair") {
gotoAndPlay (2);
mysound = new Sound();
mySound.attachSound("won");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
};
return("Pair");
}
return("Try Again");
}
function handValue1() {
hand = cards.slice();
hand.sort(compareHands);
suits = new Array();
nums = new Array();
i = 0;
while (i < 5) {
suits.push(hand[i].substr(0, 1));
nums.push(Number(hand[i].substr(1, 2)));
i++;
}
straight = true;
i = 0;
while (i < 4) {
if ((nums[i] + 1) != nums[i + 1]) {
straight = false;
}
i++;
}
if (((((nums[0] == 1) and (nums[1] == 10)) and (nums[2] == 11)) and (nums[3] == 12)) and (nums[4] == 13)) {
straight = true;
}
flush = true;
i = 1;
while (i < 5) {
if (suits[i] != suits[0]) {
flush = false;
}
i++;
}
counts = new Array();
i = 0;
while (i < 14) {
counts.push(0);
i++;
}
i = 0;
while (i < 5) {
counts[nums[i]]++;
i++;
}
pair = false;
twoPair = false;
threeOfAKind = false;
fourOfAKind = false;
i = 1;
while (i < 14) {
if (counts[i] == 2) {
if (pair) {
twoPair = true;
} else {
pair = true;
}
} else if (counts[i] == 3) {
threeOfAKind = true;
} else if (counts[i] == 4) {
fourOfAKind = true;
}
i++;
}
jackOrHigher = false;
i = 1;
while (i < 14) {
if (((i == 1) or (i > 10)) and (counts[i] >= 2)) {
jackOrHigher = true;
}
i++;
}
hasAce = false;
if (counts[1] > 0) {
hasAce = true;
}
if ((straight and flush) and hasAce) {
tellTarget ("sf") {
gotoAndPlay (2);
};
return("Royal Flush");
}
if (straight and flush) {
tellTarget ("st8f") {
gotoAndPlay (2);
};
return("Straight Flush");
}
if (fourOfAKind) {
tellTarget ("4k") {
gotoAndPlay (2);
};
return("Four Of A Kind");
}
if (pair and threeOfAKind) {
tellTarget ("boat") {
gotoAndPlay (2);
};
return("Full House");
}
if (flush) {
tellTarget ("flush") {
gotoAndPlay (2);
};
return("Flush");
}
if (straight) {
tellTarget ("st8") {
gotoAndPlay (2);
};
return("Straight");
}
if (threeOfAKind) {
tellTarget ("3k") {
gotoAndPlay (2);
};
return("Three Of A Kind");
}
if (twoPair) {
tellTarget ("2p") {
gotoAndPlay (2);
};
return("Two Pair");
}
if (pair) {
tellTarget ("pair") {
gotoAndPlay (2);
};
return("Pair");
}
return("Try Again");
}
function winnings(handVal) {
if (handVal == "Royal Flush") {
return(5000);
}
if (handVal == "Straight Flush") {
return(300);
}
if (handVal == "Four Of A Kind") {
return(100);
}
if (handVal == "Full House") {
return(25);
}
if (handVal == "Flush") {
return(20);
}
if (handVal == "Straight") {
return(10);
}
if (handVal == "Three Of A Kind") {
return(3);
}
if (handVal == "Two Pair") {
return(2);
}
if (handVal == "Pair") {
return(1);
}
if (handVal == "Try Again") {
return(0);
}
}
startGame();
stop();
if (cash <= 0) {
cash = 100;
}
Frame 2075
startDeal();
stop();
Frame 2076
stop();
Frame 2077
stop();
Frame 2078
stop();
Frame 2123
stop();
if (backstage eq 0) {
setProperty("b1b", _visible , "0");
}
if (balcony eq 0) {
setProperty("b2b", _visible , "0");
}
Frame 2128
stop();
Frame 2129
stop();
Frame 2130
function dialog() {
Mouse.show();
if ((_root.viewfred eq 1) and (_root.FQ2fin != 1)) {
setProperty("_root.FQbutton2", _visible , "100");
setProperty("_root.FQ2", _visible , "100");
} else {
setProperty("_root.FQbutton2", _visible , "0");
setProperty("_root.FQ2", _visible , "0");
}
if (_root.FQ1fin eq 1) {
setProperty("_root.FQbutton1", _visible , "0");
setProperty("_root.FQ1", _visible , "0");
} else {
setProperty("_root.FQbutton1", _visible , "100");
setProperty("_root.FQ1", _visible , "100");
}
}
stop();
_root.dialog();
Frame 2133
stop();
if (meetniece eq 1) {
setProperty("niecebtn", _visible , "0");
setProperty("niecetxt", _visible , "0");
}
Frame 2233
stop();
Frame 2291
stop();
Frame 2440
stop();
Frame 2531
stop();
Frame 2692
stop();
Frame 2731
stop();
Frame 2832
meetniece = "1";
gotoAndStop (2052);
Frame 3289
gotoAndStop (2053);
Frame 3409
stop();
Frame 3506
stop();
Frame 3507
stop();
Frame 3581
stop();
Frame 3677
stop();
Frame 3792
stop();
Frame 3911
gotoAndPlay (2833);
Frame 3985
stop();
Frame 4035
gotoAndStop (2052);
Frame 6082
stop();
Symbol 11 MovieClip [FLabelSymbol] Frame 1
#initclip 3
_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 val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 14 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 14 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 14 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 15 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 28 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 38 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 47 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 48 MovieClip [UpArrow] Frame 1
stop();
Symbol 48 MovieClip [UpArrow] Frame 2
stop();
Symbol 48 MovieClip [UpArrow] Frame 3
stop();
Symbol 55 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 62 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 67 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 68 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 76 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 84 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 92 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 93 MovieClip [DownArrow] Frame 1
stop();
Symbol 93 MovieClip [DownArrow] Frame 2
stop();
Symbol 93 MovieClip [DownArrow] Frame 3
stop();
Symbol 96 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 97 MovieClip [FScrollBarSymbol] Frame 1
#initclip 5
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var tmp = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
tmp = Math.min(tmp, this.maxPos);
this.setScrollPosition(Math.max(tmp, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var wasEnabled = this.enable;
if (enabledFlag && (!wasEnabled)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (wasEnabled)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
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 delt = this.smallScroll;
if (inc != "one") {
delt = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var newPos = (this.getScrollPosition() + (mode * delt));
if (newPos > this.maxPos) {
newPos = this.maxPos;
} else if (newPos < this.minPos) {
newPos = this.minPos;
}
this.setScrollPosition(newPos);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var c = this.controller;
c.scrollPosition = Math.round(((c.maxPos - c.minPos) * (this._y - c.scrollTop)) / c.trackHeight) + c.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var pos = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxhscroll));
} else {
var pos = this.textField.scroll;
var pageSize = (this.textField.bottomScroll - this.textField.scroll);
this.setScrollProperties(pageSize, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(pos, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 98 MovieClip [DataProviderSymbol] Frame 1
#initclip 2
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
this.items = new Array();
this.uniqueID = 0;
this.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var eventObj = {event:"updateAll"};
viewRef.modelChanged(eventObj);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
if (index < this.getLength()) {
this.items.splice(index, 0, "tmp");
}
this.items[index] = new Object();
if (typeof(value) == "object") {
this.items[index] = value;
} else {
this.items[index].label = value;
}
this.items[index].__ID__ = this.uniqueID++;
var eventObj = {event:"addRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var tmpItm = this.items[index];
this.items.splice(index, 1);
var eventObj = {event:"deleteRows", firstRow:index, lastRow:index};
this.updateViews(eventObj);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
this.items = new Array();
this.updateViews({event:"deleteRows", firstRow:0, lastRow:this.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
if ((index < 0) || (index >= this.getLength())) {
return(undefined);
}
var tmpID = this.getItemID(index);
if (typeof(itemObj) == "object") {
this.items[index] = itemObj;
} else {
this.items[index].label = itemObj;
}
this.items[index].__ID__ = tmpID;
this.updateViews({event:"updateRows", firstRow:index, lastRow:index});
};
DataProviderClass.prototype.getLength = function () {
return(this.items.length);
};
DataProviderClass.prototype.getItemAt = function (index) {
return(this.items[index]);
};
DataProviderClass.prototype.getItemID = function (index) {
return(this.items[index].__ID__);
};
DataProviderClass.prototype.sortItemsBy = function (fieldName, order) {
this.items.sortOn(fieldName);
if (order == "DESC") {
this.items.reverse();
}
this.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var i = 0;
while (i < this.views.length) {
this.views[i].modelChanged(eventObj);
i++;
}
};
#endinitclip
Symbol 99 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 7
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
if (this._name != "itemAsset") {
this.highlighted = false;
this.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
this.displayContent(itmObj, selected);
if ((this.highlighted != selected) || ((this.controller.focused != this.oldFocus) && (selected))) {
this.setHighlighted(selected);
}
this.oldFocus = this.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var LOWEST_DEPTH = -16384;
this.width = width;
this.layoutContent(width);
this.attachMovie("FHighlightSymbol", "highlight_mc", LOWEST_DEPTH);
this.highlight_mc._x = 0.5;
this.highlight_mc._width = width - 0.5;
this.highlight_mc._height = height;
this.highlight_mc.controller = this;
this.highlight_mc._alpha = 0;
this.highlight_mc.trackAsMenu = true;
this.highlight_mc.onPress = function () {
if (this.controller.enable) {
this.controller.controller.clickHandler(this.controller.itemNum);
}
};
this.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
this.highlight_mc.useHandCursor = false;
this.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
this.enable = enabledFlag;
this.fLabel_mc.setEnabled(enabledFlag);
this.highlight_mc.gotoAndStop((enabledFlag ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
this.attachMovie("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 tmpLabel = "";
if (itmObj.label != undefined) {
tmpLabel = itmObj.label;
} else if (typeof(itmObj) == "object") {
for (var i in itmObj) {
if (i != "__ID__") {
tmpLabel = (itmObj[i] + ", ") + tmpLabel;
}
}
tmpLabel = tmpLabel.substring(0, tmpLabel.length - 2);
} else {
tmpLabel = itmObj;
}
if (this.fLabel_mc.labelField.text != tmpLabel) {
this.fLabel_mc.setLabel(tmpLabel);
}
var clr = (selected ? (this.controller.styleTable.textSelected.value) : (this.controller.styleTable.textColor.value));
if (clr == undefined) {
clr = (selected ? 16777215 : 0);
}
this.fLabel_mc.setColor(clr);
};
FSelectableItemClass.prototype.getItemIndex = function () {
return(this.controller.getScrollPosition() + this.itemNum);
};
FSelectableItemClass.prototype.getItemModel = function () {
return(this.controller.getItemAt(this.getItemIndex()));
};
FSelectableItemClass.prototype.getHostDataProvider = function () {
return(this.controller.dataProvider);
};
FSelectableItemClass.prototype.setHighlighted = function (flag) {
fade = this.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!flag)) {
this.highlight_mc._alpha = (flag ? 100 : 0);
delete this.onEnterFrame;
} else {
this.fadeN = fade;
this.fadeX = 1;
this.highLight_mc._alpha = 20;
this.onEnterFrame = function () {
this.highLight_mc._alpha = (60 * Math.sqrt((this.fadeX++) / this.fadeN)) + 40;
if (this.fadeX > this.fadeN) {
delete this.onEnterFrame;
}
};
}
this.highlighted = flag;
};
#endinitclip
Symbol 100 MovieClip [FSelectableListSymbol] Frame 1
#initclip 4
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
super.init();
this.enable = true;
this.selected = new Array();
this.topDisplayed = (this.numDisplayed = 0);
this.lastSelected = 0;
this.tabChildren = false;
if (this._name != undefined) {
this.dataProvider = new DataProviderClass();
this.dataProvider.addView(this);
}
};
FSelectableListClass.prototype.addItemAt = function (index, label, data) {
if ((index < 0) || (!this.enable)) {
return(undefined);
}
this.dataProvider.addItemAt(index, {label:label, data:data});
};
FSelectableListClass.prototype.addItem = function (label, data) {
if (!this.enable) {
return(undefined);
}
this.dataProvider.addItem({label:label, data:data});
};
FSelectableListClass.prototype.removeItemAt = function (index) {
this.selectHolder = this.getSelectedIndex();
var item = this.getItemAt(index);
this.dataProvider.removeItemAt(index);
return(item);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
this.lastSelID = this.dataProvider.getItemID(this.lastSelected);
this.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
for (var uniqueID in this.selected) {
var tmpInd = this.selected[uniqueID].sIndex;
if (tmpInd != undefined) {
return(tmpInd);
}
}
};
FSelectableListClass.prototype.getSelectedItem = function () {
return(this.getItemAt(this.getSelectedIndex()));
};
FSelectableListClass.prototype.getItemAt = function (index) {
return(this.dataProvider.getItemAt(index));
};
FSelectableListClass.prototype.getEnabled = function () {
return(this.enable);
};
FSelectableListClass.prototype.getValue = function () {
var item = this.getSelectedItem();
return(((item.data == undefined) ? (item.label) : (item.data)));
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
if (((index >= 0) && (index < this.getLength())) && (this.enable)) {
this.clearSelected();
this.selectItem(index, true);
this.lastSelected = index;
this.invalidate("updateControl");
if (flag != false) {
this.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
this.setScrollPosition(0);
this.clearSelected();
if (obj instanceof Array) {
this.dataProvider = new DataProviderClass();
var i = 0;
while (i < obj.length) {
var value = ((typeof(obj[i]) == "string") ? ({label:obj[i]}) : (obj[i]));
this.dataProvider.addItem(value);
i++;
}
} else {
this.dataProvider = obj;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
this.tmpPos = this.getScrollPosition();
this.itemSymbol = linkID;
this.invalidate("setSize");
this.setScrollPosition(this.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
this.cleanUI();
super.setEnabled(enabledFlag);
this.enable = enabledFlag;
this.boundingBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
var limit = Math.min(this.numDisplayed, this.getLength());
var i = 0;
while (i < limit) {
this.container_mc[("fListItem" + i) + "_mc"].setEnabled(this.enable);
i++;
}
if (this.enable) {
this.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].drawItem(this.getItemAt(this.topDisplayed + i), this.isSelected(this.topDisplayed + i));
i++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.boundingBox_mc._xscale = (this.boundingBox_mc._yscale = 100);
this.boundingBox_mc._xscale = (this.width * 100) / this.boundingBox_mc._width;
this.boundingBox_mc._yscale = (this.height * 100) / this.boundingBox_mc._height;
var i = 0;
while (i < this.numDisplayed) {
this.container_mc.attachMovie(this.itemSymbol, ("fListItem" + i) + "_mc", 10 + i, {controller:this, itemNum:i});
var item_mc = this.container_mc[("fListItem" + i) + "_mc"];
var offset = ((this.scrollOffset == undefined) ? 0 : (this.scrollOffset));
item_mc.setSize(this.width - offset, this.itmHgt);
item_mc._y = (this.itmHgt - 2) * i;
i++;
}
this.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var i in this.selected) {
if ((this.selected[i].sIndex != undefined) && (this.selected[i].sIndex >= firstRow)) {
this.selected[i].sIndex = this.selected[i].sIndex + ((lastRow - firstRow) + 1);
this.setSelectedIndex(this.selected[i].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (this.selectHolder == index) {
this.selectionDeleted = true;
}
if (((this.topDisplayed + this.numDisplayed) >= this.getLength()) && (this.topDisplayed > 0)) {
this.topDisplayed--;
if (this.selectionDeleted && ((index - 1) >= 0)) {
this.setSelectedIndex(index - 1, false);
}
} else if (this.selectionDeleted) {
var len = this.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
this.setSelectedIndex(index - 1, false);
} else {
this.setSelectedIndex(index, false);
}
}
for (var i in this.selected) {
if (this.selected[i].sIndex > firstRow) {
this.selected[i].sIndex--;
}
}
} else {
this.clearSelected();
this.topDisplayed = 0;
}
} else if (event == "sort") {
var len = this.getLength();
var i = 0;
while (i < len) {
if (this.isSelected(i)) {
var id = this.dataProvider.getItemID(i);
if (id == this.lastSelID) {
this.lastSelected = i;
}
this.selected[String(id)].sIndex = i;
}
i++;
}
}
this.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
this.attachMovie(this.itemSymbol, "tmpItem_mc", 0, {controller:this});
this.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
this.itmHgt = this.tmpItem_mc._height;
this.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
if (selectedFlag && (!this.isSelected(index))) {
this.selected[String(this.dataProvider.getItemID(index))] = {sIndex:index};
} else if (!selectedFlag) {
delete this.selected[String(this.dataProvider.getItemID(index))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
for (var uniqueID in this.selected) {
var index = this.selected[uniqueID].sIndex;
if (((index != undefined) && (this.topDisplayed <= index)) && (index < (this.topDisplayed + this.numDisplayed))) {
this.container_mc[("fListItem" + (index - this.topDisplayed)) + "_mc"].drawItem(this.getItemAt(index), false);
}
}
delete this.selected;
this.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var tmpInd = (this.topDisplayed + itemNum);
if (this.getItemAt(tmpInd == undefined)) {
this.changeFlag = false;
return(undefined);
}
this.changeFlag = true;
this.clearSelected();
this.selectItem(tmpInd, true);
this.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(this.getItemAt(tmpInd), this.isSelected(tmpInd));
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var itmNum = this.getSelectedIndex();
var newItm = (itmNum + incr);
newItm = Math.max(0, newItm);
newItm = Math.min(this.getLength() - 1, newItm);
if (newItm == itmNum) {
return(undefined);
}
if ((itmNum < this.topDisplayed) || (itmNum >= (this.topDisplayed + this.numDisplayed))) {
this.setScrollPosition(itmNum);
}
if ((newItm >= (this.topDisplayed + this.numDisplayed)) || (newItm < this.topDisplayed)) {
this.setScrollPosition(this.topDisplayed + incr);
}
this.selectionHandler(newItm - this.topDisplayed);
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
this.focusRect.removeMovieClip();
if (!this.focused) {
this.pressFocus();
}
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
if (this.changeFlag) {
this.executeCallBack();
}
this.changeFlag = false;
this.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("enabled");
i++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
super.myOnKillFocus();
var i = 0;
while (i < this.numDisplayed) {
this.container_mc[("fListItem" + i) + "_mc"].highlight_mc.gotoAndStop("unfocused");
i++;
}
};
#endinitclip
Instance of Symbol 98 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 100 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 99 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 100 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 101 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 6
function FScrollSelectListClass() {
this.init();
}
FScrollSelectListClass.prototype = new FSelectableListClass();
FScrollSelectListClass.prototype.getScrollPosition = function () {
return(this.topDisplayed);
};
FScrollSelectListClass.prototype.setScrollPosition = function (pos) {
if (this.enable) {
pos = Math.min(pos, this.getLength() - this.numDisplayed);
pos = Math.max(pos, 0);
this.scrollBar_mc.setScrollPosition(pos);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
this.permaScrollBar = !flag;
this.setSize(this.width, this.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var pos = this.getScrollPosition();
super.setSize(w, h);
if (this.scrollBar_mc != undefined) {
this.removed = true;
}
this.scrollBar_mc = undefined;
this.initScrollBar();
this.setScrollPosition(pos);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
if ((!this.permaScrollBar) && (this.getLength() <= this.numDisplayed)) {
if (this.removed) {
this.scrollBar_mc.removeMovieClip();
this.scrollBar_mc = undefined;
this.scrollOffset = undefined;
this.invalidate("setSize");
}
} else {
if (this.scrollBar_mc == undefined) {
this.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:this.styleTable});
this.scrollBar_mc = this.container_mc.scrollBar_mc;
this.scrollBar_mc.setChangeHandler("scrollHandler", this);
this.scrollBar_mc.setSize(this.height);
this.scrollBar_mc._x = this.width - this.scrollBar_mc._width;
this.scrollBar_mc._y = 0;
this.scrollBar_mc.setLargeScroll(this.numDisplayed - 1);
this.scrollOffset = this.scrollBar_mc._width;
this.invalidate("setSize");
}
this.scrollBar_mc.setScrollProperties(this.numDisplayed, 0, this.getLength() - this.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var pos = scrollBar.getScrollPosition();
this.topDisplayed = pos;
if (this.lastPosition != pos) {
this.updateControl();
}
this.lastPosition = pos;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
super.clickHandler(itmNum);
if ((this.dragScrolling == undefined) && (this.scrollBar_mc != undefined)) {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
clearInterval(this.dragScrolling);
if (this.container_mc._ymouse < 0) {
this.setScrollPosition(this.getScrollPosition() - 1);
this.selectionHandler(0);
this.scrollInterval = Math.max(25, (-23.8 * (-this.container_mc._ymouse)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else if (this.container_mc._ymouse > ((this.itmHgt - 2) * this.numDisplayed)) {
this.setScrollPosition(this.getScrollPosition() + 1);
this.selectionHandler(this.numDisplayed - 1);
this.scrollInterval = Math.max(25, (-23.8 * Math.abs((this.container_mc._ymouse - ((this.itmHgt - 2) * this.numDisplayed)) - 2)) + 500);
this.dragScrolling = setInterval(this, "dragScroll", this.scrollInterval);
} else {
this.dragScrolling = setInterval(this, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
if (this.focused) {
this.keyCodes = new Array(40, 38, 34, 33, 36, 35);
this.keyIncrs = new Array(1, -1, this.numDisplayed - 1, -(this.numDisplayed - 1), -this.getLength(), this.getLength());
var i = 0;
while (i < this.keyCodes.length) {
if (Key.isDown(this.keyCodes[i])) {
this.moveSelBy(this.keyIncrs[i]);
return(undefined);
}
i++;
}
this.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var tmpCode = Key.getAscii();
if ((tmpCode >= 33) && (tmpCode <= 126)) {
this.findString(String.fromCharCode(tmpCode));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
return(undefined);
}
var itemNum = this.getSelectedIndex();
var jump = 0;
var i = (itemNum + 1);
while (i != itemNum) {
var itmStr = this.getItemAt(i).label.substring(0, str.length);
if ((str == itmStr) || (str.toUpperCase() == itmStr.toUpperCase())) {
var jump = (i - itemNum);
break;
}
if (i >= (this.getLength() - 1)) {
i = -1;
}
i++;
}
if (jump != 0) {
this.moveSelBy(jump);
}
};
#endinitclip
Instance of Symbol 97 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 101 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 100 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 101 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 102 MovieClip [FComboBoxItemSymbol] Frame 1
#initclip 9
function FComboBoxItemClass() {
this.init();
}
FComboBoxItemClass.prototype = new FSelectableItemClass();
Object.registerClass("FComboBoxItemSymbol", FComboBoxItemClass);
FComboBoxItemClass.prototype.setSize = function (w, h) {
super.setSize(w, h);
this.highlight_mc.onRollOver = function () {
this.controller.controller.selectionHandler(this.controller.itemNum);
};
};
#endinitclip
Symbol 106 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 106 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 109 MovieClip [FComboBoxSymbol] Frame 1
#initclip 8
function FComboBoxClass() {
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
this.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var testContainer = this.superHolder.createEmptyMovieClip("testCont", 20000);
var testBox = testContainer.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
if (testBox._name == undefined) {
this.superHolder.removeMovieClip();
this.superHolder = this._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
testContainer.removeMovieClip();
}
if (this.rowCount == undefined) {
this.rowCount = 8;
this.editable = false;
}
this.itemSymbol = "FComboBoxItemSymbol";
this.init();
this.permaScrollBar = false;
this.proxyBox_mc.gotoAndStop(1);
this.width = this._width;
this.height = (this.proxyBox_mc._height * this._yscale) / 100;
var i = 0;
while (i < this.labels.length) {
this.addItem(this.labels[i], this.data[i]);
i++;
}
this.lastSelected = 0;
this.selectItem(0);
this._xscale = (this._yscale = 100);
this.opened = false;
this.setSize(this.width);
this.highlightTop(false);
if (this.changeHandler.length > 0) {
this.setChangeHandler(this.changeHandler);
}
this.onUnload = function () {
this.superHolder.removeMovieClip();
};
this.setSelectedIndex(0, false);
this.value = "";
this.focusEnabled = true;
this.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
var event = eventObj.event;
if ((event == "addRows") || (event == "deleteRows")) {
var diff = ((eventObj.lastRow - eventObj.firstRow) + 1);
var mode = ((event == "addRows") ? 1 : -1);
var len = this.getLength();
var lenBefore = (len - (mode * diff));
if ((this.rowCount > lenBefore) || (this.rowCount > len)) {
this.invalidate("setSize");
}
if (this.getSelectedIndex() == undefined) {
this.setSelectedIndex(0, false);
}
} else if (event == "updateAll") {
this.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
if (!this.enable) {
return(undefined);
}
super.removeAll();
if (this.editable) {
this.value = "";
}
this.invalidate("setSize");
};
FComboBoxClass.prototype.setSize = function (w) {
if ((((w == undefined) || (typeof(w) != "number")) || (w <= 0)) || (!this.enable)) {
return(undefined);
}
this.proxyBox_mc._width = w;
this.container_mc.removeMovieClip();
this.measureItmHgt();
this.container_mc = this.superHolder.createEmptyMovieClip("container", 3);
this.container_mc.tabChildren = false;
this.setPopUpLocation(this.container_mc);
this.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
this.boundingBox_mc = this.container_mc.boundingBox_mc;
this.boundingBox_mc.component = this;
this.registerSkinElement(this.boundingBox_mc.boundingBox, "background");
this.proxyBox_mc._height = this.itmHgt;
this.numDisplayed = Math.min(this.rowCount, this.getLength());
if (this.numDisplayed < 3) {
this.numDisplayed = Math.min(3, this.getLength());
}
this.height = (this.numDisplayed * (this.itmHgt - 2)) + 2;
super.setSize(w, this.height);
this.attachMovie("DownArrow", "downArrow", 10);
this.downArrow._y = 0;
this.downArrow._width = this.itmHgt;
this.downArrow._height = this.itmHgt;
this.downArrow._x = this.proxyBox_mc._width - this.downArrow._width;
this.setEditable(this.editable);
this.container_mc._visible = this.opened;
this.highlightTop(false);
this.fader = this.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
this.registerSkinElement(this.fader.boundingBox, "background");
this.fader._width = this.width;
this.fader._height = this.height;
this.fader._visible = false;
};
FComboBoxClass.prototype.setDataProvider = function (dp) {
super.setDataProvider(dp);
this.invalidate("setSize");
this.setSelectedIndex(0);
};
FComboBoxClass.prototype.getValue = function () {
if (this.editable) {
return(this.fLabel_mc.getLabel());
}
return(super.getValue());
};
FComboBoxClass.prototype.getRowCount = function () {
return(this.rowCount);
};
FComboBoxClass.prototype.setRowCount = function (count) {
this.rowCount = ((this.getLength() > count) ? (Math.max(count, 3)) : (count));
this.setSize(this.width);
var len = this.getLength();
if ((len - this.getScrollPosition()) < this.rowCount) {
this.setScrollPosition(len - Math.min(this.rowCount, len));
this.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
if (!this.enable) {
return(undefined);
}
this.editable = editableFlag;
if (!this.editable) {
this.onPress = this.pressHandler;
this.useHandCursor = false;
this.trackAsMenu = true;
this.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:this, itemNum:-1});
this.fLabel_mc.onRollOver = undefined;
this.fLabel_mc.setSize((this.width - this.itmHgt) + 1, this.itmHgt);
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, false);
this.highlightTop(false);
} else {
this.attachMovie("FLabelSymbol", "fLabel_mc", 5);
this.fLabel_txt = this.fLabel_mc.labelField;
this.fLabel_txt.type = "input";
this.fLabel_txt._x = 4;
this.fLabel_txt.onSetFocus = this.onLabelFocus;
this.fLabel_mc.setSize((this.width - this.itmHgt) - 3);
delete this.onPress;
this.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
this.fLabel_mc.setLabel(this.value);
this.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
this.downArrow.onPress = this.buttonPressHandler;
this.downArrow.useHandCursor = false;
this.downArrow.trackAsMenu = true;
}
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
enabledFlag = (((enabledFlag == undefined) || (typeof(enabledFlag) != "boolean")) ? true : (enabledFlag));
super.setEnabled(enabledFlag);
this.registerSkinElement(this.boundingBox_mc.boundingBox, "background");
this.proxyBox_mc.gotoAndStop((this.enable ? "enabled" : "disabled"));
this.downArrow.gotoAndStop((this.enable ? 1 : 3));
if (this.editable) {
this.fLabel_txt.type = (enabledFlag ? "input" : "dynamic");
this.fLabel_txt.selectable = enabledFlag;
} else if (enabledFlag) {
this.fLabel_mc.drawItem(this.topLabel, false);
this.setSelectedIndex(this.getSelectedIndex(), false);
}
this.fLabel_mc.setEnabled(this.enable);
this.fLabel_txt.onSetFocus = (enabledFlag ? (this.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
super.setSelectedIndex(index, flag);
if (!this.editable) {
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, false);
} else {
this.value = ((flag != undefined) ? "" : (this.getSelectedItem().label));
this.fLabel_mc.setLabel(this.value);
}
this.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
if (this.editable) {
this.fLabel_mc.setLabel(value);
this.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
this.focusRect.removeMovieClip();
if (this.enable) {
if (!this.opened) {
this.onMouseUp = this.releaseHandler;
} else {
this.onMouseUp = undefined;
}
this.changeFlag = false;
if (!this.focused) {
this.pressFocus();
this.clickFilter = (this.editable ? false : true);
}
if (!this.clickFilter) {
this.openOrClose(!this.opened);
} else {
this.clickFilter = false;
}
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
if (!this.focused) {
if (this.editable) {
this.fLabel_txt.onKillFocus = undefined;
}
this.pressFocus();
}
super.clickHandler(itmNum);
this.selectionHandler(itmNum);
this.onMouseUp = this.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
if (!this.editable) {
this.fLabel_mc.drawItem(this.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
if (Selection.getFocus().indexOf("labelField") != -1) {
return(undefined);
}
super.myOnKillFocus();
delete this.fLabel_txt.onKeyDown;
this.openOrClose(false);
this.highlightTop(false);
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
mcRef._x = this._x;
var point = {x:this._x, y:this._y + this.proxyBox_mc._height};
this._parent.localToGlobal(point);
mcRef._parent.globalToLocal(point);
mcRef._x = point.x;
mcRef._y = point.y;
if ((this.height + mcRef._y) >= Stage.height) {
this.upward = true;
mcRef._y = (point.y - this.height) - this.proxyBox_mc._height;
} else {
this.upward = false;
}
};
FComboBoxClass.prototype.openOrClose = function (flag) {
if (this.getLength() == 0) {
return(undefined);
}
this.setPopUpLocation(this.container_mc);
if ((this.lastSelected != -1) && ((this.lastSelected < this.topDisplayed) || (this.lastSelected > (this.topDisplayed + this.numDisplayed)))) {
super.moveSelBy(this.lastSelected - this.getSelectedIndex());
}
if (!flag) {
(this.downArrow.gotoAndStop(1));// not popped
} else {
(this.downArrow.gotoAndStop(2));// not popped
}
if (flag == this.opened) {
return(undefined);
}
this.highlightTop(!flag);
this.fadeRate = this.styleTable.popUpFade.value;
if (((!flag) || (this.fadeRate == undefined)) || (this.fadeRate == 0)) {
this.opened = (this.container_mc._visible = flag);
return(undefined);
}
this.setPopUpLocation(this.fader);
this.time = 0;
this.const = 85 / Math.sqrt(this.fadeRate);
this.fader._alpha = 85;
this.container_mc._visible = (this.fader._visible = true);
this.onEnterFrame = function () {
this.fader._alpha = 100 - ((this.const * Math.sqrt(++this.time)) + 15);
if (this.time >= this.fadeRate) {
this.fader._visible = false;
delete this.onEnterFrame;
this.opened = true;
}
};
};
FComboBoxClass.prototype.fireChange = function () {
this.lastSelected = this.getSelectedIndex();
if (!this.editable) {
this.topLabel = this.getSelectedItem();
this.fLabel_mc.drawItem(this.topLabel, true);
} else {
this.value = this.getSelectedItem().label;
this.fLabel_mc.setLabel(this.value);
}
this.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var onCombo = this.boundingBox_mc.hitTest(_root._xmouse, _root._ymouse);
if (this.changeFlag) {
if (onCombo) {
this.fireChange();
}
this.openOrClose(!this.opened);
} else if (onCombo) {
this.openOrClose(false);
} else {
this.onMouseDown = function () {
if ((!this.boundingBox_mc.hitTest(_root._xmouse, _root._ymouse)) && (!this.hitTest(_root._xmouse, _root._ymouse))) {
this.onMouseDown = undefined;
this.openOrClose(false);
}
};
}
this.changeFlag = false;
this.onMouseUp = undefined;
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (this.editable) {
this.setValue(this.getSelectedItem().label);
}
if (!this.opened) {
if (this.changeFlag && (!this.isSelected(this.lastSelected))) {
this.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
if (!this.focused) {
return(undefined);
}
if (this.editable && (Key.isDown(13))) {
this.setValue(this.fLabel_mc.getLabel());
this.executeCallback();
this.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!this.editable))) && (this.opened)) {
if (this.getSelectedIndex() != this.lastSelected) {
this.fireChange();
}
this.openOrClose(false);
this.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
this._parent._parent.tabFocused = false;
this._parent._parent.focused = true;
this.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(this);
};
FComboBoxClass.prototype.buttonPressHandler = function () {
this._parent.pressHandler();
};
#endinitclip
this.deadPreview._visible = false;
Instance of Symbol 101 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 109 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 121 Button
on (release) {
play();
}
Symbol 158 MovieClip Frame 1
this._visible = false;
Instance of Symbol 156 MovieClip in Symbol 159 MovieClip Frame 1
onClipEvent (keyDown) {
if (Key.isDown(9)) {
Selection.setFocus("dummy");
}
}
Symbol 165 Button
on (release) {
gotoAndStop (132);
}
Symbol 167 Button
on (release) {
gotoAndStop (122);
}
Symbol 169 Button
on (release) {
gotoAndPlay (133);
}
Symbol 172 Button
on (release) {
gotoAndStop (117);
}
Symbol 216 Button
on (release) {
gotoAndStop (781);
}
Symbol 222 Button
on (release) {
gotoAndStop (1145);
}
on (release) {
track1.stop();
}
Symbol 223 Button
on (release) {
gotoAndStop (1154);
}
on (release) {
track1.stop();
}
Symbol 226 Button
on (release) {
gotoAndStop (1133);
}
on (release) {
track1.stop();
}
Symbol 228 Button
on (release) {
nextFrame();
}
on (release) {
track1.stop();
}
Symbol 231 Button
on (press) {
startDrag ("/inventory/mcinvkey");
posx = "getProperty(_root.inventory.mcinvkey_x)";
}
on (release) {
stopDrag();
setProperty("/inventory/mcinvkey", _x , "-21");
setProperty("/inventory/mcinvkey", _y , "-138");
if (getProperty("/inventory/mcinvkey", _droptarget) eq "/lebrundoor") {
tellTarget ("/") {
play();
};
}
}
Symbol 234 Button
on (press) {
startDrag ("/inventory/mcinvsyph");
}
on (release) {
stopDrag();
setProperty("/inventory/mcinvsyph", _x , "-21");
setProperty("/inventory/mcinvsyph", _y , "-196.6");
if (getProperty("/inventory/mcinvsyph", _droptarget) eq "/jbdoor") {
tellTarget ("/") {
play();
};
}
}
Symbol 237 Button
on (press) {
startDrag ("/inventory/mcinvbeer");
}
on (release) {
stopDrag();
setProperty("/inventory/mcinvbeer", _x , "-17.5");
setProperty("/inventory/mcinvbeer", _y , "-83");
if (getProperty("/inventory/mcinvbeer", _droptarget) eq "/sdf") {
tellTarget ("_root.umpf") {
play();
};
tellTarget ("_root.givechip") {
play();
};
_root.beer = "0";
}
}
Symbol 240 Button
on (press) {
startDrag ("/inventory/mcinvchip");
}
on (release) {
stopDrag();
setProperty("/inventory/mcinvchip", _x , "-17.9");
setProperty("/inventory/mcinvchip", _y , "-26.9");
if (getProperty("/inventory/mcinvchip", _droptarget) eq "/sdf") {
tellTarget ("/") {
play();
};
}
}
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 246 Button
on (press) {
startDrag ("/inventory/mccarte");
}
on (release) {
stopDrag();
setProperty("/inventory/mccarte", _x , "-15.1");
setProperty("/inventory/mccarte", _y , "46.5");
if (getProperty("/inventory/mccarte", _droptarget) eq "/hand") {
tellTarget ("/") {
nextFrame();
};
}
}
Symbol 249 Button
on (press) {
startDrag ("/inventory/mcgoldkey");
}
on (release) {
stopDrag();
setProperty("/inventory/mcgoldkey", _x , "-17.9");
setProperty("/inventory/mcgoldkey", _y , "102.4");
if (getProperty("/inventory/mcgoldkey", _droptarget) eq "/cupboard") {
tellTarget ("/") {
nextFrame();
};
}
}
Symbol 254 Button
on (press) {
startDrag ("/inventory/mem");
}
on (release) {
stopDrag();
setProperty("/inventory/mem", _x , "-17.2");
setProperty("/inventory/mem", _y , "154.8");
if (getProperty("/inventory/mem", _droptarget) eq "/ghq") {
tellTarget ("/") {
gotoAndPlay (254);
};
}
}
Symbol 257 MovieClip Frame 1
if (_root.lebrunkeys eq 0) {
setProperty("mcinvkey", _visible , "0");
} else {
setProperty("mcinvkey", _visible , "100");
}
if (_root.beer eq 0) {
setProperty("mcinvbeer", _visible , "0");
} else {
setProperty("mcinvbeer", _visible , "100");
}
if (_root.cash eq 0) {
setProperty("mcinvchip", _visible , "0");
} else if (_root.cash >= 300) {
tellTarget ("mcinvchip") {
gotoAndStop (2);
};
setProperty("mcinvchip", _visible , "100");
} else {
tellTarget ("mcinvchip") {
gotoAndStop (1);
};
setProperty("mcinvchip", _visible , "100");
}
if (_root.ace eq 0) {
setProperty("mccarte", _visible , "0");
} else {
setProperty("mccarte", _visible , "100");
}
if (_root.goldkey eq 0) {
setProperty("mcgoldkey", _visible , "0");
} else {
setProperty("mcgoldkey", _visible , "100");
}
if (_root.mem eq 0) {
setProperty("mem", _visible , "0");
} else {
setProperty("mem", _visible , "100");
}
Symbol 260 Button
on (release) {
gotoAndStop (1131);
}
Symbol 261 Button
on (release) {
gotoAndStop (1140);
}
on (release) {
track2.stop();
}
Symbol 262 Button
on (release) {
gotoAndStop (1140);
}
Symbol 263 Button
on (release) {
gotoAndStop (1154);
}
Symbol 264 Button
on (release) {
nextFrame();
}
Symbol 266 Button
on (release) {
prevFrame();
}
Symbol 270 Button
on (release) {
gotoAndStop (1133);
}
Symbol 271 Button
on (release) {
gotoAndStop (1145);
}
Symbol 272 Button
on (release) {
gotoAndStop (1135);
}
Symbol 273 Button
on (release) {
gotoAndStop (1131);
}
on (release) {
cricket.stop();
}
Symbol 274 Button
on (release) {
gotoAndStop (1154);
}
on (release) {
cricket.stop();
}
Symbol 275 Button
on (release) {
nextFrame();
}
Symbol 277 Button
on (release) {
gotoAndStop (1148);
}
Symbol 278 Button
on (release) {
gotoAndStop (1153);
}
Symbol 280 Button
on (release) {
nextFrame();
}
Symbol 283 Button
on (release) {
gotoAndStop (1150);
}
Symbol 284 Button
on (release) {
gotoAndStop (1151);
}
Symbol 285 Button
on (release) {
gotoAndStop (1152);
}
Symbol 287 MovieClip Frame 53
stop();
Symbol 294 Button
on (release) {
gotoAndStop (1147);
}
Symbol 312 Button
on (release) {
if (meetnick eq 1) {
gotoAndStop (1982);
} else if (call2 eq 2) {
gotoAndPlay (1871);
} else if (viewwill eq 1) {
gotoAndStop (1869);
} else {
gotoAndPlay (1721);
}
}
Symbol 314 Button
on (release) {
gotoAndStop (1314);
}
Symbol 316 Button
on (release) {
gotoAndStop (1145);
}
Symbol 318 Button
on (release) {
if (samvisit eq 0) {
gotoAndStop (1322);
} else {
gotoAndStop (1566);
}
}
Symbol 320 Button
on (release) {
gotoAndPlay (1626);
}
Symbol 331 Button
on (release) {
gotoAndStop (1984);
}
Symbol 333 Button
on (release) {
if (meetnick eq 1) {
gotoAndStop (1982);
} else if (call2 eq 2) {
gotoAndPlay (1871);
} else if (viewwill eq 1) {
gotoAndStop (1869);
} else {
gotoAndPlay (1721);
}
}
Symbol 334 Button
on (release) {
gotoAndStop (1314);
}
Symbol 335 Button
on (release) {
gotoAndStop (1145);
}
Symbol 336 Button
on (release) {
if (samvisit eq 0) {
gotoAndStop (1322);
} else {
gotoAndStop (1566);
}
}
Symbol 337 Button
on (release) {
gotoAndPlay (1626);
}
Symbol 343 Button
on (release) {
play();
}
Symbol 345 Button
on (release) {
gotoAndStop (1);
tellTarget ("_root.pdamsg") {
play();
gumpda = "2";
};
}
Symbol 346 Button
on (release) {
play();
}
Symbol 348 Button
on (release) {
play();
}
Symbol 353 Button
on (release) {
gotoAndStop (1154);
}
Symbol 354 Button
on (release) {
gotoAndStop (1154);
}
Symbol 357 Button
on (release) {
play();
}
Symbol 364 Button
on (release) {
nextFrame();
}
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 25
Mouse.show();
Symbol 371 Button
on (release) {
tellTarget ("/txt") {
play();
};
}
Symbol 380 Button
on (release) {
gotoAndStop (1319);
}
Symbol 381 Button
on (release) {
gotoAndStop (1318);
}
Symbol 382 Button
on (release) {
gotoAndStop (1320);
}
Symbol 388 Button
on (release) {
gotoAndStop (1320);
}
Symbol 396 MovieClip Frame 35
stop();
Symbol 397 Button
on (release) {
gotoAndStop (1316);
}
Symbol 406 MovieClip Frame 90
stop();
Symbol 408 Button
on (release) {
gotoAndStop (1317);
}
Symbol 415 Button
on (release) {
if (samvisit eq 1) {
gotoAndStop (1546);
} else {
play();
}
}
Symbol 430 Button
on (release) {
gotoAndStop (1568);
}
Symbol 431 Button
on (release) {
gotoAndStop (1570);
}
Symbol 433 Button
on (release) {
gotoAndPlay (1575);
}
Symbol 434 Button
on (release) {
gotoAndStop (1572);
}
Symbol 438 Button
on (release) {
gotoAndStop (1566);
}
Symbol 442 Button
on (release) {
play();
}
Symbol 449 Button
on (release) {
gotoAndStop (1);
}
Symbol 455 Button
on (release) {
gotoAndStop (6);
}
Symbol 462 Button
on (release) {
gotoAndStop (12);
}
Symbol 466 MovieClip Frame 1
Mouse.hide();
Symbol 466 MovieClip Frame 93
Mouse.show();
stop();
Symbol 469 Button
on (release) {
gotoAndStop (18);
}
Symbol 470 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 6
stop();
Symbol 470 MovieClip Frame 12
stop();
Symbol 470 MovieClip Frame 18
stop();
_root.ww = "1";
Symbol 470 MovieClip Frame 24
stop();
Symbol 487 Button
on (release) {
gotoAndStop (1569);
}
Symbol 488 Button
on (release) {
gotoAndStop (1567);
}
Symbol 489 Button
on (release) {
gotoAndStop (1571);
}
Symbol 490 Button
on (release) {
gotoAndStop (1574);
}
Symbol 500 Button
on (release) {
if (_root.mem eq 1) {
_root.highscores();
} else {
gotoAndStop (51);
}
}
Symbol 503 Button
on (release) {
_root.quit();
}
Symbol 508 Button
on (release) {
tellTarget ("answers") {
play();
};
}
Symbol 513 MovieClip Frame 1
stop();
Symbol 513 MovieClip Frame 100
stop();
Symbol 516 Button
on (release) {
if (_root.mem eq 1) {
gotoAndPlay (4062);
} else {
gotoAndStop (1625);
}
}
Symbol 517 Button
on (release) {
gotoAndStop (1566);
}
Symbol 526 Button
on (release) {
gotoAndPlay (1575);
}
Symbol 536 Button
on (release) {
tellTarget ("_root.umpf2") {
play();
};
}
Symbol 542 Button
on (rollOver) {
setProperty("_root.arrow1", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("_root.arrow1", _visible , "0");
}
on (release) {
if (frontdoor eq 1) {
gotoAndStop (1702);
} else {
tellTarget ("locked") {
play();
};
}
}
Symbol 543 Button
on (rollOver) {
setProperty("_root.arrow2", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("_root.arrow2", _visible , "0");
}
on (release) {
play();
}
Symbol 546 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 45
Mouse.show();
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 47
Mouse.show();
Symbol 551 Button
on (release) {
gotoAndStop (1);
_root.cash = Number(_root.cash) + 100;
}
Symbol 552 MovieClip Frame 1
stop();
Symbol 552 MovieClip Frame 33
stop();
Symbol 562 Button
on (release) {
tellTarget ("_root.budge") {
play();
};
}
Symbol 565 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 25
Mouse.show();
Symbol 566 Button
on (release) {
gotoAndStop (1686);
}
Symbol 571 Button
on (release) {
gotoAndStop (1718);
}
Symbol 579 Button
on (release) {
gotoAndStop (1720);
}
Symbol 586 Button
on (release) {
gotoAndStop (1720);
}
Symbol 588 Button
on (release) {
if (beer eq 1) {
tellTarget ("_root.haveone") {
play();
};
} else {
_root.beer = "1";
tellTarget ("_root.takebeer") {
play();
};
}
}
Symbol 597 Button
on (release) {
frontdoor = "1";
gotoAndStop (1686);
}
Symbol 599 Button
on (release) {
gotoAndStop (1717);
}
Symbol 601 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 25
Mouse.show();
Symbol 603 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 25
Mouse.show();
Symbol 604 MovieClip Frame 1
stop();
Symbol 609 Button
on (release) {
gotoAndStop (1719);
}
Symbol 610 Button
on (release) {
tellTarget ("_root.light") {
play();
};
}
Symbol 611 Button
on (release) {
gotoAndStop (1702);
}
Symbol 616 MovieClip Frame 54
stop();
Symbol 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 2
Mouse.hide();
Symbol 618 MovieClip Frame 83
Mouse.show();
stop();
Symbol 640 Button
on (rollOver) {
setProperty("revmike", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("revmike", _visible , "0");
}
Symbol 641 Button
on (rollOver) {
setProperty("revfred", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("revfred", _visible , "0");
}
Symbol 642 Button
on (rollOver) {
setProperty("revwill", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("revwill", _visible , "0");
}
Symbol 643 Button
on (rollOver) {
setProperty("revnami", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("revnami", _visible , "0");
}
Symbol 644 Button
on (rollOver) {
setProperty("revgerman", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("revgerman", _visible , "0");
}
Symbol 645 Button
on (rollOver) {
setProperty("revsam", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("revsam", _visible , "0");
}
Symbol 646 Button
on (rollOver) {
setProperty("revvince", _visible , "100");
}
on (rollOut, dragOut) {
setProperty("revvince", _visible , "0");
}
Symbol 647 Button
on (release) {
gotoAndStop (1716);
}
Symbol 670 MovieClip Frame 1
stop();
Symbol 670 MovieClip Frame 2
stop();
Symbol 670 MovieClip Frame 4
stop();
Symbol 670 MovieClip Frame 5
stop();
Symbol 670 MovieClip Frame 7
stop();
Symbol 670 MovieClip Frame 8
stop();
Symbol 670 MovieClip Frame 10
stop();
Symbol 670 MovieClip Frame 11
stop();
Symbol 670 MovieClip Frame 13
stop();
Symbol 670 MovieClip Frame 14
stop();
Symbol 670 MovieClip Frame 16
stop();
Symbol 670 MovieClip Frame 17
stop();
Symbol 670 MovieClip Frame 19
stop();
Symbol 670 MovieClip Frame 20
stop();
Symbol 677 MovieClip Frame 1
stop();
Symbol 677 MovieClip Frame 2
stop();
Symbol 677 MovieClip Frame 4
stop();
Symbol 677 MovieClip Frame 5
stop();
Symbol 677 MovieClip Frame 7
stop();
Symbol 677 MovieClip Frame 8
stop();
Symbol 692 MovieClip Frame 1
stop();
Symbol 692 MovieClip Frame 49
stop();
_root.dialog();
tellTarget ("_root.WQ1") {
gotoAndPlay (4);
};
Symbol 692 MovieClip Frame 85
stop();
_root.dialog();
tellTarget ("_root.WQ1") {
gotoAndPlay (7);
};
Symbol 692 MovieClip Frame 173
stop();
_root.dialog();
tellTarget ("_root.WQ1") {
gotoAndPlay (10);
};
Symbol 692 MovieClip Frame 307
stop();
_root.dialog();
tellTarget ("_root.WQ1") {
gotoAndPlay (13);
};
Symbol 692 MovieClip Frame 390
stop();
_root.dialog();
tellTarget ("_root.WQ1") {
gotoAndPlay (16);
};
Symbol 692 MovieClip Frame 433
stop();
_root.dialog();
tellTarget ("_root.WQ1") {
gotoAndPlay (19);
};
Symbol 692 MovieClip Frame 482
stop();
tellTarget ("_root") {
WQ1fin = "1";
};
_root.dialog();
Symbol 696 MovieClip Frame 1
stop();
Symbol 696 MovieClip Frame 43
stop();
tellTarget ("_root.WQ3") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 696 MovieClip Frame 143
stop();
tellTarget ("_root.WQ3") {
gotoAndPlay (7);
};
_root.dialog();
Symbol 696 MovieClip Frame 178
stop();
tellTarget ("_root") {
WQ3fin = "1";
};
_root.dialog();
_root.call2 = "1";
Symbol 697 Button
on (rollOver) {
tellTarget ("WQ1") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("WQ1") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("WR1") {
play();
};
setProperty("WQ1", _visible , "0");
setProperty("WQbutton1", _visible , "0");
setProperty("WQ2", _visible , "0");
setProperty("WQbutton2", _visible , "0");
setProperty("WQ3", _visible , "0");
setProperty("WQbutton3", _visible , "0");
}
Symbol 698 Button
on (rollOver) {
tellTarget ("WQ3") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("WQ3") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("WR3") {
play();
};
setProperty("WQ1", _visible , "0");
setProperty("WQbutton1", _visible , "0");
setProperty("WQ2", _visible , "0");
setProperty("WQbutton2", _visible , "0");
setProperty("WQ3", _visible , "0");
setProperty("WQbutton3", _visible , "0");
}
Symbol 720 Button
on (release) {
if (meetcasino eq 1) {
gotoAndStop (2052);
} else {
play();
}
}
Symbol 736 Button
on (release) {
gotoAndStop (1154);
}
Symbol 740 Button
on (release) {
if (rooms eq 1) {
gotoAndStop (2063);
}
}
Symbol 744 Button
on (release) {
gotoAndStop (2060);
}
Symbol 748 Button
on (release) {
gotoAndStop (2052);
}
Symbol 752 Button
on (release) {
gotoAndStop (2055);
}
Symbol 756 Button
on (release) {
gotoAndPlay (2079);
}
Symbol 764 Button
on (release) {
gotoAndStop (2052);
}
Symbol 765 Button
on (release) {
gotoAndStop (2052);
}
Symbol 768 Button
on (release) {
gotoAndStop (2057);
}
Symbol 769 Button
on (release) {
gotoAndStop (2052);
}
Symbol 773 Button
on (release) {
gotoAndStop (2059);
}
Symbol 781 MovieClip Frame 1
stop();
Symbol 781 MovieClip Frame 2
stop();
Symbol 781 MovieClip Frame 4
stop();
Symbol 781 MovieClip Frame 5
stop();
Symbol 781 MovieClip Frame 7
stop();
Symbol 781 MovieClip Frame 8
stop();
Symbol 792 MovieClip Frame 1
stop();
Symbol 792 MovieClip Frame 2
stop();
Symbol 792 MovieClip Frame 4
stop();
Symbol 792 MovieClip Frame 5
stop();
Symbol 792 MovieClip Frame 7
stop();
Symbol 792 MovieClip Frame 8
stop();
Symbol 792 MovieClip Frame 10
stop();
Symbol 792 MovieClip Frame 11
stop();
Symbol 792 MovieClip Frame 13
stop();
Symbol 792 MovieClip Frame 14
stop();
Symbol 797 MovieClip Frame 1
stop();
Symbol 797 MovieClip Frame 41
stop();
tellTarget ("_root.MQ1") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 797 MovieClip Frame 91
_root.knowfred = "1";
Symbol 797 MovieClip Frame 138
stop();
tellTarget ("_root.MQ1") {
gotoAndPlay (7);
};
_root.dialog();
Symbol 797 MovieClip Frame 157
stop();
tellTarget ("_root") {
MQ1fin = "1";
};
_root.dialog();
Symbol 812 MovieClip Frame 1
stop();
Symbol 812 MovieClip Frame 132
stop();
tellTarget ("_root.MQ2") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 812 MovieClip Frame 251
stop();
tellTarget ("_root.MQ2") {
gotoAndPlay (7);
};
_root.dialog();
Symbol 812 MovieClip Frame 418
_root.backstage = "1";
Symbol 812 MovieClip Frame 437
stop();
tellTarget ("_root.MQ2") {
gotoAndPlay (10);
};
_root.dialog();
Symbol 812 MovieClip Frame 497
stop();
tellTarget ("_root.MQ2") {
gotoAndPlay (13);
};
_root.dialog();
Symbol 812 MovieClip Frame 560
_root.balcony = "1";
Symbol 812 MovieClip Frame 585
stop();
tellTarget ("_root") {
MQ2fin = "1";
};
_root.dialog();
Symbol 813 Button
on (release) {
gotoAndStop (2055);
}
Symbol 815 Button
on (rollOver) {
tellTarget ("MQ1") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("MQ1") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("MR1") {
play();
};
setProperty("MQ1", _visible , "0");
setProperty("MQbutton1", _visible , "0");
setProperty("MQ2", _visible , "0");
setProperty("MQbutton2", _visible , "0");
}
Symbol 816 Button
on (rollOver) {
tellTarget ("MQ2") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("MQ2") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("MR2") {
play();
};
setProperty("MQ1", _visible , "0");
setProperty("MQbutton1", _visible , "0");
setProperty("MQ2", _visible , "0");
setProperty("MQbutton2", _visible , "0");
}
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 2
stop();
Symbol 828 MovieClip Frame 4
stop();
Symbol 828 MovieClip Frame 5
stop();
Symbol 828 MovieClip Frame 7
stop();
Symbol 828 MovieClip Frame 8
stop();
Symbol 833 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 2
stop();
Symbol 833 MovieClip Frame 4
stop();
Symbol 833 MovieClip Frame 5
stop();
Symbol 844 MovieClip Frame 1
stop();
Symbol 844 MovieClip Frame 92
stop();
tellTarget ("_root.EQ1") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 844 MovieClip Frame 196
stop();
tellTarget ("_root.EQ1") {
gotoAndPlay (7);
};
_root.dialog();
Symbol 844 MovieClip Frame 387
stop();
tellTarget ("_root") {
EQ1fin = "1";
};
_root.dialog();
Symbol 850 MovieClip Frame 1
stop();
Symbol 850 MovieClip Frame 157
stop();
tellTarget ("_root.EQ2") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 850 MovieClip Frame 261
stop();
tellTarget ("_root") {
EQ2fin = "1";
};
_root.dialog();
Symbol 851 Button
on (rollOver) {
tellTarget ("EQ1") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("EQ1") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("ER1") {
play();
};
setProperty("EQ1", _visible , "0");
setProperty("EQbutton1", _visible , "0");
setProperty("EQ2", _visible , "0");
setProperty("EQbutton2", _visible , "0");
}
Symbol 852 Button
on (rollOver) {
tellTarget ("EQ2") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("EQ2") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("ER2") {
play();
};
setProperty("EQ1", _visible , "0");
setProperty("EQbutton1", _visible , "0");
setProperty("EQ2", _visible , "0");
setProperty("EQbutton2", _visible , "0");
}
Symbol 858 Button
on (release) {
nextFrame();
}
Symbol 861 Button
on (release) {
gotoAndStop (2062);
}
Symbol 864 Button
on (release) {
if (cash > 0) {
gotoAndPlay (2073);
} else {
tellTarget ("textechip") {
play();
};
}
}
Symbol 866 MovieClip Frame 1
stop();
Symbol 866 MovieClip Frame 25
Mouse.show();
Symbol 872 Button
on (release) {
if (cash < 300) {
tellTarget ("nocash") {
play();
};
} else {
gotoAndPlay (3312);
}
}
Symbol 876 MovieClip Frame 1
stop();
Symbol 876 MovieClip Frame 77
Mouse.show();
Symbol 879 Button
on (release) {
gotoAndStop (2064);
}
Symbol 881 Button
on (release) {
gotoAndStop (2067);
}
Symbol 883 Button
on (release) {
gotoAndStop (2072);
}
Symbol 885 Button
on (release) {
gotoAndStop (2068);
}
Symbol 887 Button
on (release) {
gotoAndStop (2066);
}
Symbol 890 Button
on (release) {
gotoAndStop (2063);
}
Symbol 892 Button
on (release) {
gotoAndStop (2064);
}
Symbol 917 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 2
stop();
Symbol 917 MovieClip Frame 4
stop();
Symbol 917 MovieClip Frame 5
stop();
Symbol 917 MovieClip Frame 7
stop();
Symbol 917 MovieClip Frame 8
stop();
Symbol 924 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 54
stop();
tellTarget ("_root.MQ3") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 924 MovieClip Frame 111
stop();
tellTarget ("_root.MQ3") {
gotoAndPlay (7);
};
_root.dialog();
Symbol 924 MovieClip Frame 214
stop();
tellTarget ("_root") {
MQ3fin = "1";
};
_root.dialog();
Symbol 925 Button
on (rollOver) {
tellTarget ("MQ3") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("MQ3") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("MR3") {
play();
};
setProperty("MQ3", _visible , "0");
setProperty("MQbutton3", _visible , "0");
}
Symbol 933 MovieClip Frame 1
stop();
Symbol 933 MovieClip Frame 2
stop();
Symbol 933 MovieClip Frame 4
stop();
Symbol 933 MovieClip Frame 5
stop();
Symbol 933 MovieClip Frame 7
stop();
Symbol 933 MovieClip Frame 8
stop();
Symbol 936 MovieClip Frame 1
stop();
Symbol 936 MovieClip Frame 2
stop();
Symbol 943 MovieClip Frame 1
stop();
Symbol 943 MovieClip Frame 104
stop();
tellTarget ("_root.CQ1") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 943 MovieClip Frame 246
stop();
tellTarget ("_root.CQ1") {
gotoAndPlay (7);
};
_root.dialog();
Symbol 943 MovieClip Frame 277
stop();
tellTarget ("_root") {
CQ1fin = "1";
};
_root.dialog();
Symbol 945 MovieClip Frame 1
stop();
Symbol 945 MovieClip Frame 55
stop();
tellTarget ("_root") {
CQ2fin = "1";
};
_root.dialog();
Symbol 946 Button
on (rollOver) {
tellTarget ("CQ1") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("CQ1") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("CR1") {
play();
};
setProperty("CQ1", _visible , "0");
setProperty("CQbutton1", _visible , "0");
setProperty("CQ2", _visible , "0");
setProperty("CQbutton2", _visible , "0");
}
Symbol 947 Button
on (rollOver) {
tellTarget ("CQ2") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("CQ2") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("CR2") {
play();
};
setProperty("CQ1", _visible , "0");
setProperty("CQbutton1", _visible , "0");
setProperty("CQ2", _visible , "0");
setProperty("CQbutton2", _visible , "0");
}
Symbol 952 MovieClip Frame 1
stop();
Symbol 952 MovieClip Frame 10
gotoAndPlay (2);
Symbol 956 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 10
gotoAndPlay (2);
Symbol 960 MovieClip Frame 1
stop();
Symbol 960 MovieClip Frame 10
gotoAndPlay (2);
Symbol 964 MovieClip Frame 1
stop();
Symbol 964 MovieClip Frame 10
gotoAndPlay (2);
Symbol 968 MovieClip Frame 1
stop();
Symbol 968 MovieClip Frame 10
gotoAndPlay (2);
Symbol 972 MovieClip Frame 1
stop();
Symbol 972 MovieClip Frame 10
gotoAndPlay (2);
Symbol 976 MovieClip Frame 1
stop();
Symbol 976 MovieClip Frame 10
gotoAndPlay (2);
Symbol 980 MovieClip Frame 1
stop();
Symbol 980 MovieClip Frame 10
gotoAndPlay (2);
Symbol 984 MovieClip Frame 1
stop();
Symbol 984 MovieClip Frame 10
gotoAndPlay (2);
Symbol 1026 MovieClip Frame 1
stop();
Symbol 1028 Button
on (press) {
holdDraw(3);
}
Symbol 1029 Button
on (press) {
holdDraw(0);
}
Symbol 1030 Button
on (press) {
holdDraw(1);
}
Symbol 1031 Button
on (press) {
holdDraw(4);
}
Symbol 1032 Button
on (press) {
holdDraw(2);
}
Symbol 1036 Button
on (press) {
if (Number(bet) > 0) {
gotoAndPlay (2075);
}
}
Symbol 1041 Button
on (release) {
if (Number(cash) > 4) {
bet = Number(bet) + 5;
cash = cash - 5;
tellBet();
mysound = new Sound();
mySound.attachSound("bet1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
}
}
Symbol 1044 Button
on (release) {
if (Number(cash) > 9) {
bet = Number(bet) + 10;
cash = cash - 10;
tellBet();
mysound = new Sound();
mySound.attachSound("bet1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
}
}
Symbol 1047 Button
on (release) {
if (Number(cash) > 24) {
bet = Number(bet) + 25;
cash = cash - 25;
tellBet();
mysound = new Sound();
mySound.attachSound("bet1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
}
}
Symbol 1054 Button
on (press) {
secondDraw();
}
Symbol 1055 Button
on (press) {
tellTarget ("pair") {
gotoAndStop (1);
};
mysound = new Sound();
mySound.attachSound("play1");
mySound.start(0, 1);
mySound.setPan(0);
mySound.setVolume(100);
if (Number(cash) <= 0) {
gotoAndStop (2077);
} else if (Number(cash) >= 300) {
gotoAndStop (2078);
} else {
gotoAndPlay (2074);
}
output1 = "";
output2 = "";
output3 = "";
output4 = "";
output5 = "";
output6 = "";
output7 = "";
output8 = "";
output9 = "";
}
Symbol 1062 Button
on (release) {
gotoAndStop (2052);
}
Symbol 1071 Button
on (release) {
gotoAndStop (2133);
}
Symbol 1074 Button
on (release) {
if ((meetfred eq 0) && (balcony eq 1)) {
gotoAndStop (2129);
} else {
gotoAndStop (2128);
}
}
Symbol 1079 Button
on (release) {
nextFrame();
}
Symbol 1088 MovieClip Frame 1
stop();
Symbol 1088 MovieClip Frame 2
stop();
Symbol 1088 MovieClip Frame 4
stop();
Symbol 1088 MovieClip Frame 5
stop();
Symbol 1088 MovieClip Frame 7
stop();
Symbol 1088 MovieClip Frame 8
stop();
Symbol 1088 MovieClip Frame 10
stop();
Symbol 1088 MovieClip Frame 11
stop();
Symbol 1097 MovieClip Frame 1
stop();
Symbol 1097 MovieClip Frame 2
stop();
Symbol 1097 MovieClip Frame 4
stop();
Symbol 1097 MovieClip Frame 5
stop();
Symbol 1097 MovieClip Frame 7
stop();
Symbol 1097 MovieClip Frame 8
stop();
Symbol 1097 MovieClip Frame 10
stop();
Symbol 1097 MovieClip Frame 11
stop();
Symbol 1104 MovieClip Frame 1
stop();
Symbol 1104 MovieClip Frame 39
stop();
tellTarget ("_root.FQ1") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 1104 MovieClip Frame 102
stop();
tellTarget ("_root.FQ1") {
gotoAndPlay (7);
};
_root.dialog();
Symbol 1104 MovieClip Frame 149
stop();
tellTarget ("_root.FQ1") {
gotoAndPlay (10);
};
_root.viewfred = "1";
_root.dialog();
Symbol 1104 MovieClip Frame 233
stop();
tellTarget ("_root") {
FQ1fin = "1";
};
_root.dialog();
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1115 MovieClip Frame 89
stop();
tellTarget ("_root.FQ2") {
gotoAndPlay (4);
};
_root.dialog();
Symbol 1115 MovieClip Frame 252
stop();
tellTarget ("_root.FQ2") {
gotoAndPlay (7);
};
_root.dialog();
Symbol 1115 MovieClip Frame 319
stop();
tellTarget ("_root.FQ2") {
gotoAndPlay (10);
};
_root.dialog();
Symbol 1115 MovieClip Frame 370
_root.meetfred = "1";
Symbol 1115 MovieClip Frame 403
stop();
tellTarget ("_root") {
FQ2fin = "1";
vip = "1";
};
_root.dialog();
Symbol 1116 Button
on (release) {
gotoAndPlay (2052);
}
Symbol 1118 Button
on (rollOver) {
tellTarget ("FQ1") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("FQ1") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("FR1") {
play();
};
setProperty("FQ1", _visible , "0");
setProperty("FQbutton1", _visible , "0");
setProperty("FQ2", _visible , "0");
setProperty("FQbutton2", _visible , "0");
}
Symbol 1119 Button
on (rollOver) {
tellTarget ("FQ2") {
nextFrame();
};
}
on (rollOut) {
tellTarget ("FQ2") {
prevFrame();
};
}
on (release) {
Mouse.hide();
tellTarget ("FR2") {
play();
};
setProperty("FQ1", _visible , "0");
setProperty("FQbutton1", _visible , "0");
setProperty("FQ2", _visible , "0");
setProperty("FQbutton2", _visible , "0");
}
Symbol 1124 Button
on (release) {
play();
}
Symbol 1127 Button
on (release) {
play();
}
Symbol 1200 Button
on (release) {
play();
}
Symbol 1221 Button
on (release) {
gotoAndPlay (3912);
}
Symbol 1222 Button
on (release) {
gotoAndPlay (3912);
}
Symbol 1226 Button
on (release) {
play();
}
Symbol 1379 Button
on (release) {
getURL ("http://johnnybdesign.com");
}