O'Reilly logo

Real-World Flash Game Development by Chris Simpson, Christopher Griffith

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

9XML AND DYNAMIC CONTENT

Many Flash games are self-contained SWF files. They don’t load any additional files in and they don’t send any type of data out; however, this closed architecture prohibits a number of scenarios, such as:

  • Externalized content (such as puzzle data or even game copy)
  • The ability to save to a public high-score table
  • Localization to other languages
  • Level editors and user-generated content

In this chapter, we’ll explore how features like these can be implemented using a variety of features in ActionScript.

Bringing Data In: Understanding the URLLoader Class

The core component behind sending and loading basic text, XML, and binary data is the URLLoader class. It takes only a few lines of code to load some data and begin ...

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