Settings facilitates access to string values stored in the config.xml.
The config.xml generally contains application settings and service related URLs not found in a Services.mxml.
The config.xml should not contain copy or static URL related values.
public static function getInstance():Settings
Settings is a Singleton class. This provide a means to get application-wide instance.
Returns
public function getSetting(id:String):*
Method for retrieving settings contained in the config.xml.
This is used to access settings for an application.
Parameters
| id:String — The id of the string value located in the config.xml.
|
Returns
public function getURL(id:String):String
Method for retrieving URLs contained in the config.xml.
This is used to access URLs for services.
Parameters
| id:String — The id of the string value located in the config.xml.
|
Returns