Topic: Using side wheel for volume in off-line widgets?

I'm trying to use the side wheel on my Chumby One to control the volume in an off-line widget. I have volume control built into the app, maybe there's some way to hook the side wheel?

Thanks for any tips.

Re: Using side wheel for volume in off-line widgets?

The knob generates standard Flash "onMouseWheel" events.

3 (edited by wrybread 2012-01-04 22:58:20)

Re: Using side wheel for volume in off-line widgets?

Perfect and thanks.

For anyone else who comes down this road:

var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(wheelNum:Number) {
    
    trace (wheelNum);
        
    if (wheelNum> 0) {
         // do something to turn volume up
    }
    else if (wheelNum< 0) {
         // do something to turn volume down
    }
}

Mouse.addListener(mouseListener);