How to display images in table

I have about 60 png images (A1.png, A2.png, A3.png, etc.) in sequence in a table that I want to display in 10 rows on the iPad simulator. I would also like to be able to move each of the images around the screen by touch.

I can get images to show up individually on the screen with x and y coordinates, but don’t know how to make them display when they are in a table format.

Any suggestions would be appreciated on displaying the table images or moving them by touch. [import]uid: 105659 topic_id: 20173 reply_id: 320173[/import]

I hope the example below helps, if it’s not what you were looking for feel free to provide examples of what you are doing to display them individually and how you’re storing them in the table. Also note that you may want to look into corona display groups for a container in which to hold multiple images: http://developer.anscamobile.com/content/display-objects#Groups

[code]
local table =
{
display.newImage(“A1.png”),
display.newImage(“A2.png”),
display.newImage(“A3.png”),
display.newImage(“A4.png”),
display.newImage(“A5.png”),
}

– individually display the first image in the table
table[1].isVisible = true

– display all images in the table
for index,image in pairs(table) do
image.isVisible = true
end
[/code] [import]uid: 100558 topic_id: 20173 reply_id: 78793[/import]

maybe something like this if you need rows
[lua]local images = {“a1”,“a2”,“a3”}
for i = 1,#images do

local image = display.newImage(images[i]…".png")
image.x = 50
image.y = 50+(i-1)*50

for l = 1,#images do

local image = display.newImage(images[l]…".png")
image.x = 150
image.y = 50+(i-1)*50
end

for p = 1,#images do

local image = display.newImage(images[p]…".png")
image.x = 250
image.y = 50+(i-1)*50
end

end[/lua] [import]uid: 16142 topic_id: 20173 reply_id: 78794[/import]

Thanks for the help and replies! I’ll give my images another try at displaying. [import]uid: 105659 topic_id: 20173 reply_id: 78799[/import]