-
[MX04] simple accordion
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() {
concept_mc.start();
if (_currentframe==6 or _currentframe==16 or _currentframe==26) {
_parent.gotoAndPlay(_currentframe + 1);
} else {
_parent.gotoAndPlay(2);
}
};
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?
-
I got it, I accidentally wasn't consistent with my concept_btn versus my concept_mc throughout my timeline. Once I changed them all the the mc, it worked fine... thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|