Flex: Flare ForceDirected demo updated for AIR
I have gone back and updated my force directed graph demo to work with Flex 4 and Flare. I am quite pleased with the result. It runs on the AIR runtime.

You can download the executable here.
You can download the source code here.
I am pleased to say that the last version of Flare seem to have fixed all of the issues from when I last looked at this in 2008 (over three years ago..can you believe it).
The demo displays a sample graphML description taken from my Social Graph Browser
It’s not perfect but there are some interesting features of the code to note:
- Custom edge renderer to display the ‘association’ attribute of the graph.
- Custom nodes with images which represent the ‘association’ attribute of the graph.
- Nodes with a custom button which highlights when the mouse is moved over it and when clicked displays the target web page on the ‘browser’ tab. Also the buttons display a tooltip with a message
It shouldn’t be too hard to convert this back into a Flex web application as the code is totally self contained. My original plan was to use Flare to implement the graph in my Social Graph Browser application but the original version of the library had too many problems to do that so I let it drop at the time.
My current plan is to convert what Flare demos I have into AIR applications as I go along.
I hope this proves useful.