Boolean that checks which button is pressed

Hello,

I apologize if this is not the correct forum to be posting this kindof question, but I have only been able to find bits and pieces that relate to it…although it seems like it is a fairly simple problem for AS experts.

I have menu with five buttons. I would like it so that when one of the buttons is pressed, the whole menu slides to the right and an external movie is loaded based on which button has been pressed to indicate which content you is currently being viewed. That is, the “splatter.swf” will load when button 1 is clicked.

So far, I have tried to declare a variable called btnPressed that is assigned a value 1-5 when the button is pressed, and then I put the an if statement that checks the value of the variable and loads splatter.

i Would also like to have the menu go back to its original postition the person closes that content that will be externally loaded for each menu option.

obviously it does not work…so I have included the FLA if you want to take a look at it.
FLA here: www.schreiberdesign.com/flash/paintball.fla
also: www.schreiberdesign.com/flash/splatter.swf

thanks for the advice,

scott