O'Reilly logo

ActionScript Graphing Cookbook by Peter Backx, Dominic Gélineau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Navigating through the relational network

The previous recipe enabled us to show one level of a data tree; this recipe is going to allow us to navigate from one level to another, thus enabling us to explore the entire tree.

Getting ready

Open the files downloaded from the Packt Publishing website for Chapter 8 | Recipe 4 to follow along.

How to do it...

The following are the required steps to allow the user to navigate through the relational network:

  1. Create the PlusButton class to allow the user to navigate down the tree.
  2. Create the MinusButton class to allow the user to navigate up the tree.
  3. Add RelationalNetworkEvent to indicate to the relational network that the user wants to navigate.
  4. In NodeVisual, add the PlusButton class if the node is a child. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required