Frame 1
function AdjustColor() {
RedValue = int(((RedSlider._x - 365) / 60) * 255);
GreenValue = int(((GreenSlider._x - 365) / 60) * 255);
BlueValue = int(((BlueSlider._x - 365) / 60) * 255);
CurrentColor.setRGB(parseInt((HexTable[RedValue] + HexTable[GreenValue]) + HexTable[BlueValue], 16));
}
function MouseInBounds() {
if ((((0 < _xmouse) && (_xmouse < 770)) && (0 < _ymouse)) && (_ymouse < 270)) {
return(true);
}
return(false);
}
function Reset() {
Counter = 0;
while (Counter < 15) {
eval (("Element" + Counter) + "Color").setRGB(16777215);
Counter++;
}
Counter = 0;
while (CurrentColorDisplay.ShapeCount >= Counter) {
removeMovieClip("Shape" + Counter);
Counter++;
}
ShapeCount = 0;
}
Mouse.hide();
_root.attachMovie("Pointer", "Pointer", 10000000);
HexSeries = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F");
HexTable = new Array();
CounterC = 0;
CounterA = 0;
while (CounterA < 16) {
CounterB = 0;
while (CounterB < 16) {
HexTable[CounterC] = HexSeries[CounterA] + HexSeries[CounterB];
CounterC++;
CounterB++;
}
CounterA++;
}
CurrentColor = new Color(CurrentColorDisplay);
AdjustColor();
Counter = 0;
while (Counter < 15) {
Set(("Element" + Counter) + "Color", new Color(eval ("Element" + Counter)));
eval (("Element" + Counter) + "Color").setRGB(16777215);
Counter++;
}
Instance of Symbol 15 MovieClip "RedSlider" in Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
Dragging = true;
}
}
onClipEvent (mouseUp) {
Dragging = false;
}
onClipEvent (enterFrame) {
if (Dragging && (425 < _root._xmouse)) {
_x = 425;
} else if (Dragging && (_root._xmouse < 365)) {
_x = 365;
} else if ((Dragging && (_root._xmouse < 425)) && (365 < _root._xmouse)) {
_x = _root._xmouse;
}
_root.AdjustColor();
}
Instance of Symbol 15 MovieClip "GreenSlider" in Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
Dragging = true;
}
}
onClipEvent (mouseUp) {
Dragging = false;
}
onClipEvent (enterFrame) {
if (Dragging && (425 < _root._xmouse)) {
_x = 425;
} else if (Dragging && (_root._xmouse < 365)) {
_x = 365;
} else if ((Dragging && (_root._xmouse < 425)) && (365 < _root._xmouse)) {
_x = _root._xmouse;
}
_root.AdjustColor();
}
Instance of Symbol 15 MovieClip "BlueSlider" in Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
Dragging = true;
}
}
onClipEvent (mouseUp) {
Dragging = false;
}
onClipEvent (enterFrame) {
if (Dragging && (425 < _root._xmouse)) {
_x = 425;
} else if (Dragging && (_root._xmouse < 365)) {
_x = 365;
} else if ((Dragging && (_root._xmouse < 425)) && (365 < _root._xmouse)) {
_x = _root._xmouse;
}
_root.AdjustColor();
}
Instance of Symbol 15 MovieClip "CurrentColorDisplay" in Frame 1
onClipEvent (mouseDown) {
if ((_root.ToolType == "Paint") && (_root.MouseInBounds())) {
eval (("_root." + (substring(_root.Pointer._droptarget, 2, 50))) + "Color").setRGB(_root.CurrentColor.getRGB());
} else if ((_root.ToolType == "Eraser") && (_root.MouseInBounds())) {
if ((substring(_root.Pointer._droptarget, 2, 5)) == "Shape") {
eval ("_root." + (substring(_root.Pointer._droptarget, 2, 50))).removeMovieClip();
} else {
eval (("_root." + (substring(_root.Pointer._droptarget, 2, 50))) + "Color").setRGB(16777215);
}
} else if ((_root.ToolType == "Pen") && (_root.MouseInBounds())) {
PenDown = true;
} else if ((((_root.ToolType == "Line") || (_root.ToolType == "Ellipse")) || (_root.ToolType == "Rectangle")) && (_root.MouseInBounds())) {
PenDown = true;
ShapeCount++;
X1 = _root._xmouse;
Y1 = _root._ymouse;
_root.attachMovie(_root.ToolType, "Shape" + ShapeCount, ShapeCount + 100);
Set(("_root.Shape" + ShapeCount) + "Color", new Color("_root.Shape" + ShapeCount));
eval (("_root.Shape" + ShapeCount) + "Color").setRGB(_root.CurrentColor.getRGB());
}
}
onClipEvent (mouseUp) {
PenDown = false;
}
onClipEvent (enterFrame) {
FrameCount++;
if (((FrameCount % 2) != 0) && (_root.ToolType == "Pen")) {
X1 = _root._xmouse;
Y1 = _root._ymouse;
} else {
X2 = _root._xmouse;
Y2 = _root._ymouse;
}
if (PenDown && (_root.MouseInBounds())) {
if (_root.ToolType == "Pen") {
ShapeCount++;
_root.attachMovie(_root.ToolType, "Shape" + ShapeCount, ShapeCount + 100);
}
with (eval ("_root.Shape" + ShapeCount)) {
_x = ((X2 - X1) / 2) + X1;
_y = ((Y2 - Y1) / 2) + Y1;
_xscale = X1 - X2;
_yscale = Y1 - Y2;
}
}
}
onClipEvent (mouseMove) {
startDrag ("_root.Pointer", true);
updateAfterEvent();
}
Symbol 13 Button
on (rollOver) {
_root.ToolType = "Line";
}
Symbol 17 MovieClip Frame 1
this.stop();
Symbol 17 MovieClip Frame 5
this.stop();
Symbol 17 MovieClip Frame 10
this.stop();
Symbol 58 MovieClip Frame 1
time.getFullYear = new Date().getFullYear();
time.gethours = new Date().getHours();
time.getSeconds = new Date().getSeconds();
time.getMonth = new Date().getMonth() + 1;
time.getDate = new Date().getDate();
time.getMinutes = new Date().getMinutes();
youbi = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
time.getDay = youbi[new Date().getDay()];
now = new Date();
theHour = now.getHours();
theMin = now.getMinutes();
theSec = now.getSeconds();
theMSec = now.getMilliseconds();
hour._rotation = (theHour * 30) + (theMin / 2);
min._rotation = (theMin * 6) + (theSec / 10);
sec._rotation = (theSec * 6) + (theMSec / 166);
Symbol 58 MovieClip Frame 2
this.gotoAndPlay(_currentframe - 1);
Symbol 66 Button
on (release) {
Reset();
}
on (press) {
_root.seiza.gotoAndPlay("B");
}
Symbol 71 Button
on (press) {
this.getURL("javascript:history.go(0)");
}
Symbol 76 Button
on (press) {
_root.seiza.gotoAndPlay("A");
}