In Delphi (Object Pascal) I can create records (and object with accessible and creatable properties) and can also make this into an array, to have a Record Array, can this be done with AS2?
E.g.:
myRecord = Record()
{
name: string;
pn: integer;
}
myArray = Array [1..2] of myRecord;
myArray[0].name = "john";
myArray[0].pn = 25;
myArray[1].name = "peter";
myArray[1].pn = 36;
The above code somewhat resembles Object Pascal, but is just to show an example of what I mean. It is not perfectly accurate (op doesn’t use { and } for example lol).