# How to make mouse wheel work instantly?

**URL:** <https://forum.kirupa.com/t/how-to-make-mouse-wheel-work-instantly/243909>\
**Category:** flash\
**Created:** [November 12, 2007, 3:25pm UTC](https://forum.kirupa.com/t/how-to-make-mouse-wheel-work-instantly/243909 "2007-11-12T15:25:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zangbomm](https://avatars.discourse-cdn.com/v4/letter/z/7ea924/32.png) [@zangbomm](https://forum.kirupa.com/u/zangbomm)\
**Post date:** [November 12, 2007, 3:25pm UTC](https://forum.kirupa.com/t/how-to-make-mouse-wheel-work-instantly/243909/1 "2007-11-12T15:25:49Z")

</div>

Hi!

How can I make mouse wheel work instantly when movie  
has loaded? There is a example in Flash 8 Help section.  
But I have to click on the stage before the wheel starts  
to work?!

[INDENT]var mouseListener:Object = new Object();  
mouseListener.onMouseWheel = function(delta) {  
clip\_mc.\_x += delta;  
}

Mouse.addListener(mouseListener);

mouseListener.onMouseDown = function() {  
trace(“Down”);  
};  
[/INDENT]
