broadcastermx.as

来自「最为强大的个人版播客系统!专用的个人视频源码」· AS 代码 · 共 50 行

AS
50
字号
//Created by Action Script Viewer - http://www.buraks.com/asv
    class mx.transitions.BroadcasterMX
    {
        var _listeners;
        function BroadcasterMX () {
        }
        static function initialize(o, dontCreateArray) {
            if (o.broadcastMessage != undefined) {
                delete o.broadcastMessage;
            }
            o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
            o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
            if (!dontCreateArray) {
                o._listeners = new Array ();
            }
        }
        function addListener(o) {
            this.removeListener(o);
            if (broadcastMessage == undefined) {
                broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
            }
            return (_listeners.push(o));
        }
        function removeListener(o) {
            var _local2 = _listeners;
            var _local3 = _local2.length;
            while (_local3--) {
                if (_local2[_local3] == o) {
                    _local2.splice(_local3, 1);
                    if (!_local2.length) {
                        broadcastMessage = undefined;
                    }
                    return (true);
                }
            }
            return (false);
        }
        function broadcastMessage() {
            var _local5 = String (arguments.shift());
            var _local4 = _listeners.concat();
            var _local6 = _local4.length;
            var _local3 = 0;
            while (_local3 < _local6) {
                _local4[_local3][_local5].apply(_local4[_local3], arguments);
                _local3++;
            }
        }
        static var version = "1.1.0.52";
    }

⌨️ 快捷键说明

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