In both browsers, the Javascript to Flash communication interferes with the .swf's updateAfterEvent() call, causing the .swf to stop refreshing while the mouse is moving. There are some quirks specific to different browsers:
IE
- The Javascript onmousemove event handler is continuously called (see status bar in your browser, below), but the coordinates of the mouse only seem to be sent when the mouse stops moving or when the mouse leaves or enters the browser window.
Firefox
- The status bar isn't updated in this sample, probably because of browser incompatibility.
- The .swf seems to update much faster, as is seen in the counter that updates much faster and the animation that achieves a much higher refresh rate. This doesn't seem to be a result of the Javascript to Flash communication, as in both browsers the Javascript communication to Flash only occurs when the mouse pauses.
- If the browser window is resized so that scrollbars appear, the communication stops working. When the window is resized so that the scrollbars disappear, it starts working again.
For sourcefiles used in this sample, email info at roguish.com. If you like this sample, check out this Flash Video Comparison: FlashVideoFAQ.com
|