Frame 1
mainalpha = 50;
shapeNum = 500;
lineweight = 2;
drawstyle = "line";
maincolor = 16777215 /* 0xFFFFFF */;
version = new String();
version = getVersion();
if (version.charAt(4) <= 5) {
gotoAndStop (3);
}
speed = 5;
function newShape() {
arrayCount = 0;
shapeNum++;
shell.createEmptyMovieClip("teste", shapeNum);
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].createEmptyMovieClip("teste", shapeNum);
kal[wedge].teste._x = -centerpoint._x;
kal[wedge].teste._y = -centerpoint._y;
i++;
}
startx = _xmouse;
starty = _ymouse;
shell.teste.moveTo(startx, starty);
shell.teste.lineStyle(lineweight, maincolor, mainalpha);
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].teste.moveTo(startx, starty);
kal[wedge].teste.lineStyle(lineweight, maincolor, mainalpha);
i++;
}
shapeInfox = new Array();
shapeInfox[0] = startx;
shapeInfoy = new Array();
shapeInfoy[0] = starty;
listener = new Object();
listener.onMouseMove = function () {
if (_root.stage.hitTest(_root._xmouse, _root._ymouse, true)) {
drawShape();
} else {
endShape(startx, starty);
}
};
listener.onMouseUp = function () {
endShape(startx, starty);
};
Mouse.addListener(listener);
}
function drawShape() {
x = _root._xmouse;
y = _root._ymouse;
arrayCount++;
shapeInfox[arrayCount] = x;
shapeInfoy[arrayCount] = y;
shell.teste.lineTo(x, y);
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].teste.lineTo(x, y);
i++;
}
}
function endShape(xend, yend) {
arrayCount++;
shapeInfox[arrayCount] = xend;
shapeInfoy[arrayCount] = yend;
Mouse.removeListener(listener);
if (drawstyle == "fill") {
shell.teste.lineTo(xend, yend);
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].teste.lineTo(xend, yend);
i++;
}
fillShape();
} else {
shell.teste._name = shapeNum;
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].teste._name = shapeNum;
i++;
}
}
}
function fillShape() {
shell.createEmptyMovieClip("fill", shapeNum);
shell.fill.lineStyle(lineweight, mainColor, mainalpha);
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].createEmptyMovieClip("fill", shapeNum);
kal[wedge].fill.lineStyle(lineweight, mainColor, mainalpha);
kal[wedge].fill._x = -centerpoint._x;
kal[wedge].fill._y = -centerpoint._y;
i++;
}
xstart = shapeInfox[0];
ystart = shapeInfoy[0];
shell.fill.moveTo(xstart, ystart);
shell.fill.beginFill(mainColor, mainalpha);
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].fill.moveTo(xstart, ystart);
kal[wedge].fill.beginFill(mainColor, mainalpha);
i++;
}
i = 1;
while (i <= (shapeInfox.length - 1)) {
x = shapeInfox[i];
y = shapeInfoy[i];
shell.fill.lineTo(x, y);
j = 1;
while (j <= 8) {
var wedge = ("wedge" + j);
kal[wedge].fill.lineTo(x, y);
j++;
}
i++;
}
shell.fill.endFill();
shell.fill._name = shapeNum;
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].fill.endFill();
kal[wedge].fill._name = shapeNum;
i++;
}
}
function removeLast() {
shell[shapeNum].removeMovieClip();
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge][shapeNum].removeMovieClip();
i++;
}
shapeNum--;
if (shapeNum <= 500) {
shapeNum = 500;
}
}
function updateButton() {
}
function newDot() {
shapeNum++;
shell.createEmptyMovieClip("teste", shapeNum);
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].createEmptyMovieClip("teste", shapeNum);
kal[wedge].teste._x = -centerpoint._x;
kal[wedge].teste._y = -centerpoint._y;
i++;
}
dotlistener = new Object();
dotlistener.onMouseMove = function () {
if (_root.stage.hitTest(_root._xmouse, _root._ymouse, true)) {
drawDot();
} else {
endDot();
}
};
dotlistener.onMouseUp = function () {
endDot();
};
Mouse.addListener(dotlistener);
}
function drawDot() {
shell.teste.count++;
shell.teste.attachMovie(drawstyle, "shape" + shell.teste.count, shell.teste.count);
eval ("shell.teste.shape" + shell.teste.count)._x = _root._xmouse;
eval ("shell.teste.shape" + shell.teste.count)._y = _root._ymouse;
eval ("shell.teste.shape" + shell.teste.count).color = new Color("shell.teste.shape" + shell.teste.count);
eval ("shell.teste.shape" + shell.teste.count).color.setRGB(_root.maincolor);
eval ("shell.teste.shape" + shell.teste.count)._alpha = _root.mainalpha;
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].teste.count++;
kal[wedge].teste.attachMovie(drawstyle, "shape" + kal[wedge].teste.count, kal[wedge].teste.count);
eval ((kal[wedge] + ".teste.shape") + kal[wedge].teste.count)._x = _root._xmouse;
eval ((kal[wedge] + ".teste.shape") + kal[wedge].teste.count)._y = _root._ymouse;
eval ((kal[wedge] + ".teste.shape") + kal[wedge].teste.count).color = new Color((kal[wedge] + ".teste.shape") + kal[wedge].teste.count);
eval ((kal[wedge] + ".teste.shape") + kal[wedge].teste.count).color.setRGB(_root.maincolor);
eval ((kal[wedge] + ".teste.shape") + kal[wedge].teste.count)._alpha = _root.mainalpha;
i++;
}
}
function endDot() {
Mouse.removeListener(dotlistener);
shell.teste._name = shapeNum;
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge].teste._name = shapeNum;
i++;
}
}
function clearAll() {
while (shapeNum >= 501) {
shell[shapeNum].removeMovieClip();
i = 1;
while (i <= 8) {
var wedge = ("wedge" + i);
kal[wedge][shapeNum].removeMovieClip();
i++;
}
shapeNum--;
}
}
mouseEvent = new Object();
mouseEvent.onMouseDown = function () {
if (stage.hitTest(_root._xmouse, _root._ymouse, true)) {
if ((drawstyle == "fill") || (drawstyle == "line")) {
newShape();
} else {
newDot();
trace("hit");
}
}
};
Mouse.addListener(mouseEvent);
function colorPreview(colorIn) {
pallette.testswatch.color.setRGB(colorIn);
}
function colorSelected(colorIn) {
mainColor = colorIn;
}
hexArray = new Array("F", "E", "D", "C", "B", "A", "9", "8", "7", "6", "5", "4", "3", "2", "1", "0");
colorCount = 0;
colorCount2 = 0;
colorCount3 = 0;
ylevel = 0;
xlevel = 0;
pallette.testswatch.color = new Color(pallette.testswatch);
i = 1;
while (i <= 216) {
pallette.attachMovie("colorsquare", "cs" + i, i);
pallette["cs" + i].color = new Color(pallette["cs" + i]);
pallette["cs" + i]._x = xlevel * pallette["cs" + i]._width;
pallette["cs" + i]._y = ylevel * pallette["cs" + i]._height;
if (xlevel <= 4) {
xlevel++;
} else {
xlevel = 0;
ylevel++;
}
test = ((((("0x" + hexArray[colorCount3]) + hexArray[colorCount3]) + hexArray[colorCount2]) + hexArray[colorCount2]) + hexArray[colorCount]) + hexArray[colorCount];
colorCount = colorCount + 3;
if (colorCount >= 16) {
colorCount = 0;
colorCount2 = colorCount2 + 3;
}
if (colorCount2 >= 16) {
colorCount2 = 0;
colorCount3 = colorCount3 + 3;
}
pallette["cs" + i].test = test;
pallette["cs" + i].color.setRGB(test);
i++;
}
stop();
colorPreview(maincolor);
Symbol 2 Button
on (press) {
_root.colorPreview(test);
_root.colorSelected(test);
}
Symbol 49 Button
on (press) {
removeLast();
}
Symbol 53 Button
on (press) {
clearAll();
}
Symbol 59 Button
on (press) {
if (toggle) {
wedge_guide._alpha = 20;
toggle = false;
} else {
wedge_guide._alpha = 0;
toggle = true;
}
}
Symbol 68 Button
on (press) {
i = 1;
while (i <= _parent.count) {
eval ("_parent.lineweight" + i).gotoAndStop(1);
gotoAndStop (2);
i++;
}
_root.lineweight = weight;
}
Symbol 70 MovieClip Frame 1
_parent.count++;
this._name = "lineweight" + _parent.count;
stop();
Instance of Symbol 70 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
weight = 2;
gotoAndStop (2);
}
Instance of Symbol 70 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
weight = 4;
}
Instance of Symbol 70 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
weight = 8;
}
Instance of Symbol 70 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
weight = 12;
}
Symbol 80 Button
on (press) {
i = 1;
while (i <= _parent.count) {
eval ("_parent.drawstyle" + i).gotoAndStop(1);
gotoAndStop (2);
i++;
}
_root.drawstyle = style;
}
Symbol 82 MovieClip Frame 1
_parent.count++;
this._name = "drawstyle" + _parent.count;
stop();
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "line";
gotoAndStop (2);
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot1";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot2";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot3";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot4";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot5";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot6";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot7";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot8";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot9";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "dot10";
}
Instance of Symbol 82 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
style = "fill";
}
Symbol 91 Button
on (press) {
this.startDrag(false, _parent.bar._x - (_parent.bar._width / 2), this._y, _parent.bar._x + (_parent.bar._width / 2), this._y);
_parent.drag = true;
}
on (release, releaseOutside) {
reportAplha();
_parent.drag = false;
stopDrag();
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 1
onClipEvent (mouseMove) {
if (_parent.drag) {
percent = (_parent.nub._x - (_parent.bar._x - (_parent.bar._width / 2))) / _parent.bar._width;
alpha = Math.floor(percent * 100);
if (alpha == 99) {
alpha = 100;
}
_root.mainalpha = alpha;
}
}
Symbol 97 MovieClip Frame 1
this._rotation = this._rotation - _root.speed;
Symbol 101 Button
on (press) {
i = 1;
while (i <= _parent.count) {
eval ("_parent.lineweight" + i).gotoAndStop(1);
gotoAndStop (2);
i++;
}
_quality = quality;
}
Symbol 103 MovieClip Frame 1
_parent.count++;
this._name = "lineweight" + _parent.count;
stop();
Instance of Symbol 103 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
quality = "best";
gotoAndStop (2);
}
Instance of Symbol 103 MovieClip in Symbol 106 MovieClip Frame 1
onClipEvent (load) {
quality = "low";
}
Instance of Symbol 94 MovieClip in Symbol 108 MovieClip Frame 1
onClipEvent (mouseMove) {
if (_parent.drag) {
percent = (_parent.nub._x - (_parent.bar._x - (_parent.bar._width / 2))) / _parent.bar._width;
alpha = Math.floor(percent * 15);
_root.speed = alpha;
}
}
onClipEvent (load) {
alpha = 7;
}
Symbol 120 MovieClip Frame 1
i = 1;
while (i < 8) {
var wedge = ("wedge" + i);
this[wedge]._rotation = this[wedge]._rotation + _root.speed;
i = i + 2;
}
i = 2;
while (i <= 8) {
var wedge = ("wedge" + i);
this[wedge]._rotation = this[wedge]._rotation - _root.speed;
i = i + 2;
}
Symbol 127 Button
on (press) {
getURL ("http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&P5_Language=English", _blank);
}