DIGG API Example using AS3
Tuesday, January 29th, 2008The DIGG API for AS3 is set up for use in Flex, not the Flash CS3 IDE (which seems to be a bad trend). Even though you can make it work without Flex, it’s not exactly straight forward. It also does not include any examples to help a developer get started. Unlike the AS2 version of the API, which includes three semi-useful examples.
In my quest to become Actionscript 3.0 / OOP proficient I put together this simple example using the DIGG API to pull the last 10 popular stories. Right now it’s only using the TextField to display and handle the events so there is no useHandCursor option unless you attach it to a Sprite or SimpleButton. But I added a rollover color and these are linked to the articles on DIGG.
Flash Content
Note: The source code includes the entire set of Flex 2 classes, as the Digg API requires it and I wasn’t sure how to strip out the unused classes. I wanted to include everything necessary to publish from the Flash IDE.

