Tabular folder menus

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

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

Cat.

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

www.the-null.com

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

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


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.