10

XML AND DYNAMIC CONTENT

CHAPTER OUTLINE

Bringing Data In: Understanding the URLLoader Class

XML

E4X

Crossword Puzzle

The CrosswordTile Class

The CrosswordClue Class

The CrosswordPuzzle Class

Content Is a Two-Way Street: A Crossword Builder

Sending Data Back Out

One More Example: XML versus Flash Vars

Summary

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 a puzzle data or even a 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 ...

Get Real-World Flash Game Development, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.