Time for action – visualizing the info

Enough traces! It's time we displayed something in our actual SWF.

CustomGraphContainerController inherits a method called renderGraphObject() which will take care of this for us. All we have to do is pass it an argument of type graph.GraphObject.

GraphObject.as is a simple class; feel free to open it and take a look:

package graph
{
  import graph.controls.GraphObjectRenderer;
  public dynamic class GraphObject extends BaseGraphItem
  {
    public var rendererObject:GraphObjectRenderer;
    public var graphObjectListRenderers:Array = [];
    
    public function GraphObject()
    {
      
    }
    
  }

}

Honestly, there's no need to worry about any of the code there. All you need to know is that it's dynamic, which means that we can assign new properties ...

Get Facebook Graph API Development with Flash now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.