Flash cs4 analogue input

Hi I'm currently working of the the io example in the as3 glue folder.
At the moment the numbers in output channel change in Flash when I twist the potentiometer.

I am looking for some sort of Flash code that will trigger an onscreen action in Flash when the potentiometer is turned?
So that a contrast/alpha effect could be changed or even a movie clip can be played when the potentiometer is turned.

Any ideas?

use processing :slight_smile: