Generally speaking, Flash and cross browser deployment go hand in hand… not so for me over the last week. I spent 4 days doing some work for an Agency in London, and I encountered 3 browser related Flash “bugs”.
1. The stage appears to initialise quicker in Firefox and Chrome on Windows than it does in IE. I was working with some code that I hadn’t written (gotta throw a disclaimer in there , and the assumption the code was making was that the stage dimensions were available on Frame 1 of the actionscript’s Document Class. IE wasn’t having a bar of this assumption, instead returning 0 for both the width and height, which was essentially causing the rest of the application to render off screen. Simple remedy was to add an ENTER_FRAME listener and wait for the dimensions to be greater than 0. Notch that one up to utilising someone else’s code that wasn’t really tested properly across browser… but that’s kinda the point of Flash right?
2. The MouseEvent.MOUSEWHEEL event doesn’t fire in IE 8. It does however work in IE6 and 7. I performed the obligatory Google searches for people that were experiencing the same issue, and only really managed to see results related to Mac and the scrollwheel (which can be remedied using swfmacmousewheel). Does anyone have the mouse scroll wheel working in IE8?