AIR 2 - Data Persistence?

半腔热情 提交于 2019-12-08 12:35:16

问题


what is the best way to include data persistence in an AIR 2 application?

is it creating your own read/write file with flash.filesystem, or is there a new way with AIR 2?


回答1:


it seems that adobe wrote a library for saving preferences in AIR years ago, but have never added it to the official library? now i'm curious why they would not have done so, since data persistance is key for desktop applications.

adobe's AIR Preferences library ("as3preferenceslib"), consisting of 3 classes, can be found on Google Code here. i've created a .SWC using these files and added them to my AIR 2 library.

a class written by Jonnie Spratley showing how to use adobe's as3preferenceslib can be found here.



来源:https://stackoverflow.com/questions/3861256/air-2-data-persistence

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!