Ahh okay. I was on the right track then. I had that same code (with a different function name) but didn't realize I had to call it in the movie clip. I have this code on the main timeline to get the value of one slider.
import flash.events.Event;
// Enter Frame Event
var sliderValue:uint = mySlider.sliderKnob.x;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(event:Event):void {
sliderValue = mySlider.sliderKnob.x;
status_txt.text = "pos is" + sliderValue;
MovieClip(parent).changeFilterF(sliderValue); //I JUST ADDED THIS
}
I haven't debugged yet, but I'll let you know how it goes.
that's not good coding because you're unnecessarily using system resources in an endless enterframe loop for something that can be done much more efficiently.
in addition, it won't work.
if you use a slider component you can use a change event. if that's your custom slider you can probably use a mouseup event:
mySlider.sliderKnob.addEventListener(MouseEvent.MOUSE_UP,sliderchangeF);
function sliderchangeF(e:MouseEvent):void{
theinstancenameofyourfiltercontainingmovieclip.changeFilterF(mySlider.sliderKnob.x);
}
and change changeFilterF to
function changeFilterF(sliderValue):void{
video.filters = [MatrixUtil.setBrightness(sliderValue),
MatrixUtil.setContrast(0),
MatrixUtil.setSaturation(0)];
}