Frame 1
fscommand ("allowscale", "false");
Instance of Symbol 1 MovieClip "clock" in Frame 1
onClipEvent (enterFrame) {
var time = new Date();
var hours = time.getHours();
var minutes = time.getMinutes();
var seconds = time.getSeconds();
this.hour._rotation = (this.hour_shadow._rotation = (30 * hours) + (minutes / 2));
this.min._rotation = (this.min_shadow._rotation = 6 * minutes);
this.sec._rotation = (this.sec_shadow._rotation = 6 * seconds);
}
Symbol 17 MovieClip Frame 1
nCharacterCount = 1;
nFrameCount = 3;
nAlphaChangeSpeed = 3;
nMoveSpeed = 2;
nSetSpace = 120;
function fun() {
i = 1;
while (nCharacterCount >= i) {
this["c" + i]._x = this["c" + i]._x + nMoveSpeed;
this["c" + i]._alpha = this["c" + i]._alpha + nAlphaChangeSpeed;
i++;
}
i = nCharacterCount + 1;
while ((nCharacterCount * 2) >= i) {
this["c" + i]._x = this["c" + i]._x - nMoveSpeed;
this["c" + i]._alpha = this["c" + i]._alpha + nAlphaChangeSpeed;
i++;
}
nSpace = nSpace - nMoveSpeed;
if (nSpace < 0) {
i = 1;
while (nCharacterCount >= i) {
this["c" + i]._x = nBakCharacter_x[i - 1];
i++;
}
gotoAndPlay (1);
}
}
function again() {
gotoAndPlay (2);
}
nSpace = nSetSpace / 2;
nBakCharacter_x = new Array(nCharacterCount);
i = nCharacterCount + 1;
while ((nCharacterCount * 2) >= i) {
this["c" + (i - nCharacterCount)].duplicatemovieclip("c" + i, i);
this["c" + i]._x = this["c" + i]._x + nSpace;
this["c" + i]._alpha = 10;
i++;
}
i = 1;
while (nCharacterCount >= i) {
nBakCharacter_x[i - 1] = this["c" + i]._x;
this["c" + i]._x = this["c" + i]._x - nSpace;
this["c" + i]._alpha = 10;
i++;
}
fun();
Symbol 17 MovieClip Frame 2
fun();
Symbol 17 MovieClip Frame 3
again();
Symbol 16 Button
on (release, keyPress "<Enter>") {
getURL ("http://toolshell.com/clocks", "_blank");
}
Symbol 14 MovieClip Frame 1
nCharacterCount = 1;
nFrameCount = 3;
nMoveSpeed = 5;
nIntervalTime = 1;
nAlphaSpeed = 5;
nXExcursion = 0;
nYExcursion = 50;
nPosX = (this.c1._x + ((this["c" + nCharacterCount]._x - this.c1._x) / 2)) + nXExcursion;
i = 0;
while (i < nCharacterCount) {
nHeight = nHeight + this["c" + (i + 1)]._y;
i++;
}
nPosY = int(nHeight / nCharacterCount) + nYExcursion;
nOldPosX = new Array(nCharacterCount - 1);
nOldPosY = new Array(nCharacterCount - 1);
nTempTime = nIntervalTime;
nRun = 1;
function init() {
i = 0;
while (i < nCharacterCount) {
nOldPosX[i] = this["c" + (i + 1)]._x;
nOldPosY[i] = this["c" + (i + 1)]._y;
i++;
}
i = 0;
while (i < nCharacterCount) {
this["c" + (i + 1)]._x = nPosX;
this["c" + (i + 1)]._y = nPosY;
this["c" + (i + 1)]._alpha = 0;
i++;
}
}
function fun() {
if (0 >= nTempTime) {
if (nRun < nCharacterCount) {
nRun++;
}
nTempTime = nIntervalTime;
} else {
nTempTime--;
}
i = 0;
while (i < nRun) {
if (this["c" + (i + 1)]._alpha < 100) {
this["c" + (i + 1)]._alpha = this["c" + (i + 1)]._alpha + nAlphaSpeed;
if (100 < this["c" + (i + 1)]._alpha) {
this["c" + (i + 1)]._alpha = 100;
}
}
if (this["c" + (i + 1)]._y != nOldPosY[i]) {
if (nOldPosY[i] >= this["c" + (i + 1)]._y) {
this["c" + (i + 1)]._y = this["c" + (i + 1)]._y + nMoveSpeed;
if (nOldPosY[i] < this["c" + (i + 1)]._y) {
this["c" + (i + 1)]._y = nOldPosY[i];
}
} else {
this["c" + (i + 1)]._y = this["c" + (i + 1)]._y - nMoveSpeed;
if (this["c" + (i + 1)]._y < nOldPosY[i]) {
this["c" + (i + 1)]._y = nOldPosY[i];
}
}
this["c" + (i + 1)]._x = (((nPosX - nOldPosX[i]) / (nPosY - nOldPosY[i])) * (this["c" + (i + 1)]._y - nOldPosY[i])) + nOldPosX[i];
}
i++;
}
}
function again() {
gotoAndPlay (2);
}
init();
fun();
Symbol 14 MovieClip Frame 2
fun();
Symbol 14 MovieClip Frame 3
again();