# Mousewheel only works after click on swf?

**URL:** <https://forum.kirupa.com/t/mousewheel-only-works-after-click-on-swf/256743>\
**Category:** Uncategorized\
**Created:** [April 6, 2008, 8:26pm UTC](https://forum.kirupa.com/t/mousewheel-only-works-after-click-on-swf/256743 "2008-04-06T20:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stewart](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@stewart](https://forum.kirupa.com/u/stewart)\
**Post date:** [April 6, 2008, 8:26pm UTC](https://forum.kirupa.com/t/mousewheel-only-works-after-click-on-swf/256743/1 "2008-04-06T20:26:29Z")

</div>

designing a flash website with a Flash-scrollbar that works with the mousewheel on your mouse.

it works on pc, EXCEPT that you have to click the swf first to get focus on the swf.

i used an onLoad javascript to set the focus to the swf, but that doesn’t work.  
you still have to click the swf, after that you can use the mousewheel on your mouse to scroll.

here’s a working example:

> **[sec.architecten](http://www.secarchitecten.com/nieuw)**
>
> Sec.architecten / architectenbureau voor nieuwbouw van woningen en bedrijfspanden, verbouw van monumenten en advies, BNA, Kampen, Zwolle

i can’t see what’s going wrong here. anyone?

thanks!

stewart
