For the recipes in this and the next chapter, there is less need for us to be developing a specific user interface for each recipe. Instead, we'd be better off developing a single, flexible interface which we can use to test a variety of different requests.
In this recipe, we're going to develop a simple user interface in the Flash Player (or AIR runtime, if you wish) that allows us to quickly see the results of a Graph API request URL and modify that URL without the need to continually re-build our project.
Once completed, our 'Test Console' should contain a sizable TextArea
component, where we will output formatted JSON objects; a TextInput
component, for specifying the Graph API object (or Graph API connection) URLs; a CheckBox
component, for including additional Metadata (primarily to view Graph API connections); and a Button
component, for triggering the request itself.
When complete, our 'Test Console' should look like this: