Problem with transparent image in game .

Hi all ,
I have a problem with button .
Here is example

Usual,if the image is button , you can touch it to creat event , but I just want to creat event when I touch on red dot , and if I touch at transparent of image , nothing happen .
So what should I do ? . Someone can sugguest me ?

Thanks [import]uid: 89131 topic_id: 24302 reply_id: 324302[/import]

For this you would use a mask and obj.isHitTestMarked.

Check this out: http://developer.anscamobile.com/reference/index/objectishittestmasked

Peach :slight_smile:

PS - If your image was just a colored circle you could also use a display.newCircle which would be easier. [import]uid: 52491 topic_id: 24302 reply_id: 98181[/import]