News questions are:
How avoid the "undefined value" error when try to read one array position?
How find into an array for a value and replace it? I found "TheindexOf" and "TheValueOf"
I guess that if the search value work fine is better than the use of repeat.
1) This is because you are adding extra elements to an array. So the blanks are undefined.
2) Load your data into array, then you use theseto manipulate the data as per usual. Have a look at this - Very good tut. Download the animalscomplete.capx and go through it. Handles everything you will need.
Will have a look at your screenshots etc when I get some time. This week is crazy
Edit: Don't use buttons, they don't work or give you grey hairs (for tablets) or textboxes either.
Use sprite as button. And spritefont. (better for design, better for game)