PDA

View Full Version : Circle Line



jerez_z
January 16th, 2006, 12:52 AM
here is my entry. Exactly 25 lines. Yay. Its not even right how much of a pain not having imports is.

EDIT: See fourth post.

kdd
January 16th, 2006, 01:04 AM
that's cool. :thumb:

jerez_z
January 16th, 2006, 01:05 AM
there are several improvements in the works

jerez_z
January 16th, 2006, 01:38 AM
ok new and improved (22 lines):



onMouseMove = function () {
(old[2]) ? dr.moveTo(old[0]-dr._x, old[1]-dr._y) : null;
(old[2]) ? dr.lineTo(_root._xmouse-dr._x, _root._ymouse-dr._y) : null;
(old[2]) ? old=new Array(_root._xmouse, _root._ymouse, old[2]) : null;
};
onMouseDown = function () {
dr = createEmptyMovieClip("dr", 1);
//dr.lineStyle(0, Math.random()*0xFFFFFF, 55);
dr.lineStyle(0, 0x000000, 55);
dr._x = _root._xmouse;
dr._y = _root._ymouse;
old = new Array(_root._xmouse, _root._ymouse, true);
};
onMouseUp = function () {
old = new Array(_root._xmouse, _root._ymouse, false);
temp = dr.duplicateMovieClip("temp"+_root.getNextHighestDepth(), _root.getNextHighestDepth());
for(i = temp.getDepth()-1;i>0;i--) {
(_root["temp"+i]._alpha-35 <= 0) ? _root["temp"+i].removeMovieClip() : _root["temp"+i]._alpha -= 35;
}
temp = dr.duplicateMovieClip("temp"+_root.getNextHighestDepth(), _root.getNextHighestDepth());
last = temp;
inc = Math.random()*10;
onEnterFrame = function () {
this.last = this.last.duplicateMovieClip("temp"+this.getNextHighestDepth(), this.getNextHighestDepth());
/*col = new Color(this.last);
col.setRGB(i*inc);*/
this.last._rotation = i;
this.last._x = this.dr._x;
this.last._y = this.dr._y;
(i == 365) ? delete this.onEnterFrame : i += 5;
};
dr.removeMovieClip();
};

ElectricGrandpa
January 16th, 2006, 02:18 AM
Awesome stuff, quite fun! :D

kdd
January 16th, 2006, 02:23 AM
wow, after 4th try, the first one goes away. very cool...

J
January 16th, 2006, 04:15 AM
thats gr8 stuff :)

icio
January 16th, 2006, 05:03 AM
Classy :D

danulf
January 16th, 2006, 06:23 AM
I love it :D

hybrid101
January 16th, 2006, 06:34 AM
cool effect!i like it!

jerez_z
January 16th, 2006, 10:52 AM
thanx for the good response guys

McGiver
January 16th, 2006, 10:54 AM
looks cool :)

Seb Hughes
January 16th, 2006, 11:53 AM
Ver ynice jerez_z, money always welcome if you wanna win ahah :lol:

Sammo
January 16th, 2006, 01:58 PM
Draw a spiral, bare with some lag and you get the best result (IMO):

sed|thh
January 16th, 2006, 02:12 PM
awesome! cheers :D

Seb Hughes
January 16th, 2006, 02:51 PM
Damm you Jeremy, its so CPU insive it crashed my brower :D, lol it still pwns