# Simple: Add a value to end of array?

**URL:** <https://forum.kirupa.com/t/simple-add-a-value-to-end-of-array/279618>\
**Category:** flash\
**Created:** [January 16, 2009, 4:41pm UTC](https://forum.kirupa.com/t/simple-add-a-value-to-end-of-array/279618 "2009-01-16T16:41:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarmanje](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jarmanje](https://forum.kirupa.com/u/jarmanje)\
**Post date:** [January 16, 2009, 4:41pm UTC](https://forum.kirupa.com/t/simple-add-a-value-to-end-of-array/279618/1 "2009-01-16T16:41:14Z")

</div>

Hi there. This is a basic questions!

How can i add another value to the end of an array?

This is my code:

```auto
var ThumbArray:Array = new Array();

ThumbArray[0] = ["70317", "name70317", "2"]
ThumbArray[1] = ["28076", "name28076", "3"]
ThumbArray[2] = ["28085", "name28085", "1"]
ThumbArray[3] = ["28006", "name28006", "3"]

```

Say for example i now want to add another value (ThumbArray) how would i do it?

i think this would work, but this is clearly not the best way to do it??

```auto
ThumbArray[(ThumbArray.length)] = ["28006", "name28013", "2"]

```
