this is a thing i made as a result of an AS challenge on NG
generates entirely random shapes and colors.
stop();
_root.createEmptyMovieClip(“shape”, 1);
i = 0;
with (shape) {
onEnterFrame = function () {
duplicateMovieClip(_root.shape, “shape”+_root.i, _root.i);
_root.i++;
ls = random(10);
rgb1 = random(100);
rgb2 = random(100);
rgb3 = random(100);
my_color = “0x”+rgb1+rgb2+rgb3;
lineStyle(ls, my_color, 100);
moveTo(_root._xmouse, _root._ymouse);
amount = random(5)+1;
while (amount>0) {
lineTo(random(10)+_xmouse, random(10)+_ymouse);
amount–;
}
};
}
onMouseDown = function () {
shape.clear();
};
heres the .swf
http://denvish.net/ulf/1142638597_Cool%20AS%20challenge.swf
theoretically, any shape with between 5 and 1 points is possible given an infinite amount of time. just move around the mouse and click to clear if it gets slow