Frame 1
Instance of Symbol 40 MovieClip "Canvas" in Frame 1
onClipEvent (load) {
_root.line._alpha = 50;
draw = false;
shapeNum = 0;
shapeType = "line";
brushColor = {rb:0, bb:0, gb:0};
displayColor = new Color(_root.colormenu.display);
displayColor.setTransform(brushColor);
_root.colormenu.display.btn.enabled = false;
erasesize = 100;
}
onClipEvent (mouseDown) {
startx = _xmouse;
starty = _ymouse;
if (this.hitTest(startx + this._x, starty + this._y, false)) {
draw = true;
if ((shapeType == "oval") or (shapeType == "rect")) {
this.attachMovie(shapeType, "Shape" + shapeNum, shapeNum);
this["Shape" + shapeNum]._x = startx;
this["Shape" + shapeNum]._y = starty;
} else if ((shapeType == "ovalnofill") or (shapeType == "rectnofill")) {
this.attachMovie(shapeType, "Shape" + shapeNum, shapeNum);
this["Shape" + shapeNum]._x = startx;
this["Shape" + shapeNum]._y = starty;
}
}
}
onClipEvent (mouseUp) {
if ((shapeType == "line") or (shapeType == "erase")) {
draw = false;
} else if ((shapeType == "oval") or (shapeType == "rect")) {
shapeNum++;
draw = false;
} else if ((shapeType == "ovalnofill") or (shapeType == "rectnofill")) {
shapeNum++;
draw = false;
}
}
onClipEvent (enterFrame) {
if (draw) {
if (shapeType == "line") {
newx = _xmouse;
newy = _ymouse;
dx = startx - newx;
dy = starty - newy;
if (Math.sqrt((dx * dx) + (dy * dy)) > 1) {
this.attachMovie("Line", "Shape" + shapeNum, shapeNum);
this["Shape" + shapeNum]._xscale = dx;
this["Shape" + shapeNum]._yscale = dy;
this["Shape" + shapeNum]._x = newx;
this["Shape" + shapeNum]._y = newy;
myColor = new Color(this["Shape" + shapeNum]);
myColor.setTransform(brushColor);
shapeNum++;
startx = newx;
starty = newy;
}
} else if (shapeType == "erase") {
newx = _xmouse;
newy = _ymouse;
dx = startx - newx;
dy = starty - newy;
if (Math.sqrt((dx * dx) + (dy * dy)) > 1) {
this.attachMovie("erase", "Shape" + shapeNum, shapeNum);
this["Shape" + shapeNum]._xscale = erasesize;
this["Shape" + shapeNum]._yscale = erasesize;
this["Shape" + shapeNum]._x = newx;
this["Shape" + shapeNum]._y = newy;
myColor = new Color(this["Shape" + shapeNum]);
myColor.setTransform(brushColor);
shapeNum++;
startx = newx;
starty = newy;
}
} else if ((shapeType == "oval") or (shapeType == "rect")) {
newx = _xmouse;
newy = _ymouse;
dx = newx - startx;
dy = newy - starty;
this["Shape" + shapeNum]._xscale = dx;
this["Shape" + shapeNum]._yscale = dy;
myColor = new Color(this["Shape" + shapeNum]);
myColor.setTransform(brushColor);
} else if ((shapeType == "ovalnofill") or (shapeType == "rectnofill")) {
newx = _xmouse;
newy = _ymouse;
dx = newx - startx;
dy = newy - starty;
this["Shape" + shapeNum]._xscale = dx;
this["Shape" + shapeNum]._yscale = dy;
myColor = new Color(this["Shape" + shapeNum]);
myColor.setTransform(brushColor);
}
}
}
Frame 40
function fades() {
var _local1 = _root;
_local1.oval.ovalicon._alpha = 100;
_local1.rect.recticon._alpha = 100;
_local1.rect.rectnofillicon._alpha = 100;
_local1.line._alpha = 100;
_local1.erase.erasericon._alpha = 100;
_local1.paint.brushicon._alpha = 100;
_local1.image.imageicon._alpha = 100;
_local1.image.imageicon01._alpha = 100;
}
function mouse() {
var _local1 = _root;
if (Canvas.shapeType == "line") {
pencilmouse._alpha = 100;
startDrag (pencilmouse, true);
}
if (Canvas.shapeType == "erase") {
erasemouse._alpha = 100;
erasemouse._xscale = _local1.Canvas.erasesize;
erasemouse._yscale = _local1.Canvas.erasesize;
mouseColor = new Color(_local1.erasemouse);
mouseColor.setTransform(_local1.Canvas.brushColor);
startDrag (erasemouse, true);
}
}
function nomouse() {
stopDrag();
pencilmouse._alpha = 0;
erasemouse._alpha = 0;
}
stop();
Instance of Symbol 40 MovieClip "Canvas" in Frame 40
onClipEvent (load) {
function dragit(tar) {
var _local1 = _root;
trace(_local1.Canvas.shapeType);
if ((_local1.Canvas.shapeType != "line") and (_local1.Canvas.shapeType != "erase")) {
trace("DRAGFUNCTION");
tar.onEnterFrame = function () {
tar._x = _xmouse - (tar._width / 2);
tar._y = _ymouse - (tar._height / 2);
};
}
}
function dragend(tar) {
trace("DRAGEND");
delete tar.onEnterFrame;
}
_root.line._alpha = 50;
draw = false;
drag = false;
shapeNum = 0;
shapeType = "line";
brushColor = {rb:0, bb:0, gb:0};
displayColor = new Color(_root.colormenu.display);
displayColor.setTransform(brushColor);
_root.colormenu.display.btn.enabled = false;
erasesize = 100;
}
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && ((shapeType == "line") || (shapeType == "erase"))) {
_root.mouse();
Mouse.hide();
} else {
_root.nomouse();
Mouse.show();
}
}
onClipEvent (mouseDown) {
startx = _xmouse;
starty = _ymouse;
if (this.hitTest(startx + this._x, starty + this._y, false)) {
trace(drag);
draw = true;
if ((((((shapeType == "oval") or (shapeType == "rect")) or (shapeType == "ovalnofill")) or (shapeType == "rectnofill")) or (shapeType == "image")) or (shapeType == "image01")) {
if (!drag) {
this.attachMovie(shapeType, "Shape" + shapeNum, shapeNum);
this["Shape" + shapeNum]._x = startx;
this["Shape" + shapeNum]._y = starty;
}
}
}
}
onClipEvent (mouseUp) {
if ((shapeType == "line") or (shapeType == "erase")) {
draw = false;
} else if ((((((shapeType == "oval") or (shapeType == "rect")) or (shapeType == "ovalnofill")) or (shapeType == "rectnofill")) or (shapeType == "image")) or (shapeType == "image01")) {
shapeNum++;
draw = false;
}
}
onClipEvent (enterFrame) {
if (draw) {
if (shapeType == "line") {
newx = _xmouse;
newy = _ymouse;
dx = startx - newx;
dy = starty - newy;
if (Math.sqrt((dx * dx) + (dy * dy)) > 1) {
this.attachMovie("Line", "Shape" + shapeNum, shapeNum);
this["Shape" + shapeNum]._xscale = dx;
this["Shape" + shapeNum]._yscale = dy;
this["Shape" + shapeNum]._x = newx;
this["Shape" + shapeNum]._y = newy;
myColor = new Color(this["Shape" + shapeNum]);
myColor.setTransform(brushColor);
shapeNum++;
startx = newx;
starty = newy;
}
} else if (shapeType == "erase") {
newx = _xmouse;
newy = _ymouse;
dx = startx - newx;
dy = starty - newy;
if (Math.sqrt((dx * dx) + (dy * dy)) > 1) {
this.attachMovie("erase", "Shape" + shapeNum, shapeNum);
this["Shape" + shapeNum]._xscale = erasesize;
this["Shape" + shapeNum]._yscale = erasesize;
this["Shape" + shapeNum]._x = newx;
this["Shape" + shapeNum]._y = newy;
myColor = new Color(this["Shape" + shapeNum]);
myColor.setTransform(brushColor);
shapeNum++;
startx = newx;
starty = newy;
}
} else if ((((shapeType == "oval") or (shapeType == "rect")) or (shapeType == "ovalnofill")) or (shapeType == "rectnofill")) {
newx = _xmouse;
newy = _ymouse;
dx = newx - startx;
dy = newy - starty;
this["Shape" + shapeNum]._xscale = dx;
this["Shape" + shapeNum]._yscale = dy;
myColor = new Color(this["Shape" + shapeNum]);
myColor.setTransform(brushColor);
} else if ((shapeType == "image") or (shapeType == "image01")) {
newx = _xmouse;
newy = _ymouse;
dx = newx - startx;
dy = newy - starty;
this["Shape" + shapeNum]._xscale = dx;
this["Shape" + shapeNum]._yscale = dx;
myColor = new Color(this["Shape" + shapeNum]);
myColor.setTransform(brushColor);
}
}
}
Instance of Symbol 58 MovieClip in Frame 40
on (rollOver) {
this.gotoAndPlay("open");
}
on (rollOut) {
this.gotoAndPlay("close");
}
on (press) {
this.gotoAndPlay("close");
}
on (release) {
this.gotoAndPlay("open");
i = 0;
while (i < _root.Canvas.shapeNum) {
_root.Canvas["Shape" + i].removeMovieClip();
i++;
}
_root.Canvas.shapeNum = 0;
}
Instance of Symbol 62 MovieClip in Frame 40
on (rollOver) {
this.gotoAndPlay("open");
}
on (rollOut) {
this.gotoAndPlay("close");
}
on (press) {
this.gotoAndPlay("close");
}
on (release) {
this.gotoAndPlay("open");
print ("Canvas", "bframe");
}
Instance of Symbol 99 MovieClip "line" in Frame 40
on (release) {
_root.Canvas.shapeType = this._name;
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.fades();
this._alpha = 50;
}
Symbol 7 Button
on (rollOver) {
_root.Canvas.drag = true;
}
on (rollOut) {
_root.Canvas.drag = false;
}
on (releaseOutside) {
tar = eval (this._target);
_root.Canvas.dragend(tar);
}
on (press) {
tar = eval (this._target);
_root.Canvas.dragit(tar);
}
on (release) {
tar = eval (this._target);
_root.Canvas.dragend(tar);
}
Symbol 11 Button
on (rollOver) {
_root.Canvas.drag = true;
}
on (rollOut) {
_root.Canvas.drag = false;
}
on (releaseOutside) {
tar = eval (this._target);
_root.Canvas.dragend(tar);
}
on (press) {
tar = eval (this._target);
_root.Canvas.dragit(tar);
}
on (release) {
tar = eval (this._target);
_root.Canvas.dragend(tar);
}
Symbol 15 Button
on (rollOver) {
_root.Canvas.drag = true;
}
on (rollOut) {
_root.Canvas.drag = false;
}
on (releaseOutside) {
tar = eval (this._target);
_root.Canvas.dragend(tar);
}
on (press) {
tar = eval (this._target);
_root.Canvas.dragit(tar);
}
on (release) {
tar = eval (this._target);
_root.Canvas.dragend(tar);
}
Symbol 39 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 15
stop();
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 15
stop();
Symbol 73 MovieClip Frame 1
stop();
var dropmenu = "up";
Instance of Symbol 65 MovieClip "downbtn" in Symbol 73 MovieClip Frame 1
on (press) {
if (_parent.dropmenu == "down") {
this.gotoAndStop("up");
_parent.dropmenu = "up";
_parent.gotoAndPlay("close");
trace(_parent.dropmenu);
} else if (_parent.dropmenu == "up") {
this.gotoAndStop("down");
_parent.dropmenu = "down";
_parent.gotoAndPlay("open");
trace(_parent.dropmenu);
}
}
Instance of Symbol 69 MovieClip "ovalicon" in Symbol 73 MovieClip Frame 1
on (release) {
if (_parent._currentframe >= 5) {
_parent.gotoAndPlay("close");
}
_root.Canvas.shapeType = "oval";
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.fades();
this._alpha = 50;
}
Instance of Symbol 72 MovieClip in Symbol 73 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
_root.Canvas.shapeType = "ovalnofill";
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.fades();
this._alpha = 50;
}
Symbol 73 MovieClip Frame 27
stop();
Symbol 78 MovieClip Frame 1
stop();
var dropmenu = "up";
Instance of Symbol 65 MovieClip "downbtn" in Symbol 78 MovieClip Frame 1
on (press) {
if (_parent.dropmenu == "down") {
this.gotoAndStop("up");
_parent.dropmenu = "up";
_parent.gotoAndPlay("close");
trace(_parent.dropmenu);
} else if (_parent.dropmenu == "up") {
this.gotoAndStop("down");
_parent.dropmenu = "down";
_parent.gotoAndPlay("open");
trace(_parent.dropmenu);
}
}
Instance of Symbol 75 MovieClip "recticon" in Symbol 78 MovieClip Frame 1
on (release) {
if (_parent._currentframe >= 5) {
_parent.gotoAndPlay("close");
}
_root.Canvas.shapeType = "rect";
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.fades();
this._alpha = 50;
}
Instance of Symbol 77 MovieClip "rectnofillicon" in Symbol 78 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
_root.Canvas.shapeType = "rectnofill";
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.fades();
this._alpha = 50;
}
Symbol 78 MovieClip Frame 27
stop();
Symbol 84 MovieClip Frame 1
stop();
var dropmenu = "up";
Instance of Symbol 65 MovieClip "downbtn" in Symbol 84 MovieClip Frame 1
on (press) {
if (_parent.dropmenu == "down") {
this.gotoAndStop("up");
_parent.dropmenu = "up";
_parent.gotoAndPlay("close");
trace(_parent.dropmenu);
} else if (_parent.dropmenu == "up") {
this.gotoAndStop("down");
_parent.dropmenu = "down";
_parent.gotoAndPlay("open");
trace(_parent.dropmenu);
}
}
Instance of Symbol 81 MovieClip "brushicon" in Symbol 84 MovieClip Frame 1
on (release) {
if (_parent._currentframe >= 5) {
_parent.gotoAndPlay("close");
}
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.Canvas.shapeType = "erase";
_root.Canvas.erasesize = 100;
_root.fades();
this._alpha = 50;
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.Canvas.shapeType = "erase";
_root.Canvas.erasesize = 100;
_root.fades();
this._alpha = 50;
_root.paint.brushicon._alpha = 50;
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.Canvas.shapeType = "erase";
_root.Canvas.erasesize = 200;
_root.fades();
this._alpha = 50;
_root.paint.brushicon._alpha = 50;
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.Canvas.shapeType = "erase";
_root.Canvas.erasesize = 300;
_root.fades();
this._alpha = 50;
_root.paint.brushicon._alpha = 50;
}
Symbol 84 MovieClip Frame 27
stop();
Symbol 88 Button
on (release) {
_root.Canvas.bg.gotoAndStop(7);
_root.patterns.gotoAndPlay("close");
_root.patterns.downbtn.gotoAndStop("up");
}
Symbol 89 Button
on (release) {
_root.Canvas.bg.gotoAndStop(6);
_root.patterns.gotoAndPlay("close");
_root.patterns.downbtn.gotoAndStop("up");
}
Symbol 90 Button
on (release) {
_root.Canvas.bg.gotoAndStop(4);
_root.patterns.gotoAndPlay("close");
_root.patterns.downbtn.gotoAndStop("up");
}
Symbol 91 Button
on (release) {
_root.Canvas.bg.gotoAndStop(5);
_root.patterns.gotoAndPlay("close");
_root.patterns.downbtn.gotoAndStop("up");
}
Symbol 92 Button
on (release) {
_root.Canvas.bg.gotoAndStop(3);
_root.patterns.gotoAndPlay("close");
_root.patterns.downbtn.gotoAndStop("up");
}
Symbol 93 Button
on (release) {
_root.Canvas.bg.gotoAndStop(2);
_root.patterns.gotoAndPlay("close");
_root.patterns.downbtn.gotoAndStop("up");
}
Symbol 95 Button
on (release) {
_root.Canvas.bg.gotoAndStop(1);
_root.patterns.gotoAndPlay("close");
_root.patterns.downbtn.gotoAndStop("up");
}
Symbol 96 MovieClip Frame 1
stop();
var dropmenu = "up";
Instance of Symbol 65 MovieClip "downbtn" in Symbol 96 MovieClip Frame 1
on (press) {
if (_parent.dropmenu == "down") {
this.gotoAndStop("up");
_parent.dropmenu = "up";
_parent.gotoAndPlay("close");
trace(_parent.dropmenu);
} else if (_parent.dropmenu == "up") {
this.gotoAndStop("down");
_parent.dropmenu = "down";
_parent.gotoAndPlay("open");
trace(_parent.dropmenu);
}
}
Symbol 96 MovieClip Frame 27
stop();
Symbol 102 MovieClip Frame 1
stop();
var dropmenu = "up";
Instance of Symbol 65 MovieClip "downbtn" in Symbol 102 MovieClip Frame 1
on (press) {
if (_parent.dropmenu == "down") {
this.gotoAndStop("up");
_parent.dropmenu = "up";
_parent.gotoAndPlay("close");
trace(_parent.dropmenu);
} else if (_parent.dropmenu == "up") {
this.gotoAndStop("down");
_parent.dropmenu = "down";
_parent.gotoAndPlay("open");
trace(_parent.dropmenu);
}
}
Instance of Symbol 101 MovieClip "erasericon" in Symbol 102 MovieClip Frame 1
on (release) {
if (_parent._currentframe >= 5) {
_parent.gotoAndPlay("close");
}
_root.Canvas.shapeType = "erase";
_root.Canvas.erasesize = 100;
_root.Canvas.brushColor = {rb:255, bb:255, gb:255};
_root.fades();
this._alpha = 50;
}
Instance of Symbol 83 MovieClip in Symbol 102 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
_root.Canvas.shapeType = "erase";
_root.Canvas.erasesize = 100;
_root.Canvas.brushColor = {rb:255, bb:255, gb:255};
_root.fades();
this._alpha = 50;
_root.erase.erasericon._alpha = 50;
}
Instance of Symbol 83 MovieClip in Symbol 102 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
_root.Canvas.shapeType = "erase";
_root.Canvas.erasesize = 200;
_root.Canvas.brushColor = {rb:255, bb:255, gb:255};
_root.fades();
this._alpha = 50;
_root.erase.erasericon._alpha = 50;
}
Instance of Symbol 83 MovieClip in Symbol 102 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
_root.Canvas.shapeType = "erase";
_root.Canvas.erasesize = 300;
_root.Canvas.brushColor = {rb:255, bb:255, gb:255};
_root.fades();
this._alpha = 50;
_root.erase.erasericon._alpha = 50;
}
Symbol 102 MovieClip Frame 27
stop();
Symbol 106 MovieClip Frame 1
stop();
var dropmenu = "up";
Instance of Symbol 65 MovieClip "downbtn" in Symbol 106 MovieClip Frame 1
on (press) {
if (_parent.dropmenu == "down") {
this.gotoAndStop("up");
_parent.dropmenu = "up";
_parent.gotoAndPlay("close");
trace(_parent.dropmenu);
} else if (_parent.dropmenu == "up") {
this.gotoAndStop("down");
_parent.dropmenu = "down";
_parent.gotoAndPlay("open");
trace(_parent.dropmenu);
}
}
Instance of Symbol 104 MovieClip "imageicon" in Symbol 106 MovieClip Frame 1
on (release) {
if (_parent._currentframe >= 5) {
_parent.gotoAndPlay("close");
}
_root.Canvas.shapeType = "image";
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.fades();
this._alpha = 50;
}
Instance of Symbol 105 MovieClip "imageicon02" in Symbol 106 MovieClip Frame 2
on (release) {
_parent.gotoAndPlay("close");
_root.Canvas.shapeType = "image01";
myColor = new Color(_root.colormenu.display);
_root.Canvas.brushColor = myColor.getTransform();
_root.fades();
this._alpha = 50;
}
Symbol 106 MovieClip Frame 27
stop();
Symbol 107 Button
on (release) {
myColor = new Color(this);
_root.Canvas.brushColor = myColor.getTransform();
_root.Canvas.displayColor.setTransform(_root.Canvas.brushColor);
_root.colormenu.gotoAndPlay("close");
_root.colormenu.downbtn.gotoAndStop("up");
}
Symbol 111 MovieClip Frame 1
stop();
var dropmenu = "up";
Instance of Symbol 65 MovieClip "downbtn" in Symbol 111 MovieClip Frame 1
on (press) {
if (_parent.dropmenu == "down") {
this.gotoAndStop("up");
_parent.dropmenu = "up";
_parent.gotoAndPlay("close");
trace(_parent.dropmenu);
} else if (_parent.dropmenu == "up") {
this.gotoAndStop("down");
_parent.dropmenu = "down";
_parent.gotoAndPlay("open");
trace(_parent.dropmenu);
}
}
Symbol 111 MovieClip Frame 27
stop();