Frame 1
colormode = "none";
fv = "None";
ra = 100;
ga = 0;
ba = 0;
Instance of Symbol 5 MovieClip in Frame 1
onClipEvent (load) {
t = Math.round(_root.getBytesTotal() / 1000) + "k";
_root.stop();
}
onClipEvent (enterFrame) {
l = Math.round(_root.getBytesLoaded() / 1000) + "k";
if (l == t) {
_root.gotoAndStop(2);
}
}
Frame 2
stop();
Instance of Symbol 12 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.xsign == 1) {
xs = "";
} else {
xs = "-";
}
if (_root.ysign == 1) {
ys = "";
} else {
ys = "-";
}
xeq = String((("x+=" + xs) + _root.xfunc) + "(rotation)*length");
yeq = String((("y+=" + ys) + _root.yfunc) + "(rotation)*length");
}
Instance of Symbol 45 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "true";
variable = "_root.xsign";
value = 1;
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 46 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "false";
variable = "_root.xsign";
value = -1;
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 47 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "true";
variable = "_root.ysign";
value = 1;
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 48 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "false";
variable = "_root.ysign";
value = -1;
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 51 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "false";
variable = "_root.xfunc";
value = "sin";
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 52 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "true";
variable = "_root.xfunc";
value = "cos";
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 53 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "false";
variable = "_root.xfunc";
value = "tan";
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 54 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "false";
variable = "_root.yfunc";
value = "tan";
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "false";
variable = "_root.yfunc";
value = "cos";
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 56 MovieClip in Frame 2
onClipEvent (load) {
isdefault = "true";
variable = "_root.yfunc";
value = "sin";
}
onClipEvent (load) {
if ((isdefault == "true") && (_root.firstrun != false)) {
hasdefaulted = true;
Set(variable, value);
gotoAndStop (2);
} else if (eval (variable) == value) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((eval (variable) != value) && (_currentframe == 2)) {
gotoAndStop (1);
}
}
Instance of Symbol 61 MovieClip in Frame 2
onClipEvent (load) {
initval = "none";
initdisp = "None";
variable = "_root.colormode";
values = new array();
values[0] = "none";
values[1] = "grayscale";
values[2] = "rainbow";
values[3] = "fire";
values[4] = "solid";
values[5] = "pulse";
facevalues = new array();
facevalues[0] = "None";
facevalues[1] = "Grayscale";
facevalues[2] = "Rainbow";
facevalues[3] = "Fire";
facevalues[4] = "Solid";
facevalues[5] = "Pulse";
}
onClipEvent (load) {
fv = _root.fv;
}
Instance of Symbol 63 MovieClip in Frame 2
onClipEvent (load) {
if (gen != false) {
res = 10;
i = 0;
while (i < res) {
n = 0;
while (n < res) {
_root.level++;
duplicateMovieClip (this, "swatch" + _root.level, _root.level);
s = eval ("_root.swatch" + _root.level);
s._x = _x + (n * _width);
s._y = _y + (i * _height);
s.lum = (res - i) / res;
s.sat = (res - n) / res;
s.c = new Color(s);
s.trans = new Object();
s.gen = false;
n++;
}
i++;
}
}
}
onClipEvent (enterFrame) {
ra = _root.ra;
ga = _root.ga;
ba = _root.ba;
ra = ra * lum;
ga = ga * lum;
ba = ba * lum;
if (ga < ra) {
desat = ra;
} else {
desat = ga;
}
if (desat < ba) {
desat = ba;
}
ra = ra + ((desat - ra) * sat);
ga = ga + ((desat - ga) * sat);
ba = ba + ((desat - ba) * sat);
trans.ra = ra;
trans.ga = ga;
trans.ba = ba;
c.setTransform(trans);
if (_root._currentFrame == 3) {
removeMovieClip(this);
}
}
Instance of Symbol 65 MovieClip in Frame 2
onClipEvent (load) {
_height = 4.4444444444;
if (gen != false) {
colorset = new Array(new Array(100, 0, 0), new Array(100, 50, 0), new Array(100, 100, 0), new Array(0, 100, 0), new Array(0, 100, 50), new Array(0, 100, 100), new Array(0, 50, 100), new Array(0, 0, 100), new Array(100, 0, 100));
i = 0;
while (i < colorset.length) {
_root.level++;
duplicateMovieClip (this, "hue" + _root.level, _root.level);
h = eval ("_root.hue" + _root.level);
h._y = _y + (_height * i);
h.trans = new Object();
h.trans.ra = colorset[i][0];
h.trans.ga = colorset[i][1];
h.trans.ba = colorset[i][2];
h.gen = false;
i++;
}
_visible = false;
} else {
c = new Color(this);
c.setTransform(trans);
}
}
onClipEvent (enterFrame) {
if (_root._currentFrame == 3) {
removeMovieClip(this);
}
}
Instance of Symbol 66 MovieClip in Frame 2
onClipEvent (load) {
c = new Color(this);
trans = new Object();
}
onClipEvent (enterFrame) {
trans.ra = _root.hsra;
trans.ga = _root.hsga;
trans.ba = _root.hsba;
c.setTransform(trans);
}
Instance of Symbol 74 MovieClip "line0" in Frame 3
onClipEvent (load) {
if (_name == "line0") {
_xscale = Number(_root.initsize);
_rotation = Number(_root.initangle);
_root.xfunc = String(_root.xfunc);
_root.yfunc = String(_root.yfunc);
_root.colormode = String(_root.colormode);
if (_root.colormode == "pulse") {
ra = (ga = (ba = 0));
p = 0;
} else if (_root.colormode == "solid") {
ra = _root.hsra;
ga = _root.hsga;
ba = _root.hsba;
} else {
if ((_root.colormode != "rainbow") && (_root.colormode != "fire")) {
ra = 0;
} else {
ra = 100;
}
ga = 0;
ba = 0;
}
cd = Number(_root.cd);
}
var rad = ((_rotation / 180) * Math.PI);
var ang = Number(_root.incangle);
var inc = ((Number(_root.incsize) / 100) + 1);
if (_root.xfunc == "sin") {
xd = (Math.sin(rad) * _xscale) * _root.xsign;
} else if (_root.xfunc == "cos") {
xd = (Math.cos(rad) * _xscale) * _root.xsign;
} else {
xd = (Math.tan(rad) * _xscale) * _root.xsign;
}
if (_root.yfunc == "sin") {
yd = (Math.sin(rad) * _xscale) * _root.ysign;
} else if (_root.yfunc == "cos") {
yd = (Math.cos(rad) * _xscale) * _root.ysign;
} else {
yd = (Math.tan(rad) * _xscale) * _root.ysign;
}
rdelay = 2;
if (_root.colormode != "none") {
c = new Color(this);
trans = new Object();
trans.ra = ra;
trans.ga = ga;
trans.ba = ba;
c.setTransform(trans);
}
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
duplicate = false;
}
if (Key.isDown(Key.BACKSPACE)) {
_root.gotoAndStop("ui");
}
if (_root._currentframe == 2) {
removeMovieClip(this);
}
if (duplicate != false) {
duplicate = false;
_root.level++;
duplicateMovieClip (this, "line" + _root.level, _root.level);
l = eval ("_root.line" + _root.level);
l._x = _x + xd;
l._y = _y + yd;
l._rotation = _rotation + ang;
l._xscale = _xscale * inc;
if (_root.colormode == "grayscale") {
l.ra = (l.ga = (l.ba = ra + cd));
if ((100 < l.ra) || (l.ra < 0)) {
cd = cd * -1;
l.ra = (l.ga = (l.ba = ra + cd));
}
l.cd = cd;
} else if (_root.colormode == "rainbow") {
if (((ra == 100) && (ga < 100)) && (ba == 0)) {
ga = ga + cd;
} else if ((0 < ra) && (ga == 100)) {
ra = ra - cd;
} else if ((ga == 100) && (ba < 100)) {
ba = ba + cd;
} else if ((0 < ga) && (ba == 100)) {
ga = ga - cd;
} else if ((ba == 100) && (ra < 100)) {
ra = ra + cd;
} else if ((ra == 100) && (0 < ba)) {
ba = ba - cd;
}
l.ra = ra;
l.ga = ga;
l.ba = ba;
l.cd = cd;
} else if (_root.colormode == "fire") {
ga = ga + cd;
if ((100 < ga) || (ga < 0)) {
cd = cd * -1;
ga = ga + (cd * 2);
}
l.ra = ra;
l.ga = ga;
l.ba = ba;
l.cd = cd;
} else if (_root.colormode == "solid") {
l.ra = ra;
l.ga = ga;
l.ba = ba;
} else if (_root.colormode == "pulse") {
p = p + (cd / 100);
if ((1 < p) || (p < 0)) {
cd = cd * -1;
p = p + (cd / 50);
}
l.ra = _root.hsra * p;
l.ga = _root.hsga * p;
l.ba = _root.hsba * p;
l.cd = cd;
l.p = p;
}
}
rdelay--;
if ((rdelay < 0) && ((((_x < (-_xscale)) || ((800 + _xscale) < _x)) || (_y < (-_xscale))) || ((600 + _xscale) < _y))) {
removeMovieClip(this);
}
}
Symbol 43 Button
on (release) {
if (_currentframe == 1) {
Set(variable, value);
gotoAndStop (2);
}
}
Symbol 45 MovieClip Frame 1
stop();
Symbol 46 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 50 Button
on (release) {
firstrun = false;
gotoAndStop (3);
}
Symbol 51 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 59 Button
on (release) {
i = 0;
while (i < values.length) {
_root.level++;
duplicateMovieClip (_root.selectitem, "item" + _root.level, _root.level);
s = eval ("_root.item" + _root.level);
s._x = _x - 2;
s._y = _y + ((s._height - 2) * i);
s.variable = variable;
s.v = values[i];
s.fv = facevalues[i];
s.p = this;
children[i] = s;
i++;
}
gotoAndStop (2);
}
Symbol 61 MovieClip Frame 1
i = 0;
while (i < children.length) {
children[i].removeMovieClip();
i++;
}
children = new Array();
stop();
Symbol 62 Button
on (release) {
_root.hsra = ra;
_root.hsga = ga;
_root.hsba = ba;
}
Symbol 64 Button
on (release) {
_root.ra = trans.ra;
_root.ga = trans.ga;
_root.ba = trans.ba;
}
Symbol 70 Button
on (release) {
Set(variable, v);
_root.fv = fv;
p.fv = fv;
p.gotoAndStop(1);
}