hello,
in PHP i am used to create a array with using names as keys like
array["something1"] = "output1";
array["something2"] = "output2";
array["something3"] = "output3";
and then use foreach to let them print or do other things with it like
foreach ($array as $key => $value) {
echo "$key = $value";
}
is there something similar possible in AS3?
EDIT:: what also is handy of these vars is that you can do something like this:
GetSomethingString:String = GetTheString(); // lets yust say this returns something2
trace(array[GetSomethingString]); // then this will return output2