Hi
I think I read an answer to this on a blog which I can’t find anymore - A GREAT START
I have a table which has been populated with file names within the App.
t is the table
picname = t.Pictures[i]
print (picname) --this prints (image.jpg
picture = display.newImage(picname,system.ResourceDirectory)
– picture = display.newImage(“image.jpg”,system.ResourceDirectory)
The file exists and is loaded with the last line. However it won’t load with the 2nd to last line, even though it is printed in the line above. I have tried storing the file name as both image.jpg and “image.jpg”
I believe this is a referencing issue with Lua - I might have the wrong terminology but in essence it won’t load as picname is a reference within Lua not the filename or something too programmy for me to fully understand
Anyone care to help or shed some light on a solution. Thanks ! [import]uid: 137150 topic_id: 34182 reply_id: 334182[/import]