When Flightsim is open go to Settings, there is a box named controls, in the box there is tab named Assiments (Go there)
and you have to assigne a button to
"Wing Fold/Unfold",
found in General Aircraft commands.
Hope This helps

Are you shure that the aircraft is anamated to fold its wings? Because if it hasnt this will not work.