Frame 1
my_cm.onSelect = function () {
noman._visible = true;
};
function mysite() {
getURL ("http://mbhproductions.tk", _blank);
}
function abs() {
getURL ("http://albinoblacksheep.com", _blank);
}
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.quality = true;
my_cm.customItems.push(new ContextMenuItem("MBH Productions", mysite));
my_cm.customItems.push(new ContextMenuItem("AlbinoBlackSheep.com", abs));
this.menu = my_cm;
noman._visible = false;
PercentLoaded = (getBytesLoaded() / getBytesTotal()) * 100;
if (PercentLoaded != 100) {
prog._xscale = PercentLoaded;
PercentLoaded = (Math.round(PercentLoaded * 100) / 100) + "% there";
timed = getTimer() - time;
byted = getBytesLoaded() - byte;
byte = getBytesLoaded();
time = getTimer();
rate6 = rate5;
rate5 = rate4;
rate4 = rate3;
rate3 = rate2;
rate2 = rate1;
rate1 = byted / timed;
rate = (((((rate1 + rate2) + rate3) + rate4) + rate5) + rate6) / 6;
left = (getBytesTotal() - byte) * (1 / rate);
armpit = Math.ceil(left / 4000);
left = (Math.ceil(left / (armpit * 1000)) * armpit) + " seconds remaining";
rate = Math.round(rate * 1000) + " bytes per second";
} else {
gotoAndStop (3);
}
my_cm.onSelect = function () {
noman._visible = true;
};
Frame 2
gotoAndPlay (1);
Frame 3
yall._visible = false;
stop();
Frame 5
function mysite() {
getURL ("http://mbhproductions.tk", _blank);
}
function abs() {
getURL ("http://albinoblacksheep.com", _blank);
}
function upd() {
clocknum = ("Clock " + (_currentframe - 6).toString()) + "/10";
}
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
my_cm.builtInItems.quality = true;
my_cm.customItems.push(new ContextMenuItem("MBH Productions", mysite));
my_cm.customItems.push(new ContextMenuItem("AlbinoBlackSheep.com", abs));
this.menu = my_cm;
var clockname = new String();
var description = new String();
var clocknum = new String();
gotoAndStop (7);
Frame 6
gotoAndStop (16);
Frame 7
upd();
var d = new Date();
var fart = new Number();
var hour = new Number();
var min = new Number();
var sec = new Number();
clockname = "Open Clock";
description = "Kenny, on his wheel, powers this exquisite timepiece. Cam wheel (lower-left) advances seconds. Red wires power seconds, yellow powers minutes, and blue moves hours. All the gear ratios should be approximately correct.";
cam.stop();
onEnterFrame = function () {
d = new Date();
hour = d.getHours();
min = d.getMinutes();
sec = d.getSeconds();
cam.gotoAndStop(Math.round(0.011 * d.getMilliseconds()) + 1);
fart = 18 * sec;
gear1._rotation = fart;
fart = fart / 3;
gear2._rotation = fart;
gear3._rotation = fart;
gear9._rotation = fart;
redhand._rotation = fart - 90;
fart = (min * 120) + (sec * 2);
gear4._rotation = -fart;
fart = fart / 10;
gear5._rotation = -fart;
fart = fart / 2;
gear6._rotation = -fart;
gear7._rotation = (-fart) - 5;
gear8._rotation = fart;
yellowhand._rotation = fart - 90;
gear10._rotation = fart;
fart = ((hour + (min / 60)) + ((sec / 60) / 60)) * 30;
gear11._rotation = fart;
gear12._rotation = fart;
bluehand._rotation = fart - 90;
};
stop();
Frame 8
function gen(xo, num) {
switch (num) {
case 0 :
tarr = a0;
break;
case 1 :
tarr = a1;
break;
case 2 :
tarr = a2;
break;
case 3 :
tarr = a3;
break;
case 4 :
tarr = a4;
break;
case 5 :
tarr = a5;
break;
case 6 :
tarr = a6;
break;
case 7 :
tarr = a7;
break;
case 8 :
tarr = a8;
break;
case 9 :
tarr = a9;
break;
default :
tarr = a0;
}
temp = tarr.length;
near = 0;
temp3 = true;
temp = tarr.length;
v = 0;
while (v < temp) {
temp2 = (tarr[v] + xo) + 650;
onarr[temp2] = temp3;
_root.life["q" + temp2]._visible = temp3;
v++;
}
}
upd();
clockname = "Clock of Life";
description = "The cells are defined by the time value, following the Game's rules: A cell survives if it is neighbored by 2 or 3 other cells. A new cell is created if it has 3 neighbors. This rule creates the patterns. Play with it at the above site.";
var d = new Date();
var temp2 = new Number();
var tarr = new Array();
var sec = new Number();
var lsec = new Number();
var sec1 = new Number();
var sec2 = new Number();
var min = new Number();
var min1 = new Number();
var min2 = new Number();
var hour = new Number();
var hour1 = new Number();
var hour2 = new Number();
var near = new Number();
var onarr = new Array(1500);
var temp = new Number();
var temp3 = new Boolean();
var n = new Number(0);
while (n < 1500) {
onarr[n] = false;
life.attachMovie("gbox", "q" + n, n);
temp = Math.floor(n / 50);
life["q" + n]._y = temp * 10;
life["q" + n]._x = (n - (temp * 50)) * 10;
life["q" + n]._visible = false;
n++;
}
var all = new Array(0, 1, 2, 50, 51, 52, 100, 101, 102, 150, 151, 152, 200, 201, 202, -1, -51, -50, -49, -48, -47, 3, 49, 53, 99, 103, 149, 153, 199, 203, 249, 250, 251, 252, 253);
var a0 = new Array(1, 50, 52, 100, 102, 150, 152, 201);
var a1 = new Array(2, 51, 52, 102, 152, 202);
var a2 = new Array(0, 1, 52, 101, 150, 200, 201, 202);
var a3 = new Array(0, 1, 52, 101, 152, 200, 201);
var a4 = new Array(0, 2, 50, 52, 100, 101, 102, 152, 202);
var a5 = new Array(0, 1, 2, 50, 100, 101, 152, 200, 201);
var a6 = new Array(1, 2, 50, 100, 101, 150, 152, 201);
var a7 = new Array(0, 1, 2, 52, 101, 150, 200);
var a8 = new Array(1, 2, 0, 50, 52, 100, 101, 102, 150, 152, 200, 201, 202);
var a9 = new Array(1, 50, 52, 101, 102, 152, 200, 201);
var v = new Number();
life.onEnterFrame = function () {
n = 0;
while (n < 1500) {
near = 0;
if (onarr[n - 1]) {
near++;
}
if (onarr[n + 1]) {
near++;
}
if (onarr[n - 50]) {
near++;
}
if (onarr[n + 50]) {
near++;
}
if (onarr[n - 51]) {
near++;
}
if (onarr[n + 51]) {
near++;
}
if (onarr[n - 49] && ((n - (Math.floor(n / 50) * 50)) != 49)) {
near++;
}
if (onarr[n + 49] && ((n - (Math.floor(n / 50) * 50)) != 0)) {
near++;
}
if (onarr[n]) {
if ((near < 2) || (near > 3)) {
onarr[n] = false;
this["q" + n]._visible = false;
}
} else if (near == 3) {
onarr[n] = true;
this["q" + n]._visible = true;
}
n++;
}
d = new Date();
sec = d.getSeconds();
if (sec != lsec) {
var n = new Number(0);
while (n < 1500) {
onarr[n] = false;
life["q" + n]._visible = false;
n++;
}
onarr[720] = true;
life.q720._visible = true;
onarr[730] = true;
life.q730._visible = true;
onarr[820] = true;
life.q820._visible = true;
onarr[830] = true;
life.q830._visible = true;
sec1 = Math.floor(sec / 10);
sec2 = sec - (sec1 * 10);
min = d.getMinutes();
hour = d.getHours();
min1 = Math.floor(min / 10);
min2 = min - (min1 * 10);
hour1 = Math.floor(hour / 10);
hour2 = hour - (hour1 * 10);
this._parent.gen(12, hour1);
this._parent.gen(16, hour2);
this._parent.gen(22, min1);
this._parent.gen(26, min2);
this._parent.gen(32, sec1);
this._parent.gen(36, sec2);
this._parent.h1.gotoAndStop(hour1 + 1);
this._parent.h2.gotoAndStop(hour2 + 1);
this._parent.m1.gotoAndStop(min1 + 1);
this._parent.m2.gotoAndStop(min2 + 1);
this._parent.s1.gotoAndStop(sec1 + 1);
this._parent.s2.gotoAndStop(sec2 + 1);
}
lsec = sec;
updateAfterEvent();
};
stop();
Frame 9
function drawCircle(mc, x, y, r) {
mc.moveTo(x + r, y);
mc.curveTo(r + x, (0.414213562373095 * r) + y, (Math.SQRT1_2 * r) + x, (Math.SQRT1_2 * r) + y);
mc.curveTo((0.414213562373095 * r) + x, r + y, x, r + y);
mc.curveTo((-0.414213562373095 * r) + x, r + y, (-0.707106781186548 * r) + x, (Math.SQRT1_2 * r) + y);
mc.curveTo((-r) + x, (0.414213562373095 * r) + y, (-r) + x, y);
mc.curveTo((-r) + x, (-0.414213562373095 * r) + y, (-0.707106781186548 * r) + x, (-0.707106781186548 * r) + y);
mc.curveTo((-0.414213562373095 * r) + x, (-r) + y, x, (-r) + y);
mc.curveTo((0.414213562373095 * r) + x, (-r) + y, (Math.SQRT1_2 * r) + x, (-0.707106781186548 * r) + y);
mc.curveTo(r + x, (-0.414213562373095 * r) + y, r + x, y);
}
upd();
clockname = "Gradient Clock";
description = "The number of colored stripes on each circle represents the amount of time according to the text under it. Move the mouse. Awesome, eh? Made with circles, gradientFills, and a bit of trig.";
this.createEmptyMovieClip("gradient_mc", 0);
this.createEmptyMovieClip("mineye", 1);
this.createEmptyMovieClip("mineye2", 2);
this.createEmptyMovieClip("seceye", 3);
this.createEmptyMovieClip("seceye2", 4);
gradient_mc._y = 75;
mineye._x = 200;
mineye2._x = 200;
mineye2._y = 150;
seceye2._y = 150;
seceye._x = 350;
seceye2._x = 350;
onEnterFrame = function () {
with (gradient_mc) {
d = new Date();
xm = _xmouse - 75;
ym = _ymouse - 75;
h = d.getHours();
if (h == 0) {
h = 12;
}
if (h > 12) {
h = h - 12;
}
h = 150 / h;
dist = Math.sqrt((xm * xm) + (ym * ym));
angle = Math.atan2(ym, xm);
clear();
colors = [16777215, 255, 16777215];
fillType = "radial";
alphas = [70, 100, 70];
ratios = [0, 127.5, 255];
spreadMethod = "repeat";
interpolationMethod = "RGB";
focalPointRatio = dist / 75;
if (focalPointRatio > 1) {
focalPointRatio = 1;
}
matrix = new flash.geom.Matrix();
matrix.createGradientBox(h, h, angle, (75 - (h / 2)) + (((xm / dist) * (75 - (h / 2))) * focalPointRatio), (75 - (h / 2)) + (((ym / dist) * (75 - (h / 2))) * focalPointRatio));
beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
drawCircle(gradient_mc, 75, 75, 75);
endFill();
}
with (mineye) {
d = new Date();
xm = _xmouse - 75;
ym = _ymouse - 75;
h = d.getMinutes();
clear();
if (h >= 10) {
h = 150 / Math.floor(h / 10);
dist = Math.sqrt((xm * xm) + (ym * ym));
angle = Math.atan2(ym, xm);
colors = [16777215, 65280, 16777215];
fillType = "radial";
alphas = [70, 100, 70];
ratios = [0, 127.5, 255];
spreadMethod = "repeat";
interpolationMethod = "RGB";
focalPointRatio = dist / 75;
if (focalPointRatio > 1) {
focalPointRatio = 1;
}
matrix = new flash.geom.Matrix();
matrix.createGradientBox(h, h, angle, (75 - (h / 2)) + (((xm / dist) * (75 - (h / 2))) * focalPointRatio), (75 - (h / 2)) + (((ym / dist) * (75 - (h / 2))) * focalPointRatio));
beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
drawCircle(mineye, 75, 75, 75);
endFill();
} else {
beginFill(16777215, 70);
drawCircle(mineye, 75, 75, 75);
endFill();
}
}
with (mineye2) {
d = new Date();
xm = _xmouse - 75;
ym = _ymouse - 75;
h = d.getMinutes();
clear();
if ((h - (Math.floor(h / 10) * 10)) > 0) {
h = 150 / (h - (Math.floor(h / 10) * 10));
dist = Math.sqrt((xm * xm) + (ym * ym));
angle = Math.atan2(ym, xm);
colors = [16777215, 6750054, 16777215];
fillType = "radial";
alphas = [70, 100, 70];
ratios = [0, 127.5, 255];
spreadMethod = "repeat";
interpolationMethod = "RGB";
focalPointRatio = dist / 75;
if (focalPointRatio > 1) {
focalPointRatio = 1;
}
matrix = new flash.geom.Matrix();
matrix.createGradientBox(h, h, angle, (75 - (h / 2)) + (((xm / dist) * (75 - (h / 2))) * focalPointRatio), (75 - (h / 2)) + (((ym / dist) * (75 - (h / 2))) * focalPointRatio));
beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
drawCircle(mineye2, 75, 75, 75);
endFill();
} else {
beginFill(16777215, 70);
drawCircle(mineye2, 75, 75, 75);
endFill();
}
}
with (seceye) {
d = new Date();
xm = _xmouse - 75;
ym = _ymouse - 75;
h = d.getSeconds();
clear();
if (h >= 10) {
h = 150 / Math.floor(h / 10);
dist = Math.sqrt((xm * xm) + (ym * ym));
angle = Math.atan2(ym, xm);
colors = [16777215, 16711680, 16777215];
fillType = "radial";
alphas = [70, 100, 70];
ratios = [0, 127.5, 255];
spreadMethod = "repeat";
interpolationMethod = "RGB";
focalPointRatio = dist / 75;
if (focalPointRatio > 1) {
focalPointRatio = 1;
}
matrix = new flash.geom.Matrix();
matrix.createGradientBox(h, h, angle, (75 - (h / 2)) + (((xm / dist) * (75 - (h / 2))) * focalPointRatio), (75 - (h / 2)) + (((ym / dist) * (75 - (h / 2))) * focalPointRatio));
beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
drawCircle(seceye, 75, 75, 75);
endFill();
} else {
beginFill(16777215, 70);
drawCircle(seceye, 75, 75, 75);
endFill();
}
}
with (seceye2) {
d = new Date();
xm = _xmouse - 75;
ym = _ymouse - 75;
h = d.getSeconds();
clear();
if ((h - (Math.floor(h / 10) * 10)) > 0) {
h = 150 / (h - (Math.floor(h / 10) * 10));
dist = Math.sqrt((xm * xm) + (ym * ym));
angle = Math.atan2(ym, xm);
colors = [16777215, 16764108, 16777215];
fillType = "radial";
alphas = [70, 100, 70];
ratios = [0, 127.5, 255];
spreadMethod = "repeat";
interpolationMethod = "RGB";
focalPointRatio = dist / 75;
if (focalPointRatio > 1) {
focalPointRatio = 1;
}
matrix = new flash.geom.Matrix();
matrix.createGradientBox(h, h, angle, (75 - (h / 2)) + (((xm / dist) * (75 - (h / 2))) * focalPointRatio), (75 - (h / 2)) + (((ym / dist) * (75 - (h / 2))) * focalPointRatio));
beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
drawCircle(seceye2, 75, 75, 75);
endFill();
} else {
beginFill(16777215, 70);
drawCircle(seceye2, 75, 75, 75);
endFill();
}
}
};
stop();
Frame 10
function setstuff() {
d = new Date();
hour = d.getHours();
min3 = d.getMinutes();
sec3 = d.getSeconds();
if (hour > 12) {
hour = hour - 12;
}
if (hour == 0) {
hour = 12;
}
min = Math.floor(min3 / 10);
min2 = min3 - (min * 10);
sec = Math.floor(sec3 / 10);
sec2 = sec3 - (sec * 10);
}
upd();
clearInterval(intervalID);
clockname = "Abacus Clock";
description = "This abacus is a nontraditional design, as normal abaci don't display the time. The number of beads on the left is the time value as follows: Blue = Hours; Yellow = Ten Minutes; Pale Yellow = Single Minutes; Red = Ten Seconds; Pink = Single Seconds.";
var intervalID = setInterval(this, "setstuff", 200);
var d = new Date();
var harr1 = new Array(13);
var harr2 = new Array(13);
var marr1 = new Array(6);
var marr2 = new Array(6);
var m2arr1 = new Array(10);
var m2arr2 = new Array(10);
var sarr1 = new Array(6);
var sarr2 = new Array(6);
var s2arr1 = new Array(10);
var s2arr2 = new Array(10);
var hour = new Number();
var min = new Number();
var sec = new Number();
var min2 = new Number();
var sec2 = new Number();
var min3 = new Number();
var sec3 = new Number();
var n = new Number();
n = 1;
while (n <= 12) {
harr1[n] = this["hslide" + n]._x;
harr2[n] = harr1[n] + 280;
n++;
}
n = 1;
while (n <= 5) {
marr1[n] = this["mslide" + n]._x;
marr2[n] = marr1[n] + 350;
sarr1[n] = this["sslide" + n]._x;
sarr2[n] = sarr1[n] + 350;
n++;
}
n = 1;
while (n <= 9) {
m2arr1[n] = this["m2slide" + n]._x;
m2arr2[n] = m2arr1[n] + 310;
s2arr1[n] = this["s2slide" + n]._x;
s2arr2[n] = s2arr1[n] + 310;
n++;
}
setstuff();
onEnterFrame = function () {
n = 1;
while (n <= 12) {
if ((this["hslide" + n]._x > harr1[n]) && (hour >= n)) {
this["hslide" + n]._x = this["hslide" + n]._x - 56;
}
if ((this["hslide" + n]._x < harr2[n]) && (hour < n)) {
this["hslide" + n]._x = this["hslide" + n]._x + 56;
}
n++;
}
n = 1;
while (n <= 5) {
if ((this["mslide" + n]._x > marr1[n]) && (min >= n)) {
this["mslide" + n]._x = this["mslide" + n]._x - 70;
}
if ((this["mslide" + n]._x < marr2[n]) && (min < n)) {
this["mslide" + n]._x = this["mslide" + n]._x + 70;
}
if ((this["sslide" + n]._x > sarr1[n]) && (sec >= n)) {
this["sslide" + n]._x = this["sslide" + n]._x - 70;
}
if ((this["sslide" + n]._x < sarr2[n]) && (sec < n)) {
this["sslide" + n]._x = this["sslide" + n]._x + 70;
}
n++;
}
n = 1;
while (n <= 9) {
if ((this["m2slide" + n]._x > m2arr1[n]) && (min2 >= n)) {
this["m2slide" + n]._x = this["m2slide" + n]._x - 62;
}
if ((this["m2slide" + n]._x < m2arr2[n]) && (min2 < n)) {
this["m2slide" + n]._x = this["m2slide" + n]._x + 62;
}
if ((this["s2slide" + n]._x > s2arr1[n]) && (sec2 >= n)) {
this["s2slide" + n]._x = this["s2slide" + n]._x - 62;
}
if ((this["s2slide" + n]._x < s2arr2[n]) && (sec2 < n)) {
this["s2slide" + n]._x = this["s2slide" + n]._x + 62;
}
n++;
}
};
stop();
Frame 11
function redo() {
d = new Date();
sec = d.getSeconds();
min = d.getMinutes();
hour = d.getHours();
if (hour > 12) {
hour = hour - 12;
}
if (hour == 0) {
hour = 12;
}
sc._visible = Boolean(sec > 0);
mc._visible = Boolean(min > 0);
shr._rotation = (sec * 6) - 90;
mhr._rotation = ((min * 6) + (sec * 0.1)) - 90;
hhr._rotation = (((hour * 30) + (min * 0.5)) + (sec / 120)) - 90;
if ((sec <= 30) && (sec != 0)) {
sr.clear();
sr2.clear();
if (sec > 1) {
sr.lineStyle(0, 13369497);
degrees = 360 / sec;
radians = degrees * (Math.PI/180);
n = 1;
while (n <= sec) {
sax[n] = Math.cos(n * radians) * 150;
say[n] = Math.sin(n * radians) * 150;
n++;
}
z = 1;
while (z <= sec) {
n = z + 1;
while (n <= sec) {
sr.moveTo(sax[z], say[z]);
sr.lineTo(sax[n], say[n]);
n++;
}
z++;
}
}
} else {
sr2.clear();
if (sec == 0) {
sec = 30;
} else {
sec = sec - 30;
}
if (sec > 1) {
sr2.lineStyle(0, 16772608);
degrees = 360 / sec;
radians = degrees * (Math.PI/180);
n = 1;
while (n <= sec) {
sax[n] = Math.cos(n * radians) * 150;
say[n] = Math.sin(n * radians) * 150;
n++;
}
z = 1;
while (z <= sec) {
n = z + 1;
while (n <= sec) {
sr2.moveTo(sax[z], say[z]);
sr2.lineTo(sax[n], say[n]);
n++;
}
z++;
}
}
}
if (lastm != min) {
mr.clear();
if (min > 1) {
mr.lineStyle(0, 3381708);
degrees = 360 / min;
radians = degrees * (Math.PI/180);
n = 1;
while (n <= min) {
max[n] = Math.cos(n * radians) * 135;
may[n] = Math.sin(n * radians) * 135;
n++;
}
z = 1;
while (z <= min) {
n = z + 1;
while (n <= min) {
mr.moveTo(max[z], may[z]);
mr.lineTo(max[n], may[n]);
n++;
}
z++;
}
}
}
if (lasth != hour) {
hr.clear();
if (min > 1) {
hr.lineStyle(0, 3381504);
degrees = 360 / hour;
radians = degrees * (Math.PI/180);
n = 1;
while (n <= hour) {
hax[n] = Math.cos(n * radians) * 85;
hay[n] = Math.sin(n * radians) * 85;
n++;
}
z = 1;
while (z <= hour) {
n = z + 1;
while (n <= hour) {
hr.moveTo(hax[z], hay[z]);
hr.lineTo(hax[n], hay[n]);
n++;
}
z++;
}
}
}
lastm = min;
lasth = hour;
}
upd();
clearInterval(intervalID);
clearInterval(intervalID);
clockname = "Ramsey Clock";
description = "See the colunm to the clock's left. Check out \"The Ramsey Game\" on my site when you have the chance.";
mr._alpha = 40;
mr.cacheAsBitmap = true;
hr._alpha = 100;
hr.cacheAsBitmap = true;
var sax = new Array();
var say = new Array();
var max = new Array();
var may = new Array();
var hax = new Array();
var hay = new Array();
var lastm = new Number();
var lasth = new Number();
var n = new Number(777);
var radians = new Number();
var degrees = new Number();
hc._visible = true;
var d = new Date();
var sec = new Number();
var min = new Number();
var hour = new Number();
var intervalID = new Number();
sec = d.getSeconds();
sr.clear();
sr2.clear();
if (sec > 30) {
sec = 30;
}
if (sec > 1) {
sr.lineStyle(0, 13369497);
degrees = 360 / sec;
radians = degrees * (Math.PI/180);
n = 1;
while (n <= sec) {
sax[n] = Math.cos(n * radians) * 150;
say[n] = Math.sin(n * radians) * 150;
n++;
}
z = 1;
while (z <= sec) {
n = z + 1;
while (n <= sec) {
sr.moveTo(sax[z], say[z]);
sr.lineTo(sax[n], say[n]);
n++;
}
z++;
}
}
redo();
intervalID = setInterval(this, "redo", 1000);
stop();
Frame 12
function redo() {
d = new Date();
sec = d.getSeconds();
sec2 = sec - (Math.floor(sec / 10) * 10);
min = d.getMinutes();
min2 = min - (Math.floor(min / 10) * 10);
hour = d.getHours();
hour2 = hour - (Math.floor(hour / 10) * 10);
if (sec == 0) {
sl.gotoAndPlay(33);
sr.gotoAndStop(30);
} else if (sec == (Math.floor(sec / 10) * 10)) {
sl.gotoAndPlay((3 * sec) / 10);
sr.gotoAndStop(30);
} else {
sr.gotoAndPlay(3 * sec2);
}
if (lastminute != min) {
lastminute = min;
if (min == 0) {
ml.gotoAndPlay(33);
mr.gotoAndStop(30);
} else if (min == (Math.floor(min / 10) * 10)) {
ml.gotoAndPlay((3 * min) / 10);
mr.gotoAndStop(30);
} else {
mr.gotoAndPlay(3 * min2);
}
}
if (lasthour != hour) {
lasthour = hour;
if (hour == 0) {
hl.gotoAndPlay(31);
hr.gotoAndStop(32);
} else if (hour == (Math.floor(hour / 10) * 10)) {
hl.gotoAndPlay((3 * hour) / 10);
hr.gotoAndStop(32);
} else {
hr.gotoAndPlay(3 * hour2);
}
}
}
upd();
clearInterval(intervalID);
clockname = "Clay Clock";
description = "Here you are viewing digital media of an analog technology displaying the time digitally. Old-School digital clock made entirely out of clay. Don't know why it happens, but if the numbers stick, hit the \"Unstick Numbers\" Button.";
var intervalID = new Number();
var d = new Date();
var sec = new Number();
var sec2 = new Number();
var min2 = new Number();
var min = new Number();
var hour = new Number();
var hour2 = new Number();
var lastminute = new Number();
var lasthour = new Number();
d = new Date();
sec = d.getSeconds();
sec2 = sec - (Math.floor(sec / 10) * 10);
min = d.getMinutes();
min2 = min - (Math.floor(min / 10) * 10);
hour = d.getHours();
hour2 = hour - (Math.floor(hour / 10) * 10);
ml.gotoAndPlay(Math.floor(min / 10) * 3);
sl.gotoAndPlay(Math.floor(sec / 10) * 3);
hl.gotoAndPlay(Math.floor(hour / 10) * 3);
redo();
intervalID = setInterval(this, "redo", 1000);
stop();
Frame 13
function ud(targ, dispnum) {
dispnum = dispnum + 1;
targ.gotoAndStop(dispnum);
targ.bo1.gotoAndStop(Math.floor(Math.random() * 7) + 1);
targ.bo2.gotoAndStop(Math.floor(Math.random() * 7) + 1);
targ.bo3.gotoAndStop(Math.floor(Math.random() * 7) + 1);
targ.bo4.gotoAndStop(Math.floor(Math.random() * 7) + 1);
targ.bo5.gotoAndStop(Math.floor(Math.random() * 7) + 1);
targ.bo6.gotoAndStop(Math.floor(Math.random() * 7) + 1);
targ.bo7.gotoAndStop(Math.floor(Math.random() * 7) + 1);
}
upd();
var d = new Date();
var sec = new Number();
var lsec = new Number();
var sec1 = new Number();
var sec2 = new Number();
var min = new Number();
var min1 = new Number();
var min2 = new Number();
var hour = new Number();
var hour1 = new Number();
var hour2 = new Number();
clockname = "Bone Clock";
description = "All the numbers and hands on this clock are made of ribs. On each second, the numbers have a new set of randomized bones in them.";
onEnterFrame = function () {
d = new Date();
sec = d.getSeconds();
if (lsec != sec) {
sec1 = Math.floor(sec / 10);
sec2 = sec - (sec1 * 10);
min = d.getMinutes();
hour = d.getHours();
min1 = Math.floor(min / 10);
min2 = min - (min1 * 10);
hour1 = Math.floor(hour / 10);
hour2 = hour - (hour1 * 10);
ud(h1, hour1);
ud(h2, hour2);
ud(m1, min1);
ud(m2, min2);
ud(s1, sec1);
ud(s2, sec2);
bshand._rotation = (sec * 6) - 90;
bmhand._rotation = ((min * 6) + (sec / 10)) - 90;
bhhand._rotation = (((hour * 30) + (min / 2)) + (sec / 120)) - 90;
}
lsec = sec;
};
stop();
Frame 14
upd();
clockname = "Sheepie Clock";
description = "Sheepie, the web's most lovable sheep, is a bit scrambled on this watch. Don't wait for him to line up. It's around once an hour. Minutes (the second ring) move clockwise, while the others do not. Made for ABS, duuuhhhhhh.";
var d = new Date();
var sec = new Number();
var min = new Number();
var hour = new Number();
onEnterFrame = function () {
d = new Date();
sec = d.getSeconds() + (d.getMilliseconds() / 1000);
min = d.getMinutes() + (sec / 60);
hour = d.getHours() + (min / 60);
seccirc._rotation = -6 * sec;
mincirc._rotation = 6 * min;
hourcirc._rotation = -30 * hour;
};
stop();
Frame 15
upd();
var notes = new Sound();
notes.attachSound("clocknotes");
clockname = "Chord Clock";
description = "At times this clock will sound pretty ugly. Uncheck the circles to mute the sounds. The notes on the keyboards represent the time values. Hours are chromatic C Major scales, Minutes and seconds are melodic C Major.";
var hon = new Boolean(true);
var mon = new Boolean(true);
var son = new Boolean(true);
hon = true;
mon = true;
son = true;
var mintime = new String();
var sectime = new String();
var lastt = new Number();
var tt = new Number();
var d = new Date();
var hour = new Number();
var min = new Number();
var min2 = new Number();
var sec = new Number();
var sec2 = new Number();
var m = new Number();
var s = new Number();
lastt = getTimer();
m = d.getMinutes();
s = d.getSeconds();
hour = d.getHours();
min = Math.floor(m / 8);
min2 = m - (min * 8);
sec = Math.floor(s / 8);
sec2 = s - (sec * 8);
my_cm.onSelect = function () {
notes.stop();
};
onEnterFrame = function () {
tt = getTimer();
if ((lastt + 800) < tt) {
notes.stop();
}
if ((lastt + 995) < tt) {
lastt = tt;
d = new Date();
m = d.getMinutes();
s = d.getSeconds();
hour = d.getHours();
min = Math.floor(m / 8);
min2 = m - (min * 8);
sec = Math.floor(s / 8);
sec2 = s - (sec * 8);
if (hon) {
notes.start(hour);
}
if (mon) {
notes.start(min + 24);
notes.start(min2 + 32);
}
if (son) {
notes.start(sec + 40);
notes.start(sec2 + 48);
}
hkey.gotoAndStop(hour + 1);
mkey.gotoAndStop(min + 1);
mkey2.gotoAndStop(min2 + 1);
skey.gotoAndStop(sec + 1);
skey2.gotoAndStop(sec2 + 1);
mintime = ((((min * 8).toString() + "+") + min2.toString()) + "=") + m.toString();
sectime = ((((sec * 8).toString() + "+") + sec2.toString()) + "=") + s.toString();
}
};
stop();
Frame 16
function redo() {
d = new Date();
mytime = (((d.getHours() + ":") + d.getMinutes()) + ":") + d.getSeconds();
sec = d.getSeconds() + (d.getMilliseconds() / 1000);
min = d.getMinutes() + (sec / 60);
hour = d.getHours() + (min / 60);
sec2 = Math.round((255 * sec) / 60);
min2 = Math.round((255 * min) / 60) << 8;
hour2 = Math.round((255 * hour) / 24) << 16;
total = (hour2 + min2) + sec2;
fart = total.toString(16);
while (fart.length < 6) {
fart = "0" + fart;
}
total2 = "Total Hex Color: 0x" + fart;
hh = Math.round((16777215 * hour) / 24);
mh = Math.round((16777215 * min) / 60);
sh = Math.round((16777215 * sec) / 60);
fart = hh.toString(16);
while (fart.length < 6) {
fart = "0" + fart;
}
hh2 = "Hex: " + fart;
fart = mh.toString(16);
while (fart.length < 6) {
fart = "0" + fart;
}
mh2 = "Hex: " + fart;
fart = sh.toString(16);
while (fart.length < 6) {
fart = "0" + fart;
}
sh2 = "Hex: " + fart;
total3 = Math.round(((hh + sh) + mh) / 3);
fart = total3.toString(16);
while (fart.length < 6) {
fart = "0" + fart;
}
total4 = "Avg Hex: 0x" + fart;
hc.setRGB(hour2);
mc.setRGB(min2);
sc.setRGB(sec2);
tc.setRGB(total);
hc2.setRGB(hh);
mc2.setRGB(mh);
sc2.setRGB(sh);
tc2.setRGB(total3);
total3 = "Avg Color: " + total3;
sp = ((100 * sec) / 60) + "%";
mp = ((100 * min) / 60) + "%";
hp = ((100 * hour) / 24) + "%";
updateAfterEvent();
}
upd();
clearInterval(intervalID);
var mytime = new String();
var hc = new Color(hs);
var mc = new Color(ms);
var sc = new Color(ss);
var tc = new Color(ts);
var hc2 = new Color(hs2);
var mc2 = new Color(ms2);
var sc2 = new Color(ss2);
clockname = "Color Clock";
description = "Possibly the most unreadable by a human. The top half has h/m/s as r/g/b. Lower half is the time value out of maximum value as a color in decimal. All gray numbers are decimal color values, anything with \"0x\" is hex.";
var tc2 = new Color(ts2);
var d = new Date();
var intervalID = new Number();
var total = new Number();
var total2 = new String();
var sec = new Number();
var sec2 = new Number();
var min2 = new Number();
var min = new Number();
var hour = new Number();
var hour2 = new Number();
var lastminute = new Number();
var lasthour = new Number();
d = new Date();
sec = d.getSeconds();
sec2 = sec - (Math.floor(sec / 10) * 10);
min = d.getMinutes() + (sec / 60);
min2 = min - (Math.floor(min / 10) * 10);
hour = d.getHours() + (min / 60);
hour2 = hour - (Math.floor(hour / 10) * 10);
var fart = new String();
redo();
intervalID = setInterval(this, "redo", 150);
stop();
Instance of Symbol 297 MovieClip "ts2" in Frame 16
/* no clip actions */
Frame 17
gotoAndStop (7);
Frame 18
gotoAndStop (12);
Symbol 20 Button
on (rollOver) {
yall._visible = true;
}
on (rollOut) {
yall._visible = false;
}
on (release) {
_root.play();
}
on (releaseOutside) {
yall._visible = false;
}
Symbol 36 Button
on (release) {
mysite();
}
Symbol 45 Button
on (release) {
abs();
}
Symbol 49 Button
on (release) {
delete onEnterFrame;
notes.stop();
delete notes;
gradient_mc.removeMovieClip();
mineye.removeMovieClip();
mineye2.removeMovieClip();
seceye.removeMovieClip();
seceye2.removeMovieClip();
clearInterval(intervalID);
nextFrame();
}
Symbol 50 Button
on (release) {
delete onEnterFrame;
notes.stop();
delete notes;
gradient_mc.removeMovieClip();
mineye.removeMovieClip();
mineye2.removeMovieClip();
seceye.removeMovieClip();
seceye2.removeMovieClip();
clearInterval(intervalID);
prevFrame();
}
Symbol 164 MovieClip Frame 2
stop();
Symbol 164 MovieClip Frame 5
stop();
Symbol 164 MovieClip Frame 8
stop();
Symbol 164 MovieClip Frame 11
stop();
Symbol 164 MovieClip Frame 14
stop();
Symbol 164 MovieClip Frame 17
stop();
Symbol 164 MovieClip Frame 20
stop();
Symbol 164 MovieClip Frame 23
stop();
Symbol 164 MovieClip Frame 26
stop();
Symbol 164 MovieClip Frame 28
Symbol 164 MovieClip Frame 29
stop();
Symbol 164 MovieClip Frame 30
gotoAndPlay (1);
Symbol 164 MovieClip Frame 31
gotoAndPlay (1);
Symbol 164 MovieClip Frame 32
gotoAndPlay (1);
Symbol 164 MovieClip Frame 33
gotoAndPlay (1);
Symbol 168 Button
on (press) {
qual = _quality;
if (qual == "LOW") {
_quality = "BEST";
} else {
_quality = "LOW";
}
}
on (release) {
_quality = qual;
gotoAndStop (18);
}
on (releaseOutside) {
_quality = qual;
}
Symbol 255 Button
on (release) {
hon = !hon;
hcheck2._visible = hon;
}
Symbol 286 Button
on (release) {
son = !son;
scheck2._visible = son;
}
Symbol 291 Button
on (release) {
mon = !mon;
mcheck2._visible = mon;
}