There have been a number of tile based questions lately, so I've created a quick sample of how to use arrays to store frame numbers for the tiles. You can populate the tiles by the array value, or get the array value by the tile. It shows saving and loading, and a basic tile picker mechanism. Ideally this should be a tutorial, but I don't have time to do a proper job at the moment for a tutorial. Hopefully the comments are enough. This template can easily be expanded for your own use by altering the globals at the beginning and loading your own tiles.
Tiles and Arrays and Saving, oh my!