Archive for November, 2008
Working with Persistent Data
I frequently hear the question, “How do I save data?” This question often gets asked with regards to the ContactManager application, such as “How do I make the save button work?” “Shouldn’t data binding do that?”
I talk about this in the book, and it’s an understandable misconception. There’s no easy answer. Saving data sounds simple enough–but where are you saving it? To the hard drive? To a database? To a text file? What kind of server, etc? How do you deal with authenticating who can save the data? What if two people try to save different data at once? All these questions must be answered.
Some of this is addressed in the final chapter. But the short answer is you need specialized skills to work with saving data, especially remotely, and this is outside the scope of this book. If you’d like to work with local data, check out AIR, or look at the new APIs in Flash 10 that let you access the local hard drive.
4 comments
