I have 4 buttons in my app and only one is a rollover button. when i tap one of the buttons that isnt a rollover button and slide my finger away from it, nothing happens, which is what I want, but when I tap on the rollover button and slide my finger away, it changes the scene (which I have it set to when it’s just tapped). It is set as a “touch” event, cause the button wont work if it is set as a “tap”. i dont know if that has something to so with it. I am also using the UI.lua file [import]uid: 14967 topic_id: 12692 reply_id: 312692[/import]
There’s an article+video+sample project here called Better Buttons:
http://gamedevnation.com/gdn-membership/better-buttons-in-corona-sdk/
It talks about how to make sure a finger up only on top of the button triggers the action.
You have to be a GDN member to access the info, but that’s free so don’t let that stop you. 
Jay
[import]uid: 9440 topic_id: 12692 reply_id: 46503[/import]
@J. A. Whye Thanks For The Link, I Checked It Out And Made An Account, But When I Click On The Better Buttons Page, It Just Goes Back To The Home Page [import]uid: 14967 topic_id: 12692 reply_id: 46506[/import]
You should have received an email with a link to verify your new account. If you don’t see it in your in-box, check your spam/junk folder in case it got rerouted by mistake.
Jay
[import]uid: 9440 topic_id: 12692 reply_id: 46507[/import]
Got That, also got another email saying welcome to Game Dev Nation, tried logging out and logging back in, also restarting my browser, still can’t get to the page, for my level it says Silver but it is crossed out idk if that means anything [import]uid: 14967 topic_id: 12692 reply_id: 46509[/import]
Just sent you an email with the info you need. The system didn’t think you had confirmed your registration, so I’ll look into why that’s happening. But you’re good to go now.
Thanks!
Jay
[import]uid: 9440 topic_id: 12692 reply_id: 46513[/import]
THANK YOU VERY MUCH!!! I am able to access it now [import]uid: 14967 topic_id: 12692 reply_id: 46514[/import]
Can I Also Use The Better Buttons Code To Have The Button Image Change To A Different Image When Clicked? Instead Of Changing The Images Opacity? [import]uid: 14967 topic_id: 12692 reply_id: 46528[/import]
You’d have to modify that code, but off the top of my head it should be pretty easy.
At the place where the opacity is set to .5, change that to 0 which will effectively hide that button. Then add code that will put in the pressed button, something like:
[lua]pressedBtn = display.newImage(“depressedBtn.png”)
pressedBtn.x = event.target.x
pressedBtn.y = event.target.y[/lua]
Then in the place where the opacity is set back to 1, add this code:
[lua]pressedBtn:removeSelf()[/lua]
I *think* that’s all you’d have to do.
And, in fact, you may not have to change that first opacity line at all, since newly created display objects appear “on top of” existing ones. So your new depressed button would just cover the one you’re actually pressing.
Hmmm…thinking about it, there may be more tweaking needed, but give it a shot. Let me know what you end up with.
Jay
[import]uid: 9440 topic_id: 12692 reply_id: 46539[/import]
Okay, it took a little more code than I thought, but not much more. Here’s a video showing what I did and the changes made to the original Better Buttons code:
http://instantvideowebpages.com/play/notmplvid.php?696
At some point I’ll remake the Better Buttons tutorial using this new code, but for now this should get you going.
Thanks for the question that sparked the coding. 
Jay
[import]uid: 9440 topic_id: 12692 reply_id: 46560[/import]
AWESOME!!! Thanks, I will give it a try and let you know how I make out [import]uid: 14967 topic_id: 12692 reply_id: 46563[/import]
Just Tested The Code on the iPad, Works Perfect, One More Question, I am using display.newImageRect for dynamic image scaling on the iphone, would this code also work with that? [import]uid: 14967 topic_id: 12692 reply_id: 46736[/import]