# Setting a single part in a 2d array

**URL:** https://forum.kirupa.com/t/setting-a-single-part-in-a-2d-array/250294
**Category:** flash
**Created:** [January 28, 2008, 8:31am UTC](https://forum.kirupa.com/t/setting-a-single-part-in-a-2d-array/250294 "2008-01-28T08:31:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![FunkyT](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@FunkyT](https://forum.kirupa.com/u/FunkyT)
#### Post date: [January 28, 2008, 8:31am UTC](https://forum.kirupa.com/t/setting-a-single-part-in-a-2d-array/250294/1 "2008-01-28T08:31:46Z")

</div>

You know how  
myArray=[[0,1,2,3],[4,5,6,7],[8,9,10,11]]  
trace(myArray[2,1])  
will give you 9?

Well, how do I edit ONLY the number in myArray[2,1]?  
Like, I thought it would be something like myArray[2,1]=2419, but weird stuff happens then and I think it overwrites my old myArray
