Frame 1
stop();
ifFrameLoaded (5) {
play();
}
Frame 2
stop();
ifFrameLoaded (7) {
play();
}
Frame 3
stop();
ifFrameLoaded (8) {
play();
}
Frame 4
stop();
ifFrameLoaded (9) {
play();
}
Frame 5
stop();
Frame 6
function Easy(easy) {
dif = 1;
}
function Intermediate(intermediate) {
dif = 2;
}
function Hard(hard) {
dif = 3;
}
function Check1(radio1) {
check1 = 1;
}
function Check2(radio2) {
check2 = 1;
}
function Check3(radio3) {
check3 = 1;
}
function Check4(radio4) {
check4 = 1;
}
function Check5(radio5) {
check5 = 1;
}
function Check6(radio6) {
check6 = 1;
}
function Check7(radio7) {
check7 = 1;
}
function Check8(radio8) {
check8 = 1;
}
function Check9(radio9) {
check9 = 1;
}
function Check10(radio10) {
check10 = 1;
}
stop();
nameText.maxChars = 15;
if (highscore >= 20000) {
locked.attachMovie("pic6id", "newname1", 1);
}
if (highscore >= 30000) {
locked2.attachMovie("pic7id", "newname1", 1);
}
if (highscore >= 40000) {
locked3.attachMovie("pic8id", "newname1", 1);
}
if (highscore >= 45000) {
locked4.attachMovie("pic9id", "newname1", 1);
}
if (highscore >= 50000) {
locked5.attachMovie("pic10id", "newname1", 1);
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio1" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check1";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio2" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check2";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio3" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check3";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio4" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check4";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio5" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check5";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio6" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check6";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio7" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check7";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio8" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check8";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio9" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check9";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "radio10" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check10";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "easy" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "Easy";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "Easy";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "intermediate" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "Intermediate";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "Intermediate";
}
Instance of Symbol 316 MovieClip [FRadioButtonSymbol] "hard" in Frame 6
//component parameters
onClipEvent (initialize) {
label = "Hard";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "Hard";
}
Frame 7
stop();
if (dif == 1) {
moneybox.money = 100;
} else if (dif == 2) {
moneybox.money = 50;
} else if (dif == 3) {
moneybox.money = 0;
} else if (moneybox.money == null) {
moneybox.money = 100;
}
if (password == "[]D[][]V[][]D") {
moneybox.money = moneybox.money + 50;
textfieldText.text = "**cheat enabled**";
} else if (password == "Tiger") {
moneybox.money = moneybox.money + 15;
textfieldText.text = "**cheat enabled**";
} else if (password == "Humboldt") {
moneybox.money = moneybox.money + 25;
textfieldText.text = "**cheat enabled**";
} else if (password == "Killer") {
moneybox.money = moneybox.money + 25;
textfieldText.text = "**cheat enabled**";
} else if (password == "TDub") {
moneybox.money = moneybox.money + 25;
textfieldText.text = "**cheat enabled**";
} else if (password == "NorthernLights") {
moneybox.money = moneybox.money + 15;
textfieldText.text = "**cheat enabled**";
} else if (password == "Masa") {
moneybox.money = moneybox.money - 50;
textfieldText.text = "**cheat enabled**";
}
highscorebox.highscore = highscore;
highscorebox.highscorename = highscorename;
if (highscorebox.highscore == null) {
highscorebox.highscore = 0;
}
if (highscorebox.highscorename == null) {
highscorebox.highscorename = "";
}
if (daymodifier == null) {
daymodifier = 0;
}
if (weekcnt == null) {
weekcnt = 0;
}
daybox.weekdayText.text = "monday";
controller.a = 0;
clips = 3;
clips2 = 3;
clips3 = 0;
if (ammunition == null) {
ammunition = 0;
}
if (ammunition2 == null) {
ammunition2 = 0;
}
d1 = 0;
d2 = 0;
d3 = 0;
d4 = 0;
d5 = 0;
daybox.day = 1;
customer1 = 0;
customer2 = 0;
customer3 = 0;
custeezbox.customers = 0;
dealer1 = 0;
dealer2 = 0;
dealer3 = 0;
dealer4 = 0;
dealer5 = 0;
oz = 100;
qp = 400;
cdmodifier = 0;
gunmodifier = 0;
loanmodifier = 0;
loan2modifier = 0;
scannermodifier = 0;
scalemodifier = 0;
cellmodifier = 0;
pagermodifier = 0;
armormodifier = 0;
shotgunmodifier = 0;
grenademodifier = 0;
monkeymodifier = 0;
safemodifier = 0;
police = random(365);
robber = random(365);
luck = random(5);
luck2 = random(50);
luck3 = random(50);
ryanchronic = 300;
ryanhash = 400;
georgechronic = 300;
georgebammer = 60;
samsonchronic = 1150;
monday = 1;
tuesday = 2;
wednsday = 3;
thursday = 4;
friday = 5;
saturday = 6;
sunday = 7;
openclip = 0;
openclip2 = 0;
gunactivated = 0;
textfieldText.border = true;
if (check1 == 1) {
faceandname.object.attachMovie("pic1id", "newname1", 1);
} else if (check2 == 1) {
faceandname.object.attachMovie("pic2id", "newname1", 1);
} else if (check3 == 1) {
faceandname.object.attachMovie("pic3id", "newname1", 1);
} else if (check4 == 1) {
faceandname.object.attachMovie("pic4id", "newname1", 1);
} else if (check5 == 1) {
faceandname.object.attachMovie("pic5id", "newname1", 1);
} else if ((check6 == 1) && (highscorebox.highscore >= 20000)) {
faceandname.object.attachMovie("pic6id", "newname1", 1);
} else if ((check7 == 1) && (highscorebox.highscore >= 30000)) {
faceandname.object.attachMovie("pic7id", "newname1", 1);
} else if ((check8 == 1) && (highscorebox.highscore >= 40000)) {
faceandname.object.attachMovie("pic8id", "newname1", 1);
} else if ((check9 == 1) && (highscorebox.highscore >= 45000)) {
faceandname.object.attachMovie("pic9id", "newname1", 1);
} else if ((check10 == 1) && (highscorebox.highscore >= 50000)) {
faceandname.object.attachMovie("pic10id", "newname1", 1);
}
Instance of Symbol 542 MovieClip "crosshair" in Frame 7
onClipEvent (mouseDown) {
if ((_root.controller.a == 1) && (_root.gunactivated == 1)) {
_root.crosshair.hit.play();
_root.invisible2.gunwindow.ammo.nextFrame();
} else if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
_root.crosshair.hit2.play();
_root.invisible2.gunwindow.ammoattach.ammo2.nextFrame();
} else if ((_root.controller.a == 1) && (_root.gunactivated == 3)) {
_root.crosshair.hit3.play();
_root.clips3 = _root.clips3 - 1;
}
if ((_root.ammunition == 1) && (_root.clips == 0)) {
_root.textfieldText.text = "WARNING!!! Out of ammo!";
_root.controller.a = 0;
}
if ((_root.ammunition2 == 1) && (_root.clips2 == 0)) {
_root.textfieldText.text = "WARNING!!! Out of ammo!";
_root.controller.a = 0;
}
if ((_root.clips3 == 0) && (_root.gunactivated == 3)) {
_root.textfieldText.text = "WARNING!!! Out of grenades!";
_root.controller.a = 0;
}
}
Frame 8
stop();
randompassword = random(5);
score = finalmoney;
if (score > highscore) {
highscore = score;
highscorename = name;
}
if (finalmoney < 10000) {
ratingText.text = "Go back to McDonalds";
yourprizeText.text = "Masa";
unlockText.text = "";
} else if (((finalmoney >= 10000) && (finalmoney < 20000)) && (randompassword == 0)) {
ratingText.text = "Try telemarketing";
yourprizeText.text = "Tiger";
unlockText.text = "";
} else if (((finalmoney >= 10000) && (finalmoney < 20000)) && (randompassword == 1)) {
ratingText.text = "Small time dealer";
yourprizeText.text = "NorthernLights";
unlockText.text = "";
} else if (((finalmoney >= 10000) && (finalmoney < 20000)) && (randompassword == 2)) {
ratingText.text = "Small time dealer";
yourprizeText.text = "Purple";
unlockText.text = "";
} else if (((finalmoney >= 10000) && (finalmoney < 20000)) && (randompassword == 3)) {
ratingText.text = "Not too shabby";
yourprizeText.text = "420";
unlockText.text = "";
} else if (((finalmoney >= 10000) && (finalmoney < 20000)) && (randompassword == 4)) {
ratingText.text = "Not too shabby";
yourprizeText.text = "Humboldt";
unlockText.text = "";
} else if (((finalmoney >= 20000) && (finalmoney < 30000)) && (randompassword == 0)) {
ratingText.text = "Big time dealer";
yourprizeText.text = "Romulan";
invisiblepic.attachMovie("pic6id", "newname", 1);
unlockText.text = "You've unlocked a new character!";
} else if (((finalmoney >= 20000) && (finalmoney < 30000)) && (randompassword == 1)) {
ratingText.text = "Mr. Smiley Face";
yourprizeText.text = "Mexican";
invisiblepic.attachMovie("pic6id", "newname", 1);
unlockText.text = "You've unlocked a new character!";
} else if (((finalmoney >= 20000) && (finalmoney < 30000)) && (randompassword == 2)) {
ratingText.text = "Mr. Smiley Face";
yourprizeText.text = "Skunk";
invisiblepic.attachMovie("pic6id", "newname", 1);
unlockText.text = "You've unlocked a new character!";
} else if ((((finalmoney >= 20000) && (finalmoney < 30000)) && (randompassword == 3)) || (randompassword == 4)) {
ratingText.text = "Mr. Smiley Face";
yourprizeText.text = "Killer";
invisiblepic.attachMovie("pic6id", "newname", 1);
unlockText.text = "You've unlocked a new character!";
} else if ((finalmoney >= 30000) && (finalmoney < 40000)) {
ratingText.text = "Mr. Smiley Face";
yourprizeText.text = "TDub";
invisiblepic.attachMovie("pic7id", "newname", 1);
unlockText.text = "You've unlocked a new character!";
} else if ((finalmoney >= 40000) && (finalmoney < 45000)) {
ratingText.text = "Mr. Smiley Face";
yourprizeText.text = "BigBud";
invisiblepic.attachMovie("pic8id", "newname", 1);
unlockText.text = "You've unlocked a new character!";
} else if ((finalmoney >= 45000) && (finalmoney < 50000)) {
ratingText.text = "Try the coke biz Scarface";
yourprizeText.text = "AK47";
invisiblepic.attachMovie("pic9id", "newname", 1);
unlockText.text = "You've unlocked a new character!";
} else if (finalmoney >= 50000) {
ratingText.text = "Try the coke biz Scarface";
yourprizeText.text = "[]D[][]V[][]D";
invisiblepic.attachMovie("pic10id", "newname", 1);
unlockText.text = "You've unlocked a new character!";
}
Frame 38
stop();
Frame 68
stop();
Frame 98
stop();
Frame 128
stop();
Frame 158
stop();
Frame 188
stop();
Frame 219
stop();
Frame 248
stop();
Symbol 3 MovieClip [FHighlightSymbol] Frame 1
var component = _parent.controller;
component.registerSkinElement(highlight_mc, "selection");
stop();
Symbol 3 MovieClip [FHighlightSymbol] Frame 2
component.registerSkinElement(highlight_mc2, "selectionDisabled");
stop();
Symbol 3 MovieClip [FHighlightSymbol] Frame 3
component.registerSkinElement(highlight_mc3, "selectionUnfocused");
stop();
Symbol 16 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 26 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 35 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 36 MovieClip [UpArrow] Frame 1
stop();
Symbol 36 MovieClip [UpArrow] Frame 2
stop();
Symbol 36 MovieClip [UpArrow] Frame 3
stop();
Symbol 43 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 50 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 55 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 56 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 64 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 72 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 80 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 81 MovieClip [DownArrow] Frame 1
stop();
Symbol 81 MovieClip [DownArrow] Frame 2
stop();
Symbol 81 MovieClip [DownArrow] Frame 3
stop();
Symbol 84 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 85 MovieClip [FScrollBarSymbol] Frame 1
#initclip 6
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 86 MovieClip [DataProviderSymbol] Frame 1
#initclip 1
_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 87 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 8
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 88 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 86 MovieClip [DataProviderSymbol] "dPAsset" in Symbol 88 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Instance of Symbol 87 MovieClip [FSelectableItemSymbol] "ItemAsset" in Symbol 88 MovieClip [FSelectableListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 89 MovieClip [FScrollSelectListSymbol] Frame 1
#initclip 7
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 85 MovieClip [FScrollBarSymbol] "scrollBarAsset" in Symbol 89 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
_targetInstanceName = "";
horizontal = false;
}
onClipEvent (load) {
this._width = (this._height = 1);
}
Instance of Symbol 88 MovieClip [FSelectableListSymbol] "superClassAsset" in Symbol 89 MovieClip [FScrollSelectListSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 90 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 94 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 94 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 97 MovieClip [FComboBoxSymbol] Frame 1
#initclip 10
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 89 MovieClip [FScrollSelectListSymbol] "superClassAsset" in Symbol 97 MovieClip [FComboBoxSymbol] Frame 1
//component parameters
onClipEvent (initialize) {
}
Symbol 101 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 110 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 113 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 116 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 118 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 121 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 124 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 125 MovieClip [frb_states] Frame 1
stop();
Symbol 125 MovieClip [frb_states] Frame 2
stop();
Symbol 125 MovieClip [frb_states] Frame 3
stop();
Symbol 125 MovieClip [frb_states] Frame 4
stop();
Symbol 125 MovieClip [frb_states] Frame 5
stop();
Symbol 126 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
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 143 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 3)) {
_root.invisible.shootingrange1.target2.gotoAndPlay("hit");
_root.invisible.shootingrange1.target1.gotoAndPlay("hit");
}
}
Symbol 147 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay (61);
}
}
Symbol 148 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay (61);
}
}
Symbol 149 Button
on (press) {
gotoAndPlay (61);
}
Symbol 151 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay (61);
}
}
Symbol 152 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay (61);
}
}
Symbol 153 Button
on (press) {
gotoAndPlay (61);
}
Symbol 157 Button
on (release) {
_root.openclip = 0;
_root.invisible.shootingrange1.removeMovieClip();
}
Symbol 159 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 3)) {
_root.invisible.battle2.enemy1.gotoAndPlay("hit");
_root.invisible.battle2.enemy2.gotoAndPlay("hit");
_root.invisible.battle2.enemy3.gotoAndPlay("hit");
_root.invisible.battle2.enemy4.gotoAndPlay("hit");
}
}
Symbol 161 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay (18);
}
}
Symbol 162 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay (18);
}
}
Symbol 171 MovieClip Frame 17
stop();
_root.invisible2.gunwindow.life = _root.invisible2.gunwindow.life + (_root.armormodifier - 2);
if (_root.invisible2.gunwindow.life <= 0) {
if (_root.aaa.chronicweight > 0) {
_root.aaa.chronicweight = 0;
}
if (_root.aaa.bammerweight > 0) {
_root.aaa.bammerweight = 0;
}
if (_root.aaa.hashweight > 0) {
_root.aaa.hashweight = 0;
}
if ((_root.money > 0) && (_root.safemodifier == 0)) {
_root.money = 0;
} else if ((_root.money > 0) && (_root.safemodifier == 1)) {
_root.money = _root.money / 2;
}
_root.invisible2.gunwindow.life = 50;
_root.textfieldText.text = "Those gangsters capped your ass, but the paramedics recessitated you. They took your hash, weed, and cash.";
_root.openclip = 0;
_root.invisible.battle2.removeMovieClip();
}
gotoAndPlay (6);
Symbol 171 MovieClip Frame 23
_root.invisible2.gunwindow.robbercount = _root.invisible2.gunwindow.robbercount + 1;
_root.invisible2.gunwindow.bodycount = _root.invisible2.gunwindow.copcount + _root.invisible2.gunwindow.robbercount;
Symbol 171 MovieClip Frame 30
if (_root.invisible2.gunwindow.robbercount >= _root.luck2) {
_root.openclip = 0;
_root.invisible.battle2.removeMovieClip();
}
Symbol 172 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay (18);
}
}
Symbol 173 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay (18);
}
}
Symbol 179 MovieClip Frame 17
stop();
_root.invisible2.gunwindow.life = _root.invisible2.gunwindow.life + (_root.armormodifier - 2);
if (_root.invisible2.gunwindow.life <= 0) {
if (_root.aaa.chronicweight > 0) {
_root.aaa.chronicweight = 0;
}
if (_root.aaa.bammerweight > 0) {
_root.aaa.bammerweight = 0;
}
if (_root.aaa.hashweight > 0) {
_root.aaa.hashweight = 0;
}
if ((_root.money > 0) && (_root.safemodifier == 0)) {
_root.money = 0;
} else if ((_root.money > 0) && (_root.safemodifier == 1)) {
_root.money = _root.money / 2;
}
_root.invisible2.gunwindow.life = 50;
_root.textfieldText.text = "Those gangsters capped your ass, but the paramedics recessitated you. They took your hash, weed, and cash.";
_root.openclip = 0;
_root.invisible.battle2.removeMovieClip();
}
gotoAndPlay (6);
Symbol 179 MovieClip Frame 23
_root.invisible2.gunwindow.robbercount = _root.invisible2.gunwindow.robbercount + 1;
_root.invisible2.gunwindow.bodycount = _root.invisible2.gunwindow.copcount + _root.invisible2.gunwindow.robbercount;
Symbol 179 MovieClip Frame 30
if (_root.invisible2.gunwindow.robbercount >= _root.luck2) {
_root.openclip = 0;
_root.invisible.battle2.removeMovieClip();
}
Symbol 182 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 3)) {
_root.invisible.battle.enemy1.gotoAndPlay("hit");
_root.invisible.battle.enemy2.gotoAndPlay("hit");
_root.invisible.battle.enemy3.gotoAndPlay("hit");
_root.invisible.battle.enemy4.gotoAndPlay("hit");
}
}
Symbol 186 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay (24);
}
}
Symbol 187 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay (24);
}
}
Symbol 193 MovieClip Frame 23
stop();
_root.invisible2.gunwindow.life = _root.invisible2.gunwindow.life + (_root.armormodifier - 2);
if (_root.invisible2.gunwindow.life <= 0) {
if (_root.aaa.chronicweight > 0) {
_root.aaa.chronicweight = 0;
}
if (_root.aaa.bammerweight > 0) {
_root.aaa.bammerweight = 0;
}
if (_root.aaa.hashweight > 0) {
_root.aaa.hashweight = 0;
}
if ((_root.money > 0) && (_root.safemodifier == 0)) {
_root.money = 0;
} else if ((_root.money > 0) && (_root.safemodifier == 1)) {
_root.money = _root.money / 2;
}
_root.invisible2.gunwindow.life = 50;
_root.textfieldText.text = "You died in a gunfight with the cops, but the paramedics recessitated you. They took your hash, weed, and cash.";
_root.openclip = 0;
_root.invisible.battle.removeMovieClip();
}
gotoAndPlay (9);
Symbol 193 MovieClip Frame 27
_root.invisible2.gunwindow.copcount = _root.invisible2.gunwindow.copcount + 1;
_root.invisible2.gunwindow.bodycount = _root.invisible2.gunwindow.copcount + _root.invisible2.gunwindow.robbercount;
Symbol 193 MovieClip Frame 37
if (_root.invisible2.gunwindow.copcount >= _root.luck3) {
_root.openclip = 0;
_root.invisible.battle.removeMovieClip();
}
Symbol 194 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay (22);
}
}
Symbol 195 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay (22);
}
}
Symbol 202 MovieClip Frame 21
stop();
_root.invisible2.gunwindow.life = _root.invisible2.gunwindow.life + (_root.armormodifier - 2);
if (_root.invisible2.gunwindow.life <= 0) {
if (_root.aaa.chronicweight > 0) {
_root.aaa.chronicweight = 0;
}
if (_root.aaa.bammerweight > 0) {
_root.aaa.bammerweight = 0;
}
if (_root.aaa.hashweight > 0) {
_root.aaa.hashweight = 0;
}
if ((_root.money > 0) && (_root.safemodifier == 0)) {
_root.money = 0;
} else if ((_root.money > 0) && (_root.safemodifier == 1)) {
_root.money = _root.money / 2;
}
_root.invisible2.gunwindow.life = 50;
_root.textfieldText.text = "You died in a gunfight with the cops, but the paramedics recessitated you. They took your hash, weed, and cash.";
_root.openclip = 0;
_root.invisible.battle.removeMovieClip();
}
gotoAndPlay (8);
Symbol 202 MovieClip Frame 25
_root.invisible2.gunwindow.copcount = _root.invisible2.gunwindow.copcount + 1;
_root.invisible2.gunwindow.bodycount = _root.invisible2.gunwindow.copcount + _root.invisible2.gunwindow.robbercount;
Symbol 202 MovieClip Frame 35
if (_root.invisible2.gunwindow.copcount >= _root.luck3) {
_root.openclip = 0;
_root.invisible.battle.removeMovieClip();
}
Symbol 213 MovieClip Frame 1
stop();
_root.ammunition = 8;
Symbol 213 MovieClip Frame 2
_root.ammunition = 7;
Symbol 213 MovieClip Frame 3
_root.ammunition = 6;
Symbol 213 MovieClip Frame 4
_root.ammunition = 5;
Symbol 213 MovieClip Frame 5
_root.ammunition = 4;
Symbol 213 MovieClip Frame 6
_root.ammunition = 3;
Symbol 213 MovieClip Frame 7
_root.ammunition = 2;
Symbol 213 MovieClip Frame 8
_root.ammunition = 1;
Symbol 213 MovieClip Frame 9
play();
_root.ammunition = 0;
Symbol 213 MovieClip Frame 12
stop();
if (_root.clips != 0) {
gotoAndStop (1);
_root.clips = _root.clips - 1;
} else if (_root.clips == 0) {
gotoAndPlay (9);
}
Symbol 220 Button
on (release) {
_root.controller.a = 0;
}
Symbol 224 Button
on (release) {
if (_root.openclip == 0) {
_root.invisible.attachMovie("shootingrange1id", "shootingrange1", 1);
_root.controller.a = 1;
_root.openclip = 1;
}
}
Symbol 228 Button
on (release) {
if (_root.openclip == 1) {
if (_root.aaa.chronicweight > 0) {
_root.aaa.chronicweight = 0;
}
if (_root.aaa.bammerweight > 0) {
_root.aaa.bammerweight = 0;
}
if (_root.aaa.hashweight > 0) {
_root.aaa.hashweight = 0;
}
if (_root.money > 0) {
_root.money = 0;
}
_root.textfieldText.text = "You surrendered your weed and cash, like a big smelling pussy!";
_root.invisible.battle.removeMovieClip();
_root.invisible.battle2.removeMovieClip();
_root.openclip = 0;
} else if (_root.openclip == 0) {
_root.textfieldText.text = "Who are surrendering to, yourself? You're crazy man, i like you. You're crazy...";
}
}
Symbol 231 MovieClip [gunwindowid] Frame 1
life = 100;
copcount = 0;
robbercount = 0;
bodycount = 0;
Symbol 238 MovieClip [ammo2id] Frame 1
stop();
_root.ammunition2 = 5;
Symbol 238 MovieClip [ammo2id] Frame 2
_root.ammunition2 = 4;
Symbol 238 MovieClip [ammo2id] Frame 3
_root.ammunition2 = 3;
Symbol 238 MovieClip [ammo2id] Frame 4
_root.ammunition2 = 2;
Symbol 238 MovieClip [ammo2id] Frame 5
_root.ammunition2 = 1;
Symbol 238 MovieClip [ammo2id] Frame 6
play();
_root.ammunition2 = 0;
Symbol 238 MovieClip [ammo2id] Frame 9
stop();
if (_root.clips2 != 0) {
gotoAndStop (1);
_root.clips2 = _root.clips2 - 1;
} else if (_root.clips2 == 0) {
gotoAndPlay (6);
}
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 12
if (_parent.casinoluck > 4) {
_root.moneybox.money = _root.moneybox.money + 0;
} else if (_parent.casinoluck == 0) {
_root.moneybox.money = _root.moneybox.money + 1;
} else if (_parent.casinoluck == 2) {
_root.moneybox.money = _root.moneybox.money + 2;
} else if (_parent.casinoluck == 3) {
_root.moneybox.money = _root.moneybox.money + 1;
} else if (_parent.casinoluck == 4) {
_root.moneybox.money = _root.moneybox.money + 5;
} else if (_parent.casinoluck == 1) {
_root.moneybox.money = _root.moneybox.money + 10;
}
Symbol 249 Button
on (press) {
if (_root.moneybox.money >= 1) {
_root.moneybox.money = _root.moneybox.money - 1;
close.removeMovieClip();
close2.removeMovieClip();
c777.removeMovieClip();
cs3sacers.removeMovieClip();
c3moons.removeMovieClip();
c3aliens.removeMovieClip();
if (_root.monkeymodifier == 0) {
casinoluck = random(20);
} else if (_root.monkeymodifier == 1) {
casinoluck = random(15);
}
cspin1.play();
if ((casinoluck > 4) && (casinoluck < 12)) {
attachwin.attachMovie("closeid", "close", 1);
} else if (casinoluck > 11) {
attachwin.attachMovie("close2id", "close2", 1);
} else if (casinoluck == 0) {
attachwin.attachMovie("c3moonsid", "c3moons", 1);
} else if (casinoluck == 2) {
attachwin.attachMovie("c3aliensid", "c3aliens", 1);
} else if (casinoluck == 3) {
attachwin.attachMovie("c3moonsid", "c3moons", 1);
} else if (casinoluck == 4) {
attachwin.attachMovie("c3saucersid", "c3saucers", 1);
} else if (casinoluck == 1) {
attachwin.attachMovie("c777id", "c777", 1);
}
}
}
Symbol 251 Button
on (release) {
_root.openclip = 0;
_root.invisible.casinoclip.removeMovieClip();
}
Symbol 257 Button
on (release) {
if ((_root.moneybox.money >= 1) && (racing == 0)) {
bet = bet + 1;
_root.moneybox.money = _root.moneybox.money - 1;
}
}
Symbol 260 Button
on (release) {
if ((_root.moneybox.money >= 100) && (racing == 0)) {
bet = bet + 100;
_root.moneybox.money = _root.moneybox.money - 100;
}
}
Symbol 263 Button
on (release) {
if ((_root.moneybox.money >= 10) && (racing == 0)) {
bet = bet + 10;
_root.moneybox.money = _root.moneybox.money - 10;
}
}
Symbol 270 Button
on (release) {
if (racing == 0) {
_root.moneybox.money = _root.moneybox.money + bet;
bet = 0;
}
}
Symbol 271 Button
on (release) {
_root.openclip = 0;
_root.invisible.dograceclip.removeMovieClip();
}
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 29
stop();
if (_parent.mybet == 1) {
_root.moneybox.money = _root.moneybox.money + (_parent.bet * 4);
_parent.bet = 0;
}
Symbol 273 MovieClip Frame 59
stop();
_parent.bet = 0;
_parent.racing = 0;
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 29
stop();
if (_parent.mybet == 4) {
_root.moneybox.money = _root.moneybox.money + (_parent.bet * 4);
_parent.bet = 0;
}
Symbol 275 MovieClip Frame 59
stop();
_parent.bet = 0;
_parent.racing = 0;
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 29
stop();
if (_parent.mybet == 2) {
_root.moneybox.money = _root.moneybox.money + (_parent.bet * 4);
_parent.bet = 0;
}
Symbol 277 MovieClip Frame 59
stop();
_parent.bet = 0;
_parent.racing = 0;
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 29
stop();
if (_parent.mybet == 3) {
_root.moneybox.money = _root.moneybox.money + (_parent.bet * 4);
_parent.bet = 0;
}
Symbol 279 MovieClip Frame 59
stop();
_parent.bet = 0;
_parent.racing = 0;
Symbol 282 Button
on (release) {
mybet = 1;
dogwin = random(4);
if (racing == 0) {
racing = 1;
if (dogwin == 0) {
dred.gotoAndPlay("win");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 1) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("win");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 2) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("win");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 3) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("win");
}
}
}
Symbol 285 Button
on (release) {
mybet = 2;
dogwin = random(4);
if (racing == 0) {
racing = 1;
if (dogwin == 0) {
dred.gotoAndPlay("win");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 1) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("win");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 2) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("win");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 3) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("win");
}
}
}
Symbol 288 Button
on (release) {
mybet = 4;
dogwin = random(4);
if (racing == 0) {
racing = 1;
if (dogwin == 0) {
dred.gotoAndPlay("win");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 1) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("win");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 2) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("win");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 3) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("win");
}
}
}
Symbol 291 Button
on (release) {
mybet = 3;
dogwin = random(4);
if (racing == 0) {
racing = 1;
if (dogwin == 0) {
dred.gotoAndPlay("win");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 1) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("win");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 2) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("win");
dgreen.gotoAndPlay("lose");
} else if (dogwin == 3) {
dred.gotoAndPlay("lose");
dblue.gotoAndPlay("lose");
dyellow.gotoAndPlay("lose");
dgreen.gotoAndPlay("win");
}
}
}
Symbol 297 MovieClip [dograceclipid] Frame 1
racing = 0;
if (bet == null) {
bet = 0;
}
Symbol 316 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 5
function FRadioButtonClass() {
this.init();
}
function FRadioButtonGroupClass() {
this.radioInstances = new Array();
}
FRadioButtonClass.prototype = new FUIComponentClass();
FRadioButtonGroupClass.prototype = new FUIComponentClass();
Object.registerClass("FRadioButtonSymbol", FRadioButtonClass);
FRadioButtonClass.prototype.init = function () {
if (this.initialState == undefined) {
this.selected = false;
} else {
this.selected = this.initialState;
}
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.boundingBox_mc._width = 0;
this.boundingBox_mc._height = 0;
this.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
this.attachMovie("frb_states", "frb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
this.setChangeHandler(this.changeHandler);
if (this.label != undefined) {
this.setLabel(this.label);
}
if (this.initialState == undefined) {
this.setValue(false);
} else {
this.setValue(this.initialState);
}
if (this.data == "") {
this.data = undefined;
} else {
this.setData(this.data);
}
this.addToRadioGroup();
this.ROLE_SYSTEM_RADIOBUTTON = 45;
this.STATE_SYSTEM_SELECTED = 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;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.frb_hitArea_mc;
this.hitArea = hit;
if (this.frb_states_mc._width > w) {
hit._width = this.frb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FRadioButtonClass.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.setEnabled(this.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.frb_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);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = this.frb_states_mc._width;
var frame = this.frb_states_mc;
var label = this.fLabel_mc;
var w = (this.width - frame._width);
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.frb_states_mc._x = 0;
this.fLabel_mc._x = radioWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.frb_states_mc._x = this.width - radioWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.frb_hitArea_mc._y = vertCenter;
this.setLabel(this.getLabel());
};
FRadioButtonClass.prototype.setData = function (dataValue) {
this.data = dataValue;
};
FRadioButtonClass.prototype.getData = function () {
return(this.data);
};
FRadioButtonClass.prototype.getState = function () {
return(this.selected);
};
FRadioButtonClass.prototype.getSize = function () {
return(this.width);
};
FRadioButtonClass.prototype.getGroupName = function () {
return(this.groupName);
};
FRadioButtonClass.prototype.setGroupName = function (groupName) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i] == this) {
delete this._parent[this.groupName].radioInstances[i];
}
i++;
}
this.groupName = groupName;
this.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
if (this._parent[this.groupName] == undefined) {
this._parent[this.groupName] = new FRadioButtonGroupClass();
}
this._parent[this.groupName].addRadioInstance(this);
};
FRadioButtonClass.prototype.setValue = function (selected) {
if (selected || (selected == undefined)) {
this.setState(true);
this.focusRect.removeMovieClip();
this.executeCallBack();
} else if (selected == false) {
this.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
Selection.setFocus(this);
this.setState(selected);
this.drawFocusRect();
this.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
if (selected || (selected == undefined)) {
this.tabEnabled = true;
for (var i in this._parent) {
if ((this != this._parent[i]) && (this._parent[i].groupName == this.groupName)) {
this._parent[i].setState(false);
this._parent[i].tabEnabled = false;
}
}
}
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedEnabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = true;
this.tabFocused = true;
} else {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
this.enabled = true;
this.selected = false;
this.tabEnabled = false;
var enabTrue = this._parent[this.groupName].getEnabled();
var noneSelect = (this._parent[this.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
this._parent[this.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
this.flabel_mc.setEnabled(false);
if (selected || (selected == undefined)) {
this.frb_states_mc.gotoAndStop("selectedDisabled");
this.enabled = false;
this.selected = true;
this.tabEnabled = false;
} else {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.enabled = false;
this.selected = false;
this.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
if (this.selected) {
if ((this.data == "") || (this.data == undefined)) {
return(this.getLabel());
}
return(this.data);
}
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
super.setEnabled(true);
} else {
this.enable = false;
super.setEnabled(false);
}
this.setState(this.selected);
var cgn = (this._parent[this.groupName].getEnabled() == undefined);
var cgnez = (this._parent[this.groupName].radioInstances[0].getEnabled() == false);
if (cgn && (cgnez)) {
var i = 0;
while (i < this._parent[this.groupName].radioInstances.length) {
if (this._parent[this.groupName].radioInstances[i].getEnabled() == true) {
this._parent[this.groupName].radioInstances[i].tabEnabled = true;
return(undefined);
}
i++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FRadioButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.getLabel());
};
FRadioButtonClass.prototype.onPress = function () {
this.pressFocus();
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.onRelease = function () {
this.frb_states_mc.gotoAndStop("unselectedDisabled");
this.setValue(!this.selected);
};
FRadioButtonClass.prototype.onReleaseOutside = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOut = function () {
this.frb_states_mc.gotoAndStop("unselectedEnabled");
};
FRadioButtonClass.prototype.onDragOver = function () {
this.frb_states_mc.gotoAndStop("press");
};
FRadioButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this._parent[this.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setEnabled(enableFlag);
i++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getEnabled() != this.radioInstances[0].getEnabled()) {
return(undefined);
}
i++;
}
return(this.radioInstances[0].getEnabled());
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setChangeHandler(changeHandler, obj);
i++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
if ((this.radioInstances[i].data == "") || (this.radioInstances[i].data == undefined)) {
return(this.radioInstances[i].getLabel());
}
return(this.radioInstances[i].data);
}
i++;
}
};
FRadioButtonGroupClass.prototype.getData = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected) {
return(this.radioInstances[i].getData());
}
i++;
}
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].selected == true) {
return(i);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].data == dataValue) {
this.radioInstances[i].setValue(true);
return(undefined);
}
i++;
}
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].getLabel() == dataValue) {
this.radioInstances[i].setValue(true);
}
i++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setSize(w);
i++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var widestRadio = 0;
var i = 0;
while (i < this.radioInstances.length) {
if (this.radioInstances[i].width >= widestRadio) {
widestRadio = this.radioInstances[i].width;
}
i++;
}
return(widestRadio);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
this.oldGroupName = this.radioInstances[0].groupName;
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].groupName = groupName;
this.radioInstances[i].addToRadioGroup();
i++;
}
delete this._parent[this.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setLabelPlacement(pos);
i++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].setStyleProperty(propName, value, isGlobal);
i++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].addListener();
i++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].applyChanges();
i++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var i = 0;
while (i < this.radioInstances.length) {
this.radioInstances[i].removeListener(component);
i++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
Key.removeListener(this.keyListener);
this.focused = false;
this.focusRect.removeMovieClip();
this._parent[this.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this._parent[this.groupName].getValue() == undefined)) {
if (this._parent[this.groupName].radioInstances[0] == this) {
this.setTabState(true);
}
}
if ((Key.getCode() == 40) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i < this._parent[this.groupName].radioInstances.length) {
var inc = (i + 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i++;
}
}
if ((Key.getCode() == 38) && (this.pressOnce == undefined)) {
this.foobar = this._parent[this.groupName].getInstance();
var i = this.foobar;
while (i >= 0) {
var inc = (i - 1);
if (this._parent[this.groupName].radioInstances[inc].getEnabled()) {
this._parent[this.groupName].radioInstances[inc].setTabState(true);
return(undefined);
}
i--;
}
}
};
FRadioButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_RADIOBUTTON);
};
FRadioButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FRadioButtonClass.prototype.get_accState = function (childId) {
if (this.master.getState()) {
return(this.master.STATE_SYSTEM_SELECTED);
}
return(0);
};
FRadioButtonClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getState()) {
return("UnCheck");
}
return("Check");
};
FRadioButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 321 Button
on (press) {
getURL ("http://www.keytoneproductions.net/badseedms");
}
Symbol 325 Button
on (press) {
close.removeMovieClip();
close2.removeMovieClip();
c777.removeMovieClip();
cs3sacers.removeMovieClip();
c3moons.removeMovieClip();
c3aliens.removeMovieClip();
casinoluckp = random(20);
cspin1.play();
if ((casinoluckp > 4) && (casinoluckp < 12)) {
attachwin.attachMovie("closeid", "close", 1);
} else if (casinoluckp > 11) {
attachwin.attachMovie("close2id", "close2", 1);
} else if (casinoluckp == 0) {
attachwin.attachMovie("c3moonsid", "c3moons", 1);
} else if (casinoluckp == 2) {
attachwin.attachMovie("c3aliensid", "c3aliens", 1);
} else if (casinoluckp == 3) {
attachwin.attachMovie("c3moonsid", "c3moons", 1);
} else if (casinoluckp == 4) {
attachwin.attachMovie("c3saucersid", "c3saucers", 1);
} else if (casinoluckp == 1) {
attachwin.attachMovie("c777id", "c777", 1);
}
}
Symbol 335 Button
on (press) {
play();
}
Symbol 343 Button
on (release) {
gotoAndStop (7);
}
Symbol 352 Button
on (release) {
gotoAndPlay (9);
}
Symbol 360 Button
on (release) {
weekcnt = weekcnt + 1;
if (weekcnt > 6) {
weekcnt = 0;
}
if (weekcnt == 6) {
monday = monday + 7;
tuesday = tuesday + 7;
wednsday = wednsday + 7;
thursday = thursday + 7;
friday = friday + 7;
saturday = saturday + 7;
sunday = sunday + 7;
}
if (monday == (daybox.day + 1)) {
daybox.weekdayText.text = "monday";
daymodifier = 0;
} else if (tuesday == (daybox.day + 1)) {
daybox.weekdayText.text = "tuesday";
daymodifier = 0;
} else if (wednsday == (daybox.day + 1)) {
daybox.weekdayText.text = "wednsday";
daymodifier = 0;
} else if (thursday == (daybox.day + 1)) {
daybox.weekdayText.text = "thursday";
daymodifier = 0;
} else if (friday == (daybox.day + 1)) {
daybox.weekdayText.text = "friday";
daymodifier = 0;
} else if (saturday == (daybox.day + 1)) {
daybox.weekdayText.text = "saturday";
daymodifier = 1;
} else if (sunday == (daybox.day + 8)) {
daybox.weekdayText.text = "sunday";
daymodifier = 1;
}
luck = random(5);
if (((luck == 0) || (luck == 1)) || (luck == 2)) {
ryanchronic = 300;
} else if (luck == 3) {
ryanchronic = 290;
} else if (luck == 4) {
ryanchronic = 320;
}
if ((((luck == 0) || (luck == 1)) || (luck == 2)) || (luck == 3)) {
ryanhash = 400;
} else if (luck == 4) {
ryanhash = 390;
}
if (((luck == 0) || (luck == 1)) || (luck == 3)) {
georgechronic = 300;
} else if (luck == 2) {
georgechronic = 290;
} else if (luck == 4) {
georgechronic = 320;
}
if (((luck == 4) || (luck == 1)) || (luck == 3)) {
georgebammer = 60;
} else if (luck == 2) {
georgebammer = 70;
} else if (luck == 0) {
georgebammer = 65;
}
if (((luck == 2) || (luck == 1)) || (luck == 3)) {
samsonchronic = 1150;
} else if (luck == 4) {
samsonchronic = 1100;
} else if (luck == 0) {
samsonchronic = 1200;
}
if (((aaa.bammersell == 0) || (aaa.chronicsell == 0)) || (aaa.hashsell == 0)) {
textfieldText.text = "WARNING!!! (Set your lemonade price(s).) ";
}
if (daybox.day == 335) {
textfieldText.text = "WARNING!!! (1 month left.)";
}
daybox.day = daybox.day + 1;
customer1 = ((0 + hashmodifier) + cellmodifier) + daymodifier;
if (hashmodifier == 0) {
customer1 = 0;
}
customer2 = (((0 + chronicmodifier) + pagermodifier) + cellmodifier) + daymodifier;
if (chronicmodifier == 0) {
customer2 = 0;
}
customer3 = (((0 + bammermodifier) + pagermodifier) + cellmodifier) + daymodifier;
if (bammermodifier == 0) {
customer3 = 0;
}
custeezbox.customers = (customer1 + customer2) + customer3;
if (custeezbox.customers < 0) {
custeezbox.customers = 0;
}
moneybox.money = (((moneybox.money - loanmodifier) - loan2modifier) - cellmodifier) - pagermodifier;
if (aaa.hashweight > 0) {
aaa.hashweight = aaa.hashweight - customer1;
moneybox.money = moneybox.money + (customer1 * aaa.hashsell);
}
if (aaa.chronicweight > 0) {
aaa.chronicweight = aaa.chronicweight - customer2;
moneybox.money = moneybox.money + (customer2 * aaa.chronicsell);
}
if (aaa.bammerweight > 0) {
aaa.bammerweight = aaa.bammerweight - customer3;
moneybox.money = moneybox.money + (customer3 * aaa.bammersell);
}
if (daybox.day == 365) {
finalhighscore = highscorebox.highscore;
finalmoney = moneybox.money;
gotoAndStop (8);
}
}
Symbol 369 Button
on (release) {
moneybox.money = moneybox.money - 320;
aaa.chronicweight = aaa.chronicweight + oz;
dealer1 = dealer1 + 1;
if (dealer1 == 10) {
textfieldText.text = "''You've been giving me alot of business. I gave you a few extra grams this time.'' -Eric";
aaa.chronicweight = aaa.chronicweight + 3;
}
}
Symbol 373 Button
on (release) {
moneybox.money = moneybox.money - 70;
aaa.bammerweight = aaa.bammerweight + oz;
}
Symbol 377 Button
on (release) {
if (moneybox.money > 399) {
moneybox.money = moneybox.money - 400;
aaa.hashweight = aaa.hashweight + oz;
dealer5 = dealer5 + 1;
}
if (dealer5 == 10) {
textfieldText.text = "''A discount? hahahaha, you're a funny guy you know.'' -Samson";
}
}
Symbol 381 Button
on (release) {
if (moneybox.money > 199) {
moneybox.money = moneybox.money - 200;
aaa.bammerweight = aaa.bammerweight + qp;
dealer4 = dealer4 + 1;
}
if (dealer4 == 10) {
textfieldText.text = "''You like the stress aye pendejo. Here take this, I'm tryin to get rid of this shit.'' -Pablo";
aaa.bammerweight = aaa.bammerweight + oz;
}
}
Symbol 385 Button
on (release) {
if (moneybox.money > 1149) {
moneybox.money = moneybox.money - 1150;
aaa.chronicweight = aaa.chronicweight + qp;
}
}
Symbol 386 Button
on (release) {
if (moneybox.money >= samsonchronic) {
moneybox.money = moneybox.money - samsonchronic;
aaa.chronicweight = aaa.chronicweight + qp;
dealer5 = dealer5 + 1;
}
if (dealer5 == 10) {
textfieldText.text = "''A discount? hahahaha, you're a funny guy you know.'' -Samson";
}
}
Symbol 387 Button
on (release) {
if (moneybox.money >= georgechronic) {
moneybox.money = moneybox.money - georgechronic;
aaa.chronicweight = aaa.chronicweight + oz;
dealer2 = dealer2 + 1;
}
if (dealer2 == 10) {
textfieldText.text = "''You're the best customer I have! I'll shoot you one for $295 today.'' -George";
moneybox.money = moneybox.money + 5;
}
}
Symbol 388 Button
on (release) {
if (moneybox.money >= georgebammer) {
moneybox.money = moneybox.money - georgebammer;
aaa.bammerweight = aaa.bammerweight + oz;
}
}
Symbol 389 Button
on (release) {
if (moneybox.money >= ryanchronic) {
moneybox.money = moneybox.money - ryanchronic;
aaa.chronicweight = aaa.chronicweight + oz;
dealer3 = dealer3 + 1;
}
if (dealer1 == 10) {
textfieldText.text = "''Hey try out this hash man. The custeez love it.'' -Ryno";
aaa.hashweight = aaa.hashweight + 3;
}
}
Symbol 390 Button
on (release) {
if (moneybox.money >= ryanhash) {
moneybox.money = moneybox.money - ryanhash;
aaa.hashweight = aaa.hashweight + oz;
}
}
Symbol 396 Button
on (release) {
textfieldText.text = "''Buy a food scale to make sure you're getting the right amount of lemons.''";
}
Symbol 397 Button
on (release) {
textfieldText.text = "''Get a pager so business associates and cutomers can get ahold of you.''";
}
Symbol 398 Button
on (release) {
textfieldText.text = "''If you get hungry, buy a burger.''";
}
Symbol 399 Button
on (release) {
textfieldText.text = "''It takes money to make money. Take out a loan.''";
}
Symbol 400 Button
on (release) {
textfieldText.text = "''Make extra cash at the casino.''";
}
Symbol 409 Button
on (release) {
textfieldText.text = "This is the action window. When an action or event takes place, corresponding text will appear here. Click the help button below to learn more.";
clips = 3;
if (ammunition == null) {
ammunition = 0;
}
day = 1;
d1 = 0;
d2 = 0;
d3 = 0;
d4 = 0;
d5 = 0;
customer1 = 0;
customer2 = 0;
customer3 = 0;
customers = 0;
dealer1 = 0;
dealer2 = 0;
dealer3 = 0;
dealer4 = 0;
dealer5 = 0;
money = 100;
aaa.hashweight = 0;
aaa.hashsell = 0;
aaa.chronicweight = 0;
aaa.chronicsell = 0;
aaa.bammerweight = 0;
aaa.bammersell = 0;
oz = 28;
qp = 112;
cdmodifier = 0;
gunmodifier = 0;
loanmodifier = 0;
loan2modifier = 0;
scannermodifier = 0;
scalemodifier = 0;
cellmodifier = 0;
pagermodifier = 0;
police = random(365);
robber = random(365);
luck = random(5);
luck2 = random(50);
luck3 = random(50);
invisible2.gunwindow.life = 100;
invisible2.gunwindow.bodycount = 0;
monday = 1;
tuesday = 2;
wednsday = 3;
thursday = 4;
friday = 5;
saturday = 6;
sunday = 7;
weekdayText.text = "monday";
daymodifier = 0;
weekcnt = 0;
policetxt.removeTextField();
gotoAndStop (6);
}
Symbol 417 Button
on (release) {
textfieldText.text = "The object of Lemonade Stand is to make as much money as you can in a year (365 days). The lemon window, located directly above, contains six fields. The three on the left display how much lemonade (in cups) you own. The three fields on the right display the prices you set per cup. Default price for all of them is $0. So first set your prices with the up and down arrows. A good amount is $4 for real lemons, $3 for coolade, and $1 for old lemons. Careful not to leave it set at zero, or you will be giving away your lemonade. Buy lemonade from a merchant located to the right. You must click on ''Buy box'' or ''Buy load''. The buttons are color coded (green = real lemons, dark green = coolade, brown = old lemons). Click ''End Day'' to go to the next day. All your sales from the previous day will be calculated and shown in the ''Money'' field located on the top left. Right beneath the ''High Score'' is the field ''Customers'' field which displays the approximate amount of daily customers. The store is located on the bottom of the screen. Click on an item to purchase it. Items will help you out with your business. Good luck! Designed and programmed by Ryan Gulling, Badseed Designs / Badseed Gaming. Recordings by Park Style productions. Voices by Chris McGoey, and Dick Biggler.";
}
Symbol 422 Button
on (release) {
textfieldText.scroll = textfieldText.scroll - 1;
}
Symbol 423 Button
on (release) {
textfieldText.scroll = textfieldText.scroll + 1;
}
Symbol 428 Button
on (press) {
globalsound = new Sound();
globalsound.stop();
}
Symbol 430 Button
on (release) {
hashsell = hashsell + 1;
if (hashsell < 4) {
_root.hashmodifier = 4;
} else if (hashsell < 5) {
_root.hashmodifier = 3;
} else if (hashsell < 6) {
_root.hashmodifier = 2;
} else if (hashsell < 7) {
_root.hashmodifier = 1;
} else {
_root.hashmodifier = 0;
}
}
Symbol 431 Button
on (release) {
chronicsell = chronicsell + 1;
if (chronicsell < 3) {
_root.chronicmodifier = 4;
} else if (chronicsell < 4) {
_root.chronicmodifier = 3;
} else if (chronicsell < 5) {
_root.chronicmodifier = 2;
} else if (chronicsell < 6) {
_root.chronicmodifier = 1;
} else {
_root.chronicmodifier = 0;
}
}
Symbol 432 Button
on (release) {
bammersell = bammersell + 1;
if (bammersell < 1) {
_root.bammermodifier = 4;
} else if (bammersell < 2) {
_root.bammermodifier = 5;
} else if (bammersell < 3) {
_root.bammermodifier = 2;
} else if (bammersell < 4) {
_root.bammermodifier = 1;
} else {
_root.bammermodifier = 0;
}
}
Symbol 433 Button
on (release) {
chronicsell = chronicsell - 1;
if (chronicsell < 3) {
_root.chronicmodifier = 4;
} else if (chronicsell < 4) {
_root.chronicmodifier = 3;
} else if (chronicsell < 5) {
_root.chronicmodifier = 2;
} else if (chronicsell < 6) {
_root.chronicmodifier = 1;
} else {
_root.chronicmodifier = 0;
}
}
Symbol 434 Button
on (release) {
bammersell = bammersell - 1;
if (bammersell < 4) {
_root.bammermodifier = 4;
} else if (bammersell < 5) {
_root.bammermodifier = 3;
} else if (bammersell < 6) {
_root.bammermodifier = 2;
} else if (bammersell < 7) {
_root.bammermodifier = 1;
} else {
_root.bammermodifier = 0;
}
}
Symbol 435 Button
on (release) {
hashsell = hashsell - 1;
if (hashsell < 4) {
_root.hashmodifier = 4;
} else if (hashsell < 5) {
_root.hashmodifier = 3;
} else if (hashsell < 6) {
_root.hashmodifier = 2;
} else if (hashsell < 7) {
_root.hashmodifier = 1;
} else {
_root.hashmodifier = 0;
}
}
Symbol 451 Button
on (press) {
startDrag (drag);
}
on (release) {
stopDrag();
}
Symbol 453 MovieClip Frame 1
hashweightText.border = true;
hashweightText.borderColor = 65280;
chronicweightText.border = true;
chronicweightText.borderColor = 26112;
bammerweightText.border = true;
bammerweightText.borderColor = 6710784 /* 0x666600 */;
hashsellText.border = true;
hashsellText.borderColor = 65280;
chronicsellText.border = true;
chronicsellText.borderColor = 26112;
bammersellText.border = true;
bammersellText.borderColor = 6710784 /* 0x666600 */;
hashweight = 0;
hashsell = 0;
chronicweight = 0;
chronicsell = 0;
bammerweight = 0;
bammersell = 0;
if (_root.password == 420) {
chronicweight = chronicweight + 1;
_root.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Skunk") {
chronicweight = chronicweight + 1;
_root.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "BigBud") {
chronicweight = chronicweight + 1.5;
_root.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Purple") {
chronicweight = chronicweight + 0.5;
_root.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Mexican") {
bammerweight = bammerweight + 3;
_root.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Romulan") {
hashweight = hashweight + 0.5;
_root.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "AK47") {
chronicweight = chronicweight + 2;
_root.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Masa") {
bammerweight = bammerweight + 10;
_root.textfieldText.text = "**cheat enabled**";
}
Symbol 454 MovieClip Frame 1
if (a == 1) {
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
}
Symbol 454 MovieClip Frame 2
gotoAndPlay (1);
Symbol 470 Button
on (release) {
if ((_root.moneybox.money > 39) && (_root.pagermodifier == 0)) {
_root.pagermodifier = 1;
_root.moneybox.money = _root.moneybox.money - 40;
_root.textfieldText.text = "New pager! Now business will really kick in.";
}
}
Symbol 475 Button
on (release) {
if ((_root.loanmodifier == 0) && (_root.daybox.day < 320)) {
_root.moneybox.money = _root.moneybox.money + 100;
_root.loanmodifier = 1;
_root.textfieldText.text = "You've recieved a loan for $100. $1 a day will be deducted from your account.";
} else if ((_root.daybox.day > 320) && (_root.loanmodifier == 0)) {
_root.textfieldText.text = "It's too late for a loan this year. Try back next year.";
}
}
Symbol 482 Button
on (release) {
if ((_root.moneybox.money > 14) && (_root.cdmodifier == 0)) {
_root.moneybox.money = _root.moneybox.money - 15;
_root.cdmodifier = 1;
_root.textfieldText.text = "You've purchased a CD. Just click this CD again to hear the song again.";
}
}
Symbol 488 Button
on (release) {
if (_root.moneybox.money >= 6) {
_root.moneybox.money = _root.moneybox.money - 6;
_root.invisible2.gunwindow.life = _root.invisible2.gunwindow.life + 5;
_root.textfieldText.text = "Mmmm... A nice, healthy Super Burger.";
if (_root.invisible2.gunwindow.life > 100) {
_root.invisible2.gunwindow.life = 100;
}
}
}
Symbol 492 Button
on (release) {
if ((_root.loan2modifier == 0) && (_root.daybox.day < 300)) {
_root.moneybox.money = _root.moneybox.money + 200;
_root.loan2modifier = 2;
_root.textfieldText.text = "You've recieved a loan for $200. $2 a day will be deducted from your account.";
} else if ((_root.daybox.day > 300) && (_root.loan2modifier == 0)) {
_root.textfieldText.text = "It's too late for a loan this year. Try back next year.";
}
}
Symbol 497 Button
on (release) {
if ((_root.moneybox.money >= 140) && (_root.scalemodifier == 0)) {
_root.scalemodifier = 1;
_root.moneybox.money = _root.moneybox.money - 140;
_root.textfieldText.text = "Scale purchased. No more gettin skimped!";
_root.oz = 104;
_root.qp = 416;
}
}
Symbol 501 Button
on (release) {
_root.openclip = 1;
_root.invisible.attachMovie("casinoclipid", "casinoclip", 1);
_root.textfieldText.text = "Welcome to the Big Bear Casino.";
}
Symbol 504 Button
on (release) {
if ((_root.openclip == 0) && (_root.moneybox.money >= 10)) {
_root.moneybox.money = _root.moneybox.money - 10;
_root.invisible.attachMovie("dograceclipid", "dograceclip", 1);
_root.openclip = 1;
_root.textfieldText.text = "Place your bets.";
}
}
Symbol 505 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 2
stop();
Symbol 511 MovieClip Frame 3
stop();
Symbol 511 MovieClip Frame 4
stop();
Symbol 511 MovieClip Frame 5
stop();
Symbol 511 MovieClip Frame 6
stop();
Symbol 511 MovieClip Frame 7
stop();
Symbol 511 MovieClip Frame 8
stop();
Symbol 511 MovieClip Frame 9
stop();
Symbol 511 MovieClip Frame 10
stop();
Symbol 511 MovieClip Frame 11
stop();
Symbol 511 MovieClip Frame 12
stop();
Symbol 511 MovieClip Frame 13
stop();
Symbol 511 MovieClip Frame 14
stop();
Symbol 511 MovieClip Frame 15
stop();
Symbol 511 MovieClip Frame 16
stop();
Symbol 511 MovieClip Frame 17
stop();
Symbol 511 MovieClip Frame 18
stop();
Symbol 511 MovieClip Frame 19
stop();
Symbol 511 MovieClip Frame 20
stop();
Symbol 511 MovieClip Frame 21
stop();
Symbol 511 MovieClip Frame 22
stop();
Symbol 511 MovieClip Frame 23
stop();
Symbol 511 MovieClip Frame 24
stop();
Symbol 511 MovieClip Frame 25
stop();
Symbol 511 MovieClip Frame 26
stop();
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 3
stop();
Symbol 537 MovieClip Frame 5
stop();
Symbol 537 MovieClip Frame 7
stop();
Symbol 537 MovieClip Frame 9
stop();
Symbol 537 MovieClip Frame 11
stop();
Symbol 537 MovieClip Frame 13
gotoAndStop (1);
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 3
stop();
Symbol 538 MovieClip Frame 5
stop();
Symbol 538 MovieClip Frame 7
stop();
Symbol 538 MovieClip Frame 9
stop();
Symbol 538 MovieClip Frame 11
stop();
Symbol 538 MovieClip Frame 13
gotoAndStop (1);
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 3
stop();
Symbol 540 MovieClip Frame 5
stop();
Symbol 540 MovieClip Frame 7
stop();
Symbol 540 MovieClip Frame 9
stop();
Symbol 540 MovieClip Frame 11
stop();
Symbol 540 MovieClip Frame 13
gotoAndStop (1);
Symbol 542 MovieClip Frame 1
hit._rotation = hit._rotation + 20;
Symbol 542 MovieClip Frame 2
gotoAndPlay (1);
Symbol 549 Button
on (release) {
day = 1;
d1 = 0;
d2 = 0;
d3 = 0;
d4 = 0;
d5 = 0;
customer1 = 0;
customer2 = 0;
customer3 = 0;
customers = 0;
dealer1 = 0;
dealer2 = 0;
dealer3 = 0;
dealer4 = 0;
dealer5 = 0;
money = 100;
aaa.hashweight = 0;
aaa.hashsell = 0;
aaa.chronicweight = 0;
aaa.chronicsell = 0;
aaa.bammerweight = 0;
aaa.bammersell = 0;
oz = 28;
qp = 112;
cdmodifier = 0;
gunmodifier = 0;
loanmodifier = 0;
loan2modifier = 0;
scannermodifier = 0;
scalemodifier = 0;
cellmodifier = 0;
pagermodifier = 0;
police = random(365);
robber = random(365);
luck = random(5);
luck2 = random(50);
luck3 = random(50);
invisible2.gunwindow.life = 100;
invisible2.gunwindow.bodycount = 0;
monday = 1;
tuesday = 2;
wednsday = 3;
thursday = 4;
friday = 5;
saturday = 6;
sunday = 7;
daymodifier = 0;
textfieldText.text = "";
policetxt.removeTextField();
unlocktext.removeTextField();
gotoAndStop (6);
}
Symbol 562 Button
on (release) {
getURL ("http://www.keytoneproductions.net/parkstyle");
}
Symbol 569 Button
on (release) {
play();
}
Symbol 579 Button
on (release) {
gotoAndPlay (6);
}