How to make the PNG's transparent region not be listened by the EventListener when a touch event happened?

I didn’t find a variable that could make the PNG picture’s transparent region not being touched. Does DisplayObject have a function or variable that could make that transparent region can’t be touched?

Thanks for your answer.

http://docs.coronalabs.com/api/type/DisplayObject/isHitTestMasked.html

 

tutorial about masks:

http://www.coronalabs.com/blog/2012/05/29/how-to-use-bitmap-masks/

Hi borgb,

Thank your very much for the reply.

And Is this the only way to make the transparent area untouchable?

Good day to you.

its the only way I have seen, though maybe a staff member can verify it.

And I need to make the bitmap mask image by myself?

yes, that is correct, if you look at the tutorial I linked to it explains how things work. you can just take the png and select the part that has graphics in it and fill that whit white and then invert the selection and fill that with black. Not sure which image editing software you are using but all should have this possibility. Then just save it as a new file. 

I got it. Not really simple, I’ll try to get the mask picture. 

Thank you very much. XD

http://docs.coronalabs.com/api/type/DisplayObject/isHitTestMasked.html

 

tutorial about masks:

http://www.coronalabs.com/blog/2012/05/29/how-to-use-bitmap-masks/

Hi borgb,

Thank your very much for the reply.

And Is this the only way to make the transparent area untouchable?

Good day to you.

its the only way I have seen, though maybe a staff member can verify it.

And I need to make the bitmap mask image by myself?

yes, that is correct, if you look at the tutorial I linked to it explains how things work. you can just take the png and select the part that has graphics in it and fill that whit white and then invert the selection and fill that with black. Not sure which image editing software you are using but all should have this possibility. Then just save it as a new file. 

I got it. Not really simple, I’ll try to get the mask picture. 

Thank you very much. XD