a lot of advanced ASers don't know how to use the mouse wheel, it's a shame because it is really useful to use, this will explain the onMouseWheel handler
the first thing you need to do is create a new MouseListener ... this is done the following way
my_listener=new Object;
Mouse.addListener(my_listener);
now the next phase is actually add the onMouseWheel function, it is the part actually determining what happens
my_listener.onMouseWheel=function(delta){
//actions here
}
you're probebly wondering what "delta" is, delta is the amount of lines gone down, I'll just quote flash:
delta is an optional number indicating how many lines should be scrolled for each notch the user rolls the mouse wheel. A positive delta value indicates an upward scroll; a negative value indicates a downward scroll. Typical values are from 1 to 3; faster scrolling can produce larger values.
delta is very importent since it lets you know which direction has been scrolled... so right now you have
my_listener=new Object;
Mouse.addListener(my_listener);
my_listener.onMouseWheel=function(delta){
//actions here
}
actions here can depend on delta, for example you can increase or decrease the alpha of a movieclip depending on it allowing the user to see throught stuff, or better, zoom with a scripted camera (or without it) with it allowing users to "snipe" targets... this it very easially done
my_listener=new Object;
Mouse.addListener(my_listener);
my_listener.onMouseWheel=function(delta){
if((_root._xscale+delta<200) && (delta>0)){
_root._xscale+=delta;
_root._yscale+=delta;
}else if(_root._xscale-delta>50) && (delta<0)){
_root._xscale+=delta;
_root._yscale+=delta;
}
}
this can be scripted better , I know, so what :P
ask any questions ;)