# Mouse\_wheel

**URL:** <https://forum.kirupa.com/t/mouse-wheel/269550>\
**Category:** Uncategorized\
**Created:** [August 28, 2008, 7:41pm UTC](https://forum.kirupa.com/t/mouse-wheel/269550 "2008-08-28T19:41:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xthor](https://avatars.discourse-cdn.com/v4/letter/x/9dc877/32.png) [@xthor](https://forum.kirupa.com/u/xthor)\
**Post date:** [August 28, 2008, 7:41pm UTC](https://forum.kirupa.com/t/mouse-wheel/269550/1 "2008-08-28T19:41:40Z")

</div>

Hi !!  
I have a problem that i can’t solve. On the main timeline a have only one keyframe with action in it.

```auto

[COLOR=#0066cc]stage[/COLOR].[COLOR=#006600]addEventListener[/COLOR][COLOR=#66cc66]([/COLOR]MouseEvent.[COLOR=#006600]MOUSE_WHEEL[/COLOR],onWheel[COLOR=#66cc66])[/COLOR];
[COLOR=#000000] **function** [/COLOR] onWheel[COLOR=#66cc66]([/COLOR]evt:MouseEvent[COLOR=#66cc66])[/COLOR][COLOR=#66cc66]{[/COLOR]
[COLOR=#66cc66][/COLOR] [COLOR=#0066cc]trace[/COLOR][COLOR=#66cc66]([/COLOR][COLOR=#ff0000]"onWheel"[/COLOR][COLOR=#66cc66])[/COLOR];
 [COLOR=#66cc66]}[/COLOR] 

```

…well, the thing is, **that I have to click anywhere on the stage and then use my mouse wheel in order to see trace statement**. When I don’t click on the stage nothing happens, the same thing is with a movieclip !! Why does this code doesn’t work ??

Please help !

Is there a way that I can use my mouse wheel without first clicking the stage ?
