Frame 1
bytes = parseInt(this.getBytesTotal() / 1000);
bar2._width = bytes;
this.onEnterFrame = function () {
bytesloaded = parseInt(this.getBytesLoaded() / 1000);
bar._width = bytesloaded;
if (bytesloaded == bytes) {
this.onEnterFrame = null;
gotoAndPlay (2);
}
};
stop();
Frame 21
function init(bool) {
paper_mc.gotoAndPlay("off");
depth = 1;
drawing = false;
replay = false;
pointer = false;
click = 0;
_root.createEmptyMovieClip("line", depth);
if (bool == "start") {
navbutt_mc.gotoAndPlay("on");
mouseclicks = new Array();
mouseclicks[0] = click;
mousepointer(true, true);
}
}
function mousepointer(bool, s) {
if (bool == true) {
Mouse.hide();
_root.attachMovie("fingermc", "finger2", 9999);
_root.finger2._x = 400;
_root.finger2._y = 320;
startDrag ("finger2", true, 0, 0, 550, 350);
pointer = true;
} else {
Mouse.show();
removeMovieClip("finger2");
stopDrag();
pointer = false;
}
}
function fcnrestart() {
fcnclear();
if (pointer == false) {
mousepointer(true);
}
}
function fcnclear() {
killstains();
click = 0;
mouseclicks.splice(0);
_root.line.clear();
}
function fcnsend() {
mousepointer(false);
navbutt_mc.gotoAndPlay("off");
paper_mc.gotoAndPlay("send");
}
function fcnreplay() {
killstains();
_root.line.clear();
mousepointer(false);
replay = true;
redraw();
}
function redraw() {
current_click = 1;
temp = setInterval(draw, REDRAWDELAY, current_click);
}
function draw(num) {
clearInterval(temp);
mousepoints = mouseclicks[num].split("|");
total_points = mousepoints.length - 1;
line.lineStyle(LINEWIDTH, LINECOLOR, 100);
initcoords = mousepoints[0].split(",");
currx = initcoords[0];
curry = initcoords[1];
line.moveTo(currx, curry);
_root.attachMovie("fingermc", "finger3", 9999);
finger3._x = currx;
finger3._y = curry;
finger3.top._x = FINGEROFFX;
finger3.shadow._alpha = FINGERSHADOWOFF;
temp = setInterval(connectthedots, REDRAWSPEED, 1);
}
function connectthedots(num) {
clearInterval(temp);
coords = mousepoints[num].split(",");
tmpx = coords[0];
tmpy = coords[1];
distx = Math.abs(currx - tmpx);
disty = Math.abs(curry - tmpy);
mspeed = distx + disty;
newlinewidth = linebleed(tmpx, tmpy, mspeed);
line.lineStyle(newlinewidth, LINECOLOR, 100);
line.lineTo(tmpx, tmpy);
finger3._x = tmpx;
finger3._y = tmpy;
finger3.top._x = FINGERONX;
finger3.shadow._alpha = FINGERSHADOWON;
currx = tmpx;
curry = tmpy;
if ((num < total_points) && (replay == true)) {
num = num + 1;
temp = setInterval(connectthedots, REDRAWSPEED, num);
} else if ((current_click < click) && (replay == true)) {
current_click = current_click + 1;
temp = setInterval(draw, REDRAWLINEDELAY, current_click);
} else if ((current_click == click) || (replay == false)) {
removeMovieClip("finger3");
replay = false;
if (id) {
temp = setInterval(showmepaper, 3000);
} else {
mousepointer(true);
}
}
}
function showmepaper() {
clearInterval(temp);
paper_mc.gotoAndPlay("replay");
}
function linebleed(x, y, ms) {
ms = ms + 4;
bonus = 25 / ms;
if (bonus > 4) {
depth++;
newmcname = "stain" + depth;
_root.attachMovie("stainmc", newmcname, depth);
_root[newmcname]._x = x;
_root[newmcname]._y = y;
}
bleed = LINEWIDTH + bonus;
return(bleed);
}
function killstains() {
i = 2;
while (i <= depth) {
newmcname = "stain" + i;
removeMovieClip(newmcname);
i++;
}
depth = 1;
}
function getmessage() {
lv = new LoadVars();
lv.id = id;
lv.sendAndLoad("getmessage.php", lv, "POST");
lv.onLoad = replayerz;
}
function replayerz() {
if (this.replayerror == null) {
mouseclicks = this.points.split("Z");
click = mouseclicks[0];
replay = true;
redraw();
} else if (this.replayerror == "invalid") {
errormsg = "this wall does not exist!!";
} else {
errormsg = "this wall is top secret!!";
}
}
function trim(s) {
var mx;
var i;
mx = s.length;
while (mx > 0) {
if (ord(substring(s, mx, 1)) > 32) {
break;
}
mx--;
}
i = 1;
while (i < mx) {
if (ord(substring(s, i, 1)) > 32) {
break;
}
i++;
}
return(substring(s, i, (mx + 1) - i));
}
LINEWIDTH = 10;
LINECOLOR = 13369344 /* 0xCC0000 */;
REDRAWDELAY = 750;
REDRAWLINEDELAY = 300;
REDRAWSPEED = 25;
FINGERSHADOWON = 25;
FINGERSHADOWOFF = 10;
FINGERONX = -23;
FINGEROFFX = -15;
grunge.swapDepths(10000);
title.swapDepths(10050);
navbutt_mc.swapDepths(10100);
paper_mc.swapDepths(10101);
drawarea.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (pointer == true)) {
drawing = true;
finger2.top._x = FINGERONX;
finger2.shadow._alpha = FINGERSHADOWON;
click = click + 1;
mouseclicks[0] = click;
mouseclicks[click] = (_xmouse + ",") + _ymouse;
line.lineStyle(LINEWIDTH, LINECOLOR, 100);
line.moveTo(_xmouse, _ymouse);
currx = _xmouse + 0.15;
curry = _ymouse + 0.45;
line.lineTo(currx, curry);
mouseclicks[click] = (((mouseclicks[click] + "|") + currx) + ",") + curry;
this.onMouseMove = function () {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && (pointer == true)) {
tmpx = _xmouse;
tmpy = _ymouse;
mouseclicks[click] = (((mouseclicks[click] + "|") + tmpx) + ",") + tmpy;
distx = Math.abs(currx - tmpx);
disty = Math.abs(curry - tmpy);
mspeed = distx + disty;
newlinewidth = linebleed(tmpx, tmpy, mspeed);
line.lineStyle(newlinewidth, LINECOLOR, 100);
line.lineTo(tmpx, tmpy);
currx = tmpx;
curry = tmpy;
updateAfterEvent();
}
};
}
};
drawarea.onMouseUp = function () {
drawing = false;
finger2.top._x = FINGEROFFX;
finger2.shadow._alpha = FINGERSHADOWOFF;
this.onMouseMove = null;
};
_root.onMouseMove = function () {
if ((pointer == true) && (drawing == false)) {
stopDrag();
Mouse.show();
}
if ((_root.drawarea.hitTest(_root._xmouse, _root._ymouse, true) && (pointer == true)) && (drawing == false)) {
startDrag ("finger2", true, -20, 0, 550, 350);
Mouse.hide();
}
};
if (_root.id != null) {
init("replay");
navbutt_mc.gotoAndPlay("off");
getmessage();
} else {
init("start");
}
_root.createEmptyMovieClip("audio", 0);
audio.loadMovie("audio.swf");
stop();
Symbol 11 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 17 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 23 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame4, "shadow");
component.registerSkinElement(frame2, "darkshadow");
component.registerSkinElement(frame3, "highlight");
component.registerSkinElement(frame1, "highlight3D");
Symbol 29 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(frame5, "face");
component.registerSkinElement(frame3, "shadow");
component.registerSkinElement(frame1, "darkshadow");
component.registerSkinElement(frame4, "highlight");
component.registerSkinElement(frame2, "highlight3D");
Symbol 30 MovieClip [fpb_states] Frame 1
stop();
Symbol 30 MovieClip [fpb_states] Frame 2
stop();
Symbol 30 MovieClip [fpb_states] Frame 3
stop();
Symbol 30 MovieClip [fpb_states] Frame 4
stop();
Symbol 34 MovieClip [FBoundingBoxSymbol] Frame 1
var component = _parent;
component.registerSkinElement(boundingBox, "background");
stop();
Symbol 34 MovieClip [FBoundingBoxSymbol] Frame 2
component.registerSkinElement(boundingBox2, "backgroundDisabled");
stop();
Symbol 37 MovieClip [FPushButtonSymbol] Frame 1
#initclip 4
function FPushButtonClass() {
this.init();
}
FPushButtonClass.prototype = new FUIComponentClass();
Object.registerClass("FPushButtonSymbol", FPushButtonClass);
FPushButtonClass.prototype.init = function () {
super.setSize(this._width, this._height);
this.boundingBox_mc.unloadMovie();
this.attachMovie("fpb_states", "fpbState_mc", 1);
this.attachMovie("FLabelSymbol", "fLabel_mc", 2);
this.attachMovie("fpb_hitArea", "fpb_hitArea_mc", 3);
super.init();
this.btnState = false;
this.setClickHandler(this.clickHandler);
this._xscale = 100;
this._yscale = 100;
this.setSize(this.width, this.height);
if (this.label != undefined) {
this.setLabel(this.label);
}
this.ROLE_SYSTEM_PUSHBUTTON = 43;
this.STATE_SYSTEM_PRESSED = 8;
this.EVENT_OBJECT_STATECHANGE = 32778;
this.EVENT_OBJECT_NAMECHANGE = 32780;
this._accImpl.master = this;
this._accImpl.stub = false;
this._accImpl.get_accRole = this.get_accRole;
this._accImpl.get_accName = this.get_accName;
this._accImpl.get_accState = this.get_accState;
this._accImpl.get_accDefaultAction = this.get_accDefaultAction;
this._accImpl.accDoDefaultAction = this.accDoDefaultAction;
};
FPushButtonClass.prototype.setHitArea = function (w, h) {
var hit = this.fpb_hitArea_mc;
this.hitArea = hit;
hit._visible = false;
hit._width = w;
hit._height = ((arguments.length > 1) ? (h) : (hit._height));
};
FPushButtonClass.prototype.setSize = function (w, h) {
w = ((w < 6) ? 6 : (w));
if (arguments.length > 1) {
if (h < 6) {
h = 6;
}
}
super.setSize(w, h);
this.setLabel(this.getLabel());
this.arrangeLabel();
this.setHitArea(w, h);
this.boundingBox_mc._width = w;
this.boundingBox_mc._height = h;
this.drawFrame();
if (this.focused) {
super.myOnSetFocus();
}
this.initContentPos("fLabel_mc");
};
FPushButtonClass.prototype.arrangeLabel = function () {
var label = this.fLabel_mc;
var h = this.height;
var w = (this.width - 2);
var b = 1;
this.fLabel_mc.setSize(w - (b * 4));
label._x = b * 3;
label._y = (h / 2) - (label._height / 2);
};
FPushButtonClass.prototype.getLabel = function () {
return(this.fLabel_mc.labelField.text);
};
FPushButtonClass.prototype.setLabel = function (label) {
this.fLabel_mc.setLabel(label);
this.txtFormat();
this.arrangeLabel();
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_NAMECHANGE);
}
};
FPushButtonClass.prototype.getEnabled = function () {
return(this.enabled);
};
FPushButtonClass.prototype.setEnabled = function (enable) {
if (enable || (enable == undefined)) {
this.gotoFrame(1);
this.drawFrame();
this.flabel_mc.setEnabled(true);
this.enabled = true;
super.setEnabled(true);
} else {
this.gotoFrame(4);
this.drawFrame();
this.flabel_mc.setEnabled(false);
this.enabled = false;
super.setEnabled(false);
}
};
FPushButtonClass.prototype.txtFormat = function () {
var txtS = this.textStyle;
var sTbl = this.styleTable;
txtS.align = ((sTbl.textAlign.value == undefined) ? ((txtS.align = "center")) : undefined);
txtS.leftMargin = ((sTbl.textLeftMargin.value == undefined) ? ((txtS.leftMargin = 1)) : undefined);
txtS.rightMargin = ((sTbl.textRightMargin.value == undefined) ? ((txtS.rightMargin = 1)) : undefined);
if (this.fLabel_mc._height > this.height) {
super.setSize(this.width, this.fLabel_mc._height);
} else {
super.setSize(this.width, this.height);
}
this.fLabel_mc.labelField.setTextFormat(this.textStyle);
this.setEnabled(this.enable);
};
FPushButtonClass.prototype.drawFrame = function () {
var b = 1;
var x1 = 0;
var y1 = 0;
var x2 = this.width;
var y2 = this.height;
var mc_array = ["up_mc", "over_mc", "down_mc", "disabled_mc"];
var frame = mc_array[this.fpbState_mc._currentframe - 1];
var mc = "frame";
var i = 0;
while (i < 6) {
x1 = x1 + ((i % 2) * b);
y1 = y1 + ((i % 2) * b);
x2 = x2 - (((i + 1) % 2) * b);
y2 = y2 - (((i + 1) % 2) * b);
var w = (Math.abs(x1 - x2) + (2 * b));
var h = (Math.abs(y1 - y2) + (2 * b));
this.fpbState_mc[frame][mc + i]._width = w;
this.fpbState_mc[frame][mc + i]._height = h;
this.fpbState_mc[frame][mc + i]._x = x1 - b;
this.fpbState_mc[frame][mc + i]._y = y1 - b;
i++;
}
};
FPushButtonClass.prototype.setClickHandler = function (chng, obj) {
this.handlerObj = ((arguments.length < 2) ? (this._parent) : (obj));
this.clickHandler = chng;
};
FPushButtonClass.prototype.executeCallBack = function () {
this.handlerObj[this.clickHandler](this);
};
FPushButtonClass.prototype.initContentPos = function (mc) {
this.incrVal = 1;
this.initx = this[mc]._x - (this.getBtnState() * this.incrVal);
this.inity = this[mc]._y - (this.getBtnState() * this.incrVal);
this.togx = this.initx + this.incrVal;
this.togy = this.inity + this.incrVal;
};
FPushButtonClass.prototype.setBtnState = function (state) {
this.btnState = state;
if (state) {
this.fLabel_mc._x = this.togx;
this.fLabel_mc._y = this.togy;
} else {
this.fLabel_mc._x = this.initx;
this.fLabel_mc._y = this.inity;
}
};
FPushButtonClass.prototype.getBtnState = function () {
return(this.btnState);
};
FPushButtonClass.prototype.myOnSetFocus = function () {
this.focused = true;
super.myOnSetFocus();
};
FPushButtonClass.prototype.onPress = function () {
this.pressFocus();
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
this.setBtnState(true);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRelease = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
this.executeCallBack();
this.setBtnState(false);
if (Accessibility.isActive()) {
Accessibility.sendEvent(this, 0, this.EVENT_OBJECT_STATECHANGE, true);
}
};
FPushButtonClass.prototype.onRollOver = function () {
this.fpbState_mc.gotoAndStop(2);
this.drawFrame();
};
FPushButtonClass.prototype.onRollOut = function () {
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onReleaseOutside = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOut = function () {
this.setBtnState(false);
this.fpbState_mc.gotoAndStop(1);
this.drawFrame();
};
FPushButtonClass.prototype.onDragOver = function () {
this.setBtnState(true);
this.fpbState_mc.gotoAndStop(3);
this.drawFrame();
};
FPushButtonClass.prototype.myOnKeyDown = function () {
if ((Key.getCode() == 32) && (this.pressOnce == undefined)) {
this.onPress();
this.pressOnce = 1;
}
};
FPushButtonClass.prototype.myOnKeyUp = function () {
if (Key.getCode() == 32) {
this.onRelease();
this.pressOnce = undefined;
}
};
FPushButtonClass.prototype.get_accRole = function (childId) {
return(this.master.ROLE_SYSTEM_PUSHBUTTON);
};
FPushButtonClass.prototype.get_accName = function (childId) {
return(this.master.getLabel());
};
FPushButtonClass.prototype.get_accState = function (childId) {
if (this.pressOnce) {
return(this.master.STATE_SYSTEM_PRESSED);
}
return(this.master.STATE_SYSTEM_DEFAULT);
};
FPushButtonClass.prototype.get_accDefaultAction = function (childId) {
return("Press");
};
FPushButtonClass.prototype.accDoDefaultAction = function (childId) {
this.master.onPress();
this.master.onRelease();
};
#endinitclip
boundingBox_mc._visible = false;
deadPreview._visible = false;
Symbol 47 MovieClip 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 49 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "background");
Symbol 51 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 53 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(background_mc, "backgroundDisabled");
Symbol 56 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "foregroundDisabled");
Symbol 59 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(check_mc, "check");
Symbol 60 MovieClip [fcb_states] Frame 1
stop();
Symbol 60 MovieClip [fcb_states] Frame 2
stop();
Symbol 60 MovieClip [fcb_states] Frame 3
stop();
Symbol 60 MovieClip [fcb_states] Frame 4
stop();
Symbol 60 MovieClip [fcb_states] Frame 5
stop();
Symbol 60 MovieClip [fcb_states] Frame 6
stop();
Symbol 63 MovieClip [FLabelSymbol] Frame 1
#initclip 1
_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 64 MovieClip [FUIComponentSymbol] Frame 1
#initclip 2
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var i in this.styleFormat_prm) {
this.setStyleProperty(i, this.styleFormat_prm[i]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var funct in this.methodTable) {
this[funct]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var inner = this.styleTable.focusRectInner.value;
var outer = this.styleTable.focusRectOuter.value;
if (inner == undefined) {
inner = 16777215 /* 0xFFFFFF */;
}
if (outer == undefined) {
outer = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, outer);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, inner);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var tmpValue = parseInt(value);
if (!isNaN(tmpValue)) {
value = tmpValue;
}
var global = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!global)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var textProp = propName.subString(4, propName.length);
this.textStyle[textProp] = value;
this.invalidate("setSize");
} else {
for (var j in this.styleTable[propName].coloredMCs) {
var myColor = new Color(this.styleTable[propName].coloredMCs[j]);
if (this.styleTable[propName].value == undefined) {
var myTObj = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
myColor.setTransform(myTObj);
} else {
myColor.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = global;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var myColor = new Color(skinMCRef);
myColor.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var i in arguments[0]) {
this[i] = arguments[0][i];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var arg = 0;
while (arg < arguments.length) {
var mcRef = arguments[arg];
this.listeners[arguments[arg]] = mcRef;
for (var i in this) {
if (this.isAStyle(i)) {
mcRef.updateStyleProperty(this, i.toString());
}
}
arg++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var prop in this) {
if (this.isAStyle(prop)) {
if (component.styleTable[prop].useGlobal == this.isGlobal) {
component.styleTable[prop].useGlobal = true;
var value = (this.isGlobal ? undefined : (globalStyleFormat[prop]));
component.setStyleProperty(prop, value, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var count = 0;
for (var i in this.listeners) {
var component = this.listeners[i];
if (arguments.length > 0) {
var j = 0;
while (j < arguments.length) {
if (this.isAStyle(arguments[j])) {
component.updateStyleProperty(this, arguments[j]);
}
j++;
}
} else {
for (var j in this) {
if (this.isAStyle(j)) {
component.updateStyleProperty(this, j.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 67 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 86 MovieClip [stainmc] Frame 1
this.stop();
randum = Math.ceil(Math.random() * 4);
if (randum == 1) {
this.gotoAndPlay("one");
} else if (randum == 2) {
this.gotoAndPlay("two");
} else if (randum == 3) {
this.gotoAndPlay("three");
} else if (randum == 4) {
this.gotoAndPlay("four");
}
Symbol 86 MovieClip [stainmc] Frame 20
this.stop();
Symbol 86 MovieClip [stainmc] Frame 40
this.stop();
Symbol 86 MovieClip [stainmc] Frame 60
this.stop();
Symbol 86 MovieClip [stainmc] Frame 86
this.stop();
Symbol 107 MovieClip Frame 1
this.stop();
Symbol 107 MovieClip Frame 2
this.stop();
Symbol 112 MovieClip Frame 1
this.stop();
Symbol 112 MovieClip Frame 2
this.stop();
Symbol 117 MovieClip Frame 1
this.stop();
Symbol 117 MovieClip Frame 2
this.stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
stop();
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 2
stop();
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 107 MovieClip "butt_restart" in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
if ((_root.click > 0) && (_root.replay == false)) {
_root.fcnrestart();
}
};
this.tabEnabled = false;
}
Instance of Symbol 112 MovieClip "butt_replay" in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
if ((_root.click > 0) && (_root.replay == false)) {
_root.fcnreplay();
}
};
this.tabEnabled = false;
}
Instance of Symbol 117 MovieClip "butt_send" in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
if ((_root.click > 0) && (_root.replay == false)) {
_root.fcnsend();
}
};
this.tabEnabled = false;
}
Instance of Symbol 122 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
getURL ("http://www.bloodyfingermail.com/");
};
this.tabEnabled = false;
}
Instance of Symbol 127 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
getURL ("lastwrites.php");
};
this.tabEnabled = false;
}
Instance of Symbol 130 MovieClip "engine" in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
getURL ("http://www.enginedigital.com/", "new");
};
}
Instance of Symbol 135 MovieClip "mc_email" in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
this.onRelease = function () {
getURL ("mailto:info@bloodyfingermail.com?subject=hmmm, about this site...");
};
this.tabEnabled = false;
}
Symbol 136 MovieClip Frame 2
stop();
Symbol 162 MovieClip Frame 1
this.stop();
Symbol 162 MovieClip Frame 2
this.stop();
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
stop();
Symbol 172 MovieClip Frame 1
this.stop();
Symbol 172 MovieClip Frame 2
this.stop();
Symbol 177 MovieClip Frame 1
this.stop();
Symbol 177 MovieClip Frame 2
this.stop();
Symbol 184 MovieClip Frame 1
this.stop();
Symbol 184 MovieClip Frame 2
this.stop();
Symbol 189 MovieClip Frame 1
this.stop();
Symbol 189 MovieClip Frame 2
this.stop();
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
function validate() {
subject = _root.trim(subject);
recipName = _root.trim(recipName);
recipEmail = _root.trim(recipEmail);
senderName = _root.trim(senderName);
senderEmail = _root.trim(senderEmail);
if ((subject == "") || (subject == null)) {
error = "Please enter a subject.";
status = "";
} else if ((recipName == "") || (recipName == null)) {
error = "Please enter send to name.";
status = "";
} else if (((((recipEmail.indexOf("@") == -1) || (recipEmail.indexOf(".") == -1)) || (recipEmail.indexOf(" ") != -1)) || (recipEmail == "")) || (recipEmail == null)) {
error = "Please enter valid send to email.";
status = "";
} else if ((senderName == "") || (senderName == null)) {
error = "Please enter your name.";
status = "";
} else if (((((senderEmail.indexOf("@") == -1) || (senderEmail.indexOf(".") == -1)) || (senderEmail.indexOf(" ") != -1)) || (senderEmail == "")) || (senderEmail == null)) {
error = "Please enter your email.";
status = "";
} else {
error = "";
sendmail();
}
}
function sendmail() {
points = _root.mouseclicks.join("Z");
loadVariablesNum ("sendmail.php", 0, "POST");
senderName = "You";
senderEmail = "";
recipName = "Somebody";
recipEmail = "";
subject = "Bloody Finger Mail";
galleryBool = "true";
gotoAndPlay (3);
}
galleryBool = "true";
status = "";
input_subject.tabIndex = 1;
input_recipName.tabIndex = 2;
input_recipEmail.tabIndex = 3;
input_senderName.tabIndex = 4;
input_senderEmail.tabIndex = 5;
butt_checkbox.tabIndex = 6;
butt_sendmail.onRelease = function () {
if (status != "sent") {
status = "sent";
validate();
}
};
butt_clear.onRelease = function () {
senderName = "";
senderEmail = "";
recipName = "";
recipEmail = "";
subject = "";
galleryBool = "true";
status = "";
butt_checkbox.gotoAndStop(1);
};
butt_cancel.onRelease = function () {
senderName = "You";
senderEmail = "";
recipName = "Somebody";
recipEmail = "";
subject = "Bloody Finger Mail";
galleryBool = "true";
butt_checkbox.gotoAndStop(1);
_root.navbutt_mc.gotoAndPlay("on");
_root.mousepointer(true);
_root.paper_mc.gotoAndPlay("off");
};
butt_checkbox.onRelease = function () {
if (galleryBool == "false") {
butt_checkbox.gotoAndStop(1);
galleryBool = "true";
} else {
butt_checkbox.gotoAndStop(2);
galleryBool = "false";
}
};
stop();
Instance of Symbol 167 MovieClip "butt_sendmail" in Symbol 203 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
}
Instance of Symbol 172 MovieClip "butt_clear" in Symbol 203 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
}
Instance of Symbol 177 MovieClip "butt_cancel" in Symbol 203 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
gotoAndStop (2);
};
this.onRollOut = function () {
gotoAndStop (1);
};
}
Symbol 203 MovieClip Frame 3
butt_another.onRollOver = function () {
this.gotoAndStop(2);
};
butt_another.onRollOut = function () {
this.gotoAndStop(1);
};
butt_another.onRelease = function () {
_root.fcnrestart();
_root.navbutt_mc.gotoAndPlay("on");
gotoAndPlay (1);
};
butt_gallery.onRollOver = function () {
this.gotoAndStop(2);
};
butt_gallery.onRollOut = function () {
this.gotoAndStop(1);
};
butt_gallery.onRelease = function () {
_root.getURL("lastwrites.php");
};
stop();
Symbol 203 MovieClip Frame 4
butt_watch.onRollOver = function () {
this.gotoAndStop(2);
};
butt_watch.onRollOut = function () {
this.gotoAndStop(1);
};
butt_watch.onRelease = function () {
_root.fcnreplay();
gotoAndPlay (1);
};
butt_make.onRollOver = function () {
this.gotoAndStop(2);
};
butt_make.onRollOut = function () {
this.gotoAndStop(1);
};
butt_make.onRelease = function () {
_root.navbutt_mc.gotoAndPlay("on");
_root.fcnrestart();
_root.id = null;
gotoAndPlay (1);
};
stop();