I assume you're working with a WS2000 or WS1000 USB dongle with the DX9. That allows you to map 8 channels through to RealFlight from the DX9. Certainly, yes, flaps can be one of them.
I've got a RealFlight blog over on RCGroups with instructions for how to set up your transmitter and then map the game controller channels to RF channels.