# Nodes

**URL:** <https://forum.kirupa.com/t/nodes/18568>\
**Category:** flash\
**Created:** [April 18, 2003, 3:15am UTC](https://forum.kirupa.com/t/nodes/18568 "2003-04-18T03:15:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobody](https://avatars.discourse-cdn.com/v4/letter/n/94ad74/32.png) [@nobody](https://forum.kirupa.com/u/nobody)\
**Post date:** [April 18, 2003, 3:15am UTC](https://forum.kirupa.com/t/nodes/18568/1 "2003-04-18T03:15:29Z")

</div>

Hey everyone  
I am really interested in learning about Nodes in Flash MX. I don’t know if node are more than I think they are, but I’m talking about like the node gardens and stuff… with the points and lines and stuff. Well anyway, if anyone knows a good link to somewhere to learn about them I would greatly appreciate it.  
I’m also looking for some good drawing API tutorials, I’ve got a few, but it couldn’t hurt to have more.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 3:16am UTC](https://forum.kirupa.com/t/nodes/18568/2 "2003-04-18T03:16:04Z")

</div>

[www.bit-101.com](http://www.bit-101.com) has a tutorial.

I created this from it 🙂

> **[Save BIG with $9.99 .COMs from GoDaddy!](http://www.lostinbeta.com/experimental/nodeGarden.html)**
>
> Get your own corner of the Web for less! Register a new .COM for just $9.99 for the first year and get everything you need to make your mark online — website builder, hosting, email, and more.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 3:20am UTC](https://forum.kirupa.com/t/nodes/18568/3 "2003-04-18T03:20:53Z")

</div>

wow lost that was fast  
Definately gonna do some work on this…  
I’m like super interested in learning AS right now for some reason…  
probably cuz i just broke up with my girlfriend, and im depressed, and it gets my mind off things

lost… are you any good at this node thing? Like do you think I could come to you if i need help?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 3:22am UTC](https://forum.kirupa.com/t/nodes/18568/4 "2003-04-18T03:22:09Z")

</div>

Sorry to hear about you and your girlfriend… definitely sucks.

And whats to be good at? The tutorial explains everything about how to get the nodes idea working, all you would need to do is create your own effects from the nodes, and thats all up to you 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 3:23am UTC](https://forum.kirupa.com/t/nodes/18568/5 "2003-04-18T03:23:13Z")

</div>

lol alright  
I haven’t looked at it yet, im printing it off right now… yup girlfriend thing sucks…  
hopefully ill have something cool to post in the next couple days…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 4:11am UTC](https://forum.kirupa.com/t/nodes/18568/6 "2003-04-18T04:11:39Z")

</div>

man… im already stuck… what the heck

```auto
numNodes = 50;
for(i=0;i<numNodes;i++) {
	node = attatchMovie("Node", "n"+i, i);
	node._x = Math.random()*500;
	node._y = Math.random()*300;
	node._xscale=node._yscale=Math.random()*100+50;
}

```

any idea why that doesnt do diddly squat?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 4:12am UTC](https://forum.kirupa.com/t/nodes/18568/7 "2003-04-18T04:12:53Z")

</div>

man im a dork  
i spelled attach wrong

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 4:34am UTC](https://forum.kirupa.com/t/nodes/18568/8 "2003-04-18T04:34:36Z")

</div>

lol… :sure:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 4:38am UTC](https://forum.kirupa.com/t/nodes/18568/9 "2003-04-18T04:38:16Z")

</div>

ok real problem this time

```auto
numNodes = 50;
nodez = [];
for(i=0;i<numNodes;i++) {
	node = attachMovie("Node", "n"+i, i);
	nodez* = node;
	node._x = Math.random()*500;
	node._y = Math.random()*300;
	node._xscale=node._yscale=Math.random()*100+50;
}
mindist = 80;
for(i=0;i<nodez.length-1;i++) {
	nodeA = nodez*;
	for(j=i+1;j<nodez.length;j++) {
		nodeB = nodez[j];
		dx = nodeB._x - nodeA._x;
		dy = nodeB._y - nodeA._y;
		dist = Math.sqrt(dx*dx*dy*dy);
		if (dist<minDist) {
			alpha = 100-dist/minDist*100;
			lineStyle(1, 0xffffff, alpha);
			moveTo(nodeA._x, nodeA._y);
			lineTo(nodeB._x, nodeB._y);
		}

```

if someone could just pop that into flash real quick… does it come out really ugly for them… like just a few straightish lines… i have no idea why its being so retarded

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 4:42am UTC](https://forum.kirupa.com/t/nodes/18568/10 "2003-04-18T04:42:10Z")

</div>

I’m seriously like the most retarded person ever… one little typo screws the whole thing up

well anywho… I used a \* in the Math.sqrt thing, instead of a +  
sorry for wastin your time again

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:14am UTC](https://forum.kirupa.com/t/nodes/18568/11 "2003-04-18T05:14:43Z")

</div>

:beam:  
[http://www.xxviii.net/node.htm](http://www.xxviii.net/node.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:16am UTC](https://forum.kirupa.com/t/nodes/18568/12 "2003-04-18T05:16:58Z")

</div>

wow… what do you know… its now my turn to learn nodes…  
i actually was gonna read the tutorial a few days ago but was kind of intimidated for some reason… but if xxvii **i** can do it, i can too 😉 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:18am UTC](https://forum.kirupa.com/t/nodes/18568/13 "2003-04-18T05:18:09Z")

</div>

oh… it was very porcessor intensive though… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:19am UTC](https://forum.kirupa.com/t/nodes/18568/14 "2003-04-18T05:19:09Z")

</div>

awww thanks for the backhanded compliment ahmed… lol  
you spelled my name wrong too… grr  
and i didnt actually do anything… i just followed throug the tutorial  
my big break was changing the color of the lines… lol

I’m gonna screw with it soon tho  
man… these are awesome

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:19am UTC](https://forum.kirupa.com/t/nodes/18568/15 "2003-04-18T05:19:51Z")

</div>

yeah… it was… i wonder what I should do… just make it have like 2 nodes lol…  
It actually has 28 cuz im all symbolic or something

::shuts up and goes to change it::

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:21am UTC](https://forum.kirupa.com/t/nodes/18568/16 "2003-04-18T05:21:54Z")

</div>

It should be a lot better now

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:25am UTC](https://forum.kirupa.com/t/nodes/18568/17 "2003-04-18T05:25:59Z")

</div>

I implemented my own random motion code into mine… it was fun 🙂

Good work though man 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:26am UTC](https://forum.kirupa.com/t/nodes/18568/18 "2003-04-18T05:26:51Z")

</div>

runs much smoother now 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:27am UTC](https://forum.kirupa.com/t/nodes/18568/19 "2003-04-18T05:27:14Z")

</div>

Yeah I’m already thinking about like integrating like the snow falling thing or something.

I know mine has no originality at all or anything, I just wanted to finish it. But this is definately gonna be something to play with for a long time

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2003, 5:41am UTC](https://forum.kirupa.com/t/nodes/18568/20 "2003-04-18T05:41:28Z")

</div>

Lost I just saw yours  
man, it’s really cool… I like how it all comes from one direction like that  
That’s what I’m gonna try to do… well not that exactly, obviously, but my own motion thing

[Next page](https://forum.kirupa.com/t/nodes/18568.md?page=2)
