I am trying to work with an array. I want a 1-dimensional array and I push the items into it.
I created an array object called msgArray and configured it with:
width: 0
height: 0
depth: 0
on a button press I push two separate values "roll" and "2" in the x-axis.
If I display msgArray.asJSON in a text field it gives me a valid string with two empty cells in the "data" part :/
"{"c2array":true,"size":[2,0,0],"data":[[],[]]}"
IF I initialize the array with width: 1, height: 1, and depth: 1 everything works as expected, but wastes plenty of space due to the added dimensions.
I'm guessing, that I am doing something wrong as I can't imagine that we would be forced to have a 3-D array
Thanks for any assistance