Hey everyone, I'm new here, and I've been working on a simple accordion menu with submenus. Right now I'm just trying to get the buttons to open and close, but it doesn't seem to work. I can get one button to open fine, but then everything is stopped. Here's my actionscript:

this.onRelease = function() {
if (_currentframe==6 or _currentframe==16 or _currentframe==26) {
_parent.gotoAndPlay(_currentframe + 1);
} else {

Basically, my if statement is supposed to find the current frame from my parent mc, and add 1 frame to "close" the menu, if its open (frames 6, 16, or 26). If it's anywhere else, it's supposed to go to frame 2 to open it my concept menu.

Any thoughts?