# MouseWheel events in FireFox

**URL:** https://forum.kirupa.com/t/mousewheel-events-in-firefox/227472
**Category:** flash
**Created:** [May 30, 2007, 3:51pm UTC](https://forum.kirupa.com/t/mousewheel-events-in-firefox/227472 "2007-05-30T15:51:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)
#### Post date: [May 30, 2007, 3:51pm UTC](https://forum.kirupa.com/t/mousewheel-events-in-firefox/227472/1 "2007-05-30T15:51:32Z")

</div>

Hi! 🍺

Is it possible to catch Flash mouseWheel events in Firefox? I know it is possible if the Wmode is set to Window, but that really screws up performance of the flash movie. I understand that Firefox has a problem with mouseWheel events. I also found out that it has something to do with the flash movie losing focus in firefox. So I wrote this script so that the focus is directed always to the flash movie:

```auto

<div id="flashy"></div>

<script type="text/javascript">

    var flash = new SWFObject("movie.swf", "movie", "800", "600", "8");
    flash.addParam("wmode", "opaque");
    flash.write("flashy");
    setInterval("document.getElementById('flashy').focus();",250);

</script>

```

I used the SWFObject from deconcept to embed the movie and, at every 250 miliseconds, the browser gives focus to the flash content. But still doesnt work. I tried googling for a solution but still havent found one. So, any ideas?
