-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_ScrollBarStyle.as
48 lines (44 loc) · 1.4 KB
/
_ScrollBarStyle.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
46
47
48
package
{
import mx.core.IFlexModuleFactory;
import mx.skins.halo.ScrollArrowSkin;
import mx.skins.halo.ScrollThumbSkin;
import mx.skins.halo.ScrollTrackSkin;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
public class _ScrollBarStyle
{
public function _ScrollBarStyle()
{
super();
}
public static function init(param1:IFlexModuleFactory) : void
{
var fbs:IFlexModuleFactory = param1;
var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ScrollBar");
if(!style)
{
style = new CSSStyleDeclaration();
StyleManager.setStyleDeclaration("ScrollBar",style,false);
}
if(style.defaultFactory == null)
{
style.defaultFactory = function():void
{
this.thumbOffset = 0;
this.paddingTop = 0;
this.borderColor = 12040892;
this.trackColors = [9738651,15198183];
this.trackSkin = ScrollTrackSkin;
this.downArrowSkin = ScrollArrowSkin;
this.cornerRadius = 4;
this.upArrowSkin = ScrollArrowSkin;
this.paddingLeft = 0;
this.paddingBottom = 0;
this.thumbSkin = ScrollThumbSkin;
this.paddingRight = 0;
};
}
}
}
}