I have a problem and I have a potential solution. But I would like to confirm if there is a simple and easy way to solve my problem.
Application type:
Isometric game
Description of the problem:
I load images into my flash application and bind mouse events to them.
The images I upload are images such as vehicles, trees, buildings, etc., and they are all transparent.
Example: Red ball asset (please ignore the yellow background that I used to describe the problem)

If I click on the actual area of ββthe image (colored red) then everything works fine
I donβt want to start mouseevent when I click on the blank part of the image (or the transparent area that I showed in yellow)
There is one way that I know when creating masks in flash. I do not want to do this if this is not the final version, because I load graphic resources instead of flash assets, t want to create a new mask resource for all assets
There is another method that I am going to accept using the getPixel Bitmap method. What is discussed here .
But there is another problem with this method.
I could ignore the click event when I click on the empty part of the asset, but if there is another object for the image in the same place, then I need to handle the click event for the occluded image.
Well, thinking about solving this problem, I move on to getObjectsUnderPoint , where I can scan closed assets