Frame 1
function onVisButton1() {
_root.backPic._alpha = 0;
_root.picVisibleState = 1;
_root.pr2 = 0;
}
function onVisButton2() {
_root.backPic._alpha = 25;
_root.picVisibleState = 2;
_root.pr2 = 0;
_root.backPicUp();
}
function onVisButton3() {
_root.backPic._alpha = 100;
_root.picVisibleState = 3;
_root.pr2 = 0;
_root.backPicDown();
}
function backPicUp() {
if (backPic.getDepth() < emptyswap.getDepth()) {
backPic.swapDepths(emptyswap);
}
}
function backPicDown() {
if (backPic.getDepth() > emptyswap.getDepth()) {
backPic.swapDepths(emptyswap);
}
}
function changeBackPic(c) {
var current = (backPic._currentframe - 1);
var next = (((current + backPic._totalframes) + c) % backPic._totalframes);
backPic.gotoAndStop(next + 1);
drawData[current] = new Object();
drawData[current].x = new Array();
drawData[current].y = new Array();
if (undox != undefined) {
drawData[current].undox = new Array();
drawData[current].undox = drawData[current].undox.concat(undox);
}
if (undoy != undefined) {
drawData[current].undoy = new Array();
drawData[current].undoy = drawData[current].undoy.concat(undoy);
}
drawData[current].x = drawData[current].x.concat(x);
drawData[current].y = drawData[current].y.concat(y);
x = new Array();
y = new Array();
delete undox;
delete undoy;
if (drawData[next].x.length or drawData[next].undox.length) {
x = x.concat(drawData[next].x);
y = y.concat(drawData[next].y);
if (drawData[next].undox != undefined) {
undox = new Array();
undox = undox.concat(drawData[next].undox);
}
if (drawData[next].undoy != undefined) {
undoy = new Array();
undoy = undoy.concat(drawData[next].undoy);
}
}
if (!x.length) {
changeLineStyle(6, 0);
storeLineStyle(6, 0);
}
quickRedraw();
}
if (drawData == undefined) {
drawData = new Array(100);
}
function setPicVisibleState(picVisibleState) {
if (picVisibleState == 0) {
b_picvisible._visible = 0;
} else if (picVisibleState == 1) {
b_picvisible._visible = 1;
b_picvisible.gotoAndStop(1);
onVisButton1();
} else if (picVisibleState == 2) {
b_picvisible._visible = 1;
b_picvisible.gotoAndStop(2);
onVisButton2();
} else if (picVisibleState == 3) {
b_picvisible._visible = 1;
b_picvisible.gotoAndStop(3);
onVisButton3();
}
}
function onOpenPictures(success, file) {
if (success) {
backPic.loadMovie(file);
var temp = file.split("\\");
pics = temp[temp.length - 1];
pictureStatus.t = pics.split(".")[0];
}
}
function loadPictures() {
swSystem.Dialogs.BrowseForFile_Open("", ["swf files", "*.swf", "jpg files", "*.jpg"], "C:\\Program Files\\Drawer\\pics\\", "Drawer - Open File", _root.onOpenPictures);
}
function OpenFileCallback(success, data) {
if (data) {
x = data.x.split("x");
y = data.y.split("y");
var i = 0;
while (i < x.length) {
x[i] = Number(x[i]);
y[i] = Number(y[i]);
i++;
}
sign._visible = (data.by.length ? 1 : 0);
sign.signtext = (data.by.length ? (data.by) : (sign.signtext));
changePageColor((String(data.page).length ? (data.page) : 16777215));
backPic.gotoAndStop((data.image_id ? (data.image_id) : 1));
initRedraw();
}
}
function onOpenFile(success, file) {
if (success) {
swFile.loadObject(file, _root.OpenFileCallback);
}
}
function loadFile() {
swSystem.Dialogs.BrowseForFile_Open("", ["dra files", "*.dra"], "", "Drawer - Open File", _root.onOpenFile);
}
function onSaveFile(success, file) {
if (success) {
swFile.saveObject(file, vars, SaveFileCallback, this);
}
}
function send(flag) {
vars = new LoadVars();
vars.x = x.join("x");
vars.y = y.join("y");
vars.page = currentPageColor;
vars.by = (sign._visible ? (sign.signtext) : "");
vars.user_id = user_id;
vars.save = flag;
vars.image_id = backPic._currentframe;
if (flag) {
swSystem.Dialogs.BrowseForFile_Save("", ["dra files", "*.dra"], "", "Drawer - Save File", "dra", _root.onSaveFile);
} else {
formURL = "";
vars_response.session_id = "";
vars_response.formURL = "";
vars.sendAndLoad(send_URL, vars_response, "POST");
trace("send");
}
}
function initDraw() {
if (mouse2brush == "2") {
Mouse.show();
pen._visible = 0;
shadow._visible = 0;
}
clearInterval(iid);
iid = setInterval(draw, 10);
drawing = 1;
pr = 0;
}
function initRedraw() {
if (mouse2brush == "2") {
Mouse.hide();
pen._visible = 1;
shadow._visible = 1;
}
front.clear();
clearInterval(iid);
iid = setInterval(redraw, ((replayspeed == undefined) ? 10 : (int(replayspeed))));
n = 0;
drawing = 0;
}
function draw() {
pen._x = _xmouse;
pen._y = _ymouse;
pen.movePen();
if (pr) {
x1 = Math.round(_root._xmouse);
y1 = Math.round(_root._ymouse);
if ((((x1 - x0) * (x1 - x0)) + ((y1 - y0) * (y1 - y0))) > _root.radius) {
if (x.length < inkmax) {
if (Key.isDown(16)) {
if ((!xr) and (!yr)) {
xr = ((Math.abs(x1 - x0) < Math.abs(y1 - y0)) ? (x0) : 0);
yr = ((Math.abs(x1 - x0) > Math.abs(y1 - y0)) ? (y0) : 0);
}
front.lineTo((x1 * (xr == 0)) + xr, (y1 * (yr == 0)) + yr);
x.push(((x1 * (xr == 0)) + xr) - xb);
y.push(((y1 * (yr == 0)) + yr) - yb);
} else {
front.lineTo(x1, y1);
x.push(x1 - xb);
y.push(y1 - yb);
}
x0 = x1;
y0 = y1;
ink._xscale = ((inkmax - x.length) * 100) / inkmax;
if (undox) {
delete undox;
delete undoy;
}
}
}
}
}
function quickRedraw() {
front.clear();
if (x.length) {
clearInterval(iid);
delete iid;
n = 0;
while (!iid) {
redraw();
}
}
}
function redraw() {
if (x[n] || (y[n])) {
if (x[n] % 1) {
changeLineStyle(String(x[n]).split(".")[1], y[n]);
} else {
pr = 1;
front.lineTo(x[n] + xb, y[n] + yb);
if (!drawing) {
pen._x = x[n] + xb;
pen._y = y[n] + yb;
pen.movePen();
updateAfterEvent();
}
}
} else if ((((((pen._x - x[n + 1]) - xb) * ((pen._x - x[n + 1]) - xb)) + (((pen._y - y[n + 1]) - yb) * ((pen._y - y[n + 1]) - yb))) < 50) or drawing) {
front.moveTo((Number(x[n + 1]) + xb) - 0.2, (Number(y[n + 1]) + yb) + 0.2);
} else {
pr = 0;
pen._x = pen._x + ((((10 - ((replayspeed == undefined) ? 10 : (int(replayspeed)))) / 20) + 0.17) * ((x[n + 1] - pen._x) + xb));
pen._y = pen._y + ((((10 - ((replayspeed == undefined) ? 10 : (int(replayspeed)))) / 20) + 0.17) * ((y[n + 1] - pen._y) + yb));
pen.movePen();
n--;
}
if ((++n) == x.length) {
initDraw();
}
}
function changeLineStyle(style, color) {
front.lineStyle(style, color);
radius = style;
pen.penColor.setRGB(color);
colorColor.setRGB(color);
lineStatus.dot._height = (lineStatus.dot._width = style);
currentStyle = style;
currentColor = color;
}
function changePageColor(color) {
if ((color != 1) & (color != 2)) {
pageStatus.gotoAndStop(1);
back.gotoAndStop(1);
pageColor.setRGB(color);
backColor.setRGB(color);
currentPageColor = color;
} else if (color == 1) {
pageStatus.gotoAndStop(2);
back.gotoAndStop(2);
backColor.setTransform(clearRGB);
pageColor.setTransform(clearRGB);
currentPageColor = 1;
} else if (color == 2) {
pageStatus.gotoAndStop(3);
back.gotoAndStop(3);
backColor.setTransform(clearRGB);
pageColor.setTransform(clearRGB);
currentPageColor = 2;
}
}
function storeLineStyle(style, color) {
if (x[x.length - 1] % 1) {
x.pop();
y.pop();
}
x.push(parseFloat("0." + style));
y.push(parseFloat(color));
}
function doPress() {
if (drawing) {
pr = 1;
x0 = Math.round(_root._xmouse);
y0 = Math.round(_root._ymouse);
if ((Key.isDown(16) and (!(x[x.length - 1] % 1))) and (x[x.length - 1] or y[y.length - 1])) {
front.moveTo(x[x.length - 1] + xb, y[y.length - 1] + yb);
front.lineTo(x0, y0);
x.push(x0 - xb);
y.push(y0 - yb);
} else {
front.moveTo(x0 - 0.2, y0 + 0.2);
front.lineTo(x0, y0);
x.push(0);
y.push(0);
x.push(x0 - xb);
y.push(y0 - yb);
}
if (undox) {
delete undox;
delete undoy;
}
}
}
function doRelease() {
if (drawing) {
pr = 0;
xr = (yr = 0);
}
}
function doClear() {
if (drawing and x.length) {
if (x.length > 1) {
undox = x.slice(0, x.length);
undoy = y.slice(0, y.length);
x.splice(0, undox.length);
y.splice(0, undoy.length);
changeLineStyle(currentStyle, currentColor);
storeLineStyle(currentStyle, currentColor);
quickRedraw();
}
}
}
function doUndo() {
if (drawing and x.length) {
var i = (x.length - 1);
while (i > 0) {
if ((!x[i]) and (!y[i])) {
if (x[i - 1] % 1) {
i--;
}
if (undox == undefined) {
undox = new Array();
undoy = new Array();
}
undox = x.slice(i, x.length).concat(undox);
undoy = y.slice(i, y.length).concat(undoy);
x.splice(i, undox.length);
y.splice(i, undoy.length);
changeLineStyle(currentStyle, currentColor);
storeLineStyle(currentStyle, currentColor);
quickRedraw();
break;
}
i--;
}
quickRedraw();
} else if (drawing) {
x = x.concat(undox);
y = y.concat(undoy);
delete undox;
delete undoy;
}
}
function doRedo() {
if (drawing and undox.length) {
var i = 0;
while (i < undox.length) {
if ((!undox[i]) and (!undoy[i])) {
break;
}
i++;
}
i++;
while (i < undox.length) {
if ((!undox[i]) and (!undoy[i])) {
break;
}
i++;
}
var dox = undox.slice(0, i);
var doy = undoy.slice(0, i);
undox.splice(0, i);
undoy.splice(0, i);
if (!undox.length) {
delete undox;
delete undoy;
}
changeLineStyle(currentStyle, currentColor);
storeLineStyle(currentStyle, currentColor);
quickRedraw();
if ((x[x.length - 1] % 1) and (undox[0] % 1)) {
x.pop();
y.pop();
}
x = x.concat(dox);
y = y.concat(doy);
quickRedraw();
}
}
function doMenuPage(color) {
changePageColor(color);
}
function doMenuLine(style) {
changeLineStyle(style, currentColor);
storeLineStyle(style, currentColor);
}
function doMenuColor(color) {
changeLineStyle(currentStyle, color);
storeLineStyle(currentStyle, color);
}
function mouseView() {
if ((mouse2brush == undefined) or (mouse2brush != "0")) {
Mouse.hide();
pen._visible = 1;
shadow._visible = 1;
} else {
Mouse.show();
pen._visible = 0;
shadow._visible = 0;
}
}
picVisibleState = ((picVisibleState == undefined) ? (2 * (pics != undefined)) : (picVisibleState));
mouse2brush = ((mouse2brush == undefined) ? 0 : (mouse2brush));
signState = ((signState == undefined) ? 0 : (signState));
prevNextState = ((prevNextState == undefined) ? 0 : (prevNextState));
mouseview();
if (currentPageColor) {
changePageColor(currentPageColor);
}
if (currentColor != undefined) {
changeLineStyle(currentStyle, currentColor);
}
setPicVisibleState(picVisibleState);
if (send_URL == undefined) {
}
var formURL = "";
vars_response = new LoadVars();
vars_response.onLoad = function (success) {
trace("onload");
if (success) {
if (vars_response.session_id.length > 0) {
formURL = (send_URL + "?") + vars_response.session_id;
if (vars_response.formURL.length > 0) {
formURL = (vars_response.formURL + "?") + vars_response.session_id;
}
getURL (formURL, "_blank");
}
}
};
stop();
inkmax = ((inkmax == undefined) ? 10000 : (inkmax));
if (bpv == undefined) {
xb = Math.round(back._x);
yb = Math.round(back._y);
big_btn.useHandCursor = 0;
backColor = new Color(back);
pageColor = new Color(pageStatus);
lineColor = new Color(lineStatus.dot);
colorColor = new Color(colorStatus);
clearRGB = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0"};
backPic.loadMovie(pics);
backPic._alpha = 0;
backPicDown();
picsNav._visible = ((pics == undefined) ? 0 : 1);
if (x == undefined) {
x = new Array();
y = new Array();
initDraw();
sign._visible = _root.signState;
changePageColor(16777215);
changeLineStyle(6, 0);
storeLineStyle(6, 0);
} else if (drawing == undefined) {
x = x.split("x");
y = y.split("y");
var i = 0;
while (i < x.length) {
x[i] = Number(x[i]);
y[i] = Number(y[i]);
i++;
}
sign._visible = (by.length ? ((sign.signtext = by)) : 0);
changePageColor((page.length ? (page) : 16777215));
backPic.gotoAndStop((image_id ? (image_id) : 1));
initRedraw();
}
} else {
backpic._visible = bpv;
}
bleft = Stage.width - (pen.pen._height * 0.4);
btop = pen.pen._height * 0.4;
Stage.align = "LT";
function onRTabsColor() {
currentPalette = 1;
menu_line._visible = 0;
palette1._visible = 1;
palette2._visible = 1;
palette3._visible = 1;
}
function onRTabsLine() {
currentPalette = 2;
menu_line._visible = 1;
menu_line.over._visible = 0;
palette1._visible = 0;
palette2._visible = 0;
palette3._visible = 0;
}
function onRTabsPage() {
currentPalette = 3;
menu_line._visible = 0;
palette1._visible = 1;
palette2._visible = 1;
palette3._visible = 1;
}
function fillpalette(palette, s, v) {
var imax = 17;
var uhue;
i = 1;
while (i < imax) {
uhue = 360 * unline((i - 1) / imax, CurveArray);
Set(((("palette" + palette) + "pal") + i) + "Color", new Color(eval ((("palette" + palette) + ".pal") + i)));
eval (((("palette" + palette) + "pal") + i) + "Color").setRGB(rgb(uhue, s, v));
frm = ((i + (palette * 2)) % 8) + 1;
eval (((("palette" + palette) + ".") + "pal") + i).pals.gotoAndStop(frm);
eval (((("palette" + palette) + ".") + "pb") + i).gotoAndStop(frm);
i++;
}
i = 17;
if (palette == 2) {
Set(((("palette" + palette) + "pal") + i) + "Color", new Color(eval ((("palette" + palette) + ".pal") + i)));
eval (((("palette" + palette) + "pal") + i) + "Color").setRGB(16777215);
frm = ((i + (palette * 2)) % 8) + 1;
eval (((("palette" + palette) + ".") + "pal") + i).pals.gotoAndStop(frm);
eval (((("palette" + palette) + ".") + "pb") + i).gotoAndStop(frm);
}
if (palette == 1) {
Set(((("palette" + palette) + "pal") + i) + "Color", new Color(eval ((("palette" + palette) + ".pal") + i)));
eval (((("palette" + palette) + "pal") + i) + "Color").setRGB(10066329);
frm = ((i + (palette * 2)) % 8) + 1;
eval (((("palette" + palette) + ".") + "pal") + i).pals.gotoAndStop(frm);
eval (((("palette" + palette) + ".") + "pb") + i).gotoAndStop(frm);
}
if (palette == 3) {
Set(((("palette" + palette) + "pal") + i) + "Color", new Color(eval ((("palette" + palette) + ".pal") + i)));
eval (((("palette" + palette) + "pal") + i) + "Color").setRGB(3355443);
frm = ((i + (palette * 2)) % 8) + 1;
eval (((("palette" + palette) + ".") + "pal") + i).pals.gotoAndStop(frm);
eval (((("palette" + palette) + ".") + "pb") + i).gotoAndStop(frm);
}
i = 0;
if (palette == 2) {
Set(((("palette" + palette) + "pal") + i) + "Color", new Color(eval ((("palette" + palette) + ".pal") + i)));
eval (((("palette" + palette) + "pal") + i) + "Color").setRGB(13421772);
frm = ((i + (palette * 2)) % 8) + 1;
eval (((("palette" + palette) + ".") + "pal") + i).pals.gotoAndStop(frm);
eval (((("palette" + palette) + ".") + "pb") + i).gotoAndStop(frm);
}
if (palette == 1) {
Set(((("palette" + palette) + "pal") + i) + "Color", new Color(eval ((("palette" + palette) + ".pal") + i)));
eval (((("palette" + palette) + "pal") + i) + "Color").setRGB(6710886);
frm = ((i + (palette * 2)) % 8) + 1;
eval (((("palette" + palette) + ".") + "pal") + i).pals.gotoAndStop(frm);
eval (((("palette" + palette) + ".") + "pb") + i).gotoAndStop(frm);
}
if (palette == 3) {
Set(((("palette" + palette) + "pal") + i) + "Color", new Color(eval ((("palette" + palette) + ".pal") + i)));
eval (((("palette" + palette) + "pal") + i) + "Color").setRGB(0);
frm = ((i + (palette * 2)) % 8) + 1;
eval (((("palette" + palette) + ".") + "pal") + i).pals.gotoAndStop(frm);
eval (((("palette" + palette) + ".") + "pb") + i).gotoAndStop(frm);
}
}
function rgb(hue, s, v) {
return((((Math.round((red(hue) * v) + s) * 256) * 256) + (Math.round((green(hue) * v) + s) * 256)) + Math.round((blue(hue) * v) + s));
}
function unline(v, CurveArray) {
var imin = Math.floor(v * CurveArray.length);
var summin = ArraySum(CurveArray, 0, imin - 1);
var sumall = ArraySum(CurveArray, 0, CurveArray.length);
var dv = CurveArray[imin];
var vu = ((summin + (dv * ((v * CurveArray.length) - imin))) / sumall);
return(vu);
}
function ArraySum(CurveArray, istart, iend) {
var i;
var sum = 0;
i = istart;
while (i <= iend) {
sum = sum + CurveArray[i];
i++;
}
return(sum);
}
function red(hue) {
if (hue < 60) {
return(255);
}
if (hue < 120) {
return(Math.round(((120 - hue) / 60) * 255));
}
if (hue < 240) {
return(0);
}
if (hue < 300) {
return(Math.round(((hue - 240) / 60) * 255));
}
return(255);
}
function green(hue) {
if (hue < 60) {
return(Math.round((hue / 60) * 255));
}
if (hue < 180) {
return(255);
}
if (hue < 240) {
return(Math.round(((240 - hue) / 60) * 255));
}
return(0);
}
function blue(hue) {
if (hue < 120) {
return(0);
}
if (hue < 180) {
return(Math.round(((hue - 120) / 60) * 255));
}
if (hue < 300) {
return(255);
}
return(Math.round(((360 - hue) / 60) * 255));
}
function setCurrentColor(color) {
currentIndicatorColor.setRGB(color);
signColor.setRGB(color);
brushColor.setRGB(color);
}
function fillpalettepage() {
var imax = 10;
var uhue;
var s = 50;
var v = 0.6;
var ii;
var ip;
ip = 2;
i = 0;
while (i < imax) {
uhue = 360 * unline(i / imax, CurveArray);
Set(((("menu_page.pal_elem_page" + ip) + "_") + i) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + i)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + i) + "Color").setRGB(rgb(uhue, s, v));
i++;
}
ii = 10;
Set(((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + ii)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color").setRGB(rgb(0, 102, 0));
ii = 11;
Set(((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + ii)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color").setRGB(1);
ip = 1;
s = 130;
v = 1;
i = 0;
while (i < imax) {
uhue = 360 * unline(i / imax, CurveArray);
Set(((("menu_page.pal_elem_page" + ip) + "_") + i) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + i)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + i) + "Color").setRGB(rgb(uhue, s, v));
i++;
}
ii = 10;
Set(((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + ii)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color").setRGB(rgb(0, 204, 0));
ii = 11;
Set(((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + ii)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color").setRGB(rgb(0, 255, 0));
ip = 3;
s = 40;
v = 0.25;
i = 0;
while (i < imax) {
uhue = 360 * unline(i / imax, CurveArray);
Set(((("menu_page.pal_elem_page" + ip) + "_") + i) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + i)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + i) + "Color").setRGB(rgb(uhue, s, v));
i++;
}
ii = 10;
Set(((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + ii)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color").setRGB(rgb(0, 2, 0));
ii = 11;
Set(((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color", new Color(eval ((("menu_page.pal_elem_page" + ip) + "_") + ii)));
eval (((("menu_page.pal_elem_page" + ip) + "_") + ii) + "Color").setRGB(2);
}
function top(iv, tv) {
if (iv > tv) {
iv = tv;
}
return(iv);
}
CurveArray = new Array(6, 12, 12, 6);
currentPalette = 1;
onRTabsColor();
b_tabs.gotoAndStop(1);
fillpalette(1, 0, 1);
fillpalette(2, 170, 0.33);
fillpalette(3, 0, 0.6);
LineDiam = new Array(2, 4, 6, 8, 11, 14, 18, 25, 31, 39, 49, 61);
i = 0;
while (i < 12) {
setProperty(("menu_line.pal_elem_line" + i) + ".dot", _width , LineDiam[i]);
setProperty(("menu_line.pal_elem_line" + i) + ".dot", _height , LineDiam[i]);
setProperty(("menu_line.pal_elem_line" + i) + ".pal_button_line", _height , LineDiam[i] + 14);
i++;
}
Instance of Symbol 47 MovieClip in Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 55 MovieClip "menu_line" in Frame 1
/* no clip actions */
Instance of Symbol 104 MovieClip "backPic" in Frame 1
onClipEvent (data) {
stop();
if (_parent.image_id != undefined) {
gotoAndStop(_parent.image_id);
}
_root.setPicVisibleState(_root.picVisibleState);
_parent.picsNav._visible = _totalframes > 1;
}
Instance of Symbol 117 MovieClip "pen" in Frame 1
onClipEvent (load) {
function movePen() {
if (_parent.pr || (_parent.pr2)) {
pen._y = 0;
_parent.shadow.shadow._y = 0;
} else if (pen._y > -8) {
dy = -14;
} else if (pen._y < -12) {
dy = -6;
}
pen._y = pen._y + ((dy - pen._y) * 0.05);
_parent.shadow.shadow._y = pen._y;
if ((_x < _parent.bleft) && (_y < _parent.btop)) {
u = 150;
} else if (_y < _parent.btop) {
u = -140;
} else if (_x < _parent.bleft) {
u = 40;
} else {
u = -60;
}
_rotation = (_rotation + (0.11 * ((Math.abs(u - _rotation) > 180) ? ((-(u - _rotation)) % 90) : (u - _rotation))));
_parent.shadow._rotation = 90 + (Math.abs(((_rotation < -135) ? (360 + _rotation) : (_rotation)) - 45) / 2);
_parent.shadow._x = _x;
_parent.shadow._y = _y;
updateAfterEvent();
}
pencolor = new Color(pen.back);
_yscale = 50;
_xscale = 50;
_parent.shadow._xscale = (_parent.shadow._yscale = 50);
pencolor.setRGB(_root.currentColor);
}
Frame 2
bpv = backPic._visible;
backPic._visible = 0;
printNum (1, "bframe");
trace(_level0._width);
trace(_level0._height);
Instance of Symbol 55 MovieClip "menu_line" in Frame 2
/* no clip actions */
Symbol 6 Button
on (press) {
_root.nname = _parent._name;
if (_root.currentPalette == 1) {
_root.doMenuColor(eval ((("_root." + _parent._name) + this._name) + "Color").getRGB());
}
if (_root.currentPalette == 3) {
_root.doMenuPage(eval ((("_root." + _parent._name) + this._name) + "Color").getRGB());
}
}
Symbol 18 Button
on (release) {
_root.gotoAndPlay("#p");
}
Symbol 22 Button
on (release) {
doClear();
}
Symbol 26 Button
on (release) {
doUndo();
}
Symbol 30 Button
on (release) {
if (sign._visible) {
sign._visible = false;
_root.signState = 0;
} else {
sign._visible = true;
_root.signState = 1;
Selection.setFocus("sign.signtext");
Selection.setSelection(100, 100);
}
}
Symbol 34 Button
on (release) {
initRedraw();
}
Symbol 38 Button
on (release) {
doRedo();
}
Symbol 42 Button
on (release) {
gotoAndStop (2);
}
Symbol 46 Button
on (release) {
gotoAndStop (1);
}
Symbol 47 MovieClip Frame 1
_parent.mouse2brush = 1;
_parent.mouseview();
Symbol 47 MovieClip Frame 2
_parent.mouse2brush = 0;
_parent.mouseview();
Symbol 49 Button
on (release) {
_root.doMenuLine(this.dot._width);
_root.pr2 = 0;
}
on (rollOver) {
_parent.over._visible = 1;
_parent.over._height = _height;
_parent.over._x = _x;
_parent.over._y = _y;
}
on (rollOut) {
_parent.over._visible = 0;
}
Symbol 57 Button
on (press) {
_root.onRTabsColor();
gotoAndStop (1);
}
Symbol 58 Button
on (press) {
_root.onRTabsLine();
gotoAndStop (2);
}
Symbol 59 Button
on (press) {
_root.onRTabsPage();
gotoAndStop (3);
}
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 65 MovieClip Frame 3
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 78 Button
on (release) {
gotoAndStop (1);
_root.onVisButton1();
}
Symbol 79 Button
on (release) {
gotoAndStop (2);
_root.onVisButton2();
}
Symbol 80 Button
on (release) {
gotoAndStop (3);
_root.onVisButton3();
}
Symbol 84 Button
on (release) {
_root.changeBackPic(1);
}
Symbol 88 Button
on (release) {
_root.changeBackPic(-1);
}
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 3
stop();
Symbol 99 Button
on (press) {
doPress();
}
on (release, releaseOutside) {
doRelease();
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 1
stop();