Frame 1
function newshape() {
snum++;
bc = 1;
_root.createEmptyMovieClip("hold" + snum, 25000 + snum);
with (_root["hold" + snum]) {
_y = SH + (snum * 15);
createTextField("tb", 1, 0, 0, SW, 500);
_root.inilf._visible = 1;
}
}
function drawline(vi) {
bc++;
if (editing) {
shnm = currshape;
} else {
shnm = snum;
}
ab = _root["hold" + shnm].tb.text;
aba = ab.split(",");
if (bc == 2) {
duplicateMovieClip ("dr", "drl1", bc + 500000);
if (editing) {
drl1._x = int(aba[5]) + 200;
drl1._y = int(aba[6]) + 200;
} else {
drl1._x = (drl1._y = 200);
aba[5] = drl1._x - 200;
aba[6] = drl1._y - 200;
_root["hold" + shnm].tb.text = aba;
_root.drl1.onRelease = (_root.drl1.onReleaseOutside = function () {
ae = _root["hold" + shnm].tb.text;
aea = ae.split(",");
with (this) {
aea[5] = int(_x - 200);
aea[6] = int(_y - 200);
_root["hold" + shnm].tb.text = aea;
translate();
}
});
}
}
duplicateMovieClip ("dr", "drl" + bc, bc + 500001);
_root.createEmptyMovieClip("lline" + bc, bc + 450000);
if (vi == 1) {
_root["drl" + bc]._x = _root.drl1._x;
_root["drl" + bc]._y = _root.drl1._y;
} else if (editing) {
CLC = 0;
i = bc;
while (i >= 0) {
if ((!(_root["lline" + i]._x === undefined)) || (!(_root["cline" + i]._x === undefined))) {
CLC++;
}
i--;
}
POS = (CLC + 3) + (bc * 2);
_root["drl" + bc]._x = int(aba[POS]) + 200;
_root["drl" + bc]._y = int(aba[POS + 1]) + 200;
} else {
_root["drl" + bc]._x = _root["drl" + (bc - 1)]._x + 20;
_root["drl" + bc]._y = _root["drl" + (bc - 1)]._y;
}
if (!editing) {
_root["hold" + shnm].tb.text = (((_root["hold" + shnm].tb.text + ",0,") + int(_root["drl" + bc]._x - 200)) + ",") + int(_root["drl" + bc]._y - 200);
translate();
}
_root.drl1.onPress = (_root["drl" + bc].onPress = function () {
startDrag (this);
sd = this._name;
});
_root["drl" + bc].onRelease = (_root["drl" + bc].onReleaseOutside = function () {
ad = _root["hold" + shnm].tb.text;
ada = ad.split(",");
with (this) {
lnp = int(_name.substr(3, 9));
CLC = 0;
i = lnp;
while (i >= 0) {
if ((!(_root["lline" + i]._x === undefined)) || (!(_root["cline" + i]._x === undefined))) {
CLC++;
}
i--;
}
POS = (CLC + 3) + (lnp * 2);
if ((POS == (ada.length - 2)) && (editing)) {
ada[5] = int(_x - 200);
ada[6] = int(_y - 200);
}
ada[POS] = int(_x - 200);
ada[POS + 1] = int(_y - 200);
_root["hold" + shnm].tb.text = ada;
translate();
}
});
if (vi == 1) {
_root["drl" + bc].onEnterFrame = function () {
with (this) {
av = _root["hold" + shnm].tb.text;
ava = av.split(",");
_root.drl1._x = _x;
_root.drl1._y = _y;
ava[5] = int(_x - 200);
ava[6] = int(_y - 200);
_root["hold" + shnm].tb.text = ava;
}
};
}
_root["lline" + bc].onEnterFrame = function () {
with (this) {
ac = _root["hold" + shnm].tb.text;
aca = ac.split(",");
ln = int(_name.substr(5, 10));
clear();
db1 = _root["drl" + (int(ln) - 1)];
db2 = _root["drl" + ln];
lineStyle(2, alcol, 100);
moveTo(db1._x, db1._y);
lineTo(db2._x, db2._y);
lineStyle(aca[0], aca[1], aca[2]);
moveTo(db1._x + 400, db1._y);
lineTo(db2._x + 400, db2._y);
}
};
}
function drawcurve(vi) {
bc++;
if (editing) {
shnm = currshape;
} else {
shnm = snum;
}
af = _root["hold" + shnm].tb.text;
afa = af.split(",");
if (bc == 2) {
duplicateMovieClip ("dr", "drl1", bc + 500000);
if (editing) {
drl1._x = int(afa[5]) + 200;
drl1._y = int(afa[6]) + 200;
} else {
drl1._x = (drl1._y = 200);
afa[5] = drl1._x - 200;
afa[6] = drl1._y - 200;
_root["hold" + shnm].tb.text = afa;
_root.drl1.onRelease = (_root.drl1.onReleaseOutside = function () {
ag = _root["hold" + shnm].tb.text;
aga = ag.split(",");
with (this) {
aga[5] = _x - 200;
aga[6] = _y - 200;
_root["hold" + shnm].tb.text = aga;
translate();
}
});
}
}
duplicateMovieClip ("drc", "drl" + bc, bc + 500001);
duplicateMovieClip ("dr", "drl" + (bc + 1), bc + 500002);
_root.createEmptyMovieClip("cline" + bc, bc + 450000);
if (editing) {
CLC = 0;
i = bc;
while (i >= 0) {
if ((!(_root["lline" + i]._x === undefined)) || (!(_root["cline" + i]._x === undefined))) {
CLC++;
}
i--;
}
POS = (CLC + 3) + (bc * 2);
_root["drl" + bc]._x = int(afa[POS]) + 200;
_root["drl" + bc]._y = int(afa[POS + 1]) + 200;
} else {
_root["drl" + bc]._x = _root["drl" + (bc - 1)]._x + 20;
_root["drl" + bc]._y = _root["drl" + (bc - 1)]._y - 40;
}
if (vi == 1) {
_root["drl" + (bc + 1)]._x = _root.drl1._x;
_root["drl" + (bc + 1)]._y = _root.drl1._y;
} else if (editing) {
CLC = 0;
i = bc;
while (i >= 0) {
if ((!(_root["lline" + i]._x === undefined)) || (!(_root["cline" + i]._x === undefined))) {
CLC++;
}
i--;
}
POS = (CLC + 3) + (bc * 2);
_root["drl" + (bc + 1)]._x = int(afa[POS + 2]) + 200;
_root["drl" + (bc + 1)]._y = int(afa[POS + 3]) + 200;
} else {
_root["drl" + (bc + 1)]._x = _root["drl" + (bc - 1)]._x + 40;
_root["drl" + (bc + 1)]._y = _root["drl" + (bc - 1)]._y;
}
if (!editing) {
_root["hold" + shnm].tb.text = (((((((_root["hold" + shnm].tb.text + ",1,") + int(_root["drl" + bc]._x - 200)) + ",") + int(_root["drl" + bc]._y - 200)) + ",") + int(_root["drl" + (bc + 1)]._x - 200)) + ",") + int(_root["drl" + (bc + 1)]._y - 200);
translate();
}
_root.drl1.onPress = (_root["drl" + bc].onPress = (_root["drl" + (bc + 1)].onPress = function () {
startDrag (this);
sd = this._name;
}));
_root["drl" + bc].onRelease = (_root["drl" + (bc + 1)].onRelease = (_root["drl" + bc].onReleaseOutside = (_root["drl" + (bc + 1)].onReleaseOutside = function () {
ah = _root["hold" + shnm].tb.text;
aha = ah.split(",");
with (this) {
lnp = int(_name.substr(3, 9));
CLC = 0;
i = lnp;
while (i >= 0) {
if ((!(_root["cline" + i]._x === undefined)) || (!(_root["lline" + i]._x === undefined))) {
CLC++;
}
i--;
}
POS = (CLC + 3) + (lnp * 2);
if ((POS == (aha.length - 2)) && (editing)) {
aha[5] = int(_x - 200);
aha[6] = int(_y - 200);
}
aha[POS] = int(_x - 200);
aha[POS + 1] = int(_y - 200);
_root["hold" + shnm].tb.text = aha;
translate();
}
})));
if (vi == 1) {
_root["drl" + (bc + 1)].onEnterFrame = function () {
with (this) {
av = _root["hold" + shnm].tb.text;
ava = av.split(",");
_root.drl1._x = _x;
_root.drl1._y = _y;
ava[5] = int(_x - 200);
ava[6] = int(_y - 200);
_root["hold" + shnm].tb.text = ava;
}
};
}
_root["cline" + bc].onEnterFrame = function () {
with (this) {
ai = _root["hold" + shnm].tb.text;
aia = ai.split(",");
ln = int(_name.substr(5, 10));
clear();
db1 = _root["drl" + (int(ln) - 1)];
db2 = _root["drl" + ln];
db3 = _root["drl" + (int(ln) + 1)];
lineStyle(2, alcol, 100);
moveTo(db1._x, db1._y);
curveTo(db2._x, db2._y, db3._x, db3._y);
lineStyle(aia[0], aia[1], aia[2]);
moveTo(db1._x + 400, db1._y);
curveTo(db2._x + 400, db2._y, db3._x + 400, db3._y);
}
};
bc++;
}
function undo() {
i = bc;
while (i > 0) {
_root["drl" + i].removeMovieClip();
if (!(_root["lline" + i]._y === undefined)) {
_root["lline" + i].removeMovieClip();
aj = _root["hold" + snum].tb.text;
aja = aj.split(",");
if (aja.length < 11) {
aja.splice(5, aja.length - 5);
} else {
aja.splice(aja.length - 3, 3);
}
_root["hold" + snum].tb.text = aja;
bc--;
translate();
break;
}
if (!(_root["cline" + i]._y === undefined)) {
_root["cline" + i].removeMovieClip();
ak = _root["hold" + snum].tb.text;
aka = ak.split(",");
if (aka.length < 13) {
aka.splice(5, aka.length - 5);
} else {
aka.splice(aka.length - 5, 5);
}
_root["hold" + snum].tb.text = aka;
bc = bc - 2;
translate();
break;
}
i--;
}
}
function clearshape() {
i = 0;
while (i < (bc + 1)) {
_root["drl" + i].removeMovieClip();
_root["lline" + i].removeMovieClip();
_root["cline" + i].removeMovieClip();
i++;
}
_root.bc = 1;
_root["hold" + snum].tb.text = "";
_root.scode.r.text = "";
_root.snum--;
}
function drw(a, mc) {
with (mc) {
lineStyle(a[0], a[1], a[2]);
beginFill(a[3], a[4]);
moveTo(a[5], a[6]);
m = 7;
while (m < a.length) {
if (a[m] == 0) {
lineTo(a[m + 1], a[m + 2]);
m = m + 3;
} else {
curveTo(a[m + 1], a[m + 2], a[m + 3], a[m + 4]);
m = m + 5;
}
}
endFill();
}
}
function drawallshapes() {
i = 1;
while (i < (snum + 1)) {
_root["drawnshape" + i].removeMovieClip();
i++;
}
i = 1;
while (i < (snum + 1)) {
_root.createEmptyMovieClip("drawnshape" + i, 400000 + i);
_root["drawnshape" + i]._x = 600;
_root["drawnshape" + i]._y = 200;
ar = _root["hold" + i].tb.text;
ara = ar.split(",");
drw(ara, _root["drawnshape" + i]);
_root["drawnshape" + i].onPress = function () {
startDrag (this);
ln = int(this._name.substr(10, 14));
dlg = "SHAPE " + ln;
currshape = ln;
currshapeX = this._x;
currshapeY = this._y;
};
_root["drawnshape" + i].onRelease = (_root["drawnshape" + i].onReleaseOutside = function () {
Xchng = this._x - currshapeX;
Ychng = this._y - currshapeY;
as = _root["hold" + currshape].tb.text;
asa = as.split(",");
moveshape(asa, currshape, Xchng, Ychng);
translate();
});
i++;
}
translate();
}
function deleteshape() {
i = currshape;
while (i < (snum + 1)) {
_root["hold" + i].tb.text = _root["hold" + (i + 1)].tb.text;
i++;
}
_root["hold" + snum].removeMovieClip();
_root["drawnshape" + snum].removeMovieClip();
snum--;
drawallshapes();
}
function changedepth(di) {
i = currshape;
if ((di == 1) && (!(_root["hold" + (i + 1)].tb.text === undefined))) {
trace("UP");
vig = _root["hold" + (i + 1)].tb.text;
_root["hold" + (i + 1)].tb.text = _root["hold" + i].tb.text;
_root["hold" + i].tb.text = vig;
currshape++;
dlg = "DEPTH " + currshape;
} else if ((di == 0) && (!(_root["hold" + (i - 1)]._x === undefined))) {
trace("DOWN");
vig = _root["hold" + (i - 1)].tb.text;
_root["hold" + (i - 1)].tb.text = _root["hold" + i].tb.text;
_root["hold" + i].tb.text = vig;
currshape--;
dlg = "DEPTH " + currshape;
}
drawallshapes();
}
function moveshape(a, nm, Xm, Ym) {
m = 5;
a[m] = int(a[m]) + Xm;
m++;
a[m] = int(a[m]) + Ym;
m++;
while (m < a.length) {
if (a[m] == 0) {
a[m + 1] = int(a[m + 1]) + Xm;
a[m + 2] = int(a[m + 2]) + Ym;
m = m + 3;
} else {
a[m + 1] = int(a[m + 1]) + Xm;
a[m + 2] = int(a[m + 2]) + Ym;
a[m + 3] = int(a[m + 3]) + Xm;
a[m + 4] = int(a[m + 4]) + Ym;
m = m + 5;
}
}
_root["hold" + nm].tb.text = a;
}
function movetoleft() {
bc = 1;
au = _root["hold" + currshape].tb.text;
aua = au.split(",");
mi = 7;
while (mi < aua.length) {
if (aua[mi] == 0) {
if (mi == (aua.length - 3)) {
drawline(1);
mi = mi + 3;
} else {
drawline(0);
mi = mi + 3;
}
} else if (mi == (aua.length - 5)) {
drawcurve(1);
mi = mi + 5;
} else {
drawcurve(0);
mi = mi + 5;
}
}
}
function translate() {
st = "";
i = 1;
while (i < (snum + 1)) {
if (!(_root["hold" + i]._x === undefined)) {
temps = _root["hold" + i].tb.text;
a = temps.split(",");
st = ((st + "//Shape ") + i) + newline;
st = (((((((st + "lineStyle(") + a[0]) + ", ") + a[1]) + ", ") + a[2]) + ");") + newline;
st = (((((st + "beginFill(") + a[3]) + ", ") + a[4]) + ");") + newline;
st = (((((st + "moveTo(") + a[5]) + ", ") + a[6]) + ");") + newline;
m = 7;
while (m < a.length) {
if (a[m] == 0) {
st = (((((st + "lineTo(") + a[m + 1]) + ", ") + a[m + 2]) + ");") + newline;
m = m + 3;
} else {
st = (((((((((st + "curveTo(") + a[m + 1]) + ", ") + a[m + 2]) + ", ") + a[m + 3]) + ", ") + a[m + 4]) + ");") + newline;
m = m + 5;
}
}
st = (st + "endFill();") + newline;
}
i++;
}
scode.r.text = st;
}
SW = Stage.width;
SH = Stage.height;
snum = 0;
chtlc = 0;
alcol = 16711680 /* 0xFF0000 */;
mbtnm = 8;
abtnm = 16;
editing = 0;
i = 2;
while (i < abtnm) {
_root["b" + i]._visible = 0;
i++;
}
onMouseUp = function () {
stopDrag();
};
onEnterFrame = function () {
if (!(getProperty(sd, _x) === undefined)) {
xp = int(getProperty(sd, _x) - 200);
yp = int(getProperty(sd, _y) - 200);
} else {
xp = (yp = 0);
}
};
stop();
Instance of Symbol 5 MovieClip "scode" in Frame 1
onClipEvent (load) {
this.swapDepths(9000000);
this._visible = 0;
}
Instance of Symbol 77 MovieClip "cpick" in Frame 1
onClipEvent (load) {
this.swapDepths(700001);
this._visible = 0;
}
Instance of Symbol 95 MovieClip "inilf" in Frame 1
onClipEvent (load) {
this.swapDepths(700000);
this._visible = 0;
}
Instance of Symbol 89 MovieClip "tcol" in Frame 1
on (press) {
_root.colp = "TRACING LINE COLOUR";
_root.chtlc = 1;
_root.cpick._visible = 1;
}
Symbol 14 Button
on (press) {
newshape();
i = 1;
while (i < mbtnm) {
_root["b" + i]._visible = 0;
i++;
}
}
Symbol 18 Button
on (press) {
if (!(lbtxt === "OK")) {
i = 1;
while (i < mbtnm) {
_root["b" + i]._visible = 0;
i++;
}
b2._visible = 1;
lbtxt = "OK";
drawline(0);
} else {
i = 2;
while (i < mbtnm) {
_root["b" + i]._visible = 1;
i++;
}
lbtxt = "LINE";
}
}
Symbol 21 Button
on (press) {
if (!(cbtxt === "OK")) {
cbtxt = "OK";
drawcurve(0);
i = 1;
while (i < mbtnm) {
_root["b" + i]._visible = 0;
i++;
}
b3._visible = 1;
} else {
i = 2;
while (i < mbtnm) {
_root["b" + i]._visible = 1;
i++;
}
cbtxt = "CURVE";
}
}
Symbol 24 Button
on (press) {
i = 2;
while (i < mbtnm) {
_root["b" + i]._visible = 1;
i++;
}
undo();
}
Symbol 27 Button
on (press) {
i = 1;
while (i < mbtnm) {
_root["b" + i]._visible = 1;
i++;
}
clearshape();
}
Symbol 30 Button
on (press) {
if (!(fwctxt === "COMPLETE SHAPE")) {
fwctxt = "COMPLETE SHAPE";
drawcurve(1);
i = 1;
while (i < mbtnm) {
_root["b" + i]._visible = 0;
i++;
}
b7._visible = 1;
} else {
i = 2;
while (i < mbtnm) {
_root["b" + i]._visible = 0;
i++;
}
fwctxt = "FINISH WITH CURVE";
b1._visible = (b13._visible = 1);
drawallshapes();
i = 0;
while (i < (bc + 1)) {
_root["drl" + i].removeMovieClip();
_root["lline" + i].removeMovieClip();
_root["cline" + i].removeMovieClip();
i++;
}
}
}
Symbol 33 Button
on (press) {
if (!(fwltxt === "COMPLETE SHAPE")) {
fwltxt = "COMPLETE SHAPE";
drawline(1);
i = 1;
while (i < mbtnm) {
_root["b" + i]._visible = 0;
i++;
}
b6._visible = 1;
} else {
i = 2;
while (i < mbtnm) {
_root["b" + i]._visible = 0;
i++;
}
fwltxt = "FINISH WITH LINE";
b1._visible = (b13._visible = 1);
drawallshapes();
i = 0;
while (i < (bc + 1)) {
_root["drl" + i].removeMovieClip();
_root["lline" + i].removeMovieClip();
_root["cline" + i].removeMovieClip();
i++;
}
}
}
Symbol 36 Button
on (press) {
scode._visible = 0;
scodeyn = "SHOW CODE";
if (currshape == undefined) {
dlg = "SELECT A SHAPE";
} else {
deleteshape();
if (r.text == "") {
i = 1;
while (i < abtnm) {
_root["b" + i]._visible = 0;
i++;
}
b1._visible = 1;
editing = 0;
snum = 1;
dlg = "";
}
translate();
}
}
Symbol 39 Button
on (press) {
scode._visible = 0;
scodeyn = "SHOW CODE";
if (currshape == undefined) {
dlg = "SELECT A SHAPE";
} else {
b10._visible = (b11._visible = (b12._visible = (b13._visible = (b14._visible = (b15._visible = 0)))));
aw = _root["hold" + currshape].tb.text;
awa = aw.split(",");
with (inilf) {
l1 = awa[0];
l2 = awa[1];
l3 = awa[2];
f1 = awa[3];
f2 = awa[4];
_visible = 1;
}
new Color(_root.inilf.lcol).setRGB(awa[1]);
new Color(_root.inilf.fcol).setRGB(awa[3]);
}
}
Symbol 42 Button
on (press) {
scode._visible = 0;
scodeyn = "SHOW CODE";
if (currshape == undefined) {
dlg = "SELECT A SHAPE";
} else {
dlg = "";
if (!(edstxt === "FINISH EDIT")) {
i = 1;
while (i < abtnm) {
_root["b" + i]._visible = 0;
i++;
}
edstxt = "FINISH EDIT";
b10._visible = 1;
movetoleft();
_root["drawnshape" + currshape].clear();
} else {
edstxt = "EDIT SHAPE";
b10._visible = (b11._visible = (b12._visible = (b13._visible = (b14._visible = (b15._visible = 1)))));
drawallshapes();
i = 0;
while (i < (bc + 1)) {
_root["drl" + i].removeMovieClip();
_root["lline" + i].removeMovieClip();
_root["cline" + i].removeMovieClip();
i++;
}
}
}
}
Symbol 45 Button
on (press) {
scode._visible = 0;
scodeyn = "SHOW CODE";
if (!(_root.eemtxt === "EXIT EDIT MODE")) {
_root.eemtxt = "EXIT EDIT MODE";
editing = 1;
i = 1;
while (i < abtnm) {
_root["b" + i]._visible = 0;
i++;
}
b10._visible = (b11._visible = (b12._visible = (b13._visible = (b14._visible = (b15._visible = 1)))));
} else {
_root.eemtxt = "ENTER EDIT MODE";
editing = 0;
i = 1;
while (i < abtnm) {
_root["b" + i]._visible = 0;
i++;
}
b1._visible = (b13._visible = 1);
dlg = "";
}
}
Symbol 48 Button
on (press) {
scode._visible = 0;
scodeyn = "SHOW CODE";
if (currshape == undefined) {
dlg = "SELECT A SHAPE";
} else {
changedepth(1);
}
}
Symbol 51 Button
on (press) {
scode._visible = 0;
scodeyn = "SHOW CODE";
if (currshape == undefined) {
dlg = "SELECT A SHAPE";
} else {
changedepth(0);
}
}
Symbol 54 Button
on (press) {
if (!(scodeyn === "HIDE CODE")) {
scodeyn = "HIDE CODE";
scode._visible = 1;
} else {
scodeyn = "SHOW CODE";
scode._visible = 0;
}
}
Symbol 77 MovieClip Frame 1
blend = function (first, second, percent) {
return(((first * (100 - percent)) + (second * percent)) / 100);
};
picker._x = 50;
picker._y = 50;
updater = function () {
var _local4 = 0;
var _local5 = 0;
var _local3 = 0;
if (picker._x <= 16.6666666666667) {
_local4 = 255;
_local5 = blend(0, 255, picker._x * 6);
_local3 = 0;
} else if (picker._x <= 33.3333333333333) {
_local4 = blend(255, 0, (picker._x * 6) - 100);
_local5 = 255;
_local3 = 0;
} else if (picker._x <= 50) {
_local4 = 0;
_local5 = 255;
_local3 = blend(0, 255, (6 * picker._x) - 200);
} else if (picker._x <= 66.6666666666667) {
_local4 = 0;
_local5 = blend(255, 0, (6 * picker._x) - 300);
_local3 = 255;
} else if (picker._x <= 83.3333333333333) {
_local4 = blend(0, 255, (6 * picker._x) - 400);
_local5 = 0;
_local3 = 255;
} else if (picker._x <= 100) {
_local4 = 255;
_local5 = 0;
_local3 = blend(255, 0, (6 * picker._x) - 500);
}
_local4 = blend(_local4, 128, picker._y);
_local5 = blend(_local5, 128, picker._y);
_local3 = blend(_local3, 128, picker._y);
colour2 = new Color(vmeter);
transform = {ra:100, rb:_local4, ga:100, gb:_local5, ba:100, bb:_local3, aa:100, ab:0};
colour2.setTransform(transform);
if (slider._y < 50) {
var _local6 = (50 - slider._y) * 2;
_local4 = blend(_local4, 255, _local6);
_local5 = blend(_local5, 255, _local6);
_local3 = blend(_local3, 255, _local6);
} else {
var _local6 = (slider._y * 2) - 100;
_local4 = blend(_local4, 0, _local6);
_local5 = blend(_local5, 0, _local6);
_local3 = blend(_local3, 0, _local6);
}
colour = new Color(palette1);
transform = new Object();
transform = {ra:100, rb:_local4, ga:100, gb:_local5, ba:100, bb:_local3, aa:100, ab:0};
colour.setTransform(transform);
colourstring = ((((((_local4 < 16) ? "0" : "") + _local4.toString(16)) + ((_local5 < 16) ? "0" : "")) + _local5.toString(16)) + ((_local3 < 16) ? "0" : "")) + _local3.toString(16);
_root.cstring = "0x" + colourstring.toUpperCase();
colour = parseInt(_parent.colourstring, 16);
red = _local4;
green = _local5;
blue = _local3;
if (onChange) {
onChange();
}
};
cpb.onPress = function () {
picker.startDrag(true, 0, 0, 100, 100);
picker._x = _xmouse;
picker._y = _ymouse;
updater();
Mouse.addListener(myLis);
};
cpb.onRelease = (cpb.onReleaseOutside = function () {
picker.stopDrag();
Mouse.removeListener(myLis);
});
csb.onPress = function () {
slider.startDrag(true, 105, 0, 105, 100);
slider._y = _ymouse;
updater();
Mouse.addListener(myLis);
};
csb.onRelease = (csb.onReleaseOutside = function () {
slider.stopDrag();
slider._x = 105;
Mouse.removeListener(myLis);
});
ok.onPress = function () {
_visible = false;
if (_root.chtlc) {
_root.alcol = _root.cstring;
new Color(_root.tcol).setRGB(_root.cstring);
_root.chtlc = 0;
} else if (_root.lineorfill) {
_root.inilf.f1 = _root.cstring;
new Color(_root.inilf.fcol).setRGB(_root.cstring);
} else {
_root.inilf.l2 = _root.cstring;
new Color(_root.inilf.lcol).setRGB(_root.cstring);
}
Mouse.removeListener(myLis);
};
myLis = {onMouseMove:updater};
updater();
Symbol 87 Button
on (press) {
if (_root.editing) {
at = _root["hold" + _root.currshape].tb.text;
ata = at.split(",");
ata[0] = l1;
ata[1] = l2;
ata[2] = l3;
ata[3] = f1;
ata[4] = f2;
_root["hold" + _root.currshape].tb.text = ata;
_visible = false;
with (_root) {
translate();
drawallshapes();
b10._visible = (b11._visible = (b12._visible = (b13._visible = (b14._visible = (b15._visible = 1)))));
}
} else {
with (_root["hold" + _root.snum]) {
tb.text = (((((((l1 + ",") + l2) + ",") + l3) + ",") + f1) + ",") + f2;
}
_visible = false;
_root.b2._visible = (_root.b3._visible = 1);
}
}
Instance of Symbol 89 MovieClip "lcol" in Symbol 95 MovieClip Frame 1
on (press) {
_root.colp = "SHAPE LINE COLOUR";
_root.lineorfill = 0;
_root.cpick._visible = 1;
}
Instance of Symbol 89 MovieClip "fcol" in Symbol 95 MovieClip Frame 1
on (press) {
_root.colp = "SHAPE FILL COLOUR";
_root.lineorfill = 1;
_root.cpick._visible = 1;
}