PDA

View Full Version : Add line - change line


farafiro
07-13-2003, 05:24 AM
okey, the idea belongs to bit-101 and I kust thought it's very cool, so we may have it here
it's briefly u start by adding a new line or changing an old line 'till we reach the max limit
here is the rules:
it goes for 50 lines
you may add OR change only one line per once
you can't add/change a new line before another 5 posts from yours (so if u added # 1, next would be # 6,..........)
no prices -as usual- but if we got something cool, I think/hope that Jesse or Strok cad add it to the open source section, under auther's name of the site, if u all do agree
that's it


just one thing out of this compition to reserve some extra lines, u can do this to draw soome shape with at leat 4 lines offdim = [[0, 0], [100, 0], [100, 100], [0, 100], [0, 0]];
_root.createEmptyMovieClip("bg", 1);
bg.lineStyle(1);
bg.beginGradientFill("linear",[0x000000,0x336699],[100,100],[0,255],{matrixType:"box",x:0,y:0,w:100,h:100,r:1})
for (i in dim) {
bg.lineTo(dim[i][0], dim[i][1]);
}

farafiro
07-13-2003, 05:26 AM
so, I'll start. ;)
just one simple thing to fire of
this.createEmptyMovieClip("crap",-5463)

pom
07-13-2003, 12:24 PM
this.createEmptyMovieClip( "crap", -5463 ) ;
crap.lineStyle( 0, 0xabcdef, 100 ) ;

Jesse
07-13-2003, 07:52 PM
Okey, here goes. Hope I haven't stuffed you all up.
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
for (a=0; a<100; a++) crap.lineTo(random(400), random(400));

farafiro
07-14-2003, 02:58 AM
Originally posted by Jesse
Okey, here goes. Hope I haven't stuffed you all up.
no worries
anyone can change any line ;)

activein
07-14-2003, 04:57 AM
to get going



this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef,100);
for (a=0; a<100; a++) crap.lineTo(random(400), random(400));




whats vbcode tag for actionscript hilite
edited ( thanks pom)

pom
07-14-2003, 05:46 AM
That would be [as ]

littleRichard
07-14-2003, 10:59 AM
kinda hard to do much with 1 line but here it is anyway.


this.onEnterFrame = function()
{
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++) crap.lineTo(random(400), random(400));
};

farafiro
07-15-2003, 03:42 AM
this is the cool part littleRichard, it makes u think to do something more creative than borowing some effect and try to modify it this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++) crap.lineTo(random(400), random(400));
this.onEnterFrame = function(){

};

farafiro
07-16-2003, 09:46 AM
well, no one??

senocular
07-16-2003, 09:55 AM
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++) crap.lineTo(random(400), random(400));
crap.onEnterFrame = function(){

};

senocular
07-16-2003, 10:02 AM
... you think maybe 5 is too high for a wait? so far it took a couple of days just to get 5 ppl total :-\

farafiro
07-16-2003, 10:07 AM
well, in the orignal one (bit-101), u could get your turn in the same day
max 2 days

littleRichard
07-16-2003, 10:09 AM
i was thinking the same thing. maybe we could drop the wait time down and jack it back up if more people start to jump in.

magicwand
07-16-2003, 10:17 AM
since i can edit only one line :(

this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++) crap.lineTo(random(400), random(400));
crap.onEnterFrame = function(){
this._xscale=Math.sin((n_++)*Math.PI/90)*100
};

senocular
07-16-2003, 10:18 AM
farafiro, you should have added something while you were here :D

(hurry up guys, Im itching to throw in that endFill ;))

pom
07-16-2003, 11:22 AM
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++) crap.lineTo(random(400), random(400));
crap.onEnterFrame = function(){
this._xscale=Math.sin((n_++)*Math.PI/90)*100
var targ = { x : Stage.width - _xmouse , y : Stage.height - _ymouse } ;
};Argh!! Crossposts!

littleRichard
07-16-2003, 03:43 PM
are you suposed to wait till 5 complete turns have passed or can you take what would be the 5th turn since your last entry. i'm going to assume yes.


this.createEmptyMovieClip("crap", -5463);

crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++) crap.lineTo(random(400) - 200, random(400) - 200);

crap.onEnterFrame = function()
{
this._xscale = Math.sin((n_++) * Math.PI / 90) * 100;
var targ = {x:Stage.width - _xmouse, y:Stage.height - _ymouse};
};

senocular
07-16-2003, 03:51 PM
I think the 5th turn works. #1 can go on #6 and thats only 4 in between making #6 on the 5th.

works for me :D

retrotron
07-16-2003, 05:58 PM
this.createEmptyMovieClip("crap", -5463);

crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++) crap.lineTo(random(400) - 200, random(400) - 200);

crap.onEnterFrame = function()
{
this._xscale = Math.sin((n_++) * Math.PI / 90) * 100;
var targ = {x:Stage.width - _xmouse, y:Stage.height - _ymouse};
this.lineTo(targ.x, targ.y);
};

senocular
07-16-2003, 06:07 PM
ok that just adds more to the insanity! :D

I think Im going to simplify that initial shape a bit before we can get this mouse line drawing under control

this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0;a<100;a++) crap.lineTo(Math.cos(Math.PI*a/13)*Math.pow(a,4)/Math.pow(100,4-1), Math.sin(Math.PI*a/13)*Math.pow(a,4)/Math.pow(100,4-1));
crap.onEnterFrame = function(){
this._xscale = Math.sin((n_++) * Math.PI / 90) * 100;
var targ = {x:Stage.width - _xmouse, y:Stage.height - _ymouse};
this.lineTo(targ.x, targ.y);
};

activein
07-17-2003, 01:17 AM
use the original points if you wish


this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0;a<100;a++) crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a,4)/Math.pow(100,4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a,4)/Math.pow(100,4-1)));
crap.onEnterFrame = function(){
this._xscale = Math.sin((n_++) * Math.PI / 90) * 100;
var targ = {x:Stage.width - _xmouse, y:Stage.height - _ymouse};
this.lineTo(targ.x, targ.y);
};

farafiro
07-17-2003, 02:39 AM
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
var targ = {x:Stage.width-_xmouse, y:Stage.height-_ymouse};
this.lineTo(targ.x, targ.y);
this._x +=Math.cos(targ.X)/targ.y
};

magicwand
07-17-2003, 08:23 AM
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
this._yscale = Math.cos((n_++)*Math.PI/90)*100;
var targ = {x:Stage.width-_xmouse, y:Stage.height-_ymouse};
this.lineTo(targ.x, targ.y);
this._x +=Math.cos(targ.X)/targ.y
};

senocular
07-17-2003, 09:50 PM
:confused:

Timmee_3Styler
07-17-2003, 10:00 PM
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
this._yscale = Math.cos((n_++)*Math.PI/90)*100;
var targ = {x:Stage.width-_xmouse, y:Stage.height-_ymouse};
this.lineTo(targ.x, targ.y);
this._x +=Math.cos(targ.X)/targ.y
};
crap.endFill();

senocular
07-17-2003, 10:30 PM
Darn you Timmee101! I was going to put that :D

this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
this._yscale = Math.cos((n_++)*Math.PI/90)*100;
var targ = {x:_xmouse, y:_ymouse};
this.lineTo(targ.x, targ.y);
this._x +=Math.cos(targ.X)/targ.y
};
crap.endFill();

Timmee_3Styler
07-17-2003, 10:35 PM
and I was gonna put that
I was debating which to do hahaha :p

Jesse
07-18-2003, 07:25 AM
I reckon I win the prize for the most uses of the random() function in one line :) :
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
this._yscale = Math.cos((n_++)*Math.PI/90)*100;
var targ = {x:_xmouse, y:_ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
crap.lineStyle(random(10), parseInt((random(256).toString()+random(256).toStr ing()+random(256).toString()), 16), random(100));
};
crap.endFill();
Makes some beautiful stuff. See attachment.

pom
07-18-2003, 07:42 AM
Some Bit-style cycling colors (I hope, I couldn't test :D)this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
this._yscale = Math.cos((n_++)*Math.PI/90)*100;
var targ = {x:_xmouse, y:_ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra+=.02)*127+128, g:Math.sin(ra+=.05)*127+128, b:Math.sin(ra+=.09)*127+128} ;
crap.lineStyle(5 + 5*Math.sin(rb += .05), col.r<<16|col.g<<8|col.b, random(100));
};
crap.endFill();I edited Jesse's line AND introduced the col object just to make it cleaner and less impossible to edit/understand, I hope you won't mind.

Jesse
07-18-2003, 07:56 AM
It comes out black and white for me... shades of black and white but no colors...

pom
07-18-2003, 08:21 AM
Damned!! All right, I won't be have Flash this weekend, so unless someone finds out where the problem is, just forget about my line...

:(

senocular
07-18-2003, 08:23 AM
Bah! its a good line! if not just for the line thinkness oscillation alone :D

Ill keep an uploaded (fairly updated - as much as I can keep up) version of the changes here:
http://userpages.umbc.edu/~tmccau1/flash/asorg/addlinechangeline.html
based on a 350x350 stage in a 450x450 browser view with the addition of a hand-drawn border showing the dimensions of the actual flash movie.

pom
07-18-2003, 08:46 AM
I'm... feeling... sick...

littleRichard
07-18-2003, 10:00 AM
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
this._yscale = Math.cos((n_++)*Math.PI/90)*100;
var targ = {x:_xmouse, y:_ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra+=.02)*127+128, g:Math.sin(ra+=.05)*127+128, b:Math.sin(ra+=.09)*127+128} ;
crap.lineStyle(5 + 5*Math.sin(rb += .05), col.r<<16|col.g<<8|col.b, random(100));
};
crap.endFill();

crap._x = Stage.width / 2;

Jesse
07-18-2003, 10:18 AM
OK this isn't a code post, it's a suggestion. This would look absolutely killer if the lines that are being drawn dynamically according to mouse movement had a Z axis too. I mean, as well as goign left and right they went back and forward. Because then when the thing spins it would look 3D (and awesome). Of course, we'd have to fake it, because we're not using a 3D model, just a _scale tween, but it's worthwhile considerring for someone who knows more about maths and perspective than me.

pom
07-18-2003, 10:45 AM
It is a very good idea, but I don't see how we could fake it :\
Second suggestion: could we get rid of the blue spiral? :D

littleRichard
07-18-2003, 10:47 AM
i like that second suggestion;)

pom
07-18-2003, 11:19 AM
Eradicate!! Eradicate!! Let's wipe all blue spiral off the face of the Earth!!

unfortunately I can't do that myself...

senocular
07-18-2003, 11:37 AM
awww, and that was my blue spiral too :( well the blue part wasnt me, but the sprial was ;)

pom
07-18-2003, 12:12 PM
Come on, Sen, take it out, it has to be you...

By the way, do you have an idea concerning Jesse's suggestion? Cos I'm stumped :stumped: <-- where have the smileys gone??

farafiro
07-20-2003, 03:50 AM
fixing POM's colored linesthis.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
this._yscale = Math.cos((n_++)*Math.PI/90)*100;
var targ = {x:_xmouse, y:_ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
};
crap.endFill();
crap._x = Stage.width/2;

Jesse
07-20-2003, 03:53 AM
Looks good faffy. PS - I like the spiral thing for what it's worth.

activein
07-23-2003, 05:17 AM
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = Math.sin((n_++)*Math.PI/90)*100;
this._yscale = Math.cos((n_++)*Math.PI/90)*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
};
crap.endFill();
crap._x = Stage.width/2;


is deletion allowed if everyone dont like the changes?

Jesse
07-23-2003, 05:48 AM
I figure deletion should be allowed, even if not everyone agrees.

pom
07-23-2003, 07:43 PM
All right, who's going to delete that blue crap? :Dthis.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
};
crap.endFill();
crap._x = Stage.width/2;I know that's 2 changes, but they're minor and related (I was trying to make the movie NOT jump that much -- I hope you haven't eaten anything...).

senocular
07-23-2003, 08:05 PM
Id rather see the lines go... they just keep going and going and clog up the works :-\ ... or at least see a capoff for them, something like only 10 at a time.


crappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
};
crap.endFill();
crap._x = Stage.width/2;

Jesse
07-24-2003, 06:03 AM
I'll contribute again soon, just wanted to say that I reckon it looks great at the moment. That wave sort of motion looks mad.

littleRichard
07-24-2003, 10:05 AM
crappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++)
{
crap.lineTo(this["x" + a] = (Math.cos(Math.PI * a / 13) * Math.pow(a, 4) / Math.pow(100, 4 - 1)), this["y" + a] = (Math.sin(Math.PI * a / 13) * Math.pow(a, 4) / Math.pow(100, 4 - 1)));
}
crap.onEnterFrame = function()
{
this._xscale = (1.5 + Math.sin((n_++) * Math.PI / 90)) * 100;
this._yscale = (1.5 + Math.cos((n_++) * Math.PI / 90)) * 100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X) / targ.y;
col = {r:Math.sin(ra += .02) * 127 + 128, g:Math.sin(ga += .05) * 127 + 128, b:Math.sin(ba += .09) * 127 + 128};
crap.lineStyle(5 + 5 * Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
};
crap.endFill();
crap._x = Stage.width / 2;

MovieClip.prototype.drawCrappyShape = function(pointsArr, fillObj, lineStyleObj)
{

};

dr.swank
07-25-2003, 08:37 AM
crappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++)
{
crap.lineTo(this["x" + a] = (Math.cos(Math.PI * a / 13) * Math.pow(a, 4) / Math.pow(100, 4 - 1)), this["y" + a] = (Math.sin(Math.PI * a / 13) * Math.pow(a, 4) / Math.pow(100, 4 - 1)));
}
crap.onEnterFrame = function()
{
this._xscale = (1.5 + Math.sin((n_++) * Math.PI / 90)) * 100;
this._yscale = (1.5 + Math.cos((n_++) * Math.PI / 90)) * 100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.y, targ.x, targ.y);
this._x += Math.cos(targ.X) / targ.y;
col = {r:Math.sin(ra += .02) * 127 + 128, g:Math.sin(ga += .05) * 127 + 128, b:Math.sin(ba += .09) * 127 + 128};
crap.lineStyle(5 + 5 * Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
};
crap.endFill();
crap._x = Stage.width / 2;

MovieClip.prototype.drawCrappyShape = function(pointsArr, fillObj, lineStyleObj)
{

};
this.onMouseMove=drawCrappyShape;


just my 5 eurocents worth...

grooove
07-25-2003, 01:09 PM
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a = 0; a < 100; a++) crap.lineTo(random(400), random(400));
crap.onEnterFrame = function(){
this._xscale=Math.sin((n_++)*Math.PI/90)*100;
this._yscale=Math.sin((n_++)*Math.PI/30)*120
};

grooove
07-25-2003, 01:16 PM
ups.. sorry... i was watching the 1st page... lol

zoomfreddy
07-27-2003, 04:17 AM
not too much damage...
crappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._rotation+=1;
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.y, targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
};
crap.endFill();
crap._x = Stage.width/2;
MovieClip.prototype.drawCrappyShape = function(pointsArr, fillObj, lineStyleObj) {
};
this.onMouseMove = drawCrappyShape;

farafiro
07-28-2003, 02:19 AM
hey littleRichard
what is the aim of this line this.lineTo(targ.y, targ.x, targ.y);

why r u putting three param here??

JLM
07-30-2003, 09:29 AM
hope this counts as one line?


crappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._rotation+=1;
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.y, targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
_root["crapInterval"+(tic=Math.round(Math.random()*10))]=setInterval(function(){crap.beginfill(0xff*Math.r andom()-0xff0*P++,10)},Math.random()*50)
};
crap.endFill();
crap._x = Stage.width/2;
MovieClip.prototype.drawCrappyShape = function(pointsArr, fillObj, lineStyleObj) {
};
this.onMouseMove = drawCrappyShape;


JLM

littleRichard
07-30-2003, 09:38 AM
opps...i didn't mean to do that:D i was playing with changing that line to use curveTo instead of lineTo. so i guess when i changed it back i missed taking out one of the parameters.

...i'll fix it in my post.

activein
07-31-2003, 07:15 AM
crappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._rotation+=1;
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.y, targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
_root["crapInterval"+(tic=Math.round(Math.random()*10))]=setInterval(function(){crap.beginfill(0xff*Math.r andom()-0xff0*P++,10)},Math.random()*50)
};
crap.endFill();
crap._x = Stage.width/2;
MovieClip.prototype.drawCrappyShape = function(pointsArr, fillObj, lineStyleObj) {
for(var i in pointsArr) CrappyShape=this.lineTo(pointsArr[i].x,pointsArr[i].y);
};
this.onMouseMove = drawCrappyShape;

dr.swank
07-31-2003, 11:31 AM
crappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._rotation += 1;
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.y, targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
_root["crapInterval"+(tic=Math.round(Math.random()*10))] = setInterval(function () {
crap.beginfill(0xff*Math.random()-0xff0*P++, 10);
}, Math.random()*50);
};
crap.endFill();
crap._x = Stage.width/2;
MovieClip.prototype.drawCrappyShape = function(pointsArr, fillObj, lineStyleObj) {
if (!pointsArr || pointsArr.length == 0) {
pALeng = random(20)+5;
for (j=0; j<pALeng; j++) {
pointsArr[j].x = random(400);
pointsArr[j].y = random(400);
}
}
for (var i in pointsArr) {
CrappyShape = this.lineTo(pointsArr[i].x, pointsArr[i].y);
}
};
this.onMouseMove = drawCrappyShape;


i know its more than 1 line, but christ, I just had to... :) doc

pom
08-02-2003, 09:29 AM
It kills my computer in just a few seconds... Should we continue? :/

pom
08-02-2003, 09:41 AM
After removing everything I don't understand from the code :Dthis.createEmptyMovieClip("crap", -5463);
crap.onEnterFrame = function() {
this._rotation += 1;
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.x)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, 100 );
};

littleRichard
08-02-2003, 10:04 AM
i think 1 line was to low a limit for lines you can change. everyone just throws in little bits but it seems like it has no real direction. if you could modify at least a few lines at a time then i think it would shape up much better.

anyway...that's my rant.

dr.swank
08-02-2003, 10:04 AM
hey pom,

whats with that?? just remove the onMouseMove line and everything will relax a bit...


rappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._rotation += 1;
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.y, targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
_root["crapInterval"+(tic=Math.round(Math.random()*10))] = setInterval(function () {
crap.beginfill(0xff*Math.random()-0xff0*P++, 10);
}, Math.random()*50);
};
crap.endFill();
crap._x = Stage.width/2;
MovieClip.prototype.drawCrappyShape = function(pointsArr, fillObj, lineStyleObj) {
if (!pointsArr || pointsArr.length == 0) {
pALeng = random(20)+5;
for (j=0; j<pALeng; j++) {
pointsArr[j].x = random(400);
pointsArr[j].y = random(400);
}
}
for (var i in pointsArr) {
CrappyShape = this.lineTo(pointsArr[i].x, pointsArr[i].y);
}
};
//this.onMouseMove = drawCrappyShape;



no need to go chopping the code down like that... very destructive I must say.

cheers doc

pom
08-02-2003, 11:45 AM
littleRichard >> I agree, but that's a different concept, closer to an AS volley.

Dr >> It wasn't a contribution, it's just that, as littleRichard, I had the feeling that this was going in 100 different directions :/crappyArray = [];
this.createEmptyMovieClip("crap", -5463);
crap.lineStyle(0, 0xabcdef, 100);
crap.beginFill(0xabcdef, 100);
for (a=0; a<100; a++) {
crap.lineTo(this["x"+a]=(Math.cos(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)), this["y"+a]=(Math.sin(Math.PI*a/13)*Math.pow(a, 4)/Math.pow(100, 4-1)));
}
crap.onEnterFrame = function() {
this._rotation += 1;
this._xscale = (1.5+Math.sin((n_++)*Math.PI/90))*100;
this._yscale = (1.5+Math.cos((n_++)*Math.PI/90))*100;
var targ = {x:this._xmouse, y:this._ymouse};
this.lineTo(targ.x, targ.y);
this._x += Math.cos(targ.X)/targ.y;
col = {r:Math.sin(ra += .02)*127+128, g:Math.sin(ga += .05)*127+128, b:Math.sin(ba += .09)*127+128};
crap.lineStyle(5+5*Math.sin(rb += .05), col.r << 16 | col.g << 8 | col.b, random(100));
/* _root["crapInterval"+(tic=Math.round(Math.random()*10))] = setInterval(function () {
crap.beginfill(0xff*Math.random()-0xff0*P++, 10);
}, Math.random()*50);*/
};
crap.endFill();
crap._x = Stage.width/2;
MovieClip.prototype.drawCrappyShape = function(pointsArr, fillObj, lineStyleObj) {
if (!pointsArr || pointsArr.length == 0) {
pALeng = random(20)+5;
for (j=0; j<pALeng; j++) {
pointsArr[j].x = random(400);
pointsArr[j].y = random(400);
}
}
for (var i in pointsArr) {
CrappyShape = this.lineTo(pointsArr[i].x, pointsArr[i].y);
}
};
//this.onMouseMove = drawCrappyShape

dr.swank
08-02-2003, 01:19 PM
Pom,

fair enough.. it was running away. True democracy has a tendancy to do that. So, maybe a solution would be for the thread starter..<looks around while humming an indescript tune...> to take the thread to the next level and define what stays, what goes, and what should be worked on next..

Just a thought.

doc

ps. Pom, I hope I didn't sound too harsh there, it was meant in good fun my comments :)

pom
08-02-2003, 01:29 PM
No worries, Doc :) And yeah, Fara, come back here!!

farafiro
08-03-2003, 03:02 AM
Hey POM
I'm here but just can't make my mind for posting or do anything
too hurshy coz of
http://www.actionscript.org/forums/showthread.php3?s=&threadid=31553&perpage=15&pagenumber=1

Swank:
as POM said, it was JLM post whick hangs on the system (the beginFill, for it's an open shape, it does the endFill() auto soooooo...........BOooOOoom)

for the rules, as littleRichard said, u can say this was just like a test
I think I will - after u agree - close this after a month from the first post and start another one
but for the limit, I do insist for makinig it one line
but we can either make the poster (the first or the editor) say what is the aim of this

I remember when Bit-101 did that, it was great
let you think, search, make some scripts u never think off

So, any suggestion for the new one???
10 days to go

JLM
08-07-2003, 08:16 PM
sorry I did not mean to kill the post just thought I would wake it up not very busy. The interval can be modified to happen less often, not sure it is the fact that it is the endfill missing that is the problem just the general loading , unless it is player dependant. I was running on a 600MHz sort of slows down after a minuite but I figured you all have faster machines.

suggestion: life, the aim is to create lifeforms that interact on the screen. Mating should be included some how and some how fitness should be defined by 'beauty'. Any one can add or modify a function method or class, but each should try to contain an idea, ie function Movement. the world should aim to be underwater and 3D. no function method or class should be more than 25 lines and where possible it should cram on one line. If there is no post in 1 week a new competition starts. well thats my idea anyway. sure there are some better ideas out there.

JLM

pom
08-08-2003, 09:39 AM
Now that's an excellent idea, JLM, I like that!!

JLM
08-09-2003, 08:20 AM
Yes but it would be too easy for you lot. I have been playing with swishMAX recently, how about trying to do it in swishMAX just to make it that bit more difficult. :)

JLM

pom
08-09-2003, 10:10 AM
That would probably be also too easy. How about doing it in Basic on my Texas Instrument calculator?

JLM
08-11-2003, 05:28 AM
So much for me trying to get a small advantage, surely your texas doesn't have any colour, I can't be doing without colour that would make me feel gray. Beside are you going to send us all a calculator :)

JLM