Question : Mousewheel not working in combobox as2

I am using a combobox as a menu in my .swf to get to different frames at my timeline. I have aprox 20 different labels. And everything work exept for the mouse wheel. I can not scroll the combobox with my mouse wheel, i can use the scrollbar but not the wheel.   I will be glad if somenone can enlighting me on this.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
this.createClassObject(mx.controls.ComboBox, "comboBox", 10);
comboBox.setStyle("themeColor", "0xFF0000");

var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta) {
if ((delta > 0 && box_mc._y < 270) || (delta < 0 && box_mc._y > 0)) {
box_mc._y = box_mc._y + (delta * 3);
}
}
Mouse.addListener(mouseListener);

function cbUpdate() {
choice = _root.comboBox.getSelectedItem().data;
_root.gotoAndPlay(change);
}
_root.comboBox.setChangeHandler("change");

_root.comboBox.addItem("Velg et sted", "");
_root.comboBox.addItem("Asker", "Asker");
_root.comboBox.addItem("Askøy", "Askøy");
_root.comboBox.addItem("Bergen", "Bergen");
_root.comboBox.addItem("Bryne", "Bryne");
_root.comboBox.addItem("Elverum", "Elverum");
_root.comboBox.addItem("Fredrikstad", "Fredrikstad");
_root.comboBox.addItem("Gjøvik", "Gjøvik");
_root.comboBox.addItem("Grimstad", "Grimstad");
_root.comboBox.addItem("Hamar", "Hamar");
_root.comboBox.addItem("Horten", "Horten");
_root.comboBox.addItem("Hønefoss", "Hønefoss");
_root.comboBox.addItem("Kongsberg", "Kongsberg");
_root.comboBox.addItem("Jessheim", "Jessheim");
_root.comboBox.addItem("Kristiansand", "Kristiansand");
_root.comboBox.addItem("Krokstadelva", "Krokstadelva");
_root.comboBox.addItem("Lamberseter", "Lamberseter");
_root.comboBox.addItem("Lierskogen", "Lierskogen");
_root.comboBox.addItem("Lillehammer", "Lillehammer");
_root.comboBox.addItem("Lillestrøm", "Lillestrøm");
_root.comboBox.addItem("Lørenskog", "Lørenskog");
_root.comboBox.addItem("Moss", "Moss");
_root.comboBox.addItem("Oslo", "Oslo");
_root.comboBox.addItem("Sandnes", "Sandnes");
_root.comboBox.addItem("Sarpsborg", "Sarpsborg");
_root.comboBox.addItem("Ski", "Ski");
_root.comboBox.addItem("Stavanger", "Stavanger");
_root.comboBox.addItem("Steinkjer", "Steinkjer");
_root.comboBox.addItem("Trondheim", "Trondheim");
_root.comboBox.addItem("Tønsberg", "Tønsberg");

Answer : Mousewheel not working in combobox as2

I remember having this problem with AS2 and there wasn't really an answer.

"...there is no mouseWheel event on MovieClips, you have to use the global object Mouse to catch the mouse wheel...."

http://www.zedia.net/2007/mouse-wheel-problems-and-no-answer/



The only answer is to go to AS3.
Random Solutions  
 
programming4us programming4us