I've got this code which copies the multidimensional array elements to an other array when the elements get loaded.
But something is wrong, I think I may have made a mistake with the syntax.

It works great with a onedimensional array but it doesn't even run with more dimensions.

I added the alert messages in the code to make sure where the process is.

Here's the link: