Or you could use the image as a sprite and check for a button press with the following:
If GetPointerReleased() = 1
If GetSpriteHitTest( SpriteNumber, GetPointerX(), GetPointerY() ) = 1 Then DoAction()
EndIf
GetPointerReleased() is one when, you guessed it, the mouse button, or screen touch is released.
GetSpriteHitTest() checks if the coordinates are within the bounds of a sprite.
I use this in my UI engine and it works very nicely.
I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]