Hello everybody.
I’m trying to load images and check if they really exists to get a amount of all the images in folder.
The clue is, that I would be able to show the “newest” logical the file with the highest upload_(number).jpg at first.
But it always loads the first image and then it only prints “noo” :D:D
However here is my code:
local image\_status = true local image\_amount = 0 image\_setup() function image\_setup() image = display.loadRemoteImage( "http://m7-studios.de/labor/upload/upload\_"..( image\_amount + 1 )..".jpg", "GET", image\_control, "upload\_"..( image\_amount + 1 )..".jpg", system.TemporaryDirectory, gX / 2, gY / 2 ) if ( image ) then image\_amount = image\_amount + 1 print( image\_amount ) end end function image\_control( event ) if ( image ) then image:removeSelf() else print( "noo" ) end end