Flex3 中处理用户首选项文件的方法是什么?

发布于 2024-08-23 00:46:47 字数 89 浏览 3 评论 0原文

我需要一种方法来处理文件中的用户首选项。当然,用户可以更新他们的偏好。 最好的方法是什么? .ini 文件或 .xml 文件... 有什么片段可以开始吗? TIA

I need a way to handle user preferences in a file. Of course, users can update their preferences.
What is the best way to do that ?
.ini file or .xml file ...
Any snippet to start with ?
TIA

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深居我梦 2024-08-30 00:46:48

最简单、最像 Flex 的方法是使用本地共享对象。您可以将基本的 ActionScript 对象保存到用户系统中,并随时从您的域加载的任何 swf 中访问它们。许多游戏将其用于保存功能,许多网站将其用作 cookie 存储和/或用户首选项存储。

文档和示例 - http://learn.adobe.com/wiki/display/ Flex/共享+对象

The easiest and most flex-like way of doing this would be to use a local shared object. You can save basic actionscript objects to the users system and access them at any time from any swf loaded from your domain. many games use this for their save feature and many websites use this as a cookie store and/or user preferences store.

docs and example - http://learn.adobe.com/wiki/display/Flex/Shared+Objects

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文