...

View Full Version : transparent PNG hitTest problems



Kirl
02-10-2009, 06:28 PM
I have the shapeFlag set to true, but it seems to just test the bounding box, it returns true even on transparent pixels.

It works fine on vector images but not on a png, is it possible to test transprarent images with AS2?

gnomeontherun
02-12-2009, 10:16 AM
Perhaps you can put a hidden button behind it, and then hittest the button?

Kirl
02-12-2009, 11:29 AM
Thanks for the suggestion, that should work nicely.
So does that mean Flash is unable to hitTest bitmaps alltogether?

gnomeontherun
02-12-2009, 12:04 PM
I have never tried with transparent images before, but I imagine that it might not see it as part of the outline. Otherwise it should work with graphics fine far as I can tell/have noticed.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum