Content facilitates access to string values stored in the content.xml.
The content.xml should not contain data related to application settings or service related URLs.
public static function getInstance():Content
Content is a Singleton class. This provide a means to get application-wide instance.
Returns
public function getList(id:String, listItemNodeName:String = "listItem"):XMLList
Method for retrieving XMLLists contained in the content.xml.
This is used to retrieve lists of data for use in dataProviders.
Parameters
| id:String — The id of the string value located in the content.xml.
|
| |
| listItemNodeName:String (default = "listItem") — The node name associated with each listItem within the list.
|
Returns
public function getModule(id:String):String
Method for retrieving swf URL values contained in the content.xml.
This is primarily used to retrieve the location of module SWFs loaded in an application.
Parameters
| id:String — The id of the string value located in the content.xml.
|
Returns
public function getStringValue(id:String):String
Method for retrieving string values contained in the content.xml.
This is primarily used to retrieve strings associated with the copy contained within an application.
Parameters
| id:String — The id of the string value located in the content.xml.
|
Returns
public function getSwf(id:String):String
Method for retrieving swf URL values contained in the content.xml.
This is primarily used to retrieve the location of SWFs loaded in an application.
Parameters
| id:String — The id of the string value located in the content.xml.
|
Returns
public function getURL(id:String):String
Method for retrieving URLs contained in the content.xml.
This is primarily used to retrieve URL links not used for sending and requesting data within an application.
Parameters
| id:String — The id of the string value located in the content.xml.
|
Returns