To mix things up a bit, this extension is not actually an extension, but a component. However, I think it's fair to group it in our series of flash extensions (see part 1,2,and 3), due to its obvious usefulness :P
VI. SimpleTabBox
The SimpleTabBox is an AS2 component we built a while back - as evidence, here is a screenshot of it in action in gProject. This is one of the components that I have always felt should have been part of the V2 component set, but for some reason, the closest Macromedia came was the release of the TabBar in one of the Devnet CDs (which was not very useful as all).
Download the Extension. Included is the component MXP, as well as the source classes, and an FLA with the skin assets.
This TabBox was designed with one thing in mind: An easy way to create a pleasant simple looking ViewStack in flash. I'm sure there are others out there, in fact Paul Ortchanian released an implementation a couple weeks ago.
I hope someone out there finds this useful. As with all of our other free extensions, feel free to let us know if you find bugs or have feature requests.
It's important to note that we focused on making it programmer-accessible, and as such it is missing things such as LivePreview and support for the Property Inspector (which can be a lot of work in Flash 8 and lower), as well as some functionality such as overflow tabs. There is some simple skinning support, such as changing the background and tab skin (tabLinkage), but if your looking for a robust TabBox, you can jump into Flex, or look at mCOM.
Here is a simple API list and example
//Methods
tabBox.createChild(linkage, name, {label:label});
tabBox.createChildAt(n, linkage, name, {label:label});
tabBox.removeChildAt(n);
tabBox.removeAll();
tabBox.getChildAt(n);
tabBox.getTabAt(n);
tabBox.setSize(width, height);
tabBox.move();
tabBox.getInstance(instanceName);
tabBox.getIndex(instance);
tabBox.removeInstance(instance);
// Properties
tabBox.dataProvider = [{label:label, linkage:linkage, name:name}, etc..];
tabBox.length; (read-only)
tabBox.selectedIndex;
tabBox.tabLinkage;
tabBox.background;
tabBox.width;
tabBox.height;
tabBox.enabled;
Comments (4)
Hah! I actually made the TabBar component while working for a vendor of Macromedia's... but it was built to their spec, so I'll only take responsibility for bugs, not usefulness.
Can't wait to play with the CS3 components.
Posted by: Josh Santangelo at April 13, 2007 01:21 AMURL: http://endquote.com/
thankkss
Posted by: evden eve nakliyat at April 13, 2007 02:49 AMURL: http://nakliye.nakliyatcim.biz
Josh:
That was certainly no dig on the quality of the development, only that the TabBar basically gives you no control over your view stack (unless I missed something), so you're still left masking, changing visibility, etc. We actually used the TabBar in the first implementation of gProject, but it didn't do what we hoped.
Posted by: Lanny at April 13, 2007 09:13 AMCheers,
Lanny
URL: http://gskinner.com
Thanks for the post Grant, never played with your tab component, just downloaded it, although would like to have a look at the CS3 stuff you guys built.
Posted by: paul ortchanian at April 13, 2007 05:02 PMURL: http://www.reflektions.com