Frame 1
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 > 12000) {
locked.attachMovie("pic6id", "newname1", 1);
}
if (highscore > 15000) {
locked2.attachMovie("pic7id", "newname1", 1);
}
if (highscore > 20000) {
locked3.attachMovie("pic8id", "newname1", 1);
}
if (highscore > 25000) {
locked4.attachMovie("pic9id", "newname1", 1);
}
if (highscore > 28000) {
locked5.attachMovie("pic10id", "newname1", 1);
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio1" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check1";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio2" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check2";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio3" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check3";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio4" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check4";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio5" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check5";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio6" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check6";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio7" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check7";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio8" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check8";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio9" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check9";
}
Instance of Symbol 60 MovieClip [FRadioButtonSymbol] "radio10" in Frame 1
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check10";
}
Frame 2
stop();
d1 = 0;
d2 = 0;
d3 = 0;
d4 = 0;
d5 = 0;
day = 1;
customer1 = 0;
customer2 = 0;
customer3 = 0;
customers = 0;
dealer1 = 0;
dealer2 = 0;
dealer3 = 0;
dealer4 = 0;
dealer5 = 0;
money = 100;
hashweight = 0;
hashsell = 0;
chronicweight = 0;
chronicsell = 0;
bammerweight = 0;
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);
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 */;
dayText.border = true;
customersText.border = true;
highscoreText.border = true;
moneyText.border = true;
textfieldText.border = true;
if (check1 == 1) {
object.attachMovie("pic1id", "newname1", 1);
} else if (check2 == 1) {
object.attachMovie("pic2id", "newname1", 1);
} else if (check3 == 1) {
object.attachMovie("pic3id", "newname1", 1);
} else if (check4 == 1) {
object.attachMovie("pic4id", "newname1", 1);
} else if (check5 == 1) {
object.attachMovie("pic5id", "newname1", 1);
} else if ((check6 == 1) && (highscore > 12000)) {
object.attachMovie("pic6id", "newname1", 1);
} else if ((check7 == 1) && (highscore > 15000)) {
object.attachMovie("pic7id", "newname1", 1);
} else if ((check8 == 1) && (highscore > 20000)) {
object.attachMovie("pic8id", "newname1", 1);
} else if ((check9 == 1) && (highscore > 25000)) {
object.attachMovie("pic9id", "newname1", 1);
} else if ((check10 == 1) && (highscore > 28000)) {
object.attachMovie("pic10id", "newname1", 1);
}
Frame 3
stop();
if (money > highscore) {
highscore = money;
}
Symbol 5 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 14 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 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(disabled_mc, "foregroundDisabled");
Symbol 28 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(dot_mc, "radioDot");
Symbol 29 MovieClip [frb_states] Frame 1
stop();
Symbol 29 MovieClip [frb_states] Frame 2
stop();
Symbol 29 MovieClip [frb_states] Frame 3
stop();
Symbol 29 MovieClip [frb_states] Frame 4
stop();
Symbol 29 MovieClip [frb_states] Frame 5
stop();
Symbol 30 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 57 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 57 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 60 MovieClip [FRadioButtonSymbol] Frame 1
#initclip 3
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 71 Button
on (release) {
gotoAndStop (2);
}
Symbol 87 Button
on (release) {
day = day + 1;
customer1 = (0 + hashmodifier) + cellmodifier;
customer2 = ((0 + chronicmodifier) + pagermodifier) + cellmodifier;
customer3 = ((0 + bammermodifier) + pagermodifier) + cellmodifier;
customers = (customer1 + customer2) + customer3;
if (customers < 0) {
customers = 0;
}
money = (((money - loanmodifier) - loan2modifier) - cellmodifier) - pagermodifier;
if ((day == police) && (scannermodifier == 0)) {
chronicweight = 0;
hashweight = 0;
bammerweight = 0;
textfieldText.text = "Ouch, you got pinched by the fuzz dawg. Shoulda bought a scanner.";
} else if ((day == police) && (scannermodifier == 1)) {
textfieldText.text = "Scanner: ''We have a 420 over at the Marijuana Stand, send all available units.'' That was close, good thing you got the scanner.";
}
if (((day == robber) && (gunmodifier == 0)) && (money > 0)) {
money = 0;
textfieldText.text = "They took your money, they took your rolex. You looked at the brotha said damn whats next. Shoulda been strapped!";
} else if ((day == robber) && (gunmodifier == 1)) {
textfieldText.text = "Some busters tried to grab your cash, so they got capped upon! All thanx to Smith & Wesson.";
} else if ((day == robber) && (money <= 0)) {
textfieldText.text = "Some busters tried to grab your cash but you aint got none!";
}
if (hashweight > 0) {
hashweight = hashweight - customer1;
money = money + (customer1 * hashsell);
}
if (chronicweight > 0) {
chronicweight = chronicweight - customer2;
money = money + (customer2 * chronicsell);
}
if (bammerweight > 0) {
bammerweight = bammerweight - customer3;
money = money + (customer3 * bammersell);
}
if (day == 365) {
gotoAndStop (3);
}
}
Symbol 92 Button
on (release) {
hashsell = hashsell + 1;
if (hashsell < 16) {
hashmodifier = 3;
} else if (hashsell < 21) {
hashmodifier = 2;
} else if (hashsell < 26) {
hashmodifier = 1;
} else if (hashsell < 31) {
hashmodifier = 0;
} else if (hashsell < 36) {
hashmodifier = -1;
} else {
hashmodifier = -5;
}
}
Symbol 99 Button
on (release) {
chronicsell = chronicsell + 1;
if (chronicsell < 11) {
chronicmodifier = 3;
} else if (chronicsell < 16) {
chronicmodifier = 2;
} else if (chronicsell < 21) {
chronicmodifier = 1;
} else if (chronicsell < 26) {
chronicmodifier = 0;
} else if (chronicsell < 31) {
chronicmodifier = -1;
} else {
chronicmodifier = -5;
}
}
Symbol 100 Button
on (release) {
bammersell = bammersell + 1;
if (bammersell < 4) {
bammermodifier = 3;
} else if (bammersell < 5) {
bammermodifier = 2;
} else if (bammersell < 6) {
bammermodifier = 1;
} else if (bammersell < 7) {
bammermodifier = 0;
} else if (bammersell < 8) {
bammermodifier = -1;
} else {
bammermodifier = -5;
}
}
Symbol 101 Button
on (release) {
chronicsell = chronicsell - 1;
if (chronicsell < 11) {
chronicmodifier = 3;
} else if (chronicsell < 16) {
chronicmodifier = 2;
} else if (chronicsell < 21) {
chronicmodifier = 1;
} else if (chronicsell < 26) {
chronicmodifier = 0;
} else if (chronicsell < 31) {
chronicmodifier = -1;
} else {
chronicmodifier = -5;
}
}
Symbol 102 Button
on (release) {
bammersell = bammersell - 1;
if (bammersell < 4) {
bammermodifier = 3;
} else if (bammersell < 5) {
bammermodifier = 2;
} else if (bammersell < 6) {
bammermodifier = 1;
} else if (bammersell < 7) {
bammermodifier = 0;
} else if (bammersell < 8) {
bammermodifier = -1;
} else {
bammermodifier = -5;
}
}
Symbol 103 Button
on (release) {
hashsell = hashsell - 1;
if (hashsell < 16) {
hashmodifier = 3;
} else if (hashsell < 21) {
hashmodifier = 2;
} else if (hashsell < 26) {
hashmodifier = 1;
} else if (hashsell < 31) {
hashmodifier = 0;
} else if (hashsell < 36) {
hashmodifier = -1;
} else {
hashmodifier = -5;
}
}
Symbol 114 Button
on (release) {
money = money - 320;
chronicweight = 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";
chronicweight = chronicweight + 3;
}
}
Symbol 117 Button
on (release) {
money = money - 70;
bammerweight = bammerweight + oz;
}
Symbol 120 Button
on (release) {
if (money > 399) {
money = money - 400;
hashweight = hashweight + oz;
dealer5 = dealer5 + 1;
}
if (dealer5 == 10) {
textfieldText.text = "''A discount? hahahaha, you're a funny guy you know.'' -Samson";
}
}
Symbol 123 Button
on (release) {
if (money > 199) {
money = money - 200;
bammerweight = 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";
bammerweight = bammerweight + oz;
}
}
Symbol 126 Button
on (release) {
if (money > 1149) {
money = money - 1150;
chronicweight = chronicweight + qp;
}
}
Symbol 127 Button
on (release) {
if (money > 1149) {
money = money - 1150;
chronicweight = chronicweight + qp;
dealer5 = dealer5 + 1;
}
if (dealer5 == 10) {
textfieldText.text = "''A discount? hahahaha, you're a funny guy you know.'' -Samson";
}
}
Symbol 128 Button
on (release) {
if (money > 299) {
money = money - 300;
chronicweight = 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";
money = money + 5;
}
}
Symbol 129 Button
on (release) {
if (money > 59) {
money = money - 60;
bammerweight = bammerweight + oz;
}
}
Symbol 130 Button
on (release) {
if (money > 299) {
money = money - 300;
chronicweight = chronicweight + oz;
dealer3 = dealer3 + 1;
}
if (dealer1 == 15) {
textfieldText.text = "''Hey try out this hash man. The custeez love it.'' -Ryno";
hashweight = hashweight + 3;
}
}
Symbol 131 Button
on (release) {
if (money > 399) {
money = money - 400;
hashweight = hashweight + oz;
}
}
Symbol 137 Button
on (release) {
d1 = d1 + 1;
if (d1 == 0) {
textfieldText.text = "''I'll front you a sack anytime bro, I trust you.''";
} else if (d1 == 1) {
textfieldText.text = "''-Cough-''";
} else if (d1 == 2) {
textfieldText.text = "''My prices may be a bit high, but my weed will get you more than a bit high!''";
} else if (d1 == 3) {
textfieldText.text = "''Don't go through George, he'll rip you off!''";
} else if (d1 >= 4) {
d1 = -1;
textfieldText.text = "''Got any papers man?''";
}
}
Symbol 138 Button
on (release) {
d2 = d2 + 1;
if (d2 == 0) {
textfieldText.text = "''You gotta get used to the slang in this business man. Custeez are customers, bammer is low grade marijuana, an oz is an ounce, and a qp is a quarter pound.''";
} else if (d2 == 1) {
textfieldText.text = "''Don't buy off Eric, he stole my girlfriend, he's an asshole''";
} else if (d2 == 2) {
textfieldText.text = "''If you need a qp talk to Samson.''";
} else if (d2 == 3) {
textfieldText.text = "''I usually sell grams for $15, I get more customers that way.''";
} else if (d2 >= 4) {
d2 = -1;
textfieldText.text = "''I got the white widow right now, check it.''";
}
}
Symbol 139 Button
on (release) {
d3 = d3 + 1;
if (d3 == 0) {
textfieldText.text = "''If you stick with the same dealer, usually they'll start hookin you up, if they're cool like that.''";
} else if (d3 == 1) {
textfieldText.text = "''I never charge over $400 an ounce for hash.''";
} else if (d3 == 2) {
textfieldText.text = "''Peep this pineapple sativa I picked up.''";
} else if (d3 == 3) {
textfieldText.text = "''You want blonde hash, bubble hash, or honey oil?''";
} else if (d3 >= 4) {
d3 = -1;
textfieldText.text = "''You need at least 7 custeez in my opinion.''";
}
}
Symbol 140 Button
on (release) {
d4 = d4 + 1;
if (d4 == 0) {
textfieldText.text = "''Watch out for el federales cabrone. I use a scanner, works every time. Get a gun too, to keep the banditos away.''";
} else if (d4 == 1) {
textfieldText.text = "''Say it like this, Perdon senor. Donde esta el marijuana, por favor?''";
} else if (d4 == 2) {
textfieldText.text = "''Que pasa?''";
} else if (d4 == 3) {
textfieldText.text = "''El dinero en efectivo por favor, no credito.''";
} else if (d4 >= 4) {
d4 = -1;
textfieldText.text = "''Samson is a pinche pendejo!''";
}
}
Symbol 141 Button
on (release) {
d5 = d5 + 1;
if (d5 == 0) {
textfieldText.text = "''Get a cellphone or pager as soon as you can. You'll get alot more sales, its worth the cost.''";
} else if (d5 == 1) {
textfieldText.text = "''Call me anytime kid, you're alright.''";
} else if (d5 == 2) {
textfieldText.text = "''Watch out for that dirty wet back pablo. I don't trust that guy.''";
} else if (d5 == 3) {
textfieldText.text = "''What now! Leave me alone.''";
} else if (d5 >= 4) {
d5 = -1;
textfieldText.text = "''Quit poking me in the head with that!''";
}
}
Symbol 164 Button
on (release) {
if ((money > 39) && (pagermodifier == 0)) {
pagermodifier = 1;
money = money - 40;
textfieldText.text = "New pager! Now business will really kick in.";
}
}
Symbol 168 Button
on (release) {
if ((money > 99) && (cellmodifier == 0)) {
cellmodifier = 2;
money = money - 100;
textfieldText.text = "New phone! Now business will really kick in.";
}
}
Symbol 172 Button
on (release) {
if ((money > 139) && (scalemodifier == 0)) {
scalemodifier = 1;
money = money - 140;
textfieldText.text = "Scale purchased. No more gettin skimped!";
oz = 28.5;
qp = 114;
}
}
Symbol 179 Button
on (release) {
if ((money > 159) && (scannermodifier == 0)) {
scannermodifier = 1;
money = money - 160;
textfieldText.text = "Scanner purchased. Now you'll have a heads up on those pesky porkers.";
}
}
Symbol 183 Button
on (release) {
if ((loanmodifier == 0) && (day < 320)) {
money = money + 100;
loanmodifier = 1;
textfieldText.text = "You've recieved a loan for $100. $1 a day will be deducted from your account.";
} else if ((day > 320) && (loanmodifier == 0)) {
textfieldText.text = "It's too late for a loan this year. Try back next year.";
}
}
Symbol 185 Button
on (release) {
if ((loan2modifier == 0) && (day < 300)) {
money = money + 200;
loan2modifier = 2;
textfieldText.text = "You've recieved a loan for $200. $2 a day will be deducted from your account.";
} else if ((day > 300) && (loan2modifier == 0)) {
textfieldText.text = "It's too late for a loan this year. Try back next year.";
}
}
Symbol 189 Button
on (release) {
if ((money > 199) && (gunmodifier == 0)) {
money = money - 200;
gunmodifier = 1;
textfieldText.text = "Congradulations on the purchase of your brand new gun. You'll be poppin caps in no time!";
}
}
Symbol 196 Button
on (release) {
if ((money > 14) && (cdmodifier == 0)) {
money = money - 15;
cdmodifier = 1;
textfieldText.text = "You've purchased a CD. If you want to hear the song again, at any time just click the CD button at no charge.";
}
}
Symbol 202 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.";
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;
hashweight = 0;
hashsell = 0;
chronicweight = 0;
chronicsell = 0;
bammerweight = 0;
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);
gotoAndStop (1);
}
Symbol 209 Button
on (release) {
textfieldText.text = "The object of Marijuana Stand is to make as much money as you can in a year (365 days). The weed window, located directly above, contains six fields. The three on the left display how much marijuana (in grams) you own. The three fields on the right display the prices you set. Default price for all of them is $0. So first set your prices with the up and down arrows. A good amount is $25 for hash, $20 for chronic, and $5 for bammer. Careful not to leave it set at zero, or you will be giving away your marijuana. Buy marijuana from a dealer located to the right. You must click on ''Buy oz'' or ''Buy qp''. The buttons are color coded (green = hash, dark green = chronic, brown = bammer). 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. 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.";
}
Symbol 214 Button
on (release) {
textfieldText.scroll = textfieldText.scroll - 1;
}
Symbol 215 Button
on (release) {
textfieldText.scroll = textfieldText.scroll + 1;
}
Symbol 220 Button
on (press) {
globalsound = new Sound();
globalsound.stop();
}
Symbol 227 Button
on (release) {
gotoAndStop (1);
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;
hashweight = 0;
hashsell = 0;
chronicweight = 0;
chronicsell = 0;
bammerweight = 0;
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);
textfieldText.text = "";
}