Assign picture to number, Table of all pictures in folder

Hello.

Im developing app and i need some help.

I have a folder with X pictures.

How can I assign each picture to a number, that i will be able to display one picture on screen and when I slide to left number will change and another picture in numerical order will display?

I want that my app save picture to a folder and then display it in another screen.

I dont want to be limited with the number of photos I take and save to this folder.

Any help is appreciated.

Tnx,

Rok [import]uid: 97538 topic_id: 17421 reply_id: 317421[/import]

Have you tried naming the pictures 1.png/2.png/3.png/etc and in the code doing:

local var = 1  
local img = display.newImage(var..".png", 0, 0)  

This way whenever you want to display a different image change ‘var’ and replace ‘img’ with the new image [import]uid: 14018 topic_id: 17421 reply_id: 65979[/import]

One way is that you number than instead of having a filename

The other way is that you create and manage an index just like the FAT Table.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 17421 reply_id: 65983[/import]