First of all hi guys, this is my first post here and I hope not the last one . Well just recently I have started working on my first application in Corona SDK it is a puzzle game and I am looking for solution how to display a set of images which will be associated with audio file. The images may create words and might be load randomly by the application and here is my problem begin. I will greatly appreciate it if someone could give me any idea how to resolve my problem
 local puzzles= {
 yes ={ img= âblockY.pngâ, img =âblockE.pngâ, img =âblockS.pngâ,}, --this objects need to be load to create single word
 bed = { img= âblockB.pngâ, img =âblockE.pngâ, img =âblockD.pngâ,},
 } â ⌠or this
 puzzles = display.newImage(puzzles[math.random(#puzzles)]) â how to separate arrays from the block of objects in the array and load them into application?
 puzzles.x = math.random( 115, display.contentHeight - 115 )
 puzzles.y = math.random( 115, display.contentHeight - 115 )
âButton press event
local a_puzzle = function(event)
audio.play(a_letter)
end
puzzle: addEventListener(âtapâ, puzzle)
puzzle:addEventListener(âtapâ, a_puzzle)
This is my actual working code but in the future I would like to build levels and display words and sound for each tapped letter. I tought about associative array and tables but I am not sure how this could be doable, I hope that someone more experienced would help.