⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _comboboxstyle.as

📁 实现很多功能 实现很多功能 实现很多功能
💻 AS
字号:
package 
{

import flash.display.Sprite;
import mx.core.IFlexModuleFactory;
import mx.core.mx_internal;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;
import mx.skins.halo.ComboBoxArrowSkin;

[ExcludeClass]

public class _ComboBoxStyle
{

    public static function init(fbs:IFlexModuleFactory):void
    {
        var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ComboBox");
    
        if (!style)
        {
            style = new CSSStyleDeclaration();
            StyleManager.setStyleDeclaration("ComboBox", style, false);
        }
    
        if (style.defaultFactory == null)
        {
            style.defaultFactory = function():void
            {
                this.editableOverSkin = mx.skins.halo.ComboBoxArrowSkin;
                this.paddingLeft = 5;
                this.arrowButtonWidth = 22;
                this.fontWeight = "bold";
                this.upSkin = mx.skins.halo.ComboBoxArrowSkin;
                this.leading = 0;
                this.overSkin = mx.skins.halo.ComboBoxArrowSkin;
                this.editableDisabledSkin = mx.skins.halo.ComboBoxArrowSkin;
                this.editableUpSkin = mx.skins.halo.ComboBoxArrowSkin;
                this.cornerRadius = 5;
                this.paddingRight = 5;
                this.editableDownSkin = mx.skins.halo.ComboBoxArrowSkin;
                this.downSkin = mx.skins.halo.ComboBoxArrowSkin;
                this.disabledSkin = mx.skins.halo.ComboBoxArrowSkin;
                this.dropDownStyleName = "comboDropDown";
            };
        }
    }
}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -