Frame 2
Object.prototype.inherits = function (superClass, argObj) {
this.tmp_Base = superClass;
this.tmp_Base(argObj);
delete this.tmp_Base;
};
ASSetPropFlags(Object.prototype, ["inherits"], 1);
Object.locateClass = function (className) {
if (typeof(className) == "string") {
if (typeof(this[className]) == "function") {
return(this[className]);
}
if (typeof(Object.classPath[className]) == "function") {
return(Object.classPath[className]);
}
if (typeof(_root[className]) == "function") {
return(_root[className]);
}
if (typeof(_level0[className]) == "function") {
return(_level0[className]);
}
if (typeof(_parent[className]) == "function") {
return(_parent[className]);
}
return(null);
}
if (typeof(className) == "function") {
return(className);
}
return(null);
};
MovieClip.prototype.mcExtends = function (superClass, argObj) {
if (typeof(superClass) == "string") {
superClass = Object.locateClass(superClass);
}
if (typeof(superClass) == "function") {
this.__proto__ = superClass.prototype;
if (this.getBytesTotal() == undefined) {
var o = this.__proto__;
var p = o.__proto__.__proto__;
while (p != null) {
p = p.__proto__;
o = o.__proto__;
}
o.__proto__ = MovieClip.prototype;
}
this.inherits(superClass, argObj);
} else {
trace("mcExtends: Incorrect superClass type or path - " + typeof(superClass));
}
};
ASSetPropFlags(MovieClip.prototype, ["mcExtends"], 1);
MovieClip.prototype.showProps = function () {
for (var p in this) {
if (typeof(this[p]) == "function") {
trace(p + "()");
} else {
trace((p + ":") + this[p]);
}
}
};
ASSetPropFlags(MovieClip.prototype, ["showProps"], 1);
Object.classPath = this;
_root.gameData = new Array();
_root.gameData.submitResultsURL = "jtgames.asp";
_root.gameData.getResultsURL = "jtresults.asp";
_root.gameData.postMethod = "GET";
_root.gameData.submitDebug = 0;
_root.gameData.gameID = 2;
_root.gameData.addPropertyFrequency = 2000;
_root.gameData.noPropertyspaces = 2;
_root.gameData.startingPricePercentage = 25;
_root.gameData.appearTime = 10000;
_root.gameData.secondsAvailable = 1000;
_root.gameData.startingCash = 100000 /* 0x0186A0 */;
_root.gameData.updateFrequency = 6;
_root.gameData.appearAnimationLength = 1000;
_root.gameData.noInstructionScreens = 4;
_root.gameData.maxFluctuationFrequency = 20000;
_root.gameData.minFluctuationFrequency = 13000;
_root.gameData.maxPriceMultiple = 4;
_root.gameData.minPriceMultiple = 2;
_root.gameData.averageStartingPrices = new Array();
_root.gameData.averageStartingPrices[10] = 30000;
_root.gameData.averageStartingPrices[20] = 35000;
_root.gameData.averageStartingPrices[40] = 100000 /* 0x0186A0 */;
_root.gameData.averageStartingPrices[50] = 150000 /* 0x0249F0 */;
_root.gameData.averageStartingPrices[60] = 250000 /* 0x03D090 */;
_root.gameData.averageStartingPrices[65] = 500000 /* 0x07A120 */;
_root.gameData.averageStartingPrices[70] = 1250000 /* 0x1312D0 */;
_root.gameData.averageStartingPrices[80] = 1600000 /* 0x186A00 */;
_root.gameData.averageStartingPrices[90] = 1900000 /* 0x1CFDE0 */;
_root.gameData.averageStartingPrices[100] = 3000000 /* 0x2DC6C0 */;
_root.gameData.averageStartingPrices[110] = 10000000 /* 0x989680 */;
stop();
Frame 3
stop();
Frame 5
stop();
Symbol 11 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 14 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 19 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 22 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 25 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 26 MovieClip [fcb_states] Frame 1
stop();
Symbol 26 MovieClip [fcb_states] Frame 2
stop();
Symbol 26 MovieClip [fcb_states] Frame 3
stop();
Symbol 26 MovieClip [fcb_states] Frame 4
stop();
Symbol 26 MovieClip [fcb_states] Frame 5
stop();
Symbol 26 MovieClip [fcb_states] Frame 6
stop();
Symbol 29 MovieClip [FLabelSymbol] Frame 1
#initclip 2
_global.FLabelClass = function () {
if (this.hostComponent == undefined) {
this.hostComponent = ((this._parent.controller == undefined) ? (this._parent) : (this._parent.controller));
}
if (this.customTextStyle == undefined) {
if (this.hostComponent.textStyle == undefined) {
this.hostComponent.textStyle = new TextFormat();
}
this.textStyle = this.hostComponent.textStyle;
this.enable = true;
}
};
FLabelClass.prototype = new MovieClip();
Object.registerClass("FLabelSymbol", FLabelClass);
FLabelClass.prototype.setLabel = function (label) {
var val = this.hostComponent.styleTable.embedFonts.value;
if (val != undefined) {
this.labelField.embedFonts = val;
}
this.labelField.setNewTextFormat(this.textStyle);
this.labelField.text = label;
this.labelField._height = this.labelField.textHeight + 2;
};
FLabelClass.prototype.setSize = function (width) {
this.labelField._width = width;
};
FLabelClass.prototype.setEnabled = function (enable) {
this.enable = enable;
var tmpColor = this.hostComponent.styleTable[(enable ? "textColor" : "textDisabled")].value;
if (tmpColor == undefined) {
tmpColor = (enable ? 0 : 8947848);
}
this.setColor(tmpColor);
};
FLabelClass.prototype.getLabel = function () {
return(this.labelField.text);
};
FLabelClass.prototype.setColor = function (col) {
this.labelField.textColor = col;
};
#endinitclip
Symbol 30 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 33 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 33 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 36 MovieClip [FCheckBoxSymbol] Frame 1
#initclip 3
function FCheckBoxClass() {
this.init();
}
FCheckBoxClass.prototype = new FUIComponentClass();
Object.registerClass("FCheckBoxSymbol", FCheckBoxClass);
FCheckBoxClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fcb_hitArea", "fcb_hitArea_mc", 1);
this.attachMovie("fcb_states", "fcb_states_mc", 2);
this.attachMovie("FLabelSymbol", "fLabel_mc", 3);
super.init();
this.setChangeHandler(this.changeHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.initialValue == undefined) {
this.setCheckState(false);
} else {
this.setCheckState(this.initialValue);
}
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_CHECKBUTTON = 44;
this.STATE_SYSTEM_CHECKED = 16;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FCheckBoxClass.prototype.setLabelPlacement = function (pos) {
this.setLabel(this.getLabel());
this.txtFormat(pos);
var halfLabelH = (this.fLabel_mc._height / 2);
var halfFrameH = (this.fcb_states_mc._height / 2);
var vertCenter = (halfFrameH - halfLabelH);
var checkWidth = this.fcb_states_mc._width;
var frame = this.fcb_states_mc;
var label = this.fLabel_mc;
var w = 0;
if (frame._width > this.width) {
w = 0;
} else {
w = this.width - frame._width;
}
this.fLabel_mc.setSize(w);
if ((pos == "right") || (pos == undefined)) {
this.labelPlacement = "right";
this.fcb_states_mc._x = 0;
this.fLabel_mc._x = checkWidth;
this.txtFormat("left");
} else if (pos == "left") {
this.labelPlacement = "left";
this.fLabel_mc._x = 0;
this.fcb_states_mc._x = this.width - checkWidth;
this.txtFormat("right");
}
this.fLabel_mc._y = vertCenter;
this.fcb_hitArea_mc._y = vertCenter;
};
FCheckBoxClass.prototype.txtFormat = function (pos) {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = pos)) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 0)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 0)) : undefined);
if (this.flabel_mc._height > this.height) {
super.setSize(this.width, this.flabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FCheckBoxClass.prototype.setHitArea = function (w, h) {
var hit = this.fcb_hitArea_mc;
this.hitArea = hit;
if (this.fcb_states_mc._width > w) {
hit._width = this.fcb_states_mc._width;
} else {
hit._width = w;
}
hit._visible = false;
if (arguments.length > 1) {
hit._height = h;
}
};
FCheckBoxClass.prototype.setSize = function (w) {
this.setLabel(this.getLabel());
this.setLabelPlacement(this.labelPlacement);
if (this.fcb_states_mc._height < this.flabel_mc.labelField._height) {
super.setSize(w, this.flabel_mc.labelField._height);
}
this.setHitArea(this.width, this.height);
this.setLabelPlacement(this.labelPlacement);
};
FCheckBoxClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this._width + 6, this._height - 1);
};
FCheckBoxClass.prototype.onPress = function () {
this.pressFocus();
_root.focusRect.removeMovieClip();
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.onRelease = function () {
this.fcb_states_mc.gotoAndStop("up");
this.setValue(!this.checked);
};
FCheckBoxClass.prototype.onReleaseOutside = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOut = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedEnabled");
} else {
states.gotoAndStop("up");
}
};
FCheckBoxClass.prototype.onDragOver = function () {
var states = this.fcb_states_mc;
if (this.getValue()) {
states.gotoAndStop("checkedPress");
} else {
states.gotoAndStop("press");
}
};
FCheckBoxClass.prototype.setValue = function (checkedValue) {
if (checkedValue || (checkedValue == undefined)) {
this.setCheckState(checkedValue);
} else if (checkedValue == false) {
this.setCheckState(checkedValue);
}
this.executeCallBack();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FCheckBoxClass.prototype.setCheckState = function (checkedValue) {
var states = this.fcb_states_mc;
if (this.enable) {
this.flabel_mc.setEnabled(true);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedEnabled");
this.enabled = true;
this.checked = true;
} else {
states.gotoAndStop("up");
this.enabled = true;
this.checked = false;
}
} else {
this.flabel_mc.setEnabled(false);
if (checkedValue || (checkedValue == undefined)) {
states.gotoAndStop("checkedDisabled");
this.enabled = false;
this.checked = true;
} else {
states.gotoAndStop("uncheckedDisabled");
this.enabled = false;
this.checked = false;
this.focusRect.removeMovieClip();
}
}
};
FCheckBoxClass.prototype.getValue = function () {
return(this.checked);
};
FCheckBoxClass.prototype.setEnabled = function (enable) {
if ((enable == true) || (enable == undefined)) {
this.enable = true;
Super.setEnabled(true);
} else {
this.enable = false;
Super.setEnabled(false);
}
this.setCheckState(this.checked);
};
FCheckBoxClass.prototype.getEnabled = function () {
return(this.enable);
};
FCheckBoxClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FCheckBoxClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FCheckBoxClass.prototype.setTextColor = function (color) {
this.fLabel_mc.labelField.textColor = color;
};
FCheckBoxClass.prototype.myOnKeyDown = function () {
if (((Key.getCode() == 32) && (this.pressOnce == undefined)) && (this.enabled == true)) {
this.setValue(!this.getValue());
this.pressOnce = true;
}
};
FCheckBoxClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.pressOnce = undefined;
}
};
FCheckBoxClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_CHECKBUTTON);
};
FCheckBoxClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FCheckBoxClass.prototype.get_accState = function (childId) {
if (this.master.getValue()) {
return(this.master.STATE_SYSTEM_CHECKED);
}
return(0);
};
FCheckBoxClass.prototype.get_accDefaultAction = function (childId) {
if (this.master.getValue()) {
return("UnCheck");
}
return("Check");
};
FCheckBoxClass.prototype.accDoDefaultAction = function (childId) {
this.master.setValue(!this.master.getValue());
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 50 MovieClip Frame 1
function updateLoader() {
bytesLoadedPercentage = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
kbLoaded = Math.Floor(_root.getBytesLoaded() / 1024);
kbTotal = Math.Floor(_root.getBytesTotal() / 1024);
load._xScale = bytesLoadedPercentage + 1;
trace(_root.getBytesLoaded());
if (bytesLoadedPercentage >= 99) {
_root.play();
}
}
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 1
onClipEvent (enterFrame) {
_parent.updateLoader();
}
Symbol 61 MovieClip Frame 130
_root.play();
Symbol 69 MovieClip [Loss Display] Frame 20
this.removeMovieClip();
Symbol 75 MovieClip [Profit display] Frame 20
this.removeMovieClip();
Symbol 81 MovieClip [Tax display] Frame 20
this.removeMovieClip();
Symbol 85 MovieClip [Too Much Display] Frame 20
this.removeMovieClip();
Symbol 109 Button
on (release) {
getURL ("http://www.jerseyinsight.com");
}
Symbol 133 Button
on (release) {
nextInstructionScreen();
}
Symbol 137 Button
on (release) {
getURL ("http://www.webreality.co.uk");
}
Symbol 159 Button
on (release) {
this.sellOrBuy();
trace(this._name);
}
Symbol 171 Button
on (release) {
this.sellOrBuy();
}
Symbol 185 MovieClip Frame 2
stop();
Symbol 185 MovieClip Frame 41
gotoAndPlay (10);
Symbol 187 MovieClip Frame 1
stop();
function Property() {
this.class = "Property";
this.bought = 0;
this.inView = 0;
this._visible = 0;
this.init = function () {
success = this._parent.registerProperty(this._name);
if (!success) {
trace(("Property Object: " + this._name) + " not registered");
}
if (this._name eq "mansion") {
this.setPriceValues();
this.inView = 1;
trace("Setting");
}
};
this.buy = function () {
gotoAndPlay (33);
this.bought = 1;
this.priceWhenBought = this.currentValue;
};
this.sell = function () {
gotoAndPlay (43);
this.inView = 0;
this.bought = 0;
profit = Math.floor((this.currentValue - this.priceWhenBought) / 1000);
if (profit >= 0) {
this.addFloater("Profit", profit);
} else {
this.addFloater("Loss", profit * -1);
}
};
this.appear = function () {
if (this.inView == 0) {
gotoAndPlay (2);
this.inView = 1;
this._visible = 1;
this.timeAppeared = getTimer() + _root.gameData.appearAnimationLength;
this.currentValue = _root.gameData.averageStartingPrices[averageStartingPrice] + Math.floor(Math.random() * _root.gameData.startingPricePercentage);
this.setPriceValues();
}
};
this.disappear = function () {
gotoAndPlay (53);
this.inView = 0;
};
this.setPriceValues = function () {
basePrice = _root.gameData.averageStartingPrices[averageStartingPrice];
priceMultiple = _root.gameData.minPriceMultiple + (Math.random() * (_root.gameData.maxPriceMultiple - _root.gameData.minPriceMultiple));
if (this._name == "mansion") {
priceMultiple = 1.1;
}
this.maxPrice = basePrice * priceMultiple;
this.minPrice = basePrice / priceMultiple;
this.priceRange = (priceRange = this.maxPrice - this.minPrice);
this.frequency = Math.floor(_root.gameData.minFluctuationFrequency + (Math.random() * (_root.gameData.maxFluctuationFrequency - _root.gameData.minFluctuationFrequency)));
};
this.updatePrice = function () {
timeSinceAppeared = getTimer() - this.timeAppeared;
this.currentValue = this.minPrice + ((this.priceRange / 2) * (1 + Math.sin((timeSinceAppeared * Math.PI) / this.frequency)));
this.currentValueInThousands = Math.floor(this.currentValue / 1000);
if ((this.lastPrice < this.currentValue) && (lastMovement ne "Up")) {
priceDisplay.gotoAndStop("Up");
lastMovement = "Up";
}
if ((this.lastPrice >= this.currentValue) && (lastMovement ne "Down")) {
priceDisplay.gotoAndPlay("Down");
lastMovement = "Down";
}
this.lastPrice = this.currentValue;
this.currentValueInThousands++;
if (this._name eq "mansion") {
trace("Mansion currentValue: " + this.currentValue);
trace(this._x);
}
};
this.checkDisappear = function () {
if ((this.inView && (!this.bought)) && (getTimer() > (this.timeAppeared + _root.gameData.appearTime))) {
this.disappear();
}
};
this.sellOrBuy = function () {
if (bought) {
_parent.sellProperty(this);
} else {
_parent.buyProperty(this);
}
};
this.onEnterFrame = function () {
if (this.inView == 1) {
this.updateCounter++;
if (this.updateCounter == _root.gameData.updateFrequency) {
this.updatePrice();
this.updateCounter = 0;
this.checkDisappear();
}
}
};
this.addFloater = function (type, value) {
attachMovie(type + " display", "floater", 10);
floater._y = floater._y - 45;
floater.value = value;
};
this.init();
}
this.mcExtends(this.Property, 10);
Symbol 187 MovieClip Frame 32
stop();
Symbol 187 MovieClip Frame 42
stop();
Symbol 187 MovieClip Frame 75
stop();
this._visible = 0;
Symbol 192 MovieClip Frame 1
stop();
function Property() {
this.class = "Property";
this.bought = 0;
this.inView = 0;
this._visible = 0;
this.init = function () {
success = this._parent.registerProperty(this._name);
if (!success) {
trace(("Property Object: " + this._name) + " not registered");
}
if (this._name eq "mansion") {
this.setPriceValues();
this.inView = 1;
trace("Setting");
}
};
this.buy = function () {
gotoAndPlay (33);
this.bought = 1;
this.priceWhenBought = this.currentValue;
};
this.sell = function () {
gotoAndPlay (43);
this.inView = 0;
this.bought = 0;
profit = Math.floor((this.currentValue - this.priceWhenBought) / 1000);
if (profit >= 0) {
this.addFloater("Profit", profit);
} else {
this.addFloater("Loss", profit * -1);
}
};
this.appear = function () {
if (this.inView == 0) {
gotoAndPlay (2);
this.inView = 1;
this._visible = 1;
this.timeAppeared = getTimer() + _root.gameData.appearAnimationLength;
this.currentValue = _root.gameData.averageStartingPrices[averageStartingPrice] + Math.floor(Math.random() * _root.gameData.startingPricePercentage);
this.setPriceValues();
}
};
this.disappear = function () {
gotoAndPlay (53);
this.inView = 0;
};
this.setPriceValues = function () {
basePrice = _root.gameData.averageStartingPrices[averageStartingPrice];
priceMultiple = _root.gameData.minPriceMultiple + (Math.random() * (_root.gameData.maxPriceMultiple - _root.gameData.minPriceMultiple));
if (this._name == "mansion") {
priceMultiple = 1.1;
}
this.maxPrice = basePrice * priceMultiple;
this.minPrice = basePrice / priceMultiple;
this.priceRange = (priceRange = this.maxPrice - this.minPrice);
this.frequency = Math.floor(_root.gameData.minFluctuationFrequency + (Math.random() * (_root.gameData.maxFluctuationFrequency - _root.gameData.minFluctuationFrequency)));
};
this.updatePrice = function () {
timeSinceAppeared = getTimer() - this.timeAppeared;
this.currentValue = this.minPrice + ((this.priceRange / 2) * (1 + Math.sin((timeSinceAppeared * Math.PI) / this.frequency)));
this.currentValueInThousands = Math.floor(this.currentValue / 1000);
if ((this.lastPrice < this.currentValue) && (lastMovement ne "Up")) {
priceDisplay.gotoAndStop("Up");
lastMovement = "Up";
}
if ((this.lastPrice >= this.currentValue) && (lastMovement ne "Down")) {
priceDisplay.gotoAndPlay("Down");
lastMovement = "Down";
}
this.lastPrice = this.currentValue;
this.currentValueInThousands++;
if (this._name eq "mansion") {
trace("Mansion currentValue: " + this.currentValue);
trace(this._x);
}
};
this.checkDisappear = function () {
if ((this.inView && (!this.bought)) && (getTimer() > (this.timeAppeared + _root.gameData.appearTime))) {
this.disappear();
}
};
this.sellOrBuy = function () {
if (bought) {
_parent.sellProperty(this);
} else {
_parent.buyProperty(this);
}
};
this.onEnterFrame = function () {
if (this.inView == 1) {
this.updateCounter++;
if (this.updateCounter == _root.gameData.updateFrequency) {
this.updatePrice();
this.updateCounter = 0;
this.checkDisappear();
}
}
};
this.addFloater = function (type, value) {
attachMovie(type + " display", "floater", 10);
floater._y = floater._y - 45;
floater.value = value;
};
this.init();
}
this.mcExtends(this.Property, 10);
Symbol 192 MovieClip Frame 32
stop();
Symbol 192 MovieClip Frame 42
stop();
Symbol 192 MovieClip Frame 75
stop();
this._visible = 0;
Symbol 202 MovieClip Frame 1
stop();
function Property() {
this.class = "Property";
this.bought = 0;
this.inView = 0;
this._visible = 0;
this.init = function () {
success = this._parent.registerProperty(this._name);
if (!success) {
trace(("Property Object: " + this._name) + " not registered");
}
if (this._name eq "mansion") {
this.setPriceValues();
this.inView = 1;
trace("Setting");
}
};
this.buy = function () {
gotoAndPlay (33);
this.bought = 1;
this.priceWhenBought = this.currentValue;
};
this.sell = function () {
gotoAndPlay (43);
this.inView = 0;
this.bought = 0;
profit = Math.floor((this.currentValue - this.priceWhenBought) / 1000);
if (profit >= 0) {
this.addFloater("Profit", profit);
} else {
this.addFloater("Loss", profit * -1);
}
};
this.appear = function () {
if (this.inView == 0) {
gotoAndPlay (2);
this.inView = 1;
this._visible = 1;
this.timeAppeared = getTimer() + _root.gameData.appearAnimationLength;
this.currentValue = _root.gameData.averageStartingPrices[averageStartingPrice] + Math.floor(Math.random() * _root.gameData.startingPricePercentage);
this.setPriceValues();
}
};
this.disappear = function () {
gotoAndPlay (53);
this.inView = 0;
};
this.setPriceValues = function () {
basePrice = _root.gameData.averageStartingPrices[averageStartingPrice];
priceMultiple = _root.gameData.minPriceMultiple + (Math.random() * (_root.gameData.maxPriceMultiple - _root.gameData.minPriceMultiple));
if (this._name == "mansion") {
priceMultiple = 1.1;
}
this.maxPrice = basePrice * priceMultiple;
this.minPrice = basePrice / priceMultiple;
this.priceRange = (priceRange = this.maxPrice - this.minPrice);
this.frequency = Math.floor(_root.gameData.minFluctuationFrequency + (Math.random() * (_root.gameData.maxFluctuationFrequency - _root.gameData.minFluctuationFrequency)));
};
this.updatePrice = function () {
timeSinceAppeared = getTimer() - this.timeAppeared;
this.currentValue = this.minPrice + ((this.priceRange / 2) * (1 + Math.sin((timeSinceAppeared * Math.PI) / this.frequency)));
this.currentValueInThousands = Math.floor(this.currentValue / 1000);
if ((this.lastPrice < this.currentValue) && (lastMovement ne "Up")) {
priceDisplay.gotoAndStop("Up");
lastMovement = "Up";
}
if ((this.lastPrice >= this.currentValue) && (lastMovement ne "Down")) {
priceDisplay.gotoAndPlay("Down");
lastMovement = "Down";
}
this.lastPrice = this.currentValue;
this.currentValueInThousands++;
if (this._name eq "mansion") {
trace("Mansion currentValue: " + this.currentValue);
trace(this._x);
}
};
this.checkDisappear = function () {
if ((this.inView && (!this.bought)) && (getTimer() > (this.timeAppeared + _root.gameData.appearTime))) {
this.disappear();
}
};
this.sellOrBuy = function () {
if (bought) {
_parent.sellProperty(this);
} else {
_parent.buyProperty(this);
}
};
this.onEnterFrame = function () {
if (this.inView == 1) {
this.updateCounter++;
if (this.updateCounter == _root.gameData.updateFrequency) {
this.updatePrice();
this.updateCounter = 0;
this.checkDisappear();
}
}
};
this.addFloater = function (type, value) {
attachMovie(type + " display", "floater", 10);
floater._y = floater._y - 45;
floater.value = value;
};
this.init();
}
this.mcExtends(this.Property, 10);
Symbol 202 MovieClip Frame 32
stop();
Symbol 202 MovieClip Frame 42
stop();
Symbol 202 MovieClip Frame 75
stop();
this._visible = 0;
Symbol 207 MovieClip Frame 1
stop();
function Property() {
this.class = "Property";
this.bought = 0;
this.inView = 0;
this._visible = 0;
this.init = function () {
success = this._parent.registerProperty(this._name);
if (!success) {
trace(("Property Object: " + this._name) + " not registered");
}
if (this._name eq "mansion") {
this.setPriceValues();
this.inView = 1;
trace("Setting");
}
};
this.buy = function () {
gotoAndPlay (33);
this.bought = 1;
this.priceWhenBought = this.currentValue;
};
this.sell = function () {
gotoAndPlay (43);
this.inView = 0;
this.bought = 0;
profit = Math.floor((this.currentValue - this.priceWhenBought) / 1000);
if (profit >= 0) {
this.addFloater("Profit", profit);
} else {
this.addFloater("Loss", profit * -1);
}
};
this.appear = function () {
if (this.inView == 0) {
gotoAndPlay (2);
this.inView = 1;
this._visible = 1;
this.timeAppeared = getTimer() + _root.gameData.appearAnimationLength;
this.currentValue = _root.gameData.averageStartingPrices[averageStartingPrice] + Math.floor(Math.random() * _root.gameData.startingPricePercentage);
this.setPriceValues();
}
};
this.disappear = function () {
gotoAndPlay (53);
this.inView = 0;
};
this.setPriceValues = function () {
basePrice = _root.gameData.averageStartingPrices[averageStartingPrice];
priceMultiple = _root.gameData.minPriceMultiple + (Math.random() * (_root.gameData.maxPriceMultiple - _root.gameData.minPriceMultiple));
if (this._name == "mansion") {
priceMultiple = 1.1;
}
this.maxPrice = basePrice * priceMultiple;
this.minPrice = basePrice / priceMultiple;
this.priceRange = (priceRange = this.maxPrice - this.minPrice);
this.frequency = Math.floor(_root.gameData.minFluctuationFrequency + (Math.random() * (_root.gameData.maxFluctuationFrequency - _root.gameData.minFluctuationFrequency)));
};
this.updatePrice = function () {
timeSinceAppeared = getTimer() - this.timeAppeared;
this.currentValue = this.minPrice + ((this.priceRange / 2) * (1 + Math.sin((timeSinceAppeared * Math.PI) / this.frequency)));
this.currentValueInThousands = Math.floor(this.currentValue / 1000);
if ((this.lastPrice < this.currentValue) && (lastMovement ne "Up")) {
priceDisplay.gotoAndStop("Up");
lastMovement = "Up";
}
if ((this.lastPrice >= this.currentValue) && (lastMovement ne "Down")) {
priceDisplay.gotoAndPlay("Down");
lastMovement = "Down";
}
this.lastPrice = this.currentValue;
this.currentValueInThousands++;
if (this._name eq "mansion") {
trace("Mansion currentValue: " + this.currentValue);
trace(this._x);
}
};
this.checkDisappear = function () {
if ((this.inView && (!this.bought)) && (getTimer() > (this.timeAppeared + _root.gameData.appearTime))) {
this.disappear();
}
};
this.sellOrBuy = function () {
if (bought) {
_parent.sellProperty(this);
} else {
_parent.buyProperty(this);
}
};
this.onEnterFrame = function () {
if (this.inView == 1) {
this.updateCounter++;
if (this.updateCounter == _root.gameData.updateFrequency) {
this.updatePrice();
this.updateCounter = 0;
this.checkDisappear();
}
}
};
this.addFloater = function (type, value) {
attachMovie(type + " display", "floater", 10);
floater._y = floater._y - 45;
floater.value = value;
};
this.init();
}
this.mcExtends(this.Property, 10);
Symbol 207 MovieClip Frame 32
stop();
Symbol 207 MovieClip Frame 42
stop();
Symbol 207 MovieClip Frame 75
stop();
this._visible = 0;
Symbol 216 MovieClip Frame 1
stop();
function Property() {
this.class = "Property";
this.bought = 0;
this.inView = 0;
this._visible = 0;
this.init = function () {
success = this._parent.registerProperty(this._name);
if (!success) {
trace(("Property Object: " + this._name) + " not registered");
}
if (this._name eq "mansion") {
this.setPriceValues();
this.inView = 1;
trace("Setting");
}
};
this.buy = function () {
gotoAndPlay (33);
this.bought = 1;
this.priceWhenBought = this.currentValue;
};
this.sell = function () {
gotoAndPlay (43);
this.inView = 0;
this.bought = 0;
profit = Math.floor((this.currentValue - this.priceWhenBought) / 1000);
if (profit >= 0) {
this.addFloater("Profit", profit);
} else {
this.addFloater("Loss", profit * -1);
}
};
this.appear = function () {
if (this.inView == 0) {
gotoAndPlay (2);
this.inView = 1;
this._visible = 1;
this.timeAppeared = getTimer() + _root.gameData.appearAnimationLength;
this.currentValue = _root.gameData.averageStartingPrices[averageStartingPrice] + Math.floor(Math.random() * _root.gameData.startingPricePercentage);
this.setPriceValues();
}
};
this.disappear = function () {
gotoAndPlay (53);
this.inView = 0;
};
this.setPriceValues = function () {
basePrice = _root.gameData.averageStartingPrices[averageStartingPrice];
priceMultiple = _root.gameData.minPriceMultiple + (Math.random() * (_root.gameData.maxPriceMultiple - _root.gameData.minPriceMultiple));
if (this._name == "mansion") {
priceMultiple = 1.1;
}
this.maxPrice = basePrice * priceMultiple;
this.minPrice = basePrice / priceMultiple;
this.priceRange = (priceRange = this.maxPrice - this.minPrice);
this.frequency = Math.floor(_root.gameData.minFluctuationFrequency + (Math.random() * (_root.gameData.maxFluctuationFrequency - _root.gameData.minFluctuationFrequency)));
};
this.updatePrice = function () {
timeSinceAppeared = getTimer() - this.timeAppeared;
this.currentValue = this.minPrice + ((this.priceRange / 2) * (1 + Math.sin((timeSinceAppeared * Math.PI) / this.frequency)));
this.currentValueInThousands = Math.floor(this.currentValue / 1000);
if ((this.lastPrice < this.currentValue) && (lastMovement ne "Up")) {
priceDisplay.gotoAndStop("Up");
lastMovement = "Up";
}
if ((this.lastPrice >= this.currentValue) && (lastMovement ne "Down")) {
priceDisplay.gotoAndPlay("Down");
lastMovement = "Down";
}
this.lastPrice = this.currentValue;
this.currentValueInThousands++;
if (this._name eq "mansion") {
trace("Mansion currentValue: " + this.currentValue);
trace(this._x);
}
};
this.checkDisappear = function () {
if ((this.inView && (!this.bought)) && (getTimer() > (this.timeAppeared + _root.gameData.appearTime))) {
this.disappear();
}
};
this.sellOrBuy = function () {
if (bought) {
_parent.sellProperty(this);
} else {
_parent.buyProperty(this);
}
};
this.onEnterFrame = function () {
if (this.inView == 1) {
this.updateCounter++;
if (this.updateCounter == _root.gameData.updateFrequency) {
this.updatePrice();
this.updateCounter = 0;
this.checkDisappear();
}
}
};
this.addFloater = function (type, value) {
attachMovie(type + " display", "floater", 10);
floater._y = floater._y - 45;
floater.value = value;
};
this.init();
}
this.mcExtends(this.Property, 10);
Symbol 216 MovieClip Frame 32
stop();
Symbol 216 MovieClip Frame 42
stop();
Symbol 216 MovieClip Frame 75
stop();
this._visible = 0;
Instance of Symbol 220 MovieClip in Symbol 221 MovieClip Frame 1
onClipEvent (keyDown) {
_parent._parent[_parent.functionToRun].call(_parent._parent);
}
Symbol 236 MovieClip Frame 1
function CountDownTimer() {
this.class = "CountDownTimer";
this.timeStarted = getTimer();
this.secondsToCount = _root.gameData.secondsAvailable;
}
this.getSecondsLeft = function () {
secondsElapsed = (getTimer() - this.timeStarted) / 1000;
secondsLeft = this.secondsToCount - secondsElapsed;
return(secondsLeft);
};
this.getWarningStatus = function () {
if (this.getSecondsLeft() <= this.warningPeriod) {
warningStatus = 1;
} else {
warningStatus = 0;
}
return(warningStatus);
};
this.getFormattedTimeLeft = function () {
totalSecondsLeft = this.getSecondsLeft();
if (totalSecondsLeft < 0) {
totalSecondsLeft = 0;
}
formattedTimeLeft = new Array();
formattedTimeLeft.minutes = int(totalSecondsLeft / 60);
formattedTimeLeft.seconds = int(totalSecondsLeft - (formattedTimeLeft.minutes * 60));
if (formattedTimeLeft.minutes < 10) {
formattedTimeLeft.minutes = "0" + formattedTimeLeft.minutes;
}
if (formattedTimeLeft.seconds < 10) {
formattedTimeLeft.seconds = "0" + formattedTimeLeft.seconds;
}
return(formattedTimeLeft);
};
this.isRunOut = function () {
if (this.getSecondsLeft() < 0) {
runOut = 1;
} else {
runOut = 0;
}
return(runOut);
};
this.onLoad(load);
this.reset = 1;
lastSecondsLeft = false;
this.timerFinished = function () {
_parent[this.functionToRun].apply(this, null);
_parent.die();
};
this.updateDisplay = function () {
timeLeft = this.getFormattedTimeLeft();
this.TimerText.timerSecondsDisplay = timeLeft.seconds;
this.TimerText.timerMinutesDisplay = timeLeft.minutes;
};
this.checkStatus = function () {
if (this.getWarningStatus()) {
gotoAndStop (1);
} else {
gotoAndStop (1);
}
if (this.isRunOut()) {
this.timerFinished();
}
};
this.onEnterFrame = function () {
this.checkStatus();
this.updateDisplay();
};
this.mcExtends(this.CountDownTimer, 10);
Symbol 238 Button
on (release) {
nextInstructionScreen();
}
Symbol 243 MovieClip Frame 237
stop();
Instance of Symbol 245 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
counter = 0;
priceRange = 10000;
this.minPrice = 10000;
this.frequency = 100;
}
onClipEvent (enterFrame) {
this.currentValue = this.minPrice + ((priceRange / 2) * (1 + Math.sin((counter * Math.PI) / this.frequency)));
this.currentValueInThousands = Math.floor(this.currentValue / 1000);
if (this.lastPrice < this.currentValue) {
priceDisplay.priceIndArrow._rotation = 180;
} else {
priceDisplay.priceIndArrow._rotation = 0;
}
this.lastPrice = this.currentValue;
trace(this.currentValueInThousands);
trace(counter);
trace(this.currentValue);
counter++;
}
Symbol 246 MovieClip Frame 304
stop();
Symbol 256 Button
on (release) {
instructionScreen = 0;
nextInstructionScreen();
}
Symbol 258 Button
on (release) {
nextInstructionScreen();
}
Symbol 259 MovieClip Frame 1
function Property() {
this.class = "Property";
this.bought = 0;
this.inView = 0;
this._visible = 0;
this.init = function () {
success = this._parent.registerProperty(this._name);
if (!success) {
trace(("Property Object: " + this._name) + " not registered");
}
if (this._name eq "mansion") {
this.setPriceValues();
this.inView = 1;
trace("Setting");
}
};
this.buy = function () {
gotoAndPlay (1);
this.bought = 1;
this.priceWhenBought = this.currentValue;
};
this.sell = function () {
gotoAndPlay (1);
this.inView = 0;
this.bought = 0;
profit = Math.floor((this.currentValue - this.priceWhenBought) / 1000);
if (profit >= 0) {
this.addFloater("Profit", profit);
} else {
this.addFloater("Loss", profit * -1);
}
};
this.appear = function () {
if (this.inView == 0) {
gotoAndPlay (1);
this.inView = 1;
this._visible = 1;
this.timeAppeared = getTimer() + _root.gameData.appearAnimationLength;
this.currentValue = _root.gameData.averageStartingPrices[averageStartingPrice] + Math.floor(Math.random() * _root.gameData.startingPricePercentage);
this.setPriceValues();
}
};
this.disappear = function () {
gotoAndPlay (1);
this.inView = 0;
};
this.setPriceValues = function () {
basePrice = _root.gameData.averageStartingPrices[averageStartingPrice];
priceMultiple = _root.gameData.minPriceMultiple + (Math.random() * (_root.gameData.maxPriceMultiple - _root.gameData.minPriceMultiple));
if (this._name == "mansion") {
priceMultiple = 1.1;
}
this.maxPrice = basePrice * priceMultiple;
this.minPrice = basePrice / priceMultiple;
this.priceRange = (priceRange = this.maxPrice - this.minPrice);
this.frequency = Math.floor(_root.gameData.minFluctuationFrequency + (Math.random() * (_root.gameData.maxFluctuationFrequency - _root.gameData.minFluctuationFrequency)));
};
this.updatePrice = function () {
timeSinceAppeared = getTimer() - this.timeAppeared;
this.currentValue = this.minPrice + ((this.priceRange / 2) * (1 + Math.sin((timeSinceAppeared * Math.PI) / this.frequency)));
this.currentValueInThousands = Math.floor(this.currentValue / 1000);
if ((this.lastPrice < this.currentValue) && (lastMovement ne "Up")) {
priceDisplay.gotoAndStop("Up");
lastMovement = "Up";
}
if ((this.lastPrice >= this.currentValue) && (lastMovement ne "Down")) {
priceDisplay.gotoAndPlay("Down");
lastMovement = "Down";
}
this.lastPrice = this.currentValue;
this.currentValueInThousands++;
if (this._name eq "mansion") {
trace("Mansion currentValue: " + this.currentValue);
trace(this._x);
}
};
this.checkDisappear = function () {
if ((this.inView && (!this.bought)) && (getTimer() > (this.timeAppeared + _root.gameData.appearTime))) {
this.disappear();
}
};
this.sellOrBuy = function () {
if (bought) {
_parent.sellProperty(this);
} else {
_parent.buyProperty(this);
}
};
this.onEnterFrame = function () {
if (this.inView == 1) {
this.updateCounter++;
if (this.updateCounter == _root.gameData.updateFrequency) {
this.updatePrice();
this.updateCounter = 0;
this.checkDisappear();
}
}
};
this.addFloater = function (type, value) {
attachMovie(type + " display", "floater", 10);
floater._y = floater._y - 45;
floater.value = value;
};
this.init();
}
this.mcExtends(this.Property, 10);
this._visible = 1;
Symbol 259 MovieClip Frame 2
stop();
Symbol 261 MovieClip Frame 1
function CountDownTimer() {
this.class = "CountDownTimer";
this.timeStarted = getTimer();
this.secondsToCount = _root.gameData.secondsAvailable;
}
this.getSecondsLeft = function () {
secondsElapsed = (getTimer() - this.timeStarted) / 1000;
secondsLeft = this.secondsToCount - secondsElapsed;
return(secondsLeft);
};
this.getWarningStatus = function () {
if (this.getSecondsLeft() <= this.warningPeriod) {
warningStatus = 1;
} else {
warningStatus = 0;
}
return(warningStatus);
};
this.getFormattedTimeLeft = function () {
totalSecondsLeft = this.getSecondsLeft();
if (totalSecondsLeft < 0) {
totalSecondsLeft = 0;
}
formattedTimeLeft = new Array();
formattedTimeLeft.minutes = int(totalSecondsLeft / 60);
formattedTimeLeft.seconds = int(totalSecondsLeft - (formattedTimeLeft.minutes * 60));
if (formattedTimeLeft.minutes < 10) {
formattedTimeLeft.minutes = "0" + formattedTimeLeft.minutes;
}
if (formattedTimeLeft.seconds < 10) {
formattedTimeLeft.seconds = "0" + formattedTimeLeft.seconds;
}
return(formattedTimeLeft);
};
this.isRunOut = function () {
if (this.getSecondsLeft() < 0) {
runOut = 1;
} else {
runOut = 0;
}
return(runOut);
};
this.onLoad(load);
this.reset = 1;
lastSecondsLeft = false;
this.timerFinished = function () {
_parent[this.functionToRun].apply(this, null);
_parent.die();
};
this.updateDisplay = function () {
timeLeft = this.getFormattedTimeLeft();
this.TimerText.timerSecondsDisplay = timeLeft.seconds;
this.TimerText.timerMinutesDisplay = timeLeft.minutes;
};
this.checkStatus = function () {
if (this.getWarningStatus()) {
gotoAndStop (1);
} else {
gotoAndStop (1);
}
if (this.isRunOut()) {
this.timerFinished();
}
};
this.onEnterFrame = function () {
this.checkStatus();
this.updateDisplay();
};
this.mcExtends(this.CountDownTimer, 10);
Symbol 263 MovieClip Frame 1
function CountDownTimer() {
this.class = "CountDownTimer";
this.timeStarted = getTimer();
this.secondsToCount = _root.gameData.secondsAvailable;
}
this.getSecondsLeft = function () {
secondsElapsed = (getTimer() - this.timeStarted) / 1000;
secondsLeft = this.secondsToCount - secondsElapsed;
return(secondsLeft);
};
this.getWarningStatus = function () {
if (this.getSecondsLeft() <= this.warningPeriod) {
warningStatus = 1;
} else {
warningStatus = 0;
}
return(warningStatus);
};
this.getFormattedTimeLeft = function () {
totalSecondsLeft = this.getSecondsLeft();
if (totalSecondsLeft < 0) {
totalSecondsLeft = 0;
}
formattedTimeLeft = new Array();
formattedTimeLeft.minutes = int(totalSecondsLeft / 60);
formattedTimeLeft.seconds = int(totalSecondsLeft - (formattedTimeLeft.minutes * 60));
if (formattedTimeLeft.minutes < 10) {
formattedTimeLeft.minutes = "0" + formattedTimeLeft.minutes;
}
if (formattedTimeLeft.seconds < 10) {
formattedTimeLeft.seconds = "0" + formattedTimeLeft.seconds;
}
return(formattedTimeLeft);
};
this.isRunOut = function () {
if (this.getSecondsLeft() < 0) {
runOut = 1;
} else {
runOut = 0;
}
return(runOut);
};
this.onLoad(load);
this.reset = 1;
lastSecondsLeft = false;
this.timerFinished = function () {
_parent[this.functionToRun].apply(this, null);
_parent.die();
};
this.updateDisplay = function () {
timeLeft = this.getFormattedTimeLeft();
this.TimerText.timerSecondsDisplay = timeLeft.seconds;
this.TimerText.timerMinutesDisplay = timeLeft.minutes;
};
this.checkStatus = function () {
if (this.getWarningStatus()) {
gotoAndStop (1);
} else {
gotoAndStop (1);
}
if (this.isRunOut()) {
this.timerFinished();
}
};
this.onEnterFrame = function () {
this.checkStatus();
this.updateDisplay();
};
this.mcExtends(this.CountDownTimer, 10);
Symbol 271 Button
on (release) {
this.reset();
}
Symbol 279 Button
on (release) {
nextLevel();
}
Symbol 297 Button
on (release) {
_parent.submitResults();
}
Instance of Symbol 300 MovieClip "submitError" in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 306 Button
on (release) {
this.reset();
}
Symbol 344 Button
on (release) {
this.reset();
}
Symbol 345 MovieClip Frame 2
function Game() {
this.class = "Game";
this.cash = _root.gameData.startingCash;
this.updateDisplay();
this.properties = new Array();
this.propertiesBought = new Array();
cantAffordSound = new Sound();
cantAffordSound.attachSound("Cant Afford Sound");
this.instructionScreen = 0;
trace("Cond" + (this.instructionScreen <= 1));
this.init = function () {
gotoAndPlay (3);
this.cash = _root.gameData.startingCash;
this.updateDisplay();
this.properties = new Array();
this.propertiesBought = new Array();
this.playing = 0;
};
this.reset = function () {
this.init();
this.instructionScreen = 4;
this.nextInstructionScreen();
};
this.quit = function () {
gotoAndPlay (1);
};
this.nextInstructionScreen = function () {
if (this.instructionScreen > _root.gameData.noInstructionScreens) {
this.playLevel();
} else {
gotoAndPlay("Instructions " + this.instructionScreen);
this.instructionScreen++;
}
};
this.registerProperty = function (iName) {
this.properties.push(iName);
return(1);
};
this.playLevel = function () {
gotoAndPlay (79);
trace(property1.sellOrBuy());
this.playing = 1;
this.timeStarted = getTimer();
};
this.updateTimer = function () {
msPerMonth = 1000;
timePassed = getTimer() - this.timeStarted;
monthsPassed = timePassed / msPerMonth;
timeTaken = Math.floor(monthsPassed);
yearsPassed = Math.floor(monthsPassed / 12);
remainderMonthsPassed = Math.floor(monthsPassed % 12);
timeTaken = ((yearsPassed + " yrs : ") + remainderMonthsPassed) + " mnths";
};
this.timeOut = function () {
gotoAndPlay (1);
trace("Too slow and more stuff too");
};
this.win = function () {
this.playing = 0;
};
this.submitData = function () {
_root.levelNo = this.levelNo;
_root.getURL(_root.gameData.submitDataURL, "_self", "GET");
};
this.winGame = function () {
gameText = ((("It took you " + yearsPassed) + " years and ") + remainderMonthsPassed) + " months to buy the mansion.\n\n Reckon you can do it quicker? Try again to see if you can!";
this.playing = 0;
trace("playing = " + this.playing);
this.gotoAndStop("Win");
};
this.buyProperty = function (property) {
propertyPrice = property.currentValue;
trace("value: " + property.currentValue);
if (this.cash < propertyPrice) {
this.displayMessage("You don't have enough money to buy that");
cantAffordSound.start();
trace("Can't afford");
property.addFloater("Too Much", 0);
} else {
trace(property._name);
if (property._name eq "mansion") {
trace((("cash: " + this.cash) + " : ") + propertyPrice);
this.winGame();
} else {
property.buy();
this.cash = this.cash - propertyPrice;
}
}
};
this.sellProperty = function (property) {
propertyPrice = property.currentvalue;
property.sell();
this.cash = this.cash + propertyPrice;
};
this.displayMessage = function (message) {
playerMessage = message;
};
this.checkAddProperty = function () {
if ((getTimer() - timeLastAdded) > _root.gameData.addPropertyFrequency) {
this.addProperty();
timeLastAdded = getTimer();
}
};
this.updateAssetsDisplay = function () {
assetCounter = 0;
noProperties = this.properties.length;
counter = 0;
while (counter < this.properties.length) {
propertyName = properties[counter];
property = this[propertyName];
if (property.bought == 1) {
assetCounter = assetCounter + property.currentValue;
}
counter++;
}
this.totalAssets = assetCounter;
};
this.addProperty = function () {
noProperties = this.properties.length;
propertyFound = 0;
do {
propertyNumber = Math.floor(Math.random() * noProperties);
propertyName = properties[propertyNumber];
propertyToAdd = this[propertyName];
if (propertyToAdd.inView == 0) {
propertyFound = 1;
}
} while (propertyFound == 0);
propertyToAdd.appear();
};
this.updateDisplay = function () {
this.cashInK = Math.Floor(this.cash / 1000);
};
this.onEnterFrame = function () {
if (this.playing == 1) {
this.checkAddProperty();
this.updateDisplay();
this.updateTimer();
}
if (awaitingHighScores == 1) {
checkHighScores();
}
};
this.submitResults = function () {
if ((results.name eq "") || (results.email eq "")) {
results.submitError._visible = 1;
} else {
results.score = (Math.floor(yearsPassed) + ".") + Math.floor(monthsPassed);
results.optIn = results.optInBox.getValue();
results.gameID = _root.gameData.gameID;
if (_root.gameData.submitDebug) {
results.getURL(_root.gameData.submitResultsURL, "results", "POST");
} else {
results.loadVariables(_root.gameData.submitResultsURL, "POST");
}
awaitingHighScores = 1;
loadHighScores();
}
};
this.loadHighScores = function () {
gotoAndPlay (148);
if (_root.gameData.submitDebug) {
results.getURL(_root.gameData.getResultsURL, "results", "POST");
} else {
results.loadVariables(_root.gameData.getResultsURL, "POST");
}
};
this.displayHighScores = function () {
gotoAndPlay (158);
};
this.checkHighScores = function () {
trace(results.highScoresReceived);
if (results.highScoresReceived == 1) {
displayHighScores();
}
};
}
this.mcExtends(this.Game, 10);
Symbol 345 MovieClip Frame 16
stop();
Symbol 345 MovieClip Frame 17
stop();
Instance of Symbol 187 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 70;
varName = "defaultValue";
}
Instance of Symbol 187 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 80;
varName = "defaultValue";
}
Instance of Symbol 187 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 100;
varName = "defaultValue";
}
Instance of Symbol 187 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 100;
varName = "defaultValue";
}
Instance of Symbol 187 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 80;
varName = "defaultValue";
}
Instance of Symbol 187 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 70;
varName = "defaultValue";
}
Instance of Symbol 192 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 70;
varName = "defaultValue";
}
Instance of Symbol 192 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 80;
varName = "defaultValue";
}
Instance of Symbol 192 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 90;
varName = "defaultValue";
}
Instance of Symbol 192 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 90;
varName = "defaultValue";
}
Instance of Symbol 192 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 80;
varName = "defaultValue";
}
Instance of Symbol 192 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 70;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 65;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 65;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 65;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 65;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 207 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 40;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 40;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 40;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 20;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 10;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 10;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 10;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 10;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 10;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 60;
varName = "defaultValue";
}
Instance of Symbol 202 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 50;
varName = "defaultValue";
}
Instance of Symbol 216 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 10;
varName = "defaultValue";
}
Instance of Symbol 192 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 70;
varName = "defaultValue";
}
Instance of Symbol 221 MovieClip in Symbol 345 MovieClip Frame 17
//component parameters
onClipEvent (initialize) {
functionToRun = "nextLevel";
}
Symbol 345 MovieClip Frame 26
stop();
Symbol 345 MovieClip Frame 35
stop();
Symbol 345 MovieClip Frame 45
stop();
Symbol 345 MovieClip Frame 55
stop();
Symbol 345 MovieClip Frame 78
stop();
Symbol 345 MovieClip Frame 79
stop();
Instance of Symbol 259 MovieClip "mansion" in Symbol 345 MovieClip Frame 79
//component parameters
onClipEvent (initialize) {
averageStartingPrice = 110;
varName = "defaultValue";
}
Instance of Symbol 221 MovieClip in Symbol 345 MovieClip Frame 124
//component parameters
onClipEvent (initialize) {
functionToRun = "nextLevel";
}
Symbol 345 MovieClip Frame 129
stop();
Instance of Symbol 221 MovieClip in Symbol 345 MovieClip Frame 130
//component parameters
onClipEvent (initialize) {
functionToRun = "submitData";
}
Symbol 345 MovieClip Frame 139
stop();
Symbol 345 MovieClip Frame 141
stop();
Symbol 345 MovieClip Frame 148
stop();
Symbol 345 MovieClip Frame 158
stop();