x = 10
for j = 0 to json.Count() - 1
m.tile[j] = createObject("roSGNode", "Tile")
m.tile[j].width = 300
m.tile[j].height = 200
m.tile[j].translation = [x, 300]
m.tile[j].titleText = json[j].title
m.tile[j].descriptionText = json[j].description
m.tile[j].posterUrl = json[j].poster
m.top.appendChild(m.tile[j])
m.tile[j].setFocus(true)
x += m.tile[j].width + 10
end for
hello im sorry but i cant figure out why the code keeps crashing, the reason im doing this in an array is to use it later in the code
What error are you getting on the console?
You need to create the m.tile array before you start using it. Before the for loop try adding
m.tile = []
worked perfect thank you so much again!!!