摘要
数据处理不是Flash的强项。商用的Flash应用(如游戏)如果涉及到收集和整理客户定单、反馈意见或个人信息时,一般都要借助第3方软件(如SQL数据库和文本服务器)实现。而对小型或个人的Flash应用,处于安全考虑或条件限制,大多没有连接网络,只是本地使用。要实现诸如游戏用户得分统计、登录、信息汇总等基本功能,没有必要搭建完善的数据处理系统。SharedObject是Flash中一个功能强大的类,利用它可以在本地创建数据文件,轻易地实现数据的读和写。通过分析SharedObject类常用的函数,详细介绍了其使用方法和注意事项。
Flash is not good at data processing. To do that, we usually need third-part software such as SQL database and WEB server in the applications to collect user’s information or feedback information to user. But for tiny personal flash applications, it is not desired for Internet application but for local use. So, it isn’t necessary to install such complicated environments for displaying user’s score, logging in, and so on. ShareObject is a powerful class in flash, which can easily read and store data via local disk file created by ShareObject. Here introduces some common function’s usages of ShareObject.
出处
《电脑开发与应用》
2014年第12期58-59,62,共3页
Computer Development & Applications