Jerry62712
08-07-2009, 03:38 PM
I have the following code:
[Bindable]
public var pageDropDownUtility:Array = new Array("None",
"Receiving or expecting to receive energy benefits from LIHEAP",
"Billed for AC/Heat",
"Billed for more than 1 utility excluding AC/Heat",
"Billed for 1 utility excluding AC/Heat and telephone",
"Billed for telephone only");
I would rather load this data from this class:
private const dropDownUtility:Array = new Array([
"None",
"Receiving or expecting to receive energy benefits from LIHEAP",
"Billed for AC/Heat",
"Billed for more than 1 utility excluding AC/Heat",
"Billed for 1 utility excluding AC/Heat and telephone",
"Billed for telephone only"]);
public function getDropDownUtility():Array {
return dropDownUtility; }
How do I do it? I've loaded all the strings with no problem:
code:
[Bindable] public var pageButtonLanguage:String = English.getLanguage();
and
class:
private const language:String = new String("Espaņol");
public function getLanguage():String {
return language; }
[Bindable]
public var pageDropDownUtility:Array = new Array("None",
"Receiving or expecting to receive energy benefits from LIHEAP",
"Billed for AC/Heat",
"Billed for more than 1 utility excluding AC/Heat",
"Billed for 1 utility excluding AC/Heat and telephone",
"Billed for telephone only");
I would rather load this data from this class:
private const dropDownUtility:Array = new Array([
"None",
"Receiving or expecting to receive energy benefits from LIHEAP",
"Billed for AC/Heat",
"Billed for more than 1 utility excluding AC/Heat",
"Billed for 1 utility excluding AC/Heat and telephone",
"Billed for telephone only"]);
public function getDropDownUtility():Array {
return dropDownUtility; }
How do I do it? I've loaded all the strings with no problem:
code:
[Bindable] public var pageButtonLanguage:String = English.getLanguage();
and
class:
private const language:String = new String("Espaņol");
public function getLanguage():String {
return language; }