In Java it is possible to set the datatype of an array, and by setting the datatype to the object I am using, I can call the methods and variables of that object. For instance:
ArrayList<Object> name = new ArrayList<Object>();
name.add(new Object(variables));
name.get(0).method;
Is there any way I can do this in ActionScript?