Reading a simple INI file with AS3

Which AS3 class should be used to read a simple property / ini file in memory to easily adjust some parameters, such as colors for the project.

may be

key=value <newline> 

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

+6
flex actionscript actionscript-3 flex3
source share
2 answers

There is no built-in way in AS3 to do this, but we do have support for loading and parsing property files in Spring ActionScript.

Here are direct links to sources:

+4
source share

I can freely choose the XML format that is very easy to handle in actionscript3, it may not be ideal for super simple configuration files, but it is extremely easy to handle as soon as you get it.

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

+2
source share

All Articles