Flash - Mouse Event Handling (Make symbol transparent to mouse) -


I have a flash, which is a background symbol that gives feedback on the click event, There is a phantom in which there is a bitmap with transparent pixels. Both of them are added to the stage, so they are not directly related.

I want to go directly to the background on clicks on transparent pixels on the ghost.

I have read about MouseAnited / Mouse child but they are not able to work. Icons when I use them, the mouse ignores the event, but it does not pass as transparent.

Is it possible to do this with Flash? Or will I have to recreate mouse events again?

Thanks

You can mouseEvent.CLICK to listen to your event Add a listener on bitmap (There is no need to wrap your bitmap inside Sprite.)

Then, in your click handler function, get the pixel use only getPixel32 to get the clicked pixel :

  var alpha: string = (yourBitmap.bitmapData.getPixel32 (e.localX, e.localY)> 24 & amp; 0xFF) .ststring (16); If (alpha == "0") // Click your symbol to trigger the handler  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -