The O'reilly book is a bit out of date. The basic principles
are valid, but some of the API names have changed in the release
version of AIR. For example, air.File.applicationResourceDirectory
is now air.File.applicationStorageDirectory.