So I've just picked up the inverted (upside down) tabs thing again and began doing inspections of the TabBar object for possible leads. The best I could find is a variable (probably private) called tabSkin which was set to "mx.skins.TabSkin". I created a new MXML file called InvertedTabSkin.mxml and basically just made it a wrapper for mx:TabBar with nothing but a script tag inside with the following code:
import InvertedTabSkin;
function doInit ( ) {
this.tabSkin = "InvertedTabSkin";
}
The doInit() function is triggered by the initialize event in the root element.
When I set this variable something happens to the TabBar created with the InvertedTabBar class... all I get is the text of the tab and none of the skin. The skin file, InvertedTabSkin.as has a few modifications from a version that worked on all TabBars:
class InvertedTabSkin extends RectBorder {
static var symbolOwner:Object = InvertedTabSkin;
...
instead of
class InvertedTabSkin extends RectBorder {
static var symbolName:String = "mx.skins.TabSkin";
...
and
static function classConstruct():Boolean
_global.skinRegistry["InvertedTabSkin"] = true;
...
instead of
static function classConstruct():Boolean {
_global.skinRegistry["mx.skins.TabSkin"] = true;
...
Any ideas on where to go from here, or am I on a completely wrong track?
Thanks,
Seth
PGP.sig
Description: This is a digitally signed message part

