# Generic Types in AS?

**URL:** <https://forum.kirupa.com/t/generic-types-in-as/310302>\
**Category:** flash\
**Created:** [June 7, 2010, 8:04am UTC](https://forum.kirupa.com/t/generic-types-in-as/310302 "2010-06-07T08:04:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandra\_m](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@sandra\_m](https://forum.kirupa.com/u/sandra_m)\
**Post date:** [June 7, 2010, 8:04am UTC](https://forum.kirupa.com/t/generic-types-in-as/310302/1 "2010-06-07T08:04:02Z")

</div>

Hello,

Until soon I thought that AS does not accept generic types.  
Now I see that I can use [COLOR=#993300][FONT=monospace]

[FONT=verdana]var[/FONT][/FONT][/COLOR] v1: Vector.\<MyType\> = [COLOR=#993300]new[/COLOR] Vector.\<MyType\>COLOR=#000000[/COLOR];

My question is:  
Does this apply only for Vector or can I use it for other Types too?
