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

📄 broadcastermx.as

📁 flash 视频聊天室源码,非常好的源码
💻 AS
字号:
class mx.transitions.BroadcasterMX
{
    var _listeners;
    function BroadcasterMX()
    {
    } // End of the function
    static function initialize(o, dontCreateArray)
    {
        if (o.broadcastMessage != undefined)
        {
            delete o.broadcastMessage;
        } // end if
        o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
        o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
        if (!dontCreateArray)
        {
            o._listeners = new Array();
        } // end if
    } // End of the function
    function addListener(o)
    {
        this.removeListener(o);
        if (broadcastMessage == undefined)
        {
            broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
        } // end if
        return (_listeners.push(o));
    } // End of the function
    function removeListener(o)
    {
        var _loc2 = _listeners;
        var _loc3 = _loc2.length;
        while (_loc3--)
        {
            if (_loc2[_loc3] == o)
            {
                _loc2.splice(_loc3, 1);
                if (!_loc2.length)
                {
                    broadcastMessage = undefined;
                } // end if
                return (true);
            } // end if
        } // end while
        return (false);
    } // End of the function
    function broadcastMessage()
    {
        var _loc5 = String(arguments.shift());
        var _loc4 = _listeners.concat();
        var _loc6 = _loc4.length;
        for (var _loc3 = 0; _loc3 < _loc6; ++_loc3)
        {
            _loc4[_loc3][_loc5].apply(_loc4[_loc3], arguments);
        } // end of for
    } // End of the function
} // End of Class

⌨️ 快捷键说明

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