-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_TabStyle.as
45 lines (41 loc) · 1.21 KB
/
_TabStyle.as
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package
{
import mx.core.IFlexModuleFactory;
import mx.skins.halo.TabSkin;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
public class _TabStyle
{
public function _TabStyle()
{
super();
}
public static function init(param1:IFlexModuleFactory) : void
{
var fbs:IFlexModuleFactory = param1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("Tab");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("Tab",style,false);
}
if(style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.upSkin = null;
this.selectedDownSkin = null;
this.overSkin = null;
this.downSkin = null;
this.selectedDisabledSkin = null;
this.paddingTop = 1;
this.selectedUpSkin = null;
this.disabledSkin = null;
this.skin = TabSkin;
this.paddingBottom = 1;
this.selectedOverSkin = null;
};
}
}
}
}