This tab menu helps display tabbed information with a simple navigation.
One of the few components not represented in the Macromedia V2 component set, the tabs are a useful alternative. I wrote this small script, it has everything you need to populate and display tabbed information. Skin it however you want.
Wednesday, March 28, 2007
TabBox : display tabbed information

felsefe said...
You are indeed, an actionscript freak. Nice one. Thanks for Sharing!
Deiz said...
Thank for your sharing
serial said...
thanks for your info.
übersetzengun said...
There are many useful informations in this great article…I really enjoy reading the whole blog that you write. Thanks!
msn nickleri said...
thanks you
Nigel Senior said...
Hi,
really like the component but have some minor issues. The approach i am using is to attach an event luistner and then have my own routines to display each page. The problem is that the only event I can detect is "Click" - which wont work as it triggers before the change (selected index is old) - I have tied using "chnage" but does not work - any thoughts would be appreciated.
heres the code
function showcharttab(v:Boolean)
{
chartcombo.visible = v;
chartgraph.visible = v;
}
function showdatatab(v:Boolean)
{
dataemail.visible = v;
datadate.visible = v;
}
function showsettingtab(v:Boolean)
{
...
}
function tabclick(evt:Object)
{
trace(maintab.selectedIndex);
switch (maintab.selectedIndex) {
case 0:
showcharttab(true);
showdatatab(false);
showsettingtab(false);
break;
case 1:
showcharttab(false);
showdatatab(true);
showsettingtab(false);
break;
case 2:
showcharttab(false);
showdatatab(false);
showsettingtab(true);
break;
}
}
maintab.dataProvider = [{label:"Chart"},
{label:"Data"},
{label:"Settings"}];
maintab.addEventListener("click", tabclick);