Trying to figure out how to implement the scroll wheel for scrubbing through the final swf animation.
I have an animation I have created and would like to allow the user to scroll up and down (for forwards and backwards) to control which direction the animation plays and at what rate. I'd also like to have the the animation do nothing if the scroll wheel isn't being manipulated. Here's the code I have so far, but I keep getting errors:
import flash.events.MouseEvent;
function handleMouseWheel(event:MouseEvent):void {
trace("The delta value is: " + event.delta);
frame = (clip_mc._currentframe + delta);
clip_mc.gotoAndStop(frame);
}
addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheel);
Appreciate your help!
I'm pretty new to this and I'm not sure what I'm doing wrong.
Thanks
