Connector Class

update:to get the class file go here

Draws a connection between two objects diagram style. Check it out:
http://www.sammyjoeosborne.com/Flash…torExample.swf

Just create a new connector, send it two displayObjects, and it’ll connect’em. IE:
var myConnector:Connector = new Connector(square1, square2);

Can have childs of childs, etc.
Can turn on/off the pointer arrow, change line color, change line thickness, reverse the direction, change the parent, or change the child.
You would use these things in the follow way:
myConnector.lineThickness = 4;
myConnector.lineColor = 0xff0000;
myConnector.reverse();
myConnector.usePointer = false;
myConnector.setChild(square2);
myConnector.setParent(square5);

May add a feature to round corners soon…dunno.

Hopefully this is useful to someone. Would be good for diagramming of some sort. Wrote it as part of a larger program I plan on making for creating Family Trees.