Instead of using a static value to represent each and every action, use instance variables to represent which version to display.
I am assuming the list above of boy number and direction is what you name each of your animations.
Use a variable to store the selected boy number: BoyNum = 1
Use a variable to store the selected direction: BoyDir = "up"
Then when setting the animation set it to: "boy" & BoyNum & BoyDir
The above will result in the "boy1up" animation being played.