Time for action – displaying the number of objects in a list

Open your Visualizer project. We're going to turn on a hidden option that makes the title of List Renderer windows contain the number of items in the Graph List.

  1. First, though, let's switch back from our SDKRequestor to our HTTPRequestor.

    Open CustomGraphControllerContainer.as and change the line that creates the new Requestor:

    public function CustomGraphContainerController(a_graphControlContainer:GraphControlContainer)
    {
      super(a_graphControlContainer);
      _requestor = new HTTPRequestor();
      addEventListenersToRequestor();
      //we must wait for the Requestor to initialise before we can do anything else with it
      _requestor.addEventListener(Event.COMPLETE, onRequestorInitialize);
    }

    We will come back ...

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.