This seems silly to ask this, but is there a way to make an associative array in actionscript right in the variable declarations?
e.g.
private var stages:Array = [
"name" : "NY Stage",
"location" : "New York",
"capacity" : 15000
]
Instead, the way I'm doing it is (1): declaring the array up top and then creating the rest of the array in the class constructor:
private var stages:Array;
public function PlayStage(){
stages["name"] = "NY Stage";
stages["location"] = "New York";
stages["capacity"] = 15000;
}
Can I do something like the top (without creating an object)?