Need collision detection code

Could somebody please do me a great favour and write me a small bit of code for collision detection.

I have 2 objects, "ball" and "flag", and when they collide I need a popup to appear with a button on it.

I would be very grateful if somebody could write this could for me.
Thanks

views:1516 update:2012/1/13 9:04:04
corona forums © 2003-2011