# Newbie: collections in actionscript 2

**URL:** <https://forum.kirupa.com/t/newbie-collections-in-actionscript-2/86794>\
**Category:** flash\
**Created:** [April 15, 2005, 3:47pm UTC](https://forum.kirupa.com/t/newbie-collections-in-actionscript-2/86794 "2005-04-15T15:47:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cedricm](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@cedricm](https://forum.kirupa.com/u/cedricm)\
**Post date:** [April 15, 2005, 3:47pm UTC](https://forum.kirupa.com/t/newbie-collections-in-actionscript-2/86794/1 "2005-04-15T15:47:36Z")

</div>

It seems there is only one kind of collection in activescript 2: array.  
Also one can’t make a typed array as in C++ or C#:

```auto
 class Photo { 
}
 
Photo[] Photos = new Photo[10]; // impossible with as2 isn't it?
 
One has to do:
var Photo1:Photo = new Photo("file1.jpg");
var Photo2:Photo = new Photo("file2.jpg");
var Photos:Array = Array( [Photo1, Photo2])

```

As for me this is quite limiting, because one creates a class when one expect many instances of that class. It would be really great to have better collections such as typed arrays, hashtables and so forth. Or am I missing something?

Thanks
