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

📄 uicomponentextensions.as

📁 flash 视频聊天室源码,非常好的源码
💻 AS
字号:
class mx.core.ext.UIComponentExtensions
{
    var tabEnabled, getFocusManager, drawFocus;
    function UIComponentExtensions()
    {
    } // End of the function
    static function Extensions()
    {
        if (mx.core.ext.UIComponentExtensions.bExtended == true)
        {
            return (true);
        } // end if
        bExtended = true;
        TextField.prototype.setFocus = function ()
        {
            Selection.setFocus(this);
        };
        TextField.prototype.onSetFocus = function (oldFocus)
        {
            if (tabEnabled != false)
            {
                if (this.getFocusManager().bDrawFocus)
                {
                    this.drawFocus(true);
                } // end if
            } // end if
        };
        TextField.prototype.onKillFocus = function (oldFocus)
        {
            if (tabEnabled != false)
            {
                this.drawFocus(false);
            } // end if
        };
        TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus;
        TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager;
        mx.managers.OverlappedWindows.enableOverlappedWindows();
        mx.styles.CSSSetStyle.enableRunTimeCSS();
        mx.managers.FocusManager.enableFocusManagement();
    } // End of the function
    static var bExtended = false;
    static var UIComponentExtended = mx.core.ext.UIComponentExtensions.Extensions();
    static var UIComponentDependency = mx.core.UIComponent;
    static var FocusManagerDependency = mx.managers.FocusManager;
    static var OverlappedWindowsDependency = mx.managers.OverlappedWindows;
} // End of Class

⌨️ 快捷键说明

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