# How should I store my 2D arrays?

**URL:** <https://forum.kirupa.com/t/how-should-i-store-my-2d-arrays/311097>\
**Category:** programming\
**Created:** [June 28, 2010, 2:40am UTC](https://forum.kirupa.com/t/how-should-i-store-my-2d-arrays/311097 "2010-06-28T02:40:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoupHead](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@SoupHead](https://forum.kirupa.com/u/SoupHead)\
**Post date:** [June 28, 2010, 2:40am UTC](https://forum.kirupa.com/t/how-should-i-store-my-2d-arrays/311097/1 "2010-06-28T02:40:45Z")

</div>

Hi everybody,

I’m currently working on a small, simple, tile-based game. To hold which tiles go where I am using numbers within 2D arrays to select the type of tile. I was wondering if there was a good way to store the arrays for each map or if I should just write each array out in the Flash program itself. I was also thinking about possibly using .dat files and reading them from there, but I’ve never done anything like that with flash.

I’m using this tutorial, when I need help, and it does not really specify a great way to hold the arrays.

> **[This is Still Not Better Than Playing Games - To NY pa...](http://tonypa.pri.ee/not-better-playing-games/)**
>
> This page has an interesting story about wondering if playing games back home is more fun and more important than going on family vacations.

Thanks for the suggestions,  
SoupHead
