# Tabular folder menus

**URL:** https://forum.kirupa.com/t/tabular-folder-menus/115291
**Category:** Uncategorized
**Created:** [July 7, 2004, 1:38pm UTC](https://forum.kirupa.com/t/tabular-folder-menus/115291 "2004-07-07T13:38:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Rob\_Cat](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Rob\_Cat](https://forum.kirupa.com/u/Rob_Cat)
#### Post date: [July 7, 2004, 1:38pm UTC](https://forum.kirupa.com/t/tabular-folder-menus/115291/1 "2004-07-07T13:38:05Z")

</div>

Meow ^.^

Ok I’m having a hellova struggle with this one. I want a pull out folder-style menu that scrolls out WITH the content as well. When one tab is out and another is clicked, I want the tab thats no longer used to close itself.

Here’s what I have so far, and frankly it’s a mess… [www.freewebs.com/feathercat](http://www.freewebs.com/feathercat)

I’d really appreciate help here since I’m pulling my fur out with the fraustration.

Cat.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 7, 2004, 8:24pm UTC](https://forum.kirupa.com/t/tabular-folder-menus/115291/2 "2004-07-07T20:24:37Z")

</div>

Ah here, I’ve found an example of what I need

[www.the-null.com](http://www.the-null.com)

What sort of things should I be looking at in terms of the actionscript used?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 7, 2004, 10:43pm UTC](https://forum.kirupa.com/t/tabular-folder-menus/115291/3 "2004-07-07T22:43:00Z")

</div>

Well, I would store every tab in an array

tabs\_array = new Array(“tab1”, “tab2”, “tab3”);

and create a prototype that would open the tab and close all other tabs. the closing should be done by cycling through the array and closing each tab. something like this

```auto

MovieClip.prorotype.openTab = function (tabToOpen) {
    for (var i=0; i<_root.tabs_array.length; i++) {
        theTab = _root.tabs_array*;
        if (theTab != tabToOpen) {
            // write your code for closing a tab
            _root[theTab].close(); // <-- dummy-code
        }
    }
    // and when all tabs are closed...
    //write your code for opening the tab, something like
   this.open(); // <-- dummy-code
};

```

then just call the function on the tab you want to open like this:

tab1.openTab(this.\_name);

that will open tab1 and close tab2 and tab3.
