我应该使用什么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的访问:跟踪(Settings.get(钥匙))
I like to access it with this kind of API: trace ( Settings.get("key") )
有没有内置的方式做到这一点在AS3,但我们有装载和解析属性文件的支持Spring动作。
There is no built-in way to do this in AS3, but we have support for loading and parsing properties files in Spring ActionScript.
下面是直接链接到源:
属性 PropertiesParser (内部使用的属性) Properties PropertiesParser (used internally in Properties)