Tonypa's Tile-based -> delete clip problem

I’m working on a tile-based game using Tonypa’s tutorial as a basis.

I’m having trouble altering the tiles after the initial map has been built. I want to be able to change a tile into another on the fly.


removes the movieclip, but the array still holds the information of the clip. How can I change the array at that place?

Also, how can I use variables in a statement like the one above? I’m thinking of something like


but that doesn’t work.

Can anyone help?