Frame 1
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("bbbee7c6", this, 10301);
Frame 2
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 327 MovieClip [FRadioButtonSymbol] "radio1" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check1";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio2" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check2";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio3" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check3";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio4" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check4";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio5" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check5";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio6" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check6";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio7" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check7";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio8" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check8";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio9" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check9";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "radio10" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "";
initialState = false;
groupName = "radioGroup";
data = "";
labelPlacement = "right";
changeHandler = "Check10";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "easy" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "Easy";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "Easy";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "intermediate" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "Intermediate";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "Intermediate";
}
Instance of Symbol 327 MovieClip [FRadioButtonSymbol] "hard" in Frame 2
//component parameters
onClipEvent (initialize) {
label = "Hard";
initialState = false;
groupName = "radioGroup2";
data = "";
labelPlacement = "right";
changeHandler = "Hard";
}
Frame 3
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;
textwindow.textfieldText.text = "**cheat enabled**";
} else if (password == "Tiger") {
moneybox.money = moneybox.money + 15;
textwindow.textfieldText.text = "**cheat enabled**";
} else if (password == "Humboldt") {
moneybox.money = moneybox.money + 25;
textwindow.textfieldText.text = "**cheat enabled**";
} else if (password == "Killer") {
moneybox.money = moneybox.money + 25;
textwindow.textfieldText.text = "**cheat enabled**";
} else if (password == "TDub") {
moneybox.money = moneybox.money + 25;
textwindow.textfieldText.text = "**cheat enabled**";
} else if (password == "NorthernLights") {
moneybox.money = moneybox.money + 15;
textwindow.textfieldText.text = "**cheat enabled**";
} else if (password == "Masa") {
moneybox.money = moneybox.money - 50;
textwindow.textfieldText.text = "**cheat enabled**";
}
highscorebox.highscore = highscore;
highscorebox.highscorename = highscorename;
if (highscorebox.highscore == null) {
highscorebox.highscore = 0;
}
if (highscorebox.highscorename == null) {
highscorebox.highscorename = "Bubba";
}
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 = 28;
qp = 112;
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;
raceday = 0;
itemwindow.loans = 0;
itemwindow.pager = 0;
itemwindow.cellphone = 0;
itemwindow.scanner = 0;
itemwindow.Scale = 0;
itemwindow.safe = 0;
itemwindow.armor = 0;
itemwindow.handgun = 0;
itemwindow.ammo1 = 0;
itemwindow.shotgun = 0;
itemwindow.ammo2 = 0;
itemwindow.grenades = 0;
itemwindow.burgers = 0;
itemwindow.cds = 0;
itemwindow.monkeypaw = 0;
itemwindow.blunts = 0;
itemwindow.prostitutes = 0;
itemwindow.fortunes = 0;
itemwindow.cashwon = 0;
textwindow.textfieldText.border = false;
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 747 MovieClip "crosshair" in Frame 3
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.textwindow.textfieldText.text = "WARNING!!! Out of ammo!";
_root.controller.a = 0;
}
if ((_root.ammunition2 == 1) && (_root.clips2 == 0)) {
_root.textwindow.textfieldText.text = "WARNING!!! Out of ammo!";
_root.controller.a = 0;
}
if ((_root.clips3 == 0) && (_root.gunactivated == 3)) {
_root.textwindow.textfieldText.text = "WARNING!!! Out of grenades!";
_root.controller.a = 0;
}
}
Frame 4
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 34
stop();
Frame 64
stop();
Frame 94
stop();
Frame 124
stop();
Frame 154
stop();
Frame 184
stop();
Frame 215
stop();
Frame 244
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 () {
var _local1 = this;
if (_local1._height == 4) {
} else {
_local1.init();
_local1.minPos = (_local1.maxPos = (_local1.pageSize = (_local1.largeScroll = 0)));
_local1.smallScroll = 1;
_local1.width = (_local1.horizontal ? (_local1._width) : (_local1._height));
_local1._xscale = (_local1._yscale = 100);
_local1.setScrollPosition(0);
_local1.tabEnabled = false;
if (_local1._targetInstanceName.length > 0) {
_local1.setScrollTarget(_local1._parent[_local1._targetInstanceName]);
}
_local1.tabChildren = false;
_local1.setSize(_local1.width);
}
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.horizontal && (!_local2)) {
_local1._xscale = 100;
_local1._rotation = 0;
} else if (_local2 && (!_local1.horizontal)) {
_local1._xscale = -100;
_local1._rotation = -90;
}
_local1.horizontal = _local2;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.pageSize = pSize;
_local1.minPos = Math.max(mnPos, 0);
_local1.maxPos = Math.max(mxPos, 0);
_local1.scrollPosition = Math.max(_local1.minPos, _local1.scrollPosition);
_local1.scrollPosition = Math.min(_local1.maxPos, _local1.scrollPosition);
if ((_local1.maxPos - _local1.minPos) <= 0) {
_local1.scrollThumb_mc.removeMovieClip();
_local1.upArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.gotoAndStop(3);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = null));
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = null));
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onRelease = null);
_local1.scrollTrack_mc.onDragOut = (_local1.scrollTrack_mc.onRollOut = null);
_local1.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = _local1.getScrollPosition();
_local1.upArrow_mc.gotoAndStop(1);
_local1.downArrow_mc.gotoAndStop(1);
_local1.upArrow_mc.onPress = (_local1.upArrow_mc.onDragOver = _local1.startUpScroller);
_local1.upArrow_mc.onRelease = (_local1.upArrow_mc.onDragOut = _local1.stopScrolling);
_local1.downArrow_mc.onPress = (_local1.downArrow_mc.onDragOver = _local1.startDownScroller);
_local1.downArrow_mc.onRelease = (_local1.downArrow_mc.onDragOut = _local1.stopScrolling);
_local1.scrollTrack_mc.onPress = (_local1.scrollTrack_mc.onDragOver = _local1.startTrackScroller);
_local1.scrollTrack_mc.onRelease = _local1.stopScrolling;
_local1.scrollTrack_mc.onDragOut = _local1.stopScrolling;
_local1.scrollTrack_mc.onRollOut = _local1.stopScrolling;
_local1.scrollTrack_mc.useHandCursor = false;
_local1.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
_local1.scrollThumb_mc._x = 0;
_local1.scrollThumb_mc._y = _local1.upArrow_mc._height;
_local1.scrollThumb_mc.onPress = _local1.startDragThumb;
_local1.scrollThumb_mc.controller = _local1;
_local1.scrollThumb_mc.onRelease = (_local1.scrollThumb_mc.onReleaseOutside = _local1.stopDragThumb);
_local1.scrollThumb_mc.useHandCursor = false;
_local1.thumbHeight = (_local1.pageSize / ((_local1.maxPos - _local1.minPos) + _local1.pageSize)) * _local1.trackSize;
_local1.thumbMid_mc = _local1.scrollThumb_mc.mc_sliderMid;
_local1.thumbTop_mc = _local1.scrollThumb_mc.mc_sliderTop;
_local1.thumbBot_mc = _local1.scrollThumb_mc.mc_sliderBot;
_local1.thumbHeight = Math.max(_local1.thumbHeight, 6);
_local1.midHeight = (_local1.thumbHeight - _local1.thumbTop_mc._height) - _local1.thumbBot_mc._height;
_local1.thumbMid_mc._yScale = (_local1.midHeight * 100) / _local1.thumbMid_mc._height;
_local1.thumbMid_mc._y = _local1.thumbTop_mc._height;
_local1.thumbBot_mc._y = _local1.thumbTop_mc._height + _local1.midHeight;
_local1.scrollTop = _local1.scrollThumb_mc._y;
_local1.trackHeight = _local1.trackSize - _local1.thumbHeight;
_local1.scrollBot = _local1.trackHeight + _local1.scrollTop;
_local2 = Math.min(_local2, _local1.maxPos);
_local1.setScrollPosition(Math.max(_local2, _local1.minPos));
}
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
var _local1 = this;
var _local2 = pos;
_local1.scrollPosition = _local2;
if (_local1.scrollThumb_mc != undefined) {
_local2 = Math.min(_local2, _local1.maxPos);
_local2 = Math.max(_local2, _local1.minPos);
}
_local1.scrollThumb_mc._y = (((_local2 - _local1.minPos) * _local1.trackHeight) / (_local1.maxPos - _local1.minPos)) + _local1.scrollTop;
_local1.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
var _local3 = _local1.enable;
if (_local2 && (!_local3)) {
_local1.enable = _local2;
if (_local1.textField != undefined) {
_local1.setScrollTarget(_local1.textField);
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.cachedMinPos, _local1.cachedMaxPos);
_local1.setScrollPosition(_local1.cachedPos);
}
_local1.clickFilter = undefined;
} else if ((!_local2) && (_local3)) {
_local1.textField.removeListener(_local1);
_local1.cachedPos = _local1.getScrollPosition();
_local1.cachedMinPos = _local1.minPos;
_local1.cachedMaxPos = _local1.maxPos;
if (_local1.clickFilter == undefined) {
_local1.setScrollProperties(_local1.pageSize, 0, 0);
} else {
_local1.clickFilter = true;
}
_local1.enable = _local2;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
var _local1 = this;
if (_local1._height == 1) {
} else {
_local1.width = hgt;
_local1.scrollTrack_mc._yscale = 100;
_local1.scrollTrack_mc._yscale = (100 * _local1.width) / _local1.scrollTrack_mc._height;
if (_local1.upArrow_mc == undefined) {
_local1.attachMovie("UpArrow", "upArrow_mc", 1);
_local1.attachMovie("DownArrow", "downArrow_mc", 2);
_local1.downArrow_mc.controller = (_local1.upArrow_mc.controller = _local1);
_local1.upArrow_mc.useHandCursor = (_local1.downArrow_mc.useHandCursor = false);
_local1.upArrow_mc._x = (_local1.upArrow_mc._y = 0);
_local1.downArrow_mc._x = 0;
}
_local1.scrollTrack_mc.controller = _local1;
_local1.downArrow_mc._y = _local1.width - _local1.downArrow_mc._height;
_local1.trackSize = _local1.width - (2 * _local1.downArrow_mc._height);
if (_local1.textField != undefined) {
_local1.onTextChanged();
} else {
_local1.setScrollProperties(_local1.pageSize, _local1.minPos, _local1.maxPos);
}
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local1 = this;
var _local3 = _local1.smallScroll;
if (inc != "one") {
_local3 = ((_local1.largeScroll == 0) ? (_local1.pageSize) : (_local1.largeScroll));
}
var _local2 = _local1.getScrollPosition() + (mode * _local3);
if (_local2 > _local1.maxPos) {
_local2 = _local1.maxPos;
} else if (_local2 < _local1.minPos) {
_local2 = _local1.minPos;
}
_local1.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
var _local1 = this;
_local1.lastY = _local1._ymouse;
_local1.onMouseMove = _local1.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
var _local1 = this;
_local1.scrollMove = _local1._ymouse - _local1.lastY;
_local1.scrollMove = _local1.scrollMove + _local1._y;
if (_local1.scrollMove < _local1.controller.scrollTop) {
_local1.scrollMove = _local1.controller.scrollTop;
} else if (_local1.scrollMove > _local1.controller.scrollBot) {
_local1.scrollMove = _local1.controller.scrollBot;
}
_local1._y = _local1.scrollMove;
var _local2 = _local1.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (_local1._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
_local1.controller.isScrolling = true;
updateAfterEvent();
_local1.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
var _local1 = this;
_local1.controller.trackScroller();
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
var _local1 = this;
var _local2 = inc;
clearInterval(_local1.scrolling);
if (_local2 == "page") {
_local1.trackScroller();
} else {
_local1.scrollIt(_local2, mode);
}
_local1.scrolling = setInterval(_local1, "scrollInterval", 35, _local2, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
var _local1 = this;
if ((_local1.scrollThumb_mc._y + _local1.thumbHeight) < _local1._ymouse) {
_local1.scrollIt("page", 1);
} else if (_local1.scrollThumb_mc._y > _local1._ymouse) {
_local1.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(1);
_local1.controller.upArrow_mc.gotoAndStop(1);
clearInterval(_local1.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
var _local1 = this;
_local1.controller.upArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", -1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
var _local1 = this;
_local1.controller.downArrow_mc.gotoAndStop(2);
_local1.controller.scrollIt("one", 1);
_local1.controller.scrolling = setInterval(_local1.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
var _local1 = this;
var _local2 = tF;
if (_local2 == undefined) {
_local1.textField.removeListener(_local1);
delete _local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")];
if ((_local1.textField.hScroller != undefined) && (_local1.textField.vScroller != undefined)) {
_local1.textField.unwatch("text");
_local1.textField.unwatch("htmltext");
}
}
_local1.textField = undefined;
if (!(_local2 instanceof TextField)) {
} else {
_local1.textField = _local2;
_local1.textField[(_local1.horizontal ? "hScroller" : "vScroller")] = _local1;
_local1.onTextChanged();
_local1.onChanged = function () {
this.onTextChanged();
};
_local1.onScroller = function () {
var _local1 = this;
if (!_local1.isScrolling) {
if (!_local1.horizontal) {
_local1.setScrollPosition(_local1.textField.scroll);
} else {
_local1.setScrollPosition(_local1.textField.hscroll);
}
}
};
_local1.textField.addListener(_local1);
_local1.textField.watch("text", _local1.callback);
_local1.textField.watch("htmlText", _local1.callback);
}
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
var _local1 = this;
clearInterval(_local1.hScroller.synchScroll);
clearInterval(_local1.vScroller.synchScroll);
_local1.hScroller.synchScroll = setInterval(_local1.hScroller, "onTextChanged", 50);
_local1.vScroller.synchScroll = setInterval(_local1.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
var _local1 = this;
if ((!_local1.enable) || (_local1.textField == undefined)) {
} else {
clearInterval(_local1.synchScroll);
if (_local1.horizontal) {
var _local2 = _local1.textField.hscroll;
_local1.setScrollProperties(_local1.textField._width, 0, _local1.textField.maxhscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxhscroll));
} else {
var _local2 = _local1.textField.scroll;
var _local3 = _local1.textField.bottomScroll - _local1.textField.scroll;
_local1.setScrollProperties(_local3, 1, _local1.textField.maxscroll);
_local1.setScrollPosition(Math.min(_local2, _local1.textField.maxscroll));
}
}
};
FScrollBarClass.prototype.executeCallBack = function () {
var _local1 = this;
if (_local1.textField == undefined) {
super.executeCallBack();
} else if (_local1.horizontal) {
_local1.textField.hscroll = _local1.getScrollPosition();
} else {
_local1.textField.scroll = _local1.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 86 MovieClip [DataProviderSymbol] Frame 1
#initclip 1
_global.DataProviderClass = function () {
this.init();
};
DataProviderClass.prototype.init = function () {
var _local1 = this;
_local1.items = new Array();
_local1.uniqueID = 0;
_local1.views = new Array();
};
DataProviderClass.prototype.addView = function (viewRef) {
this.views.push(viewRef);
var _local1 = {event:"updateAll"};
viewRef.modelChanged(_local1);
};
DataProviderClass.prototype.addItemAt = function (index, value) {
var _local1 = index;
var _local2 = this;
var _local3 = value;
if (_local1 < _local2.getLength()) {
_local2.items.splice(_local1, 0, "tmp");
}
_local2.items[_local1] = new Object();
if (typeof(_local3) == "object") {
_local2.items[_local1] = _local3;
} else {
_local2.items[_local1].label = _local3;
}
_local2.items[_local1].__ID__ = _local2.uniqueID++;
var eventObj = {event:"addRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(eventObj);
};
DataProviderClass.prototype.addItem = function (value) {
this.addItemAt(this.getLength(), value);
};
DataProviderClass.prototype.removeItemAt = function (index) {
var _local1 = index;
var _local2 = this;
var tmpItm = _local2.items[_local1];
_local2.items.splice(_local1, 1);
var _local3 = {event:"deleteRows", firstRow:_local1, lastRow:_local1};
_local2.updateViews(_local3);
return(tmpItm);
};
DataProviderClass.prototype.removeAll = function () {
var _local1 = this;
_local1.items = new Array();
_local1.updateViews({event:"deleteRows", firstRow:0, lastRow:_local1.getLength() - 1});
};
DataProviderClass.prototype.replaceItemAt = function (index, itemObj) {
var _local1 = index;
var _local2 = this;
if ((_local1 < 0) || (_local1 >= _local2.getLength())) {
} else {
var _local3 = _local2.getItemID(_local1);
if (typeof(itemObj) == "object") {
_local2.items[_local1] = itemObj;
} else {
_local2.items[_local1].label = itemObj;
}
_local2.items[_local1].__ID__ = _local3;
_local2.updateViews({event:"updateRows", firstRow:_local1, lastRow:_local1});
}
};
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) {
var _local1 = this;
_local1.items.sortOn(fieldName);
if (order == "DESC") {
_local1.items.reverse();
}
_local1.updateViews({event:"sort"});
};
DataProviderClass.prototype.updateViews = function (eventObj) {
var _local2 = this;
var _local3 = eventObj;
var _local1 = 0;
while (_local1 < _local2.views.length) {
_local2.views[_local1].modelChanged(_local3);
_local1++;
}
};
#endinitclip
Symbol 87 MovieClip [FSelectableItemSymbol] Frame 1
#initclip 8
function FSelectableItemClass() {
this.init();
}
FSelectableItemClass.prototype = new FUIComponentClass();
FSelectableItemClass.prototype.init = function () {
var _local1 = this;
if (_local1._name != "itemAsset") {
_local1.highlighted = false;
_local1.layoutContent(100);
}
};
FSelectableItemClass.prototype.drawItem = function (itmObj, selected) {
var _local1 = this;
var _local2 = selected;
_local1.displayContent(itmObj, _local2);
if ((_local1.highlighted != _local2) || ((_local1.controller.focused != _local1.oldFocus) && (_local2))) {
_local1.setHighlighted(_local2);
}
_local1.oldFocus = _local1.controller.focused;
};
FSelectableItemClass.prototype.setSize = function (width, height) {
var _local1 = this;
var _local3 = width;
var _local2 = -16384;
_local1.width = _local3;
_local1.layoutContent(_local3);
_local1.attachMovie("FHighlightSymbol", "highlight_mc", _local2);
_local1.highlight_mc._x = 0.5;
_local1.highlight_mc._width = _local3 - 0.5;
_local1.highlight_mc._height = height;
_local1.highlight_mc.controller = _local1;
_local1.highlight_mc._alpha = 0;
_local1.highlight_mc.trackAsMenu = true;
_local1.highlight_mc.onPress = function () {
var _local1 = this;
if (_local1.controller.enable) {
_local1.controller.controller.clickHandler(_local1.controller.itemNum);
}
};
_local1.highlight_mc.onDragOver = function () {
if (this.controller.controller.focused) {
this.onPress();
}
};
_local1.highlight_mc.useHandCursor = false;
_local1.highlight_mc.trackAsMenu = true;
};
FSelectableItemClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local1.enable = _local2;
_local1.fLabel_mc.setEnabled(_local2);
_local1.highlight_mc.gotoAndStop((_local2 ? "unfocused" : "disabled"));
};
FSelectableItemClass.prototype.layoutContent = function (width) {
var _local1 = this;
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 2, {hostComponent:_local1.controller});
_local1.fLabel_mc._x = 2;
_local1.fLabel_mc._y = 0;
_local1.fLabel_mc.setSize(width - 2);
_local1.fLabel_mc.labelField.selectable = false;
};
FSelectableItemClass.prototype.displayContent = function (itmObj, selected) {
var _local2 = itmObj;
var _local1 = "";
if (_local2.label != undefined) {
_local1 = _local2.label;
} else if (typeof(_local2) == "object") {
for (var _local3 in _local2) {
if (_local3 != "__ID__") {
_local1 = (_local2[_local3] + ", ") + _local1;
}
}
_local1 = _local1.substring(0, _local1.length - 2);
} else {
_local1 = _local2;
}
if (this.fLabel_mc.labelField.text != _local1) {
this.fLabel_mc.setLabel(_local1);
}
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) {
var _local1 = this;
var _local2 = flag;
fade = _local1.controller.styleTable.fadeRate.value;
if (((fade == undefined) || (fade == 0)) || (!_local2)) {
_local1.highlight_mc._alpha = (_local2 ? 100 : 0);
delete _local1.onEnterFrame;
} else {
_local1.fadeN = fade;
_local1.fadeX = 1;
_local1.highLight_mc._alpha = 20;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.highLight_mc._alpha = (60 * Math.sqrt((_local1.fadeX++) / _local1.fadeN)) + 40;
if (_local1.fadeX > _local1.fadeN) {
delete _local1.onEnterFrame;
}
};
}
_local1.highlighted = _local2;
};
#endinitclip
Symbol 88 MovieClip [FSelectableListSymbol] Frame 1
#initclip 4
function FSelectableListClass() {
this.init();
}
FSelectableListClass.prototype = new FUIComponentClass();
FSelectableListClass.prototype.init = function () {
var _local1 = this;
super.init();
_local1.enable = true;
_local1.selected = new Array();
_local1.topDisplayed = (_local1.numDisplayed = 0);
_local1.lastSelected = 0;
_local1.tabChildren = false;
if (_local1._name != undefined) {
_local1.dataProvider = new DataProviderClass();
_local1.dataProvider.addView(_local1);
}
};
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) {
var _local1 = this;
_local1.selectHolder = _local1.getSelectedIndex();
var _local2 = _local1.getItemAt(index);
_local1.dataProvider.removeItemAt(index);
return(_local2);
};
FSelectableListClass.prototype.removeAll = function () {
this.dataProvider.removeAll();
};
FSelectableListClass.prototype.replaceItemAt = function (index, newLabel, newData) {
this.dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
};
FSelectableListClass.prototype.sortItemsBy = function (fieldName, order) {
var _local1 = this;
_local1.lastSelID = _local1.dataProvider.getItemID(_local1.lastSelected);
_local1.dataProvider.sortItemsBy(fieldName, order);
};
FSelectableListClass.prototype.getLength = function () {
return(this.dataProvider.getLength());
};
FSelectableListClass.prototype.getSelectedIndex = function () {
var _local2 = this;
for (var _local3 in _local2.selected) {
var _local1 = _local2.selected[_local3].sIndex;
if (_local1 != undefined) {
return(_local1);
}
}
return(undefined);
};
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 _local1 = this.getSelectedItem();
if (_local1.data != undefined) {
return(_local1.data);
}
return(_local1.label);
};
FSelectableListClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
var _local2 = index;
if (((_local2 >= 0) && (_local2 < _local1.getLength())) && (_local1.enable)) {
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.lastSelected = _local2;
_local1.invalidate("updateControl");
if (flag != false) {
_local1.executeCallBack();
}
}
};
FSelectableListClass.prototype.setDataProvider = function (obj) {
var _local2 = obj;
this.setScrollPosition(0);
this.clearSelected();
if (_local2 instanceof Array) {
this.dataProvider = new DataProviderClass();
var _local1 = 0;
while (_local1 < _local2.length) {
var _local3 = ((typeof(_local2[_local1]) == "string") ? ({label:_local2[_local1]}) : (_local2[_local1]));
this.dataProvider.addItem(_local3);
_local1++;
}
} else {
this.dataProvider = _local2;
}
this.dataProvider.addView(this);
};
FSelectableListClass.prototype.setItemSymbol = function (linkID) {
var _local1 = this;
_local1.tmpPos = _local1.getScrollPosition();
_local1.itemSymbol = linkID;
_local1.invalidate("setSize");
_local1.setScrollPosition(_local1.tmpPos);
};
FSelectableListClass.prototype.setEnabled = function (enabledFlag) {
var _local2 = this;
_local2.cleanUI();
super.setEnabled(enabledFlag);
_local2.enable = enabledFlag;
_local2.boundingBox_mc.gotoAndStop((_local2.enable ? "enabled" : "disabled"));
var _local3 = Math.min(_local2.numDisplayed, _local2.getLength());
var _local1 = 0;
while (_local1 < _local3) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].setEnabled(_local2.enable);
_local1++;
}
if (_local2.enable) {
_local2.invalidate("updateControl");
}
};
FSelectableListClass.prototype.updateControl = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].drawItem(_local2.getItemAt(_local2.topDisplayed + _local1), _local2.isSelected(_local2.topDisplayed + _local1));
_local1++;
}
};
FSelectableListClass.prototype.setSize = function (w, h) {
var _local1 = this;
super.setSize(w, h);
_local1.boundingBox_mc._xscale = (_local1.boundingBox_mc._yscale = 100);
_local1.boundingBox_mc._xscale = (_local1.width * 100) / _local1.boundingBox_mc._width;
_local1.boundingBox_mc._yscale = (_local1.height * 100) / _local1.boundingBox_mc._height;
var _local2 = 0;
while (_local2 < _local1.numDisplayed) {
_local1.container_mc.attachMovie(_local1.itemSymbol, ("fListItem" + _local2) + "_mc", 10 + _local2, {controller:_local1, itemNum:_local2});
var _local3 = _local1.container_mc[("fListItem" + _local2) + "_mc"];
var offset = ((_local1.scrollOffset == undefined) ? 0 : (_local1.scrollOffset));
_local3.setSize(_local1.width - offset, _local1.itmHgt);
_local3._y = (_local1.itmHgt - 2) * _local2;
_local2++;
}
_local1.updateControl();
};
FSelectableListClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
var firstRow = eventObj.firstRow;
var lastRow = eventObj.lastRow;
var event = eventObj.event;
if (event == "addRows") {
for (var _local2 in _local1.selected) {
if ((_local1.selected[_local2].sIndex != undefined) && (_local1.selected[_local2].sIndex >= firstRow)) {
_local1.selected[_local2].sIndex = _local1.selected[_local2].sIndex + ((lastRow - firstRow) + 1);
_local1.setSelectedIndex(_local1.selected[_local2].sIndex, false);
}
}
} else if (event == "deleteRows") {
if (firstRow == lastRow) {
var index = firstRow;
if (_local1.selectHolder == index) {
_local1.selectionDeleted = true;
}
if (((_local1.topDisplayed + _local1.numDisplayed) >= _local1.getLength()) && (_local1.topDisplayed > 0)) {
_local1.topDisplayed--;
if (_local1.selectionDeleted && ((index - 1) >= 0)) {
_local1.setSelectedIndex(index - 1, false);
}
} else if (_local1.selectionDeleted) {
var len = _local1.getLength();
if (((index == (len - 1)) && (len > 1)) || (index > (len / 2))) {
_local1.setSelectedIndex(index - 1, false);
} else {
_local1.setSelectedIndex(index, false);
}
}
for (var _local2 in _local1.selected) {
if (_local1.selected[_local2].sIndex > firstRow) {
_local1.selected[_local2].sIndex--;
}
}
} else {
_local1.clearSelected();
_local1.topDisplayed = 0;
}
} else if (event == "sort") {
var len = _local1.getLength();
var _local2 = 0;
while (_local2 < len) {
if (_local1.isSelected(_local2)) {
var _local3 = _local1.dataProvider.getItemID(_local2);
if (_local3 == _local1.lastSelID) {
_local1.lastSelected = _local2;
}
_local1.selected[String(_local3)].sIndex = _local2;
}
_local2++;
}
}
_local1.invalidate("updateControl");
};
FSelectableListClass.prototype.measureItmHgt = function () {
var _local1 = this;
_local1.attachMovie(_local1.itemSymbol, "tmpItem_mc", 0, {controller:_local1});
_local1.tmpItem_mc.drawItem({label:"Sizer: PjtTopg"}, false);
_local1.itmHgt = _local1.tmpItem_mc._height;
_local1.tmpItem_mc.removeMovieClip();
};
FSelectableListClass.prototype.selectItem = function (index, selectedFlag) {
var _local1 = this;
var _local2 = index;
if (selectedFlag && (!_local1.isSelected(_local2))) {
_local1.selected[String(_local1.dataProvider.getItemID(_local2))] = {sIndex:_local2};
} else if (!selectedFlag) {
delete _local1.selected[String(_local1.dataProvider.getItemID(_local2))];
}
};
FSelectableListClass.prototype.isSelected = function (index) {
return(this.selected[String(this.dataProvider.getItemID(index))].sIndex != undefined);
};
FSelectableListClass.prototype.clearSelected = function () {
var _local1 = this;
for (var _local3 in _local1.selected) {
var _local2 = _local1.selected[_local3].sIndex;
if (((_local2 != undefined) && (_local1.topDisplayed <= _local2)) && (_local2 < (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.container_mc[("fListItem" + (_local2 - _local1.topDisplayed)) + "_mc"].drawItem(_local1.getItemAt(_local2), false);
}
}
delete _local1.selected;
_local1.selected = new Array();
};
FSelectableListClass.prototype.selectionHandler = function (itemNum) {
var _local1 = this;
var _local2 = _local1.topDisplayed + itemNum;
if (_local1.getItemAt(_local2 == undefined)) {
_local1.changeFlag = false;
} else {
_local1.changeFlag = true;
_local1.clearSelected();
_local1.selectItem(_local2, true);
_local1.container_mc[("fListItem" + itemNum) + "_mc"].drawItem(_local1.getItemAt(_local2), _local1.isSelected(_local2));
}
};
FSelectableListClass.prototype.moveSelBy = function (incr) {
var _local1 = this;
var _local3 = _local1.getSelectedIndex();
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(_local1.getLength() - 1, _local2);
if (_local2 == _local3) {
} else {
if ((_local3 < _local1.topDisplayed) || (_local3 >= (_local1.topDisplayed + _local1.numDisplayed))) {
_local1.setScrollPosition(_local3);
}
if ((_local2 >= (_local1.topDisplayed + _local1.numDisplayed)) || (_local2 < _local1.topDisplayed)) {
_local1.setScrollPosition(_local1.topDisplayed + incr);
}
_local1.selectionHandler(_local2 - _local1.topDisplayed);
}
};
FSelectableListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (!_local1.focused) {
_local1.pressFocus();
}
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FSelectableListClass.prototype.releaseHandler = function () {
var _local1 = this;
if (_local1.changeFlag) {
_local1.executeCallBack();
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
};
FSelectableListClass.prototype.myOnSetFocus = function () {
var _local2 = this;
super.myOnSetFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("enabled");
_local1++;
}
};
FSelectableListClass.prototype.myOnKillFocus = function () {
var _local2 = this;
super.myOnKillFocus();
var _local1 = 0;
while (_local1 < _local2.numDisplayed) {
_local2.container_mc[("fListItem" + _local1) + "_mc"].highlight_mc.gotoAndStop("unfocused");
_local1++;
}
};
#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) {
var _local1 = pos;
var _local2 = this;
if (_local2.enable) {
_local1 = Math.min(_local1, _local2.getLength() - _local2.numDisplayed);
_local1 = Math.max(_local1, 0);
_local2.scrollBar_mc.setScrollPosition(_local1);
}
};
FScrollSelectListClass.prototype.setAutoHideScrollBar = function (flag) {
var _local1 = this;
_local1.permaScrollBar = !flag;
_local1.setSize(_local1.width, _local1.height);
};
FScrollSelectListClass.prototype.setEnabled = function (enabledFlag) {
super.setEnabled(enabledFlag);
this.scrollBar_mc.setEnabled(this.enable);
};
FScrollSelectListClass.prototype.setSize = function (w, h) {
var _local1 = this;
var _local2 = _local1.getScrollPosition();
super.setSize(w, h);
if (_local1.scrollBar_mc != undefined) {
_local1.removed = true;
}
_local1.scrollBar_mc = undefined;
_local1.initScrollBar();
_local1.setScrollPosition(_local2);
};
FScrollSelectListClass.prototype.modelChanged = function (eventObj) {
super.modelChanged(eventObj);
this.invalidate("initScrollBar");
};
FScrollSelectListClass.prototype.initScrollBar = function () {
var _local1 = this;
if ((!_local1.permaScrollBar) && (_local1.getLength() <= _local1.numDisplayed)) {
if (_local1.removed) {
_local1.scrollBar_mc.removeMovieClip();
_local1.scrollBar_mc = undefined;
_local1.scrollOffset = undefined;
_local1.invalidate("setSize");
}
} else {
if (_local1.scrollBar_mc == undefined) {
_local1.container_mc.attachMovie("FScrollBarSymbol", "scrollBar_mc", 3000, {hostStyle:_local1.styleTable});
_local1.scrollBar_mc = _local1.container_mc.scrollBar_mc;
_local1.scrollBar_mc.setChangeHandler("scrollHandler", _local1);
_local1.scrollBar_mc.setSize(_local1.height);
_local1.scrollBar_mc._x = _local1.width - _local1.scrollBar_mc._width;
_local1.scrollBar_mc._y = 0;
_local1.scrollBar_mc.setLargeScroll(_local1.numDisplayed - 1);
_local1.scrollOffset = _local1.scrollBar_mc._width;
_local1.invalidate("setSize");
}
_local1.scrollBar_mc.setScrollProperties(_local1.numDisplayed, 0, _local1.getLength() - _local1.numDisplayed);
}
};
FScrollSelectListClass.prototype.scrollHandler = function (scrollBar) {
var _local2 = this;
var _local1 = scrollBar.getScrollPosition();
_local2.topDisplayed = _local1;
if (_local2.lastPosition != _local1) {
_local2.updateControl();
}
_local2.lastPosition = _local1;
};
FScrollSelectListClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
super.clickHandler(itmNum);
if ((_local1.dragScrolling == undefined) && (_local1.scrollBar_mc != undefined)) {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.releaseHandler = function () {
clearInterval(this.dragScrolling);
this.dragScrolling = undefined;
super.releaseHandler();
};
FScrollSelectListClass.prototype.dragScroll = function () {
var _local1 = this;
clearInterval(_local1.dragScrolling);
if (_local1.container_mc._ymouse < 0) {
_local1.setScrollPosition(_local1.getScrollPosition() - 1);
_local1.selectionHandler(0);
_local1.scrollInterval = Math.max(25, (-23.8 * (-_local1.container_mc._ymouse)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else if (_local1.container_mc._ymouse > ((_local1.itmHgt - 2) * _local1.numDisplayed)) {
_local1.setScrollPosition(_local1.getScrollPosition() + 1);
_local1.selectionHandler(_local1.numDisplayed - 1);
_local1.scrollInterval = Math.max(25, (-23.8 * Math.abs((_local1.container_mc._ymouse - ((_local1.itmHgt - 2) * _local1.numDisplayed)) - 2)) + 500);
_local1.dragScrolling = setInterval(_local1, "dragScroll", _local1.scrollInterval);
} else {
_local1.dragScrolling = setInterval(_local1, "dragScroll", 15);
}
};
FScrollSelectListClass.prototype.myOnKeyDown = function () {
var _local2 = this;
if (_local2.focused) {
_local2.keyCodes = new Array(40, 38, 34, 33, 36, 35);
_local2.keyIncrs = new Array(1, -1, _local2.numDisplayed - 1, -(_local2.numDisplayed - 1), -_local2.getLength(), _local2.getLength());
var _local1 = 0;
while (_local1 < _local2.keyCodes.length) {
if (Key.isDown(_local2.keyCodes[_local1])) {
_local2.moveSelBy(_local2.keyIncrs[_local1]);
return;
}
_local1++;
}
_local2.findInputText();
}
};
FScrollSelectListClass.prototype.findInputText = function () {
var _local1 = Key.getAscii();
if ((_local1 >= 33) && (_local1 <= 126)) {
this.findString(String.fromCharCode(_local1));
}
};
FScrollSelectListClass.prototype.findString = function (str) {
if (this.getLength() == 0) {
} else {
var _local3 = this.getSelectedIndex();
var jump = 0;
var _local1 = _local3 + 1;
while (_local1 != _local3) {
var _local2 = this.getItemAt(_local1).label.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
var jump = (_local1 - _local3);
break;
}
if (_local1 >= (this.getLength() - 1)) {
_local1 = -1;
}
_local1++;
}
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) {
var _local1 = this;
super.setSize(w, h);
_local1.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() {
var _local1 = this;
_global._popUpLevel = ((_global._popUpLevel == undefined) ? 20000 : (_global._popUpLevel + 1));
_local1.superHolder = _root.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
var _local3 = _local1.superHolder.createEmptyMovieClip("testCont", 20000);
var testBox = _local3.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
if (testBox._name == undefined) {
_local1.superHolder.removeMovieClip();
_local1.superHolder = _local1._parent.createEmptyMovieClip("superHolder" + _popUpLevel, _popUpLevel);
} else {
_local3.removeMovieClip();
}
if (_local1.rowCount == undefined) {
_local1.rowCount = 8;
_local1.editable = false;
}
_local1.itemSymbol = "FComboBoxItemSymbol";
_local1.init();
_local1.permaScrollBar = false;
_local1.proxyBox_mc.gotoAndStop(1);
_local1.width = _local1._width;
_local1.height = (_local1.proxyBox_mc._height * _local1._yscale) / 100;
var _local2 = 0;
while (_local2 < _local1.labels.length) {
_local1.addItem(_local1.labels[_local2], _local1.data[_local2]);
_local2++;
}
_local1.lastSelected = 0;
_local1.selectItem(0);
_local1._xscale = (_local1._yscale = 100);
_local1.opened = false;
_local1.setSize(_local1.width);
_local1.highlightTop(false);
if (_local1.changeHandler.length > 0) {
_local1.setChangeHandler(_local1.changeHandler);
}
_local1.onUnload = function () {
this.superHolder.removeMovieClip();
};
_local1.setSelectedIndex(0, false);
_local1.value = "";
_local1.focusEnabled = true;
_local1.changeFlag = false;
}
FComboBoxClass.prototype = new FScrollSelectListClass();
Object.registerClass("FComboBoxSymbol", FComboBoxClass);
FComboBoxClass.prototype.modelChanged = function (eventObj) {
var _local1 = this;
super.modelChanged(eventObj);
var _local2 = eventObj.event;
if ((_local2 == "addRows") || (_local2 == "deleteRows")) {
var diff = ((eventObj.lastRow - eventObj.firstRow) + 1);
var mode = ((_local2 == "addRows") ? 1 : -1);
var _local3 = _local1.getLength();
var lenBefore = (_local3 - (mode * diff));
if ((_local1.rowCount > lenBefore) || (_local1.rowCount > _local3)) {
_local1.invalidate("setSize");
}
if (_local1.getSelectedIndex() == undefined) {
_local1.setSelectedIndex(0, false);
}
} else if (_local2 == "updateAll") {
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.removeAll = function () {
var _local1 = this;
if (!_local1.enable) {
} else {
super.removeAll();
if (_local1.editable) {
_local1.value = "";
}
_local1.invalidate("setSize");
}
};
FComboBoxClass.prototype.setSize = function (w) {
var _local1 = this;
var _local2 = w;
if ((((_local2 == undefined) || (typeof(_local2) != "number")) || (_local2 <= 0)) || (!_local1.enable)) {
} else {
_local1.proxyBox_mc._width = _local2;
_local1.container_mc.removeMovieClip();
_local1.measureItmHgt();
_local1.container_mc = _local1.superHolder.createEmptyMovieClip("container", 3);
_local1.container_mc.tabChildren = false;
_local1.setPopUpLocation(_local1.container_mc);
_local1.container_mc.attachMovie("FBoundingBoxSymbol", "boundingBox_mc", 0);
_local1.boundingBox_mc = _local1.container_mc.boundingBox_mc;
_local1.boundingBox_mc.component = _local1;
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc._height = _local1.itmHgt;
_local1.numDisplayed = Math.min(_local1.rowCount, _local1.getLength());
if (_local1.numDisplayed < 3) {
_local1.numDisplayed = Math.min(3, _local1.getLength());
}
_local1.height = (_local1.numDisplayed * (_local1.itmHgt - 2)) + 2;
super.setSize(_local2, _local1.height);
_local1.attachMovie("DownArrow", "downArrow", 10);
_local1.downArrow._y = 0;
_local1.downArrow._width = _local1.itmHgt;
_local1.downArrow._height = _local1.itmHgt;
_local1.downArrow._x = _local1.proxyBox_mc._width - _local1.downArrow._width;
_local1.setEditable(_local1.editable);
_local1.container_mc._visible = _local1.opened;
_local1.highlightTop(false);
_local1.fader = _local1.superHolder.attachMovie("FBoundingBoxSymbol", "faderX", 4);
_local1.registerSkinElement(_local1.fader.boundingBox, "background");
_local1.fader._width = _local1.width;
_local1.fader._height = _local1.height;
_local1.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) {
var _local1 = this;
var _local3 = count;
_local1.rowCount = ((_local1.getLength() > _local3) ? (Math.max(_local3, 3)) : (_local3));
_local1.setSize(_local1.width);
var _local2 = _local1.getLength();
if ((_local2 - _local1.getScrollPosition()) < _local1.rowCount) {
_local1.setScrollPosition(_local2 - Math.min(_local1.rowCount, _local2));
_local1.invalidate("updateControl");
}
};
FComboBoxClass.prototype.setEditable = function (editableFlag) {
var _local1 = this;
if (!_local1.enable) {
} else {
_local1.editable = editableFlag;
if (!_local1.editable) {
_local1.onPress = _local1.pressHandler;
_local1.useHandCursor = false;
_local1.trackAsMenu = true;
_local1.attachMovie("FComboBoxItemSymbol", "fLabel_mc", 5, {controller:_local1, itemNum:-1});
_local1.fLabel_mc.onRollOver = undefined;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) + 1, _local1.itmHgt);
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.highlightTop(false);
} else {
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 5);
_local1.fLabel_txt = _local1.fLabel_mc.labelField;
_local1.fLabel_txt.type = "input";
_local1.fLabel_txt._x = 4;
_local1.fLabel_txt.onSetFocus = _local1.onLabelFocus;
_local1.fLabel_mc.setSize((_local1.width - _local1.itmHgt) - 3);
delete _local1.onPress;
_local1.fLabel_txt.onKillFocus = function () {
this._parent._parent.myOnKillFocus();
};
_local1.fLabel_mc.setLabel(_local1.value);
_local1.fLabel_txt.onChanged = function () {
this._parent._parent.findInputText();
};
_local1.downArrow.onPress = _local1.buttonPressHandler;
_local1.downArrow.useHandCursor = false;
_local1.downArrow.trackAsMenu = true;
}
}
};
FComboBoxClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
var _local2 = enabledFlag;
_local2 = (((_local2 == undefined) || (typeof(_local2) != "boolean")) ? true : (_local2));
super.setEnabled(_local2);
_local1.registerSkinElement(_local1.boundingBox_mc.boundingBox, "background");
_local1.proxyBox_mc.gotoAndStop((_local1.enable ? "enabled" : "disabled"));
_local1.downArrow.gotoAndStop((_local1.enable ? 1 : 3));
if (_local1.editable) {
_local1.fLabel_txt.type = (_local2 ? "input" : "dynamic");
_local1.fLabel_txt.selectable = _local2;
} else if (_local2) {
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
_local1.setSelectedIndex(_local1.getSelectedIndex(), false);
}
_local1.fLabel_mc.setEnabled(_local1.enable);
_local1.fLabel_txt.onSetFocus = (_local2 ? (_local1.onLabelFocus) : undefined);
};
FComboBoxClass.prototype.setSelectedIndex = function (index, flag) {
var _local1 = this;
super.setSelectedIndex(index, flag);
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, false);
} else {
_local1.value = ((flag != undefined) ? "" : (_local1.getSelectedItem().label));
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.invalidate("updateControl");
};
FComboBoxClass.prototype.setValue = function (value) {
var _local1 = this;
if (_local1.editable) {
_local1.fLabel_mc.setLabel(value);
_local1.value = value;
}
};
FComboBoxClass.prototype.pressHandler = function () {
var _local1 = this;
_local1.focusRect.removeMovieClip();
if (_local1.enable) {
if (!_local1.opened) {
_local1.onMouseUp = _local1.releaseHandler;
} else {
_local1.onMouseUp = undefined;
}
_local1.changeFlag = false;
if (!_local1.focused) {
_local1.pressFocus();
_local1.clickFilter = (_local1.editable ? false : true);
}
if (!_local1.clickFilter) {
_local1.openOrClose(!_local1.opened);
} else {
_local1.clickFilter = false;
}
}
};
FComboBoxClass.prototype.clickHandler = function (itmNum) {
var _local1 = this;
if (!_local1.focused) {
if (_local1.editable) {
_local1.fLabel_txt.onKillFocus = undefined;
}
_local1.pressFocus();
}
super.clickHandler(itmNum);
_local1.selectionHandler(itmNum);
_local1.onMouseUp = _local1.releaseHandler;
};
FComboBoxClass.prototype.highlightTop = function (flag) {
var _local1 = this;
if (!_local1.editable) {
_local1.fLabel_mc.drawItem(_local1.topLabel, flag);
}
};
FComboBoxClass.prototype.myOnSetFocus = function () {
super.myOnSetFocus();
this.fLabel_mc.highlight_mc.gotoAndStop("enabled");
this.highlightTop(true);
};
FComboBoxClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1._height + 4);
};
FComboBoxClass.prototype.myOnKillFocus = function () {
var _local1 = this;
if (Selection.getFocus().indexOf("labelField") != -1) {
} else {
super.myOnKillFocus();
delete _local1.fLabel_txt.onKeyDown;
_local1.openOrClose(false);
_local1.highlightTop(false);
}
};
FComboBoxClass.prototype.setPopUpLocation = function (mcRef) {
var _local1 = this;
var _local3 = mcRef;
_local3._x = _local1._x;
var _local2 = {x:_local1._x, y:_local1._y + _local1.proxyBox_mc._height};
_local1._parent.localToGlobal(_local2);
_local3._parent.globalToLocal(_local2);
_local3._x = _local2.x;
_local3._y = _local2.y;
if ((_local1.height + _local3._y) >= Stage.height) {
_local1.upward = true;
_local3._y = (_local2.y - _local1.height) - _local1.proxyBox_mc._height;
} else {
_local1.upward = false;
}
};
FComboBoxClass.prototype.openOrClose = function (flag) {
var _local1 = this;
var _local2 = flag;
if (_local1.getLength() == 0) {
} else {
_local1.setPopUpLocation(_local1.container_mc);
if ((_local1.lastSelected != -1) && ((_local1.lastSelected < _local1.topDisplayed) || (_local1.lastSelected > (_local1.topDisplayed + _local1.numDisplayed)))) {
super.moveSelBy(_local1.lastSelected - _local1.getSelectedIndex());
}
if (!_local2) {
(_local1.downArrow.gotoAndStop(1));// not popped
} else {
(_local1.downArrow.gotoAndStop(2));// not popped
}
if (_local2 == _local1.opened) {
} else {
_local1.highlightTop(!_local2);
_local1.fadeRate = _local1.styleTable.popUpFade.value;
if (((!_local2) || (_local1.fadeRate == undefined)) || (_local1.fadeRate == 0)) {
_local1.opened = (_local1.container_mc._visible = _local2);
} else {
_local1.setPopUpLocation(_local1.fader);
_local1.time = 0;
_local1.const = 85 / Math.sqrt(_local1.fadeRate);
_local1.fader._alpha = 85;
_local1.container_mc._visible = (_local1.fader._visible = true);
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.fader._alpha = 100 - ((_local1.const * Math.sqrt(++_local1.time)) + 15);
if (_local1.time >= _local1.fadeRate) {
_local1.fader._visible = false;
delete _local1.onEnterFrame;
_local1.opened = true;
}
};
}
}
}
};
FComboBoxClass.prototype.fireChange = function () {
var _local1 = this;
_local1.lastSelected = _local1.getSelectedIndex();
if (!_local1.editable) {
_local1.topLabel = _local1.getSelectedItem();
_local1.fLabel_mc.drawItem(_local1.topLabel, true);
} else {
_local1.value = _local1.getSelectedItem().label;
_local1.fLabel_mc.setLabel(_local1.value);
}
_local1.executeCallback();
};
FComboBoxClass.prototype.releaseHandler = function () {
var _local1 = this;
var _local2 = _root;
var _local3 = _local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse);
if (_local1.changeFlag) {
if (_local3) {
_local1.fireChange();
}
_local1.openOrClose(!_local1.opened);
} else if (_local3) {
_local1.openOrClose(false);
} else {
_local1.onMouseDown = function () {
var _local1 = this;
var _local2 = _root;
if ((!_local1.boundingBox_mc.hitTest(_local2._xmouse, _local2._ymouse)) && (!_local1.hitTest(_local2._xmouse, _local2._ymouse))) {
_local1.onMouseDown = undefined;
_local1.openOrClose(false);
}
};
}
_local1.changeFlag = false;
_local1.onMouseUp = undefined;
clearInterval(_local1.dragScrolling);
_local1.dragScrolling = undefined;
};
FComboBoxClass.prototype.moveSelBy = function (itemNum) {
var _local1 = this;
if (itemNum != 0) {
super.moveSelBy(itemNum);
if (_local1.editable) {
_local1.setValue(_local1.getSelectedItem().label);
}
if (!_local1.opened) {
if (_local1.changeFlag && (!_local1.isSelected(_local1.lastSelected))) {
_local1.fireChange();
}
}
}
};
FComboBoxClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if (!_local1.focused) {
} else {
if (_local1.editable && (Key.isDown(13))) {
_local1.setValue(_local1.fLabel_mc.getLabel());
_local1.executeCallback();
_local1.openOrClose(false);
} else if ((Key.isDown(13) || (Key.isDown(32) && (!_local1.editable))) && (_local1.opened)) {
if (_local1.getSelectedIndex() != _local1.lastSelected) {
_local1.fireChange();
}
_local1.openOrClose(false);
_local1.fLabel_txt.hscroll = 0;
}
super.myOnKeyDown();
}
};
FComboBoxClass.prototype.findInputText = function () {
if (!this.editable) {
super.findInputText();
}
};
FComboBoxClass.prototype.onLabelFocus = function () {
var _local1 = this;
_local1._parent._parent.tabFocused = false;
_local1._parent._parent.focused = true;
_local1.onKeyDown = function () {
this._parent._parent.myOnKeyDown();
};
Key.addListener(_local1);
};
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 () {
var _local1 = this;
if (_local1.hostComponent == undefined) {
_local1.hostComponent = ((_local1._parent.controller == undefined) ? (_local1._parent) : (_local1._parent.controller));
}
if (_local1.customTextStyle == undefined) {
if (_local1.hostComponent.textStyle == undefined) {
_local1.hostComponent.textStyle = new TextFormat();
}
_local1.textStyle = _local1.hostComponent.textStyle;
_local1.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var _local1 = this;
var _local2 = _local1.hostComponent.styleTable.embedFonts.value;
if (_local2 != undefined) {
_local1.labelField.embedFonts = _local2;
}
_local1.labelField.setNewTextFormat(_local1.textStyle);
_local1.labelField.text = label;
_local1.labelField._height = _local1.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
var _local2 = this;
var _local3 = enable;
_local2.enable = _local3;
var _local1 = _local2.hostComponent.styleTable[(_local3 ? "textColor" : "textDisabled")].value;
if (_local1 == undefined) {
_local1 = (_local3 ? 0 : 8947848);
}
_local2.setColor(_local1);
};
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 () {
var _local1 = this;
var _local3 = _global;
_local1.enable = true;
_local1.focused = false;
_local1.useHandCursor = false;
_local1._accImpl = new Object();
_local1._accImpl.stub = true;
_local1.styleTable = new Array();
if (_local3.globalStyleFormat == undefined) {
_local3.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_local3._focusControl = new Object();
_local3._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_local3._focusControl);
}
if (_local1._name != undefined) {
_local1._focusrect = false;
_local1.tabEnabled = true;
_local1.focusEnabled = true;
_local1.tabChildren = false;
_local1.tabFocused = true;
if (_local1.hostStyle == undefined) {
globalStyleFormat.addListener(_local1);
} else {
_local1.styleTable = _local1.hostStyle;
}
_local1.deadPreview._visible = false;
_local1.deadPreview._width = (_local1.deadPreview._height = 1);
_local1.methodTable = new Object();
_local1.keyListener = new Object();
_local1.keyListener.controller = _local1;
_local1.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
_local1.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local2 in _local1.styleFormat_prm) {
_local1.setStyleProperty(_local2, _local1.styleFormat_prm[_local2]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
var _local1 = this;
_local1.enable = ((arguments.length > 0) ? (enabledFlag) : true);
_local1.tabEnabled = (_local1.focusEnabled = enabledFlag);
if ((!_local1.enable) && (_local1.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.width = w;
_local1.height = h;
_local1.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
var _local1 = this;
_local1.handlerObj = ((obj == undefined) ? (_local1._parent) : (obj));
_local1.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
var _local1 = this;
_local1.methodTable[methodName] = true;
_local1.onEnterFrame = _local1.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
var _local1 = this;
if (_local1.methodTable.setSize) {
_local1.setSize(_local1.width, _local1.height);
} else {
_local1.cleanUINotSize();
}
_local1.methodTable = new Object();
delete _local1.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
var _local1 = this;
for (var _local2 in _local1.methodTable) {
_local1[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local1 = this;
var _local2 = y;
var _local3 = x;
var inner = _local1.styleTable.focusRectInner.value;
var outer = _local1.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
_local1.createEmptyMovieClip("focusRect", 1000);
_local1.focusRect.controller = _local1;
_local1.focusRect.lineStyle(1, outer);
_local1.focusRect.moveTo(_local3, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2);
_local1.focusRect.lineTo(_local3 + w, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2 + h);
_local1.focusRect.lineTo(_local3, _local2);
_local1.focusRect.lineStyle(1, inner);
_local1.focusRect.moveTo(_local3 + 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, _local2 + 1);
_local1.focusRect.lineTo((_local3 + w) - 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, (_local2 + h) - 1);
_local1.focusRect.lineTo(_local3 + 1, _local2 + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
var _local1 = this;
_local1.tabFocused = false;
_local1.focusRect.removeMovieClip();
Selection.setFocus(_local1);
};
FUIComponentClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1.width + 4, _local1.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
var _local1 = this;
_local1.focused = true;
Key.addListener(_local1.keyListener);
if (_local1.tabFocused) {
_local1.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
var _local1 = this;
_local1.tabFocused = true;
_local1.focused = false;
_local1.focusRect.removeMovieClip();
Key.removeListener(_local1.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local1 = this;
var _local2 = propName;
if (value == "") {
} else {
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].useGlobal || (!global)) {
_local1.styleTable[_local2].value = value;
if (_local1.setCustomStyleProperty(_local2, value)) {
} else if (_local2 == "embedFonts") {
_local1.invalidate("setSize");
} else if (_local2.subString(0, 4) == "text") {
if (_local1.textStyle == undefined) {
_local1.textStyle = new TextFormat();
}
var textProp = _local2.subString(4, _local2.length);
_local1.textStyle[textProp] = value;
_local1.invalidate("setSize");
} else {
for (var j in _local1.styleTable[_local2].coloredMCs) {
var _local3 = new Color(_local1.styleTable[_local2].coloredMCs[j]);
if (_local1.styleTable[_local2].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local3.setTransform(myTObj);
} else {
_local3.setRGB(value);
}
}
}
_local1.styleTable[_local2].useGlobal = global;
}
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
var _local1 = this;
var _local2 = propName;
if (_local1.styleTable[_local2] == undefined) {
_local1.styleTable[_local2] = new Object();
_local1.styleTable[_local2].useGlobal = true;
}
if (_local1.styleTable[_local2].coloredMCs == undefined) {
_local1.styleTable[_local2].coloredMCs = new Object();
}
_local1.styleTable[_local2].coloredMCs[skinMCRef] = skinMCRef;
if (_local1.styleTable[_local2].value != undefined) {
var _local3 = new Color(skinMCRef);
_local3.setRGB(_local1.styleTable[_local2].value);
}
};
_global.FStyleFormat = function () {
var _local1 = arguments;
var _local2 = this;
_local2.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
_local2.listeners = new Object();
_local2.isGlobal = false;
if (_local1.length > 0) {
for (var _local3 in _local1[0]) {
_local2[_local3] = _local1[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local1 = this;
var _local2 = 0;
while (_local2 < arguments.length) {
var _local3 = arguments[_local2];
_local1.listeners[arguments[_local2]] = _local3;
for (var i in _local1) {
if (_local1.isAStyle(i)) {
_local3.updateStyleProperty(_local1, i.toString());
}
}
_local2++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
var _local1 = this;
var _local2 = component;
_local1.listeners[_local2] = undefined;
for (var prop in _local1) {
if (_local1.isAStyle(prop)) {
if (_local2.styleTable[prop].useGlobal == _local1.isGlobal) {
_local2.styleTable[prop].useGlobal = true;
var _local3 = (_local1.isGlobal ? undefined : (globalStyleFormat[prop]));
_local2.setStyleProperty(prop, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local1 = this;
var _local2 = arguments;
var count = 0;
for (var i in _local1.listeners) {
var _local3 = _local1.listeners[i];
if (_local2.length > 0) {
var j = 0;
while (j < _local2.length) {
if (_local1.isAStyle(_local2[j])) {
_local3.updateStyleProperty(_local1, _local2[j]);
}
j++;
}
} else {
for (var j in _local1) {
if (_local1.isAStyle(j)) {
_local3.updateStyleProperty(_local1, 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 ("hit");
}
}
Symbol 148 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay ("hit");
}
}
Symbol 149 Button
on (press) {
gotoAndPlay ("hit");
}
Symbol 151 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay ("hit");
}
}
Symbol 152 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay ("hit");
}
}
Symbol 153 Button
on (press) {
gotoAndPlay ("hit");
}
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 163 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay ("hit");
}
}
Symbol 164 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay ("hit");
}
}
Symbol 173 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.moneybox.money > 0) && (_root.safemodifier == 0)) {
_root.moneybox.money = 0;
} else if ((_root.moneybox.money > 0) && (_root.safemodifier == 1)) {
_root.moneybox.money = _root.moneybox.money / 2;
}
_root.textwindow.textfieldText.text = "Those gangsters capped your ass, but the paramedics recessitated you. They took your hash, weed, and cash.";
_root.openclip = 0;
_root.invisible2.gunwindow.life = 50;
_root.invisible.battle2.removeMovieClip();
}
gotoAndPlay ("shoot");
Symbol 173 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 173 MovieClip Frame 30
if (_root.invisible2.gunwindow.robbercount >= _root.luck2) {
_root.openclip = 0;
_root.invisible.battle2.removeMovieClip();
}
Symbol 174 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay ("hit");
}
}
Symbol 175 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay ("hit");
}
}
Symbol 181 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.moneybox.money > 0) && (_root.safemodifier == 0)) {
_root.money = 0;
} else if ((_root.moneybox.money > 0) && (_root.safemodifier == 1)) {
_root.moneybox.money = _root.moneybox.money / 2;
}
_root.textwindow.textfieldText.text = "Those gangsters capped your ass, but the paramedics recessitated you. They took your hash, weed, and cash.";
_root.openclip = 0;
_root.invisible2.gunwindow.life = 50;
_root.invisible.battle2.removeMovieClip();
}
gotoAndPlay ("shoot");
Symbol 181 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 181 MovieClip Frame 30
if (_root.invisible2.gunwindow.robbercount >= _root.luck2) {
_root.openclip = 0;
_root.invisible.battle2.removeMovieClip();
}
Symbol 184 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 189 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay ("hit");
}
}
Symbol 190 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay ("hit");
}
}
Symbol 196 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.moneybox.money > 0) && (_root.moneybox.safemodifier == 0)) {
_root.moneybox.money = 0;
} else if ((_root.moneybox.money > 0) && (_root.safemodifier == 1)) {
_root.moneybox.money = _root.moneybox.money / 2;
}
_root.textwindow.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.invisible2.gunwindow.life = 50;
_root.invisible.battle.removeMovieClip();
}
gotoAndPlay ("shoot");
Symbol 196 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 196 MovieClip Frame 37
if (_root.invisible2.gunwindow.copcount >= _root.luck3) {
_root.openclip = 0;
_root.invisible.battle.removeMovieClip();
}
Symbol 197 Button
on (press) {
if ((_root.controller.a == 1) && (_root.gunactivated == 2)) {
gotoAndPlay ("hit");
}
}
Symbol 198 Button
on (press) {
if (_root.controller.a == 1) {
gotoAndPlay ("hit");
}
}
Symbol 205 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.moneybox.money > 0) && (_root.safemodifier == 0)) {
_root.moneybox.money = 0;
} else if ((_root.moneybox.money > 0) && (_root.safemodifier == 1)) {
_root.moneybox.money = _root.moneybox.money / 2;
}
_root.textwindow.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.invisible2.gunwindow.life = 50;
_root.invisible.battle.removeMovieClip();
}
gotoAndPlay ("shoot");
Symbol 205 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 205 MovieClip Frame 35
if (_root.invisible2.gunwindow.copcount >= _root.luck3) {
_root.openclip = 0;
_root.invisible.battle.removeMovieClip();
}
Symbol 208 Button
on (press) {
startDrag (drag);
}
on (release) {
stopDrag();
}
Symbol 218 MovieClip Frame 1
stop();
_root.ammunition = 8;
Symbol 218 MovieClip Frame 2
_root.ammunition = 7;
Symbol 218 MovieClip Frame 3
_root.ammunition = 6;
Symbol 218 MovieClip Frame 4
_root.ammunition = 5;
Symbol 218 MovieClip Frame 5
_root.ammunition = 4;
Symbol 218 MovieClip Frame 6
_root.ammunition = 3;
Symbol 218 MovieClip Frame 7
_root.ammunition = 2;
Symbol 218 MovieClip Frame 8
_root.ammunition = 1;
Symbol 218 MovieClip Frame 9
play();
_root.ammunition = 0;
Symbol 218 MovieClip Frame 12
stop();
if (_root.clips != 0) {
gotoAndStop ("reload");
_root.clips = _root.clips - 1;
} else if (_root.clips == 0) {
gotoAndPlay ("noammo");
}
Symbol 225 Button
on (release) {
_root.controller.a = 0;
}
Symbol 229 Button
on (release) {
if (_root.openclip == 0) {
_root.invisible.attachMovie("shootingrange1id", "shootingrange1", 1);
_root.controller.a = 1;
_root.openclip = 1;
}
}
Symbol 233 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.textwindow.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.textwindow.textfieldText.text = "Who are you surrendering to, yourself? You're crazy man, i like you. You're crazy...";
}
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 2
stop();
Symbol 238 MovieClip Frame 3
stop();
Symbol 240 Button
on (release) {
if (((_root.gunmodifier == 1) && (_root.shotgunmodifier == 1)) && (_root.grenademodifier == 1)) {
if ((_root.gunmodifier == 1) && (_root.gunactivated == 3)) {
_root.textwindow.textfieldText.text = "gun";
_root.invisible2.gunwindow.weaponswitch.gotoAndStop(1);
_root.invisible2.gunwindow.ammoattach.ammo2.removeMovieClip();
_root.invisible2.gunwindow.ammoattach.ammo3.removeMovieClip();
_root.invisible2.gunwindow.clips2.removeTextField();
_root.invisible2.gunwindow.createTextField("clips", 1, 7, 6, 20, 18);
_root.invisible2.gunwindow.clips.border = false;
_root.invisible2.gunwindow.clips.selectable = false;
_root.invisible2.gunwindow.clips.textColor = 16777215 /* 0xFFFFFF */;
_root.invisible2.gunwindow.clips.variable = "_root.clips";
_root.gunactivated = 1;
} else if ((_root.shotgunmodifier == 1) && (_root.gunactivated == 1)) {
_root.textwindow.textfieldText.text = "shotgun";
_root.invisible2.gunwindow.weaponswitch.gotoAndStop(2);
_root.invisible2.gunwindow.ammoattach.ammo3.removeMovieClip();
_root.invisible2.gunwindow.ammoattach.attachMovie("ammo2id", "ammo2", 1);
_root.invisible2.gunwindow.clips.removeTextField();
_root.invisible2.gunwindow.createTextField("clips2", 1, 7, 6, 20, 18);
_root.invisible2.gunwindow.clips2.border = false;
_root.invisible2.gunwindow.clips2.selectable = false;
_root.invisible2.gunwindow.clips2.textColor = 16777215 /* 0xFFFFFF */;
_root.invisible2.gunwindow.clips2.variable = "_root.clips2";
_root.gunactivated = 2;
} else if ((_root.grenademodifier == 1) && (_root.gunactivated == 2)) {
_root.textwindow.textfieldText.text = "grenade";
_root.invisible2.gunwindow.weaponswitch.gotoAndStop(3);
_root.invisible2.gunwindow.ammoattach.ammo2.removeMovieClip();
_root.invisible2.gunwindow.ammoattach.attachMovie("ammo3id", "ammo3", 1);
_root.invisible2.gunwindow.clips2.removeTextField();
_root.invisible2.gunwindow.createTextField("clips3", 1, 7, 6, 20, 18);
_root.invisible2.gunwindow.clips3.border = false;
_root.invisible2.gunwindow.clips3.selectable = false;
_root.invisible2.gunwindow.clips3.textColor = 16777215 /* 0xFFFFFF */;
_root.invisible2.gunwindow.clips3.variable = "_root.clips3";
_root.gunactivated = 3;
}
if ((_root.controller.a == 0) && (_root.openclip == 1)) {
_root.controller.a = 1;
}
} else if (((_root.gunmodifier == 1) && (_root.shotgunmodifier == 1)) && (_root.grenademodifier == 0)) {
if ((_root.gunmodifier == 1) && (_root.gunactivated == 2)) {
_root.textwindow.textfieldText.text = "gun";
_root.invisible2.gunwindow.weaponswitch.gotoAndStop(1);
_root.invisible2.gunwindow.ammoattach.ammo2.removeMovieClip();
_root.invisible2.gunwindow.clips2.removeTextField();
_root.invisible2.gunwindow.createTextField("clips", 1, 7, 6, 20, 18);
_root.invisible2.gunwindow.clips.border = false;
_root.invisible2.gunwindow.clips.selectable = false;
_root.invisible2.gunwindow.clips.textColor = 16777215 /* 0xFFFFFF */;
_root.invisible2.gunwindow.clips.variable = "_root.clips";
_root.gunactivated = 1;
} else if ((_root.shotgunmodifier == 1) && (_root.gunactivated == 1)) {
_root.textwindow.textfieldText.text = "shotgun";
_root.invisible2.gunwindow.weaponswitch.gotoAndStop(2);
_root.invisible2.gunwindow.ammoattach.ammo3.removeMovieClip();
_root.invisible2.gunwindow.ammoattach.attachMovie("ammo2id", "ammo2", 1);
_root.invisible2.gunwindow.clips.removeTextField();
_root.invisible2.gunwindow.createTextField("clips2", 1, 7, 6, 20, 18);
_root.invisible2.gunwindow.clips2.border = false;
_root.invisible2.gunwindow.clips2.selectable = false;
_root.invisible2.gunwindow.clips2.textColor = 16777215 /* 0xFFFFFF */;
_root.invisible2.gunwindow.clips2.variable = "_root.clips2";
_root.gunactivated = 2;
}
}
}
Symbol 242 MovieClip [gunwindowid] Frame 1
life = 100;
copcount = 0;
robbercount = 0;
bodycount = 0;
Symbol 249 MovieClip [ammo2id] Frame 1
stop();
_root.ammunition2 = 5;
Symbol 249 MovieClip [ammo2id] Frame 2
_root.ammunition2 = 4;
Symbol 249 MovieClip [ammo2id] Frame 3
_root.ammunition2 = 3;
Symbol 249 MovieClip [ammo2id] Frame 4
_root.ammunition2 = 2;
Symbol 249 MovieClip [ammo2id] Frame 5
_root.ammunition2 = 1;
Symbol 249 MovieClip [ammo2id] Frame 6
play();
_root.ammunition2 = 0;
Symbol 249 MovieClip [ammo2id] Frame 9
stop();
if (_root.clips2 != 0) {
gotoAndStop ("reload");
_root.clips2 = _root.clips2 - 1;
} else if (_root.clips2 == 0) {
gotoAndPlay ("noammo");
}
Symbol 257 MovieClip Frame 1
stop();
Symbol 257 MovieClip Frame 12
if (_parent.casinoluck > 4) {
_root.moneybox.money = _root.moneybox.money + 0;
_root.itemwindow.cashwon = _root.itemwindow.cashwon + 0;
} else if (_parent.casinoluck == 0) {
_root.moneybox.money = _root.moneybox.money + 1;
_root.itemwindow.cashwon = _root.itemwindow.cashwon + 1;
} else if (_parent.casinoluck == 2) {
_root.moneybox.money = _root.moneybox.money + 2;
_root.itemwindow.cashwon = _root.itemwindow.cashwon + 2;
} else if (_parent.casinoluck == 3) {
_root.moneybox.money = _root.moneybox.money + 1;
_root.itemwindow.cashwon = _root.itemwindow.cashwon + 1;
} else if (_parent.casinoluck == 4) {
_root.moneybox.money = _root.moneybox.money + 5;
_root.itemwindow.cashwon = _root.itemwindow.cashwon + 5;
} else if (_parent.casinoluck == 1) {
_root.moneybox.money = _root.moneybox.money + 10;
_root.itemwindow.cashwon = _root.itemwindow.cashwon + 10;
}
Symbol 260 Button
on (press) {
if (_root.moneybox.money >= 1) {
_root.moneybox.money = _root.moneybox.money - 1;
_root.itemwindow.cashwon = _root.itemwindow.cashwon - 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 262 Button
on (release) {
_root.openclip = 0;
_root.invisible.casinoclip.removeMovieClip();
}
Symbol 268 Button
on (release) {
if ((_root.moneybox.money >= 1) && (racing == 0)) {
bet = bet + 1;
_root.moneybox.money = _root.moneybox.money - 1;
_root.itemwindow.cashwon = _root.itemwindow.cashwon - 1;
}
}
Symbol 271 Button
on (release) {
if ((_root.moneybox.money >= 100) && (racing == 0)) {
bet = bet + 100;
_root.moneybox.money = _root.moneybox.money - 100;
_root.itemwindow.cashwon = _root.itemwindow.cashwon - 100;
}
}
Symbol 274 Button
on (release) {
if ((_root.moneybox.money >= 10) && (racing == 0)) {
bet = bet + 10;
_root.moneybox.money = _root.moneybox.money - 10;
_root.itemwindow.cashwon = _root.itemwindow.cashwon - 10;
}
}
Symbol 281 Button
on (release) {
if (racing == 0) {
_root.moneybox.money = _root.moneybox.money + bet;
_root.itemwindow.cashwon = _root.itemwindow.cashwon + bet;
bet = 0;
}
}
Symbol 282 Button
on (release) {
_root.openclip = 0;
_root.invisible.dograceclip.removeMovieClip();
}
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 29
stop();
_parent.racenumber = _parent.racenumber + 1;
if (_parent.mybet == 1) {
_root.moneybox.money = _root.moneybox.money + (_parent.bet * 4);
_root.itemwindow.cashwon = _root.itemwindow.cashwon + (_parent.bet * 4);
_parent.bet = 0;
}
if (_parent.racenumber == 10) {
_root.openclip = 0;
_root.raceday = 1;
_root.textwindow.textfieldText.text = "No more races today.";
_root.invisible.dograceclip.removeMovieClip();
}
Symbol 284 MovieClip Frame 59
stop();
_parent.bet = 0;
_parent.racing = 0;
Symbol 286 MovieClip Frame 1
stop();
Symbol 286 MovieClip Frame 29
stop();
_parent.racenumber = _parent.racenumber + 1;
if (_parent.mybet == 4) {
_root.moneybox.money = _root.moneybox.money + (_parent.bet * 4);
_root.itemwindow.cashwon = _root.itemwindow.cashwon + (_parent.bet * 4);
_parent.bet = 0;
}
if (_parent.racenumber == 10) {
_root.openclip = 0;
_root.raceday = 1;
_root.textwindow.textfieldText.text = "No more races today.";
_root.invisible.dograceclip.removeMovieClip();
}
Symbol 286 MovieClip Frame 59
stop();
_parent.bet = 0;
_parent.racing = 0;
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 29
stop();
_parent.racenumber = _parent.racenumber + 1;
if (_parent.mybet == 2) {
_root.moneybox.money = _root.moneybox.money + (_parent.bet * 4);
_root.itemwindow.cashwon = _root.itemwindow.cashwon + (_parent.bet * 4);
_parent.bet = 0;
}
if (_parent.racenumber == 10) {
_root.openclip = 0;
_root.raceday = 1;
_root.textwindow.textfieldText.text = "No more races today.";
_root.invisible.dograceclip.removeMovieClip();
}
Symbol 288 MovieClip Frame 59
stop();
_parent.bet = 0;
_parent.racing = 0;
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 29
stop();
_parent.racenumber = _parent.racenumber + 1;
if (_parent.mybet == 3) {
_root.moneybox.money = _root.moneybox.money + (_parent.bet * 4);
_root.itemwindow.cashwon = _root.itemwindow.cashwon + (_parent.bet * 4);
_parent.bet = 0;
}
if (_parent.racenumber == 10) {
_root.openclip = 0;
_root.raceday = 1;
_root.textwindow.textfieldText.text = "No more races today.";
_root.invisible.dograceclip.removeMovieClip();
}
Symbol 290 MovieClip Frame 59
stop();
_parent.bet = 0;
_parent.racing = 0;
Symbol 293 Button
on (release) {
if (racing == 0) {
mybet = 1;
dogwin = random(4);
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 296 Button
on (release) {
if (racing == 0) {
mybet = 2;
dogwin = random(4);
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 299 Button
on (release) {
if (racing == 0) {
mybet = 4;
dogwin = random(4);
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 302 Button
on (release) {
if (racing == 0) {
mybet = 3;
dogwin = random(4);
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 308 MovieClip [dograceclipid] Frame 1
racing = 0;
racenumber = 0;
if (bet == null) {
bet = 0;
}
Symbol 327 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 () {
var _local1 = this;
if (_local1.initialState == undefined) {
_local1.selected = false;
} else {
_local1.selected = _local1.initialState;
}
super.setSize(_local1._width, _local1._height);
_local1.boundingBox_mc.unloadMovie();
_local1.boundingBox_mc._width = 0;
_local1.boundingBox_mc._height = 0;
_local1.attachMovie("frb_hitArea", "frb_hitArea_mc", 1);
_local1.attachMovie("frb_states", "frb_states_mc", 2);
_local1.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
_local1._xscale = 100;
_local1._yscale = 100;
_local1.setSize(_local1.width, _local1.height);
_local1.setChangeHandler(_local1.changeHandler);
if (_local1.label != undefined) {
_local1.setLabel(_local1.label);
}
if (_local1.initialState == undefined) {
_local1.setValue(false);
} else {
_local1.setValue(_local1.initialState);
}
if (_local1.data == "") {
_local1.data = undefined;
} else {
_local1.setData(_local1.data);
}
_local1.addToRadioGroup();
_local1.ROLE_SYSTEM_RADIOBUTTON = 45;
_local1.STATE_SYSTEM_SELECTED = 16;
_local1.EVENT_OBJECT_STATECHANGE = 32778;
_local1.EVENT_OBJECT_NAMECHANGE = 32780;
_local1._accImpl.master = _local1;
_local1._accImpl.stub = false;
_local1._accImpl.get_accRole = _local1.get_accRole;
_local1._accImpl.get_accName = _local1.get_accName;
_local1._accImpl.get_accState = _local1.get_accState;
_local1._accImpl.get_accDefaultAction = _local1.get_accDefaultAction;
_local1._accImpl.accDoDefaultAction = _local1.accDoDefaultAction;
};
FRadioButtonClass.prototype.setHitArea = function (w, h) {
var _local2 = this;
var _local1 = _local2.frb_hitArea_mc;
_local2.hitArea = _local1;
if (_local2.frb_states_mc._width > w) {
_local1._width = _local2.frb_states_mc._width;
} else {
_local1._width = w;
}
_local1._visible = false;
if (arguments.length > 1) {
_local1._height = h;
}
};
FRadioButtonClass.prototype.txtFormat = function (pos) {
var _local1 = this;
var _local2 = _local1.textStyle;
var _local3 = _local1.styleTable;
_local2.align = ((_local3.textAlign.value == undefined) ? ((_local2.align = pos)) : undefined);
_local2.leftMargin = ((_local3.textLeftMargin.value == undefined) ? ((_local2.leftMargin = 0)) : undefined);
_local2.rightMargin = ((_local3.textRightMargin.value == undefined) ? ((_local2.rightMargin = 0)) : undefined);
if (_local1.flabel_mc._height > _local1.height) {
super.setSize(_local1.width, _local1.flabel_mc._height);
} else {
super.setSize(_local1.width, _local1.height);
}
_local1.setEnabled(_local1.enable);
};
FRadioButtonClass.prototype.setSize = function (w, h) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.setLabelPlacement(_local1.labelPlacement);
if (_local1.frb_states_mc._height < _local1.flabel_mc.labelField._height) {
super.setSize(w, _local1.flabel_mc.labelField._height);
}
_local1.setHitArea(_local1.width, _local1.height);
_local1.setLabelPlacement(_local1.labelPlacement);
};
FRadioButtonClass.prototype.setLabelPlacement = function (pos) {
var _local1 = this;
_local1.setLabel(_local1.getLabel());
_local1.txtFormat(pos);
var halfLabelH = (_local1.fLabel_mc._height / 2);
var halfFrameH = (_local1.frb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var radioWidth = _local1.frb_states_mc._width;
var _local2 = _local1.frb_states_mc;
var label = _local1.fLabel_mc;
var _local3 = _local1.width - _local2._width;
if (_local2._width > _local1.width) {
_local3 = 0;
} else {
_local3 = _local1.width - _local2._width;
}
_local1.fLabel_mc.setSize(_local3);
if ((pos == "right") || (pos == undefined)) {
_local1.labelPlacement = "right";
_local1.frb_states_mc._x = 0;
_local1.fLabel_mc._x = radioWidth;
_local1.txtFormat("left");
} else if (pos == "left") {
_local1.labelPlacement = "left";
_local1.fLabel_mc._x = 0;
_local1.frb_states_mc._x = _local1.width - radioWidth;
_local1.txtFormat("right");
}
_local1.fLabel_mc._y = vertCenter;
_local1.frb_hitArea_mc._y = vertCenter;
_local1.setLabel(_local1.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 _local1 = this;
var _local2 = 0;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
if (_local1._parent[_local1.groupName].radioInstances[_local2] == _local1) {
delete _local1._parent[_local1.groupName].radioInstances[_local2];
}
_local2++;
}
_local1.groupName = groupName;
_local1.addToRadioGroup();
};
FRadioButtonClass.prototype.addToRadioGroup = function () {
var _local1 = this;
if (_local1._parent[_local1.groupName] == undefined) {
_local1._parent[_local1.groupName] = new FRadioButtonGroupClass();
}
_local1._parent[_local1.groupName].addRadioInstance(_local1);
};
FRadioButtonClass.prototype.setValue = function (selected) {
var _local1 = this;
var _local2 = selected;
if (_local2 || (_local2 == undefined)) {
_local1.setState(true);
_local1.focusRect.removeMovieClip();
_local1.executeCallBack();
} else if (_local2 == false) {
_local1.setState(false);
}
};
FRadioButtonClass.prototype.setTabState = function (selected) {
var _local1 = this;
Selection.setFocus(_local1);
_local1.setState(selected);
_local1.drawFocusRect();
_local1.executeCallBack();
};
FRadioButtonClass.prototype.setState = function (selected) {
var _local1 = this;
var _local2 = selected;
if (_local2 || (_local2 == undefined)) {
_local1.tabEnabled = true;
for (var _local3 in _local1._parent) {
if ((_local1 != _local1._parent[_local3]) && (_local1._parent[_local3].groupName == _local1.groupName)) {
_local1._parent[_local3].setState(false);
_local1._parent[_local3].tabEnabled = false;
}
}
}
if (_local1.enable) {
_local1.flabel_mc.setEnabled(true);
if (_local2 || (_local2 == undefined)) {
_local1.frb_states_mc.gotoAndStop("selectedEnabled");
_local1.enabled = false;
_local1.selected = true;
_local1.tabEnabled = true;
_local1.tabFocused = true;
} else {
_local1.frb_states_mc.gotoAndStop("unselectedEnabled");
_local1.enabled = true;
_local1.selected = false;
_local1.tabEnabled = false;
var enabTrue = _local1._parent[_local1.groupName].getEnabled();
var noneSelect = (_local1._parent[_local1.groupName].getValue() == undefined);
if (enabTrue && (noneSelect)) {
_local1._parent[_local1.groupName].radioInstances[0].tabEnabled = true;
}
}
} else {
_local1.flabel_mc.setEnabled(false);
if (_local2 || (_local2 == undefined)) {
_local1.frb_states_mc.gotoAndStop("selectedDisabled");
_local1.enabled = false;
_local1.selected = true;
_local1.tabEnabled = false;
} else {
_local1.frb_states_mc.gotoAndStop("unselectedDisabled");
_local1.enabled = false;
_local1.selected = false;
_local1.tabEnabled = false;
}
}
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.EVENT_OBJECT_STATECHANGE, true);
}
};
FRadioButtonClass.prototype.getValue = function () {
var _local1 = this;
if (_local1.selected) {
if ((_local1.data == "") || (_local1.data == undefined)) {
return(_local1.getLabel());
}
return(_local1.data);
}
return(undefined);
};
FRadioButtonClass.prototype.setEnabled = function (enable) {
var _local1 = this;
if ((enable == true) || (enable == undefined)) {
_local1.enable = true;
super.setEnabled(true);
} else {
_local1.enable = false;
super.setEnabled(false);
}
_local1.setState(_local1.selected);
var cgn = (_local1._parent[_local1.groupName].getEnabled() == undefined);
var _local3 = _local1._parent[_local1.groupName].radioInstances[0].getEnabled() == false;
if (cgn && (_local3)) {
var _local2 = 0;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
if (_local1._parent[_local1.groupName].radioInstances[_local2].getEnabled() == true) {
_local1._parent[_local1.groupName].radioInstances[_local2].tabEnabled = true;
return;
}
_local2++;
}
}
};
FRadioButtonClass.prototype.getEnabled = function () {
return(this.enable);
};
FRadioButtonClass.prototype.setLabel = function (label) {
var _local1 = this;
_local1.fLabel_mc.setLabel(label);
_local1.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(_local1, 0, _local1.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 () {
var _local1 = this;
_local1.frb_states_mc.gotoAndStop("unselectedDisabled");
_local1.setValue(!_local1.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 () {
var _local1 = this;
_local1.handlerObj[_local1.changeHandler](_local1._parent[_local1.groupName]);
};
FRadioButtonGroupClass.prototype.addRadioInstance = function (instance) {
this.radioInstances.push(instance);
this.radioInstances[0].tabEnabled = true;
};
FRadioButtonGroupClass.prototype.setEnabled = function (enableFlag) {
var _local2 = this;
var _local3 = enableFlag;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setEnabled(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getEnabled = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].getEnabled() != _local2.radioInstances[0].getEnabled()) {
return(undefined);
}
_local1++;
}
return(_local2.radioInstances[0].getEnabled());
return(undefined);
};
FRadioButtonGroupClass.prototype.setChangeHandler = function (changeHandler, obj) {
var _local2 = this;
var _local3 = changeHandler;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setChangeHandler(_local3, obj);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getValue = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected == true) {
if ((_local2.radioInstances[_local1].data == "") || (_local2.radioInstances[_local1].data == undefined)) {
return(_local2.radioInstances[_local1].getLabel());
}
return(_local2.radioInstances[_local1].data);
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.getData = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected) {
return(_local2.radioInstances[_local1].getData());
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.getInstance = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].selected == true) {
return(_local1);
}
_local1++;
}
return(undefined);
};
FRadioButtonGroupClass.prototype.setValue = function (dataValue) {
var _local1 = this;
var _local3 = dataValue;
var _local2 = 0;
while (_local2 < _local1.radioInstances.length) {
if (_local1.radioInstances[_local2].data == _local3) {
_local1.radioInstances[_local2].setValue(true);
return;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.radioInstances.length) {
if (_local1.radioInstances[_local2].getLabel() == _local3) {
_local1.radioInstances[_local2].setValue(true);
}
_local2++;
}
};
FRadioButtonGroupClass.prototype.setSize = function (w) {
var _local2 = this;
var _local3 = w;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setSize(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.getSize = function () {
var _local2 = this;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
if (_local2.radioInstances[_local1].width >= _local3) {
_local3 = _local2.radioInstances[_local1].width;
}
_local1++;
}
return(_local3);
};
FRadioButtonGroupClass.prototype.setGroupName = function (groupName) {
var _local2 = this;
var _local3 = groupName;
_local2.oldGroupName = _local2.radioInstances[0].groupName;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].groupName = _local3;
_local2.radioInstances[_local1].addToRadioGroup();
_local1++;
}
delete _local2._parent[_local2.oldGroupName];
};
FRadioButtonGroupClass.prototype.getGroupName = function () {
return(this.radioInstances[0].groupName);
};
FRadioButtonGroupClass.prototype.setLabelPlacement = function (pos) {
var _local2 = this;
var _local3 = pos;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setLabelPlacement(_local3);
_local1++;
}
};
FRadioButtonGroupClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
var _local2 = this;
var _local3 = value;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].setStyleProperty(propName, _local3, isGlobal);
_local1++;
}
};
FRadioButtonGroupClass.prototype.addListener = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].addListener();
_local1++;
}
};
FRadioButtonGroupClass.prototype.applyChanges = function () {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].applyChanges();
_local1++;
}
};
FRadioButtonGroupClass.prototype.removeListener = function (component) {
var _local2 = this;
var _local3 = component;
var _local1 = 0;
while (_local1 < _local2.radioInstances.length) {
_local2.radioInstances[_local1].removeListener(_local3);
_local1++;
}
};
FRadioButtonClass.prototype.drawFocusRect = function () {
var _local1 = this;
_local1.drawRect(-2, -2, _local1._width + 6, _local1._height - 3);
};
FRadioButtonClass.prototype.myOnKillFocus = function () {
var _local1 = this;
Key.removeListener(_local1.keyListener);
_local1.focused = false;
_local1.focusRect.removeMovieClip();
_local1._parent[_local1.groupName].foobar = 0;
};
FRadioButtonClass.prototype.myOnKeyDown = function () {
var _local1 = this;
if ((Key.getCode() == 32) && (_local1._parent[_local1.groupName].getValue() == undefined)) {
if (_local1._parent[_local1.groupName].radioInstances[0] == _local1) {
_local1.setTabState(true);
}
}
if ((Key.getCode() == 40) && (_local1.pressOnce == undefined)) {
_local1.foobar = _local1._parent[_local1.groupName].getInstance();
var _local2 = _local1.foobar;
while (_local2 < _local1._parent[_local1.groupName].radioInstances.length) {
var _local3 = _local2 + 1;
if (_local1._parent[_local1.groupName].radioInstances[_local3].getEnabled()) {
_local1._parent[_local1.groupName].radioInstances[_local3].setTabState(true);
return;
}
_local2++;
}
}
if ((Key.getCode() == 38) && (_local1.pressOnce == undefined)) {
_local1.foobar = _local1._parent[_local1.groupName].getInstance();
var _local2 = _local1.foobar;
while (_local2 >= 0) {
var _local3 = _local2 - 1;
if (_local1._parent[_local1.groupName].radioInstances[_local3].getEnabled()) {
_local1._parent[_local1.groupName].radioInstances[_local3].setTabState(true);
return;
}
_local2--;
}
}
};
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 332 Button
on (press) {
getURL ("http://www.keytoneproductions.net/badseedms");
}
Symbol 344 Button
on (release) {
getURL ("http://www.keytoneproductions.net/badseed", "_blank");
}
Symbol 348 Button
on (release) {
_root.play();
}
Symbol 349 Button
on (release) {
getURL ("http://www.mochiland.com", "_blank");
}
Symbol 350 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(mochibar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 350 MovieClip Frame 2
gotoAndPlay (1);
Symbol 419 Button
on (release) {
textfieldText.scroll = textfieldText.scroll - 1;
scroller.prevFrame();
}
Symbol 420 Button
on (release) {
textfieldText.scroll = textfieldText.scroll + 1;
scroller.nextFrame();
}
Symbol 426 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 on the top (in game), 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. Right beneath the ''High Score'' is the field ''Custeez'' 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. Items: LOAN - A loan for $100 is issued with an interest rate of $1 per day. PAGER - $40, Increases amount of 'custeez'. Cost = $1 per day. SCANNER - $160, Lowers chances of being busted by Cops, if combined with gun a fight will occur. GUN - $200, Enables gunfights to protect yourself from Cops & Gangstaz. AMMO - $10 per clip. There are 8 rounds per clip for the Gun. L2 ARMOR - $180, decreases damage dealt by Cops & Gangstaz. BURGER - $6, Replenishes health. CD - $15, listen to music. LOAN 2 - A loan for $200 is issued with an interest rate of $2 per day. CELLULAR - $100, increases amount of custeez. Cost = $2 per day. SCALE - $140, increases weight of marijuana purchased. SHOTGUN - $350, same as gun with more of a spread (increased accuracy). SHOTGUN AMMO - $10 per clip. 5 rounds per clip. L3 ARMOR - $400, invulnerable to damage dealt by Cops & Gangstaz. BLUNT - $1 & .5 grams of chronic. Replenishes health. SAFE - $150, Keeps half of your money safe from Cops & Gangstaz. MONKEY PAW - $500, ??? FORTUNE - $25, get your fortune told. GRENADES - $100 each. Throw in between Cops or Gangstaz, kills all on screen. important: if you throw grenade directly at one of them, only that one will die.); CASINO - FREE, Make money playing slots; DOG RACE - $10, Make money betting on dog races; PROSTITUTE - $90, Replenishes health. Tips: 1.When you are not using your gun make sure it's holstered. Click the 'holster weapon button'. 2. Eric will loan you weed! 3. Click on the dealers profile to recieve more tips. 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 434 Button
on (release) {
gotoAndStop (3);
}
Symbol 443 Button
on (release) {
gotoAndPlay (5);
}
Symbol 451 Button
on (release) {
hashsell = hashsell + 1;
if (hashsell < 16) {
_root.hashmodifier = 4;
} else if (hashsell < 21) {
_root.hashmodifier = 3;
} else if (hashsell < 26) {
_root.hashmodifier = 2;
} else if (hashsell < 31) {
_root.hashmodifier = 1;
} else {
_root.hashmodifier = 0;
}
}
Symbol 452 Button
on (release) {
chronicsell = chronicsell + 1;
if (chronicsell < 11) {
_root.chronicmodifier = 4;
} else if (chronicsell < 16) {
_root.chronicmodifier = 3;
} else if (chronicsell < 21) {
_root.chronicmodifier = 2;
} else if (chronicsell < 26) {
_root.chronicmodifier = 1;
} else {
_root.chronicmodifier = 0;
}
}
Symbol 453 Button
on (release) {
bammersell = bammersell + 1;
if (bammersell < 4) {
_root.bammermodifier = 4;
} else if (bammersell < 5) {
_root.bammermodifier = 5;
} else if (bammersell < 6) {
_root.bammermodifier = 2;
} else if (bammersell < 7) {
_root.bammermodifier = 1;
} else {
_root.bammermodifier = 0;
}
}
Symbol 454 Button
on (release) {
chronicsell = chronicsell - 1;
if (chronicsell < 11) {
_root.chronicmodifier = 4;
} else if (chronicsell < 16) {
_root.chronicmodifier = 3;
} else if (chronicsell < 21) {
_root.chronicmodifier = 2;
} else if (chronicsell < 26) {
_root.chronicmodifier = 1;
} else {
_root.chronicmodifier = 0;
}
}
Symbol 455 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 456 Button
on (release) {
hashsell = hashsell - 1;
if (hashsell < 16) {
_root.hashmodifier = 4;
} else if (hashsell < 21) {
_root.hashmodifier = 3;
} else if (hashsell < 26) {
_root.hashmodifier = 2;
} else if (hashsell < 31) {
_root.hashmodifier = 1;
} else {
_root.hashmodifier = 0;
}
}
Symbol 470 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.textwindow.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Skunk") {
chronicweight = chronicweight + 1;
_root.textwindow.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "BigBud") {
chronicweight = chronicweight + 1.5;
_root.textwindow.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Purple") {
chronicweight = chronicweight + 0.5;
_root.textwindow.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Mexican") {
bammerweight = bammerweight + 3;
_root.textwindow.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Romulan") {
hashweight = hashweight + 0.5;
_root.textwindow.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "AK47") {
chronicweight = chronicweight + 2;
_root.textwindow.textfieldText.text = "**cheat enabled**";
} else if (_root.password == "Masa") {
bammerweight = bammerweight + 10;
_root.textwindow.textfieldText.text = "**cheat enabled**";
}
Symbol 471 MovieClip Frame 1
if (a == 1) {
_root.crosshair._x = _root._xmouse;
_root.crosshair._y = _root._ymouse;
}
Symbol 471 MovieClip Frame 2
gotoAndPlay ("loop");
Symbol 475 Button
on (release) {
nextFrame();
}
Symbol 476 Button
on (release) {
gotoAndStop (3);
}
Symbol 482 Button
on (release) {
if ((_root.moneybox.money > 39) && (_root.pagermodifier == 0)) {
_root.pagermodifier = 1;
_root.itemwindow.pager = _root.itemwindow.pager + 1;
_root.moneybox.money = _root.moneybox.money - 40;
_root.textwindow.textfieldText.text = "New pager! Now business will really kick in.";
}
}
Symbol 489 Button
on (release) {
if ((_root.moneybox.money > 159) && (_root.scannermodifier == 0)) {
_root.scannermodifier = 1;
_root.itemwindow.scanner = _root.itemwindow.scanner + 1;
_root.moneybox.money = _root.moneybox.money - 160;
_root.textwindow.textfieldText.text = "Scanner purchased. Now you'll have a heads up on those pesky porkers.";
}
}
Symbol 494 Button
on (release) {
if ((_root.loanmodifier == 0) && (_root.daybox.day < 320)) {
_root.moneybox.money = _root.moneybox.money + 100;
_root.loanmodifier = 1;
_root.itemwindow.loans = _root.itemwindow.loans + 1;
_root.textwindow.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.textwindow.textfieldText.text = "It's too late for a loan this year. Try back next year.";
}
}
Symbol 495 Button
on (release) {
if ((_root.moneybox.money >= 200) && (_root.gunmodifier == 0)) {
if ((_root.shotgunmodifier == 0) && (_root.grenademodifier == 0)) {
_root.invisible2.attachMovie("gunwindowid", "gunwindow", 1);
}
_root.invisible2.gunwindow.weaponswitch.gotoAndStop(1);
_root.moneybox.money = _root.moneybox.money - 200;
_root.gunmodifier = 1;
_root.itemwindow.handgun = 1;
_root.textwindow.textfieldText.text = "Congradulations on the purchase of your brand new gun!";
_root.invisible2.gunwindow.createTextField("clips", 1, 7, 6, 20, 18);
_root.invisible2.gunwindow.clips.border = false;
_root.invisible2.gunwindow.clips.selectable = false;
_root.invisible2.gunwindow.clips.textColor = 16777215 /* 0xFFFFFF */;
_root.invisible2.gunwindow.clips.variable = "_root.clips";
_root.openclip2 = 1;
_root.gunactivated = 1;
if ((_root.controller.a == 0) && (_root.openclip == 1)) {
_root.controller.a = 1;
}
}
}
Symbol 502 Button
on (release) {
if ((_root.moneybox.money > 14) && (_root.cdmodifier == 0)) {
_root.moneybox.money = _root.moneybox.money - 15;
_root.cdmodifier = 1;
_root.itemwindow.cds = _root.itemwindow.cds + 1;
_root.textwindow.textfieldText.text = "You've purchased a CD. Just click this CD again to hear the song again.";
}
}
Symbol 508 Button
on (release) {
if (_root.moneybox.money >= 10) {
_root.moneybox.money = _root.moneybox.money - 10;
_root.clips = _root.clips + 1;
_root.itemwindow.ammo1 = _root.clips;
_root.textwindow.textfieldText.text = "Gun ammo purchased.";
if ((_root.controller.a == 0) && (_root.openclip == 1)) {
_root.controller.a = 1;
}
}
}
Symbol 512 Button
on (release) {
if ((_root.moneybox.money >= 180) && (_root.armormodifier == 0)) {
_root.moneybox.money = _root.moneybox.money - 180;
_root.armormodifier = 1;
_root.itemwindow.armor = "L2";
_root.textwindow.textfieldText.text = "Level 2 body armor. Cops will have a hard time takin you down now.";
}
}
Symbol 517 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.itemwindow.burgers = _root.itemwindow.burgers + 1;
_root.textwindow.textfieldText.text = "Mmmm... A nice, healthy Super Burger.";
if (_root.invisible2.gunwindow.life > 100) {
_root.invisible2.gunwindow.life = 100;
}
}
}
Symbol 518 Button
on (release) {
gotoAndStop (1);
}
Symbol 522 Button
on (release) {
if ((_root.moneybox.money > 99) && (_root.cellmodifier == 0)) {
_root.cellmodifier = 2;
_root.itemwindow.cellphone = _root.itemwindow.cellphone + 1;
_root.moneybox.money = _root.moneybox.money - 100;
_root.textwindow.textfieldText.text = "New phone! Now business will really kick in.";
}
}
Symbol 526 Button
on (release) {
if ((_root.moneybox.money >= 140) && (_root.scalemodifier == 0)) {
_root.scalemodifier = 1;
_root.itemwindow.Scale = _root.itemwindow.Scale + 1;
_root.moneybox.money = _root.moneybox.money - 140;
_root.textwindow.textfieldText.text = "Scale purchased. No more gettin skimped!";
_root.oz = 28.5;
_root.qp = 114;
}
}
Symbol 530 Button
on (release) {
if ((_root.loan2modifier == 0) && (_root.daybox.day < 300)) {
_root.moneybox.money = _root.moneybox.money + 200;
_root.loan2modifier = 2;
_root.itemwindow.loans = _root.itemwindow.loans + 1;
_root.textwindow.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.textwindow.textfieldText.text = "It's too late for a loan this year. Try back next year.";
}
}
Symbol 532 Button
on (release) {
if (_root.moneybox.money >= 10) {
_root.moneybox.money = _root.moneybox.money - 10;
_root.clips2 = _root.clips2 + 1;
_root.itemwindow.ammo2 = _root.clips2;
_root.textwindow.textfieldText.text = "Shotgun ammo purchased.";
if ((_root.controller.a == 0) && (_root.openclip == 1)) {
_root.controller.a = 1;
}
}
}
Symbol 535 Button
on (release) {
if (((_root.moneybox.money >= 400) && (_root.armormodifier == 0)) || (_root.armormodifier == 1)) {
_root.moneybox.money = _root.moneybox.money - 400;
_root.armormodifier = 2;
_root.itemwindow.armor = "L3";
_root.textwindow.textfieldText.text = "Level 3 full body armor. Them coppers will never take you now.";
}
}
Symbol 539 Button
on (release) {
if ((_root.moneybox.money >= 1) && (_root.aaa.chronicweight >= 0.5)) {
_root.moneybox.money = _root.moneybox.money - 1;
_root.aaa.chronicweight = _root.aaa.chronicweight - 0.5;
_root.invisible2.gunwindow.life = _root.invisible2.gunwindow.life + 10;
_root.itemwindow.blunts = _root.itemwindow.blunts + 1;
_root.textwindow.textfieldText.text = "This will make you feel better.";
if (_root.invisible2.gunwindow.life > 100) {
_root.invisible2.gunwindow.life = 100;
}
}
}
Symbol 542 Button
on (release) {
if ((_root.moneybox.money > 14) && (_root.cdmodifier == 0)) {
_root.moneybox.money = _root.moneybox.money - 15;
_root.cdmodifier = 1;
_root.itemwindow.cds = _root.itemwindow.cds + 1;
_root.textwindow.textfieldText.text = "You've purchased a CD. Just click this CD again to hear the song again.";
}
}
Symbol 546 Button
on (release) {
if ((_root.moneybox.money >= 350) && (_root.shotgunmodifier == 0)) {
if ((_root.gunmodifier == 0) && (_root.grenademodifier == 0)) {
_root.invisible2.attachMovie("gunwindowid", "gunwindow", 1);
}
_root.invisible2.gunwindow.weaponswitch.gotoAndStop(2);
_root.moneybox.money = _root.moneybox.money - 350;
_root.shotgunmodifier = 1;
_root.itemwindow.shotgun = 1;
_root.textwindow.textfieldText.text = "Time to sweep the streets up a little!";
_root.invisible2.gunwindow.ammoattach.attachMovie("ammo2id", "ammo2", 1);
_root.invisible2.gunwindow.createTextField("clips2", 1, 7, 6, 20, 18);
_root.invisible2.gunwindow.clips2.border = false;
_root.invisible2.gunwindow.clips2.selectable = false;
_root.invisible2.gunwindow.clips2.textColor = 16777215 /* 0xFFFFFF */;
_root.invisible2.gunwindow.clips2.variable = "_root.clips2";
_root.openclip2 = 1;
_root.gunactivated = 2;
if ((_root.controller.a == 0) && (_root.openclip == 1)) {
_root.controller.a = 1;
}
}
}
Symbol 547 Button
on (release) {
gotoAndStop (2);
}
Symbol 551 Button
on (release) {
_root.itemwindow.fortunes = _root.itemwindow.fortunes + 1;
if (_root.moneybox.money >= 25) {
_root.moneybox.money = _root.moneybox.money - 25;
if (_root.luck > 1) {
_root.textwindow.textfieldText.text = "Beware the number that haunts your future!";
_root.createTextField("policetxt", 1, 505, 161, 30, 20);
_root.policetxt.border = false;
_root.policetxt.textColor = 13434624 /* 0xCCFF00 */;
_root.policetxt.variable = "police";
num = new TextFormat();
num.font = "arial";
num.bold = "true";
num.size = "16";
_root.policetxt.setTextFormat(num);
} else {
_root.textwindow.textfieldText.text = "Your girlfriend is cheating on you!";
}
}
}
Symbol 555 Button
on (release) {
_root.openclip = 1;
_root.invisible.attachMovie("casinoclipid", "casinoclip", 1);
_root.textwindow.textfieldText.text = "Welcome to the Big Bear Casino.";
}
Symbol 557 Button
on (release) {
if ((_root.moneybox.money > 14) && (_root.cdmodifier == 0)) {
_root.moneybox.money = _root.moneybox.money - 15;
_root.cdmodifier = 1;
_root.itemwindow.cds = _root.itemwindow.cds + 1;
_root.textwindow.textfieldText.text = "You've purchased a CD. Just click this CD again to hear the song again.";
}
}
Symbol 558 Button
on (release) {
if (_root.moneybox.money >= 90) {
_root.moneybox.money = _root.moneybox.money - 90;
_root.invisible2.gunwindow.life = _root.invisible2.gunwindow.life + 100;
_root.itemwindow.prostitutes = _root.itemwindow.prostitutes + 1;
_root.textwindow.textfieldText.text = "That was refreshing!";
if (_root.invisible2.gunwindow.life > 100) {
_root.invisible2.gunwindow.life = 100;
}
}
}
Symbol 559 Button
on (release) {
if (_root.moneybox.money >= 100) {
if (((_root.gunmodifier == 0) && (_root.grenademodifier == 0)) && (_root.shotgunmodifier == 0)) {
_root.invisible2.attachMovie("gunwindowid", "gunwindow", 1);
}
_root.invisible2.gunwindow.weaponswitch.gotoAndStop(3);
_root.moneybox.money = _root.moneybox.money - 100;
_root.grenademodifier = 1;
_root.itemwindow.grenades = _root.itemwindow.grenades + 1;
_root.clips3 = _root.clips3 + 1;
_root.textwindow.textfieldText.text = "Grenades Purchased. It's on now!";
_root.invisible2.gunwindow.ammoattach.attachMovie("ammo3id", "ammo3", 1);
_root.invisible2.gunwindow.createTextField("clips3", 1, 7, 6, 20, 18);
_root.invisible2.gunwindow.clips3.border = false;
_root.invisible2.gunwindow.clips3.selectable = false;
_root.invisible2.gunwindow.clips3.textColor = 16777215 /* 0xFFFFFF */;
_root.invisible2.gunwindow.clips3.variable = "_root.clips3";
_root.openclip2 = 1;
_root.gunactivated = 3;
if ((_root.controller.a == 0) && (_root.openclip == 1)) {
_root.controller.a = 1;
}
}
}
Symbol 563 Button
on (release) {
if ((_root.moneybox.money >= 500) && (_root.monkeymodifier == 0)) {
_root.moneybox.money = _root.moneybox.money - 500;
_root.monkeymodifier = 1;
_root.itemwindow.monkeypaw = _root.itemwindow.monkeypaw + 1;
_root.textwindow.textfieldText.text = "Your girlfriend will love this!";
}
}
Symbol 567 Button
on (release) {
if ((_root.moneybox.money >= 150) && (_root.safemodifier == 0)) {
_root.moneybox.money = _root.moneybox.money - 150;
_root.safemodifier = 1;
_root.itemwindow.safe = _root.itemwindow.safe + 1;
_root.textwindow.textfieldText.text = "Your money will be ''safe'' now.";
}
}
Symbol 570 Button
on (release) {
if (((_root.openclip == 0) && (_root.moneybox.money >= 10)) && (_root.raceday == 0)) {
_root.moneybox.money = _root.moneybox.money - 10;
_root.itemwindow.cashwon = _root.itemwindow.cashwon - 10;
_root.invisible.attachMovie("dograceclipid", "dograceclip", 1);
_root.openclip = 1;
_root.textwindow.textfieldText.text = "Place your bets.";
}
}
Symbol 571 MovieClip Frame 1
stop();
Symbol 595 Button
on (release) {
_root.raceday = 0;
_root.weekcnt = _root.weekcnt + 1;
if (_root.weekcnt > 6) {
_root.weekcnt = 0;
}
if (_root.weekcnt == 6) {
_root.monday = _root.monday + 7;
_root.tuesday = _root.tuesday + 7;
_root.wednsday = _root.wednsday + 7;
_root.thursday = _root.thursday + 7;
_root.friday = _root.friday + 7;
_root.saturday = _root.saturday + 7;
_root.sunday = _root.sunday + 7;
}
if (_root.monday == (_root.daybox.day + 1)) {
_root.daybox.weekdayText.text = "monday";
_root.daymodifier = 0;
} else if (_root.tuesday == (_root.daybox.day + 1)) {
_root.daybox.weekdayText.text = "tuesday";
_root.daymodifier = 0;
} else if (_root.wednsday == (_root.daybox.day + 1)) {
_root.daybox.weekdayText.text = "wednsday";
_root.daymodifier = 0;
} else if (_root.thursday == (_root.daybox.day + 1)) {
_root.daybox.weekdayText.text = "thursday";
_root.daymodifier = 0;
} else if (_root.friday == (_root.daybox.day + 1)) {
_root.daybox.weekdayText.text = "friday";
_root.daymodifier = 0;
} else if (_root.saturday == (_root.daybox.day + 1)) {
_root.daybox.weekdayText.text = "saturday";
_root.daymodifier = 1;
} else if (_root.sunday == (_root.daybox.day + 8)) {
_root.daybox.weekdayText.text = "sunday";
_root.daymodifier = 1;
}
_root.luck = random(5);
if (((_root.luck == 0) || (_root.luck == 1)) || (_root.luck == 2)) {
_root.ryanchronic = 300;
} else if (_root.luck == 3) {
_root.ryanchronic = 290;
} else if (_root.luck == 4) {
_root.ryanchronic = 320;
}
if ((((_root.luck == 0) || (_root.luck == 1)) || (_root.luck == 2)) || (_root.luck == 3)) {
_root.ryanhash = 400;
} else if (_root.luck == 4) {
_root.ryanhash = 390;
}
if (((_root.luck == 0) || (_root.luck == 1)) || (_root.luck == 3)) {
_root.georgechronic = 300;
} else if (_root.luck == 2) {
_root.georgechronic = 290;
} else if (_root.luck == 4) {
_root.georgechronic = 320;
}
if (((_root.luck == 4) || (_root.luck == 1)) || (_root.luck == 3)) {
_root.georgebammer = 60;
} else if (_root.luck == 2) {
_root.georgebammer = 70;
} else if (_root.luck == 0) {
_root.georgebammer = 65;
}
if (((_root.luck == 2) || (_root.luck == 1)) || (_root.luck == 3)) {
_root.samsonchronic = 1150;
} else if (_root.luck == 4) {
_root.samsonchronic = 1100;
} else if (_root.luck == 0) {
_root.samsonchronic = 1200;
}
if (((_root.aaa.bammersell == 0) || (_root.aaa.chronicsell == 0)) || (_root.aaa.hashsell == 0)) {
_root.textwindow.textfieldText.text = "WARNING!!! (Set your weed price(s).) ";
}
if (_root.daybox.day == 335) {
_root.textwindow.textfieldText.text = "WARNING!!! (1 month left.)";
}
_root.daybox.day = _root.daybox.day + 1;
_root.customer1 = ((0 + _root.hashmodifier) + _root.cellmodifier) + _root.daymodifier;
if (_root.hashmodifier == 0) {
_root.customer1 = 0;
}
_root.customer2 = (((0 + _root.chronicmodifier) + _root.pagermodifier) + _root.cellmodifier) + _root.daymodifier;
if (_root.chronicmodifier == 0) {
_root.customer2 = 0;
}
_root.customer3 = (((0 + _root.bammermodifier) + _root.pagermodifier) + _root.cellmodifier) + _root.daymodifier;
if (_root.bammermodifier == 0) {
_root.customer3 = 0;
}
_root.custeezbox.customers = (_root.customer1 + _root.customer2) + _root.customer3;
if (_root.custeezbox.customers < 0) {
_root.custeezbox.customers = 0;
}
_root.moneybox.money = (((_root.moneybox.money - _root.loanmodifier) - _root.loan2modifier) - _root.cellmodifier) - _root.pagermodifier;
if ((_root.daybox.day == _root.police) && (_root.scannermodifier == 0)) {
_root.aaa.chronicweight = 0;
_root.aaa.hashweight = 0;
_root.aaa.bammerweight = 0;
_root.textwindow.textfieldText.text = "Ouch, you got pinched by the fuzz dawg. Shoulda bought a scanner.";
} else if (((_root.daybox.day == _root.police) && (_root.scannermodifier == 1)) && (((_root.gunmodifier == 1) || (_root.shotgunmodifier == 1)) || (_root.grenademodifier == 1))) {
_root.textwindow.textfieldText.text = "Scanner: ''We have a 420 over at the Marijuana Stand, send all available units.'' Pull out your nine, pop in a clip, and let one slip..";
_root.invisible.attachMovie("battleid", "battle", 1);
_root.controller.a = 1;
_root.openclip = 1;
} else if ((_root.daybox.day == _root.police) && (_root.scannermodifier == 1)) {
if (_root.luck != 3) {
_root.textwindow.textfieldText.text = "Scanner: ''We have a 420 over at the Marijuana Stand, send all available units.'' You made a run for it and got away, this time...";
}
if (_root.luck == 3) {
_root.textwindow.textfieldText.text = "Scanner: ''We have a 420 over at the Marijuana Stand, send all available units.'' Tried to run, but they caught your ass...";
if (_root.aaa.chronicweight >= 0) {
_root.aaa.chronicweight = 0;
}
if (_root.aaa.hashweight >= 0) {
_root.aaa.hashweight = 0;
}
if (_root.aaa.bammerweight >= 0) {
_root.aaa.bammerweight = 0;
}
}
}
if ((((((_root.daybox.day == _root.robber) && (_root.gunmodifier == 0)) && (_root.shotgunmodifier == 0)) && (_root.grenademodifier == 0)) && (_root.money > 0)) && (_root.safemodifier == 0)) {
_root.moneybox.money = 0;
_root.textwindow.textfieldText.text = "They took your money, they took your rolex. You looked at the brotha said damn whats next. Shoulda been strapped!";
} else if ((((((_root.daybox.day == _root.robber) && (_root.gunmodifier == 0)) && (_root.shotgunmodifier == 0)) && (_root.grenademodifier == 0)) && (_root.money > 0)) && (_root.safemodifier == 1)) {
_root.moneybox.money = _root.moneybox.money / 2;
_root.textwindow.textfieldText.text = "They took your money, they took your rolex. You looked at the brotha said damn whats next. Lucky you had some stashed in the safe.";
} else if ((_root.daybox.day == _root.robber) && (((_root.gunmodifier == 1) || (_root.shotgunmodifier == 1)) || (_root.grenademodifier == 1))) {
_root.textwindow.textfieldText.text = "Some busters tried to grab your cash, so they got capped upon! All thanx to Smith & Wesson.";
_root.invisible.attachMovie("battle2id", "battle2", 1);
_root.controller.a = 1;
_root.openclip = 1;
} else if ((_root.daybox.day == _root.robber) && (_root.moneybox.money <= 0)) {
_root.textwindow.textfieldText.text = "Some busters tried to grab your cash but you aint got none!";
}
if (_root.aaa.hashweight > 0) {
_root.aaa.hashweight = _root.aaa.hashweight - _root.customer1;
_root.moneybox.money = _root.moneybox.money + (_root.customer1 * _root.aaa.hashsell);
}
if (_root.aaa.chronicweight > 0) {
_root.aaa.chronicweight = _root.aaa.chronicweight - _root.customer2;
_root.moneybox.money = _root.moneybox.money + (_root.customer2 * _root.aaa.chronicsell);
}
if (_root.aaa.bammerweight > 0) {
_root.aaa.bammerweight = _root.aaa.bammerweight - _root.customer3;
_root.moneybox.money = _root.moneybox.money + (_root.customer3 * _root.aaa.bammersell);
}
_root.policetxt.removeTextField();
if (_root.daybox.day == 365) {
_root.finalhighscore = _root.highscorebox.highscore;
_root.finalmoney = _root.moneybox.money;
_root.nextFrame();
}
}
Symbol 596 Button
on (release) {
_root.textwindow.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.";
_root.clips = 3;
if (_root.ammunition == null) {
_root.ammunition = 0;
}
_root.day = 1;
_root.d1 = 0;
_root.d2 = 0;
_root.d3 = 0;
_root.d4 = 0;
_root.d5 = 0;
_root.customer1 = 0;
_root.customer2 = 0;
_root.customer3 = 0;
_root.customers = 0;
_root.dealer1 = 0;
_root.dealer2 = 0;
_root.dealer3 = 0;
_root.dealer4 = 0;
_root.dealer5 = 0;
_root.money = 100;
_root.aaa.hashweight = 0;
_root.aaa.hashsell = 0;
_root.aaa.chronicweight = 0;
_root.aaa.chronicsell = 0;
_root.aaa.bammerweight = 0;
_root.aaa.bammersell = 0;
_root.oz = 28;
_root.qp = 112;
_root.cdmodifier = 0;
_root.gunmodifier = 0;
_root.loanmodifier = 0;
_root.loan2modifier = 0;
_root.scannermodifier = 0;
_root.scalemodifier = 0;
_root.cellmodifier = 0;
_root.pagermodifier = 0;
_root.police = random(365);
_root.robber = random(365);
_root.luck = random(5);
_root.luck2 = random(50);
_root.luck3 = random(50);
_root.invisible2.gunwindow.life = 100;
_root.invisible2.gunwindow.bodycount = 0;
_root.monday = 1;
_root.tuesday = 2;
_root.wednsday = 3;
_root.thursday = 4;
_root.friday = 5;
_root.saturday = 6;
_root.sunday = 7;
_root.weekdayText.text = "monday";
_root.daymodifier = 0;
_root.weekcnt = 0;
_root.policetxt.removeTextField();
_root.prevFrame();
}
Symbol 606 Button
on (release) {
_root.moneybox.money = _root.moneybox.money - 320;
_root.aaa.chronicweight = _root.aaa.chronicweight + _root.oz;
dealer1 = dealer1 + 1;
if (dealer1 == 10) {
_root.textwindow.textfieldText.text = "''You've been giving me alot of business. I gave you a few extra grams this time.'' -Eric";
_root.aaa.chronicweight = _root.aaa.chronicweight + 3;
}
}
Symbol 609 Button
on (release) {
_root.moneybox.money = _root.moneybox.money - 70;
_root.aaa.bammerweight = _root.aaa.bammerweight + _root.oz;
}
Symbol 612 Button
on (release) {
if (_root.moneybox.money > 399) {
_root.moneybox.money = _root.moneybox.money - 400;
_root.aaa.hashweight = _root.aaa.hashweight + _root.oz;
dealer5 = dealer5 + 1;
}
if (dealer5 == 10) {
_root.textwindow.textfieldText.text = "''A discount? hahahaha, you're a funny guy you know.'' -Samson";
}
}
Symbol 615 Button
on (release) {
if (_root.moneybox.money > 199) {
_root.moneybox.money = _root.moneybox.money - 200;
_root.aaa.bammerweight = _root.aaa.bammerweight + _root.qp;
dealer4 = dealer4 + 1;
}
if (dealer4 == 10) {
_root.textwindow.textfieldText.text = "''You like the stress aye pendejo. Here take this, I'm tryin to get rid of this shit.'' -Pablo (Recieved an oz of bammer.)";
_root.aaa.bammerweight = _root.aaa.bammerweight + _root.oz;
}
}
Symbol 618 Button
on (release) {
if (_root.moneybox.money > 1149) {
_root.moneybox.money = _root.moneybox.money - 1150;
_root.aaa.chronicweight = _root.aaa.chronicweight + _root.qp;
}
}
Symbol 619 Button
on (release) {
if (_root.moneybox.money >= _root.samsonchronic) {
_root.moneybox.money = _root.moneybox.money - _root.samsonchronic;
_root.aaa.chronicweight = _root.aaa.chronicweight + _root.qp;
dealer5 = dealer5 + 1;
}
if (dealer5 == 10) {
_root.textwindow.textfieldText.text = "''A discount? hahahaha, you're a funny guy you know.'' -Samson";
}
}
Symbol 620 Button
on (release) {
if (_root.moneybox.money >= _root.georgechronic) {
_root.moneybox.money = _root.moneybox.money - _root.georgechronic;
_root.aaa.chronicweight = _root.aaa.chronicweight + _root.oz;
dealer2 = dealer2 + 1;
}
if (dealer2 == 10) {
_root.textwindow.textfieldText.text = "''You're the best customer I have! I'll shoot you one for $295 today.'' -George";
_root.moneybox.money = _root.moneybox.money + 5;
}
}
Symbol 621 Button
on (release) {
if (_root.moneybox.money >= _root.georgebammer) {
_root.moneybox.money = _root.moneybox.money - _root.georgebammer;
_root.aaa.bammerweight = _root.aaa.bammerweight + _root.oz;
}
}
Symbol 622 Button
on (release) {
if (_root.moneybox.money >= _root.ryanchronic) {
_root.moneybox.money = _root.moneybox.money - _root.ryanchronic;
_root.aaa.chronicweight = _root.aaa.chronicweight + _root.oz;
dealer3 = dealer3 + 1;
}
if (dealer1 == 10) {
_root.textwindow.textfieldText.text = "''Hey try out this hash man. The custeez love it.'' -Ryno";
_root.aaa.hashweight = _root.aaa.hashweight + 3;
}
}
Symbol 623 Button
on (release) {
if (_root.moneybox.money >= _root.ryanhash) {
_root.moneybox.money = _root.moneybox.money - _root.ryanhash;
_root.aaa.hashweight = _root.aaa.hashweight + _root.oz;
}
}
Symbol 629 Button
on (release) {
d1 = d1 + 1;
if (d1 == 0) {
sounds.gotoAndPlay(6);
_root.textwindow._root.textwindow.textfieldText.text = "''I'll front you a sack anytime bro, I trust you.''";
} else if (d1 == 1) {
sounds.gotoAndPlay(2);
_root.textwindow._root.textwindow.textfieldText.text = "''-Cough-''";
} else if (d1 == 2) {
sounds.gotoAndPlay(3);
_root.textwindow._root.textwindow.textfieldText.text = "''If you buy a safe they can't get all your money.''";
} else if (d1 == 3) {
sounds.gotoAndPlay(4);
_root.textwindow.textfieldText.text = "''Don't go through George, he'll rip you off!''";
} else if (d1 >= 4) {
d1 = -1;
sounds.gotoAndPlay(5);
_root.textwindow.textfieldText.text = "''Got any papers man?''";
}
}
Symbol 630 Button
on (release) {
d2 = d2 + 1;
if (d2 == 0) {
sounds.gotoAndPlay(11);
_root.textwindow.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) {
sounds.gotoAndPlay(7);
_root.textwindow.textfieldText.text = "''Don't buy off Eric, he stole my girlfriend, he's an asshole''";
} else if (d2 == 2) {
sounds.gotoAndPlay(8);
_root.textwindow.textfieldText.text = "''If you need a qp talk to Samson.''";
} else if (d2 == 3) {
sounds.gotoAndPlay(9);
_root.textwindow.textfieldText.text = "''I usually sell grams for $15, I get more customers that way.''";
} else if (d2 >= 4) {
d2 = -1;
sounds.gotoAndPlay(10);
_root.textwindow.textfieldText.text = "''I got the white widow right now, check it.''";
}
}
Symbol 631 Button
on (release) {
d3 = d3 + 1;
if (d3 == 0) {
sounds.gotoAndPlay(21);
_root.textwindow.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) {
sounds.gotoAndPlay(17);
_root.textwindow.textfieldText.text = "''I never charge over $400 an ounce for hash.''";
} else if (d3 == 2) {
sounds.gotoAndPlay(18);
_root.textwindow.textfieldText.text = "''Peep this pineapple sativa I picked up.''";
} else if (d3 == 3) {
sounds.gotoAndPlay(19);
_root.textwindow.textfieldText.text = "''You want blonde hash, bubble hash, or honey oil?''";
} else if (d3 >= 4) {
d3 = -1;
sounds.gotoAndPlay(20);
_root.textwindow.textfieldText.text = "''You need at least 7 custeez in my opinion.''";
}
}
Symbol 632 Button
on (release) {
d4 = d4 + 1;
if (d4 == 0) {
sounds.gotoAndPlay(16);
_root.textwindow.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) {
sounds.gotoAndPlay(12);
_root.textwindow.textfieldText.text = "''Say it like this, Perdon senor. Donde esta el marijuana, por favor?''";
} else if (d4 == 2) {
sounds.gotoAndPlay(13);
_root.textwindow.textfieldText.text = "''Que pasa?''";
} else if (d4 == 3) {
sounds.gotoAndPlay(14);
_root.textwindow.textfieldText.text = "''El dinero en efectivo por favor, no credito.''";
} else if (d4 >= 4) {
d4 = -1;
sounds.gotoAndPlay(15);
_root.textwindow.textfieldText.text = "''Samson is a pinche pendejo!''";
}
}
Symbol 633 Button
on (release) {
d5 = d5 + 1;
if (d5 == 0) {
sounds.gotoAndPlay(24);
_root.textwindow.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) {
sounds.gotoAndPlay(25);
_root.textwindow.textfieldText.text = "''Call me anytime kid, you're alright.''";
} else if (d5 == 2) {
sounds.gotoAndPlay(26);
_root.textwindow.textfieldText.text = "''Watch out for that dirty wet back pablo. I don't trust that guy.''";
} else if (d5 == 3) {
sounds.gotoAndPlay(22);
_root.textwindow.textfieldText.text = "''I didn't get rich gambling at the casino, thats fo sho.''";
} else if (d5 >= 4) {
d5 = -1;
sounds.gotoAndPlay(23);
_root.textwindow.textfieldText.text = "''I'm busy right now, what is it!''";
}
}
Symbol 671 MovieClip Frame 1
stop();
Symbol 671 MovieClip Frame 2
stop();
Symbol 671 MovieClip Frame 3
stop();
Symbol 671 MovieClip Frame 4
stop();
Symbol 671 MovieClip Frame 5
stop();
Symbol 671 MovieClip Frame 6
stop();
Symbol 671 MovieClip Frame 7
stop();
Symbol 671 MovieClip Frame 8
stop();
Symbol 671 MovieClip Frame 9
stop();
Symbol 671 MovieClip Frame 10
stop();
Symbol 671 MovieClip Frame 11
stop();
Symbol 671 MovieClip Frame 12
stop();
Symbol 671 MovieClip Frame 13
stop();
Symbol 671 MovieClip Frame 14
stop();
Symbol 671 MovieClip Frame 15
stop();
Symbol 671 MovieClip Frame 16
stop();
Symbol 671 MovieClip Frame 17
stop();
Symbol 671 MovieClip Frame 18
stop();
Symbol 671 MovieClip Frame 19
stop();
Symbol 671 MovieClip Frame 20
stop();
Symbol 671 MovieClip Frame 21
stop();
Symbol 671 MovieClip Frame 22
stop();
Symbol 671 MovieClip Frame 23
stop();
Symbol 671 MovieClip Frame 24
stop();
Symbol 671 MovieClip Frame 25
stop();
Symbol 671 MovieClip Frame 26
stop();
Symbol 679 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. Right beneath the ''High Score'' is the field ''Custeez'' 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. Items: LOAN - A loan for $100 is issued with an interest rate of $1 per day. PAGER - $40, Increases amount of 'custeez'. Cost = $1 per day. SCANNER - $160, Lowers chances of being busted by Cops, if combined with gun a fight will occur. GUN - $200, Enables gunfights to protect yourself from Cops & Gangstaz. AMMO - $10 per clip. There are 8 rounds per clip for the Gun. L2 ARMOR - $180, decreases damage dealt by Cops & Gangstaz. BURGER - $6, Replenishes health. CD - $15, listen to music. LOAN 2 - A loan for $200 is issued with an interest rate of $2 per day. CELLULAR - $100, increases amount of custeez. Cost = $2 per day. SCALE - $140, increases weight of marijuana purchased. SHOTGUN - $350, same as gun with more of a spread (increased accuracy). SHOTGUN AMMO - $10 per clip. 5 rounds per clip. L3 ARMOR - $400, invulnerable to damage dealt by Cops & Gangstaz. BLUNT - $1 & .5 grams of chronic. Replenishes health. SAFE - $150, Keeps half of your money safe from Cops & Gangstaz. MONKEY PAW - $500, ??? FORTUNE - $25, get your fortune told. GRENADES - $100 each. Throw in between Cops or Gangstaz, kills all on screen. important: if you throw grenade directly at one of them, only that one will die.); CASINO - FREE, Make money playing slots; DOG RACE - $10, Make money betting on dog races; PROSTITUTE - $90, Replenishes health. Tips: 1.When you are not using your gun make sure it's holstered. Click the 'holster weapon button'. 2. Eric will loan you weed! 3. Click on the dealers profile to recieve more tips. 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 684 Button
on (press) {
globalsound = new Sound();
globalsound.stop();
}
Symbol 687 MovieClip Frame 1
stop();
Symbol 687 MovieClip Frame 2
stop();
Symbol 687 MovieClip Frame 3
stop();
Symbol 687 MovieClip Frame 4
stop();
Symbol 687 MovieClip Frame 5
stop();
Symbol 691 Button
on (release) {
nextFrame();
nextFrame();
scroller.nextFrame();
scroller.nextFrame();
scroller.nextFrame();
}
Symbol 692 Button
on (release) {
nextFrame();
scroller.nextFrame();
scroller.nextFrame();
}
Symbol 707 Button
on (release) {
prevFrame();
scroller.prevFrame();
scroller.prevFrame();
}
Symbol 708 Button
on (release) {
nextFrame();
scroller.nextFrame();
}
Symbol 722 Button
on (release) {
prevFrame();
scroller.prevFrame();
}
Symbol 723 Button
on (release) {
prevFrame();
prevFrame();
scroller.prevFrame();
scroller.prevFrame();
scroller.prevFrame();
}
Symbol 734 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 2
stop();
Symbol 734 MovieClip Frame 3
stop();
Symbol 741 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 3
stop();
Symbol 741 MovieClip Frame 5
stop();
Symbol 741 MovieClip Frame 7
stop();
Symbol 741 MovieClip Frame 9
stop();
Symbol 741 MovieClip Frame 11
stop();
Symbol 741 MovieClip Frame 13
gotoAndStop ("off");
Symbol 743 MovieClip Frame 1
stop();
Symbol 743 MovieClip Frame 3
stop();
Symbol 743 MovieClip Frame 5
stop();
Symbol 743 MovieClip Frame 7
stop();
Symbol 743 MovieClip Frame 9
stop();
Symbol 743 MovieClip Frame 11
stop();
Symbol 743 MovieClip Frame 13
gotoAndStop ("off");
Symbol 745 MovieClip Frame 1
stop();
Symbol 745 MovieClip Frame 3
stop();
Symbol 745 MovieClip Frame 5
stop();
Symbol 745 MovieClip Frame 7
stop();
Symbol 745 MovieClip Frame 9
stop();
Symbol 745 MovieClip Frame 11
stop();
Symbol 745 MovieClip Frame 13
gotoAndStop ("off");
Symbol 747 MovieClip Frame 1
hit._rotation = hit._rotation + 20;
Symbol 747 MovieClip Frame 2
gotoAndPlay ("loop");
Symbol 756 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 (2);
}
Symbol 762 Button
on (press) {
getURL ("http://www.keytoneproductions.net/badseed", _blank);
}
Symbol 767 Button
on (release) {
getURL ("http://www.keytoneproductions.net/parkstyle");
}
Symbol 768 Button
on (release) {
getURL ("http://www.keytoneproductions.net/badseedms", _blank);
}
Symbol 776 Button
on (release) {
play();
}
Symbol 788 Button
on (release) {
gotoAndPlay (2);
}