Frame 1
unloadMovie ("square");
_root.introtext = Starting;
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
_root.loadBar._width = getPercent * 130;
_root.loadText = Math.round(getPercent * 100) + "%";
if (bytes_loaded == (bytes_total - 70)) {
_root.introtext = Hello;
} else if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(3);
}
Frame 2
gotoAndPlay (1);
Frame 3
unloadMovie ("square");
var V1 = 250;
var V2 = 0;
var V3 = 0;
var V6 = "";
hd = "http://www.no1games.com/highscores/";
if (!_root.mytexts) {
var mytexts = "new player";
}
Sounda = new Sound(this);
Sounda.attachSound("chipdrop");
Soundb = new Sound(this);
Soundb.attachSound("shuffle");
Soundc = new Sound(this);
Soundc.attachSound("click");
Soundd = new Sound(this);
Soundd.attachSound("flip");
stop();
Frame 4
var V4 = 0;
var V7 = "Bet from bellow !!";
mcalert.gotoAndPlay(1);
_root.mcWinnings.gotoAndPlay(1);
setProperty(_root.mcalert, _visible , 1);
if (!V6) {
var V1 = 250;
var V2 = 0;
var V3 = 0;
} else {
var V1 = V6;
var V2 = V2;
var V3 = V3;
}
setProperty(_root.b_addBet, _visible , 1);
setProperty(_root.b_removeBet, _visible , 1);
var V5 = 52;
var V9 = new Array();
var V8 = 5;
V9[0] = 0;
n = 1;
while (n <= V8) {
i = 0;
while (i < 2) {
V9[n] = random(V5);
c = 0;
while (c < (V9.length - 1)) {
if (V9[n] == V9[c]) {
i--;
}
c++;
}
i++;
}
n++;
}
var V101 = V9[1];
var V102 = V9[2];
var V103 = V9[3];
var V104 = V9[4];
var V105 = V9[5];
var V111 = "";
var V112 = "";
var V113 = "";
var V114 = "";
var V115 = "";
var V131 = 100;
var V132 = 100;
var V133 = 100;
var V134 = 100;
var V135 = 100;
var old1 = V9[1];
var old2 = V9[2];
var old3 = V9[3];
var old4 = V9[4];
var old5 = V9[5];
Frame 5
_root.V4 = 0;
stop();
Instance of Symbol 199 MovieClip "mc_card1" in Frame 5
onClipEvent (enterFrame) {
gotoAndStop(Cards[4]);
}
Frame 6
var V7 = "Click to Hold !!";
_root.mcAlert.gotoAndPlay(1);
stop();
Frame 7
V5 = 52;
SH = new Array(0, secHand1, secHand2, secHand3, secHand4, secHand5);
_root.nexthand.gotoAndPlay(1);
V12 = new Array("0");
var c = 0;
i = 1;
while (i <= 6) {
if (SH[i] == V9[i]) {
c++;
V12[i] = V9[i];
}
i++;
}
var secondDraw = (7 - V12.length);
n = 1;
while (n <= 5) {
if (V12[n] < 1) {
i = 0;
while (i < 1) {
V9[n] = random(V5);
c = 0;
while (c <= 5) {
if ((V9[n] == V9[c]) && (n != c)) {
i--;
}
c++;
}
i++;
}
}
n++;
}
var c = 6;
i = 1;
while (i < 6) {
V12[i] = V9[i];
c++;
i++;
}
var V101 = V12[1];
var V102 = V12[2];
var V103 = V12[3];
var V104 = V12[4];
var V105 = V12[5];
nextFrame();
Frame 8
function sortByNumber(a, b) {
return(a > b);
}
setProperty(_root.doubler, _visible , 0);
setProperty(_root.doublebut, _visible , 0);
setProperty(_root.b_shuffle, _visible , 0);
setProperty(_root.b_addBet, _visible , 0);
setProperty(_root.b_removeBet, _visible , 0);
var winnings = "NOTHING !!";
win = new Array(V101, V102, V103, V104, V105);
if (win[0] <= 13) {
suit = "hearts";
i = 0;
while (i < 5) {
if (win[i] <= 13) {
winnings = "Flush!";
} else {
winnings = "No Wins";
i = 5;
}
i++;
}
}
if ((win[0] > 13) && (win[0] <= 26)) {
suit = "spades";
i = 0;
while (i < 5) {
if ((win[i] > 13) && (win[i] <= 26)) {
winnings = "Flush!";
} else {
winnings = "No Wins";
i = 5;
}
i++;
}
}
if ((win[0] > 26) && (win[0] <= 39)) {
suit = "diamonds";
i = 0;
while (i < 5) {
if ((win[i] > 26) && (win[i] <= 39)) {
winnings = "Flush!";
} else {
winnings = "No Wins";
i = 5;
}
i++;
}
}
if ((win[0] > 39) && (win[0] <= 52)) {
suit = "cloves";
i = 0;
while (i < 5) {
if ((win[i] > 39) && (win[i] <= 52)) {
winnings = "Flush!";
} else {
winnings = "No Wins";
i = 5;
}
i++;
}
}
i = 0;
while (i < 5) {
if ((win[i] > 13) && (win[i] <= 26)) {
win[i] = win[i] - 13;
} else if ((win[i] > 26) && (win[i] <= 39)) {
win[i] = win[i] - 26;
} else if ((win[i] > 39) && (win[i] <= 52)) {
win[i] = win[i] - 39;
} else {
win[i] = win[i];
}
i++;
}
win.sort(sortByNumber);
var match = 0;
matchArray = new Array();
i = 0;
while (i < 5) {
c = 0;
while (c < 5) {
if ((win[i] == win[c]) && (c != i)) {
match++;
matchArray.push(win[i]);
}
c++;
}
i++;
}
if (match > 0) {
if ((match == 2) && (matchArray[0] >= 10)) {
winnings = "One Pair";
} else if ((match == 2) && (matchArray[0] == 1)) {
winnings = "One Pair";
} else if (match == 6) {
winnings = "3 Of A Kind";
} else if (match == 4) {
i = 0;
while (i < 3) {
if (matchArray[i] == matchArray[i + 1]) {
winnings = "4 Of A Kind!";
} else {
winnings = "Two Pair";
i = 3;
}
i++;
}
} else if (match == 8) {
winnings = "Full House!";
} else if (match == 12) {
winnings = "4 Of A Kind!";
}
}
if ((match == 0) && ((substring(winnings, 0, 6)) != "Flush!")) {
i = 0;
while (i < 4) {
if (win[i] == (win[i + 1] - 1)) {
winnings = "Straight!";
} else {
winnings = "No Wins";
i = 5;
}
i++;
}
if ((substring(winnings, 0, 6)) != "Flush!") {
if (((((win[0] == 1) && (win[1] == 10)) && (win[2] == 11)) && (win[3] == 12)) && (win[4] == 13)) {
winnings = "Straight!";
}
}
}
if ((substring(winnings, 0, 6)) == "Flush!") {
i = 0;
while (i < 4) {
if (win[i] == (win[i + 1] - 1)) {
winnings = "Straight Flush!";
} else {
winnings = "Flush!";
i = 5;
}
i++;
}
if (((((win[0] == 1) && (win[1] == 10)) && (win[2] == 11)) && (win[3] == 12)) && (win[4] == 13)) {
winnings = "Straight Flush!";
} else {
winnings = "Flush!";
}
}
var winMultip = 0;
switch (winnings) {
case "No Wins" :
winMultip = 0;
break;
case "One Pair" :
winMultip = 2;
setProperty(_root.showWin, _y , 155);
_root.winer.gotoAndPlay(9);
break;
case "Two Pair" :
winMultip = 3;
setProperty(_root.showWin, _y , 135);
_root.winer.gotoAndPlay(8);
break;
case "3 Of A Kind" :
winMultip = 4;
setProperty(_root.showWin, _y , 115);
_root.winer.gotoAndPlay(7);
break;
case "Straight!" :
winMultip = 4;
setProperty(_root.showWin, _y , 95);
_root.winer.gotoAndPlay(6);
break;
case "Flush!" :
winMultip = 5;
setProperty(_root.showWin, _y , 75);
_root.winer.gotoAndPlay(5);
break;
case "Full House!" :
winMultip = 10;
setProperty(_root.showWin, _y , 55);
_root.winer.gotoAndPlay(4);
break;
case "4 Of A Kind!" :
winMultip = 12;
setProperty(_root.showWin, _y , 35);
_root.winer.gotoAndPlay(3);
break;
case "Straight Flush!" :
winMultip = 20;
setProperty(_root.showWin, _y , 15);
_root.winer.gotoAndPlay(2);
}
var winMoney = (_root.V4 * winMultip);
setProperty(_root.b_shuffle, _visible , 1);
stop();
stop();
Instance of Symbol 230 MovieClip in Frame 8
/* no clip actions */
Instance of Symbol 199 MovieClip "mc_card1" in Frame 8
onClipEvent (enterFrame) {
gotoAndStop(Cards[4]);
}
Frame 10
unloadMovie ("square");
stop();
Frame 11
var scoreboardname = "poker";
String.prototype.addCommas = function () {
var len = this.length;
var str = "";
var i = 0;
while (i <= len) {
str = this.charAt(len - i) + str;
if ((((i % 3) == 0) && (i > 0)) && (i < len)) {
str = "," + str;
}
i++;
}
return(str);
};
scoreboard_lv = new LoadVars();
if ((V3 > 0) && (_root.mytexts.length > 0)) {
scoreboard_lv.score = _root.V3;
scoreboard_lv.name = _root.mytexts.toLowerCase();
}
scoreboard_lv.game = scoreboardname;
var targ = ((_root.hd + "pokerscores.php?") + scoreboard_lv);
loadMovieNum (targ, 1);
targ2 = _root.hd + "pokerscore.swf";
loadMovieNum (targ2, 2);
stop();
Symbol 9 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_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 18 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 24 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 30 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 36 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 37 MovieClip [fpb_states] Frame 1
stop();
Symbol 37 MovieClip [fpb_states] Frame 2
stop();
Symbol 37 MovieClip [fpb_states] Frame 3
stop();
Symbol 37 MovieClip [fpb_states] Frame 4
stop();
Symbol 38 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 42 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 42 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 45 MovieClip [FPushButtonSymbol] Frame 1
#initclip 4
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fpb_states", "fpbState_mc", 1);
this.attachMovie("FLabelSymbol", "fLabel_mc", 2);
this.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
hit._height = ((arguments.length > 1) ? (h) : (hit._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
w = ((w < 6) ? 6 : (w));
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var label = this.fLabel_mc;
var h = this.height;
var w = (this.width - 2);
var b = 1;
this.fLabel_mc.setSize(w - (b * 4));
label._x = b * 3;
label._y = (h / 2) - (label._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || (enable == undefined)) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = "center")) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 1)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 1)) : undefined);
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var b = 1;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[this.fpbState_mc._currentframe - 1];
var mc = "frame";
var i = 0;
while (i < 6) {
x1 = x1 + ((i % 2) * b);
y1 = y1 + ((i % 2) * b);
x2 = x2 - (((i + 1) % 2) * b);
y2 = y2 - (((i + 1) % 2) * b);
var w = (Math.abs(x1 - x2) + (2 * b));
var h = (Math.abs(y1 - y2) + (2 * b));
this.fpbState_mc[frame][mc + i]._width = w;
this.fpbState_mc[frame][mc + i]._height = h;
this.fpbState_mc[frame][mc + i]._x = x1 - b;
this.fpbState_mc[frame][mc + i]._y = y1 - b;
i++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = ((arguments.length < 2) ? (this._parent) : (obj));
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
this.incrVal = 1;
this.initx = this[mc]._x - (this.getBtnState() * this.incrVal);
this.inity = this[mc]._y - (this.getBtnState() * this.incrVal);
this.togx = this.initx + this.incrVal;
this.togy = this.inity + this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
this.btnState = state;
if (state) {
this.fLabel_mc._x = this.togx;
this.fLabel_mc._y = this.togy;
} else {
this.fLabel_mc._x = this.initx;
this.fLabel_mc._y = this.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this.pressOnce == undefined)) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return(this.master.STATE_SYSTEM_PRESSED);
}
return(this.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 47 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 47 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 50 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 6
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
this.attachMovie("fcb_states", "fcb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this.setChangeHandler(this.changeHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.initialValue == undefined) {
this.setCheckState(false);
} else {
this.setCheckState(this.initialValue);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_CHECKBUTTON = 44;
this.STATE_SYSTEM_CHECKED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = this.fcb_states_mc._width;
var frame = this.fcb_states_mc;
var label = this.fLabel_mc;
var w = 0;
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = checkWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - checkWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var hit = this.fcb_hitArea_mc;
this.hitArea = hit;
if (this.fcb_states_mc._width > w) {
hit._width = this.fcb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
this.pressFocus();
_root.focusRect.removeMovieClip();
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
if (checkedValue || (checkedValue == undefined)) {
this.setCheckState(checkedValue);
} else if (checkedValue == false) {
this.setCheckState(checkedValue);
}
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var states = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
states.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
states.gotoAndStop("uncheckedDisabled");
this.enabled = false;
this.checked = false;
this.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
Super.setEnabled(true);
} else {
this.enable = false;
Super.setEnabled(false);
}
this.setCheckState(this.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
if (((Key.getCode() == 32) && (this.pressOnce == undefined)) && (this.enabled == true)) {
this.setValue(!this.getValue());
this.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 51 MovieClip [FUIComponentSymbol] Frame 1
#initclip 3
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);
continue;
}
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++;
}
continue;
}
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 53 MovieClip [FLabelSymbol] Frame 1
#initclip 5
_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 62 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 64 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 66 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 68 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 71 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 74 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 75 MovieClip [fcb_states] Frame 1
stop();
Symbol 75 MovieClip [fcb_states] Frame 2
stop();
Symbol 75 MovieClip [fcb_states] Frame 3
stop();
Symbol 75 MovieClip [fcb_states] Frame 4
stop();
Symbol 75 MovieClip [fcb_states] Frame 5
stop();
Symbol 75 MovieClip [fcb_states] Frame 6
stop();
Symbol 91 Button
on (release) {
getURL ("http://www.no1games.com", "_blank");
}
Symbol 98 Button
on (release) {
gotoAndPlay (4);
}
Symbol 133 Button
on (release) {
_root.nextFrame();
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 137 MovieClip Frame 1
Symbol 137 MovieClip Frame 58
stop();
Symbol 147 Button
on (release) {
gotoAndStop (1);
tellTarget (_root) {
gotoAndPlay (10);
};
_root.chipCount = 0;
}
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
setProperty(_root.doubler, _visible , 0);
setProperty(_root.doublebut, _visible , 0);
stop();
Symbol 149 MovieClip Frame 1
var straightFlush = (_root.V4 * 20);
var fourOfaKind = (_root.V4 * 12);
var fullHouse = (_root.V4 * 10);
var flush = (_root.V4 * 5);
var straight = (_root.V4 * 4);
var threeOfaKind = (_root.V4 * 4);
var twoPair = (_root.V4 * 3);
var pair = (_root.V4 * 2);
var pair = (_root.V4 * 2);
Symbol 149 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 3
var straightFlush = 0;
var fourOfaKind = 0;
var fullHouse = 0;
var flush = 0;
var straight = 0;
var threeOfaKind = 0;
var twoPair = 0;
var pair = 0;
Symbol 199 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
setProperty(_root.mc_card1, _visible , 0);
setProperty(_root.mc_card2, _visible , 0);
setProperty(_root.mc_card3, _visible , 0);
setProperty(_root.mc_card4, _visible , 0);
setProperty(_root.mc_card5, _visible , 0);
Symbol 200 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 2
stop();
Symbol 208 Button
on (press) {
_root.mc_card1.gotoAndStop(_root.V9[1]);
_root.Sounda.start(0, 1);
if (_root.V1 >= 20) {
_root.V4 = _root.V4 + 20;
_root.V1 = _root.V1 - 20;
if (_root.V4 > 0) {
_root.mcWinnings.gotoAndPlay(1);
_root.play();
_root.mc_card1.gotoAndStop(_root.V9[1]);
setProperty(_root.mc_card1, _visible , 1);
_root.mc_card2.gotoAndStop(_root.V9[2]);
setProperty(_root.mc_card2, _visible , 1);
_root.mc_card3.gotoAndStop(_root.V9[3]);
setProperty(_root.mc_card3, _visible , 1);
_root.mc_card4.gotoAndStop(_root.V9[4]);
setProperty(_root.mc_card4, _visible , 1);
_root.mc_card5.gotoAndStop(_root.V9[5]);
setProperty(_root.mc_card5, _visible , 1);
setProperty(_root.b_addBet, _visible , 0);
setProperty(_root.b_removeBet, _visible , 0);
_root.mcDeal1.gotoAndPlay(2);
_root.mcDeal2.gotoAndPlay(2);
_root.mcDeal3.gotoAndPlay(2);
_root.nexthand.gotoAndPlay(2);
nextFrame();
} else {
_root.V7 = "You Need To Place a Bet First";
_root.mcAlert.gotoAndPlay(1);
}
}
}
Symbol 209 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 2
stop();
Symbol 211 Button
on (press) {
_root.Sounda.start(0, 1);
if (_root.V1 >= 10) {
_root.V4 = _root.V4 + 10;
_root.V1 = _root.V1 - 10;
if (_root.V4 > 0) {
_root.mcWinnings.gotoAndPlay(1);
_root.play();
_root.mc_card1.gotoAndStop(_root.V9[1]);
setProperty(_root.mc_card1, _visible , 1);
_root.mc_card2.gotoAndStop(_root.V9[2]);
setProperty(_root.mc_card2, _visible , 1);
_root.mc_card3.gotoAndStop(_root.V9[3]);
setProperty(_root.mc_card3, _visible , 1);
_root.mc_card4.gotoAndStop(_root.V9[4]);
setProperty(_root.mc_card4, _visible , 1);
_root.mc_card5.gotoAndStop(_root.V9[5]);
setProperty(_root.mc_card5, _visible , 1);
setProperty(_root.b_addBet, _visible , 0);
setProperty(_root.b_removeBet, _visible , 0);
_root.mcDeal1.gotoAndPlay(2);
_root.mcDeal2.gotoAndPlay(2);
_root.mcDeal3.gotoAndPlay(2);
_root.nexthand.gotoAndPlay(2);
nextFrame();
} else {
_root.V7 = "You Need To Place a Bet First";
_root.mcAlert.gotoAndPlay(1);
}
}
}
Symbol 212 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 2
stop();
Symbol 215 Button
on (press) {
_root.Sounda.start(0, 1);
if (_root.V1 >= 50) {
_root.V4 = _root.V4 + 50;
_root.V1 = _root.V1 - 50;
if (_root.V4 > 0) {
_root.mcWinnings.gotoAndPlay(1);
_root.play();
_root.mc_card1.gotoAndStop(_root.V9[1]);
setProperty(_root.mc_card1, _visible , 1);
_root.mc_card2.gotoAndStop(_root.V9[2]);
setProperty(_root.mc_card2, _visible , 1);
_root.mc_card3.gotoAndStop(_root.V9[3]);
setProperty(_root.mc_card3, _visible , 1);
_root.mc_card4.gotoAndStop(_root.V9[4]);
setProperty(_root.mc_card4, _visible , 1);
_root.mc_card5.gotoAndStop(_root.V9[5]);
setProperty(_root.mc_card5, _visible , 1);
setProperty(_root.b_addBet, _visible , 0);
setProperty(_root.b_removeBet, _visible , 0);
_root.mcDeal1.gotoAndPlay(2);
_root.mcDeal2.gotoAndPlay(2);
_root.mcDeal3.gotoAndPlay(2);
_root.nexthand.gotoAndPlay(2);
nextFrame();
} else {
_root.V7 = "You Need To Place a Bet First";
_root.mcAlert.gotoAndPlay(1);
}
}
}
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
stop();
Symbol 218 Button
on (press) {
_root.Sounda.start(0, 1);
if (V111 == "") {
V111 = "HOLD";
_root.h1.nextFrame();
var secHand1 = V9[1];
} else if (V111 == "HOLD") {
V111 = "";
_root.h1.prevFrame();
var secHand1 = "Drop";
}
}
Symbol 219 Button
on (press) {
_root.Sounda.start(0, 1);
if (V112 == "") {
V112 = "HOLD";
_root.h2.nextFrame();
var secHand2 = V9[2];
} else if (V112 == "HOLD") {
V112 = "";
_root.h2.prevFrame();
var secHand2 = "Drop";
}
}
Symbol 220 Button
on (press) {
_root.Sounda.start(0, 1);
if (V113 == "") {
V113 = "HOLD";
_root.h3.nextFrame();
var secHand3 = V9[3];
} else if (V113 == "HOLD") {
V113 = "";
_root.h3.prevFrame();
var secHand3 = "Drop";
}
}
Symbol 221 Button
on (press) {
_root.Sounda.start(0, 1);
if (V114 == "") {
V114 = "HOLD";
_root.h4.nextFrame();
var secHand4 = V9[4];
} else if (V114 == "HOLD") {
V114 = "";
var secHand4 = "Drop";
_root.h4.prevFrame();
}
}
Symbol 222 Button
on (press) {
_root.Sounda.start(0, 1);
if (V115 == "") {
V115 = "HOLD";
_root.h5.nextFrame();
var secHand5 = V9[5];
} else if (V115 == "HOLD") {
V115 = "";
_root.h5.prevFrame();
var secHand5 = "Drop";
}
}
Symbol 228 MovieClip Frame 48
gotoAndPlay (31);
Symbol 229 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 2
stop();
Symbol 229 MovieClip Frame 3
stop();
Symbol 229 MovieClip Frame 4
stop();
Symbol 229 MovieClip Frame 5
stop();
Symbol 229 MovieClip Frame 6
stop();
Symbol 229 MovieClip Frame 7
stop();
Symbol 229 MovieClip Frame 8
stop();
Symbol 229 MovieClip Frame 9
stop();
Symbol 230 MovieClip Frame 1
_root.mc_card5.gotoAndStop(_root.old5);
_root.mc_card4.gotoAndStop(_root.old4);
_root.mc_card3.gotoAndStop(_root.old3);
_root.mc_card2.gotoAndStop(_root.old2);
_root.mc_card1.gotoAndStop(_root.old1);
if (_root.V111 == "HOLD") {
gotoAndPlay (9);
}
Symbol 230 MovieClip Frame 2
setProperty(_root.mc_card1, _width , 70);
_root.Soundd.start(0, 1);
Symbol 230 MovieClip Frame 3
setProperty(_root.mc_card1, _width , 50);
Symbol 230 MovieClip Frame 4
setProperty(_root.mc_card1, _width , 10);
Symbol 230 MovieClip Frame 5
_root.mc_card1.gotoAndStop(_root.V12[1]);
setProperty(_root.mc_card1, _width , 10);
Symbol 230 MovieClip Frame 6
setProperty(_root.mc_card1, _width , 50);
Symbol 230 MovieClip Frame 7
setProperty(_root.mc_card1, _width , 70);
Symbol 230 MovieClip Frame 8
setProperty(_root.mc_card1, _width , 104.1);
Symbol 230 MovieClip Frame 9
if (_root.V112 == "HOLD") {
} else {
setProperty(_root.mc_card2, _width , 70);
}
if (_root.V112 == "HOLD") {
gotoAndPlay (16);
}
Symbol 230 MovieClip Frame 10
setProperty(_root.mc_card2, _width , 50);
_root.Soundd.start(0, 1);
Symbol 230 MovieClip Frame 11
setProperty(_root.mc_card2, _width , 10);
Symbol 230 MovieClip Frame 12
_root.mc_card2.gotoAndStop(_root.V12[2]);
setProperty(_root.mc_card2, _width , 10);
Symbol 230 MovieClip Frame 13
setProperty(_root.mc_card2, _width , 50);
Symbol 230 MovieClip Frame 14
setProperty(_root.mc_card2, _width , 70);
Symbol 230 MovieClip Frame 15
setProperty(_root.mc_card2, _width , 104.1);
Symbol 230 MovieClip Frame 16
if (_root.V113 == "HOLD") {
} else {
setProperty(_root.mc_card3, _width , 70);
}
if (_root.V113 == "HOLD") {
gotoAndPlay (23);
}
Symbol 230 MovieClip Frame 17
setProperty(_root.mc_card3, _width , 50);
_root.Soundd.start(0, 1);
Symbol 230 MovieClip Frame 18
setProperty(_root.mc_card3, _width , 10);
Symbol 230 MovieClip Frame 19
_root.mc_card3.gotoAndStop(_root.V12[3]);
setProperty(_root.mc_card3, _width , 10);
Symbol 230 MovieClip Frame 20
setProperty(_root.mc_card3, _width , 50);
Symbol 230 MovieClip Frame 21
setProperty(_root.mc_card3, _width , 70);
Symbol 230 MovieClip Frame 22
setProperty(_root.mc_card3, _width , 104.1);
Symbol 230 MovieClip Frame 23
if (_root.V114 == "HOLD") {
} else {
setProperty(_root.mc_card4, _width , 70);
}
if (_root.V114 == "HOLD") {
gotoAndPlay (30);
}
Symbol 230 MovieClip Frame 24
setProperty(_root.mc_card4, _width , 50);
_root.Soundd.start(0, 1);
Symbol 230 MovieClip Frame 25
setProperty(_root.mc_card4, _width , 10);
Symbol 230 MovieClip Frame 26
_root.mc_card4.gotoAndStop(_root.V12[4]);
setProperty(_root.mc_card4, _width , 10);
Symbol 230 MovieClip Frame 27
setProperty(_root.mc_card4, _width , 50);
Symbol 230 MovieClip Frame 28
setProperty(_root.mc_card4, _width , 70);
Symbol 230 MovieClip Frame 29
setProperty(_root.mc_card4, _width , 104.1);
Symbol 230 MovieClip Frame 30
if (_root.V115 == "HOLD") {
} else {
setProperty(_root.mc_card5, _width , 70);
}
if (_root.V115 == "HOLD") {
gotoAndPlay (36);
}
Symbol 230 MovieClip Frame 31
setProperty(_root.mc_card5, _width , 50);
_root.Soundd.start(0, 1);
Symbol 230 MovieClip Frame 32
setProperty(_root.mc_card5, _width , 10);
Symbol 230 MovieClip Frame 33
_root.mc_card5.gotoAndStop(_root.V12[5]);
setProperty(_root.mc_card5, _width , 10);
Symbol 230 MovieClip Frame 34
setProperty(_root.mc_card5, _width , 50);
Symbol 230 MovieClip Frame 35
setProperty(_root.mc_card5, _width , 70);
Symbol 230 MovieClip Frame 36
if (_root.V115 != "HOLD") {
setProperty(_root.mc_card5, _width , 104.1);
}
stop();
Symbol 233 Button
on (release) {
Soundb.start(0, 1);
V6 = _root.winMoney + _root.V1;
_root.V1 = _root.V1 + _root.winMoney;
V2 = _root.V2 + 1;
if (V3 < V6) {
V3 = V6;
}
if (_root.V1 > 0) {
_root.mcWinnings.gotoAndPlay(1);
gotoAndPlay (4);
} else {
mc_gameOver.gotoAndStop(2);
}
}
Symbol 234 Button
on (release) {
_root.Sounda.start(0, 1);
setProperty(_root.doubler, _visible , 1);
}
Symbol 240 Button
on (release) {
nameb = _root.winMoney + _root.V1;
_root.V1 = _root.V1 + _root.winMoney;
rounds = _root.rounds + 1;
if (highScore < nameb) {
highScore = nameb;
}
mc_gameOver.gotoAndStop(2);
}
Symbol 242 MovieClip Frame 1
Symbol 242 MovieClip Frame 28
if (_root.winnings != "No Wins") {
setProperty(_root.doublebut, _visible , 1);
}
Symbol 242 MovieClip Frame 78
_root.chipAnim.gotoAndPlay(2);
stop();
Symbol 261 Button
on (release) {
_root.Soundc.start(0, 1);
if (_root.winMoney > 0) {
var chosen = 1;
_root.doubler.doubler2.gotoAndPlay(2);
}
}
Symbol 269 Button
on (release) {
_root.Soundc.start(0, 1);
if (_root.winMoney > 0) {
var chosen = 2;
_root.doubler.doubler2.gotoAndPlay(2);
}
}
Symbol 273 MovieClip Frame 1
_root.doubler.doubler2.doubler3.gotoAndStop(53);
stop();
Symbol 273 MovieClip Frame 2
setProperty(_root.changer, _width , 70);
Symbol 273 MovieClip Frame 3
setProperty(_root.changer, _width , 50);
Symbol 273 MovieClip Frame 4
setProperty(_root.changer, _width , 10);
Symbol 273 MovieClip Frame 5
var change = random(53);
if ((_root.doubler.doubler2.change < 14) || ((_root.doubler.doubler2.change > 26) && (_root.doubler.doubler2.change < 40))) {
if (_root.doubler.chosen == 2) {
_root.doubler.chosen = "win";
_root.V7 = "Doubled !!";
_root.mcAlert.gotoAndPlay(1);
_root.winMoney = _root.winMoney * 2;
} else {
_root.doubler.chosen = "lose";
_root.V7 = "Bad Luck. Press shuffle.";
_root.mcAlert.gotoAndPlay(1);
_root.winMoney = 0;
}
} else if (_root.doubler.chosen == 1) {
_root.doubler.chosen = "win";
_root.V7 = "Doubled !!";
_root.mcAlert.gotoAndPlay(1);
_root.winMoney = _root.winMoney * 2;
} else {
_root.winMoney = 0;
_root.doubler.chosen = "lose";
_root.V7 = "Bad Luck. Press shuffle.";
_root.mcAlert.gotoAndPlay(1);
}
_root.doubler.doubler2.doubler3.gotoAndStop(_root.doubler.doubler2.change);
setProperty(_root.changer, _width , 10);
Symbol 273 MovieClip Frame 6
setProperty(_root.changer, _width , 50);
Symbol 273 MovieClip Frame 7
setProperty(_root.changer, _width , 70);
Symbol 273 MovieClip Frame 8
setProperty(_root.changer, _width , 104.1);
Symbol 273 MovieClip Frame 37
setProperty(_root.changer, _width , 70);
Symbol 273 MovieClip Frame 38
setProperty(_root.changer, _width , 50);
Symbol 273 MovieClip Frame 39
setProperty(_root.changer, _width , 10);
Symbol 273 MovieClip Frame 40
_root.doubler.doubler2.doubler3.gotoAndStop(53);
setProperty(_root.changer, _width , 10);
Symbol 273 MovieClip Frame 41
setProperty(_root.changer, _width , 50);
Symbol 273 MovieClip Frame 42
setProperty(_root.changer, _width , 70);
Symbol 273 MovieClip Frame 43
setProperty(_root.changer, _width , 104.1);
stop();
Symbol 282 MovieClip Frame 33
_root.scores.createTextField("mytext", 1, 0, 75, 210, 40);
mytext.type = "input";
mytext.multiline = false;
mytext.wordWrap = true;
mytext.border = true;
mytext.bold = true;
mytext.restrict = "A-Z a-z 0-9.:\\-";
myformat = new TextFormat();
myformat.bullet = false;
myformat.maxChars = 12;
myformat.size = 24;
myformat.font = "Addled";
myformat.color = 0;
if (mytext.text.length < 1) {
mytext.text = _root.mytexts;
}
mytext.setTextFormat(myformat);
ok_btn.onRelease = function () {
_root.mytexts = mytext.text;
_root.nextFrame();
};
ok_btn.onKeyDown = function () {
if (Key.getCode() == 13) {
_root.mytexts = mytext.text;
Key.removeListener(ok_btn);
this.onRelease();
}
};
Key.addListener(ok_btn);
stop();
Symbol 284 Button
on (release) {
unloadMovieNum (1);
unloadMovieNum (2);
gotoAndPlay (1);
}