# MouseWheel Scroll

**URL:** <https://forum.kirupa.com/t/mousewheel-scroll/291815>\
**Category:** flash\
**Created:** [July 6, 2009, 9:42am UTC](https://forum.kirupa.com/t/mousewheel-scroll/291815 "2009-07-06T09:42:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulitc](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@paulitc](https://forum.kirupa.com/u/paulitc)\
**Post date:** [July 6, 2009, 9:42am UTC](https://forum.kirupa.com/t/mousewheel-scroll/291815/1 "2009-07-06T09:42:58Z")

</div>

Hi all

would some one be able to help aaarrggghhhh!

I have a rotating menu that moves depending on mouse movement. What I am trying to do is add the function of MouseWheel scroll as well as the mouse scroll that already exist.

I have this script which creates an MC and a within it a red line that is then triggered by mouse scroll, is there away that I can incorporate this script to my existing movie to create the mouseWheel scroll for the rotating menu.

/////////////////////MouseWheel Scroll Script //////////////////

//Step 1. creates listener object that response to mouse event  
var mouseListener:Object = new Object();  
mouseListener.onMouseWheel = function(delta) {  
clip\_mc.\_x += delta;  
}  
Mouse.addListener(mouseListener);

//Step 2.Define a function for MouseWheel  
this.createEmptyMovieClip(“line\_mc”, this.getNextHighestDepth());  
line\_mc.lineStyle(2, 0xFF0000, 100);  
line\_mc.moveTo(0, 100);  
line\_mc.lineTo(0, 0);  
line\_mc.\_x = 200;  
line\_mc.\_y = 200;

var mouseListener:Object = new Object();  
mouseListener.onMouseWheel = function(delta:Number) {  
line\_mc.\_rotation += delta;  
};  
mouseListener.onMouseDown = function() {  
trace(“Down”);  
};  
Mouse.addListener(mouseListener);

If not this script does anyone know a good AS2 mouseWheel scroll script and how to incorporate within a carousel

I have attached my .fla file which contains the script

I have also uploaded my project complete with files to some space as unable to upload here due to file size, this will show you the rotating menu with images.

[http://art.clubworldgroup.com/example.zip](http://art.clubworldgroup.com/example.zip)

many thanks for any help:crying:
