reading simple INI file with AS3
Asked Answered
U

2

6

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.

format could be

key=value <newline>

I like to access it with this kind of API: trace ( Settings.get("key") )

Unmitigated answered 26/2, 2009 at 8:49 Comment(0)
D
4

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:

Dissension answered 26/2, 2009 at 9:1 Comment(0)
S
2

I you can choose your format freely XML is very easy to deal with in actionscript3, it might not be perfect for super simple config files, but it's extremely easy to handle once you get it in.

This page looks to have a reasonable overview: http://dispatchevent.org/roger/as3-e4x-rundown/

Selfdefense answered 26/2, 2009 at 10:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.