What you need to do is:
1) assign the aileron channels (is servo assignment menu) to a mixer, the default is AILERON+
2) assign the slider to flap (or spoiler) control in the controls assignment menu
3) in the mixer screen set the amount of input you want to the ailerons