If onRelease = tap , onPress = ??? in corana

i want check event onPress [import]uid: 92135 topic_id: 15650 reply_id: 315650[/import]

set an event handler for touch, and check for the phases, began, moved and ended.

You can get an app that helps you create the code, called Corona Code Generator, the code generated can help you have a look at how to do stuff, have a look here

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 15650 reply_id: 57729[/import]

Hey Jayant, I’m not sure that was what you intended to link to XD

nutty_99, onPress is for use with ui.lua - are you using that?

If not, do;

[lua]local function myFunction ()
if event.phase == “began” then
–Code for response to press here
end
end
obj:addEventListener(“touch”, myFunction)[/lua]

Peach :slight_smile: [import]uid: 52491 topic_id: 15650 reply_id: 57731[/import]

Aaaaah!! wrong link, sorry, that was about a video that I was watching on evolution and developmental algorithms. Sorry for that, I was wanting to link to the article here

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 15650 reply_id: 57747[/import]

thank for http://howto.oz-apps.com/2011/03/automatically-generate-corona-code.html
but i use window no mac i cannot run dmg file [import]uid: 92135 topic_id: 15650 reply_id: 57750[/import]

there’s a windows version too…here and if you look at the HowTo site, you will find other tutorials and reading / reference stuff that you can use.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 15650 reply_id: 57751[/import]

very thank @JayantV for tool win version
i have another problem about display text thai language

http://developer.anscamobile.com/forum/2011/09/27/problem-use-thai-language-displaynewtext
[import]uid: 92135 topic_id: 15650 reply_id: 57755[/import]