I ran across a recent entry about MouseWheel events on Mac OS X and Flash by Christian Cantrell and realized there were at least 4 cool implementations that I was aware of. Thought I would list them out here, including a modification I made to one that I have been using and has been around for at least a year or longer now. I really like the anonymous JS function injection approaches that several of them leverage. So here they are:
Gabriel Bucknall – PixelBreaker – AS3.0 MouseWheel on Mac OS X
Ali Rantakari – Mac OS X Mouse Wheel Support for ActionScript 3 Flash Applications (v.2+)
Matt Giger – Simple solution for MOUSE_WHEEL events on Mac
UPDATE 03.10.09 – 12:51AM: I initially uploaded an old version accidentally – doh! I’ve updated the file, which fixes some issues with multiple instances of Flash on a page. Specifically where Flash instances not registered with SWFMacMouseWheel were still preventing the default page/document scroll if you happened to be mousedover them and they were receiving input. I also included a reference to Richard “Rillkill” Rodney for his tweaks for Safari for PC in the JS and AS3 code – which I failed to note requires changes in the AS to support Safari for PC. I also made a quick change to the AS2 version and zipped them both up and added them to the downloads page. If you don’t need Safari for PC support then you can stick with the original AS files from Gabriel/Pixelbreaker. Enjoy!