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

i want check event onPress

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,

?:)

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;

1
2
3
4
5
6
local function myFunction ()
   if event.phase == "began" then
      --Code for response to press here
   end
end
obj:addEventListener("touch", myFunction)

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,

?:)

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

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,

?:)

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

views:1481 update:2011/10/17 8:58:49
corona forums © 2003-2011