I’ve been racking my brain against this and have not come up a solution. Is it possible to store images in tables and then later display the image?
For example, I tried storing image in a table this way:
myimg = display.newImage(myimg.jpg);
mytable = {}
mytabe.first = myimg
However, this did not work. Any ideas?
[import]uid: 14218 topic_id: 8446 reply_id: 308446[/import]
Tim
2
What did not work for you? That’s valid code.
Tim [import]uid: 8196 topic_id: 8446 reply_id: 30471[/import]
jmp909
3
well there’s a few errors in that code. myimg.jpg needs quotes and you’ve misspelled mytable
[lua]myimg = display.newImage(“myimg.jpg”);
mytable = {}
mytable.first = myimg
mytable.first.alpha=0.5[/lua] [import]uid: 6645 topic_id: 8446 reply_id: 30501[/import]
you can also just set the isVisible flag and not even store it in a table 
img.isVisible = true / false
c. [import]uid: 24 topic_id: 8446 reply_id: 32038[/import]