"if" statement - Was wondering if anyone knew how to simplify this

I’ve been developing a project where when six buttons (out of 28) are clicked it determines which animation will then play (there are 16 animations in total eg: Fanimation, FWanimation, FEanimation, FAanimation, Wanimation, WFanimation etc…).

I was wondering if anyone knew how I could simplify the scripting that traces which buttons are pushed. I’ve got a text field that captures the buttons being pushed (eg: FFWAFE) and at the moment I’m asking if the code exists in that text feild for it to then go and play the right animation (as you could imagine there are hundreds of possible combinations, heres a sample)…

onClipEvent (enterFrame) {
if (_level0.Textgrabber.equationtext.text==“FFFWAE”) {
_level0.gotoAndStop(“FWanimation”);
}
}

onClipEvent (enterFrame) {
if (_level0.Textgrabber.equationtext.text==“FFFWEA”) {
_level0.gotoAndStop(“FWanimation”);
}
}

onClipEvent (enterFrame) {
if (_level0.Textgrabber.equationtext.text==“FFWFAE”) {
_level0.gotoAndStop(“FWanimation”);
}
}

onClipEvent (enterFrame) {
if (_level0.Textgrabber.equationtext.text==“FFWFEA”) {
_level0.gotoAndStop(“FWanimation”);
}
}