Chapter 6. Network communication



Suppose for a moment that you’re building an application that allows users to edit text documents that live on a server connected to the internet. When the user starts the application, it connects to the server and retrieves a list of available documents. She can select a file, and the text is downloaded and made available for editing. When she saves the file, the application sends the new text to the server, where it’s saved. That application may work perfectly when the user is connected to the internet. But when the user isn’t connected, there’s a problem: she has no way to edit or save files, because those behaviors require ...

Get Adobe AIR in Action, Pap/Pas Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.