O'Reilly logo

ActionScript 3.0 Design Patterns by Chandima Cumaranatunge, William Sanders

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extended Example: Displaying the O'Reilly New Books List

To further illustrate the utility of the ListDisplayField adapter, we'll use it to display the list of new books published by O'Reilly Media, Inc. Because this list changes often, it makes sense to access the list dynamically using network methods, and display the book titles using the ListDisplayField adapter.

The new books list is published from the O'Reilly web site as a web feed. A web feed is a data format used to publish content that changes frequently. The content publisher syndicates a web feed, allowing users to subscribe to it.

The O'Reilly new books web feed, shown in Example 5-16, is published using the Atom Syndication Format, commonly known as Atom. Another common web feed format is RSS (the RSS 2.0 acronym stands for Really Simple Syndication). Syndication formats are specified using XML (Extensible Markup Language), which is a way to create special-purpose markup languages to describe data.

Example 5-16. Condensed version of new books web feed from O'Reilly showing two book entries

<?xml version='1.0' encoding='utf-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:itunes='http://www.itunes.com/dtds/podcast-1.0.dtd' xml:lang='en-US'> <title>O'Reilly Media, Inc. New Books</title> <link rel="alternate" type="text/html" href=http://www.oreilly.com/ hreflang="en" title="O'Reilly Media, Inc. New Books" /> <rights>Copyright O'Reilly Media, Inc.</rights> <updated>2006-09-28T22:45:16-08:00</updated> <link rel="self" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required