How to select something from list to object?

Hello!
I’am creating a game that contain this thing: user tap on a picture, then list of audio files appears, then user select and audio file from list and this audio file will be played if picture is touched. There are few pictures. List is made using tableView.
How can i make this? Help me please! [import]uid: 169507 topic_id: 33383 reply_id: 333383[/import]

anybody? [import]uid: 169507 topic_id: 33383 reply_id: 132618[/import]

Try not to bump within a few hours of making a thread, please: http://developer.coronalabs.com/forum/2011/05/05/forum-rules-and-guidelines

You should show code for what you have already and ask specific questions; there aren’t samples for every exact thing but if your question is more like “How do I play audio when the image is tapped”, for example, then someone can likely help you out with a code snippet or the like :slight_smile: [import]uid: 52491 topic_id: 33383 reply_id: 132684[/import]

Hi Ed. This is quite possible and I would use a widget.newTableView to do it (http://docs.coronalabs.com/api/library/widget/newTableView.html)

You would make your image tappable by adding either a touch or tap event listener to the image, then in the function you right to handle the tap or touch, you would create the tableView, populate it with the items for that image. As part of adding things to the tableView, you set up an onTouch handler for each row. That row can then play the audio you’re looking for.

Then I would use hiding/showing techniques like .isVisible = true or transition.to changing the alpha of the tableView to show or hide it as necessary.

[import]uid: 199310 topic_id: 33383 reply_id: 132687[/import]

anybody? [import]uid: 169507 topic_id: 33383 reply_id: 132618[/import]

Try not to bump within a few hours of making a thread, please: http://developer.coronalabs.com/forum/2011/05/05/forum-rules-and-guidelines

You should show code for what you have already and ask specific questions; there aren’t samples for every exact thing but if your question is more like “How do I play audio when the image is tapped”, for example, then someone can likely help you out with a code snippet or the like :slight_smile: [import]uid: 52491 topic_id: 33383 reply_id: 132684[/import]

Hi Ed. This is quite possible and I would use a widget.newTableView to do it (http://docs.coronalabs.com/api/library/widget/newTableView.html)

You would make your image tappable by adding either a touch or tap event listener to the image, then in the function you right to handle the tap or touch, you would create the tableView, populate it with the items for that image. As part of adding things to the tableView, you set up an onTouch handler for each row. That row can then play the audio you’re looking for.

Then I would use hiding/showing techniques like .isVisible = true or transition.to changing the alpha of the tableView to show or hide it as necessary.

[import]uid: 199310 topic_id: 33383 reply_id: 132687[/import]