InteractivePNG – useful AS3 classSobota, Január 31st, 2009
I’m working on some game editors for my old game engine (not finished) to show people something what I have done and let people convince me maybe to continue (fallenswordsgame.com). There are lot of PNG assets used. If there are many PNG images on stage, there is problem with selection of correct one, because in AS3 there are MouseEvent events even on transparent pixels and that’s problem. I have tried search if someone did great job on some workaround and I have found really great AS3 class called InteractivePNG. You can set even alphaTolerance to tell class if your MouseEvent event should be catched on semitransparent pixels or just opaque pixels. Check it out InteractivePNG demo. It really helps me, so I hope it can help you as well. Great job, Moses.