Well, I'm setting multidimensional array values from a JSON file to a C2 Array object:
{
"c2array": true,
"size": [3,2,1],
"data": [
[
["title"],
["desc"]
],
[
["Frog"],
["Very green"]
],
[
["Camel"],
["Very yellow"]
]
]
}
[/code:30q6fhyr]
I have something like this to load it up:
[code:30q6fhyr]
[On Start Layout ] -> AJAX -> Request words.json (tag "words")
[On "words" completed] -> Words (Array) -> Load from JSON string AJAX.LastData
[/code:30q6fhyr]
Now I'm trying to use the data in this array in a Text object that I've programmatically spawned:
[code:30q6fhyr]
[On Start Layout] -> System -> Create Text on layer 0 at (200, 200)
[On created Text]
[Words is empty]
[else]
[Text] -> set text to Words.At[0,0,0]
[/code:30q6fhyr]
Using the .At() function, I'm only getting a value of "0" and not the text from the multidimensional array. Anyone know why this is so? The JSON data appears in the array viewer in the debugger.