I am trying in vane to code a menu to slide open revealing a
photo. I am really having trouble coding the different variables
depending on if the menu buttons are "opened" or
"closed" and how the various buttons relate.
It's impossible to tell what you want to accomplish from your
sample file. I'm guessing that each of those diagonal tabs will be
a movieClip that will slide out to show a photo, and that you want
each to slide out, and any previous tab to slide back in.
If any of this is correct, then one solution is to put the
instance names of each clip into an array. Then you can write a
function that will play the selected movieClip and close any open
clip. Here's an example: