In this recipe, we will create the building block for our relational network: the node. This is basically a circle with a label in the middle. If it is not the center node (the parent), then it will also display how many children it has.
Open the files downloaded from the Packt Publishing website for Chapter 8 | Recipe 2 folder to follow along.
The following are the steps required to do the visuals for a node:
NodeVisual.asclass where everything will happen.
_underCircle = new Shape(); _underCircle.graphics.beginFill(0xffffff); ...