使用 AS3 读取简单的 INI 文件 [英] reading simple INI file with AS3
本文介绍了使用 AS3 读取简单的 INI 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该使用什么 AS3 类将一个简单的属性/ini 文件读入内存,以便为项目轻松配置一些设置,例如颜色.
What AS3 class should I use to read a simple property/ini file into memory to configure some settings such as colors easily for the project.
格式可以是
key=value <newline>
我喜欢用这种 API 访问它:trace ( Settings.get("key") )
I like to access it with this kind of API: trace ( Settings.get("key") )
推荐答案
在 AS3 中没有内置的方法来做到这一点,但我们支持在 Spring ActionScript 中加载和解析属性文件.
There is no built-in way to do this in AS3, but we have support for loading and parsing properties files in Spring ActionScript.
以下是资源的直接链接:
Here are the direct links to the sources:
- 属性
- PropertiesParser(在属性内部使用)
- Properties
- PropertiesParser (used internally in Properties)
这篇关于使用 AS3 读取简单的 INI 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文