# How to Set a Vector?

**URL:** https://forum.kirupa.com/t/how-to-set-a-vector/326643
**Category:** Uncategorized
**Created:** [January 2, 2012, 2:43am UTC](https://forum.kirupa.com/t/how-to-set-a-vector/326643 "2012-01-02T02:43:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ColinDavies](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)
#### Post date: [January 2, 2012, 2:43am UTC](https://forum.kirupa.com/t/how-to-set-a-vector/326643/1 "2012-01-02T02:43:12Z")

</div>

No matter what I try I can’t get the Setter function to work on a vector.\<object\>

Mean while the getter works fine  
Example as below

```auto
public function get frameData() :Vector.<Object>  
{ 
 trace("getter");
 return tData._frameData;
}

public function set frameData(nuFramDat:Vector.<Object> ):void
{ 
 tData._frameData = nuFramDat; 
 trace("Never Displayed Setter");
}

```

the code runs fine without the set function, but not without the get.  
I can think up a workaround but I’d rather not 🙂
