A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [MX04] simple accordion

  1. #1
    Junior Member
    Join Date
    May 2008

    [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() {
    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?

  2. #2
    Junior Member
    Join Date
    May 2008
    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

Click Here to Expand Forum to Full Width

HTML5 Development Center