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.
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: