Listato 52. Imposta gli slider per il movieClip "rose"

function setUpControls(){
    var alphaCh:Object = new Object();
    alphaText.text = alpha;
    alphaCh.onChange = function(evt:Object){
        alpha = evt.value;
        alphaText.text = alpha;
        setFilter();
    }
    alphaSlider.addListener(alphaCh);
    
    var redCh:Object = new Object();
    redText.text = red;
    redCh.onChange = function(evt:Object){
        red = evt.value;
        redText.text = red;
        setFilter();
    }
    redSlider.addListener(redCh);
    
    var blueCh:Object = new Object();
    blueText.text = blue;
    blueCh.onChange = function(evt:Object){
        blue = evt.value;
        blueText.text = blue;
        setFilter();
    }
    blueSlider.addListener(blueCh);
    
    var greenCh:Object = new Object();
    greenText.text = green;
    greenCh.onChange = function(evt:Object){
        green = evt.value;
        greenText.text = green;
        setFilter();
    }
    greenSlider.addListener(greenCh);
}