# Why Vector?

**URL:** <https://forum.kirupa.com/t/why-vector/290990>\
**Category:** flash\
**Created:** [June 23, 2009, 12:34pm UTC](https://forum.kirupa.com/t/why-vector/290990 "2009-06-23T12:34:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonnieraymond](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bonnieraymond](https://forum.kirupa.com/u/bonnieraymond)\
**Post date:** [June 23, 2009, 12:34pm UTC](https://forum.kirupa.com/t/why-vector/290990/1 "2009-06-23T12:34:15Z")

</div>

When the first time I saw “Vector”, I thought “new type?” then I found out: “oh, it’s just typed Array”.  
ok I know everybody here might not the one who define “Vector” type. But I just wondering why Adobe name it “Vector” (technically) instead of Array.\<type\>. Using Array name might be more clear don’t you think? Vector basically is just (typed) Array.  
btw, while talking about Vector, how can I create an empty Vector like this:

```auto

var myArray:Array = [1, 2, 3, 4, 5]
myArray = [] // clear the array

var myVector:Vector.<int> = new Vector.<int>();
myVector.push(1);
myVector.push(2);
myVector.push(3);
myVector = [] // I want to clear the vector array, but this way obviously doesn't work, then how?

```
